Exemple #1
0
        public static void ImportData(
            this Business.Online.Entities.NonPersistent.DigitalProductsContent target,
            RegularSchedule source)
        {
            foreach (var oldDigitalProduct in source.DigitalProducts)
            {
                var diigitalProduct = new Business.Online.Entities.NonPersistent.DigitalProduct(target);
                diigitalProduct.ImportData(oldDigitalProduct);
                target.DigitalProducts.Add(diigitalProduct);
            }

            target.DigitalProductSummary.ImportData(source.DigitalProductSummary);
        }
		public static void ImportData(
			this Business.Online.Entities.NonPersistent.DigitalProductsContent target,
			RegularSchedule source)
		{
			foreach (var oldDigitalProduct in source.DigitalProducts)
			{
				var diigitalProduct = new Business.Online.Entities.NonPersistent.DigitalProduct(target);
				diigitalProduct.ImportData(oldDigitalProduct);
				target.DigitalProducts.Add(diigitalProduct);
			}

			target.DigitalProductSummary.ImportData(source.DigitalProductSummary);
		}
Exemple #3
0
        private static void ImportData(
            this Business.Online.Entities.NonPersistent.DigitalProduct target,
            Legacy.Common.Entities.Digital.DigitalProduct source)
        {
            target.Index           = source.Index;
            target.Category        = source.Category;
            target.SubCategory     = source.SubCategory;
            target.RateType        = source.RateType;
            target.Location        = source.Location;
            target.Width           = source.Width;
            target.Height          = source.Height;
            target.EnableLocation  = source.EnableLocation;
            target.EnableTarget    = source.EnableTarget;
            target.EnableRichMedia = source.EnableRichMedia;
            target.EnableRate      = source.EnableRate;
            target.UserDefinedName = source.UserDefinedName;
            target.Websites.AddRange(source.Websites);
            target.DurationType       = source.DurationType;
            target.DurationValue      = source.DurationValue;
            target.Strength1          = source.Strength1;
            target.Strength2          = source.Strength2;
            target.MonthlyInvestment  = source.MonthlyInvestment;
            target.MonthlyImpressions = source.MonthlyImpressions;
            target.MonthlyCPM         = source.MonthlyCPM;
            target.TotalInvestment    = source.TotalInvestment;
            target.TotalImpressions   = source.TotalImpressions;
            target.TotalCPM           = source.TotalCPM;
            target.DefaultRate        = source.DefaultRate;
            target.Formula            = (Business.Online.Enums.FormulaType)(Int32) source.Formula;
            target.InvestmentDetails  = source.InvestmentDetails;

            target.DescriptionManualEdit    = source.DescriptionManualEdit;
            target.ShowDimensions           = source.ShowDimensions;
            target.ShowDescriptionTargeting = source.ShowDescriptionTargeting;
            target.ShowDescriptionRichMedia = source.ShowDescriptionRichMedia;
            target.Description = source.Description;

            target.EnableComment        = source.EnableComment;
            target.CommentManualEdit    = source.CommentManualEdit;
            target.ShowCommentTargeting = source.ShowCommentTargeting;
            target.ShowCommentRichMedia = source.ShowCommentRichMedia;

            target.ShowDuration           = source.ShowDuration;
            target.ShowAllPricingMonthly  = source.ShowAllPricingMonthly;
            target.ShowAllPricingTotal    = source.ShowAllPricingTotal;
            target.ShowMonthlyInvestments = source.ShowMonthlyInvestments;
            target.ShowMonthlyImpressions = source.ShowMonthlyImpressions;
            target.ShowTotalInvestments   = source.ShowTotalInvestments;
            target.ShowTotalImpressions   = source.ShowTotalImpressions;
            target.ShowFlightDates        = source.ShowFlightDates;

            target.UserDescription = source.UserDescription;
            target.Comment         = source.Comment;

            foreach (var oldProductInfo in source.AddtionalInfo)
            {
                var productInfo = new Business.Online.Entities.NonPersistent.ProductInfo();
                productInfo.ImportData(oldProductInfo);
                target.AddtionalInfo.Add(productInfo);
            }

            target.PackageRecord.ImportData(source.PackageRecord);
        }