using System; using System.Collections.Generic; using BeWo.Report; using BeWo.Report.ReportObjects; namespace Lori { public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport { public Stundenzettel() { InitializeComponent(); } public void SetReportDataSource(ServicesOverviewRO pRO) { if (String.IsNullOrEmpty(pRO.MainAttendant)) { pRO.MainAttendant = ""; } if (pRO.Services != null) { List servicesBillable = new List(); foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services) { if (s.IsBillable) { if (s.IsGroup) { s.ServiceCategoryAbbr = "G"; } else { s.ServiceCategoryAbbr = "E"; } servicesBillable.Add(s); if (!pRO.MainAttendant.Contains(s.EmployeeFullname)) { if (pRO.MainAttendant.Length > 0) { pRO.MainAttendant += ", "; } pRO.MainAttendant += s.EmployeeFullname; } } } pRO.Services = servicesBillable; } this.bindingSource1.DataSource = pRO; } } }