Esempio n. 1
0
        protected ScheduleSection(ProgramSchedule parent)
        {
            Parent           = parent;
            UniqueID         = Guid.NewGuid();
            Index            = parent.Sections.Any() ? parent.Sections.Max(s => s.Index) + 1 : 0;
            Programs         = new List <Program>();
            Summary          = new SectionSummary(this);
            ContractSettings = new ContractSettings();

            #region Options
            ShowTime       = true;
            ShowDaypart    = true;
            ShowDay        = true;
            ShowStation    = true;
            ShowProgram    = true;
            ShowLenght     = false;
            ShowSpots      = true;
            ShowEmptySpots = false;
            ShowCost       = true;
            ShowLogo       = false;

            ShowTotalPeriods = true;
            ShowTotalSpots   = true;
            ShowAverageRate  = true;
            ShowTotalRate    = true;
            ShowNetRate      = false;
            ShowDiscount     = false;
            #endregion
        }
		protected ScheduleSection(ProgramSchedule parent)
		{
			Parent = parent;
			UniqueID = Guid.NewGuid();
			Index = parent.Sections.Any() ? parent.Sections.Max(s => s.Index) + 1 : 0;
			Programs = new List<Program>();
			Summary = new SectionSummary(this);
			ContractSettings = new ContractSettings();

			#region Options
			ShowTime = true;
			ShowDaypart = true;
			ShowDay = true;
			ShowStation = true;
			ShowProgram = true;
			ShowLenght = false;
			ShowSpots = true;
			ShowEmptySpots = false;
			ShowCost = true;
			ShowLogo = false;

			ShowTotalPeriods = true;
			ShowTotalSpots = true;
			ShowAverageRate = true;
			ShowTotalRate = true;
			ShowNetRate = false;
			ShowDiscount = false;
			#endregion
		}
		public static void ImportData(this ProgramScheduleContent target, ProgramSchedule source)
		{
			target.SelectedQuarter = source.SelectedQuarter;
			target.ApplySettingsForAll = source.ApplySettingsForAll;
			foreach (var oldScheduleSection in source.Sections)
			{
				var targetSection = target.CreateSection();
				targetSection.ImportData(oldScheduleSection);
				target.Sections.Add(targetSection);
			}
		}
 public MonthlySection(ProgramSchedule parent)
     : base(parent)
 {
     SpotType = SpotType.Month;
 }
Esempio n. 5
0
		public MonthlySection(ProgramSchedule parent)
			: base(parent)
		{
			SpotType = SpotType.Month;
		}
Esempio n. 6
0
		public WeeklySection(ProgramSchedule parent)
			: base(parent)
		{
			SpotType = SpotType.Week;
		}
Esempio n. 7
0
 public WeeklySection(ProgramSchedule parent)
     : base(parent)
 {
     SpotType = SpotType.Week;
 }