コード例 #1
0
 public ExcelResult <LogEntity> ExportExcelTest(int currentPageIndex, int pageSize, LogEntityParams logEntityParams)
 {
     return(new ExcelResult <LogEntity>
     {
         DataList = LogEntityService.Page(currentPageIndex, pageSize, logEntityParams).PageDataList,
         FileName = "测试导出.xlsx"
     });
 }
コード例 #2
0
 public JsonResult Page(int currentPageIndex = 1, int pageSize = 20, LogEntityParams param = null)
 {
     return(MyJson(new Result {
         code = 0, data = Service.Page(currentPageIndex, pageSize, param)
     }));
 }
コード例 #3
0
 /// <summary>
 /// 分页查询“日志管理”模块,并返回查询结果
 /// </summary>
 /// <param name="currentPageIndex">当前页码</param>
 /// <param name="pageSize">每页显示的数据量</param>
 /// <param name="param">查询参数</param>
 /// <returns>返回“日志管理”模块的查询结果</returns>
 public MyPagedList <LogEntity> Page(int currentPageIndex = 1, int pageSize = 20, LogEntityParams param = null)
 {
     return(Repository.PageList(currentPageIndex, pageSize, param));
 }