Пример #1
0
        public DataSet GetProductVendorsDataSet(string whereExpression, string orderByExpression)
        {
            ProductVendorData data = new ProductVendorData();
            DataSet           ds   = new DataSet();

            try
            {
                ds = data.GetProductVendorDynamicDataSet(whereExpression, orderByExpression);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductVendorsDataSet");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ds);
        }
Пример #2
0
        public ProductVendorCollection GetAllProductVendorsCollection()
        {
            ProductVendorData       data = new ProductVendorData();
            ProductVendorCollection col  = new ProductVendorCollection();

            try
            {
                col = data.GetAllProductVendorCollection();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllProductVendorsCollection");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(col);
        }
Пример #3
0
        public ProductVendor GetProductVendors(int productid)
        {
            ProductVendorData data = new ProductVendorData();
            ProductVendor     pv   = new ProductVendor();

            try
            {
                pv = data.GetProductVendor(productid);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductVendors");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(pv);
        }
Пример #4
0
        public DataSet GetAllProductVendorsDataSet()
        {
            ProductVendorData data = new ProductVendorData();
            DataSet           ds   = new DataSet();

            try
            {
                ds = data.GetAllProductVendorDataSet();
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetAllProductVendorsDataSet");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ds);
        }
Пример #5
0
        public bool UpdateProductVendor(ProductVendor productvendor)
        {
            ProductVendorData data = new ProductVendorData();
            bool ret = false;

            try
            {
                ret = data.UpdateProductVendor(productvendor);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "UpdateProductVendor");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }