63 lines
1.6 KiB
C#
63 lines
1.6 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using DevExpress.XtraReports.UI;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SkmRheydt
|
|
{
|
|
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
{
|
|
public Stundenzettel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
{
|
|
if (!String.IsNullOrWhiteSpace(pRO.Costbearer) && pRO.Costbearer.Contains("67"))
|
|
{
|
|
cellTitel.Text = "Leistungsnachweis nach BeWo §67";
|
|
}
|
|
|
|
// ab Februar 2026 smk moenchengladbach text, vorher smk rheydt. Logo bleibt skm MG
|
|
if (pRO.StartDate < new DateTime(2026, 01, 01))
|
|
{
|
|
richTextHeaderMg.Visible = false;
|
|
richTextFooterMg.Visible = false;
|
|
richTextHeaderRy.Visible = true;
|
|
richTextFooterRy.Visible = true;
|
|
}
|
|
|
|
if (pRO.Services != null)
|
|
{
|
|
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
|
|
|
|
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
|
|
{
|
|
if (s.IsBillable)
|
|
{
|
|
if (s.IsGroup)
|
|
{
|
|
s.ServiceCategoryAbbr = "G";
|
|
}
|
|
else
|
|
{
|
|
s.ServiceCategoryAbbr = "E";
|
|
}
|
|
servicesBillable.Add(s);
|
|
}
|
|
|
|
}
|
|
|
|
pRO.Services = servicesBillable;
|
|
}
|
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|