OwnSoftTest5Mrd: Soziotherapie-Gruppenbuchungslogik korrigiert
This commit is contained in:
21
ReportImp/OwnSoftTest5Mrd/GroupDurationCalculator.cs
Normal file
21
ReportImp/OwnSoftTest5Mrd/GroupDurationCalculator.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.Plugins;
|
||||
|
||||
namespace OwnSoftTest5Mrd
|
||||
{
|
||||
public class CustomGroupDurationCalculator : GroupDurationCalculator
|
||||
{
|
||||
public override void CalculateGroupDuration(ServiceRecordGroup group)
|
||||
{
|
||||
base.CalculateGroupDuration(group);
|
||||
|
||||
foreach (var sr in group.ServiceRecordList)
|
||||
{
|
||||
if (sr.ServiceDescription.ServiceCategory.Name.ToLower().Contains("soziotherapie"))
|
||||
{
|
||||
sr.RoundedDuration = sr.GroupRoundedDuration.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,12 @@ namespace OwnSoftTest5Mrd
|
||||
s.IsGroup = true;
|
||||
gesamtGruppe += s.Minutes;
|
||||
s.ServiceDescription = "E";
|
||||
s.Notice5 = "2002672";
|
||||
if (s.Minutes <= 45)
|
||||
s.Notice5 = "2002678";
|
||||
else if (s.Minutes <= 60)
|
||||
s.Notice5 = "2002677";
|
||||
else
|
||||
s.Notice5 = "2002672";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -131,7 +136,7 @@ namespace OwnSoftTest5Mrd
|
||||
cellGesamt.Text = String.Format("{0:0.00}", gesamt / 60);
|
||||
if (gesamtGruppe > 0)
|
||||
{
|
||||
cellGesamtGruppe.Text = String.Format("{0:0.00}", gesamtGruppe / 60);
|
||||
cellGesamtGruppe.Text = String.Format("{0:0.00}", gesamtGruppe / 90);
|
||||
}
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CustomReportCreator.cs" />
|
||||
<Compile Include="GroupDurationCalculator.cs" />
|
||||
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
|
||||
<Compile Include="Invoicing\SettlementInvoiceCreation.cs" />
|
||||
<Compile Include="LeistungsnachweisSoziotherapie.cs">
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BS.Shared.Core;
|
||||
|
||||
Reference in New Issue
Block a user