using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Text.RegularExpressions; using BeWo.Report; using BeWo.Report.ReportObjects; using DevExpress.XtraReports.UI; namespace BeWo.SigncomReports { public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport { public Stundenzettel() { InitializeComponent(); } public void SetReportDataSource(ServicesOverviewRO pRO) { if (pRO.Services != null) { List servicesBillable = new List(); foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services) { if (s.IsBillable) servicesBillable.Add(s); } pRO.Services = servicesBillable; } this.bindingSource1.DataSource = pRO; } } }