public void OnSubmitCompleted(AuditEventArgs.AuditResult args) { auditsign = true; string state = ""; //Utility.UpdateCheckState("T_HR_KPIRECORDCOMPLAIN", "COMPLAINID", KPIRecordComplain.COMPLAINID, args); switch (args) { case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing: state = Utility.GetCheckState(CheckStates.Approving); kpirecord.COMPLAINSTATUS = "1"; break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful: state = Utility.GetCheckState(CheckStates.Approved); kpirecord.COMPLAINSTATUS = "2"; break; case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail: state = Utility.GetCheckState(CheckStates.UnApproved); kpirecord.COMPLAINSTATUS = "2"; break; } KPIRecordComplain.CHECKSTATE = state; client.CompainRecordUpdateAsync(KPIRecordComplain, "Audit"); }