Esempio n. 1
0
 public WmsInventory GetWmsInventoryById(string Id)
 {
     using (IWmsInventoryBLL WmsInventoryBLL = BLLContainer.Resolve <IWmsInventoryBLL>())
     {
         WmsInventory model = WmsInventoryBLL.GetFirstOrDefault(Id);
         return(model);
     }
 }
Esempio n. 2
0
 public bool DelWmsInventory(string Id)
 {
     using (IWmsInventoryBLL WmsInventoryBLL = BLLContainer.Resolve <IWmsInventoryBLL>())
     {
         try
         {
             WmsInventory item = WmsInventoryBLL.GetFirstOrDefault(Id);
             return(WmsInventoryBLL.Delete(item));
         }
         catch { return(false); }
     }
 }
Esempio n. 3
0
 public bool DelWmsInventorys(string[] Ids)
 {
     using (IWmsInventoryBLL WmsInventoryBLL = BLLContainer.Resolve <IWmsInventoryBLL>())
     {
         try
         {
             List <WmsInventory> entitys = new List <WmsInventory>();
             foreach (string id in Ids)
             {
                 WmsInventory item = WmsInventoryBLL.GetFirstOrDefault(id);
                 entitys.Add(item);
             }
             return(WmsInventoryBLL.Delete(entitys));
         }
         catch { return(false); }
     }
 }