Files

48 lines
1.2 KiB
C#
Raw Permalink Normal View History

2023-03-08 17:00:28 +01:00
using System;
using System.Text;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
namespace HPHBersenbrueck
{
public partial class Rechnung : XtraReport, IBeWoReport<ServiceInvoiceRO>
2023-03-08 17:00:28 +01:00
{
public Rechnung()
2023-03-08 17:00:28 +01:00
{
this.InitializeComponent();
}
public void SetReportDataSource(ServiceInvoiceRO pRO)
{
StringBuilder sb = new StringBuilder();
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation))
{
sb.AppendLine(pRO.RecipientOrganisation);
}
if (!String.IsNullOrEmpty(pRO.RecipientDivision))
{
sb.AppendLine(pRO.RecipientDivision);
}
if (!String.IsNullOrEmpty(pRO.RecipientStreet))
{
sb.AppendLine();
sb.AppendLine(pRO.RecipientStreet);
}
if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown))
{
sb.AppendLine(pRO.RecipientPostCodeAndTown);
}
lblAdresse.Text = sb.ToString();
pRO.NetClaim = pRO.NetClaim.Replace("<22>", "").Trim();
this.bindingSource1.DataSource = pRO;
}
}
}