private void UpdateInventory(PurchaseOrderDetail pod) { ProductInventory inv = new ProductInventory(); inv.ProductID = pod.ProductID; inv.Quantity = pod.OrderQty; inv.ModifiedDate = DateTime.Now; inv.UpdateInventory(inv); }
public bool RemoveProductInventory(ProductInventory productinventory) { ProductInventoryData data = new ProductInventoryData(); bool ret = false; try { ret = data.DeleteProductInventory(productinventory); } catch (Exception ex) { log.Write(ex.Message, "RemoveProductInventory"); throw (ex); } finally { data = null; } return(ret); }
public ProductInventory GetProductInventorys(int productid) { ProductInventoryData data = new ProductInventoryData(); ProductInventory productInventory = new ProductInventory(); try { productInventory = data.GetProductInventory(productid); } catch (Exception ex) { log.Write(ex.Message, "GetProductInventorys"); throw (ex); } finally { data = null; } return(productInventory); }
public bool Contains(ProductInventory productInventory) { return(this.List.Contains(productInventory)); }
public void Remove(ProductInventory productInventory) { this.List.Remove(productInventory); }
public void Insert(int index, ProductInventory productInventory) { this.List.Insert(index, productInventory); }
public int IndexOf(ProductInventory productInventory) { return(this.List.IndexOf(productInventory)); }
public int Add(ProductInventory productInventory) { return(this.List.Add(productInventory)); }