public void LoadSectionData(ScheduleSection sectionData)
		{
			_sectionData = sectionData;

			_allowToSave = false;

			buttonXTotalCPP.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
			buttonXTotalGRP.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
			buttonXTotalCPP.Text = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "Overall CPP" : "Overall CPM";
			buttonXTotalGRP.Text = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "Total GRPs" : "Total Impr";

			buttonXTotalPeriods.Checked = _sectionData.ShowTotalPeriods;
			buttonXTotalPeriods.Text = String.Format("Total {0}s", _sectionData.Parent.ScheduleSettings.SelectedSpotType);
			buttonXTotalSpots.Checked = _sectionData.ShowTotalSpots;
			buttonXTotalGRP.Checked = _sectionData.ShowTotalGRP;
			buttonXTotalCPP.Checked = _sectionData.ShowTotalCPP;
			buttonXAvgRate.Checked = _sectionData.ShowAverageRate;
			buttonXTotalCost.Checked = _sectionData.ShowTotalRate;
			buttonXNetRate.Checked = _sectionData.ShowNetRate;
			buttonXDiscount.Checked = _sectionData.ShowDiscount;

			InitQuarters();
			UpdateQuarterState();

			_allowToSave = true;
		}
		public void LoadSectionData(ScheduleSection sectionData)
		{
			_sectionData = sectionData;

			_allowToSave = false;

			buttonXRating.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
			buttonXRating.Text = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "Rtg" : "(000s)";
			buttonXCPP.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
			buttonXGRP.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
			buttonXCPP.Text = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "CPP" : "CPM";
			buttonXGRP.Text = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "GRPs" : "Impr";
			buttonXSpots.Text = String.Format("{0}s", _sectionData.Parent.ScheduleSettings.SelectedSpotType);

			checkEditApplyForAll.Checked = _sectionData.Parent.ApplySettingsForAll;

			buttonXRate.Checked = _sectionData.ShowRate;
			buttonXRating.Checked = _sectionData.ShowRating;
			buttonXCost.Checked = _sectionData.ShowCost;
			buttonXCPP.Checked = _sectionData.ShowCPP;
			buttonXDay.Checked = _sectionData.ShowDay;
			buttonXDaypart.Checked = _sectionData.ShowDaypart;
			buttonXGRP.Checked = _sectionData.ShowGRP;
			buttonXLength.Checked = _sectionData.ShowLenght;
			buttonXLogo.Checked = _sectionData.ShowLogo;
			buttonXStation.Checked = _sectionData.ShowStation;
			buttonXProgram.Checked = _sectionData.ShowProgram;
			buttonXTime.Checked = _sectionData.ShowTime;
			buttonXSpots.Checked = _sectionData.ShowSpots;

			_allowToSave = true;

			UpdateUniversalSettingsToggleVisibility();
		}
Example #3
0
        public virtual void LoadSectionData(ScheduleSection sectionData)
        {
            _sectionSummaryContent = (ISectionSummaryContent)_baseSummarySettings;
            _allowToSave           = false;

            checkEditBusinessName.Text     = String.Format("{0}", _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.BusinessName);
            checkEditDecisionMaker.Text    = String.Format("{0}", _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.DecisionMaker);
            checkEditPresentationDate.Text = String.Format("Presentation Date: {0}",
                                                           _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.PresentationDate.HasValue ?
                                                           _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.PresentationDate.Value.ToString("MM/dd/yyyy") :
                                                           String.Empty);
            checkEditFlightDates.Text = String.Format("Campaign Dates: {0}", _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.FlightDates);

            checkEditBusinessName.Checked      = _baseSummarySettings.ShowAdvertiser;
            checkEditDecisionMaker.Checked     = _baseSummarySettings.ShowDecisionMaker;
            checkEditPresentationDate.Checked  = _baseSummarySettings.ShowPresentationDate;
            checkEditFlightDates.Checked       = _baseSummarySettings.ShowFlightDates;
            checkEditMonthlyInvestment.Checked = _baseSummarySettings.ShowMonthly;
            checkEditTotalInvestment.Checked   = _baseSummarySettings.ShowTotal;
            checkEditTableOutput.Checked       = _baseSummarySettings.TableOutput;

            UpdateTotals();

            _allowToSave = true;
        }
Example #4
0
        public void LoadSectionData(ScheduleSection sectionData)
        {
            _sectionData = sectionData;

            _allowToSave = false;

            buttonXTotalCPP.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
            buttonXTotalGRP.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
            buttonXTotalCPP.Text    = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "Overall CPP" : "Overall CPM";
            buttonXTotalGRP.Text    = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "Total GRPs" : "Total Impr";

            buttonXTotalPeriods.Checked = _sectionData.ShowTotalPeriods;
            buttonXTotalPeriods.Text    = String.Format("Total {0}s", _sectionData.Parent.ScheduleSettings.SelectedSpotType);
            buttonXTotalSpots.Checked   = _sectionData.ShowTotalSpots;
            buttonXTotalGRP.Checked     = _sectionData.ShowTotalGRP;
            buttonXTotalCPP.Checked     = _sectionData.ShowTotalCPP;
            buttonXAvgRate.Checked      = _sectionData.ShowAverageRate;
            buttonXTotalCost.Checked    = _sectionData.ShowTotalRate;
            buttonXNetRate.Checked      = _sectionData.ShowNetRate;
            buttonXDiscount.Checked     = _sectionData.ShowDiscount;

            InitQuarters();
            UpdateQuarterState();

            _allowToSave = true;
        }
		public virtual void LoadSectionData(ScheduleSection sectionData)
		{
			_sectionSummaryContent = (ISectionSummaryContent)_baseSummarySettings;
			_allowToSave = false;

			checkEditBusinessName.Text = String.Format("{0}", _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.BusinessName);
			checkEditDecisionMaker.Text = String.Format("{0}", _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.DecisionMaker);
			checkEditPresentationDate.Text = String.Format("Presentation Date: {0}",
				_sectionSummaryContent.Parent.Parent.ParentScheduleSettings.PresentationDate.HasValue ?
				_sectionSummaryContent.Parent.Parent.ParentScheduleSettings.PresentationDate.Value.ToString("MM/dd/yyyy") :
				String.Empty);
			checkEditFlightDates.Text = String.Format("Campaign Dates: {0}", _sectionSummaryContent.Parent.Parent.ParentScheduleSettings.FlightDates);

			checkEditBusinessName.Checked = _baseSummarySettings.ShowAdvertiser;
			checkEditDecisionMaker.Checked = _baseSummarySettings.ShowDecisionMaker;
			checkEditPresentationDate.Checked = _baseSummarySettings.ShowPresentationDate;
			checkEditFlightDates.Checked = _baseSummarySettings.ShowFlightDates;
			checkEditMonthlyInvestment.Checked = _baseSummarySettings.ShowMonthly;
			checkEditTotalInvestment.Checked = _baseSummarySettings.ShowTotal;
			checkEditTableOutput.Checked = _baseSummarySettings.TableOutput;

			UpdateTotals();

			_allowToSave = true;
		}
Example #6
0
        public void LoadSectionData(ScheduleSection sectionData)
        {
            _sectionData = sectionData;

            _allowToSave = false;

            buttonXRating.Enabled = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
            buttonXRating.Text    = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "Rtg" : "(000s)";
            buttonXCPP.Enabled    = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
            buttonXGRP.Enabled    = _sectionData.Parent.ScheduleSettings.UseDemo & !String.IsNullOrEmpty(_sectionData.Parent.ScheduleSettings.Demo);
            buttonXCPP.Text       = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "CPP" : "CPM";
            buttonXGRP.Text       = _sectionData.Parent.ScheduleSettings.DemoType == DemoType.Rtg ? "GRPs" : "Impr";
            buttonXSpots.Text     = String.Format("{0}s", _sectionData.Parent.ScheduleSettings.SelectedSpotType);

            checkEditApplyForAll.Checked = _sectionData.Parent.ApplySettingsForAll;

            buttonXRate.Checked    = _sectionData.ShowRate;
            buttonXRating.Checked  = _sectionData.ShowRating;
            buttonXCost.Checked    = _sectionData.ShowCost;
            buttonXCPP.Checked     = _sectionData.ShowCPP;
            buttonXDay.Checked     = _sectionData.ShowDay;
            buttonXDaypart.Checked = _sectionData.ShowDaypart;
            buttonXGRP.Checked     = _sectionData.ShowGRP;
            buttonXLength.Checked  = _sectionData.ShowLenght;
            buttonXLogo.Checked    = _sectionData.ShowLogo;
            buttonXStation.Checked = _sectionData.ShowStation;
            buttonXProgram.Checked = _sectionData.ShowProgram;
            buttonXTime.Checked    = _sectionData.ShowTime;
            buttonXSpots.Checked   = _sectionData.ShowSpots;

            _allowToSave = true;

            UpdateUniversalSettingsToggleVisibility();
        }
        public ScheduleSection GetConfigurations(bool refresh)
        {
            var section = new ScheduleSection();
            List<ScheduleSettings> settings = LoadFromConfig();

            section.ScheduleSettings = settings;
            return section;
        }
        public override ScheduleSection GetConfigurations()
        {
            var section = new ScheduleSection();
            List<ScheduleSettings> settings = LoadFromConfig();

            section.ScheduleSettings = settings;
            return section;
        }
Example #9
0
        public override void LoadSectionData(ScheduleSection sectionData)
        {
            _baseSummarySettings = sectionData.Summary.CustomSummary;

            _allowToSave           = false;
            _customSummarySettings = sectionData.Summary.CustomSummary;
            _allowToSave           = true;

            base.LoadSectionData(sectionData);
        }
Example #10
0
 public ProgramScheduleOutputModel(ScheduleSection parent)
 {
     _parent          = parent;
     Title            = string.Empty;
     Advertiser       = string.Empty;
     DecisionMaker    = string.Empty;
     ReplacementsList = new Dictionary <string, string>();
     Programs         = new List <ProgramOutputModel>();
     TotalSpots       = new List <TotalSpotOutputModel>();
     Totals           = new Dictionary <string, string>();
     DigitalInfo      = new ProgramDigitalInfoOneSheetOutputModel(parent);
 }
Example #11
0
        private SectionContainer AddSectionControl(ScheduleSection sectionData, int position = -1)
        {
            var sectionTabControl = new SectionContainer();

            sectionTabControl.InitControls();
            sectionTabControl.LoadData(sectionData);
            sectionTabControl.DataChanged          += OnSectionDataChanged;
            sectionTabControl.SectionEditorChanged += OnSectionEditorChanged;
            position = position == -1 ? xtraTabControlSections.TabPages.OfType <SectionContainer>().Count() : position;
            xtraTabControlSections.TabPages.Insert(position, sectionTabControl);
            return(sectionTabControl);
        }
        public void LoadData(ScheduleSection sectionData, bool quickLoad = false)
        {
            SectionData              = sectionData;
            Text                     = SectionData.Name;
            SectionData.DataChanged += OnSectionDataChanged;

            _sectionControl.LoadData();
            _digitalInfoControl.LoadData();
            _customSummaryControl.LoadData(quickLoad);

            UpdateCollectionItemsInfo();
            UpdateSummaryState();
            UpdateWarnings();
        }
        public void Release()
        {
            _sectionControl.Release();
            _sectionControl = null;

            _digitalInfoControl.Release();
            _digitalInfoControl = null;

            _customSummaryControl.Release();
            _customSummaryControl = null;

            DataChanged          = null;
            SectionEditorChanged = null;
            SectionData          = null;
        }
 public SectionSummary(ScheduleSection parent)
 {
     Parent = parent;
     InitSummariesContent();
     SynchronizeSectionContent();
 }
		public SectionSummary(ScheduleSection parent)
		{
			Parent = parent;
			InitSummariesContent();
			SynchronizeSectionContent();
		}
		public ProgramScheduleOutputModel(ScheduleSection parent)
		{
			_parent = parent;
			Title = string.Empty;
			Advertiser = string.Empty;
			DecisionMaker = string.Empty;
			ReplacementsList = new Dictionary<string, string>();
			Programs = new List<ProgramOutputModel>();
			TotalSpots = new List<TotalSpotOutputModel>();
			Totals = new Dictionary<string, string>();
			DigitalInfo = new ProgramDigitalInfoOneSheetOutputModel(parent);
		}
Example #17
0
 public SectionSummary(ScheduleSection parent)
 {
     Parent      = parent;
     SummaryType = SectionSummaryTypeEnum.Custom;
     Content     = CreateContentBySummaryType();
 }
Example #18
0
 public void LoadSection(ScheduleSection editedSection)
 {
     _editedSection = editedSection;
     _settingsControls.OfType <ISectionSettingsControl>().ToList().ForEach(c => c.LoadSectionData(_editedSection));
 }
		public void LoadSection(ScheduleSection editedSection)
		{
			_editedSection = editedSection;
			_settingsControls.OfType<ISectionSettingsControl>().ToList().ForEach(c => c.LoadSectionData(_editedSection));
		}
		public void LoadSectionData(ScheduleSection sectionData)
		{
			_sectionData = sectionData;
			_digitalInfo = _sectionData.DigitalInfo;
			LoadData();
		}
		public void Release()
		{
			_sectionControl.Release();
			_sectionControl = null;

			_digitalInfoControl.Release();
			_digitalInfoControl = null;

			_customSummaryControl.Release();
			_customSummaryControl = null;

			DataChanged = null;
			SectionEditorChanged = null;
			SectionData = null;
		}
		public void LoadData(ScheduleSection sectionData, bool quickLoad = false)
		{
			SectionData = sectionData;
			Text = SectionData.Name;
			SectionData.DataChanged += OnSectionDataChanged;

			_sectionControl.LoadData();
			_digitalInfoControl.LoadData();
			_customSummaryControl.LoadData(quickLoad);

			UpdateCollectionItemsInfo();
			UpdateSummaryState();
			UpdateWarnings();
		}
 public ProgramDigitalInfoOneSheetOutputModel(ScheduleSection parent) : base(parent.DigitalInfo)
 {
 }
Example #24
0
 public void LoadSectionData(ScheduleSection sectionData)
 {
     _sectionData = sectionData;
     _digitalInfo = _sectionData.DigitalInfo;
     LoadData();
 }
		public ProgramDigitalInfoOneSheetOutputModel(ScheduleSection parent) : base(parent.DigitalInfo) { }