Exemple #1
0
 public Selection(Societe societe, Poste poste, Region region, Contrat contrat, Jour nbrJour)
 {
     MySociete = societe;
     MyPoste   = poste;
     MyRegion  = region;
     MyContrat = contrat;
     NbrJour   = nbrJour;
 }
Exemple #2
0
 public Selection()
 {
     MySociete = new Societe();
     MyRegion  = new Region();
     MyContrat = new Contrat();
     MyPoste   = new Poste();
     NbrJour   = new Jour();
 }
Exemple #3
0
 public Offre(string titre, string description, Poste poste, Contrat contrat, Region region, DateTime creation, string lien)
 {
     Titre       = titre;
     Description = description;
     Poste       = poste;
     Contrat     = contrat;
     Region      = region;
     Creation    = creation;
     Lien        = lien;
 }
Exemple #4
0
        //public Offre(int? id) { id = Id; }

        public Offre(int id, Poste poste, Contrat contrat, Region region, string titre, string description, string lien, DateTime creation, DateTime modif)
        {
            Id          = id;
            Poste       = poste;
            Contrat     = contrat;
            Region      = region;
            Titre       = titre;
            Description = description;
            Lien        = lien;
            Creation    = creation;
            Modif       = modif;
        }
Exemple #5
0
        public Offre(DataRow row, Poste poste, Contrat contrat, Region region)
        {
            DataColumnCollection columns = row.Table.Columns;

            this.Id          = (columns.Contains("ID") && row["ID"] != DBNull.Value) ? (int?)row["ID"] : null;
            this.Poste       = poste;
            this.Contrat     = contrat;
            this.Region      = region;
            this.Titre       = (columns.Contains("TITRE") && row["TITRE"] != DBNull.Value) ? (string)row["TITRE"] : null;
            this.Description = (columns.Contains("DESCRIPTION") && row["DESCRIPTION"] != DBNull.Value) ? (string)row["DESCRIPTION"] : null;
            this.Lien        = (columns.Contains("LIEN") && row["LIEN"] != DBNull.Value) ? (string)row["LIEN"] : null;
            this.Creation    = (columns.Contains("CREATION") && row["CREATION"] != DBNull.Value) ? (DateTime?)row["CREATION"] : null;
            this.Modif       = (columns.Contains("MODIF") && row["MODIF"] != DBNull.Value) ? (DateTime?)row["MODIF"] : null;
        }