예제 #1
0
		private void CommonProfileModellInstanceChanged(CommonProfileModell OldValue,
			CommonProfileModell NewValue)
			{
			if (NewValue != null)
				{
				NewValue.StartDataDependencyControlCall += (profile, function) =>
				{
					StartDataDependencyControl(profile, function);
				};
				NewValue.StartDataDependencySelectionControlCall += (profile, function) =>
				{
					StartDataDependencySelectionControl(profile, function);
				};
				NewValue.StartStandBildMappingControlCall += (profile, function) =>
				{
					StartStandBildMappingControl(profile, function);
				};

				}
			}
예제 #2
0
		public void StartStandBildMappingControl (DataProfile profile,
			CommonProfileModell.RequestedFunction functionToDoParameter)
			{
			if (StartStandBildMappingControlCall != null)
				StartStandBildMappingControlCall (profile, functionToDoParameter);
			}
예제 #3
0
		public void StartDataDependencyControl (DataProfile profile,
			CommonProfileModell.RequestedFunction functionToDoParameter)
			{
			if (StartDataDependencyControlCall != null)
				StartDataDependencyControlCall (profile, functionToDoParameter);
			}
예제 #4
0
		//private static WCFStandardClientSchema _ClientSchema;
		//public static WCFStandardClientSchema ClientSchema
		//	{
		//	get { return _ClientSchema; }
		//	set
		//		{
		//		_ClientSchema = value;
		//		WMB.WPMediaApplicationState.Instance.Properties["ClientSchema"] = _ClientSchema;
		//		}
		//	}

#endregion

#region DateProcessing for click events

		public String GetDataDependencyDescriptionText
				(CommonProfileModell.RequestedFunction functionToDo, out bool correctSelected)
			{
			correctSelected = false;
			if ((Profile.ActiveDataDependency == null)
				&& (Profile.SelectedUseFor == null))
				return "Kein DataDependency und kein UseFor selektiert";
			if (Profile.ActiveTyp != null)
				{
				correctSelected = true;
				return "Element \"" + Profile.ActiveDataDependency.ActuallBezeichner
				       + "\"\r\n aus der Liste der  Elemente, die dem Typ\r\n\""
					   + Profile.ActiveTyp.NameId + "\" zugeordnet sind";
				}
			if (Profile.ActiveRootDataTemplates != null)
				{
				correctSelected = true;
				return "Element \"" + Profile.ActiveDataDependency.ActuallBezeichner
				       + "\"\r\n aus der Liste der  Elemente, die dem RootElement\r\n\""
					   + Profile.ActiveRootDataTemplates.NameId + "\" zugeordnet sind";
				}
			switch (functionToDo)
				{
				case RequestedFunction.NewDataDependency:
					{
					correctSelected = true;
					return "Element \"" + Profile.ActiveDataDependency.ActuallBezeichner
						   + "\"\r\n aus der Gesamtliste Liste der DataDependency Elemente";
					}
					break;
				default:
					break;
				}
			return "Für das DataDependency Element \"" + Profile.ActiveDataDependency.ActuallBezeichner
			       + "\"\r\nist nicht definiert, aus welcher\r\nCollection es entfernt werden soll!";
			
			}
예제 #5
0
		public MainWindow ()
			{
			CsGlobal.Install(GlobalFunctions.WpfStorage | GlobalFunctions.Storage| GlobalFunctions.AppData);
			//CsGlobal.Wpf.Storage.ListView.Handle();

			//TODO Data.DbServer3_Connect_Direct();

			String UserName = String.Empty;
#if DEBUG
			String[] Rollen = LoginHandler.SetDataAccessSecurity();
#else
			String[] Rollen = CVM.LoginHandler.CheckUser(ref UserName);
#endif
			//			String[] Rollen = LoginHandler.SetDataAccessSecurity();
			if ((Rollen == null)
				|| (Rollen.Length == 0))
				{
				Close();
				return;
				}
			if (Directory.Exists("\\\\Webserver2\\WPMediaSender"))
				{
				Data.DbServer3_Connect_Direct();
				Application.Current.Properties["WPMediaNetworkEnvironment"] = true;
				}
			else
				{
				Data.DbServer3_Connect_OldWebService();
				Application.Current.Properties["WPMediaNetworkEnvironment"] = false;
				}
			if (InformationenBearbeitungModellInstance == null)
				{
				InformationenBearbeitungModellInstance = new InformationenBearbeitungModell();
				InformationenBearbeitungModellInstance.CommonSearchClassListInstance = new CommonSearchClassList();
				Data.DbServer3.AltErlaaInfo.LoadAll_IfHasNotBeenLoaded();
				Data.DbServer3.WPMediaAddOnData.LoadAll_IfHasNotBeenLoaded();
				InformationenBearbeitungModellInstance.SearchConfiguratorDataModellInstance = new SearchConfiguratorDataModell();
				InformationenBearbeitungModellInstance.InformationenProcessingModellInstance = new InformationenProcessingModell();
				InformationenBearbeitungsStandModellInstance = new InformationenBearbeitungsStandModell();
				InformationenBearbeitungsStandModellInstance.CommonSearchClassList = new CommonSearchClassList();
				IOldToNewInterfaceInstance = new OldToNew();
				CommonProfileModellInstance = new CommonProfileModell();
				ProgrammSchemaModellInstance = new ProgrammSchemaModell();
				}
			InitializeComponent();
            }
