コード例 #1
0
ファイル: ContentModellFactory.cs プロジェクト: heinzsack/DEV
		public void CreateInformationenAddOnForModifyInformation(UpdateDataModell UpdateDataModellInstance)
			{
			DataModell.WorkDataSet = DataModell.GetEntryDataSet
				(UpdateDataModellInstance.InformationenID, null, null, true);
			DataModell.ActiveInformationen = DataModell.LoadDBInformationenShortTreeFromEntryDataSet(DataModell.WorkDataSet);
			DataModell.FillUpdateDataCollection ();
			}
コード例 #2
0
ファイル: ContentModellFactory.cs プロジェクト: heinzsack/DEV
		public Informationen InformationenNewStart(UpdateDataModell UpdateDataModellInstance)
			{
			return DataModell.InformationenNewStart (UpdateDataModellInstance.InformationenID);
			}
コード例 #3
0
ファイル: WorkListModell.cs プロジェクト: heinzsack/DEV
		private void InitializeImmediateChildModels()
			{
			RefDetailDataModellInstance = new DetailDataModell();
			RefUpdateDataModellInstance = new UpdateDataModell ();
			}
コード例 #4
0
ファイル: UpdateDataModell.cs プロジェクト: heinzsack/DEV
		public Informationen LoadStartupConfiguration(UpdateDataModell UpdateDataModellInstance)
			{
			switch (UpdateFunction)
				{
				case RequiredUpdateFunction.InsertNew:
					DataModell.InformationAndInformationenAddOns = new DataCollection<object> ();
					ActiveInformationen = WorkListModell.Factory.InformationenNewStart(UpdateDataModellInstance);
					InformationenID = ActiveInformationen.ID;
					return ActiveInformationen;
					break;
				case RequiredUpdateFunction.Modify:
					DataModell.InformationAndInformationenAddOns = new DataCollection<object> ();
					WorkListModell.Factory.CreateInformationenAddOnForModifyInformation(UpdateDataModellInstance);
					break;
				case RequiredUpdateFunction.Delete:
					DataModell.InformationAndInformationenAddOns = new DataCollection<object> ();
					WorkListModell.Factory.CreateInformationenAddOnForDeleteInformation(UpdateDataModellInstance);
					break;
				}

			return null;
			}
コード例 #5
0
		private void OnModifyWorkListEntryRequired(CommonSearchClass CSC, Informationen ActivInfo, Guid? InfoID)
			{
			if (InfoID == null)
				return;
			if (InfoID != ActiveInformationenID)
				throw new Exception ("InfoID != ActiveInformationenID");
			UpdateDataModellInstance = new UpdateDataModell();
			WorkListModellInstance.RefUpdateDataModellInstance = UpdateDataModellInstance;
			UpdateDataModellInstance.UpdateFunction = RequiredUpdateFunction.Modify;
			UpdateDataModellInstance.InformationenID = (Guid)InfoID;
			AltErlaaInfoUpdateDataControlInstance.DoModifyWorkListEntry(CSC, ActivInfo, InfoID);
			UpdateDataModellInstance.LoadStartupConfiguration(UpdateDataModellInstance);
			SetVisibilityToUpdate();
			}
コード例 #6
0
		private void OnAddNewWorkListEntryRequired(CommonSearchClass CSC, Informationen ActivInfo, Guid? InfoID)
			{
			UpdateDataModellInstance = new UpdateDataModell();
			if (UpdateDataModellInstance.DataModell.MakePersistentRequired ())
				{
				WorkListModell.Factory.ForceCloseCheck ();
				}
			WorkListModellInstance.RefUpdateDataModellInstance = UpdateDataModellInstance;
			UpdateDataModellInstance.UpdateFunction = RequiredUpdateFunction.InsertNew;
			UpdateDataModellInstance.InformationenID = Guid.NewGuid();
			AltErlaaInfoUpdateDataControlInstance.DoAddNewWorkListEntry(CSC, ActivInfo, InfoID);
			UpdateDataModellInstance.LoadStartupConfiguration(UpdateDataModellInstance);
			SetVisibilityToUpdate();
			}