Esempio n. 1
0
        /// <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());
        }
Esempio n. 2
0
        //解析分类名称
        public string whattypename(string _cid)
        {
            CaseType _ct = new CaseTypeManager().GetCaseTypeByID(Convert.ToInt32(_cid));

            return(_ct.CTName);
        }
Esempio n. 3
0
        /// <summary>
        /// 获取大分类的名称GetCaseTypeByID
        /// </summary>
        public string GetModelName(string _mid)
        {
            CaseType _CT = new CaseTypeManager().GetCaseTypeByID(Convert.ToInt32(_mid));

            return(_CT.CTName);
        }