SprungbrettReports: Fehlkontakte Spitzabrechnung
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,9 @@ using System.ComponentModel;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Report;
|
||||
|
||||
using BS.Shared.Extensions;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace BeWo.SprungbrettReports
|
||||
{
|
||||
public partial class SpitzabrechnungSeite2 : DevExpress.XtraReports.UI.XtraReport //, IBeWoReport<SettlementRO>
|
||||
@@ -16,8 +18,30 @@ namespace BeWo.SprungbrettReports
|
||||
}
|
||||
|
||||
public void SetReportDataSource(SettlementRO pRO)
|
||||
{
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
{
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}: {2:0.00} FLS x {3:c}", ii.ItemPeriodStart,
|
||||
ii.ItemPeriodEnd, ii.UnitCount, ii.AmountPerUnit);
|
||||
ii.UnitDescription = "Fachleistungen";
|
||||
|
||||
if (!pRO.FehlkontakteString.IsNullOrEmpty() && ii.RateFactor == 0)
|
||||
{
|
||||
|
||||
Zwischensumme.Visible = true;
|
||||
if (!ii.ItemDescription.IsNullOrEmpty())
|
||||
{
|
||||
// quick and dirty, solange LWL und LVR anders rechnen
|
||||
ii.UnitCount = ii.UnitCount / 80 * 100;
|
||||
ii.AmountPerUnit = ii.AmountPerUnit * 80 / 100;
|
||||
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}: {2:0.00} h x {3:c}", ii.ItemPeriodStart,
|
||||
ii.ItemPeriodEnd, ii.UnitCount, ii.AmountPerUnit);
|
||||
}
|
||||
ii.UnitDescription = "Fehlkontakte";
|
||||
}
|
||||
}
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user