Exemple #1
0
        public ActionResult LoadMDictionaryType()
        {
            int pageSize = int.Parse(Request.Form["rows"]);
            //获取请求的页码
            int pageIndex             = int.Parse(Request.Form["page"]);
            int rowCount              = 0;
            M_DictionaryTypeBLL dtbll = new M_DictionaryTypeBLL();

            // 查询分页数据
            var list = dtbll.GetPagedList(pageIndex, pageSize, ref rowCount, p => p.TypeID.Length > 0, p => p.ID).Select(p => p.ToPOCO());

            // 生成规定格式的 json字符串发回 给异步对象
            Model.EasyUIModel.DataGridModel dgModel = new Model.EasyUIModel.DataGridModel()
            {
                total  = rowCount,
                rows   = list,
                footer = null
            };
            return(Json(dgModel));
        }
        public ActionResult LoadMDictionaryType()
        {
            int pageSize = int.Parse(Request.Form["rows"]);
            //获取请求的页码
            int pageIndex = int.Parse(Request.Form["page"]);
            int rowCount = 0;
            M_DictionaryTypeBLL dtbll = new M_DictionaryTypeBLL();

            // 查询分页数据
            var list = dtbll.GetPagedList(pageIndex, pageSize, ref rowCount, p => p.TypeID.Length > 0, p => p.ID).Select(p => p.ToPOCO());
            // 生成规定格式的 json字符串发回 给异步对象
            Model.EasyUIModel.DataGridModel dgModel = new Model.EasyUIModel.DataGridModel()
            {
                total = rowCount,
                rows = list,
                footer = null
            };
            return Json(dgModel);
        }