From d15c1ab1b2832b5927e8222febc41419f85b4803 Mon Sep 17 00:00:00 2001 From: Kojo Date: Mon, 25 Nov 2024 17:14:20 +0100 Subject: [PATCH] Jusina: Neues Projekt mit angepasster Gruppenbuchungslogik --- .../CustomGroupDurationCalculator.cs | 18 +++++ ReportImp/Jusina/Jusina.csproj | 80 +++++++++++++++++++ ReportImp/Jusina/Properties/AssemblyInfo.cs | 36 +++++++++ 3 files changed, 134 insertions(+) create mode 100644 ReportImp/Jusina/Calculations/CustomGroupDurationCalculator.cs create mode 100644 ReportImp/Jusina/Jusina.csproj create mode 100644 ReportImp/Jusina/Properties/AssemblyInfo.cs diff --git a/ReportImp/Jusina/Calculations/CustomGroupDurationCalculator.cs b/ReportImp/Jusina/Calculations/CustomGroupDurationCalculator.cs new file mode 100644 index 000000000..358832ef4 --- /dev/null +++ b/ReportImp/Jusina/Calculations/CustomGroupDurationCalculator.cs @@ -0,0 +1,18 @@ +using BeWo.Service.Plugins; +using BS.Shared.DataContracts; + +namespace Jusina.Calculation +{ + + public class CustomGroupDurationCalculator : GroupDurationCalculator + { + public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration) + { + return new GroupDurationDC() + { + SingleDuration = (totalDuration * employeeCount) / personCount, + TotalDuration = totalDuration + }; + } + } +} diff --git a/ReportImp/Jusina/Jusina.csproj b/ReportImp/Jusina/Jusina.csproj new file mode 100644 index 000000000..a0d9a1d02 --- /dev/null +++ b/ReportImp/Jusina/Jusina.csproj @@ -0,0 +1,80 @@ + + + + + Debug + AnyCPU + {E65C96E4-FD76-4C92-B161-B1E07ABBE1A7} + Library + Properties + Jusina + 4974272973_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/Jusina/Properties/AssemblyInfo.cs b/ReportImp/Jusina/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..4acfcc71c --- /dev/null +++ b/ReportImp/Jusina/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("Jusina")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Jusina")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[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")]