Sysnet.EDP.HSE-Commerce.Web/admin/comment/list.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Sysnet.EDP.HSE_Commerce.Common;
namespace Sysnet.EDP.HSE_Commerce.Web.admin.comment
{
public partial class list : Sysnet.EDP.HSE_Commerce.Web.UI.ManagePage
{
protected int channel_id;
protected int totalCount;
protected int page;
protected int pageSize;
protected string property = string.Empty;
protected string keywords = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
this.channel_id = DTRequest.GetQueryInt("channel_id");
this.keywords = DTRequest.GetQueryString("keywords");
this.property = DTRequest.GetQueryString("property");
this.pageSize = GetPageSize(15); //每页数量
if (!Page.IsPostBack)
{
ChkAdminLevel("sys_comment", DTEnums.ActionEnum.View.ToString()); //检查权限
RptBind("id>0" + CombSqlTxt(this.channel_id, this.keywords, this.property), "add_time desc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
this.page = DTRequest.GetQueryInt("page", 1);
this.ddlProperty.SelectedValue = this.property;
this.txtKeywords.Text = this.keywords;
BLL.article_comment bll = new BLL.article_comment();
this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
this.rptList.DataBind();
//绑定页码
txtPageNum.Text = this.pageSize.ToString();
string pageUrl = Utils.CombUrlTxt("list.aspx", "channel_id={0}&keywords={1}&property={2}&page={3}",
this.channel_id.ToString(), this.keywords, this.property, "__id__");
PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
}
#endregion
#region 组合SQL查询语句==========================
protected string CombSqlTxt(int _channel_id, string _keywords, string _property)
{
StringBuilder strTemp = new StringBuilder();
if (_channel_id > 0)
{
strTemp.Append(" and channel_id=" + channel_id);
后面还有 104 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
