Пример #1
0
 public Aggregates(int count, float weight, decimal value, float volume, float documentWeight)
 {
     Count          = new SumHolder <int>(count);
     Weight         = new SumHolder <float>(weight);
     DocumentWeight = new SumHolder <float>(documentWeight);
     Value          = new SumHolder <decimal>(value);
     Volume         = new SumHolder <float>(volume);
 }
Пример #2
0
			public Aggregates(int count, float weight, decimal value, float volume, float documentWeight)
			{
				Count = new SumHolder<int>(count);
				Weight = new SumHolder<float>(weight);
				DocumentWeight = new SumHolder<float>(documentWeight);
				Value = new SumHolder<decimal>(value);	
				Volume = new SumHolder<float>(volume);
			}
Пример #3
0
			public Aggregates(CalculationItem[] items)
			{
				Count = new SumHolder<int>(items.Sum(x => x.Count ?? 0));
				Weight = new SumHolder<float>(items.Sum(x => x.Weight ?? 0));
				Value = new SumHolder<decimal>(items.Sum(x => x.Value));
				TotalTariffCost = new SumHolder<decimal>(items.Sum(x => x.TotalTariffCost));
				TotalSenderRate = new SumHolder<decimal>(items.Sum(x => x.TotalSenderRate));
				ScotchCost = new SumHolder<decimal>(items.Sum(x => x.ScotchCost ?? 0));
				TransitCost = new SumHolder<decimal>(items.Sum(x => x.TransitCost ?? 0));
				InsuranceCost = new SumHolder<decimal>(items.Sum(x => x.InsuranceCost));
				Profit = new SumHolder<decimal>(items.Sum(x => x.Profit));
			}
Пример #4
0
 public Aggregates(CalculationItem[] items)
 {
     Count           = new SumHolder <int>(items.Sum(x => x.Count ?? 0));
     Weight          = new SumHolder <float>(items.Sum(x => x.Weight ?? 0));
     Value           = new SumHolder <decimal>(items.Sum(x => x.Value));
     TotalTariffCost = new SumHolder <decimal>(items.Sum(x => x.TotalTariffCost));
     TotalSenderRate = new SumHolder <decimal>(items.Sum(x => x.TotalSenderRate));
     ScotchCost      = new SumHolder <decimal>(items.Sum(x => x.ScotchCost ?? 0));
     TransitCost     = new SumHolder <decimal>(items.Sum(x => x.TransitCost ?? 0));
     InsuranceCost   = new SumHolder <decimal>(items.Sum(x => x.InsuranceCost));
     Profit          = new SumHolder <decimal>(items.Sum(x => x.Profit));
 }
Пример #5
0
			public Aggregates(SenderCalculationItem[] items)
			{
				Profit = new SumHolder<decimal>(items.Sum(x => x.Profit));
				TotalSenderRate = new SumHolder<decimal>(items.Sum(x => x.TotalSenderRate));

				Count = new SumHolder<int>(items.Sum(x => x.Count ?? 0));
				Weight = new SumHolder<float>(items.Sum(x => x.Weight ?? 0));
				Value = new SumHolder<decimal>(items.Sum(x => x.Value));
				SenderScotchCost = new SumHolder<decimal>(items.Sum(x => x.SenderScotchCost ?? 0));
				PickupCost = new SumHolder<decimal>(items.Sum(x => x.PickupCost ?? 0));
				FactureCost = new SumHolder<decimal>(items.Sum(x => x.FactureCost ?? 0));
				FactureCostEx = new SumHolder<decimal>(items.Sum(x => x.FactureCostEx ?? 0));
			}
Пример #6
0
            public Aggregates(SenderCalculationItem[] items)
            {
                Profit          = new SumHolder <decimal>(items.Sum(x => x.Profit));
                TotalSenderRate = new SumHolder <decimal>(items.Sum(x => x.TotalSenderRate));

                Count            = new SumHolder <int>(items.Sum(x => x.Count ?? 0));
                Weight           = new SumHolder <float>(items.Sum(x => x.Weight ?? 0));
                Value            = new SumHolder <decimal>(items.Sum(x => x.Value));
                SenderScotchCost = new SumHolder <decimal>(items.Sum(x => x.SenderScotchCost ?? 0));
                PickupCost       = new SumHolder <decimal>(items.Sum(x => x.PickupCost ?? 0));
                FactureCost      = new SumHolder <decimal>(items.Sum(x => x.FactureCost ?? 0));
                FactureCostEx    = new SumHolder <decimal>(items.Sum(x => x.FactureCostEx ?? 0));
            }
Пример #7
0
			public Aggregates(decimal sumProfit)
			{
				Profit = new SumHolder<decimal>(sumProfit);
			}
Пример #8
0
 public Aggregates(decimal sumProfit)
 {
     Profit = new SumHolder <decimal>(sumProfit);
 }