Revert "BeWoHeinsberg: Abwesenheitstabell QB korrigiert"
This reverts commit 1b8e7d4688.
This commit is contained in:
@@ -68,16 +68,28 @@ namespace BeWoHeinsberg
|
||||
ErstelleAbwesenheitenTabelle(pRO);
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void ErstelleAbwesenheitenTabelle(ServicesOverviewRO pRo)
|
||||
{
|
||||
if (pRo.Abwesenheiten != null)
|
||||
{
|
||||
int newRows = 0;
|
||||
int index = 1;
|
||||
DateTime monatStart = new DateTime(pRo.StartDate.Year, pRo.StartDate.Month, 1);
|
||||
DateTime monatEnde = monatStart.AddMonths(1).AddDays(-1);
|
||||
|
||||
foreach (var at in pRo.Abwesenheiten)
|
||||
{
|
||||
|
||||
if (at.Start.HasValue && at.Start < monatStart)
|
||||
{
|
||||
at.Start = monatStart;
|
||||
}
|
||||
if (!at.End.HasValue || at.End > monatEnde)
|
||||
{
|
||||
at.End = monatEnde;
|
||||
}
|
||||
DevExpress.XtraReports.UI.XRTableRow row = null;
|
||||
if (index < xrTableAbwesenheiten.Rows.Count)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user