public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args) { string state = ""; string UserState = "Audit"; 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); ssc.EmployeeAddSumByEmployeeIDDeleteAsync(delteWelfarePaymentDetail, Year, Month); //删除薪资中的相关福利发放数据 break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: //审核未通过 state = Utility.GetCheckState(CheckStates.UnApproved); break; } if (InfoObj.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString()) { UserState = "Submit"; } InfoObj.CHECKSTATE = state; BenefitsAdministration.UpdateWelfarePaymentWithdrawalAsync(InfoObj, UserState); }