public void CreateInformationenAddOnForModifyInformation(UpdateDataModell UpdateDataModellInstance) { DataModell.WorkDataSet = DataModell.GetEntryDataSet (UpdateDataModellInstance.InformationenID, null, null, true); DataModell.ActiveInformationen = DataModell.LoadDBInformationenShortTreeFromEntryDataSet(DataModell.WorkDataSet); DataModell.FillUpdateDataCollection (); }
public Informationen InformationenNewStart(UpdateDataModell UpdateDataModellInstance) { return DataModell.InformationenNewStart (UpdateDataModellInstance.InformationenID); }
private void InitializeImmediateChildModels() { RefDetailDataModellInstance = new DetailDataModell(); RefUpdateDataModellInstance = new UpdateDataModell (); }
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; }
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(); }
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(); }