Example #1
0
        public void GetParameterList(string strSql)
        {
            GiftExchange bllGiftExchange = new GiftExchange();
            int          Counts          = this.NetPagerParameter.RecordCount;

            strSql += " and GiftExchange.ExchangeStatus=2 and GiftExchange.MemID=Mem.MemID and GiftExchange.ExchangeUserID = SysUser.UserID and SysUser.UserShopID = SysShop.ShopID";
            strSql  = PubFunction.GetShopAuthority(this._UserShopID, "MemShopID", strSql);
            DataTable db = bllGiftExchange.GetListSP(this.NetPagerParameter.PageSize, this.NetPagerParameter.CurrentPageIndex, out Counts, new string[]
            {
                strSql
            }).Tables[0];

            this.NetPagerParameter.RecordCount    = Counts;
            this.NetPagerParameter.CustomInfoHTML = string.Format("<div class=\"results\"><span>当前第{0}/{1}页 共{2}条记录 每页{3}条</span></div>", new object[]
            {
                this.NetPagerParameter.CurrentPageIndex,
                this.NetPagerParameter.PageCount,
                this.NetPagerParameter.RecordCount,
                this.NetPagerParameter.PageSize
            });
            this.r_GiftExChange.DataSource = db;
            this.r_GiftExChange.DataBind();
            PageBase.BindSerialRepeater(this.r_GiftExChange, this.NetPagerParameter.PageSize * (this.NetPagerParameter.CurrentPageIndex - 1));
        }