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)); }
public bool EstRevoque() { StatutCarriere stc = StatutCarriereDAL.GetStatutCarriereActuel(this.CodeEmploye); return((stc.Fin > DateTime.MinValue) ? true : false); }
public StatutCarriere getStatutActuel() { return(StatutCarriereDAL.GetStatutCarriereActuel(this.CodeEmploye)); }
public List <StatutCarriere> getStatutCarrieres() { return(StatutCarriereDAL.GetStatutCarrieres(this.CodeEmploye)); }