MH: LH Coburg Ministatistik umsortieren
This commit is contained in:
@@ -132,6 +132,7 @@
|
||||
<DependentUpon>RosterReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Service\CustomDienstplanungsmanager.cs" />
|
||||
<Compile Include="Service\CustomServiceRecordStatisticFactory.cs" />
|
||||
<Compile Include="Teamstundenkonto.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared.DataContracts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LebenshilfeCoburg.Service
|
||||
{
|
||||
public class CustomServiceRecordStatisticFactory : ServiceRecordStatisticFactory
|
||||
{
|
||||
public override SupportConceptStatisticsDC CreateSupportConceptStatisticsImpl(long costBearer2SupportConceptOid, DateTime statisticsDate, long? ignoreServiceRecordOid)
|
||||
{
|
||||
var stat = base.CreateSupportConceptStatisticsImpl(costBearer2SupportConceptOid, statisticsDate, ignoreServiceRecordOid);
|
||||
stat.PeriodStatistics = stat.PeriodStatistics.OrderByDescending(p => p.SupportConceptApprovalPeriod.StartDate).ToList();
|
||||
|
||||
return stat;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user