Ejemplo n.º 1
0
 public void CommonFormValUpdtae()
 {
     try
     {
         ChangeFocus = true;
         DataTable savegriddata = new DataTable();
         savegriddata = GridData.Copy();
         savegriddata.AcceptChanges();
         bool val = stdcondition.AddNewDDStandMain(DATE_MADE, VALID_UPTO, REVISION_DATE, REVISION_NO, CostCenterCode, CategoryId, ref _errMessage);
         if (val == false)
         {
             //  if ((string)_errMessage != "") MessageBox.Show(_errMessage, "Process Designer", MessageBoxButton.OK, MessageBoxImage.Information);
         }
         val = stdcondition.AddNewOptimalCondition(GridData, CostCenterCode, CategoryId, ref _errMessage);
         if (val)
         {
             ShowInformationMessage(_errMessage);
             //MessageBox.Show(_errMessage, ApplicationTitle, MessageBoxButton.OK, MessageBoxImage.Information);
             // ClearOperMaster();
         }
         if (val == false)
         {
             if ((string)_errMessage != "")
             {
                 ShowInformationMessage(_errMessage);
             }
             //MessageBox.Show(_errMessage, ApplicationTitle, MessageBoxButton.OK, MessageBoxImage.Information);
         }
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }
Ejemplo n.º 2
0
 public void CommonFormValUpdtae()
 {
     try
     {
         ChangeFocus = true;
         DataTable gridsaveddata = new DataTable();
         gridsaveddata = GridData.Copy();
         gridsaveddata.AcceptChanges();
         bool val = optimalModel.AddNewOptimalCondition(GridData, CostCenterCode, ref _errMessage);
         if (val)
         {
             ShowInformationMessage(_errMessage);
             //MessageBox.Show(_errMessage, "SmartPD", MessageBoxButton.OK, MessageBoxImage.Information);
             // ClearOperMaster();
         }
         if (val == false)
         {
             if ((string)_errMessage != "")
             {
                 ShowInformationMessage(_errMessage);
             }
             //MessageBox.Show(_errMessage, "SmartPD", MessageBoxButton.OK, MessageBoxImage.Information);
         }
     }
     catch (Exception ex)
     {
         throw ex.LogException();
     }
 }