36 lines
952 B
C#
36 lines
952 B
C#
using System;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using BS.Shared.Core;
|
|
|
|
|
|
namespace HausDuelken
|
|
{
|
|
[IDSpecificClass(Identifier = "Mitarbeiterstundenkonto")]
|
|
public partial class Mitarbeiterstundenkonto : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<MitarbeiterstundenkontoRO>
|
|
{
|
|
public Mitarbeiterstundenkonto()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(MitarbeiterstundenkontoRO pRO)
|
|
{
|
|
var msb = new CustomMitarbeiterstundenkontoBerechnung();
|
|
msb.CreateReport(pRO);
|
|
|
|
foreach (var ed in pRO.EmployeeDetailList)
|
|
{
|
|
if (ed.StundenGesamtIst > 0)
|
|
{
|
|
ed.Custom1 = Math.Round(ed.Custom1 / 60 / ed.StundenGesamtIst, 4);
|
|
ed.Custom2 = Math.Round(ed.Custom2 / 60 / ed.StundenGesamtIst, 4);
|
|
ed.Custom3 = Math.Round(ed.Custom3 / 60 / ed.StundenGesamtIst, 4);
|
|
}
|
|
}
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|