public void Revoquer(string code_emp, string fin_statut)
 {
     try
     {
         StatutCarriereDAL.MettreFinACarriere(code_emp, DateTime.Parse(fin_statut));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message + " - Couche(APP)");
     }
 }
        public void InsererStatutCarriere(string code_emp, string code_dep, string code_grade, string code_poste, string debut, string motif)
        {
            try
            {
                StatutCarriere s = new StatutCarriere(code_dep, code_emp, int.Parse(code_grade), int.Parse(code_poste), DateTime.Parse(debut), motif);


                StatutCarriereDAL.AjouterStatut(s);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message + " - Couche(APP)");
            }
        }
 public Poste getPoste()
 {
     return(StatutCarriereDAL.GetPoste(this.CodePoste));
 }
 public Grade getGrade()
 {
     return(StatutCarriereDAL.GetGrade(this.CodeGrade));
 }
 public Departement getDepartement()
 {
     return(StatutCarriereDAL.GetDepartement(this.CodeDepartement));
 }
Exemplo n.º 6
0
        public bool EstRevoque()
        {
            StatutCarriere stc = StatutCarriereDAL.GetStatutCarriereActuel(this.CodeEmploye);

            return((stc.Fin > DateTime.MinValue) ? true : false);
        }
Exemplo n.º 7
0
 public StatutCarriere getStatutActuel()
 {
     return(StatutCarriereDAL.GetStatutCarriereActuel(this.CodeEmploye));
 }
Exemplo n.º 8
0
 public List <StatutCarriere> getStatutCarrieres()
 {
     return(StatutCarriereDAL.GetStatutCarrieres(this.CodeEmploye));
 }