1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
public void BtnValidationPaie_Click(object sender, EventArgs e)
{
try
{
string InsertPaie = "INSERT INTO paievalide(Prenom,AmiLocal,Extension,SBN,CheckIn,PaieHT,PaieTTC) VALUES('" + LblPrenom1.Text + "','" + LblAmiLocal1.Text + "', '" + LblExtension1.Text + "', '" + LblSBN1.Text + "', '" + LblCheckIn1.Text + "', '" + LblPaieHT1.Text + "', '" + LblPaieTTC1.Text + "')";
MySqlFunctionEmploye.ExecuteQuery(InsertPaie);
string deleteQuery = "DELETE FROM newpaie WHERE ID =" + LblInfo1.Text;
MySqlFunctionEmploye.ExecuteQuery(deleteQuery);
AlerteControl AlerteControl = new AlerteControl();
// AlerteControl.MajDatagrids(); // Appel de la methode de MISE A JOUR DES DATAGRIDVIEWS
FunctionAlerte FunctionAlerte = new FunctionAlerte();
FunctionAlerte.RefreshDataGridViewNewPaie(dataGridViewNewAlerte);
FunctionAlerte.RefreshDataGridViewPaieValide(dataGridViewPaieValide);
Console.WriteLine("pas d'erreur");
this.Close();
}
catch (MySqlException exception)
{
MessageBox.Show(exception.ToString());
}
} |