From 4e655e26462f9d785ba25a834dae2cf4e67aacfc Mon Sep 17 00:00:00 2001 From: Kojo Date: Mon, 22 Sep 2025 10:56:29 +0200 Subject: [PATCH] =?UTF-8?q?OwnSoftTestSchmitzi:=20Neues=20Projekt=20mit=20?= =?UTF-8?q?Budgetnachweisanhang=20f=C3=BCr=20LWL-Spitzabrechnungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OwnSoftTestSchmitzi.csproj | 85 +++++++++++++++++++ .../Properties/AssemblyInfo.cs | 36 ++++++++ .../Reporting/CustomReportCreator.cs | 38 +++++++++ ReportImp/OwnSoftTestSchmitzi/app.config | 27 ++++++ 4 files changed, 186 insertions(+) create mode 100644 ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj create mode 100644 ReportImp/OwnSoftTestSchmitzi/Properties/AssemblyInfo.cs create mode 100644 ReportImp/OwnSoftTestSchmitzi/Reporting/CustomReportCreator.cs create mode 100644 ReportImp/OwnSoftTestSchmitzi/app.config diff --git a/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj b/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj new file mode 100644 index 000000000..b52da16c1 --- /dev/null +++ b/ReportImp/OwnSoftTestSchmitzi/OwnSoftTestSchmitzi.csproj @@ -0,0 +1,85 @@ + + + + + Debug + AnyCPU + {D357755F-6B30-4CA4-88B9-44F624030AAA} + Library + Properties + OwnSoftTestSchmitzi + 9464897077_Reports + v4.7.2 + 512 + + + + true + full + false + ..\..\CustomerDlls\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\..\CustomerDlls\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE} + Data + + + {40d8b312-ea64-49e3-a31a-5e57ed4d5654} + Report + + + {094331c3-ecee-4c89-bbfd-4c9ded89f0ef} + Service + + + {2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4} + Shared + + + + + + + + \ No newline at end of file diff --git a/ReportImp/OwnSoftTestSchmitzi/Properties/AssemblyInfo.cs b/ReportImp/OwnSoftTestSchmitzi/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..a19f37cd8 --- /dev/null +++ b/ReportImp/OwnSoftTestSchmitzi/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("OwnSoftTestSchmitzi")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("OwnSoftTestSchmitzi")] +[assembly: AssemblyCopyright("Copyright © 2025")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("c1fed668-adb9-47e0-b589-1389618e1b6e")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ReportImp/OwnSoftTestSchmitzi/Reporting/CustomReportCreator.cs b/ReportImp/OwnSoftTestSchmitzi/Reporting/CustomReportCreator.cs new file mode 100644 index 000000000..43327712c --- /dev/null +++ b/ReportImp/OwnSoftTestSchmitzi/Reporting/CustomReportCreator.cs @@ -0,0 +1,38 @@ +using System; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Report; +using BeWo.Service.DCEntityMapper; +using BS.Shared.DataContracts; +using DevExpress.XtraReports.UI; + +namespace OwnSoftTestSchmitzi +{ + public class CustomReportCreator : DefaultReportCreator + { + public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid) + { + long result; + Settlement2DC lSettlementDC; + string cbName; + if (invoiceBaseOid.HasValue && invoiceBaseOid.Value > 0) + { + long invoiceOid = invoiceBaseOid.Value; + var ib = DAOFactory.GenericDAO.LoadByID(invoiceOid); + cbName = ib.CostBearer2SupportConcept.CostBearer.Organisation.Name; + } + else + { + Int64.TryParse(dcId, out result); + lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID(result)); + cbName = lSettlementDC.RecipientOrganisation; + } + + if (cbName.Contains("Landschaftsverband Westfalen-Lippe") || cbName == "LWL") + return base.CreateSettlementReport(dcId, invoiceBaseOid, true); + + return base.CreateSettlementReport(dcId, invoiceBaseOid, false); + } + + } +} diff --git a/ReportImp/OwnSoftTestSchmitzi/app.config b/ReportImp/OwnSoftTestSchmitzi/app.config new file mode 100644 index 000000000..677131bde --- /dev/null +++ b/ReportImp/OwnSoftTestSchmitzi/app.config @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file