public ActionResult ModuleListView() { int page = Request["page"].ToString().ToInt32(1); int pageSize = Request["pagesize"].ToString().ToInt32(15); //搜索关键字 int? m_parent = Request["m_parent"].ToInt32(0) == 0 ? (int?)null : Request["m_parent"].ToInt32(); string m_g_gid = Request["m_g_gid"] ?? string.Empty; string m_name = Request["m_name"] ?? string.Empty; int rowCount; //查询所有的模块 SystemModuleSearchInfo search = new SystemModuleSearchInfo() { m_g_gid = m_g_gid, m_parent = m_parent, m_name = m_name }; List <SystemModual> list = SystemSeviceClass.SystemModual_SelectPage(search, page, pageSize, out rowCount); ViewData["list"] = list; ViewData["page"] = page; ViewData["pageSize"] = pageSize; ViewData["rowCount"] = rowCount; return(PartialView()); }
/// <summary> /// 分页查询系统所有权限模块信息 /// </summary> /// <param name="cloumns"></param> /// <param name="pageIndex"></param> /// <param name="pageSize"></param> /// <param name="orderBy"></param> /// <param name="where"></param> /// <param name="rowCount"></param> /// <returns></returns> public static List <SystemModual> SystemModual_SelectPage(SystemModuleSearchInfo search, int pageIndex, int pageSize, out int rowCount) { using (SystemDAL access = new SystemDAL()) { return(access.SystemModual_SelectPage("*", pageIndex, pageSize, search.DefaultOrder, search.ToWhereString(), out rowCount)); } }
public ActionResult PerModuleListView() { int rowCount; //查询所有的模块 string ruid = Request["ruid"] ?? string.Empty; SystemModuleSearchInfo search = new SystemModuleSearchInfo(); List <SystemModual> moduleList = SystemSeviceClass.SystemModual_SelectPage(search, 1, 100, out rowCount); ViewData["moduleList"] = moduleList; ViewBag.ruid = ruid; return(PartialView()); }
//查询对应模块组下的一级元素 public ActionResult ModuleSearch() { string g_gid = Request["g_gid"] ?? string.Empty; int? m_parent = (Request["m_parent"] ?? string.Empty) == string.Empty ? (int?)null : Request["m_parent"].ToInt32(); SystemModuleSearchInfo search = new SystemModuleSearchInfo() { m_g_gid = g_gid, m_parent = m_parent }; int rowCount; List <SystemModual> list = SystemSeviceClass.SystemModual_SelectPage(search, 1, 100, out rowCount); return(Json(list, "text/html", JsonRequestBehavior.AllowGet)); }
public ActionResult ModuleList() { SystemGroupSearchInfo groupSearch = new SystemGroupSearchInfo(); int rowcount; //查询所有模块组下的,所有的模块信息 List <SystemGroup> groupList = SystemSeviceClass.SystemGroup_SelectPage(groupSearch, 1, 100, out rowcount); //查询所有模块信息 SystemModuleSearchInfo search = new SystemModuleSearchInfo(); List <SystemModual> moduleList = SystemSeviceClass.SystemModual_SelectPage(search, 1, 1000, out rowcount); ViewData["groupList"] = groupList; ViewData["moduleList"] = moduleList; return(View()); }