예제 #1
0
        private void BindProductSaleRanking()
        {
            SaleStatisticsQuery productSale = new SaleStatisticsQuery();

            productSale.StartDate = this.dateStart;
            productSale.EndDate   = this.dateEnd;
            productSale.PageSize  = this.pager.PageSize;
            productSale.PageIndex = this.pager.PageIndex;
            productSale.SortBy    = "ProductSaleCounts";
            productSale.SortOrder = SortAction.Desc;
            int       totalProductSales = 0;
            DataTable productSales      = SubsiteSalesHelper.GetProductSales(productSale, out totalProductSales);

            this.grdProductSaleStatistics.DataSource = productSales;
            this.grdProductSaleStatistics.DataBind();
            this.pager.TotalRecords = totalProductSales;
        }