CmsWeb/Admin/choujiang/ggkAwardUser.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cms.Common;
using System.Text;
using System.Data;
public partial class Admin_choujiang_ggkAwardUser : System.Web.UI.Page
{
protected int totalCount;
protected int page;
protected int pageSize;
Cms.BLL.wx_ggkAwardUser ubll = new Cms.BLL.wx_ggkAwardUser();
protected string keywords = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
this.keywords = DTRequest.GetQueryString("keywords");
int aid = MyCommFun.RequestInt("id");
if (aid <= 0)
{
JscriptMsg("传输参数不正确!", "back", "Error");
return;
}
this.pageSize = GetPageSize(10); //每页数量
if (!Page.IsPostBack)
{
RptBind(CombSqlTxt(keywords), "createDate desc,id desc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
int aid = MyCommFun.RequestInt("id");
_strWhere = "actid=" + aid + " " + _strWhere;
this.page = DTRequest.GetQueryInt("page", 1);
txtKeywords.Text = this.keywords;
DataSet ds = ubll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
this.rptList.DataSource = ds;
this.rptList.DataBind();
//绑定页码
txtPageNum.Text = this.pageSize.ToString();
string pageUrl = Utils.CombUrlTxt("ggkAwardUser.aspx?id=" + MyCommFun.RequestInt("id"), "keywords={0}&page={1}", this.keywords, "__id__");
PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
}
#endregion
#region 组合SQL查询语句==========================
protected string CombSqlTxt(string _keywords)
{
StringBuilder strTemp = new StringBuilder();
_keywords = _keywords.Replace("'", "");
后面还有 98 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
