2022-08-30 08:53:24 +02:00
|
|
|
|
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
|
|
|
|
|
2022-08-30 08:53:24 +02: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
|
|
|
|
}
|
2022-08-30 08:53:24 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|