MxWeiXinPF.Web/admin/ucard/user_score.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using System.Text;
using System.Data;

namespace MxWeiXinPF.Web.admin.ucard
{
    public partial class user_score : Web.UI.ManagePage
    {
        protected int totalCount;
        protected int page;
        protected int pageSize;
        protected int sid = 0;//店铺主键id
        protected int id = 0;
        BLL.wx_ucard_users uBll = new BLL.wx_ucard_users();
        BLL.wx_ucard_users_consumeinfo cBll = new BLL.wx_ucard_users_consumeinfo();
        protected string keywords = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = MXRequest.GetQueryString("keywords");
            sid = MyCommFun.RequestInt("sid");
            id = MyCommFun.RequestInt("id");
            if (sid == 0 || id==0)
            {
                JscriptMsg("传输参数不正确!", "back", "Error");
                return;
            }
            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {

                RptBind(CombSqlTxt(keywords), "addTime desc");
            }
        }

        #region 数据绑定=================================
        private void RptBind(string _strWhere, string _orderby)
        {
            //绑定用户的基本信息
            Model.wx_ucard_users user = uBll.GetModel(id);
            lblrealName.Text = user.realName;
            lblCardNo.Text = user.cardNo;
            lblTel.Text = user.mobile;
            lblAddr.Text = user.addr;

            //绑定消费积分信息
            _strWhere = "c.sId=" + sid + " and  c.uid="+id+" " + _strWhere;
            this.page = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            DataSet ds = cBll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
 
            this.rptList.DataSource = ds;
            this.rptList.DataBind();

后面还有 72 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。