Beispiel #1
0
        /// <summary>
        /// 采用ajax获取数据
        /// </summary>
        /// <param name="index">页码</param>
        /// <param name="size">显示条数</param>
        /// <param name="total">总条数</param>
        /// <param name="jsClass">js翻页代码(index.page)</param>
        /// <param name="numLableVisible">共 {0} 条  第 {1} / {2} 页是否可见</param>
        /// <returns></returns>
        public static string CreatePagerByAjax(int index, int size, int total, string jsClass, bool numLableVisible)
        {
            PagerHelper p = new PagerHelper(index, size, total, jsClass, null, null, null, numLableVisible, null, null, null, null, null, true);

            return(p.GetHtml());
        }
Beispiel #2
0
        /// <summary>
        /// 采用ajax获取数据
        /// </summary>
        /// <param name="index">页码</param>
        /// <param name="size">显示条数</param>
        /// <param name="total">总条数</param>
        /// <param name="jsClass">js翻页代码(index.page)</param>
        /// <param name="numLableFormat"></param>
        /// <param name="numButton"></param>
        /// <param name="numLableVisible"></param>
        /// <param name="numButtonVisible"></param>
        /// <param name="firstPageVisible"></param>
        /// <param name="prevPageVisible"></param>
        /// <param name="nextPageVisible"></param>
        /// <param name="lastPageVisible"></param>
        /// <returns></returns>
        public static string CreatePagerByAjax(int index, int size, int total, string jsClass, string numLableFormat, int numButton, bool numLableVisible, bool numButtonVisible, bool firstPageVisible, bool prevPageVisible, bool nextPageVisible, bool lastPageVisible)
        {
            PagerHelper p = new PagerHelper(index, size, total, jsClass, null, numLableFormat, new int?(numButton), new bool?(numLableVisible), new bool?(numButtonVisible), new bool?(firstPageVisible), new bool?(prevPageVisible), new bool?(nextPageVisible), new bool?(lastPageVisible), true);

            return(p.GetHtml());
        }
Beispiel #3
0
        public static string CreatePagerByUrl(int index, int size, int total, string url)
        {
            PagerHelper p = new PagerHelper(index, size, total, null, url, null, null, null, null, null, null, null, null, false);

            return(p.GetHtml());
        }