Exemplo n.º 1
0
        protected void BindCouponList()
        {
            DbQueryResult couponsList = PromoteHelper.GetCouponsList(new CouponItemInfoQuery
            {
                CounponName  = this.couponName,
                OrderId      = this.couponOrder,
                CouponStatus = this.couponstatus,
                PageIndex    = this.pager.PageIndex,
                PageSize     = this.pager.PageSize,
                SortBy       = "GenerateTime",
                SortOrder    = SortAction.Desc
            });

            this.pager.TotalRecords    = couponsList.TotalRecords;
            this.grdCoupons.DataSource = couponsList.Data;
            this.grdCoupons.DataBind();
        }
Exemplo n.º 2
0
        protected void BindCouponList()
        {
            CouponItemInfoQuery couponquery = new CouponItemInfoQuery();

            couponquery.CounponName  = this.couponName;
            couponquery.OrderId      = this.couponOrder;
            couponquery.CouponStatus = this.couponstatus;
            couponquery.PageIndex    = this.pager.PageIndex;
            couponquery.PageSize     = this.pager.PageSize;
            couponquery.SortBy       = "GenerateTime";
            couponquery.SortOrder    = SortAction.Desc;
            DbQueryResult couponsList = PromoteHelper.GetCouponsList(couponquery);

            this.pager.TotalRecords    = couponsList.TotalRecords;
            this.grdCoupons.DataSource = couponsList.Data;
            this.grdCoupons.DataBind();
        }