JCK.Web/declaration/open/openDec_d_box.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace JCK.Web.declaration.open
{
public partial class openDec_d_box : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
rptBind();
}
}
#region 数据绑定=================================
private void rptBind()
{
DAL.DAL_DEC_DETAIL bll = new DAL.DAL_DEC_DETAIL();
// Model.Online_User on_u = GetUserInfo();
//Model.Info info = GetInfo();
string gl_id = Request.QueryString["gl_id"];
string where = " gl_id='" + gl_id + "' ";
//string where = " gl_id='" + gl_id + "' and guid not in(select DLD_guid from DEC_BOX_DETAIL_DEC where gl_id='" + gl_id + "')";
//if (info.isadmin == "0")
// where += " and ParentNo = '" + on_u.BH + "'";
DataTable dt = bll.GetList(where).Tables[0];
pager_rpt.PageSize = 10;
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
//分页
protected void pager_rpt_PageChanged(object sender, EventArgs e)
{
rptBind();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
