BeWoRimbach

This commit is contained in:
Alexandra
2021-12-30 11:35:07 +01:00
parent 8933d0c372
commit b682f33af6
5 changed files with 45 additions and 18 deletions

View File

@@ -49,6 +49,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="CustomMitarbeiterstundenkontoBerechnung.cs" />
<Compile Include="CustomMitarbeiterstundenkontoBerechnungMonate.cs" />
<Compile Include="FLSGroupReport.cs">
<SubType>Component</SubType>
</Compile>

View File

@@ -13,24 +13,30 @@ namespace BeWoRimbach
{
public override List<DateTime> GetFeiertage(int year)
{
List<DateTime> list = new List<DateTime>();
list.Add(new DateTime(year, 1, 1)); // "Neujahr"));
list.Add(new DateTime(year, 5, 1)); // , "Tag der Arbeit"));
list.Add(new DateTime(year, 10, 3)); // , "Tag der dt. Einheit"));
list.Add(new DateTime(year, 12, 24)); // , "Heilig Abend"));
list.Add(new DateTime(year, 12, 25)); // , "1. Weihnachtstag"));
list.Add(new DateTime(year, 12, 26)); // , "2. Weihnachtstag"));
DateTime osterSonntag = GetOsterSonntag(year);
list.Add(osterSonntag.AddDays(-2)); // , "Karfreitag"));
list.Add(osterSonntag.AddDays(1)); // , "Ostermontag"));
list.Add(osterSonntag.AddDays(39)); // , "Christi Himmelfahrt"));
list.Add(osterSonntag.AddDays(50)); // , "Pfingstmontag"));
list.Add(osterSonntag.AddDays(60)); // , "Fronleichnam"));
list.Add(new DateTime(year, 12, 31)); //, "Sylvester"));
var list = base.GetFeiertage(year);
list.Remove(new DateTime(year, 11, 1)); // Allerheiligen
list.Remove(new DateTime(year, 12, 24)); //Heiligabend
return list;
}
//public override List<DateTime> GetFeiertage(int year)
//{
// List<DateTime> list = new List<DateTime>();
// list.Add(new DateTime(year, 1, 1)); // "Neujahr"));
// list.Add(new DateTime(year, 5, 1)); // , "Tag der Arbeit"));
// list.Add(new DateTime(year, 10, 3)); // , "Tag der dt. Einheit"));
// list.Add(new DateTime(year, 12, 25)); // , "1. Weihnachtstag"));
// list.Add(new DateTime(year, 12, 26)); // , "2. Weihnachtstag"));
// DateTime osterSonntag = GetOsterSonntag(year);
// list.Add(osterSonntag.AddDays(-2)); // , "Karfreitag"));
// list.Add(osterSonntag.AddDays(1)); // , "Ostermontag"));
// list.Add(osterSonntag.AddDays(39)); // , "Christi Himmelfahrt"));
// list.Add(osterSonntag.AddDays(50)); // , "Pfingstmontag"));
// list.Add(osterSonntag.AddDays(60)); // , "Fronleichnam"));
// return list;
//}
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using BeWo.Report;
using BeWo.Data.Entities;
using BeWo.Report.ReportObjects;
namespace BeWoRimbach
{
public class CustomMitarbeiterstundenkontoBerechnungMonate : MitarbeiterstundenkontoBerechnungMonate
{
public override MitarbeiterstundenkontoBerechnung CreateMitarbeiterstundenkontoBerechnung()
{
return new CustomMitarbeiterstundenkontoBerechnung();
}
}
}

View File

@@ -21,7 +21,7 @@ namespace BeWoRimbach
public void SetReportDataSource(MitarbeiterstundenkontoRO pRO)
{
var msb = new MitarbeiterstundenkontoBerechnungTagesansicht();
var msb = new CustomMitarbeiterstundenkontoBerechnung();
msb.CreateReport(pRO);
foreach (var ed in pRO.EmployeeDetailList)

View File

@@ -18,7 +18,7 @@ namespace BeWoRimbach
public void SetReportDataSource(MitarbeiterstundenkontoMonateRO pRO)
{
var msb = new MitarbeiterstundenkontoBerechnungMonate();
var msb = new CustomMitarbeiterstundenkontoBerechnungMonate();
msb.CreateReport(pRO);
this.bindingSource1.DataSource = pRO;