Esempio n. 1
0
 public CPoste(int id, string nom, double budgetActuel, double budgetDepart, string description, CDepense dep, CRecette rec)
 {
     this.id           = id;
     this.nomPoste     = nom;
     this.description  = description;
     this.budgetActuel = budgetActuel;
     this.budgetDepart = budgetDepart;
     depense           = dep;
     recette           = rec;
 }
Esempio n. 2
0
        public CPoste(int idPers)
        {
            var result = db.GetRespAndPoste(idPers).FirstOrDefault();

            this.id           = result.idPoste.Value;
            this.nomPoste     = result.nomPoste;
            this.budgetActuel = (double)result.budgetActuel;
            this.budgetDepart = (double)result.budgetDepart;
            depense           = new CDepense(id);
            recette           = new CRecette(id);
        }