30 lines
952 B
C#
30 lines
952 B
C#
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using BS.Shared.Core;
|
|
using BS.Shared.Extensions;
|
|
|
|
namespace Wetterleuchten
|
|
{
|
|
|
|
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
{
|
|
public Stundenzettel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
{
|
|
bindingSource1.DataSource = pRO;
|
|
|
|
foreach (var service in pRO.ServicesDouble)
|
|
{
|
|
if (!service.ServiceDescription.IsNullOrEmpty() && service.ServiceDescription.ToLower().Contains("fehlkontakt"))
|
|
service.ServiceCategoryAbbr = "Fehlkontakt";
|
|
if (!service.ServiceDescription2.IsNullOrEmpty() && service.ServiceDescription2.ToLower().Contains("fehlkontakt"))
|
|
service.ServiceCategoryAbbr2 = "Fehlkontakt";
|
|
}
|
|
}
|
|
}
|
|
}
|