Example #1
0
 void vehicleUseAppManager_AddVehicleUseAppCompleted(object sender, AddVehicleUseAppCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Result > 0)
     {
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
             return;
         }
         EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>();
         entBrowser.FormType = FormTypes.Edit;
         RefreshUI(RefreshedTypes.AuditInfo);
         RefreshUI(RefreshedTypes.All);
         types = FormTypes.Edit;
         Utility.ShowMessageBox("ADD", isSubmitFlow, true);
         if (isSubmitFlow)
         {
             saveType = RefreshedTypes.CloseAndReloadData;
         }
         RefreshUI(saveType);
     }
     else
     {
         Utility.ShowMessageBox("ADD", isSubmitFlow, false);
     }
 }
Example #2
0
 void vehicleManager_AddVehicleUseAppCompleted(object sender, AddVehicleUseAppCompletedEventArgs e)
 {
     if (e.Result == 1)
     {
         GetData();
         Utility.ShowMessageBox("ADD", false, true);
     }
     else
     {
         Utility.ShowMessageBox("ADD", false, false);
     }
 }
 void vehicleManager_AddVehicleUseAppCompleted(object sender, AddVehicleUseAppCompletedEventArgs e)
 {
     if (e.Result == 1)
     {
         GetData();
         Utility.ShowMessageBox("ADD", false, true);
     }
     else
     {
         Utility.ShowMessageBox("ADD", false, false);
     }
 }
Example #4
0
 void vehicleUseAppManager_AddVehicleUseAppCompleted(object sender, AddVehicleUseAppCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Result > 0)
     {
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
             return;
         }
         EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
         entBrowser.FormType = FormTypes.Edit;
         RefreshUI(RefreshedTypes.AuditInfo);
         RefreshUI(RefreshedTypes.All);
         types = FormTypes.Edit;
         Utility.ShowMessageBox("ADD", isSubmitFlow, true);
         if (isSubmitFlow)
             saveType = RefreshedTypes.CloseAndReloadData;
         RefreshUI(saveType);
     }
     else
     {
         Utility.ShowMessageBox("ADD", isSubmitFlow, false);
     }
 }