地铁二期项目正式开始

Proc_Pagination.cs 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Data;
  6. namespace YTSoft.BaseCallCenter.DAL
  7. {
  8. public class Proc_Pagination
  9. {
  10. public Proc_Pagination()
  11. {}
  12. /// <summary>
  13. /// 分页获取数据
  14. /// </summary>
  15. /// <param name="PageSize"></param>
  16. /// <param name="PageIndex"></param>
  17. /// <param name="strWhere"></param>
  18. /// <returns></returns>
  19. public DataTable GetListPager(string viewtable,string viewKey,string searchField,string sortStr, string WhereStr, int PageSize, int PageIndex, bool IsCount, out int RecordCount)
  20. {
  21. DataTable dt = DBUtility.DbHelperSQL.RunPagination(viewtable,
  22. viewKey,
  23. searchField,
  24. WhereStr,
  25. sortStr,
  26. PageSize,
  27. PageIndex,
  28. IsCount,
  29. out RecordCount
  30. );
  31. return dt;
  32. }
  33. }
  34. }