MH: bewo am rhein sr2

This commit is contained in:
2025-09-03 12:36:32 +02:00
parent c2e81b15f3
commit 16088d00e2
3 changed files with 0 additions and 2700 deletions

View File

@@ -1,55 +0,0 @@
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
namespace BeWo.BetreutesWohnenAmRheinReports.Neu
{
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<Settlement2RO>
{
public Spitzabrechnung()
{
InitializeComponent();
}
public void SetReportDataSource(Settlement2RO pRO)
{
bool hasRatefactor = false;
if (!String.IsNullOrWhiteSpace(pRO.RateFactorText2))
{
hasRatefactor = true;
if (pRO.RateFactorText2 == "1,2")
{
pRO.RateFactorText2 = "1,20";
}
decimal rf = 0;
if (Decimal.TryParse(pRO.RateFactorText2, out rf) && rf > 0)
{
lblInklPauschFaktorText.Text = "Inkl. pauschaler Faktor";
lblInklPauschBetrag.Text =
String.Format("{0:c}", pRO.AmountBillableTotal - (pRO.AmountBillableTotal / rf));
}
}
if (pRO.InvoiceItems != null)
{
foreach (var ii in pRO.InvoiceItems)
{
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}: {2:0.##} FLS {3}x {4:c}",
ii.PeriodStartDate, ii.PeriodEndDate,
ii.UnitCount, !hasRatefactor ? "" : "x " + pRO.RateFactorText2 + " ",
ii.AmountPerUnit);
}
}
pRO.CustomerReferenceNumberAndDate = pRO.CustomerReferenceNumberAndDate.Replace("Az.:", "GP:");
this.bindingSource1.DataSource = pRO;
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff