From c0bc2eafdb3446359f71b7c43e026bcd3be646ee Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Mon, 4 Sep 2023 15:20:40 +0200 Subject: [PATCH] MH: VARO AZ-Erfassung --- .../Validation/ServiceRecordValidator.cs | 25 +++++++++++++++++++ .../VaroSozialagentur.csproj | 1 + 2 files changed, 26 insertions(+) create mode 100644 ReportImp/VaroSozialagentur/Validation/ServiceRecordValidator.cs diff --git a/ReportImp/VaroSozialagentur/Validation/ServiceRecordValidator.cs b/ReportImp/VaroSozialagentur/Validation/ServiceRecordValidator.cs new file mode 100644 index 000000000..486a3fb7e --- /dev/null +++ b/ReportImp/VaroSozialagentur/Validation/ServiceRecordValidator.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.DataContracts; + +namespace VaroSozialagentur.Validation +{ + public class CustomServiceRecordValidator : ServiceRecordValidator + { + public override string[] GetIgnoreCategoriesForOverlappingCheck() + { + return new[] { "Arbeitszeit" }; + } + + public override String[] GetIgnoreServiceDescriptionsForOverlappingCheck() + { + return new[] { "Arbeitszeit" }; + } + } + + +} \ No newline at end of file diff --git a/ReportImp/VaroSozialagentur/VaroSozialagentur.csproj b/ReportImp/VaroSozialagentur/VaroSozialagentur.csproj index 513c258ed..34666ffed 100644 --- a/ReportImp/VaroSozialagentur/VaroSozialagentur.csproj +++ b/ReportImp/VaroSozialagentur/VaroSozialagentur.csproj @@ -111,6 +111,7 @@ Teamstundenkonto.cs +