Example #1
0
 public ConfigurerServeurNotificationUI()
 {
     InitializeComponent();
     notificationBL = new GestionNotificationBL();
     app_folder     = notificationBL.getParametre().REPERTOIRE_PHOTO;
     initialiserElement();
 }
Example #2
0
 public GestionDesNotificationsUI()
 {
     InitializeComponent();
     action               = "";
     notificationBL       = new GestionNotificationBL();
     convocationParent    = new ConvocationParentUC();
     convocationPersonnel = new ConvocationProfUC();
     envoiResultat        = new EnvoyerResultatUC();
     reunion              = new ReunionUC();
     reunionEleve         = new ReunionEleveUC();
     parametre            = notificationBL.getParametre();
 }
        public ConvocationParentUC()
        {
            InitializeComponent();
            classes = new List <string>();

            notificationBL = new GestionNotificationBL();
            //chkEmail.IsChecked = true;
            //chkSMS.IsChecked = true;
            nbcaracteres          = 0;
            annee                 = notificationBL.anneeEnCours();
            eleve                 = new EleveBE();
            classes               = notificationBL.listerValeurColonneClasse("codeclasse");
            cmbClasse.ItemsSource = classes;
            lblStatut.Content     = GestionNotificationBL.INFORMATIONS_NON_VALIDEES;
        }
 public ReunionEleveUC()
 {
     InitializeComponent();
     notificationBL = new GestionNotificationBL();
     //chkEmail.IsChecked = true;
     //chkSMS.IsChecked = true;
     nbcaracteres = 0;
     concernes    = new List <string>();
     codes        = new List <string>();
     concernes.Add(CLASSE);
     concernes.Add(SERIE);
     concernes.Add(NIVEAU);
     concernes.Add(CYCLE);
     concernes.Add(MIXTE);
     cmbConcerne.ItemsSource = concernes;
     lblStatut.Content       = GestionNotificationBL.INFORMATIONS_NON_VALIDEES;
 }
        public EnvoyerResultatUC()
        {
            InitializeComponent();
            notificationBL = new GestionNotificationBL();
            //chkEmail.IsChecked = true;
            //chkSMS.IsChecked = true;
            classes = new List <string>();
            classes = notificationBL.listerValeurColonneClasse("codeclasse");
            classes.Add(TOUTE);
            cmbClasse.ItemsSource = classes;
            annee                 = notificationBL.anneeEnCours();
            txtAnnee.Text         = " / " + annee;
            txtAnneeScolaire.Text = (annee - 1).ToString();
            List <string> tampon = new List <string>();

            periodes = new List <string>();
            tampon   = notificationBL.listerValeurColonneSequence("codeseq");
            if (tampon != null)
            {
                foreach (string s in tampon)
                {
                    periodes.Add(s);
                }
            }
            tampon = notificationBL.listerValeurColonneTrimestre("codetrimestre");
            if (tampon != null)
            {
                foreach (string s in tampon)
                {
                    periodes.Add(s);
                }
            }
            periodes.Add(ANNUEL);
            cmbPeriode.ItemsSource = periodes;
            txtMessage.IsEnabled   = false;
            lblStatut.Content      = GestionNotificationBL.INFORMATIONS_NON_VALIDEES;
        }
        public ConvocationProfUC()
        {
            InitializeComponent();

            notificationBL = new GestionNotificationBL();
            //chkEmail.IsChecked = true;
            nbcaracteres = 0;
            //chkSMS.IsChecked = true;
            annee       = notificationBL.anneeEnCours();
            enseignant  = new EnseignantBE();
            enseignants = new List <string>();
            List <EnseignantBE> professeurs = notificationBL.listerToutEnseignants();

            if (professeurs != null)
            {
                foreach (EnseignantBE e in professeurs)
                {
                    enseignants.Add(e.codeProf + " - " + e.nomProf);
                }
            }
            cmbEnseignant.ItemsSource = enseignants;
            cmbEnseignant.Items.Refresh();
            lblStatut.Content = GestionNotificationBL.INFORMATIONS_NON_VALIDEES;
        }