using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using DevExpress.XtraReports.UI; using BeWo.Report.ReportObjects; using BeWo.Report; namespace BeWo.IBPReports { 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 sd in pRO.Services) { if (sd.IsBillable) { servicesBillable.Add(sd); } sd.MinutesQualified = sd.Minutes; sd.MinutesUnqualified = 0; if (sd.ServiceDescription.ToLower().Contains("fehlkontakt")) { sd.MinutesQualified = 0; sd.MinutesUnqualified = sd.Minutes; } } pRO.Services = servicesBillable; } this.bindingSource1.DataSource = pRO; } } }