LebenshilfeEssenReports: Fehlkontakte QB + Spitzabrechnung

This commit is contained in:
2023-06-12 16:21:16 +02:00
parent 3620704783
commit a0d9b69a86
5 changed files with 1935 additions and 1708 deletions

View File

@@ -51,9 +51,10 @@ namespace BeWo.LebenshilfeEssenReports
this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.lblDebNr = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel18 = new DevExpress.XtraReports.UI.XRLabel();
this.lblKostenstelle = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel();
@@ -124,14 +125,18 @@ namespace BeWo.LebenshilfeEssenReports
this.customerCountField = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldFLS = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldFLSTotal = new DevExpress.XtraReports.UI.CalculatedField();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.lblDebNr = new DevExpress.XtraReports.UI.XRLabel();
this.lblFehlkontakt = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel20 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel27 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel35 = new DevExpress.XtraReports.UI.XRLabel();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTableAbwesenheiten)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// Detail
@@ -298,7 +303,7 @@ namespace BeWo.LebenshilfeEssenReports
// xrTableCell16
//
this.xrTableCell16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.customerCountField", "{0:0.##}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Notice5", "{0:0.##}")});
this.xrTableCell16.Name = "xrTableCell16";
this.xrTableCell16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTableCell16.StylePriority.UseFont = false;
@@ -350,10 +355,6 @@ namespace BeWo.LebenshilfeEssenReports
this.GroupHeader1.RepeatEveryPage = true;
this.GroupHeader1.StylePriority.UseFont = false;
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
//
// formattingRuleStartDate
//
this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]";
@@ -397,6 +398,26 @@ namespace BeWo.LebenshilfeEssenReports
this.ReportHeader.Name = "ReportHeader";
this.ReportHeader.StylePriority.UseFont = false;
//
// xrLabel11
//
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(442.6943F, 60.99995F);
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(99.68109F, 18.00001F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.StylePriority.UseTextAlignment = false;
this.xrLabel11.Text = "Debitorennr.";
this.xrLabel11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
//
// lblDebNr
//
this.lblDebNr.LocationFloat = new DevExpress.Utils.PointFloat(542.3753F, 61F);
this.lblDebNr.Name = "lblDebNr";
this.lblDebNr.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblDebNr.SizeF = new System.Drawing.SizeF(132.6246F, 18F);
this.lblDebNr.StylePriority.UseBorders = false;
this.lblDebNr.StylePriority.UseFont = false;
//
// xrLabel18
//
this.xrLabel18.LocationFloat = new DevExpress.Utils.PointFloat(442.6942F, 42.99999F);
@@ -703,6 +724,11 @@ namespace BeWo.LebenshilfeEssenReports
// ReportFooter
//
this.ReportFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrLabel27,
this.xrLabel35,
this.lblFehlkontakt,
this.xrLabel17,
this.xrLabel20,
this.xrRichText1,
this.xrRichText2,
this.lblHatGruppen,
@@ -716,14 +742,14 @@ namespace BeWo.LebenshilfeEssenReports
this.xrLabel5,
this.xrLabel19});
this.ReportFooter.Font = new System.Drawing.Font("Verdana", 10F);
this.ReportFooter.HeightF = 242.0417F;
this.ReportFooter.HeightF = 259.75F;
this.ReportFooter.Name = "ReportFooter";
this.ReportFooter.StylePriority.UseFont = false;
//
// xrRichText1
//
this.xrRichText1.Font = new System.Drawing.Font("Arial", 8F);
this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(468.2373F, 49.94437F);
this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(468.2373F, 67.6527F);
this.xrRichText1.Name = "xrRichText1";
this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString");
this.xrRichText1.SizeF = new System.Drawing.SizeF(213.7624F, 50F);
@@ -732,7 +758,7 @@ namespace BeWo.LebenshilfeEssenReports
// xrRichText2
//
this.xrRichText2.Font = new System.Drawing.Font("Arial", 8F);
this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(468.2373F, 99.94437F);
this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(468.2373F, 117.6527F);
this.xrRichText2.Name = "xrRichText2";
this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString");
this.xrRichText2.SizeF = new System.Drawing.SizeF(213.7623F, 68.05556F);
@@ -744,7 +770,7 @@ namespace BeWo.LebenshilfeEssenReports
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.lblHatGruppen.Font = new System.Drawing.Font("Arial", 10F);
this.lblHatGruppen.LocationFloat = new DevExpress.Utils.PointFloat(429.5F, 52F);
this.lblHatGruppen.LocationFloat = new DevExpress.Utils.PointFloat(429.5001F, 69.70831F);
this.lblHatGruppen.Name = "lblHatGruppen";
this.lblHatGruppen.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.lblHatGruppen.SizeF = new System.Drawing.SizeF(30F, 30F);
@@ -761,7 +787,7 @@ namespace BeWo.LebenshilfeEssenReports
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.lblHatAbwesenheiten.Font = new System.Drawing.Font("Arial", 10F);
this.lblHatAbwesenheiten.LocationFloat = new DevExpress.Utils.PointFloat(429.5F, 102F);
this.lblHatAbwesenheiten.LocationFloat = new DevExpress.Utils.PointFloat(429.5001F, 119.7083F);
this.lblHatAbwesenheiten.Name = "lblHatAbwesenheiten";
this.lblHatAbwesenheiten.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.lblHatAbwesenheiten.SizeF = new System.Drawing.SizeF(30F, 30F);
@@ -779,7 +805,7 @@ namespace BeWo.LebenshilfeEssenReports
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableAbwesenheiten.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrTableAbwesenheiten.LocationFloat = new DevExpress.Utils.PointFloat(170.0002F, 49.94437F);
this.xrTableAbwesenheiten.LocationFloat = new DevExpress.Utils.PointFloat(170.0002F, 67.6527F);
this.xrTableAbwesenheiten.Name = "xrTableAbwesenheiten";
this.xrTableAbwesenheiten.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.xrTableAbwesenheiten.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
@@ -992,13 +1018,13 @@ namespace BeWo.LebenshilfeEssenReports
this.lblFlsGesamt.SizeF = new System.Drawing.SizeF(89.99988F, 18F);
this.lblFlsGesamt.StylePriority.UsePadding = false;
this.lblFlsGesamt.StylePriority.UseTextAlignment = false;
this.lblFlsGesamt.Text = "lblFlsGesamt";
this.lblFlsGesamt.Text = "[TotalFLSoFehlkontakte!0.00]";
this.lblFlsGesamt.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
//
// xrLabel16
//
this.xrLabel16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMBillable", "{0:0.##}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMoFehlkontakte", "{0:0.##}")});
this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(467.0125F, 0F);
this.xrLabel16.Name = "xrLabel16";
this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -1012,14 +1038,16 @@ namespace BeWo.LebenshilfeEssenReports
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(239.9999F, 0F);
this.xrLabel15.Name = "xrLabel15";
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(222.375F, 18F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(227.0126F, 18F);
this.xrLabel15.StylePriority.UseFont = false;
this.xrLabel15.StylePriority.UseTextAlignment = false;
this.xrLabel15.Text = "Summe unmittelb. Betreuung:";
this.xrLabel15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
//
// xrLabel7
//
this.xrLabel7.Borders = DevExpress.XtraPrinting.BorderSide.Top;
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(156.6249F, 224.0417F);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(156.6249F, 241.75F);
this.xrLabel7.Name = "xrLabel7";
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel7.SizeF = new System.Drawing.SizeF(197F, 17.99997F);
@@ -1030,7 +1058,7 @@ namespace BeWo.LebenshilfeEssenReports
// xrLabel6
//
this.xrLabel6.Borders = DevExpress.XtraPrinting.BorderSide.Top;
this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(402.4582F, 224.0417F);
this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(402.4582F, 241.75F);
this.xrLabel6.Name = "xrLabel6";
this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel6.SizeF = new System.Drawing.SizeF(216.8751F, 17.99997F);
@@ -1041,7 +1069,7 @@ namespace BeWo.LebenshilfeEssenReports
// xrLabel5
//
this.xrLabel5.Borders = DevExpress.XtraPrinting.BorderSide.Top;
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 224.0417F);
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 241.75F);
this.xrLabel5.Name = "xrLabel5";
this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel5.SizeF = new System.Drawing.SizeF(117F, 17.99997F);
@@ -1052,7 +1080,7 @@ namespace BeWo.LebenshilfeEssenReports
// xrLabel19
//
this.xrLabel19.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Underline);
this.xrLabel19.LocationFloat = new DevExpress.Utils.PointFloat(0F, 49.94437F);
this.xrLabel19.LocationFloat = new DevExpress.Utils.PointFloat(0F, 67.6527F);
this.xrLabel19.Multiline = true;
this.xrLabel19.Name = "xrLabel19";
this.xrLabel19.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
@@ -1104,25 +1132,77 @@ namespace BeWo.LebenshilfeEssenReports
this.fieldFLSTotal.FieldType = DevExpress.XtraReports.UI.FieldType.Double;
this.fieldFLSTotal.Name = "fieldFLSTotal";
//
// xrLabel11
// lblFehlkontakt
//
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(442.6943F, 60.99995F);
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(99.68109F, 18.00001F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.StylePriority.UseTextAlignment = false;
this.xrLabel11.Text = "Debitorennr.";
this.xrLabel11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight;
this.lblFehlkontakt.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblFehlkontakt.LocationFloat = new DevExpress.Utils.PointFloat(0F, 35.99998F);
this.lblFehlkontakt.Name = "lblFehlkontakt";
this.lblFehlkontakt.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.lblFehlkontakt.SizeF = new System.Drawing.SizeF(190.04F, 18F);
this.lblFehlkontakt.StylePriority.UseBackColor = false;
this.lblFehlkontakt.StylePriority.UseBorders = false;
this.lblFehlkontakt.StylePriority.UseFont = false;
this.lblFehlkontakt.StylePriority.UsePadding = false;
this.lblFehlkontakt.StylePriority.UseTextAlignment = false;
this.lblFehlkontakt.Text = "F = Fehlkontakt";
this.lblFehlkontakt.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
//
// lblDebNr
// xrLabel17
//
this.lblDebNr.LocationFloat = new DevExpress.Utils.PointFloat(542.3753F, 61F);
this.lblDebNr.Name = "lblDebNr";
this.lblDebNr.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblDebNr.SizeF = new System.Drawing.SizeF(132.6246F, 18F);
this.lblDebNr.StylePriority.UseBorders = false;
this.lblDebNr.StylePriority.UseFont = false;
this.xrLabel17.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 17.99998F);
this.xrLabel17.Name = "xrLabel17";
this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(190.04F, 18F);
this.xrLabel17.StylePriority.UseBackColor = false;
this.xrLabel17.StylePriority.UseBorders = false;
this.xrLabel17.StylePriority.UseFont = false;
this.xrLabel17.StylePriority.UsePadding = false;
this.xrLabel17.StylePriority.UseTextAlignment = false;
this.xrLabel17.Text = "G = Gruppenangebot";
this.xrLabel17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
//
// xrLabel20
//
this.xrLabel20.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrLabel20.Name = "xrLabel20";
this.xrLabel20.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.xrLabel20.SizeF = new System.Drawing.SizeF(190.0414F, 18F);
this.xrLabel20.StylePriority.UseBackColor = false;
this.xrLabel20.StylePriority.UseBorders = false;
this.xrLabel20.StylePriority.UseFont = false;
this.xrLabel20.StylePriority.UsePadding = false;
this.xrLabel20.StylePriority.UseTextAlignment = false;
this.xrLabel20.Text = "E = ear to ear, face to face";
this.xrLabel20.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
//
// xrLabel27
//
this.xrLabel27.LocationFloat = new DevExpress.Utils.PointFloat(239.9999F, 17.99998F);
this.xrLabel27.Name = "xrLabel27";
this.xrLabel27.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel27.SizeF = new System.Drawing.SizeF(227.0126F, 18F);
this.xrLabel27.StylePriority.UseFont = false;
this.xrLabel27.StylePriority.UseTextAlignment = false;
this.xrLabel27.Text = "Summe Fehlkontakte:";
this.xrLabel27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
//
// xrLabel35
//
this.xrLabel35.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMFehlkontakte", "{0:0.##}")});
this.xrLabel35.LocationFloat = new DevExpress.Utils.PointFloat(467.0125F, 17.99998F);
this.xrLabel35.Name = "xrLabel35";
this.xrLabel35.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel35.SizeF = new System.Drawing.SizeF(100.0003F, 18F);
this.xrLabel35.StylePriority.UseTextAlignment = false;
this.xrLabel35.Text = "xrLabel16";
this.xrLabel35.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
//
// Stundenzettel
//
@@ -1154,10 +1234,10 @@ namespace BeWo.LebenshilfeEssenReports
this.Version = "17.1";
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTableAbwesenheiten)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
@@ -1259,5 +1339,10 @@ namespace BeWo.LebenshilfeEssenReports
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
private DevExpress.XtraReports.UI.XRLabel xrLabel11;
private DevExpress.XtraReports.UI.XRLabel lblDebNr;
private DevExpress.XtraReports.UI.XRLabel xrLabel27;
private DevExpress.XtraReports.UI.XRLabel xrLabel35;
private DevExpress.XtraReports.UI.XRLabel lblFehlkontakt;
private DevExpress.XtraReports.UI.XRLabel xrLabel17;
private DevExpress.XtraReports.UI.XRLabel xrLabel20;
}
}

