34 lines
781 B
C#
34 lines
781 B
C#
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
|
|
{
|
|
|
|
private bool _useDbFeiertag = true;
|
|
|
|
public bool UseDbFeiertage {
|
|
get { return _useDbFeiertag; }
|
|
set { _useDbFeiertag = value; }
|
|
}
|
|
|
|
public override string Bundesland { get => "Hessen"; }
|
|
|
|
public override List<FeiertagDC> GetDBFeiertage(int year)
|
|
{
|
|
if (UseDbFeiertage)
|
|
{
|
|
return base.GetDBFeiertage(year);
|
|
}
|
|
return new List<FeiertagDC>();
|
|
|
|
}
|
|
}
|
|
}
|