public WindowGenererCertificatScolariteUI()
        {
            InitializeComponent();
            eleve   = new EleveBE();
            eleves  = new List <string>();
            classes = new List <string>();

            creerCertificatScolariteBL = new CreerCertificatScolariteBL();

            //txtAnnee.Text = Convert.ToString(System.DateTime.Today.Year);

            classes = creerCertificatScolariteBL.listerValeurColonneClasse("codeclasse");

            ParametresBE param = creerCertificatScolariteBL.getParametres();

            if (param != null)
            {
                annee                 = param.annee;
                txtAnnee.Text         = Convert.ToString(param.annee);
                txtAnneeScolaire.Text = (param.annee - 1).ToString();
            }
            else
            {
                txtAnnee.Text         = "";
                txtAnneeScolaire.Text = "";
            }
        }
Esempio n. 2
0
        //********************************** Fin des éléments utiles pour la barre de progréssion

        public WindowGenererCertificatScolariteDuneClasseUI()
        {
            InitializeComponent();

            creerCertificatScolariteBL = new CreerCertificatScolariteBL();

            //on charge la liste des classes
            List <ClasseBE> LClasse = creerCertificatScolariteBL.listerToutesLesClasses();

            cmbClasse.ItemsSource = creerCertificatScolariteBL.getListCodeClasse2(LClasse);

            //txtAnnee.Text = Convert.ToString(System.DateTime.Today.Year);
            ParametresBE param = creerCertificatScolariteBL.getParametres();

            if (param != null)
            {
                annee                 = param.annee;
                txtAnnee.Text         = Convert.ToString(param.annee);
                txtAnneeScolaire.Text = (param.annee - 1).ToString();
            }
            else
            {
                txtAnnee.Text         = "";
                txtAnneeScolaire.Text = "";
            }

            //on cache la barre de progression
            ProgressBar1.Visibility = System.Windows.Visibility.Hidden;
        }
Esempio n. 3
0
        //********************************** Fin des éléments utiles pour la barre de progréssion

        public CertificatScolariteUI()
        {
            InitializeComponent();
            creerCertificatScolariteBL = new CreerCertificatScolariteBL();
            classeBL = new CreerModifierClasseBL();

            List <ClasseBE> LClasse = creerCertificatScolariteBL.listerToutesLesClasses();

            // ---- Chargement de la liste des Classe
            cmbClasse.ItemsSource = creerCertificatScolariteBL.getListCodeClasse(LClasse);

            txtAnnee.Text         = Convert.ToString(creerCertificatScolariteBL.getAnneeEnCours());
            txtAnneeScolaire.Text = (Convert.ToInt32(txtAnnee.Text) - 1).ToString() + "/" + txtAnnee.Text.ToString();


            //SauvegarderMenuDansPrivilege();
            //afficherEleveDansListBox(cmbClasse.Text, txtAnnee.Text);
            listBoxEleve.SelectionMode = SelectionMode.Multiple;

            //on cache la barre de progression
            ProgressBar1.Visibility = System.Windows.Visibility.Hidden;
        }