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