Exemplo n.º 1
0
 void vehicleUseAppManager_UpdateVehicleUseAppCompleted(object sender, UpdateVehicleUseAppCompletedEventArgs e)
 {
     if (e.Result > 0)
     {
         Utility.ShowMessageBox("AUDITSUCCESSED", true, true);
         RefreshUI(RefreshedTypes.CloseAndReloadData);
     }
     else
     {
         Utility.ShowMessageBox("AUDITFAILURE", true, false);
         RefreshUI(RefreshedTypes.ProgressBar);
     }
 }
Exemplo n.º 2
0
 void vehicleUseAppManager_UpdateVehicleUseAppCompleted(object sender, UpdateVehicleUseAppCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Error != null && e.Error.Message != "")
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         return;
     }
     if (e.Result > 0)
     {
         if (e.UserState.ToString() == "Edit")
         {
             Utility.ShowMessageBox("UPDATE", isSubmitFlow, true);//修改成功
             if (isSubmitFlow)
                 saveType = RefreshedTypes.CloseAndReloadData;
             RefreshUI(saveType);
         }
         else if (e.UserState.ToString() == "Audit")
         {
             Utility.ShowMessageBox("AUDIT", isSubmitFlow, true);//审核成功
         }
         else if (e.UserState.ToString() == "Submit")
         {
             // by ldx
             // 2011-08-09
             // 将提示信息为英文改成中文
             //Utility.ShowMessageBox("AUDITSUCCESSED", isSubmitFlow, true);//提交审核成功
             Utility.ShowCustomMessage(MessageTypes.Message, "成功", "提交审核成功!");
         }
         RefreshUI(RefreshedTypes.All);
     }
     else
     {
         if (e.UserState.ToString() == "Audit" || e.UserState.ToString() == "Submit")
         {
             Utility.ShowMessageBox("AUDITFAILURE", isSubmitFlow, false);//提交失败
         }
         else
         {
             Utility.ShowMessageBox("UPDATE", isSubmitFlow, false);//修改失败
         }
     }
 }