예제 #6
0
		private void CommonProfileModellInstanceChanged(CommonProfileModell OldValue,
			CommonProfileModell NewValue)
			{
			}
예제 #7
0
		private void StartStandBildMappingControl (DataProfile profile, 
				CommonProfileModell.RequestedFunction FunctionToDo)
			{
			DataDependencyToWorkFor = profile.ActiveDataDependency;
			DataDependencyCollectionToWorkFor = profile.DataDependencyCollectionToWorkForParameter;
			if (StandBildMappingControlWindow != null)
				StandBildMappingControlWindow.Close ();
			if (StandBildMappingControlWindow == null)
				{
				StandBildMappingControlWindow = new Window ();
//				StandBildMappingControlWindow.Title = CommonProfileModellInstance.HeadLineForProcessableStandBildMappingFull;
				Binding TitleBinding = new Binding ()
					{
					Source = this,
					Path = new PropertyPath ("CommonProfileModellInstance.HeadLineForProcessableStandBildMappingFull")
					};
				StandBildMappingControlWindow.SetBinding (Window.TitleProperty, TitleBinding);

				StandBildMappingControl STBControl = new StandBildMappingControl ();
				StandBildMappingControlWindow.Content = STBControl;

				Binding ModellBinding = new Binding ("CommonProfileModellInstance")
					{Source = this};
				STBControl.SetBinding (StandBildMappingControl.CommonProfileModellInstanceProperty, ModellBinding);

				Binding FullDataDependencyToWorkForBinding = new Binding("FullDataDependencyToWorkFor")
					{ Source = this };
				STBControl.SetBinding(StandBildMappingControl.DataDependencyToWorkForProperty,
								FullDataDependencyToWorkForBinding);

				Binding FullDataDependencyCollectionToWorkForBinding = new Binding("FullDataDependencyCollectionToWorkFor")
						{ Source = this };
				STBControl.SetBinding(StandBildMappingControl.FullDataDependencyCollectionToWorkForProperty,
								FullDataDependencyCollectionToWorkForBinding);
	
				StandBildMappingControlWindow.Closing += (O, Args) =>
					{
					STBControl.CloseRequested ();
					StandBildMappingControlWindow = null;
					};

				switch (FunctionToDo)
					{
					case CommonProfileModell.RequestedFunction.Show:
						STBControl.IsReadOnly = true;
						break;
					case CommonProfileModell.RequestedFunction.New:
					case CommonProfileModell.RequestedFunction.Modify:
					case CommonProfileModell.RequestedFunction.Delete:
						STBControl.IsReadOnly = false;
						break;
					}
				}
			//((CommonProfileModell) CommonProfileModellInstance).FunctionToDo = FunctionToDo;
			//((CommonProfileModell) CommonProfileModellInstance).SelectedDataTemplatesDescription = ActiveFullDataDependency;
			//((CommonProfileModell) CommonProfileModellInstance).DoRequestedFunction ();
			

			StandBildMappingControlWindow.Show ();
			}
