2018-06-26 17:30:18 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using BeWo.Report;
|
|
|
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
|
2025-04-02 15:23:50 +02:00
|
|
|
namespace Humanitas
|
2018-06-26 17:30:18 +02:00
|
|
|
{
|
2025-04-02 15:23:50 +02:00
|
|
|
public partial class ServicesOverviewReportAlt : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
|
2018-06-26 17:30:18 +02:00
|
|
|
{
|
|
|
|
|
public ServicesOverviewReportAlt()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
|
|
|
{
|
|
|
|
|
if (pRO.Services != null)
|
|
|
|
|
{
|
|
|
|
|
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
|
|
|
|
|
|
|
|
|
|
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
|
|
|
|
|
{
|
|
|
|
|
if (s.IsBillable)
|
|
|
|
|
servicesBillable.Add(s);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pRO.Services = servicesBillable;
|
|
|
|
|
}
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|