예제 #1
0
        public UC_ElementUERech(UC_OngletRecherche cadre, ue u) : base(cadre)
        {
            InitializeComponent();
            _ue = u;

            gBAffElement.Text = _ue.nom;
            tBDesc.Text       = _ue.description;
        }
예제 #2
0
        public UC_ElementDiplomeRech(UC_OngletRecherche cadre, diplome d) : base(cadre)
        {
            InitializeComponent();
            _diplome = d;

            gBAffElement.Text = _diplome.nom;
            tBDesc.Text       = _diplome.description;
        }
예제 #3
0
        public UC_ElementAnneeRech(UC_OngletRecherche cadre, annee annee) : base(cadre)
        {
            InitializeComponent();
            _annee = annee;

            gBAffElement.Text = _annee.nom;
            tBDesc.Text       = _annee.description;
        }
예제 #4
0
        public UC_ElementPeriodeRech(UC_OngletRecherche cadre, periode p) : base(cadre)
        {
            InitializeComponent();
            _periode = p;

            gBAffElement.Text = _periode.nom;
            tBDesc.Text       = _periode.description;
        }
예제 #5
0
        public UC_ElementPersonnelRech(UC_OngletRecherche cadre, personnel p) : base(cadre)
        {
            InitializeComponent();
            _personnel = p;

            gBAffElement.Text        = _personnel.nom;
            tBNom.Text               = _personnel.nom;
            tBPrenom.Text            = _personnel.prenom;
            tBTelephone.Text         = _personnel.telephone;
            tBAdresseEmail.Text      = _personnel.email;
            tBAdressePost.Text       = _personnel.adresse;
            tBCategorie.Text         = Requetes.obtientCategorieduPersonnel(_personnel).nom;
            tBNbHeuresAttrib.Text    = Requetes.nbrHeureAttribuees(_personnel).ToString();
            tBNbHeuresNonAttrib.Text = Requetes.nbrHeureManquantes(_personnel).ToString();
        }
예제 #6
0
        public UC_ElementCoursRech(UC_OngletRecherche cadre, cours c) : base(cadre)
        {
            InitializeComponent();
            _cours = c;

            gBAffElement.Text = _cours.nom;
            tBHoraires.Text   = _cours.volume_horraire.ToString();
            tBCours.Text      = Requetes.obtientTypeduCours(_cours).nom;
            tBEC.Text         = Requetes.obtientECduCours(_cours).nom;
            if (_cours.personnel != null)
            {
                tBPersonnel.Text = _cours.personnel.nom;
            }
            else
            {
                tBPersonnel.Text = "Aucun";
            }
        }
예제 #7
0
        public UC_ElementECRech(UC_OngletRecherche cadre, ec e) : base(cadre)
        {
            InitializeComponent();
            _ec = e;

            gBAffElement.Text = _ec.nom;
            tBDesc.Text       = _ec.description;

            if (_ec.actif == true)
            {
                cB_ECActive.Checked = true;
                cB_ECActive.Text    = "Activée";
            }
            else
            {
                cB_ECActive.Checked = false;
                cB_ECActive.Text    = "Désactivée";
            }
        }
예제 #8
0
 public UC_ElementR(UC_OngletRecherche cadre)
 {
     InitializeComponent();
     this._cadre = cadre;
 }