public PricingEveryday(
     int id,
     string searchGroupKey,
     PricingIdentity identity,
     List <FilterGroup> filterGroups,
     List <PricingEverydayValueDriver> valueDrivers,
     PricingEverydayKeyValueDriver keyValueDriver,
     List <PricingEverydayLinkedValueDriver> linkedValueDrivers,
     List <PricingMode> pricingModes,
     List <PricingEverydayPriceListGroup> priceListGroups,
     PricingKeyPriceListRule keyPriceListRule,
     List <PricingLinkedPriceListRule> linkedPriceListRules,
     List <PricingEverydayResult> results
     )
 {
     Id                   = id;
     SearchGroupKey       = searchGroupKey;
     Identity             = identity;
     FilterGroups         = filterGroups;
     ValueDrivers         = valueDrivers;
     KeyValueDriver       = keyValueDriver;
     LinkedValueDrivers   = linkedValueDrivers;
     PricingModes         = pricingModes;
     PriceListGroups      = priceListGroups;
     KeyPriceListRule     = keyPriceListRule;
     LinkedPriceListRules = linkedPriceListRules;
     Results              = results;
 }
 public PricingEveryday(
     int id,
     List <PricingMode> pricingModes,
     PricingKeyPriceListRule keyPriceListRule,
     List <PricingLinkedPriceListRule> linkedPriceListRules
     )
 {
     Id                   = id;
     PricingModes         = pricingModes;
     KeyPriceListRule     = keyPriceListRule;
     LinkedPriceListRules = linkedPriceListRules;
 }
Exemple #3
0
        public static DTO.PricingKeyPriceListRule ToDto(this Display.PricingKeyPriceListRule displayEntity)
        {
            List <DTO.PriceRoundingRule> roundingRules = displayEntity.RoundingRules.ToDtoList();
            List <DTO.SQLEnumeration>    roundingTypes = displayEntity.RoundingTypes.ToDTOList();

            var dto = new DTO.PricingKeyPriceListRule(
                displayEntity.PriceListId,
                displayEntity.DollarRangeLower,
                displayEntity.DollarRangeUpper,
                roundingRules, roundingTypes);

            return(dto);
        }
Exemple #4
0
        public static Display.PricingKeyPriceListRule ToDisplayEntity(this DTO.PricingKeyPriceListRule dto)
        {
            var displayEntity = new Display.PricingKeyPriceListRule();

            displayEntity.PriceListId      = dto.PriceListId;
            displayEntity.DollarRangeLower = dto.DollarRangeLower;
            displayEntity.DollarRangeUpper = dto.DollarRangeUpper;

            if (dto.RoundingRules != null)
            {
                displayEntity.RoundingRules = dto.RoundingRules.ToDisplayList();
            }

            return(displayEntity);
        }