From f023ef59d57ea78fe0f4ea11e4ff013bafe73eb5 Mon Sep 17 00:00:00 2001 From: Kojo Date: Tue, 18 Mar 2025 09:17:44 +0100 Subject: [PATCH] BeWoFuerDich: BeWo-QB verwenden, falls kein KT ermittelt werden kann (statt wie bisher Sozio-LN) --- ReportImp/BeWoFuerDich/CustomReportCreator.cs | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/ReportImp/BeWoFuerDich/CustomReportCreator.cs b/ReportImp/BeWoFuerDich/CustomReportCreator.cs index 28b7a45ca..05f036452 100644 --- a/ReportImp/BeWoFuerDich/CustomReportCreator.cs +++ b/ReportImp/BeWoFuerDich/CustomReportCreator.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; using BeWo.Data; using BeWo.Data.Access; using BeWo.Data.Entities; @@ -151,23 +150,26 @@ namespace BeWoFuerDich private XtraReport CreateServicesOverviewReportForRo(ServicesOverviewRO ro, long? serviceCategoryOid) { IBeWoReport report = null; - String kt = ""; - if (!String.IsNullOrWhiteSpace(ro.Costbearer)) - { - kt = ro.Costbearer.Trim(); - } - if (kt.ToLower().Contains("jugendamt")) - { - report = new LeistungsnachweisJugendamt(); - } - else if (kt != "LVR") - { - report = new LeistungsnachweisSoziotherapie(); - } - if (report == null) + if (String.IsNullOrWhiteSpace(ro.Costbearer)) { report = new Quittierungsbeleg(); } + else + { + String kt = ro.Costbearer; + if (kt.ToLower().Contains("jugendamt")) + { + report = new LeistungsnachweisJugendamt(); + } + else if (kt.ToLower().Contains("lvr")) + { + report = new Quittierungsbeleg(); + } + else + { + report = new LeistungsnachweisSoziotherapie(); + } + } report.SetReportDataSource(ro);