private void BindData() { OrderStatisticsQuery orderStatisticsQuery = new OrderStatisticsQuery(); orderStatisticsQuery.BeginDate = this.BeginDate; orderStatisticsQuery.EndDate = this.EndDate; orderStatisticsQuery.PageIndex = this.pager.PageIndex; orderStatisticsQuery.PageSize = this.pager.PageSize; orderStatisticsQuery.SortOrder = SortAction.Desc; orderStatisticsQuery.SortBy = "SaleAmountFee"; Globals.EntityCoding(orderStatisticsQuery, true); DbQueryResult dbQueryResult = ShopStatisticHelper.Product_GetStatisticReport(orderStatisticsQuery); this.rptList.DataSource = dbQueryResult.Data; this.rptList.DataBind(); this.pager.TotalRecords = dbQueryResult.TotalRecords; }
private void BindData() { OrderStatisticsQuery entity = new OrderStatisticsQuery { BeginDate = this.BeginDate, EndDate = this.EndDate, PageIndex = this.pager.PageIndex, PageSize = this.pager.PageSize, SortOrder = SortAction.Desc, SortBy = "SaleAmountFee" }; Globals.EntityCoding(entity, true); DbQueryResult result = ShopStatisticHelper.Product_GetStatisticReport(entity); this.rptList.DataSource = result.Data; this.rptList.DataBind(); this.pager.TotalRecords = result.TotalRecords; }