void cmsfc_ContractViewapplicationsAddCompleted(object sender, ContractViewapplicationsAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } else { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); return; } Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "VIEWCONTRACTAPPLICATION")); if (GlobalFunction.IsSaveAndClose(refreshType)) { RefreshUI(refreshType); } else { actions = FormTypes.Edit; EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>(); entBrowser.FormType = FormTypes.Edit; RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } } catch (Exception ex) { ExceptionManager.SendException("新增合同查看申请Completed事件", "OA", "T_OA_CONTRACTVIEW", "新增合同查看申请时返回错误", ex, ExceptionLevel.Middle, ExceptionType.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }
void cmsfc_ContractViewapplicationsAddCompleted(object sender, ContractViewapplicationsAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } else { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); return; } Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "VIEWCONTRACTAPPLICATION")); if (GlobalFunction.IsSaveAndClose(refreshType)) { RefreshUI(refreshType); } else { actions = FormTypes.Edit; EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>(); entBrowser.FormType = FormTypes.Edit; RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } } catch (Exception ex) { ExceptionManager.SendException("新增合同查看申请Completed事件", "OA", "T_OA_CONTRACTVIEW", "新增合同查看申请时返回错误", ex, ExceptionLevel.Middle, ExceptionType.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }