Exemplo n.º 1
0
        //进入页面
        public ActionResult PositionManage()
        {
            DictionaryLogic dictLogic = new DictionaryLogic();

            var PositionLevel = dictLogic.GetEnabledDictionaryItems(DictionaryLogic.PositionLevel);

            ViewBag.PositionLevel = new DropDownList(PositionLevel, DictionaryLogic.ValueField, DictionaryLogic.TextField, true).SetCustomText(" ");

            List <DepartmentSelectItem> dList;

            dictLogic.DepartmentDictionary(out dList, true);
            ViewBag.Departments = new SelectList(dList, "DepartmentId", "DepartmentName");

            return(View());
        }
Exemplo n.º 2
0
        //进入页面
        public ActionResult DepartmentManage()
        {
            DictionaryLogic dictLogic = new DictionaryLogic();

            List <DepartmentSelectItem> dList;

            dictLogic.DepartmentDictionary(out dList, false);
            ViewBag.parentDepartments = new DropDownList(dList, "DepartmentId", "DepartmentName", true).SetCustomText(" ");

            List <OrganizationSelectItem> oList;

            dictLogic.OrganizationDictionary(out oList, false);
            ViewBag.Organizations = new SelectList(oList, "OrganizationId", "OrganizationName");

            return(View());
        }