myBook.Web/webAdmin/system/UserList.aspx.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myBook.BLL;
using System.Data;

public partial class webAdmin_system_UserList : System.Web.UI.Page
{

    userBLL ubll = new userBLL();

    protected void Page_Load(object sender, EventArgs e)
    {
        common.checkLogin("../Login.aspx");

        if (!IsPostBack)
        {
            this.Binduser();
        }
    }

    /// <summary>
    /// 搜索
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Button1_Click(object sender, EventArgs e)
    {
        this.Binduser();
    }


    /// <summary>
    /// 绑定用户
    /// </summary>
    private void Binduser()
    {
        string strWhere = "";

        if (this.addtime.Text != "" && this.endtime.Text != "" & this.txtName.Text != "")
        {
            strWhere += " addtime>='" + this.addtime.Text + "' and  addtime<='" + this.endtime.Text + "' and name like '%" + this.txtName.Text + "%'";
        }

        if (this.addtime.Text == "" && this.endtime.Text == "" & this.txtName.Text != "")
        {
            strWhere += " name like '%" + this.txtName.Text + "%'";
        }

        if (this.addtime.Text != "" && this.endtime.Text != "" & this.txtName.Text == "")
        {
            strWhere += " addtime>='" + this.addtime.Text + "' and  addtime<='" + this.endtime.Text + "'";
        }

        int pageIndex = this.hfPageIndex.Value != "" ? int.Parse(this.hfPageIndex.Value) : 1;

        int rowCount = ubll.GetRecordCount(strWhere);
后面还有 155 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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