53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using System;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using BS.Shared.Core;
|
|
|
|
|
|
namespace SozialeDienstleistungenBeckerReports
|
|
{
|
|
public partial class MitarbeiterstundenkontoJahrGesamtMitFaktor : DevExpress.XtraReports.UI.XtraReport//, IBeWoReport<MitarbeiterstundenkontoMonateRO>
|
|
{
|
|
|
|
|
|
public MitarbeiterstundenkontoJahrGesamtMitFaktor()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(MitarbeiterstundenkontoMonateRO pRO)
|
|
{
|
|
var msb = new CustomMitarbeiterstundenkontoBerechnungMonate();
|
|
msb.CreateReport(pRO);
|
|
|
|
//decimal allesGesamt = 0;
|
|
//decimal flsGesamt = 0;
|
|
// foreach (var info in pRO.EmployeeInfoList)
|
|
// {
|
|
// foreach (var ed in info.EmployeeDetails)
|
|
// {
|
|
// flsGesamt += ed.EmployeeDetail.FlsIst;
|
|
// allesGesamt += ed.EmployeeDetail.FlsIst + ed.EmployeeDetail.MittelbarIst;
|
|
|
|
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// decimal gesamtProzent = 100;
|
|
|
|
//if (allesGesamt != 0)
|
|
//{
|
|
// gesamtProzent = (Math.Round(flsGesamt, 2, MidpointRounding.AwayFromZero) / Math.Round(allesGesamt, 2, MidpointRounding.AwayFromZero)) * 100;
|
|
|
|
//}
|
|
|
|
//cellGesamtProzent.Text = String.Format("{0:0.0}%", gesamtProzent);
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
|
|
}
|
|
}
|