Web/SignIn.aspx.cs

(完整代码) 1KB

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

namespace Web.Aspx
{
    public partial class SignIn : Web.UI.Members
    {
        public bool IsShow;
        public int Sum = 0;
        public int pcount;                      //总条数
        public int page;                        //当前页
        public int pagesize;                    //设置每页显示的大小
        protected void Page_Load(object sender, EventArgs e)
        {
            pagesize = 8;
            BLL.SignIn bll = new BLL.SignIn();
            Model.SignIn model = new Model.SignIn();
            int memberid = int.Parse(Session["MemberLogin_Id"].ToString());
            Sum = bll.GetCount("");
            if(bll.Exists(memberid))
            {
                model =bll.GetModel(bll.GetMaxId(memberid)-1);
                if (model.AddTime.Date == DateTime.Now.Date)
                {
                    IsShow = false;
                }
                else
                {
                    IsShow = true;
                }
            }
            else
            {
                IsShow=true;
            }
            if (!Page.IsPostBack)
            {
                RptBind("", "AddTime desc");
            }
        }
        #region 数据列表绑定
        private void RptBind(string strWhere, string orderby)
        {
            if (!int.TryParse(Request.Params["page"] as string, out this.page))
            {
                this.page = 0;
            }
            BLL.SignIn bll = new BLL.SignIn();
            //获得总条数
            this.pcount = bll.GetCount(strWhere);
            this.rptList.DataSource = bll.GetPageList(this.pagesize, this.page, strWhere, orderby);
            this.rptList.DataBind();
        }
        #endregion
    }
}

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

AI 解读 AI

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

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