MH: AWO Dortmund Silvester

This commit is contained in:
2024-12-10 11:39:28 +01:00
parent 3f56c07d1d
commit 3eb7415ecb
2 changed files with 24 additions and 0 deletions

View File

@@ -63,6 +63,7 @@
<Compile Include="Mitarbeiterauslastung.designer.cs">
<DependentUpon>Mitarbeiterauslastung.cs</DependentUpon>
</Compile>
<Compile Include="Service\CustomVacationService.cs" />
<Compile Include="Translation\CustomTranslationDictionary.cs" />
<Compile Include="SettlementReport.cs">
<SubType>Component</SubType>

View File

@@ -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<FeiertagDC> 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;
}
}
}