public BlockIndicatorParams(DateTime startDate, DateTime endDate, CommonEnumerators.DateCycle cycle, CommonEnumerators.SortMode sort) { this._startDate = startDate; this._endDate = endDate; this._cycle = cycle; this._sort = sort; }
public static void SetValue(String blockCode, int indicatorCustomerId, DateTime dateTime, CommonEnumerators.DateCycle cycle, double v) { Dictionary <String, SortedList <int, SortedList <DateTime, double> > > dictionary = _blockSeriesDict; switch (cycle) { case CommonEnumerators.DateCycle.Week: dictionary = _blockSeriesWeekDict; break; case CommonEnumerators.DateCycle.Month: dictionary = _blockSeriesMonthDict; break; case CommonEnumerators.DateCycle.Year: dictionary = _blockSeriesYearDict; break; } if (!dictionary.ContainsKey(blockCode)) { dictionary[blockCode] = new SortedList <int, SortedList <DateTime, double> >(); } SortedList <int, SortedList <DateTime, double> > list = dictionary[blockCode]; if (!list.ContainsKey(indicatorCustomerId)) { list[indicatorCustomerId] = new SortedList <DateTime, double>(); } SortedList <DateTime, double> list2 = list[indicatorCustomerId]; list2[dateTime] = v; }