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
|
private void CBPersonne_SelectedIndexChanged(object sender, System.EventArgs e)
{
string value = ((ComboBox) sender).SelectedValue.ToString();
string Sql;
int Prof = 1;
if(this.IsNumeric(value))
{Prof = int.Parse(value);}
if(this.mIProfesseur.Checked)
{
Sql = "SELECT InterroJour,InterroPlage,InterroEleve "
+"FROM interrogation "
+"WHERE interroprof = "
+ Prof
+ " GROUP BY interrojour,interroplage,InterroEleve";
this.EmploiDuTemps(Sql,"Interrogation");
}
else if(this.mIClasse.Checked)
{
Sql = "SELECT InterroJour, InterroPlage, InterroEleve "
+"FROM interrogation,eleve,classe_act "
+"WHERE interroeleve = elenum "
+"AND eledivact = classecod "
+"AND classenum = "
+ Prof
+" GROUP BY interrojour, interroplage, InterroEleve";
this.EmploiDuTemps(Sql,"Classe");
}
} |
Partager