MH: Mittelpunkt Teamauslastung

This commit is contained in:
2026-05-08 12:57:36 +02:00
parent 06a3ee7772
commit ddbce890e9
2 changed files with 26 additions and 16 deletions

View File

@@ -401,25 +401,26 @@ namespace Mittelpunkt
}
return new XtraReport();
}
//public override XtraReport CreateAuslastungReport(long? employeeOid, IList<long> teamOids, DateTime startDate, DateTime endDate)
//{
// IBeWoReport<MitarbeiterauslastungRO> report;
// if (teamOids != null && teamOids.Count > 0)
// report = FindReportImp<MitarbeiterauslastungRO>("Teamauslastung");
// else
// report = FindReportImp<MitarbeiterauslastungRO>("Mitarbeiterauslastung");
// IList<long> employeeOids = new List<long>();
public override XtraReport CreateAuslastungReport(long? employeeOid, IList<long> teamOids, DateTime startDate, DateTime endDate)
{
IBeWoReport<MitarbeiterauslastungRO> report;
if (teamOids != null && teamOids.Count > 0)
report = FindReportImp<MitarbeiterauslastungRO>("Teamauslastung");
else
report = FindReportImp<MitarbeiterauslastungRO>("Mitarbeiterauslastung");
// if (employeeOid.HasValue)
// {
// employeeOids.Add(employeeOid.Value);
// }
IList<long> employeeOids = new List<long>();
// var x = MitarbeiterauslastungRO.Create(employeeOids, teamOids, startDate, endDate, false);
// report.SetReportDataSource(x);
if (employeeOid.HasValue)
{
employeeOids.Add(employeeOid.Value);
}
// return report as XtraReport;
//}
var x = MitarbeiterauslastungRO.Create(employeeOids, teamOids, startDate, endDate, false);
report.SetReportDataSource(x);
return report as XtraReport;
}
}
}

View File

@@ -111,6 +111,12 @@
<DependentUpon>Lohnliste.cs</DependentUpon>
</Compile>
<Compile Include="Service\CustomEmployeeService.cs" />
<Compile Include="Teamauslastung.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Teamauslastung.designer.cs">
<DependentUpon>Teamauslastung.cs</DependentUpon>
</Compile>
<Compile Include="ZuschlaegeArbeit.cs">
<SubType>Component</SubType>
</Compile>
@@ -229,6 +235,9 @@
<EmbeddedResource Include="Lohnliste.resx">
<DependentUpon>Lohnliste.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Teamauslastung.resx">
<DependentUpon>Teamauslastung.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ZuschlaegeArbeit.resx">
<DependentUpon>ZuschlaegeArbeit.cs</DependentUpon>
<SubType>Designer</SubType>