示例#1
0
        private void RptBind(string _strWhere, string _orderby)
        {
            // Model.wx_userweixin weixin = GetWeiXinCode();

            //判断是否已经设置了微留言基本信息
            BLL.wx_diancai_desknum sbll = new BLL.wx_diancai_desknum();


            _strWhere        = "shopid=" + shopid + " " + _strWhere;
            this.page        = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            DataSet ds = gbll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);

            // DataSet ds = gbll.GetList( _strWhere);
            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                DataRow dr;

                int count = ds.Tables[0].Rows.Count;
                for (int i = 0; i < count; i++)
                {
                    dr = ds.Tables[0].Rows[i];
                }
                ds.AcceptChanges();
            }
            this.rptList.DataSource = ds;
            this.rptList.DataBind();

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

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
示例#2
0
        public void zhuohao(int shopid)
        {
            BLL.wx_diancai_desknum deskBll = new BLL.wx_diancai_desknum();
            DataSet zh = deskBll.GetListdesk(shopid);

            if (zh.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < zh.Tables[0].Rows.Count; i++)
                {
                    zhselect += "<option value=\"" + zh.Tables[0].Rows[i]["deskName"].ToString() + "\">" + zh.Tables[0].Rows[i]["deskName"].ToString() + "</option>";
                }
            }
        }
        private void RptBind(string _strWhere, string _orderby)
        {

            // Model.wx_userweixin weixin = GetWeiXinCode();

            //判断是否已经设置了微留言基本信息
            BLL.wx_diancai_desknum sbll = new BLL.wx_diancai_desknum();


            _strWhere = "shopid=" + shopid + " " + _strWhere;
            this.page = MXRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            DataSet ds = gbll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            // DataSet ds = gbll.GetList( _strWhere);
            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                DataRow dr;

                int count = ds.Tables[0].Rows.Count;
                for (int i = 0; i < count; i++)
                {
                    dr = ds.Tables[0].Rows[i];

                }
                ds.AcceptChanges();
            }
            this.rptList.DataSource = ds;
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("desk_number.aspx", "keywords={0}&page={1}&shopid={2}", this.keywords, "__id__", shopid.ToString());
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);


        }