View File

@@ -25,29 +25,28 @@ namespace BeWo.LebenshilfeEssenReports
{
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
foreach (ServicesOverviewRO.ServiceDetail sd in pRO.Services)
{
if (s.IsBillable)
if (sd.IsBillable || sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
{
if (s.IsGroup)
sd.Notice5 = "E";
if (sd.IsGroup)
{
sd.Notice5 = "G (" + sd.CustomerCount + " TN)";
hatGruppen = true;
}
else if (sd.ServiceDescription.ToLower().Contains("fehlkontakt"))
{
sd.Notice5 = "F";
}
//if (s.ServiceCategory.Contains("Assistenz"))
//{
// istAssistenz = true;
//}
gerundeteFls += (decimal)Math.Round(s.Minutes / 60, 2, MidpointRounding.AwayFromZero);
servicesBillable.Add(s);
servicesBillable.Add(sd);
}
}
pRO.Services = servicesBillable;
}
lblFlsGesamt.Text = String.Format("{0:0.00}", gerundeteFls);
if (istAssistenz)
{
lblBewilligteFls.Text = "bewilligte ASS:";

View File

@@ -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.LebenshilfeEssenReports.Neu
{
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<Settlement2RO>
@@ -35,13 +37,25 @@ namespace BeWo.LebenshilfeEssenReports.Neu
{
foreach (var ii in pRO.InvoiceItems)
{
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}: {2:0.##} FLS {3}x {4:c}",
ii.DetailDescription = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}: {2:0.##} FLS {3}x {4:c}",
ii.PeriodStartDate, ii.PeriodEndDate,
ii.UnitCount, !hasRatefactor ? "" : "x " + pRO.RateFactorText2 + " ",
ii.AmountPerUnit);
}
}
ii.AmountPerUnit);
ii.ItemDescription = "Fachleistungen";
if (!pRO.FehlkontakteString.IsNullOrEmpty() && ii.RateFactor == 0)
{
Zwischensumme.Visible = true;
if (!ii.ItemDescription.IsNullOrEmpty())
{
ii.DetailDescription = Regex.Replace(ii.DetailDescription, ii.ItemDescription, "Fehlkontakte");
}
ii.ItemDescription = "Fehlkontakte";
}
}
}
this.bindingSource1.DataSource = pRO;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long