BUGeVReports: Silvester zur Feiertagsliste hinzugefügt
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
<Compile Include="ServiceInvoiceReport.Designer.cs">
|
||||
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Service\CustomVacationService.cs" />
|
||||
<Compile Include="SettlementReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
||||
19
ReportImp/BUGeVReports/Service/CustomVacationService.cs
Normal file
19
ReportImp/BUGeVReports/Service/CustomVacationService.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared.DataContracts;
|
||||
|
||||
namespace BUGeVReports.Service
|
||||
{
|
||||
public class CustomVacationService : VacationService
|
||||
{
|
||||
public override List<FeiertagDC> GetFeiertage(int year, string bundesland)
|
||||
{
|
||||
var feiertage = base.GetFeiertage(year, bundesland);
|
||||
|
||||
feiertage.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
|
||||
|
||||
return feiertage;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user