Exemplo n.º 1
0
 public static bool Insert(Planning planning)
 {
     try
     {
         return(PlanningDAO.getInsert(planning));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 2
0
 public static Planning getPlanningForJoursOuvres(JoursOuvres jour, DateTime date)
 {
     try
     {
         return(PlanningDAO.setPlanning(jour, date));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 3
0
 public static Planning OneByDateEmploye(long employe, DateTime date, DateTime heure)
 {
     try
     {
         return(PlanningDAO.getOneByDateEmploye(employe, date, heure));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 4
0
 public static Planning OneByDateEmploye(long employe, long tranche, DateTime dateDebut, DateTime dateFin)
 {
     try
     {
         return(PlanningDAO.getOneByDateEmploye(employe, tranche, dateDebut, dateFin));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 5
0
 public static Planning OneById(int id)
 {
     try
     {
         return(PlanningDAO.getOneById(id));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemplo n.º 6
0
 public static List <Planning> List(string query, string adresse)
 {
     try
     {
         return(PlanningDAO.getList(query, adresse));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }