CustomServiceRecordStatisticFactory - Disablen der neuen flexiblen Ministatistik

This commit is contained in:
2025-12-22 16:28:29 +01:00
parent 481e4ac475
commit 6ddd0902b2
2 changed files with 9 additions and 0 deletions

View File

@@ -16,6 +16,10 @@ namespace QuerFaelltEin.Plugins
{
public class CustomServiceRecordStatisticFactory : ServiceRecordStatisticFactory
{
public override bool UseFlexibleView() // damit deren Anpassungen nicht überschrieben werden
{
return false;
}
public override ServiceRecordStatisticsInfoDC GetServiceRecordStatisticInfo(long costBearer2SupportConceptOid, DateTime statisticsDate)
{

View File

@@ -18,6 +18,11 @@ namespace Wetterleuchten
{
private Dictionary<long, decimal> sdOid2Hours = new Dictionary<long, decimal>();
public override bool UseFlexibleView() // damit deren Anpassungen nicht überschrieben werden
{
return false;
}
public override ServiceRecordStatisticsInfoDC GetServiceRecordStatisticInfo(long costBearer2SupportConceptOid, DateTime statisticsDate)
{
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(costBearer2SupportConceptOid);