Ejemplo n.º 1
0
 public static bool deleteRack(uint id, int type)
 {
     try
     {
         return(RackDAL.deleteRackByid((int)id, (int)type));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public void DeleteRack(int rackid)
 {
     try
     {
         RackDAL.deleteRackByid(rackid);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public int InsertRack(Rack model)
 {
     try
     {
         return(RackDAL.InsertRack(model));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 4
0
 public static List <Rack> GetRackAllStorage()
 {
     try
     {
         DataSet ds = RackDAL.getRackDatasetAllStorage();
         if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
         {
             return(DataTableToRack(ds.Tables[0]));
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 5
0
 public static Rack GetRackModelByCoordinate(int x, int y, int z, int type)
 {
     try
     {
         DataSet ds = RackDAL.getRackDatasetByCoordinate(x, y, z, type);
         if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
         {
             return(DataTableToRack(ds.Tables[0])[0]);
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 6
0
 public static Rack GetRackModelByid(int id)
 {
     try
     {
         DataSet ds = RackDAL.getRackDatasetById(id);
         if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
         {
             return(DataTableToRack(ds.Tables[0])[0]);
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }