Files
BeWoPlaner/ReportImp/BeWoImFlow/ServicesOverviewReport.cs

33 lines
894 B
C#
Raw Permalink Normal View History

2018-10-08 12:09:48 +02:00
using System.Collections.Generic;
using BeWo.Report;
using BeWo.Report.ReportObjects;
namespace BeWoImFlow
{
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
{
public Stundenzettel()
{
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;
}
}
}