public ActionResult AuditStartApply(string keyValue, AptitudeinvestigateauditEntity entity, string projectId, string result = "", string users = "") { var user = ERCHTMS.Code.OperatorProvider.Provider.Current(); StartapplyforBLL applyBll = new StartapplyforBLL(); var sl = applyBll.GetEntity(entity.APTITUDEID); string status = ""; var mp = new PeopleReviewBLL().CheckAuditPower(user, out status, "开工申请", projectId); if (mp != null) { if (sl != null) { sl.NodeName = mp.FLOWNAME; sl.NodeId = mp.ID; sl.AuditRole = mp.CHECKROLEID; applyBll.SaveForm(entity.APTITUDEID, sl); } } else { if (status == "1") { sl.NodeName = "审核完成"; sl.NodeId = ""; sl.IsOver = 1; } } if (entity.AUDITRESULT == "1") { sl.ISCOMMIT = "0"; sl.NodeName = ""; sl.NodeId = ""; sl.IsOver = 0; } if (!string.IsNullOrEmpty(result)) { sl.CheckResult = result; sl.CheckUsers = users; } if (applyBll.SaveForm(entity.APTITUDEID, sl)) { aptitudeinvestigateauditbll.AuditStartApply("", entity); } return(Success("操作成功。")); }