예제 #8
0
		private void StartDataDependencyControl(DataProfile profile,
					CommonProfileModell.RequestedFunction FunctionToDo)
			{
			if (DataDependencyControlWindow != null)
				DataDependencyControlWindow.Close ();
			if (DataDependencyControlWindow == null)
				{
				DataDependencyControlWindow = new Window();
				DataDependencyControlWindow.Title = "Bearbeiten von Definitionen zur Speicherung von Informationen";
				DataDependencyControl DDControl = new DataDependencyControl ();
				DataDependencyControlWindow.Content = DDControl;

				Binding ModellBinding = new Binding("CommonProfileModellInstance") 
					{ Source = this };
				DDControl.SetBinding(DataDependencyControl.CommonProfileModellInstanceProperty, ModellBinding);


				DataDependencyControlWindow.Closing += (O, Args) =>
					{
					DDControl.CloseRequested ();
					DataDependencyControlWindow = null;
					};
				
				switch (FunctionToDo)
					{
					case CommonProfileModell.RequestedFunction.Show:
						DDControl.IsReadOnly = true;
						break;
					case CommonProfileModell.RequestedFunction.New:
					case CommonProfileModell.RequestedFunction.Modify:
					case CommonProfileModell.RequestedFunction.Delete:
						DDControl.IsReadOnly = false;
						break;
					case CommonProfileModell.RequestedFunction.NewDataDependency:
						DDControl.IsReadOnly = false;
						break;
					}
				}
			((CommonProfileModell) CommonProfileModellInstance).FunctionToDo = FunctionToDo;
			((CommonProfileModell)CommonProfileModellInstance).SelectedDataDependency = profile.ActiveDataDependency;
			if (profile.ActiveDataDependency != null)
				((CommonProfileModell)CommonProfileModellInstance).SelectedDataDependency = profile.ActiveDataDependency;
			((CommonProfileModell)CommonProfileModellInstance).DoRequestedFunction();
			

			switch (FunctionToDo)
				{
				case CommonProfileModell.RequestedFunction.Modify:
				case CommonProfileModell.RequestedFunction.NewDataDependency:
					if (DataDependencyControlWindow.ShowDialog() == true)
						ProcessNewRequest (profile, FunctionToDo);
					break;
				default:
					DataDependencyControlWindow.Show ();
					break;
				}
			}
예제 #9
0
		private void CreateDataDependencySelectionControlWindow(DataProfile profile, 
				CommonProfileModell.RequestedFunction FunctionToDo)
			{
			if (DataDependencySelectionControlWindow != null)
				DataDependencySelectionControlWindow.Close ();
			DataDependencyCollectionToWorkFor = profile.DataDependencyCollectionToWorkForParameter;
			if (DataDependencySelectionControlWindow == null)
				{
				DataDependencySelectionControlWindow = new Window();
				String TargetElement = String.Empty;
				if (CommonProfileModellInstance.Profile.ActiveTyp != null)
					TargetElement = "zum Typ Element \"" + CommonProfileModellInstance.Profile.ActiveTyp.NameId + "\"";
				else
					if (CommonProfileModellInstance.Profile.ActiveRootDataTemplates != null)
						TargetElement = "zum Root Element \"" 
						+ CommonProfileModellInstance.Profile.ActiveRootDataTemplates.NameId + "\"";
				DataDependencySelectionControlWindow.Title = "Bearbeiten/Ansehen/Auswählen von DataDependency Einträgen " + TargetElement;
				DataDependencySelectionControl DDSelectControl = new DataDependencySelectionControl();
				DataDependencySelectionControlWindow.Content = DDSelectControl;

				Binding ModellBinding = new Binding("CommonProfileModellInstance") { Source = this };
				DDSelectControl.SetBinding(DataDependencySelectionControl.CommonProfileModellInstanceProperty, ModellBinding);

				Binding FullDataDependencyCollectionToWorkForBinding = new Binding("FullDataDependencyCollectionToWorkFor") { Source = this };
				DDSelectControl.SetBinding(DataDependencySelectionControl.FullDataDependencyCollectionToWorkForProperty,
								FullDataDependencyCollectionToWorkForBinding);

				DataDependencySelectionControlWindow.Closing += (O, Args) =>
					{
					DDSelectControl.CloseRequested();
					DataDependencySelectionControlWindow = null;
					};

				switch (FunctionToDo)
					{
					case CommonProfileModell.RequestedFunction.Show:
						DDSelectControl.IsReadOnly = true;
						break;
					case CommonProfileModell.RequestedFunction.Add:
					case CommonProfileModell.RequestedFunction.Remove:
						DDSelectControl.IsReadOnly = false;
						break;
					}
				}
			((CommonProfileModell)CommonProfileModellInstance).FunctionToDo = FunctionToDo;
			((CommonProfileModell)CommonProfileModellInstance).SelectedDataDependency = profile.ActiveDataDependency;
			//if (profile.ActiveDataDependency != null)
			//	{
			//	((CommonProfileModell)CommonProfileModellInstance).SelectedDataDependency = profile.ActiveDataDependency;
			//	((CommonProfileModell)CommonProfileModellInstance).DoRequestedFunction();
			//	}

			}
