Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }