CaritasGuenzburgNeuUlm Arbeitszeit -> Feiertage und ServiceRecordValidator.cs
This commit is contained in:
@@ -110,6 +110,7 @@
|
||||
<Compile Include="Teamstundenkonto.designer.cs">
|
||||
<DependentUpon>Teamstundenkonto.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Validation\ServiceRecordValidator.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Mitarbeiterarbeitszeitkonto.resx">
|
||||
|
||||
@@ -16,6 +16,8 @@ namespace CaritasGuenzburgNeuUlm.Service
|
||||
{
|
||||
List<FeiertagDC> list = base.GetFeiertage(year, bundesland);
|
||||
list.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" });
|
||||
DateTime osterSonntag = GetOsterSonntag(year);
|
||||
list.Add(new FeiertagDC { Datum = osterSonntag.AddDays(-47), Name = "Faschingsdienstag" });
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using BS.Shared.Extensions;
|
||||
using BS.Shared.Services;
|
||||
|
||||
namespace CaritasGuenzburgNeuUlm.Validation
|
||||
{
|
||||
public class CustomServiceRecordValidator : ServiceRecordValidator
|
||||
{
|
||||
public override string[] GetIgnoreCategoriesForOverlappingCheck()
|
||||
{
|
||||
return new[] { "Arbeitszeit" };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user