2021-05-07 13:22:01 +02:00
|
|
|
using System;
|
2021-11-24 15:25:25 +01:00
|
|
|
using System.Linq;
|
2021-05-07 13:22:01 +02:00
|
|
|
using BeWo.Report;
|
|
|
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
|
|
|
|
|
using DevExpress.XtraReports.UI;
|
|
|
|
|
|
|
|
|
|
namespace VaroSozialagentur
|
|
|
|
|
{
|
|
|
|
|
public partial class ServiceInvoiceReport : XtraReport, IBeWoReport<ServiceInvoiceRO>
|
|
|
|
|
{
|
|
|
|
|
public ServiceInvoiceReport()
|
|
|
|
|
{
|
|
|
|
|
this.InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetReportDataSource(ServiceInvoiceRO pRO)
|
|
|
|
|
{
|
|
|
|
|
string[] start = pRO.AccountingPeriodStart.ToString().Split(' ');
|
|
|
|
|
string[] ende = pRO.AccountingPeriodEnd.ToString().Split(' ');
|
|
|
|
|
|
2023-04-14 08:56:37 +02:00
|
|
|
if (pRO.ServiceInvoicePeriods != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var sip in pRO.ServiceInvoicePeriods)
|
|
|
|
|
{
|
|
|
|
|
if (sip.ServiceInvoiceItems != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var ii in sip.ServiceInvoiceItems)
|
|
|
|
|
{
|
2023-12-06 16:17:28 +01:00
|
|
|
if (ii.UnitDescription == "Stunde")
|
2023-04-14 08:56:37 +02:00
|
|
|
ii.UnitDescription = "Fachleistungsstunde";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-10-08 14:51:28 +02:00
|
|
|
|
2021-05-07 13:22:01 +02:00
|
|
|
lblZeitraum.Text += start[0] + " - " + ende[0];
|
|
|
|
|
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
|
|
|
}
|
2021-05-30 16:31:45 +02:00
|
|
|
|
2021-05-07 13:22:01 +02:00
|
|
|
}
|
|
|
|
|
}
|