void caswsc_ContractApprovalAddCompleted(object sender, ContractApprovalAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); return; } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "APPLICATIONSFORCONTRACTS")); 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_CONTRACTAPP", "添加合同申请时返回错误", ex, ExceptionLevel.Middle, ExceptionType.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }
void caswsc_ContractApprovalAddCompleted(object sender, ContractApprovalAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error != null && e.Error.Message != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); return; } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "APPLICATIONSFORCONTRACTS")); 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_CONTRACTAPP", "添加合同申请时返回错误", ex, ExceptionLevel.Middle, ExceptionType.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }