Example #1
0
        /// <summary>
        /// 重载审批退回/拒绝 通过,状态修改
        /// </summary>
        /// <param name="baseaduit">案件信息</param>
        /// <param name="creatUser">修改人</param>
        /// <param name="caseStatus">案件状态</param>
        /// <returns></returns>
        public bool ReturnAudit(BaseAudit baseaduit, string creatUser, string caseStatus)
        {
            var auditHelper = new AuditHelp();

            if (baseaduit != null)
            {
                return(auditHelper.CopyBaseAudit(baseaduit, creatUser, caseStatus) != string.Empty);
            }
            return(false);
        }
Example #2
0
        /// <summary>
        /// 放款
        /// </summary>
        /// <param name="auditid"></param>
        /// <param name="creatUser"></param>
        /// <returns></returns>
        public bool LendingAudit(string auditid, string creatUser)
        {
            AuditHelp ah        = new AuditHelp();
            var       baseaduit = this.Get(auditid);

            if (baseaduit != null && baseaduit.CaseStatus == CaseStatus.Lending)
            {
                return(ah.CopyBaseAudit(baseaduit, creatUser, CaseStatus.CloseCase) != string.Empty);
            }
            return(false);
        }
Example #3
0
        /// <summary>
        /// 审核审批退回
        /// </summary>
        /// <param name="auditid">案件ID</param>
        /// <param name="creatUser">人员</param>
        /// <returns></returns>
        public bool ReturnAudit(string auditid, string creatUser)
        {
            AuditHelp ah        = new AuditHelp();
            var       baseaduit = this.Get(auditid);

            if (baseaduit != null)
            {
                return(ah.CopyBaseAudit(baseaduit, creatUser, CaseStatus.FirstAudit) != string.Empty);
            }
            return(false);
        }
Example #4
0
        /// <summary>
        /// 通过案件
        /// </summary>
        /// <param name="auditid"></param>
        /// <param name="creatUser"></param>
        /// <returns></returns>
        public bool ApprovalAudit(string auditid, string creatUser)
        {
            //Test(auditid);
            //SaveChanges();

            var       baseaduit = this.Get(auditid);
            AuditHelp ah        = new AuditHelp();

            if (baseaduit != null && baseaduit.CaseStatus == CaseStatus.SecondAudit)
            {
                return(ah.CopyBaseAudit(baseaduit, creatUser, CaseStatus.PublicMortgage) != string.Empty);
            }
            return(false);
        }