Esempio n. 1
0
        public CResponsable GetResponsable(int id)
        {
            var          charger     = db.GetResponsable(id).FirstOrDefault();
            CResponsable responsable = new CResponsable(charger.idPersonnel, charger.nomPersonnel, charger.prenomPersonnel, charger.libelRole, 0, 0);

            return(responsable);
        }
Esempio n. 2
0
 public CPoste(int idPoste, string nomPoste, double budgetDepart, double budgetActuel, string description, CResponsable resp)
 {
     this.id           = idPoste;
     this.nomPoste     = nomPoste;
     this.BudgetDepart = budgetDepart;
     this.budgetActuel = budgetActuel;
     this.description  = description;
     responsable       = resp;
 }
Esempio n. 3
0
        public List <CPoste> GetListPosteAssigne()
        {
            db = new DataContextDataContext();
            List <CPoste> listPosteAssigne  = new List <CPoste>();
            var           chargerListePoste = db.AfficherPosteAssigne();

            foreach (var item in chargerListePoste)
            {
                CResponsable resp = new CResponsable(item.idPersonnel, item.nomPersonnel, item.prenomPersonnel, item.libelRole, (int)item.nbrHeure, (double)item.salaireHoraire);
                listPosteAssigne.Add(new CPoste((int)item.idPoste, item.nomPoste, (double)item.budgetDepart, (double)item.budgetActuel, item.description, resp));
            }
            return(listPosteAssigne);
        }