public StatutFinancierUI()
        {
            CultureInfo ci = CultureInfo.CreateSpecificCulture(CultureInfo.CurrentCulture.Name);

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

            InitializeComponent();

            prestationBL     = new GestionPrestationBL();
            montanttranches  = new List <MontantTrancheBE>();
            payers           = new List <PayerBE>();
            lignes           = new List <LignePrestation>();
            eleves           = new List <string>();
            classes          = new List <string>();
            eleve            = new EleveBE();
            fraisInscription = 0;
            //fraisPrestation = 0;
            totalAPayer = 0;

            classes = prestationBL.listerValeursColonneClasse("codeclasse");
            cmbClasse.ItemsSource = classes;
            annee                    = prestationBL.AnneeEnCours();
            txtAnnee.Text            = " / " + annee.ToString();
            txtAnneeScolaire.Text    = (annee - 1).ToString();
            txtTotal.IsEnabled       = false;
            txtTotalVerse.IsEnabled  = false;
            txtResteAPayer.IsEnabled = false;
        }
        public Payer_Prestation()
        {
            InitializeComponent();
            dpiDateOp.SelectedDate       = DateTime.Today;
            dpiDateOp.IsTodayHighlighted = true;
            dpiDateOp.Text = DateTime.Now.ToString();

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

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

            prestationBL    = new GestionPrestationBL();
            montanttranches = new List <MontantTrancheBE>();
            listprestation  = new List <string>();
            listtranches    = new List <string>();
            choixDispense   = new List <string>()
            {
                BOURSE, REMISE
            };
            classes    = new List <string>();
            eleves     = new List <string>();
            payers     = new List <PayerBE>();
            lignes     = new List <LignePrestation>();
            eleve      = new EleveBE();
            payer      = new PayerBE();
            prestation = new PrestationBE();
            // fraisInscription = 0;
            fraisPrestation = 0;
            totalAPayer     = 0;

            classes = prestationBL.listerValeursColonneClasse("codeclasse");
            cmbClasse.ItemsSource   = classes;
            cmbDispense.ItemsSource = choixDispense;
            annee                    = prestationBL.AnneeEnCours();
            listtranches             = prestationBL.listerValeursColonneTranche("codetranche");
            cmbTranche.ItemsSource   = listtranches;
            txtAnnee.Text            = " / " + annee;
            txtAnneeScolaire.Text    = (annee - 1).ToString();
            txtTotal.IsEnabled       = false;
            txtTotalVerse.IsEnabled  = false;
            txtResteAPayer.IsEnabled = false;
            txtReste.IsEnabled       = false;
            txtRemise.IsEnabled      = false;
            cmbDispense.IsEnabled    = false;
            txtMontant.IsEnabled     = false;
        }