日期:2014-05-18 浏览次数:21046 次
public DataTable _chartDataSchema; /// <summary> /// Chart数据源架构 /// </summary> public DataTable ChartDataSchema { get { if (_chartDataSchema == null) { _chartDataSchema = new DataTable(); DataColumn col = new DataColumn(); col.DataType = typeof(string); col.ColumnName = DataTimeColName; _chartDataSchema.Columns.Add(col); foreach (Pair p in SumColName) { col = new DataColumn(); col.DataType = typeof(decimal); col.ColumnName = p.First.ToString(); col.DefaultValue = 0; _chartDataSchema.Columns.Add(col); } } return _chartDataSchema; } set { _chartDataSchema = value; } }