예제 #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);
        }
예제 #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);
        }
예제 #3
0
        private bool ApplyTemplateCanExecute(PricingRoundingTemplate template, PricingEverydayPriceList priceList)
        {
            bool result = template != null && priceList != null;

            return(result);
        }