示例#1
0
        public DataSet GetAllProductAdjustmentHistoryDataSet()
        {
            DataSet ds = new DataSet();

            try
            {
                ds = data.GetAllProductAdjustmentHistoryDataSet();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllProductAdjustmentHistoryDataSet");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ds);
        }
示例#2
0
        public ProductAdjustmentHistory GetProductAdjustmentHistory(int pahId)
        {
            ProductAdjustmentHistory pah = new ProductAdjustmentHistory();

            try
            {
                pah = data.GetProductAdjustmentHistory(pahId);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductAdjustmentHistorys");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(pah);
        }
示例#3
0
        public ProductAdjustmentHistoryCollection GetProductAdjustmentHistoryCollection(string where, string orderBy)
        {
            ProductAdjustmentHistoryCollection col = new ProductAdjustmentHistoryCollection();

            try
            {
                col = data.GetAllProductAdjustmentHistoryDynamicCollection(where, orderBy);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductAdjustmentHistoryCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
示例#4
0
        public DataSet GetProductAdjustmentHistoryDataSet(string where, string orderBy)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = data.GetProductAdjustmentHistoryDynamicDataSet(where, orderBy);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductAdjustmentHistoryDataSet");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ds);
        }
示例#5
0
        public ProductAdjustmentHistoryCollection GetAllProductAdjustmentHistoryCollection()
        {
            ProductAdjustmentHistoryCollection col = new ProductAdjustmentHistoryCollection();

            try
            {
                col = data.GetAllProductAdjustmentHistoryCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllProductAdjustmentHistoryCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
示例#6
0
        public int AddProductAdjustmentHistory(ProductAdjustmentHistory productadjustmenthistory)
        {
            // bool ret = false;
            int id = 0;

            try
            {
                id = data.AddProductAdjustmentHistory(productadjustmenthistory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddProductAdjustmentHistory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(id);
        }