40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
|
namespace Inkomm
|
|
{
|
|
public class CustomAuslastungBerechnung : AuslastungBerechnung
|
|
{
|
|
public override void CreateEmployeeDetails(MitarbeiterauslastungRO ro)
|
|
{
|
|
base.CreateEmployeeDetails(ro);
|
|
|
|
foreach (var ed in ro.EmployeeDetailList)
|
|
{
|
|
var newList = new List<MitarbeiterauslastungRO.SupportConceptDetail>();
|
|
|
|
foreach (var sc in ed.SupportConceptDetailList)
|
|
{
|
|
|
|
if (sc.SupportConceptApprovalPeriod != null && sc.SupportConceptApprovalPeriod.ServiceCategory != null && sc.SupportConceptApprovalPeriod.ServiceCategory.Name.StartsWith("Fachleistung"))
|
|
{
|
|
newList.Add(sc);
|
|
}
|
|
else if (sc.SupportConceptApprovalPeriod != null &&
|
|
sc.SupportConceptApprovalPeriod.ServiceCategory == null)
|
|
{
|
|
newList.Add(sc);
|
|
}
|
|
|
|
}
|
|
ed.SupportConceptDetailList = newList;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|