MH: HwHilfswerkInklusionUndTeilhabe Restbudgetstunden auf QB Zwischenstand

SupportOID=167176
This commit is contained in:
2026-07-06 12:10:57 +02:00
parent a8ae6d5916
commit 91d67f19de

View File

@@ -1,12 +1,14 @@
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BS.Shared;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
namespace BeWo.Report.DefaultReports
{
@@ -64,7 +66,31 @@ namespace BeWo.Report.DefaultReports
pRO.Services = servicesBillable;
}
if (pRO.CostBearer2SupportConceptList != null && pRO.CostBearer2SupportConceptList.Count > 0)
{
var c2s = pRO.CostBearer2SupportConceptList[0];
var dc = MapperFactory.SupportConceptCostBearerRelDC_CostBearer2SupportConcept.MapToNewDC(c2s);
foreach (var scap in dc.ApprovalPeriodList)
{
if (scap.ApprovedBEPerInterval.HasValue && scap.ApprovedBEInterval.HasValue)
{
if (scap.ApprovedBEInterval.HasValue && scap.ApprovedBEInterval.Value == SupportConceptApprovalInterval.Weekly)
pRO.ApprovedFLSTotal = Convert.ToDecimal((scap.EndDate.Value - scap.StartDate.Value).TotalDays / 7) * scap.ApprovedBEPerInterval.Value;
else if (scap.ApprovedBEInterval.HasValue && scap.ApprovedBEInterval.Value == SupportConceptApprovalInterval.Monthly)
pRO.ApprovedFLSTotal = Convert.ToDecimal(((scap.EndDate.Value - scap.StartDate.Value).TotalDays + 1) / 30.44) * scap.ApprovedBEPerInterval.Value;
}
}
}
foreach (var s in pRO.Services)
s.FLSQualified = s.MinutesQualified / 60;
pRO.TotalFLSQualified = pRO.TotalFLMQualified / 60;
pRO.CalculateFLSSollIst2();
lblReststunden.Text += String.Format(" {0:0.00}", pRO.ApprovedFLSTotal - pRO.MinutenGeleistetBisVormonat / 60 /*- pRO.TotalFLS*/);
bindingSource1.DataSource = pRO;
}