예제 #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);
 }