2023-08-16 19:06:36 +02:00
|
|
|
using System;
|
|
|
|
|
using BeWo.Report;
|
|
|
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
|
using BS.Shared.Core;
|
|
|
|
|
using BS.Shared.Extensions;
|
|
|
|
|
|
|
|
|
|
namespace VSDHammReports.Alt
|
|
|
|
|
{
|
|
|
|
|
[IDSpecificClass(Identifier = "LWLMITANHANG")]
|
|
|
|
|
|
|
|
|
|
public partial class Budgetnachweis : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<SettlementRO>
|
|
|
|
|
{
|
|
|
|
|
public Budgetnachweis()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void SetReportDataSource(SettlementRO pRO)
|
|
|
|
|
{
|
|
|
|
|
if (String.IsNullOrEmpty(pRO.RecipientOrganisation) || !pRO.RecipientOrganisation.ToLower().StartsWith("lwl"))
|
|
|
|
|
{
|
|
|
|
|
lblAZ.Text = "";
|
|
|
|
|
lblAZLabel.Text = "";
|
|
|
|
|
lblZad.Text = "60-9011896.1";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
lblZad.Text = "60-9011897.1";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach (var ii in pRO.InvoiceItems)
|
|
|
|
|
{
|
|
|
|
|
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}",
|
|
|
|
|
ii.ItemPeriodStart, ii.ItemPeriodEnd);
|
|
|
|
|
ii.ItemDescription += String.Format(": {0:0.##} FLS x {1:c}",
|
|
|
|
|
ii.UnitCount, ii.AmountPerUnit);
|
|
|
|
|
|
|
|
|
|
ii.UnitDescription = "Fachleistungsstunden";
|
|
|
|
|
if (!pRO.FehlkontakteString.IsNullOrEmpty() && ii.RateFactor == 0)
|
|
|
|
|
{
|
|
|
|
|
Zwischensumme.Visible = true;
|
|
|
|
|
ii.ItemDescription = "Fehlkontakte " + ii.ItemDescription.Replace("FLS", "Std.");
|
|
|
|
|
ii.UnitDescription = "Fehlkontakte";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!String.IsNullOrEmpty(pRO.SenderContactPersonPhone))
|
|
|
|
|
{
|
|
|
|
|
pRO.SenderContactPersonPhone = pRO.SenderContactPersonPhone.Replace("Tel.: ", "");
|
|
|
|
|
pRO.SenderContactPersonMail = pRO.SenderContactPersonMail.Replace("E-Mail: ", "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
xrCheckBox2.Checked = true;
|
|
|
|
|
DateTime? terminationDate = null;
|
|
|
|
|
|
|
|
|
|
if (pRO.TerminationDate.HasValue)
|
|
|
|
|
{
|
|
|
|
|
terminationDate = pRO.TerminationDate;
|
|
|
|
|
xrCheckBox1.Text = String.Format(" Die Betreuung wurde am {0:dd.MM.yyyy} beendet.",
|
|
|
|
|
pRO.TerminationDate);
|
|
|
|
|
xrCheckBox2.Checked = false;
|
|
|
|
|
xrCheckBox1.Checked = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|