private void LoadTradeDataList(System.DateTime BeginDate, int Days) { System.Data.DataTable trendDataList_FX = ShopStatisticHelper.GetTrendDataList_FX(BeginDate, Days); this.DateList = ""; int num = 0; foreach (System.Data.DataRow dataRow in trendDataList_FX.Rows) { this.DateList = this.DateList + "'" + System.Convert.ToDateTime(dataRow["RecDate"].ToString()).ToString("yyyy-MM-dd") + "'"; this.QtyList1 += base.GetFieldIntValue(dataRow, "NewAgentCount"); this.QtyList2 += base.GetFieldDecimalValue(dataRow, "FXAmountFee"); this.QtyList3 += base.GetFieldDecimalValue(dataRow, "FXCommisionFee"); if (num < Days - 1) { this.DateList += ","; this.QtyList1 += ","; this.QtyList2 += ","; this.QtyList3 += ","; } num++; } }
private void LoadTradeDataList(DateTime BeginDate, int Days) { DataTable table = ShopStatisticHelper.GetTrendDataList_FX(BeginDate, Days); this.DateList = ""; int num = 0; foreach (DataRow row in table.Rows) { this.DateList = this.DateList + "'" + Convert.ToDateTime(row["RecDate"].ToString()).ToString("yyyy-MM-dd") + "'"; this.QtyList1 = this.QtyList1 + base.GetFieldIntValue(row, "NewAgentCount"); this.QtyList2 = this.QtyList2 + base.GetFieldDecimalValue(row, "FXAmountFee"); this.QtyList3 = this.QtyList3 + base.GetFieldDecimalValue(row, "FXCommisionFee"); if (num < (Days - 1)) { this.DateList = this.DateList + ","; this.QtyList1 = this.QtyList1 + ","; this.QtyList2 = this.QtyList2 + ","; this.QtyList3 = this.QtyList3 + ","; } num++; } }