Files
BeWoPlaner/ReportImp/BeWoAuxilioRitter/CustomVacationService.cs

30 lines
881 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 BeWoAuxilioRitter.Service
{
public class CustomVacationService : VacationService
{
public override List<FeiertagDC> GetFeiertage(int year, string bundesland)
{
var list = base.GetFeiertage(year, bundesland);
list.Add(new FeiertagDC() { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
return list;
}
//public override decimal GetFeiertagsFaktor(DateTime start)
//{
// if (start.Date.Month == 12 && (start.Date.Day == 24 || start.Date.Day == 31))
// return 0.5m;
// else
// return base.GetFeiertagsFaktor(start);
//}
}
}