diff --git a/BeWo/ViewModel/AbstractDCMapperVM.cs b/BeWo/ViewModel/AbstractDCMapperVM.cs index ce931c716..028071f01 100644 --- a/BeWo/ViewModel/AbstractDCMapperVM.cs +++ b/BeWo/ViewModel/AbstractDCMapperVM.cs @@ -68,7 +68,7 @@ namespace BeWo.ViewModel protected abstract DCType MapToDataContract(DCType pDataContract, bool doCommit); - internal virtual void UpdateByDataContract(DCType pDataContract) + public virtual void UpdateByDataContract(DCType pDataContract) { throw new NotImplementedException(); } diff --git a/BeWo/ViewModel/AddressVM.cs b/BeWo/ViewModel/AddressVM.cs index 3f7448fc9..c8779a0c6 100644 --- a/BeWo/ViewModel/AddressVM.cs +++ b/BeWo/ViewModel/AddressVM.cs @@ -130,7 +130,7 @@ namespace BeWo.ViewModel return string.Join(", ", parts.Where(p => !string.IsNullOrWhiteSpace(p))); } - internal override void UpdateByDataContract(AddressDC pDataContract) + public override void UpdateByDataContract(AddressDC pDataContract) { AddressLine1 = pDataContract.AddressLine1; AddressLine2 = pDataContract.AddressLine2; diff --git a/BeWo/ViewModel/AiConversationVM.cs b/BeWo/ViewModel/AiConversationVM.cs index 9df9179d9..a4d747f90 100644 --- a/BeWo/ViewModel/AiConversationVM.cs +++ b/BeWo/ViewModel/AiConversationVM.cs @@ -99,7 +99,7 @@ namespace BeWo.ViewModel return pDataContract; } - internal override void UpdateByDataContract(AiConversationDC pDataContract) + public override void UpdateByDataContract(AiConversationDC pDataContract) { DataContract = pDataContract; diff --git a/BeWo/ViewModel/GkvAbrechnungVM.cs b/BeWo/ViewModel/GkvAbrechnungVM.cs index bb7f10a5b..d8bc44614 100644 --- a/BeWo/ViewModel/GkvAbrechnungVM.cs +++ b/BeWo/ViewModel/GkvAbrechnungVM.cs @@ -364,7 +364,7 @@ namespace BeWo.ViewModel public bool IsReady2Create => InvoiceBases?.Where(x => x.IsChecked).Any() ?? false; - internal override void UpdateByDataContract(GkvAbrechnungDC pDataContract) + public override void UpdateByDataContract(GkvAbrechnungDC pDataContract) { GkvAbrechnungVersion = pDataContract.Version; diff --git a/BeWo/ViewModel/Light/GkvAbrechnungLightVM.cs b/BeWo/ViewModel/Light/GkvAbrechnungLightVM.cs index 137028467..a357bbdfc 100644 --- a/BeWo/ViewModel/Light/GkvAbrechnungLightVM.cs +++ b/BeWo/ViewModel/Light/GkvAbrechnungLightVM.cs @@ -379,7 +379,7 @@ namespace BeWo.ViewModel.Light public bool IsReady2Create => InvoiceBases?.Where(x => x.IsChecked).Any() ?? false; - public void UpdateByDataContract(GkvAbrechnungLightDC pDataContract) + public override void UpdateByDataContract(GkvAbrechnungLightDC pDataContract) { Version = pDataContract.Version; diff --git a/BeWo/ViewModel/OrganisationVM.cs b/BeWo/ViewModel/OrganisationVM.cs index c26ed3de8..e2a6a9bdd 100644 --- a/BeWo/ViewModel/OrganisationVM.cs +++ b/BeWo/ViewModel/OrganisationVM.cs @@ -1116,7 +1116,7 @@ namespace BeWo.ViewModel return pDataContract; } - internal override void UpdateByDataContract(OrganisationDC pDataContract) + public override void UpdateByDataContract(OrganisationDC pDataContract) { base.UpdateByDataContract(pDataContract); } diff --git a/Shared/Core/AppError.cs b/Shared/Core/AppError.cs index d80944659..0c7825d60 100644 --- a/Shared/Core/AppError.cs +++ b/Shared/Core/AppError.cs @@ -14,13 +14,15 @@ namespace BS.Shared.Core public string Message { get; set; } public string Displayname => $"AppError {Code}: {Message}"; - // Private damit zentral alle Er + // Private damit zentral alle Errors private AppError(string code, string message) { Code = code; Message = message; } + //public static readonly AppError Example = new AppError("Code", "Message"); + public static readonly Func GkvDatenannahmestelleAdresseNotFound = (dc) => new AppError("GKV.70001", $"Unbekannte Datenannahmestelle. Bitte neu in der Organisation {dc.Name} ermitteln"); } }