Esempio n. 1
0
 private void StockLocation_Delete(Entity.Inventory.Inventory inventory)
 {
     Business.Inventory.StockLocation objStockLocation = new Business.Inventory.StockLocation();
     foreach (DataRow dr in inventory.InventoryDetails.Rows)
     {
         objStockLocation.Delete(Convert.ToInt64(dr["StockLocationId"].ToString()));
     }
 }
Esempio n. 2
0
 private void StockLocation_Save(Entity.Inventory.Inventory inventory)
 {
     Business.Inventory.StockLocation objStockLocation = new Business.Inventory.StockLocation();
     foreach (DataRow dr in inventory.InventoryDetails.Rows)
     {
         objStockLocation.Save(new StockLocation()
         {
             StockLocationId = Convert.ToInt64(dr["StockLocationId"].ToString()),
             StoreId         = Convert.ToInt32(ddlToStore.SelectedValue)
         });
     }
 }