Exemplo n.º 1
0
        public void OnSubmitCompleted(AuditEventArgs.AuditResult args)
        {
            auditsign = true;
            RefreshUI(RefreshedTypes.ProgressBar);
            //Utility.UpdateCheckState("T_HR_EMPLOYEESALARYRECORD", "EMPLOYEESALARYRECORDID", SalaryRecord.EMPLOYEESALARYRECORDID, args);
            string state = "";

            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);
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                state = Utility.GetCheckState(CheckStates.UnApproved);
                break;
            }
            SalaryRecord.CHECKSTATE = state;
            SalaryRecord.EDITSTATE  = Convert.ToInt32(EditStates.Actived).ToString();
            //if (state == Utility.GetCheckState(CheckStates.UnApproved)) client.UndoRepaymentAsync(SalaryRecord.EMPLOYEEID, SalaryRecord.SALARYYEAR, SalaryRecord.SALARYMONTH);  //审核不通过撤消还款
            client.EmployeeSalaryRecordUpdateAsync(SalaryRecord);
        }