Files
BeWoPlaner/ReportImp/LebenshilfeKoblenz/ServicesOverviewReport.cs
Christian 1069217aa6 cb
2018-04-27 14:13:42 +02:00

39 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using BeWo.Report;
using BeWo.Report.ReportObjects;
namespace LebenshilfeKoblenz
{
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)
{
if (String.IsNullOrEmpty(s.Notice4))
{
s.Notice4 = "Wohnung Klient/in";
}
servicesBillable.Add(s);
}
}
pRO.Services = servicesBillable;
}
bindingSource1.DataSource = pRO;
}
}
}