Exemplo n.º 1
0
        public static PricingEverydayPriceListGroup Copy(this PricingEverydayPriceListGroup source)
        {
            var copy = new PricingEverydayPriceListGroup();

            copy.Key   = source.Key;
            copy.Name  = source.Name;
            copy.Title = source.Title;
            copy.Sort  = source.Sort;
            foreach (PricingEverydayPriceList priceList in source.PriceLists)
            {
                PricingEverydayPriceList listCopy = priceList.Copy();
                copy.PriceLists.Add(listCopy);
            }
            return(copy);
        }
Exemplo n.º 2
0
        public static PricingEverydayPriceList Copy(this PricingEverydayPriceList source)
        {
            var copy = new PricingEverydayPriceList();

            copy.IsKey      = source.IsKey;
            copy.Id         = source.Id;
            copy.Key        = source.Key;
            copy.Code       = source.Code;
            copy.Name       = source.Name;
            copy.Title      = source.Title;
            copy.Sort       = source.Sort;
            copy.IsSelected = source.IsSelected;

            return(copy);
        }
Exemplo n.º 3
0
        private bool ApplyTemplateCanExecute(PricingRoundingTemplate template, PricingEverydayPriceList priceList)
        {
            bool result = template != null && priceList != null;

            return(result);
        }