private void btn_ClosePrint_Click(object sender, EventArgs e)
 {
     CollectHeaderData();
     CollectLinesData();
     if (sALSalesReturnHeader.SlaesReturnHeaderID == null)
     {
         sALSalesReturnLineWrraper.SaveCloseSALSalesReturnOrder(sALSalesReturnHeader, sALSalesReturnLineCollection);
     }
     else
     {
         sALSalesReturnLineWrraper.UpdateCloseSALSalesOrder(sALSalesReturnHeader, sALSalesReturnLineCollection);
     }
 }
Esempio n. 2
0
 private void btn_ClosePrint_Click(object sender, EventArgs e)
 {
     CollectHeaderData();
     CollectLinesData();
     if (sALSalesReturnHeader.SlaesReturnHeaderID == null)
     {
         if (sALSalesReturnLineWrraper.SaveCloseSALSalesReturnOrder(sALSalesReturnHeader, sALSalesReturnLineCollection) != -1)
         {
             MessageBox.Show("تمت العملية بنجاح");
             this.Close();
         }
     }
     else
     {
         if (sALSalesReturnLineWrraper.UpdateCloseSALSalesOrder(sALSalesReturnHeader, sALSalesReturnLineCollection))
         {
             MessageBox.Show("تمت العملية بنجاح");
             this.Close();
         }
     }
 }