MH: bewo am rhein sr2
This commit is contained in:
@@ -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
Reference in New Issue
Block a user