private void BindData() { OrderStatisticsQuery entity = new OrderStatisticsQuery(); DateTime local1 = this.BeginDate.Value; entity.BeginDate = this.txtBeginDate.TextToDate; DateTime local2 = this.EndDate.Value; entity.EndDate = this.txtEndDate.TextToDate; entity.SortOrder = SortAction.Desc; entity.SortBy = "RecDate"; Globals.EntityCoding(entity, true); DataTable dtDist = ShopStatisticHelper.Member_GetInCreateReport(entity); TimeSpan span = entity.EndDate.Value - entity.BeginDate.Value; this.lastDay = span.Days + 1; this.LoadTradeDataList(dtDist, this.BeginDate.Value, this.lastDay); }
private void BindData() { OrderStatisticsQuery orderStatisticsQuery = new OrderStatisticsQuery(); OrderStatisticsQuery arg_1E_0 = orderStatisticsQuery; System.DateTime arg_12_0 = this.BeginDate.Value; arg_1E_0.BeginDate = this.txtBeginDate.TextToDate; OrderStatisticsQuery arg_3B_0 = orderStatisticsQuery; System.DateTime arg_2F_0 = this.EndDate.Value; arg_3B_0.EndDate = this.txtEndDate.TextToDate; orderStatisticsQuery.SortOrder = SortAction.Desc; orderStatisticsQuery.SortBy = "RecDate"; Globals.EntityCoding(orderStatisticsQuery, true); System.Data.DataTable dtDist = ShopStatisticHelper.Member_GetInCreateReport(orderStatisticsQuery); this.lastDay = (orderStatisticsQuery.EndDate.Value - orderStatisticsQuery.BeginDate.Value).Days + 1; this.LoadTradeDataList(dtDist, this.BeginDate.Value, this.lastDay); }