Пример #1
0
 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;
 }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
        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);
        }
Пример #5
0
        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);
        }
Пример #6
0
        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);
        }
Пример #7
0
        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);
        }