分页后台

Posted menbe

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了分页后台相关的知识,希望对你有一定的参考价值。

private List<UserInfoModel> ShowPage()
{
//输入参数
PagePut pageput = new PagePut();
string tablename = " Biao a inner join HuXing b on a.HuXingID=b.HuXingID inner join DongHao c on c.DongHao=a.DongHao inner join JianZhu d on d.JianZhuID =a.JID inner join XiaoQu e on e.XiaoQuID=a.XiaoQuID inner join XingZhi f on f.XingZhiID=a.XingZhiID inner join ZhuangTai g on g.ZhuangTaiID=a.ZhuangTaiID";
pageput.tableName = tablename;
pageput.indexCol = "a.ID";
pageput.pageSize = size;
pageput.pageIndex = index;
pageput.orderCol = orderCol;
pageput.where = Where;
pageput.columns = " * ";

//输出参数
PageOut pageout = bll.DataBind(JsonConvert.SerializeObject(pageput));
count = pageout.tCount;//总条数
page = pageout.tPage;//总页数
ViewBag.count = count;
ViewBag.page = page;
ViewBag.index = index;
List<UserInfoModel> list = JsonConvert.DeserializeObject<List<UserInfoModel>>(JsonConvert.SerializeObject(pageout.tDt));
return list;
}





















以上是关于分页后台的主要内容,如果未能解决你的问题,请参考以下文章

jdbcTemplate 后台接口中的分页

遇到不同的分页插件 比如bootStrap paganation和jqGrid,但后台代码该怎么写

ecshop 后台分页功能

通用分页后台显示

SSH后台分页

关于分页前台页面+后台实现