From 3eb7415ecb0a35aeb309b2c6f005cba81af4bf40 Mon Sep 17 00:00:00 2001 From: HirschleM Date: Tue, 10 Dec 2024 11:39:28 +0100 Subject: [PATCH] MH: AWO Dortmund Silvester --- ReportImp/AwoDortmund/AwoDortmund.csproj | 1 + .../Service/CustomVacationService.cs | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ReportImp/AwoDortmund/Service/CustomVacationService.cs diff --git a/ReportImp/AwoDortmund/AwoDortmund.csproj b/ReportImp/AwoDortmund/AwoDortmund.csproj index ae1589084..f7ac47297 100644 --- a/ReportImp/AwoDortmund/AwoDortmund.csproj +++ b/ReportImp/AwoDortmund/AwoDortmund.csproj @@ -63,6 +63,7 @@ Mitarbeiterauslastung.cs + Component diff --git a/ReportImp/AwoDortmund/Service/CustomVacationService.cs b/ReportImp/AwoDortmund/Service/CustomVacationService.cs new file mode 100644 index 000000000..00c4277b2 --- /dev/null +++ b/ReportImp/AwoDortmund/Service/CustomVacationService.cs @@ -0,0 +1,23 @@ +using BeWo.Service.Plugins; +using BS.Shared.DataContracts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AwoDortmund.Service +{ + public class CustomVacationService : VacationService + { + public override List GetFeiertage(int year, string bundesland) + { + var list = base.GetFeiertage(year, bundesland); + + if (year >= 2024) + list.Add(new FeiertagDC() { Datum = new DateTime(year, 12, 31), Name = "Silvester" }); + + return list; + } + } +}