/// <summary> /// 执法证统计 /// </summary> /// <returns></returns> public ActionResult CertificateReport() { var user = CurrentUser.CrmUser; //执法部门 var depts = _crmDeptBll.GetAllDetachment("all"); depts.Insert(0, new BaseDepartmentEntity { DepartmentId = "", FullName = "==全部==" }); ViewData["Depts"] = new SelectList(depts, "DepartmentId", "FullName", user.DeptId); //证件类型(执法证、监督证) var cardTypes = _comBll.GetSearchResult(new ComResourceEntity { ParentId = "0034" }).ToList(); cardTypes.Insert(0, new ComResourceEntity { Id = "", RsKey = "==全部==" }); ViewData["CardType"] = new SelectList(cardTypes, "Id", "RsKey"); return(View()); }
/// <summary> /// 编辑/详情 /// </summary> /// <returns></returns> public ActionResult Edit(string id) { var entity = new CrmDailyOneProblemEntity(); if (!string.IsNullOrEmpty(id)) { entity = _CrmDailyOneProblemBll.Get(id); } else { entity.Time = DateTime.Now; entity.RowStatus = 1; } //试题类型 var questionsTypeList = _comResourceBll.GetSearchResult(new ComResourceEntity { ParentId = "0069" }); ViewData["TypeList"] = new SelectList(questionsTypeList, "Id", "RsKey", entity.QuestionsTypeId); return(View(entity)); }