Exemple #1
0
 public bool AddNewProduct(T_Product product)
 {
     try
     {
         ph = new ProductHelper();
         return ph.AddNewProduct(product);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
        public bool AddNewCraft(T_Crafts craft)
        {
            try
            {
                ph = new ProductHelper();
                return ph.AddNewCraft(craft);
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
Exemple #3
0
        public List<T_quotation> getQuotationList()
        {
            try
            {
                ph = new ProductHelper();
                return ph.getQuotationList();
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
Exemple #4
0
 public T_quotation getQuotationbyId(int qid)
 {
     try
     {
         ph = new ProductHelper();
         return ph.getQuotationbyId(qid);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #5
0
        public List<QtProduct> getQtProduct(int Qtid)
        {
            try
            {
                ph = new ProductHelper();
                return ph.getQtProduct(Qtid);
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #6
0
 public List<T_ProductType> getProductTypeList()
 {
     try
     {
         ph = new ProductHelper();
         return ph.getPtypelst();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #7
0
 public List<T_ProductbasicPrice> getProductPriceList(int productid)
 {
     try
     {
         ph = new ProductHelper();
         return ph.getProductPriceList(productid);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #8
0
        public bool AddNewQtPrice(QtProduct qtprice)
        {
            try
            {
                ph = new ProductHelper();
                return ph.AddNewQtPrice(qtprice);
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #9
0
 public List<ProductList> getProductListbycdt(string pcode,string pname,int[] cid)
 {
     ph = new ProductHelper();
     var lst = ph.getProductLstbyCdt(pcode, pname, cid);
     return lst;
 }
Exemple #10
0
 public List<ProductList> getProductList()
 {
     try
     {
         ph = new ProductHelper();
         var lst = ph.getProductLst();
         return lst;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #11
0
 public List<T_Crafts> getProductCraft(int pid)
 {
     ph = new ProductHelper();
     return ph.getProCraft(pid);
 }
Exemple #12
0
 public T_Product getProductbyId(int pid)
 {
     try
     {
         ph = new ProductHelper();
         return ph.getProductbyId(pid);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #13
0
 public string getPriceVersion(int pid)
 {
     try
     {
         ph = new ProductHelper();
         return ph.getPriceVersion(pid);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #14
0
        /// <summary>
        /// 添加新报价单
        /// </summary>
        /// <param name="newqt"></param>
        /// <returns></returns>
        public bool AddNewQuotation(T_quotation newqt)
        {
            try
            {
                ph = new ProductHelper();
                return ph.AddNewQuotation(newqt);
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #15
0
        public bool AddNewQtPriceList(List<QtProduct> qtpricelst)
        {
            try
            {
                ph = new ProductHelper();
                return ph.AddNewQtPriceList(qtpricelst);
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #16
0
        public List<T_quotation> getQuotationListbyP(string quno, int customerid, DateTime aftdate, DateTime bfedate)
        {
            try
            {
                ph = new ProductHelper();
                return ph.getQuotationListbyP(quno, customerid, aftdate, bfedate);
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
Exemple #17
0
        public bool UpdateQuotation(T_quotation qt)
        {
            try
            {
                ph = new ProductHelper();
                return ph.UpdateQuotation(qt);
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #18
0
        public List<T_Product> getProductListbyCid(int cid)
        {
            try
            {
                ph = new ProductHelper();
                var lst = ph.getProductbyCid(cid);
                return lst;
            }
            catch (Exception)
            {

                throw;
            }
        }
Exemple #19
0
 public bool AddNewProductPrice(T_ProductbasicPrice price, List<T_CraftsPrice> newcplist)
 {
     try
     {
         ph = new ProductHelper();
         int pbid = ph.AddProductPrice(price);
         return ph.AddNewCraftPricelst(newcplist, pbid);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #20
0
        public bool AddNewQtAndQtprice(T_quotation newqt, List<QtProduct> qtpricelst)
        {
            try
            {
                ph = new ProductHelper();
                ph.AddNewQuotation(newqt);
                foreach (var qp in qtpricelst)
                {
                    qp.qp.quotationid = newqt.id;
                }
                return ph.AddNewQtPriceList(qtpricelst);
            }
            catch (Exception)
            {

                throw;
            }
        }