public PricingEverydayResultPriceList(
     int resultId,
     int priceListId,
     int key,
     string code,
     string name,
     short sort,
     bool isSelected,
     bool isKey,
     decimal currentPrice,
     decimal newPrice,
     int currentMarkupPercent,
     int newMarkupPercent,
     decimal keyValueChange,
     decimal influenceValueChange,
     decimal priceChange,
     PricingResultEdit priceEdit,
     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;
 }
示例#2
0
        public static DTO.PricingResultWarning ToDto(this Display.PricingResultWarning displayEntity)
        {
            var dto = new DTO.PricingResultWarning(
                displayEntity.Name,
                displayEntity.Title,
                displayEntity.Type);

            return(dto);
        }
示例#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);
        }