Exemplo n.º 1
0
 public static int DelCGKpellert(uint id)
 {
     try
     {
         int i = CGKDAL.delPalletById((int)id, CGK_pallert);
         return(i);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 2
0
 public static List <CGKpellert> GetCGKpellertModelAll()
 {
     try
     {
         DataSet ds = CGKDAL.getDatasetByTable(CGK_pallert);
         if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
         {
             return(DataTableToCGKpellert(ds.Tables[0]));
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemplo n.º 3
0
 public static CGKpellert GetCGKpellertModel(int id)
 {
     try
     {
         DataSet ds = CGKDAL.getDatasetByIdAndTable(id, CGK_pallert);
         if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
         {
             return(DataTableToCGKpellert(ds.Tables[0])[0]);
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }