Пример #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
        }
Пример #2
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
		}
Пример #3
0
		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;
 }
Пример #5
0
		public MonthlySection(ProgramSchedule parent)
			: base(parent)
		{
			SpotType = SpotType.Month;
		}
Пример #6
0
		public WeeklySection(ProgramSchedule parent)
			: base(parent)
		{
			SpotType = SpotType.Week;
		}
Пример #7
0
 public WeeklySection(ProgramSchedule parent)
     : base(parent)
 {
     SpotType = SpotType.Week;
 }