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; }
public static DTO.PricingResultEdit ToDto(this Display.PricingResultEdit displayEntity) { var dto = new DTO.PricingResultEdit( displayEntity.Name, displayEntity.Title, displayEntity.Type); return(dto); }
public static Display.PricingResultEdit ToDisplayEntity(this DTO.PricingResultEdit dto) { var displayEntity = new Display.PricingResultEdit(); displayEntity.Name = dto.Name; displayEntity.Title = dto.Title; displayEntity.Type = dto.Type; return(displayEntity); }