Пример #1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(txtFullName.Text.Trim()))
         {
             throw new Exception("Vollständiger Name Cannot be empty");
         }
         if (!dxValidationProvider1.Validate())
         {
             return;
         }
         if (ObjESupplier == null)
         {
             ObjESupplier = new ESupplier();
         }
         ParseSupplierDetails();
         ObjBSupplier = new BSupplier();
         ObjESupplier = ObjBSupplier.SaveSupplierDetails(ObjESupplier);
         BindSupplierData();
         cmbSupplier.EditValue = ObjESupplier.SupplierID;
         if (Utility._IsGermany)
         {
             frmOTTOPro.UpdateStatus("Vorgang abgeschlossen: Speichern der Lieferantendaten ");
         }
         else
         {
             frmOTTOPro.UpdateStatus("Supplier data saved successfully");
         }
     }
     catch (Exception ex)
     {
         Utility.ShowError(ex);
     }
 }
Пример #2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(txtFullName.Text.Trim()))
         {
             throw new Exception("Vollständiger Name Cannot be empty");
         }
         if (!dxValidationProvider1.Validate())
         {
             return;
         }
         ParseSupplierDetails();
         ObjBSupplier = new BSupplier();
         ObjESupplier = ObjBSupplier.SaveSupplierDetails(ObjESupplier);
         _IsContinue  = true;
         this.Close();
     }
     catch (Exception ex)
     {
         Utility.ShowError(ex);
     }
 }