Exemple #1
0
        public static DTO.PricingEverydayPriceList ToDto(this Display.PricingEverydayPriceList displayEntity)
        {
            var dto = new DTO.PricingEverydayPriceList(
                displayEntity.Id,
                displayEntity.Key,
                displayEntity.Code,
                displayEntity.Name,
                displayEntity.Sort,
                displayEntity.IsSelected,
                displayEntity.IsKey);

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

            displayEntity.Id         = dto.Id;
            displayEntity.Key        = dto.Key;
            displayEntity.Code       = dto.Code;
            displayEntity.Name       = dto.Name;
            displayEntity.Title      = dto.Title;
            displayEntity.Sort       = dto.Sort;
            displayEntity.IsSelected = dto.IsSelected;

            displayEntity.IsKey = dto.IsKey;

            displayEntity.IsDirty = false;

            return(displayEntity);
        }
Exemple #3
0
 /// <summary>
 /// Called when the IsSelected property changes for any linked price list.
 /// </summary>
 private void OnLinkedPriceListChanged(PricingEverydayPriceList priceList)
 {
     //Update dependent calculated properties.
     this.RaisePropertyChanged("RoundingRulePriceLists");
 }