CaritasverbandKelheim/LeistungsnachweisAnlage5.cs - Codebehind wie in LN bzw. Anlage4

This commit is contained in:
2024-10-21 14:53:00 +02:00
parent 0952127fde
commit fef083ea16

View File

@@ -21,18 +21,6 @@ namespace CaritasverbandKelheim
public void SetReportDataSource(ServicesOverviewRO pRO)
{
// Get calling method name
//StackTrace stackTrace = new StackTrace();
//Debug.WriteLine(stackTrace.GetFrame(1).GetMethod().Name);
bool hatGruppen = false;
//if (pRO == null)
// return;
if (pRO.Services != null)
{
if (pRO.SupportConceptCostBearer == null)
@@ -57,13 +45,13 @@ namespace CaritasverbandKelheim
}
}
}
else if (pRO.SupportConceptCostBearer.ApprovalPeriodList.Count > 0)
else if (pRO.SupportConceptCostBearer != null && pRO.SupportConceptCostBearer.ApprovalPeriodList.Count > 0)
{
foreach (var item in pRO.SupportConceptCostBearer.ApprovalPeriodList)
{
if (item.ServiceCategory != null)
{
if (item.ServiceCategory.Name.ToLower().Contains("fachkraft"))
if (item.ServiceCategory.Name.ToLower().Contains("fachkraft") || item.ServiceCategory.Name.ToLower().Contains("direkte leistung abw"))
lblApprovedFLS.Text = string.Format("{0:0.00}", item.ApprovedBEPerInterval);
else if (item.ServiceCategory.Name.ToLower().Contains("hilfskraft"))
lblApprovedASS.Text = string.Format("{0:0.00}", item.ApprovedBEPerInterval);