WegweiserBetreuungsdienstReports/SettlementReport - Typo gefixt

This commit is contained in:
2024-07-08 12:38:22 +02:00
parent a9090afcd6
commit 9a596a21da
2 changed files with 70 additions and 70 deletions

View File

@@ -22,7 +22,7 @@ namespace BeWo.WegweiserBetreuungsdienstReports.Alt
if ((pRO.RecipientContactPerson != null && pRO.RecipientContactPerson.Contains("Frau Bayer")) ||
(pRO.RecipientDivision != null && pRO.RecipientDivision.Contains("Frau Bayer")))
{
xrLabel5.Text = "Sehr geeherte Frau Bayer,";
xrLabel5.Text = "Sehr geehrte Frau Bayer,";
}
//xrLabel3.Text = "Abrechnung Betreuungsleistungen / Bewilligungsbescheid vom [ApprovalNoticeDateString]";

View File

@@ -1,76 +1,76 @@
using System;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
using System.Text.RegularExpressions;
using BS.Shared.Extensions;
namespace BeWo.WegweiserBetreuungsdienstReports
{
public partial class Spitzabrechnung : XtraReport, IBeWoReport<Settlement2RO>
{
public Spitzabrechnung()
{
InitializeComponent();
}
public void SetReportDataSource(Settlement2RO pRO)
{
if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown))
{
pRO.RecipientPostCodeAndTown = pRO.RecipientPostCodeAndTown.Replace(" ", " ");
}
if ((pRO.RecipientContactPerson != null && pRO.RecipientContactPerson.Contains("Frau Bayer")) ||
using System;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
using System.Text.RegularExpressions;
using BS.Shared.Extensions;
namespace BeWo.WegweiserBetreuungsdienstReports
{
public partial class Spitzabrechnung : XtraReport, IBeWoReport<Settlement2RO>
{
public Spitzabrechnung()
{
InitializeComponent();
}
public void SetReportDataSource(Settlement2RO pRO)
{
if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown))
{
pRO.RecipientPostCodeAndTown = pRO.RecipientPostCodeAndTown.Replace(" ", " ");
}
if ((pRO.RecipientContactPerson != null && pRO.RecipientContactPerson.Contains("Frau Bayer")) ||
(pRO.RecipientDivision != null && pRO.RecipientDivision.Contains("Frau Bayer")))
{
xrLabel5.Text = "Sehr geeherte Frau Bayer,";
}
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;
if (!ii.ItemDescription.IsNullOrEmpty())
xrLabel5.Text = "Sehr geehrte Frau Bayer,";
}
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;
if (!ii.ItemDescription.IsNullOrEmpty())
{
ii.AbrechnungsText = ii.AbrechnungsText.Replace("FLS", "Std.");
}
ii.ItemDescription = "Fehlkontakte";
ii.ItemDescription = "Fehlkontakte";
}
else if (ii.ItemDescription.IsNullOrEmpty())
{
ii.ItemDescription = "Fachleistungsstunden";
}
}
pRO.RateFactor = (double)rateFactor;
cellFactorText.Text = String.Format("- zzgl. Faktor {0:0.00}:", pRO.RateFactor);
cellApprovedFlsFactor.Text = pRO.ApprovedFLSWithFactor;
xrLabel3.Text = "Abrechnung Betreuungsleistungen";
if (pRO.InvoiceBaseOid.HasValue)
{
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(pRO.InvoiceBaseOid.Value);
if (ib.SupportConceptOid.HasValue)
{
var sc = DAOFactory.GenericDAO.LoadByID<SupportConcept>(ib.SupportConceptOid.Value);
if (sc.ApprovalDate.HasValue)
{
xrLabel3.Text = String.Format("Abrechnung Betreuungsleistungen / Bewilligungsbescheid vom {0:dd.MM.yyyy}", sc.ApprovalDate);
}
}
pRO.RateFactor = (double)rateFactor;
cellFactorText.Text = String.Format("- zzgl. Faktor {0:0.00}:", pRO.RateFactor);
cellApprovedFlsFactor.Text = pRO.ApprovedFLSWithFactor;
xrLabel3.Text = "Abrechnung Betreuungsleistungen";
if (pRO.InvoiceBaseOid.HasValue)
{
var ib = DAOFactory.GenericDAO.LoadByID<InvoiceBase>(pRO.InvoiceBaseOid.Value);
if (ib.SupportConceptOid.HasValue)
{
var sc = DAOFactory.GenericDAO.LoadByID<SupportConcept>(ib.SupportConceptOid.Value);
if (sc.ApprovalDate.HasValue)
{
xrLabel3.Text = String.Format("Abrechnung Betreuungsleistungen / Bewilligungsbescheid vom {0:dd.MM.yyyy}", sc.ApprovalDate);
}
}
}
if (pRO.AmountBillableTotal - (pRO.Claim + pRO.AmountAdvancedPayments) != 0)
@@ -79,10 +79,10 @@ namespace BeWo.WegweiserBetreuungsdienstReports
lblDifferenzrechnungText.Text = "Höhe der bereits gestellten Rechnung vor Stundensatzanpassung:";
lblDifferenzrechnung.Text = string.Format("{0:c}", pRO.AmountBillableTotal - (pRO.AmountAdvancedPayments + pRO.Claim));
}
this.bindingSource1.DataSource = pRO;
}
}
}
}
this.bindingSource1.DataSource = pRO;
}
}
}