MxWeiXinPF.Web/shopmgr/setting/payment_list.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
namespace MxWeiXinPF.Web.shopmgr.setting
{
public partial class payment_list : Web.UI.ManagePage
{
protected string keywords = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ChkAdminLevel("order_payment", MXEnums.ActionEnum.View.ToString()); //检查权限
RptBind(" and id>0" + CombSqlTxt(keywords), "sort_id asc,id desc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
Model.wx_userweixin weixin = GetWeiXinCode();
_strWhere = " wid="+weixin.id+" " + _strWhere;
txtKeywords.Text = this.keywords;
BLL.payment bll = new BLL.payment();
this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby);
this.rptList.DataBind();
}
#endregion
#region 组合SQL查询语句==========================
protected string CombSqlTxt(string _keywords)
{
StringBuilder strTemp = new StringBuilder();
_keywords = _keywords.Replace("'", "");
if (!string.IsNullOrEmpty(_keywords))
{
strTemp.Append(" and title like '%" + _keywords + "%'");
}
return strTemp.ToString();
}
#endregion
//关健字查询
protected void btnSearch_Click(object sender, EventArgs e)
{
Response.Redirect(Utils.CombUrlTxt("payment_list.aspx", "keywords={0}", txtKeywords.Text));
}
//保存排序
protected void btnSave_Click(object sender, EventArgs e)
{
ChkAdminLevel("order_payment", MXEnums.ActionEnum.Edit.ToString()); //检查权限
后面还有 17 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
