public BearbeitungsView(CommonSearchClassList parent,
			String headerText, CommonSearchClass.TypeOfBearbeitung typeOfBearbeitung)
			{
			Parent = parent;
			HeaderText = headerText;
			TypeOfBearbeitungProp = typeOfBearbeitung;
			}
Пример #2
0
		public void LoadNextActiveInformationen(String IDToExpand)
	        {
			if (String.IsNullOrEmpty(IDToExpand))
				{
				SelectionTypeToProcess = SelectionType.All;
				CommonSearchClassListInstance = new CommonSearchClassList();
				CommonSearchClassListInstance.LoadNextActiveInformationen(DateTime.Now.AddDays(-3), 100);
				return;
				}
			}
Пример #3
0
        public void LoadNextActiveInformationenEvents(String IDToExpand)
            {
            SelectionTypeToProcess = SelectionType.Events;
			CommonSearchClassListInstance = new CommonSearchClassList();
			CommonSearchClassListInstance.LoadNextActiveInformationen(DateTime.Now.AddDays(-3), 100,
				new List<Guid>()
					{
					DataDependencyEnums.AllTypen.AllgemeineVeranstaltung,
					DataDependencyEnums.AllTypen.AktiverSport,
					DataDependencyEnums.AllTypen.Bergwanderung,
					DataDependencyEnums.AllTypen.RadTour,
					DataDependencyEnums.AllTypen.Wanderung
					});
            }
Пример #4
0
        public void LoadNextActiveInformationenEventsBerichte(String IDToExpand)
            {
            SelectionTypeToProcess = SelectionType.Berichte;
			CommonSearchClassListInstance = new CommonSearchClassList();
			CommonSearchClassListInstance.LoadNextActiveInformationen(DateTime.Now.AddDays(-3), 100,
				new List<Guid>()
					{
					DataDependencyEnums.AllTypen.Bericht,
					DataDependencyEnums.AllTypen.VideoBeitraginWPTV,
					DataDependencyEnums.AllTypen.Werbung,
					DataDependencyEnums.AllTypen.WerbungGutscheinHeft,
					DataDependencyEnums.AllTypen.WerbungKaufpark,
					DataDependencyEnums.AllTypen.WerbungPizzaEmpfehlungen,
					DataDependencyEnums.AllTypen.WerbungPizzaTagesmenues
					});
			}
		public void CommonProcessingRequired(CommonSearchClassList commonSearchClassList,
		CommonSearchClassList.RequiredProcessing requiredProcessing)
			{
			}
		public void CommonProcessingRequired(CommonSearchClassList commonSearchClassList,
			CommonSearchClassList.RequiredProcessing requiredProcessing)
			{
			switch (requiredProcessing)
				{
					case CommonSearchClassList.RequiredProcessing.DisplaySelectedInformation:
						InformationenPresentationModell informationenPresentationModellInstance
								= new InformationenPresentationModell()
							{
							InformationToProcess = commonSearchClassList
										.SelectedWorkListEntry.InformationenConnectedEntry
							};
						informationenPresentationModellInstance.FillAllForInformationEntry();
						InformationenPresentationModellInstance = informationenPresentationModellInstance;
						break;
					case CommonSearchClassList.RequiredProcessing.ModifySelectedInformation:
						break;
					case CommonSearchClassList.RequiredProcessing.CreateNewInformation:
						CommonSearchClassListInstance = commonSearchClassList;
						InformationenBearbeitungModellInstance = new InformationenBearbeitungModell()
							{
							CommonSearchClassListInstance = this.CommonSearchClassListInstance,
							SearchConfiguratorDataModellInstance = this.SearchConfiguratorDataModellInstance,
							InformationenProcessingModellInstance = this.InformationenProcessingModellInstance
							};
						Information createdInformation = InformationenBearbeitungModellInstance
										.CreateNewInformationWithDefinedType(CommonSearchClassListInstance.SelectedTypToCreate);
						if (createdInformation == null)
							break;
						CommonSearchClass newEntry = new CommonSearchClass(commonSearchClassList, createdInformation);
						if (commonSearchClassList.AllEntries == null)
							commonSearchClassList.AllEntries = new DataCollection<CommonSearchClass>();
						commonSearchClassList.AllEntries.Add(newEntry);
						commonSearchClassList.SelectedWorkListEntry = newEntry;
						break;
					case CommonSearchClassList.RequiredProcessing.DeleteSelectedInformation:
						Guid IdToDelete = commonSearchClassList.SelectedWorkListEntry.InformationenConnectedEntry.Id;
						commonSearchClassList.RemoveInvolvedEntries(new List<Guid>() { IdToDelete });
						InformationenPresentationModellInstance.InformationToProcess = null;
						RedaktionenModell.DeleteInformationenEntry (IdToDelete);
						commonSearchClassList.SelectedWorkListEntry = null;
						break;
					case CommonSearchClassList.RequiredProcessing.ProcessRedaktionenRequest:
						break;
				default:
					throw new Exception($"Fehlerhaftes requiredProcessing {requiredProcessing}");
				}
			}
		private void CommonSearchClassListInstanceChanged(CommonSearchClassList OldValue,
			CommonSearchClassList NewValue)
			{
			}
Пример #8
0
		public CommonSearchClass(CommonSearchClassList parent, MMUnitTiming BasicElement, Dictionary<string, ConnectionSituation> redaktionSymbol)
			{
			Parent = parent;
			MMUnitTimingConnectedEntry = BasicElement;
			RedaktionSymbol = redaktionSymbol;
			}
Пример #9
0
		public CommonSearchClass(CommonSearchClassList parent, Timing BasicElement)
			{
			Parent = parent;
			if (BasicElement == null)
				TimingConnectedEntry = BasicElement;
			else
				{
				TimingConnectedEntry = CommonSearchClassList.dataContext
					.AltErlaaInfo.Timings.Find(BasicElement.TimingsId);
				}
			//			RedaktionSymbol = redaktionSymbol;
			}
Пример #10
0
		public CommonSearchClass(CommonSearchClassList parent, MMUnit BasicElement)
			{
			Parent = parent;
			MMUnitConnectedEntry = BasicElement;
			}
Пример #11
0
		public CommonSearchClass(CommonSearchClassList parent, MMInformation BasicElement)
			{
			Parent = parent;
			MMInformationConnectedEntry = BasicElement;
			}
Пример #12
0
		public CommonSearchClass(CommonSearchClassList parent, Information BasicElement)
			{
			Parent = parent;
			InformationenConnectedEntry = BasicElement;
			//RedaktionSymbol = redaktionSymbol;
			}
Пример #13
0
		public void GetModifiedAllVonBis(SearchInformationenModell.SlotGroup Target, String IDToExpand)
			{
	
			SelectionTypeToProcess = SelectionType.All;
			CommonSearchClassListInstance = new CommonSearchClassList();
			CommonSearchClassListInstance.LoadLastChangedEntriesAll(DateTime.Now.AddDays(-7));
			}