private void ActiveMaterialienClassChanged(SelectionDataClass OldValue, SelectionDataClass NewValue)
			{
			if (NewValue == null)
				return;
			EditorForMaterialienTableModellInstance.ActiveMaterialien = DataModell.GetTableClass
				(NewValue.KatalogTableName.Replace("Full", ""), NewValue.KatalogTableID) as AltErlaaInfoDataWrapper.DataClasses.MaterialienClasses.Materialien;
			EditorForMaterialienTableModellInstance.SendPropertyChanged("ActiveMaterialien");
			EditorForMaterialienTableModellInstance.ActiveInformationenAddOn.FreiText
				= EditorForMaterialienTableModellInstance.ActiveMaterialien.GetFreitext(FreiTextFormat.Full);
			}
		private void SelectedDataClassItemChanged(SelectionDataClass OldValue, SelectionDataClass NewValue)
			{
			if (NewValue == null)
				return;
			UpdateOneAddOnModellInstance.ActiveInformationenAddOn.Tabelle = NewValue.KatalogTableName.Replace ("Full", "");
			UpdateOneAddOnModellInstance.ActiveInformationenAddOn.TabelleID = NewValue.KatalogTableID;
			UpdateOneAddOnModellInstance.ActiveInformationenAddOn.ConnectedTableClass = null;
			UpdateOneAddOnModellInstance.DataModell.FillConnectedTableClasses (UpdateOneAddOnModellInstance.ActiveInformationenAddOn, true, true);
			UpdateOneAddOnModellInstance.ActiveInformationenAddOn.FreiText =
					((RootDataClass)UpdateOneAddOnModellInstance.ActiveInformationenAddOn.ConnectedTableClass).GetFreitext(FreiTextFormat.Full);
			}
		private void ActiveSelectionDataClassChanged(SelectionDataClass OldValue, SelectionDataClass NewValue)
			{
			if (NewValue == null)
				return;
			EditorForRemarksTableModellInstance.ActiveRemarks = DataModell.GetTableClass
				(NewValue.KatalogTableName.Replace("Full", ""), NewValue.KatalogTableID) as AltErlaaInfoDataWrapper.DataClasses.RemarksClasses.Remarks;
			((RootDataClass)EditorForRemarksTableModellInstance.ActiveInformationenAddOn.ConnectedTableClass).BackLinkInformationenAddOn
				= EditorForRemarksTableModellInstance.ActiveInformationenAddOn;

			EditorForRemarksTableModellInstance.SendPropertyChanged("ActiveRemarks");
			EditorForRemarksTableModellInstance.ActiveInformationenAddOn.FreiText
				= EditorForRemarksTableModellInstance.ActiveRemarks.GetFreitext(FreiTextFormat.Full);
			}
Example #4
0
			private SelectionDataClass GetSelectionDataContent(DataRow SearchData,
						InformationenAddOn ParentParameter)
				{
				SelectionDataClass Result = new SelectionDataClass(SearchData)
				{
					Parent = ParentParameter,
					KatalogTableName = SearchData.Table.TableName,
					KatalogTableID = (Guid)SearchData["ID"]
				};
				List<String> Auswahl = new List<string>();
				foreach (String SelectItem in ItemsToSelectForSelection)
					{
					if (SelectItem == "ID")
						continue;
					if (SearchData[SelectItem] != Convert.DBNull)
						Auswahl.Add(SearchData[SelectItem].ToString());
					}
				List<String> Hinweis = new List<string>();
				foreach (String HinweisItem in ItemsToFillHinweisColumn)
					{
					if (HinweisItem == "ID")
						continue;
					if (SearchData[HinweisItem] != Convert.DBNull)
						Hinweis.Add(SearchData[HinweisItem].ToString());
					}
				Result.ZurAuswahl = String.Join(", ", Auswahl);
				Result.Hinweis = String.Join(", ", Hinweis);
				return Result;
				}
Example #5
0
		private DataCollection<SelectionDataClass> GetSelectionDataFormatting(DataTable EntriesToReFormat)
			{
			DataCollection<SelectionDataClass> Result = new DataCollection<SelectionDataClass>();
			foreach (DataRow EntryRow in EntriesToReFormat.Rows)
				{
				SelectionDataClass SelectionData = new SelectionDataClass(EntryRow) { };
				SelectionData.ID = (System.Guid)EntryRow["ID"];
				List<String> AuswahlElemente = new List<string>();
				List<String> HinweisElemente = new List<string>();
				foreach (String Item in ItemsToSelectForSelection)
					{
					if (Item == "ID")
						continue;
					if (ItemsToFillHinweisColumn.Contains(Item))
						{
						if (!String.IsNullOrEmpty(EntryRow[Item].ToString()))
							HinweisElemente.Add(EntryRow[Item].ToString());
						}
					else
						{
						if (!String.IsNullOrEmpty(EntryRow[Item].ToString()))
							AuswahlElemente.Add(EntryRow[Item].ToString());
						}
					}

				SelectionData.ZurAuswahl = String.Join(" ", AuswahlElemente.ToArray());
				SelectionData.Hinweis = String.Join(" ", HinweisElemente.ToArray());

				Result.Add(SelectionData);
				}
			return Result;
			}