public RechercherEleveUI() { InitializeComponent(); eleves = new List <string>(); eleveBL = new GestionEleveBL(); annee = eleveBL.AnneeEnCours(); txtAnnee.Text = " / " + annee; txtAnneeScolaire.Text = (annee - 1).ToString(); classes = new List <string>(); classes = eleveBL.listerValeurColonneClasse("codeclasse"); cmbClasse.ItemsSource = classes; }
public EleveUI() { CultureInfo ci = CultureInfo.CreateSpecificCulture(CultureInfo.CurrentCulture.Name); ci.DateTimeFormat.ShortDatePattern = "dd-MM-yyyy"; Thread.CurrentThread.CurrentCulture = ci; classes = new List <string>(); categories = new List <string>(); nomclasses = new List <string>(); nomcategories = new List <string>(); sexes = new List <string>() { "Masculin", "Feminin" }; etats = new List <string>() { "CLASSE", "NON CLASSE" }; nationalites = new List <string>(); langues = new List <string> { "Français", "Anglais", "Espagnol", "Allemand", "Chinois", "Japonais" }; regions = new List <string>(); departements = new List <string>(); eleveBL = new GestionEleveBL(); Console.WriteLine(DateTime.Now.ToLongTimeString()); matricule = ""; photo = ""; //Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\PhotosEtudiants\\default.jpg"; telephone = ""; email = ""; diplome = ""; telParent = ""; anneeDiplome = 0; typeValidation = TYPE_ENREGISTRER; InitializeComponent(); classes = eleveBL.listerValeurColonneClasse("codeclasse"); categories = eleveBL.listerValeurColonneCategorie("codecateleve"); nomclasses = eleveBL.listerValeurColonneClasse("nomclasse"); nomcategories = eleveBL.listerValeurColonneCategorie("nomcateleve"); nationalites = eleveBL.listerValeurColonnePays("codepays"); regions = eleveBL.listerValeurColonneRegion("coderegion"); departements = eleveBL.listerValeurColonneDepartement("codedept"); annee = eleveBL.AnneeEnCours(); txtAnnee.Text = " / " + annee; txtAnneeScolaire.Text = (annee - 1).ToString(); cmbCategorie.ItemsSource = categories; cmbCategorie.SelectedIndex = 0; cmbClasse.ItemsSource = classes; cmbClasse.SelectedIndex = 0; /*cmbDepartement.ItemsSource = departements; * cmbDepartement.SelectedIndex = 0;*/ cmbLangue.ItemsSource = langues; cmbLangue.SelectedIndex = 0; cmbNationalite.ItemsSource = nationalites; cmbNationalite.SelectedIndex = 0; /*cmbRegion.ItemsSource = regions; * cmbRegion.SelectedIndex = 0;*/ cmbSexe.ItemsSource = sexes; cmbSexe.SelectedIndex = 0; cmbEtat.ItemsSource = etats; cmbEtat.SelectedIndex = 0; radioEnregistrement.IsChecked = true; radioNonRedoublant.IsChecked = true; txtMatricule.IsEnabled = false; //-------------MOI---------------------------------------------------- txtMatricule.Text = nouveauMatricule(eleveBL.getDernierMatricule()); //-------------------------------------------------------------------- fonctionPere = ""; fonctionMere = ""; particulariteMedicale = ""; txtFonctionPere.Text = ""; txtFonctionMere.Text = ""; txtParticulariteMedicale.Text = ""; }