Example #1
0
 public PricingEverydayResultPriceList(
     int resultId,
     int priceListId,
     int key,
     string code,
     string name,
     short sort,
     bool isSelected,
     bool isKey,
     decimal currentPrice,
     decimal newPrice,
     decimal currentMarkupPercent,
     decimal newMarkupPercent,
     decimal keyValueChange,
     decimal influenceValueChange,
     decimal priceChange,
     ENT.PricingResultEdit priceEdit,
     ENT.PricingResultWarning priceWarning
     ) : base(priceListId, key, code, name, sort, isSelected, isKey)
 {
     ResultId             = resultId;
     CurrentPrice         = currentPrice;
     NewPrice             = newPrice;
     CurrentMarkupPercent = currentMarkupPercent;
     NewMarkupPercent     = newMarkupPercent;
     KeyValueChange       = keyValueChange;
     InfluenceValueChange = influenceValueChange;
     PriceChange          = priceChange;
     PriceEdit            = priceEdit;
     PriceWarning         = priceWarning;
 }
Example #2
0
        public static DTO.PricingResultWarning ToDto(this Display.PricingResultWarning displayEntity)
        {
            var dto = new DTO.PricingResultWarning(
                displayEntity.Name,
                displayEntity.Title,
                displayEntity.Type);

            return(dto);
        }
Example #3
0
        public static Display.PricingResultWarning ToDisplayEntity(this DTO.PricingResultWarning dto)
        {
            var displayEntity = new Display.PricingResultWarning();

            displayEntity.Name  = dto.Name;
            displayEntity.Title = dto.Title;
            displayEntity.Type  = dto.Type;

            return(displayEntity);
        }