private static PriceRowBase GetPriceInformation(DateTimeOffset startAt, DateTimeOffset endAt, PriceListRowType rowType, List <PriceListRow> prices)
        {
            PriceListRow priceInfo = prices.Single(r => r.PriceListRowType == rowType);
            var          priceTime = new PriceRowBase
            {
                StartAt      = startAt,
                EndAt        = endAt,
                PriceRowType = PriceRowType.InterpreterCompensation
            };

            priceTime.Quantity = priceTime.Minutes / priceInfo.MaxMinutes;
            if (priceTime.Minutes % priceInfo.MaxMinutes > 0)
            {
                priceTime.Quantity++;
            }
            priceTime.PriceListRow = priceInfo;
            priceTime.Price        = priceInfo.Price;
            return(priceTime);
        }
Esempio n. 2
0
 public PriceListRowChangeEvent(PriceListRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow    = row;
     this.eventAction = action;
 }