From c852111cb2d6b9bf1b332346a7e70c8d102b35c0 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 7 Jul 2026 15:33:23 +0200 Subject: [PATCH] =?UTF-8?q?AkggMid/Service/CustomVacationService.cs=20-=20?= =?UTF-8?q?Angleichung=20auf=20BeWoDB=20f=C3=BCr=20Feiertage,=20erstmal=20?= =?UTF-8?q?auskommentiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AkggMid/Service/CustomVacationService.cs | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/ReportImp/AkggMid/Service/CustomVacationService.cs b/ReportImp/AkggMid/Service/CustomVacationService.cs index d36633d52..effa96eb7 100644 --- a/ReportImp/AkggMid/Service/CustomVacationService.cs +++ b/ReportImp/AkggMid/Service/CustomVacationService.cs @@ -1,9 +1,10 @@ -using System; -using System.Collections.Generic; -using BeWo.Service.Core; +using BeWo.Service.Core; using BeWo.Service.Plugins; using BS.Shared.Core; using BS.Shared.DataContracts; +using System; +using System.Collections.Generic; +using System.Linq; using Utils = BS.Shared.Core.Utils; namespace AkggMid.Service @@ -20,6 +21,20 @@ namespace AkggMid.Service public override string Bundesland { get => "Hessen"; } + //public override List GetFeiertage(int year, string bundesland) + //{ + // var feiertage = base.GetFeiertage(year, bundesland); + // if (year > 2025) + // { + // var allSaints = feiertage.FirstOrDefault(f => f.Name == "Allerheiligen"); + // if (allSaints != null) + // feiertage.Remove(allSaints); + + // feiertage.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" }); + // } + // return feiertage; + //} + public override List GetDBFeiertage(int year) { if (UseDbFeiertage)