Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        public ActionResult ModuleEditView()
        {
            string       m_gid  = Request["m_gid"] ?? string.Empty;
            string       window = Request["window"] ?? string.Empty;
            SystemModual info   = null;

            if (string.IsNullOrEmpty(m_gid))
            {
                info = new SystemModual();
            }
            else
            {
                info = SystemSeviceClass.SystemModual_SelectBym_gid(m_gid);
            }
            SystemGroupSearchInfo groupSearch = new SystemGroupSearchInfo();
            int rowCount;
            List <SystemGroup> gList = SystemSeviceClass.SystemGroup_SelectPage(groupSearch, 1, 100, out rowCount);

            ViewData["window"] = window;
            ViewData["gList"]  = gList;
            ViewData["info"]   = info;
            return(View());
        }
Esempio n. 3
0
        public ActionResult GoupListView()
        {
            int page     = Request["page"].ToString().ToInt32(1);
            int pageSize = Request["pagesize"].ToString().ToInt32(15);
            //搜索关键字
            string g_name = Request["g_name"] ?? string.Empty;

            int rowCount;
            //查询所有的模块
            SystemGroupSearchInfo search = new SystemGroupSearchInfo()
            {
                g_name = g_name
            };
            List <SystemGroup> list = SystemSeviceClass.SystemGroup_SelectPage(search, page, pageSize, out rowCount);

            ViewData["list"] = list;

            ViewData["page"]     = page;
            ViewData["pageSize"] = pageSize;
            ViewData["rowCount"] = rowCount;

            return(PartialView());
        }