/// <summary> /// Default action. /// </summary> /// <returns></returns> public ActionResult Index() { //Get Department name from DocumentManager and show into Drop down List which is in index var department = new DepartmentManager().List(false).OrderBy(a => a.DepartmentName); ViewBag.DepartmentsList = new SelectList(department, "DepartmentID", "DepartmentName"); var caseTypes = new CaseTypeManager().List().OrderBy(a => a.Name); ViewBag.CaseTypesList = new SelectList(caseTypes, "CaseTypeID", "Name"); LoadAssignToList(); return(View()); }
//解析分类名称 public string whattypename(string _cid) { CaseType _ct = new CaseTypeManager().GetCaseTypeByID(Convert.ToInt32(_cid)); return(_ct.CTName); }
/// <summary> /// 获取大分类的名称GetCaseTypeByID /// </summary> public string GetModelName(string _mid) { CaseType _CT = new CaseTypeManager().GetCaseTypeByID(Convert.ToInt32(_mid)); return(_CT.CTName); }