Exemplo n.º 1
0
 void client_CustomGuerdonRecordAccountCompleted(object sender, CustomGuerdonRecordAccountCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         if (e.Result == string.Empty)
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED"));
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "CUSTOMGUERDONRECORD"));
         else
             if (e.Result == "NODATA")
                 Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NODATA"));
             else
                 Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("BUDGETERROR") + ": " + Utility.GetResourceStr(e.Result));
     }
     timer.Stop();
     progressGenerate.Value = progressGenerate.Maximum;
     if (flag)
     {
         timer.Stop();
         progressGenerate.Value = progressGenerate.Minimum;
         EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
         entBrowser.Close();
     }
     isSaving = false;
     RefreshUI(RefreshedTypes.ToolBar);
     RefreshUI(RefreshedTypes.ProgressBar);
 }
Exemplo n.º 2
0
 void client_CustomGuerdonRecordAccountCompleted(object sender, CustomGuerdonRecordAccountCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
     }
     else
     {
         if (e.Result == string.Empty)
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("MODIFYSUCCESSED"));
         }
         //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "CUSTOMGUERDONRECORD"));
         else
         if (e.Result == "NODATA")
         {
             Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NODATA"));
         }
         else
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("BUDGETERROR") + ": " + Utility.GetResourceStr(e.Result));
         }
     }
     timer.Stop();
     progressGenerate.Value = progressGenerate.Maximum;
     if (flag)
     {
         timer.Stop();
         progressGenerate.Value = progressGenerate.Minimum;
         EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>();
         entBrowser.Close();
     }
     isSaving = false;
     RefreshUI(RefreshedTypes.ToolBar);
     RefreshUI(RefreshedTypes.ProgressBar);
 }