示例#1
0
 public object InsertUpdateSaleOrder(SaleOrder saleOrder)
 {
     if (saleOrder.SaleOrderDetailList.Count > 0)
     {
         saleOrder.DetailXML = _commonBusiness.GetXMLfromSaleOrderObject(saleOrder.SaleOrderDetailList, "ProductID,ProductModelID,UnitCode,Qty,Rate");
     }
     if (saleOrder.SaleOrderOtherChargeList.Count > 0)
     {
         saleOrder.OtherChargeDetailXML = _commonBusiness.GetXMLfromSaleOrderOtherChargeObject(saleOrder.SaleOrderOtherChargeList, "OtherChargeCode,ChargeAmount");
     }
     return(_saleOrderRepository.InsertUpdateSaleOrder(saleOrder));
 }