Пример #1
0
 public static List <User> User_SelectPage(SystemUserSearchInfo search, int pageIndex, int pageSize, out int rowCount)
 {
     using (SystemDAL access = new SystemDAL())
     {
         return(access.User_SelectPage("*", pageIndex, pageSize, search.DefaultOrder, search.ToWhereString(), out rowCount));
     }
 }
Пример #2
0
        public ActionResult UserListView()
        {
            int page     = Request["page"].ToString().ToInt32(1);
            int pageSize = Request["pagesize"].ToString().ToInt32(15);
            //搜索关键字
            string u_name = Request["u_name"] ?? string.Empty;

            int rowCount;
            //查询所有的模块
            SystemUserSearchInfo search = new SystemUserSearchInfo()
            {
                u_username = u_name
            };
            List <User> list = SystemSeviceClass.User_SelectPage(search, page, pageSize, out rowCount);

            ViewData["list"] = list;

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


            return(PartialView());
        }