public ActionResult UserTypeList(int page = 1) { this.init(); SystemConfigureLib.UserTypeController usertypeController = new SystemConfigureLib.UserTypeController(); List<System.Collections.Hashtable> list = usertypeController.getAll(); ViewData["usertypes"] = list; ViewData["open_menu"] = "系统管理"; return View(); }
public ActionResult UserEdit(string id = null) { SystemConfigureLib.UserController userController = new SystemConfigureLib.UserController(); SystemConfigureLib.UserTypeController userTypeController = new SystemConfigureLib.UserTypeController(); SystemConfigureLib.DeptController deptController = new SystemConfigureLib.DeptController(); this.init(); if (id == null) { ViewData["title"] = "新增管理员"; } else { System.Collections.Hashtable user = userController.load(id); if (user != null) { ViewData["user"] = user; } ViewData["title"] = "编辑管理员"; } ViewData["open_menu"] = "系统管理"; List<System.Collections.Hashtable> depts = deptController.getAll(); ViewData["depts"] = depts; List<System.Collections.Hashtable> userType = userTypeController.getAll(); ViewData["user_type"] = userType; return View(); }