コード例 #1
0
 public static List <PieceCaisse> Liste(String query)
 {
     try
     {
         return(PieceCaisseDao.getListPieceCaisse(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }
コード例 #2
0
 public static bool Delete(long id)
 {
     try
     {
         return(PieceCaisseDao.getDeletePieceCaisse(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
コード例 #3
0
 public PieceCaisse Insert()
 {
     try
     {
         return(PieceCaisseDao.getAjoutPieceCaisse(piece));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
コード例 #4
0
 public bool Update()
 {
     try
     {
         return(PieceCaisseDao.getUpdatePieceCaisse(piece));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
コード例 #5
0
 public static PieceCaisse One(long id)
 {
     try
     {
         return(PieceCaisseDao.getOnePieceCaisse(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }