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