32 lines
766 B
C#
32 lines
766 B
C#
using System;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
|
|
namespace BeWo.Club74
|
|
{
|
|
public partial class GeneralReport : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<InvoiceCustomerRO>
|
|
{
|
|
public GeneralReport()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(InvoiceCustomerRO pRO)
|
|
{
|
|
if (!String.IsNullOrEmpty(pRO.RecipientSalutationAddressField))
|
|
{
|
|
if (pRO.RecipientSalutationAddressField == "Herrn")
|
|
{
|
|
pRO.RecipientSalutationAddressField = "Herr";
|
|
}
|
|
|
|
}
|
|
if (String.IsNullOrEmpty(pRO.Notice))
|
|
{
|
|
lblBemerkung.Visible = false;
|
|
}
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|