SenBiTeSolution.UI/Control/FenYeControl.ascx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

using SenBiTeSolution.Common;

namespace SenBiTeSolution.UI.Control
{
    public partial class FenYeControl : System.Web.UI.UserControl
    {
        int start = 1;
        int end = 10;
        int num = 10;               //显示几个分页
        int spiltNum = 5;           //分页间隔数
        public int currentPage = 1;       //当前页
        public int pageNum = 10;        //页总数
        public string prams;
        protected void Page_Load(object sender, EventArgs e)
        {
            BindSpiltPage();
        }

        protected void BindSpiltPage()
        {
            if (currentPage>pageNum)
            {
                currentPage = pageNum;
            }
            if (currentPage<1)
            {
                currentPage = 1;
            }

            if (pageNum>=1)
            {
                if (end>pageNum)
                {
                    end = pageNum;
                }
                bool isChange = currentPage >= num;
                if (isChange)
                {
                    if (currentPage+spiltNum>pageNum)
                    {
                        start = pageNum - (num - 1);
                        end = pageNum;
                    }
                    else
                    {
                        start = currentPage - (spiltNum - 1);
                        end = currentPage + spiltNum;
                    }
                }

                ArrayList list = new ArrayList();
                for (int i = start; i <=end ; i++)
后面还有 17 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。