public FicheDeReleveDeNotesUI()
        {
            classe         = new ClasseBE();
            matiere        = new MatiereBE();
            eleveBL        = new GestionEleveDuneClasseBL();
            listClasses    = new List <string>();
            listInscrits   = new List <InscrireBE>();
            listLigneFiche = new List <LigneFicheReleveNote>();

            evaluation     = new EvaluerBE();
            listEvaluation = new List <string[]>();
            noteBL         = new SaisieNotesSansAnonymatBL();
            evaluationBL   = new DefinirEvaluationMatiereBL();

            InitializeComponent();
            //Obtenir la liste des classes et les ajouter au comboBox des classes
            listClasses           = eleveBL.listerValeursColonneClasse("codeclasse");
            cmbClasse.ItemsSource = listClasses;

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

            //Obtenir la liste des séquences de l'année et les ajouter au comboBox des séquences
            listSequences           = noteBL.listerValeurColonneSequence("codeseq");
            cmbSequence.ItemsSource = listSequences;
        }
示例#2
0
        public FicheDePresenceUI()
        {
            classe         = new ClasseBE();
            eleveBL        = new GestionEleveDuneClasseBL();
            classes        = new List <string>();
            listInscrits   = new List <InscrireBE>();
            listLigneFiche = new List <LigneFichePresence>();

            InitializeComponent();
            //Obtenir la liste des classes et les ajouter au comboBox des classes
            classes = eleveBL.listerValeursColonneClasse("codeclasse");
            cmbClasse.ItemsSource = classes;

            txtAnnee.Text         = eleveBL.anneeEnCours().ToString();
            txtAnneeScolaire.Text = ((Convert.ToInt32(txtAnnee.Text.ToString())) - 1).ToString() + "/" + txtAnnee.Text;
        }
示例#3
0
        public EleveDuneClasseUI()
        {
            classe     = new ClasseBE();
            eleves     = new List <EleveBE>();
            eleveBL    = new GestionEleveDuneClasseBL();
            lignes     = new List <LigneEleve>();
            lignesMere = new List <LigneEleve>();
            classes    = new List <string>();
            inscrits   = new List <InscrireBE>();

            CultureInfo ci = CultureInfo.CreateSpecificCulture(CultureInfo.CurrentCulture.Name);

            ci.DateTimeFormat.ShortDatePattern  = "dd-MM-yyyy";
            Thread.CurrentThread.CurrentCulture = ci;

            InitializeComponent();

            classes = eleveBL.listerValeursColonneClasse("codeclasse");
            cmbClasse.ItemsSource = classes;
            annee                 = eleveBL.anneeEnCours();
            txtAnnee.Text         = " / " + annee;
            txtAnneeScolaire.Text = (annee - 1).ToString();
        }
示例#4
0
        //private DateTime datedebut, datefin;

        public InsolvablesUI()
        {
            classe              = new ClasseBE();
            listClasses         = new List <string>();
            listInscrits        = new List <InscrireBE>();
            listLigneInsolvable = new List <LigneInsolvable>();
            eleveBL             = new GestionEleveDuneClasseBL();
            journalBL           = new GestionJournalBL();

            InitializeComponent();
            //Obtenir la liste des classes et les ajouter au comboBox des classes
            listClasses           = eleveBL.listerValeursColonneClasse("codeclasse");
            cmbClasse.ItemsSource = listClasses;

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

            //Charger le comboBox des observations
            List <String> listObservations = new List <string>();

            listObservations.Add("OK");
            listObservations.Add("INSOLVABLE");
            listObservations.Add(CODE_MIXTE);
            cmbObservation.ItemsSource   = listObservations;
            cmbObservation.SelectedIndex = cmbObservation.Items.IndexOf(CODE_MIXTE);

            //mettre la date d'aujourdui
            dpiDate.SelectedDate = DateTime.Today;
            dpiDate.Text         = DateTime.Today.ToShortDateString();

            //charger la grille

            caisseBL = new GestionCaisseBL();

            CultureInfo ci = CultureInfo.CreateSpecificCulture(CultureInfo.CurrentCulture.Name);

            ci.DateTimeFormat.ShortDatePattern  = "yyyy-MM-dd";
            Thread.CurrentThread.CurrentCulture = ci;


            // cmbOperation.ItemsSource = listOps;
            // cmbOperation.SelectedIndex = cmbOperation.Items.IndexOf(CODE_MIXTE);
            realisers = caisseBL.listerSuivantCritereRealisers("dateop = " + "'" + DateTime.Today.Date.ToShortDateString() + "'");
            acheters  = caisseBL.listerSuivantCritereAcheters("dateachat = " + "'" + DateTime.Today.Date.ToShortDateString() + "'");
            payers    = caisseBL.listerSuivantCriterePayers("datepaiement = " + "'" + DateTime.Today.Date.ToShortDateString() + "'");

            lignes = creerDataSource(realisers, acheters, payers);
            // changementMotif();
            //grdEtatCaisse.ItemsSource = lignes;
            //grdEtatCaisse.Items.Refresh();
            //dpiDateFin.IsTodayHighlighted = true;
            //dpiDateFin.SelectedDate = DateTime.Today;
            //dpiDateFin.Text = DateTime.Now.ToString();
            //dpiDateDebut.SelectedDate = DateTime.Today;
            //dpiDateDebut.IsTodayHighlighted = true;
            //dpiDateDebut.Text = DateTime.Now.ToString();
            //txtEntreePeriode.IsEnabled = false;
            //txtSortiePeriode.IsEnabled = false;
            //txtTotalEntree.IsEnabled = false;
            //txtSoldeTotal.IsEnabled = false;
            //txtAncienSolde.IsEnabled = false;
            //txtSoldePeriode.IsEnabled = false;
            //txtSoldeTotal.IsEnabled = false;
            //txtTotalSolde.IsEnabled = false;
            //txtTotalSortie.IsEnabled = false;
        }