Files
BeWoPlaner/ReportImp/AkggMid/Service/CustomVacationService.cs

34 lines
781 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using BeWo.Service.Core;
using BeWo.Service.Plugins;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using Utils = BS.Shared.Core.Utils;
namespace AkggMid.Service
{
public class CustomVacationService : VacationService
{
2023-10-31 15:43:15 +01:00
private bool _useDbFeiertag = true;
public bool UseDbFeiertage {
get { return _useDbFeiertag; }
set { _useDbFeiertag = value; }
}
2023-03-24 13:07:59 +01:00
public override string Bundesland { get => "Hessen"; }
2023-03-20 09:36:04 +01:00
public override List<FeiertagDC> GetDBFeiertage(int year)
{
2023-03-24 13:07:59 +01:00
if (UseDbFeiertage)
{
return base.GetDBFeiertage(year);
}
return new List<FeiertagDC>();
2023-03-20 09:36:04 +01:00
}
}
}