34 lines
971 B
C#
34 lines
971 B
C#
using System;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using DevExpress.XtraReports.UI;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
|
|
namespace BeWo.GenderBeWoReports
|
|
{
|
|
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
{
|
|
public Stundenzettel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
{
|
|
foreach (var sd in pRO.Services)
|
|
{
|
|
if (sd.ServiceDescription.Contains("Gruppe") || sd.IsGroup)
|
|
{
|
|
sd.ServiceCategoryAbbr = "FLS/G";
|
|
}
|
|
if (sd.ServiceDescription.Contains("Fehlkontakt"))
|
|
{
|
|
sd.ServiceCategoryAbbr = "Fehlkontakt";
|
|
}
|
|
}
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|