54 lines
1.7 KiB
C#
54 lines
1.7 KiB
C#
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();
|
|
|
|
xrTableRowReceiverDatenannahmestelle.Visible = false;
|
|
}
|
|
|
|
public void SetReportDataSource(GkvAbrechnungRO pRO)
|
|
{
|
|
xrPictureBox1.ImageSource = pRO.Logo;
|
|
|
|
if (pRO.SenderWebsite.ToNullIfEmpty() is null)
|
|
xrTableRowSenderWebsite.Visible = false;
|
|
|
|
if (pRO.ReceiverDatenannahmestelle.ToNullIfEmpty() is null)
|
|
xrTableRowReceiverDatenannahmestelle.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;
|
|
}
|
|
}
|
|
} |