コード例 #1
0
 /// <summary>
 /// Constructeur par défaut
 /// </summary>
 public Employe()
     : base()
 {
     m_MotDePasse       = null;
     m_Nom              = null;
     m_Prenom           = null;
     m_DateNaissance    = DateTime.Now;
     m_Email            = null;
     m_NumeroTelephone  = null;
     m_CompteActif      = byte.MaxValue;
     m_Civilite         = null;
     m_Adresse          = null;
     m_Statut           = null;
     m_NumeroHabitation = null;
     m_NomDeRue         = null;
 }
コード例 #2
0
 /// <summary>
 /// Constructeur spécifique
 /// </summary>
 /// <param name="Connexion">Connexion au serveur MySQL</param>
 /// <param name="Enregistrement">Enregistrement d'où extraire les valeurs de champs</param>
 public Employe(PDSGBD.MyDB Connexion, PDSGBD.MyDB.IEnregistrement Enregistrement)
     : this()
 {
     DefinirId(Enregistrement.ValeurChampComplet <int>(NomDeLaTablePrincipale, "id_employe"));
     this.MotDePasse       = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "mot_de_passe");
     this.Nom              = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "nom");
     this.Prenom           = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "prenom");
     this.DateNaissance    = Enregistrement.ValeurChampComplet <DateTime>(NomDeLaTablePrincipale, "date_naissance");
     this.Email            = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "email");
     this.NumeroTelephone  = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "numero_telephone");
     this.CompteActif      = Enregistrement.ValeurChampComplet <int>(NomDeLaTablePrincipale, "compte_actif");
     this.Rue              = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "nom_de_rue");
     this.NumeroHabitation = Enregistrement.ValeurChampComplet <string>(NomDeLaTablePrincipale, "numero_habitation");
     this.Civilite         = new Civilite(Connexion, Enregistrement);
     this.Adresse          = new Adresse(Connexion, Enregistrement);
     this.Statut           = new StatutEmploye(Connexion, Enregistrement);
 }
コード例 #3
0
 /// <summary>
 /// Constructeur spécifique
 /// </summary>
 /// <param name="MotDePasse">Mot de passe de l'employé</param>
 /// <param name="Nom">Nom de l'employé</param>
 /// <param name="Prenom">Prénom de l'employé</param>
 /// <param name="Email">Email de l'employé</param>
 /// <param name="NumeroTelephone">Numéro de téléphone de l'employé</param>
 /// <param name="DebutContrat">Début du contrat de l'employé</param>
 /// <param name="FinContrat">Fin du contrat de l'employé</param>
 /// <param name="CompteActif">Indique si le compte est actif</param>
 /// <param name="NomDeRue">Rue de l'employé</param>
 /// <param name="NumeroHabitation">Numéro d'habitation de l'employé</param>
 /// <param name="Civilite">Civilité de l'employé</param>
 /// <param name="Adresse">Adresse de l'employé</param>
 /// <param name="Statut">Statut de l'employé</param>
 public Employe(string MotDePasse, string Nom, string Prenom, DateTime DateNaissance, string Email, string NumeroTelephone, string NomDeRue, string NumeroHabitation, DateTime DebutContrat, DateTime FinContrat, int CompteActif, Civilite Civilite, Adresse Adresse, StatutEmploye Statut)
     : this()
 {
     DefinirId(Id);
     this.MotDePasse       = MotDePasse;
     this.Nom              = Nom;
     this.Prenom           = Prenom;
     this.DateNaissance    = DateNaissance;
     this.Email            = Email;
     this.NumeroTelephone  = NumeroTelephone;
     this.CompteActif      = CompteActif;
     this.Civilite         = Civilite;
     this.Adresse          = Adresse;
     this.Statut           = Statut;
     this.Rue              = NomDeRue;
     this.NumeroHabitation = NumeroHabitation;
 }
コード例 #4
0
 public Element(StatutEmploye StatutEmploye)
 {
     this.StatutEmploye = StatutEmploye;
 }