Esempio n. 1
0
 public TripsByWeekdayRow(TripsByDistDurCatRow distanceDurationCategory, DataRow dr, Dictionary <string, int> colnbr)
 {
     DistanceDurationCategory = distanceDurationCategory;
     WeekdayName    = new WeekdayNameDimension(dr, colnbr);
     Bikes          = new BikesMeasure(dr, colnbr);
     SubscriberList = new TripsBySubscriberList();
 }
Esempio n. 2
0
        internal void UpdateForDR(TripsByDistDurCatRow distdurcat, DataRow dr, Dictionary <string, int> colnbr)
        {
            TripsByWeekdayRow weekday = new TripsByWeekdayRow(distdurcat, dr, colnbr);
            TripsByWeekdayRow selweekday;

            if (Exists(x =>
                       x.WeekdayName.MemberUniqueName == weekday.WeekdayName.MemberUniqueName))
            {
                selweekday = Find(x =>
                                  x.WeekdayName.MemberUniqueName == weekday.WeekdayName.MemberUniqueName);
                selweekday.Bikes.IncValue(weekday.Bikes.GetValue());
            }
            else
            {
                Add(weekday);
                selweekday = weekday;
            }
            selweekday.SubscriberList.UpdateForDR(weekday, dr, colnbr);
        }