Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     wid    = MXRequest.GetQueryInt("wid");
     type   = MXRequest.GetQueryInt("type");
     openid = MXRequest.GetQueryString("openid");
     if (!IsPostBack)
     {
         BLL.wx_wq_yyOrder yoBll = new BLL.wx_wq_yyOrder();
         BLL.wx_wq_yuyue   yyBll = new BLL.wx_wq_yuyue();
         img = yyBll.GetModelList("type=" + type + " and wid=" + wid)[0].headpic;
         DataSet yyList = yoBll.GetList(string.Format(" wid={0} and openid='{1}' and yid={2}", wid, openid, type));
         this.rptList.DataSource = yyList;
         this.rptList.DataBind();
     }
 }
Ejemplo n.º 2
0
        private void RptBind(string _strWhere, string _orderby)
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            _strWhere        = "wId=" + weixin.id + " " + _strWhere;
            _strWhere       += " and yid=" + type;
            this.page        = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;

            this.rptList.DataSource = bll.GetList(this.pageSize, page, _strWhere, _orderby, out totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("orderMgr.aspx", "keywords={0}&page={1}&type={2}", this.keywords, "__id__", type.ToString());

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }