SicherlebenMichaelVoß: Fehlkontakte SettlementReport2
This commit is contained in:
1223
ReportImp/SicherlebenMichaelVoß/SettlementReport2.Designer.cs
generated
Normal file
1223
ReportImp/SicherlebenMichaelVoß/SettlementReport2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
46
ReportImp/SicherlebenMichaelVoß/SettlementReport2.cs
Normal file
46
ReportImp/SicherlebenMichaelVoß/SettlementReport2.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace SicherlebenMichaelVoß
|
||||
{
|
||||
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<Settlement2RO>
|
||||
{
|
||||
public Spitzabrechnung()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(Settlement2RO pRO)
|
||||
{
|
||||
if (String.IsNullOrEmpty(pRO.Notice))
|
||||
{
|
||||
lblNotice.Visible = false;
|
||||
}
|
||||
|
||||
decimal rateFactor = 1;
|
||||
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
if (ii.RateFactor.HasValue)
|
||||
{
|
||||
rateFactor = (100 + ii.RateFactor.Value) / 100;
|
||||
}
|
||||
if (pRO.FehlkontakteString != null && ii.RateFactor == 0)
|
||||
{
|
||||
Zwischensumme.Visible = true;
|
||||
ii.DetailDescription = Regex.Replace(ii.DetailDescription, ii.ItemDescription, "Fehlkontakte");
|
||||
ii.ItemDescription = "Fehlkontakte";
|
||||
}
|
||||
}
|
||||
pRO.RateFactor = (double)rateFactor;
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
1483
ReportImp/SicherlebenMichaelVoß/SettlementReport2.resx
Normal file
1483
ReportImp/SicherlebenMichaelVoß/SettlementReport2.resx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user