Files
BeWoPlaner/ReportImp/LebenshilfeKusel/GkvBegleitzettel.cs
2026-06-25 20:59:20 +02:00

67 lines
2.3 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using BS.Shared.Extensions;
using DevExpress.XtraReports.UI;
namespace BeWo.Report.DefaultReports.Invoices
{
public partial class GkvBegleitzettel : XtraReport, IBeWoReport<GkvAbrechnungRO>
{
public GkvBegleitzettel()
{
this.InitializeComponent();
}
public void SetReportDataSource(GkvAbrechnungRO pRO)
{
xrPictureBox1.ImageSource = pRO.Logo;
if (pRO.KrankenkasseName.Equals("IKK SÜDWEST"))
{
pRO.ReceiverOrganisation = "IKK SÜDWEST";
pRO.ReceiverStreet = "Europaallee 34";
pRO.ReceiverPostCodeAndTown = "66113 Saarbrücken";
}
else if (pRO.KrankenkasseName.Equals("BKK Pfaff") || pRO.KrankenkasseName.Equals("HKK Krankenkasse"))
{
pRO.ReceiverOrganisation = "Abrechnungszentrum Emmendingen";
pRO.ReceiverStreet = "Bundesstraße 6";
pRO.ReceiverPostCodeAndTown = "79312 Emmendingen";
}
if (pRO.SenderWebsite.ToNullIfEmpty() is null)
xrTableRowSenderWebsite.Visible = false;
if (pRO.ReceiverOrganisation.ToNullIfEmpty() is null)
xrTableRowReceiverOrganisation.Visible = false;
if (pRO.ReceiverDivision.ToNullIfEmpty() is null)
xrTableRowReceiverDivision.Visible = false;
if (pRO.ReceiverContactPerson.ToNullIfEmpty() is null)
xrTableRowReceiverContactPerson.Visible = false;
/*
if (pRO.ReceiverStreet.ToNullIfEmpty() is null)
xrTableRowReceiverStreet.Visible = false;
if (pRO.ReceiverPostCodeAndTown.ToNullIfEmpty() is null)
xrTableRowReceiverPostCodeTown.Visible = false;
*/
if (pRO.SenderBankName.ToNullIfEmpty() is null ||
pRO.SenderBankIBAN.ToNullIfEmpty() is null ||
pRO.SenderBankName.ToNullIfEmpty() is null)
{
xrLineBankConnection.Visible = false;
xrRichTextBankConnection.Visible = false;
}
bindingSource1.DataSource = pRO;
}
}
}