/// <summary> /// 薪增部门字典 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void client_DepartmentDictionaryAddCompleted(object sender, DepartmentDictionaryAddCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.strMsg == "Repetition") { // Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("REPETITIONTWOPARAS", "DEPARTMENTCODE,DEPARTMENTNAME")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("REPETITIONTWOPARAS", "DEPARTMENTCODE,DEPARTMENTNAME"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); RefreshUI(RefreshedTypes.HideProgressBar); return; } //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED")); if (needsubmit) { FormType = FormTypes.Edit; EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>(); entBrowser.FormType = FormTypes.Edit; RefreshUI(RefreshedTypes.AuditInfo); client.DepartmentDictionaryUpdateAsync(this.DepartmentDictionary, "", "Edit"); return; } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDDATASUCCESSED"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); if (closeFormFlag) { RefreshUI(RefreshedTypes.Close); } else { FormType = FormTypes.Edit; EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>(); entBrowser.FormType = FormTypes.Edit; RefreshUI(RefreshedTypes.AuditInfo); } } RefreshUI(RefreshedTypes.All); } RefreshUI(RefreshedTypes.HideProgressBar); }
public void OnSubmitCompleted(AuditEventArgs.AuditResult args) { // RefreshUI(RefreshedTypes.ProgressBar); string state = ""; string UserState = "Audit"; string strMsg = ""; switch (args) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: state = Utility.GetCheckState(CheckStates.Approving); break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: state = Utility.GetCheckState(CheckStates.Approved); if (DepartmentDictionary.EDITSTATE == Convert.ToInt32(EditStates.PendingCanceled).ToString()) { DepartmentDictionary.EDITSTATE = Convert.ToInt32(EditStates.Canceled).ToString(); } else { DepartmentDictionary.EDITSTATE = Convert.ToInt32(EditStates.Actived).ToString(); } break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: state = Utility.GetCheckState(CheckStates.UnApproved); break; } if (DepartmentDictionary.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString()) { UserState = "Submit"; } DepartmentDictionary.CHECKSTATE = state; client.DepartmentDictionaryUpdateAsync(DepartmentDictionary, strMsg, UserState); }