Example #1
0
        void BindCountDown()
        {
            GroupBuyQuery query = new GroupBuyQuery();

            query.ProductName = productName;
            query.PageIndex   = pager.PageIndex;
            query.PageSize    = pager.PageSize;
            query.SortBy      = "DisplaySequence";
            query.SortOrder   = SortAction.Desc;
            DbQueryResult countDownList = SubsitePromoteHelper.GetCountDownList(query);

            grdCountDownsList.DataSource = countDownList.Data;
            grdCountDownsList.DataBind();
            pager.TotalRecords  = countDownList.TotalRecords;
            pager1.TotalRecords = countDownList.TotalRecords;
        }
Example #2
0
        private void BindCountDown()
        {
            DbQueryResult countDownList = SubsitePromoteHelper.GetCountDownList(new GroupBuyQuery
            {
                ProductName = this.productName,
                PageIndex   = this.pager.PageIndex,
                PageSize    = this.pager.PageSize,
                SortBy      = "DisplaySequence",
                SortOrder   = SortAction.Desc
            });

            this.grdCountDownsList.DataSource = countDownList.Data;
            this.grdCountDownsList.DataBind();
            this.pager.TotalRecords  = countDownList.TotalRecords;
            this.pager1.TotalRecords = countDownList.TotalRecords;
        }