MH: Baak Fehlkontakte
This commit is contained in:
@@ -107,6 +107,12 @@
|
||||
<Compile Include="SettlementReport.Designer.cs">
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SettlementReport2.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SettlementReport2.Designer.cs">
|
||||
<DependentUpon>SettlementReport2.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="CustomerDataReport.resx">
|
||||
@@ -136,6 +142,10 @@
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SettlementReport2.resx">
|
||||
<DependentUpon>SettlementReport2.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Data\Data.csproj">
|
||||
|
||||
@@ -819,12 +819,13 @@ namespace BetreuungsbueroBaak.Alt
|
||||
//
|
||||
// xrLabel11
|
||||
//
|
||||
this.xrLabel11.CanShrink = true;
|
||||
this.xrLabel11.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "FehlkontakteString")});
|
||||
new DevExpress.XtraReports.UI.XRBinding("Text", null, "AbsenceTimes")});
|
||||
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.xrLabel11.Name = "xrLabel11";
|
||||
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 96F);
|
||||
this.xrLabel11.SizeF = new System.Drawing.SizeF(650F, 23F);
|
||||
this.xrLabel11.SizeF = new System.Drawing.SizeF(642F, 23F);
|
||||
this.xrLabel11.Text = "xrLabel11";
|
||||
//
|
||||
// Spitzabrechnung
|
||||
|
||||
1165
ReportImp/BetreuungsbueroBaak/SettlementReport2.Designer.cs
generated
Normal file
1165
ReportImp/BetreuungsbueroBaak/SettlementReport2.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
56
ReportImp/BetreuungsbueroBaak/SettlementReport2.cs
Normal file
56
ReportImp/BetreuungsbueroBaak/SettlementReport2.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
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;
|
||||
using BS.Shared.Extensions;
|
||||
|
||||
namespace BetreuungsbueroBaak
|
||||
{
|
||||
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.IsNullOrEmpty() && ii.RateFactor == 0)
|
||||
{
|
||||
Zwischensumme.Visible = true;
|
||||
//if (!ii.ItemDescription.IsNullOrEmpty())
|
||||
//{
|
||||
//ii.AbrechnungsText = Regex.Replace(ii.DetailDescription, ii.ItemDescription, "Fehlkontakte");
|
||||
//}
|
||||
ii.AbrechnungsText = ii.AbrechnungsText.Replace("FLS", "Std.");
|
||||
ii.ItemDescription = "Fehlkontakte";
|
||||
}
|
||||
else if (ii.ItemDescription.IsNullOrEmpty())
|
||||
{
|
||||
ii.ItemDescription = "Fachleistungsstunden";
|
||||
}
|
||||
}
|
||||
pRO.RateFactor = (double)rateFactor;
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
1097
ReportImp/BetreuungsbueroBaak/SettlementReport2.resx
Normal file
1097
ReportImp/BetreuungsbueroBaak/SettlementReport2.resx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user