bouchnina

Class DemandeConge

Jul 12th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. Class DemandeConge{
  2. int codeEmploye;
  3. DateTime dateDebut;
  4. int duree;
  5. string motif;
  6. string etat;
  7.  
  8. // Ajouter les Propriétées
  9. //....
  10.  
  11. public DemandeConge(){}
  12. public DemandeConge(int code,DateTime dateDebut,int duree,string motif){
  13.     codeEmploye=code;
  14.     this.dateDebut=dateDebut;
  15.     this.duree=duree;
  16.     this.motif=motif;
  17.     etat="En cours";
  18. }
  19. public void Valider(){
  20.     etat = "Validé";
  21. }
  22. public void Refuser(){
  23.     etat = "Refusé";
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment