neue dateien
This commit is contained in:
1295
ReportImp/SKFAlsdorf/SettlementReport2.Designer.cs
generated
Normal file
1295
ReportImp/SKFAlsdorf/SettlementReport2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
51
ReportImp/SKFAlsdorf/SettlementReport2.cs
Normal file
51
ReportImp/SKFAlsdorf/SettlementReport2.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
|
||||
namespace BeWo.SKFAlsdorf
|
||||
{
|
||||
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<Settlement2RO>
|
||||
{
|
||||
public Spitzabrechnung()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(Settlement2RO pRO)
|
||||
{
|
||||
|
||||
decimal rateFactor = 1;
|
||||
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
|
||||
if (ii.RateFactor.HasValue)
|
||||
{
|
||||
rateFactor = (100 + ii.RateFactor.Value) / 100;
|
||||
|
||||
ii.DetailDescription = String.Format(
|
||||
"{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}: {2:0.00} x {4:0.00} x {3:c} ", ii.PeriodStartDate,
|
||||
ii.PeriodEndDate, ii.UnitCount, ii.AmountPerUnit, rateFactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
ii.DetailDescription = String.Format(
|
||||
"{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}: {2:0.00} x {3:c}", ii.PeriodStartDate,
|
||||
ii.PeriodEndDate, ii.UnitCount, ii.AmountPerUnit);
|
||||
}
|
||||
}
|
||||
pRO.RateFactor = (double)rateFactor;
|
||||
if (rateFactor != 1)
|
||||
{
|
||||
pRO.RateFactorText2 = String.Format("{0:0.00}", rateFactor);
|
||||
}
|
||||
else
|
||||
{
|
||||
pRO.RateFactorText2 = "";
|
||||
}
|
||||
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
6501
ReportImp/SKFAlsdorf/SettlementReport2.resx
Normal file
6501
ReportImp/SKFAlsdorf/SettlementReport2.resx
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user