Пример #1
0
        public AllocationDataResult CreateAllocation(AllocationData allocation)
        {
            var allocateData = new AllocationDataResult();

            allocateData.Premium = allocation.Premium;

            allocateData.OriginalDueDate = new DateTime(2010, 1, 1);

            allocateData.Costs = new CostData();
            allocateData.Costs.MonthlyBillingFixedInternalCost        = 38;
            allocateData.Costs.BillingInternalCost                    = 55;
            allocateData.Costs.MonthlyBillingFixedRunningRemuneration = 63;
            allocateData.Costs.MonthlyBillingFixedEstablishment       = 53;
            allocateData.Costs.MonthlyBillingRegistration             = 2;

            allocateData.PremiumInternalCost  = 1;
            allocateData.PremiumRemuneration  = 2;
            allocateData.PremiumRegistration  = 332;
            allocateData.PremiumEstablishment = 14;

            allocateData.PremiumInternalCostBeforeDiscount = 57;
            allocateData.PremiumInternalCostAfterDiscount  = 37;

            allocateData.Tax = allocation.Tax;
            return(allocateData);
        }
        public AllocationDataResult CreateAllocation(AllocationData allocation)
        {
            var allocateData = new AllocationDataResult();
            allocateData.Premium = allocation.Premium;

            allocateData.OriginalDueDate = new DateTime(2010, 1, 1);

            allocateData.Costs = new CostData();
            allocateData.Costs.MonthlyBillingFixedInternalCost = 38;
            allocateData.Costs.BillingInternalCost = 55;
            allocateData.Costs.MonthlyBillingFixedRunningRemuneration = 63;
            allocateData.Costs.MonthlyBillingFixedEstablishment = 53;
            allocateData.Costs.MonthlyBillingRegistration = 2;

            allocateData.PremiumInternalCost = 1;
            allocateData.PremiumRemuneration = 2;
            allocateData.PremiumRegistration = 332;
            allocateData.PremiumEstablishment = 14;

            allocateData.PremiumInternalCostBeforeDiscount = 57;
            allocateData.PremiumInternalCostAfterDiscount = 37;

            allocateData.Tax = allocation.Tax;
            return allocateData;
        }