public void ProcessStandBildConnection(Guid InformationId)
			{
			ConnectionDataModell ConnectionDataModellInstance = new ConnectionDataModell();
			ConnectionDataModellInstance.InformationenID = InformationId;
			//List<ProcessConnector> ProcessConnectorList = ConnectionDataModellInstance.LocateConnectorsForRedaktion(TableTypeToCreate,
			//	out ReturnMessage);
			//foreach (ProcessConnector Entry in ProcessConnectorList)
			//	{
			//	ConnectionDataModellInstance.ActiveProcessConnector = Entry;
			//	ConnectionDataModellInstance.DoStandBildProgrammActivities(ConnectionDataModellInstance.ActiveProcessConnector);
			//	break;
			//	}
			}
Пример #2
0
		public String CreateStandBildEntryImplementation (Guid InformationenId,
					Guid InformationenAddOnId, Guid ConnectorId, String TableTypeToCreate,
					out Guid? CreatedId)
			{
			ConnectionDataModell connectionDataModell = new ConnectionDataModell();
			connectionDataModell.InformationenID = InformationenId;
			String ErrorMessage = connectionDataModell.Create(TableTypeToCreate);
			if (!String.IsNullOrEmpty(ErrorMessage))
				{
				WMB.Basics.ReportErrorToEventViewer("Es ist ein Fehler aufgetreten (\"" + TableTypeToCreate
						+ "\"):\r\n" + ErrorMessage);
				CreatedId = null;
				return ErrorMessage;
				}
			CreatedId = connectionDataModell.CreatedStandBildGuid;
			return String.Empty;
			}
Пример #3
0
		public Guid DoStandBildDBConversionForAllRelatedConnections(CommonSearchClass Element, String TableTypeToCreate)
			{
			ConnectionDataModell ConnectionDataModellInstance = new ConnectionDataModell();
			ConnectionDataModellInstance.InformationenID = Element.InformationenConnectedEntry.ID;
			ConnectionDataModellInstance.DoStandBildDBCOnversionForAllSiblingConnectoren
						(Element.InformationenConnectedEntry.ID);
			return Element.InformationenConnectedEntry.ID;
			}
Пример #4
0
		public void ProcessStandBildConnection (CommonSearchClass Element, String TableTypeToCreate)
			{
			ConnectionDataModell ConnectionDataModellInstance = new ConnectionDataModell ();
			ConnectionDataModellInstance.InformationenID = Element.InformationenConnectedEntry.ID;
			String ReturnMessage = String.Empty;
			List<ProcessConnector> ProcessConnectorList = ConnectionDataModellInstance.LocateConnectorsForRedaktion (TableTypeToCreate,
				out ReturnMessage);
			foreach (ProcessConnector Entry in ProcessConnectorList)
				{
				ConnectionDataModellInstance.ActiveProcessConnector = Entry;
				ConnectionDataModellInstance.DoStandBildProgrammActivities (ConnectionDataModellInstance.ActiveProcessConnector);
				break;
				}
			}
		public static bool CreateMultipleConnectedStandbildEntries(List<String> InformationenIDs,
					String[] TableTypesToCreate, ref CommonSearchClass SelectedEntry)
			{

			foreach (String InformationenID in InformationenIDs)
				{
				DataModell.ActiveInformationen = DataModell.GetInformationen(Guid.Parse(InformationenID), true, true);
				ConnectionDataModellInstance = new ConnectionDataModell ();
				ConnectionDataModellInstance.InformationenID = Guid.Parse(InformationenID);
				foreach (String TableTypeToCreate in TableTypesToCreate)
					{
					String ErrorMessage = ConnectionDataModellInstance.Create(TableTypeToCreate);
					if (!String.IsNullOrEmpty (ErrorMessage))
						{
						if (MessageBox.Show ("Es ist ein Fehler aufgetreten (\"" + TableTypeToCreate + "\"):\r\n" + ErrorMessage
						                     + "\r\nWenn Sie die gesamte Verarbeitung\r\nabbrechen wollen, bitte \"Abbrechen\" drücken."
						                     + "\r\nansonsten OK drücken, dann\r\nwerden die anderen Anforderungen\r\nweiter bearbeitet",
							"Sicherheitsabfrage", MessageBoxButton.OKCancel) == MessageBoxResult.Cancel)
							break;
						}
					Basics.DoEvents ();
					}
				}
			return true;
			}