35 lines
793 B
C#
35 lines
793 B
C#
|
|
using System;
|
||
|
|
using BeWo.Report.ReportObjects;
|
||
|
|
using BS.Shared.Core;
|
||
|
|
|
||
|
|
|
||
|
|
namespace BeWo.Report.DefaultReports
|
||
|
|
{
|
||
|
|
[IDSpecificClass(Identifier = "Mitarbeiterauslastung")]
|
||
|
|
public partial class Mitarbeiterauslastung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<MitarbeiterauslastungRO>
|
||
|
|
{
|
||
|
|
|
||
|
|
|
||
|
|
public Mitarbeiterauslastung()
|
||
|
|
{
|
||
|
|
InitializeComponent();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void SetReportDataSource(MitarbeiterauslastungRO pRO)
|
||
|
|
{
|
||
|
|
AuslastungBerechnung b = new AuslastungBerechnung();
|
||
|
|
b.CreateReport(pRO);
|
||
|
|
|
||
|
|
if (pRO.EmployeeDetailList != null)
|
||
|
|
{
|
||
|
|
foreach (var ed in pRO.EmployeeDetailList)
|
||
|
|
{
|
||
|
|
ed.FullName = String.Format("{0} ({1})", ed.FullName, ed.Employee.PersonnelNumber);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
this.bindingSource1.DataSource = pRO;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|