public bool AddNewProduct(T_Product product) { try { ph = new ProductHelper(); return ph.AddNewProduct(product); } catch (Exception ex) { throw ex; } }
public bool AddNewCraft(T_Crafts craft) { try { ph = new ProductHelper(); return ph.AddNewCraft(craft); } catch (Exception ex) { throw ex; } }
public List<T_quotation> getQuotationList() { try { ph = new ProductHelper(); return ph.getQuotationList(); } catch (Exception ex) { throw ex; } }
public T_quotation getQuotationbyId(int qid) { try { ph = new ProductHelper(); return ph.getQuotationbyId(qid); } catch (Exception ex) { throw ex; } }
public List<QtProduct> getQtProduct(int Qtid) { try { ph = new ProductHelper(); return ph.getQtProduct(Qtid); } catch (Exception) { throw; } }
public List<T_ProductType> getProductTypeList() { try { ph = new ProductHelper(); return ph.getPtypelst(); } catch (Exception ex) { throw ex; } }
public List<T_ProductbasicPrice> getProductPriceList(int productid) { try { ph = new ProductHelper(); return ph.getProductPriceList(productid); } catch (Exception ex) { throw ex; } }
public bool AddNewQtPrice(QtProduct qtprice) { try { ph = new ProductHelper(); return ph.AddNewQtPrice(qtprice); } catch (Exception) { throw; } }
public List<ProductList> getProductListbycdt(string pcode,string pname,int[] cid) { ph = new ProductHelper(); var lst = ph.getProductLstbyCdt(pcode, pname, cid); return lst; }
public List<ProductList> getProductList() { try { ph = new ProductHelper(); var lst = ph.getProductLst(); return lst; } catch (Exception ex) { throw ex; } }
public List<T_Crafts> getProductCraft(int pid) { ph = new ProductHelper(); return ph.getProCraft(pid); }
public T_Product getProductbyId(int pid) { try { ph = new ProductHelper(); return ph.getProductbyId(pid); } catch (Exception ex) { throw ex; } }
public string getPriceVersion(int pid) { try { ph = new ProductHelper(); return ph.getPriceVersion(pid); } catch (Exception ex) { throw ex; } }
/// <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; } }
public bool AddNewQtPriceList(List<QtProduct> qtpricelst) { try { ph = new ProductHelper(); return ph.AddNewQtPriceList(qtpricelst); } catch (Exception) { throw; } }
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; } }
public bool UpdateQuotation(T_quotation qt) { try { ph = new ProductHelper(); return ph.UpdateQuotation(qt); } catch (Exception) { throw; } }
public List<T_Product> getProductListbyCid(int cid) { try { ph = new ProductHelper(); var lst = ph.getProductbyCid(cid); return lst; } catch (Exception) { throw; } }
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; } }
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; } }