JCK.Web/users/user_list.aspx.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.Data;
using JCK.Common;
namespace JCK.Web.user
{
public partial class user_list : JCK.Web.UI.ManagePage
{
protected string keywords;
int pageSize = 10;
protected void Page_Load(object sender, EventArgs e)
{
//this.keywords = CRequest.GetQueryString("txtKeywords").Trim();
if (!IsPostBack)
{
ChkAdminLevel("lxr", CEnums.ActionEnum.View.ToString()); //检查权限
rptBind();
}
}
#region 数据绑定=================================
private void rptBind()
{
string where = "1=1 ";
Model.Info model2 = GetInfo();
if (model2.isadmin != "1")
{
DAL.Offline_Customer bll_user = new DAL.Offline_Customer();
where += " and BH= '" + bll_user.GetBH(model2.userid) + "' ";
}
this.keywords = txtKeywords.Text;
if (keywords != "")
where += " and LXRName like '%" + keywords + "%'";
DAL.lxr bll = new DAL.lxr();
DataTable dt = bll.GetList(where).Tables[0];
pager_rpt.PageSize = pageSize;
PagedDataSource pds = new PagedDataSource();
pager_rpt.RecordCount = dt.Rows.Count;
pds.DataSource = dt.DefaultView;
pds.CurrentPageIndex = pager_rpt.CurrentPageIndex - 1;
pds.PageSize = pager_rpt.PageSize;
pds.AllowPaging = true;
rptList.DataSource = pds;
rptList.DataBind();
}
#endregion
//分页
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
