public ProductInventoryData(ProductInventoryData data) { Shelf = data.Shelf; Bin = data.Bin; Quantity = data.Quantity; rowguid = data.rowguid; Location = data.Location; Product = data.Product; ModifiedDate = data.ModifiedDate; Uid = data.Uid; }
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 ProductInventoryCollection GetProductInventoryCollection(string whereExpression, string orderByExpression) { ProductInventoryData data = new ProductInventoryData(); ProductInventoryCollection col = new ProductInventoryCollection(); try { col = data.GetAllProductInventorysDynamicCollection(whereExpression, orderByExpression); } catch (Exception ex) { log.Write(ex.Message, "GetProductInventoryCollection"); throw (ex); } finally { data = null; } return(col); }
public DataSet GetProductInventoryDataSet(string whereExpression, string orderByExpression) { ProductInventoryData data = new ProductInventoryData(); DataSet ds = new DataSet(); try { ds = data.GetProductInventoryDynamicDataSet(whereExpression, orderByExpression); } catch (Exception ex) { log.Write(ex.Message, "GetProductInventoryDataSet"); throw (ex); } finally { data = null; } return(ds); }
public ProductInventoryCollection GetAllProductInventoryCollection() { ProductInventoryData data = new ProductInventoryData(); ProductInventoryCollection col = new ProductInventoryCollection(); try { col = data.GetAllProductInventorysCollection(); } catch (Exception ex) { log.Write(ex.Message, "GetAllProductInventoryCollection"); throw (ex); } finally { data = null; } return(col); }
public DataSet GetAllProductInventoryDataSet() { ProductInventoryData data = new ProductInventoryData(); DataSet ds = new DataSet(); try { ds = data.GetAllProductInventoryDataSet(); } catch (Exception ex) { log.Write(ex.Message, "GetAllProductInventoryDataSet"); throw (ex); } finally { data = null; } return(ds); }
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); }