using System; using System.Collections.Generic; using System.Linq; using BeWo.Report; using BeWo.Report.ReportObjects; using DevExpress.XtraReports.UI; namespace BeWo.IntegraReports { public partial class Stundenzettel : 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; } bindingSource1.DataSource = pRO; // rechnungsDatum.Text = DateTime.Now.ToShortDateString(); //summeMinuten.Text = string.Format("{0:0.##}", pRO.TotalFLMBillable); //if (pRO.SupportConceptCostBearer != null) // aktenzeichenLV.Text = pRO.SupportConceptCostBearer.CustomerReferenceNumber ?? string.Empty; //bewilligteFLSW.Text = string.Format("{0:0.##}", pRO.ApprovedFLSPerWeek); } } }