• 分页


    public int PageCount {
                get {
                    if (dataSource == null)
                        return 0;

                    int dataSourceItemCount = DataSourceCount;
                    if (IsPagingEnabled && (dataSourceItemCount > 0)) {
                        int pageCountNum = dataSourceItemCount + pageSize - 1;
                        if (pageCountNum < 0) {
                            return 1;   // integer overflow
                        }
                        return (int)(pageCountNum/pageSize);
                    }
                    else {
                        return 1;
                    }
                }
            }

  • 相关阅读:
    Zookeeper服务器启动
    BeanFactoryPostProcessor
    ZK简介
    自定义标签解析
    高性能MySQL
    Redis原理
    ApplicationContext
    ThreadPoolExecutor
    NW.js构建PC收银端安装程序的指南
    NW.js安装原生node模块node-printer控制打印机
  • 原文地址:https://www.cnblogs.com/xueyuan299/p/1856792.html
Copyright © 2020-2023  润新知