예제 #10
0
		private void ProcessNewRequest(DataProfile profile,
			CommonProfileModell.RequestedFunction FunctionToDo)
			{
			bool CorrectSelected = false;
			String ElementDescriptionText = CommonProfileModellInstance.GetDataDependencyDescriptionText
					(FunctionToDo, out CorrectSelected);
			if (!CorrectSelected)
				{
				MessageBox.Show("Aus folgendem Grund kann die gewünschte\r\nAktion nicht durchgeführt werden:\r\n"
								 + ElementDescriptionText);
				return;
				}

			if (MessageBox.Show("Wenn Sie OK drücken, wird\r\ndie gewünschte \"" + FunctionToDo.ToString()
					+ "\" Funktion bei folgendem \r\n"
					+ ElementDescriptionText + "\r\ndurchgeführt", "SicherheitsAbfrage",
						MessageBoxButton.OKCancel) != MessageBoxResult.OK)
				return;
			((CommonProfileModell)CommonProfileModellInstance).FunctionToDo = FunctionToDo;
			((CommonProfileModell)CommonProfileModellInstance).SelectedDataDependency = profile.ActiveDataDependency;
			if (profile.ActiveDataDependency != null)
				{
				((CommonProfileModell)CommonProfileModellInstance).DoRequestedFunction();
				}
			return;
			}
예제 #11
0
		private void StartDataDependencySelectionControl (DataProfile profile,
					CommonProfileModell.RequestedFunction FunctionToDo)
			{
			switch (FunctionToDo)
				{
				case CommonProfileModell.RequestedFunction.Add:
					{
					CreateDataDependencySelectionControlWindow(profile, FunctionToDo);
					if (DataDependencySelectionControlWindow.ShowDialog () == false)
						break;
					ProcessAddOrRemoveRequest(CommonProfileModellInstance.Profile, FunctionToDo);
					}
					break;
				case CommonProfileModell.RequestedFunction.Remove:
					{
					ProcessAddOrRemoveRequest (profile, FunctionToDo);
					}
					break;
				case CommonProfileModell.RequestedFunction.NewDataDependency:
					{
					CreateDataDependencySelectionControlWindow(profile, FunctionToDo);
					if (DataDependencySelectionControlWindow.ShowDialog() == false)
						break;
//					ProcessNewRequest (CommonProfileModellInstance.Profile.ActiveFullDataDependency, FunctionToDo);
					}
					break;
				default:
					{
					CreateDataDependencySelectionControlWindow (profile, FunctionToDo);
					DataDependencySelectionControlWindow.Show ();
					}
				break;
				}
			}
예제 #12
0
		//public InformationenFull InformationFull { get; set; }


#endregion


#region Common Properties

		//private TemplateHandling.ITemplateReadWrite _searchInformationenInterface;
		//private ITemplateReadWrite SearchInformationenInterface
		//	{
		//	get
		//		{
		//		if (_searchInformationenInterface == null)
		//			_searchInformationenInterface = TemplateManagement.InformationenInterface.GetNewInstance ();
		//		return _searchInformationenInterface;
		//		}
		//	}

		//private ITemplateReadWrite _insertInformationenInterface;
		//private ITemplateReadWrite InsertInformationenInterface
		//	{
		//	get
		//		{
		//		if (_insertInformationenInterface == null)
		//			_insertInformationenInterface = TemplateManagement.InformationenInterface.GetNewInstance ();
		//		return _insertInformationenInterface;
		//		}
		//	}

		//private ITemplateReadWrite _modifyInformationenInterface;
		//private ITemplateReadWrite ModifyInformationenInterface
		//	{
		//	get
		//		{
		//		if (_modifyInformationenInterface == null)
		//			_modifyInformationenInterface = TemplateManagement.InformationenInterface.GetNewInstance ();
		//		return _modifyInformationenInterface;
		//		}
		//	set { _searchInformationenInterface = value; }
		//	}




		//private InformationenViewerDataModell _infoModell;
		//public InformationenViewerDataModell InfoModell
		//	{
		//	get
		//		{
		//		return InformationenViewerDataModell.GetGlobalReadonlyDataModell();
		//		}
		//	set { _infoModell = value; }
		//	}


#endregion


#region Startup

		public AltErlaaInfoRootControl ()
			{
			CommonSearchConfiguratorDataModellInstance = new CommonSearchConfiguratorDataModell ();
			CommonProfileModellInstance = new CommonProfileModell ();
			InitializeComponent ();
			this.DataContext = this;
			if (System.ComponentModel.DesignerProperties.GetIsInDesignMode (this))
				return;
			//Uri FirstTimeLoader = ServiceSource;
//			LoadingAllowed = false;
			WorkListModellInstance = new WorkListModell ();


			}