Beispiel #1
0
 protected override void EditObject()
 {
     gvSaledetail.CloseEditor();
     gvSaleRev.CloseEditor();
     if (m_saleorder.receivetype == (int)receiveType.产品明细收款)
     {
         m_ssclient.UpdateSaleDetail(m_changelst);
         getData(m_saleorder);
         m_ssclient.UpdateSaleOrder(m_saleorder);
     }
     else if (m_saleorder.receivetype == (int)receiveType.订单收款)
     {
         List <T_SaleReceive> revlst = (List <T_SaleReceive>)gvSaleRev.DataSource;
         var newRev = revlst.FindAll(r => r.id == 0);
         m_ssclient.AddNewSaleRev(newRev);
         getData(m_saleorder);
         m_ssclient.UpdateSaleOrder(m_saleorder);
     }
     base.EditObject();
 }