SBBMainzReports/InvoiceCustomerReport - neu Format hinterlegt
SupportOID=164542
This commit is contained in:
1064
ReportImp/SBBMainzReports/InvoiceCustomerReport.Designer.cs
generated
Normal file
1064
ReportImp/SBBMainzReports/InvoiceCustomerReport.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
52
ReportImp/SBBMainzReports/InvoiceCustomerReport.cs
Normal file
52
ReportImp/SBBMainzReports/InvoiceCustomerReport.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
|
||||
namespace SBBMainzReports
|
||||
{
|
||||
public partial class InvoiceCustomerReport : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<InvoiceCustomerRO>
|
||||
{
|
||||
public InvoiceCustomerReport()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(InvoiceCustomerRO pRO)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && !String.IsNullOrEmpty(pRO.RecipientOrganisation.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientOrganisation);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientDivision) && !String.IsNullOrEmpty(pRO.RecipientDivision.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientDivision);
|
||||
}
|
||||
if ((!String.IsNullOrEmpty(pRO.RecipientFirstName) && !String.IsNullOrEmpty(pRO.RecipientFirstName.Trim()))
|
||||
|| (!String.IsNullOrEmpty(pRO.RecipientLastName) && !String.IsNullOrEmpty(pRO.RecipientLastName.Trim())))
|
||||
{
|
||||
sb.AppendLine(String.Format("{0} {1}", pRO.RecipientFirstName, pRO.RecipientLastName).Trim());
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientStreet) && !String.IsNullOrEmpty(pRO.RecipientStreet.Trim()))
|
||||
{
|
||||
sb.AppendLine(pRO.RecipientStreet);
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientPostCode) && !String.IsNullOrEmpty(pRO.RecipientPostCode.Trim()))
|
||||
{
|
||||
sb.Append(pRO.RecipientPostCode);
|
||||
sb.Append(" ");
|
||||
}
|
||||
if (!String.IsNullOrEmpty(pRO.RecipientTown) && !String.IsNullOrEmpty(pRO.RecipientTown.Trim()))
|
||||
{
|
||||
sb.Append(pRO.RecipientTown);
|
||||
}
|
||||
lblAddress.Text = sb.ToString();
|
||||
|
||||
if (pRO.RecipientSalutation == "Sehr geehrte Damen und Herren,")
|
||||
pRO.RecipientSalutation = "Guten Tag,";
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
}
|
||||
}
|
||||
139
ReportImp/SBBMainzReports/InvoiceCustomerReport.resx
Normal file
139
ReportImp/SBBMainzReports/InvoiceCustomerReport.resx
Normal file
File diff suppressed because one or more lines are too long
@@ -78,6 +78,12 @@
|
||||
</Compile>
|
||||
<Compile Include="Export\CustomDataExporter.cs" />
|
||||
<Compile Include="Export\FibuExporter.cs" />
|
||||
<Compile Include="InvoiceCustomerReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="InvoiceCustomerReport.Designer.cs">
|
||||
<DependentUpon>InvoiceCustomerReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Invoicing\CustomInvoiceCreation.cs" />
|
||||
<Compile Include="Invoicing\CustomInvoiceCreationQA.cs" />
|
||||
<Compile Include="Invoicing\CustomInvoiceCreationTS.cs" />
|
||||
@@ -151,6 +157,10 @@
|
||||
<EmbeddedResource Include="CustomerDataReport.resx">
|
||||
<DependentUpon>CustomerDataReport.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="InvoiceCustomerReport.resx">
|
||||
<DependentUpon>InvoiceCustomerReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="LeistungsbestaetigungRlpTs.resx">
|
||||
<DependentUpon>LeistungsbestaetigungRlpTs.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
Reference in New Issue
Block a user