void contractClient_ContractTypeAddCompleted(object sender, ContractTypeAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error == null) { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); } else { if (GlobalFunction.IsSaveAndClose(refreshType)) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "CONTRACTTYPE")); } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "CONTRACTTYPE")); this.actions = FormTypes.Edit; } } RefreshUI(refreshType); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.ToString())); } } catch (Exception ex) { ExceptionManager.SendException("添加合同类型Completed事件", "OA", "T_OA_CONTRACTTYPE", "添加合同类型返回错误", ex, ExceptionLevel.Middle, ExceptionType.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }
void contractClient_ContractTypeAddCompleted(object sender, ContractTypeAddCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); try { if (e.Error == null) { if (e.Result != "") { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result)); } else { if (GlobalFunction.IsSaveAndClose(refreshType)) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "CONTRACTTYPE")); } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "CONTRACTTYPE")); this.actions = FormTypes.Edit; } } RefreshUI(refreshType); } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.ToString())); } } catch (Exception ex) { ExceptionManager.SendException("添加合同类型Completed事件", "OA", "T_OA_CONTRACTTYPE", "添加合同类型返回错误", ex, ExceptionLevel.Middle, ExceptionType.Error); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } }