Exemplo n.º 1
0
		private bool ProcessMyDefaultFillings(DefaultFillings.RunWhen RunWhenParameter)
			{
			if (DataModell.DefaultFillingsCacheInstance.AvailableDefaultFillingsPerDataDependency
				.ContainsKey ((Guid) DataDependencyID))
				{
				foreach (DefaultFillings Filling in
					DataModell.DefaultFillingsCacheInstance.AvailableDefaultFillingsPerDataDependency [(Guid) DataDependencyID])
					{
					if ((Filling.FullDataDependencyID == DataDependencyID)
					    && (Filling.DefaultRunWhenProperty == RunWhenParameter))
						{
						if (Filling.TriggeredByFullDataDependencyID == DataDependencyID)
							return ProcessSingleEntryFilling (Filling, DataModell.ActiveInformationen, null);
						}
					}
				}
			return true;
			}
Exemplo n.º 2
0
		private bool ProcessSingleEntryFilling (DefaultFillings Filling, Informationen Info,
						InformationenAddOn SourceInfoAddOn)
			{
			switch (Filling.ContentTypProperty)
				{
				case DefaultFillings.ContentTyp.BannerConnector:
					DoConnectorDefaults("Banner", "BannerData", "WPMediaAddOnDataConnectionString");
					break;
				case DefaultFillings.ContentTyp.StandBildConnector:
					DoConnectorDefaults("StandBild", "WohnParkInfo", "WPMediaAddOnDataConnectionString");
					break;
				case DefaultFillings.ContentTyp.BerichtConnector:
					DoConnectorDefaults("StandBild", "LiesingInfo", "WPMediaAddOnDataConnectionString");
					break;

				case DefaultFillings.ContentTyp.BannerTiming:
					DoTimingsDefault("BannerVonBis", -3, SourceInfoAddOn);
					break;
				case DefaultFillings.ContentTyp.StandBildTiming:
					DoTimingsDefault("AnzVonBis", -14, SourceInfoAddOn);
					break;
				case DefaultFillings.ContentTyp.BerichtStandBildTiming:
					DoTimingsDefault("AnzVonBis", -14, SourceInfoAddOn);
					break;

				case DefaultFillings.ContentTyp.EventTimings:
					DoEventTimingsDefault ("EventVonBis", 0);
					break;
				case DefaultFillings.ContentTyp.BerichtTimings:
					DoBerichtTimingsDefault ("AktivVonBis", 14);
					break;
				}
			return true;
			}
Exemplo n.º 3
0
		private bool ProcessMyTriggeredDefaultFillings(DefaultFillings.RunWhen RunWhenParameter)
			{
			foreach (Guid RunningDataDependencyID in DataModell.DefaultFillingsCacheInstance
						.AvailableDefaultFillingsPerDataDependency.Keys)
				{
				foreach (DefaultFillings Filling in
					DataModell.DefaultFillingsCacheInstance.AvailableDefaultFillingsPerDataDependency[RunningDataDependencyID])
					{
					if ((Filling.TriggeredByFullDataDependencyID == DataDependencyID)
						&& (Filling.TriggeredByFullDataDependencyID != Filling.FullDataDependencyID))
						{
						foreach (InformationenAddOn TriggerEntry in DataModell.ActiveInformationen.ConnectedInformationenAddOn)
							{
							if (TriggerEntry.DataDependencyID == Filling.FullDataDependencyID)
								TriggerEntry.ProcessSingleEntryFilling(Filling, DataModell.ActiveInformationen, this);
							}
						}
					}
				}
			return true;
			}