2022-11-25 13:16:31 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
|
using BeWo.Report;
|
|
|
|
|
|
using DevExpress.XtraReports.UI;
|
|
|
|
|
|
|
2023-01-12 11:42:12 +01:00
|
|
|
|
namespace MobileEV
|
2022-11-25 13:16:31 +01:00
|
|
|
|
{
|
|
|
|
|
|
public partial class ServiceInvoiceReport : XtraReport, IBeWoReport<ServiceInvoiceRO>
|
|
|
|
|
|
{
|
|
|
|
|
|
public ServiceInvoiceReport()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void SetReportDataSource(ServiceInvoiceRO pRO)
|
|
|
|
|
|
{
|
|
|
|
|
|
DateTime start = pRO.AccountingPeriodStart;
|
|
|
|
|
|
DateTime end = pRO.AccountingPeriodEnd;
|
|
|
|
|
|
if (start.Month == end.Month && start.Year == end.Year)
|
|
|
|
|
|
{
|
|
|
|
|
|
lblAbrechnungszeitraum.Text = String.Format("hiermit berechnen wir f<>r den Monat {0:MMMM yyyy} folgende erbrachte T<>tigkeiten:", start);
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
lblAbrechnungszeitraum.Text = String.Format("hiermit berechnen wir f<>r den Zeitraum {0:MMMM yyyy} - {1:MMMM yyyy} folgende erbrachte T<>tigkeiten:", start, end);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|