diff --git a/Report/DefaultReports/ServiceInvoiceReport.Designer.cs b/Report/DefaultReports/ServiceInvoiceReport.Designer.cs index a38996d66..485753c7a 100644 --- a/Report/DefaultReports/ServiceInvoiceReport.Designer.cs +++ b/Report/DefaultReports/ServiceInvoiceReport.Designer.cs @@ -39,7 +39,7 @@ namespace BeWo.Report.DefaultReports this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); - this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAnrede = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); this.lblAbrechnungszeitraum = new DevExpress.XtraReports.UI.XRLabel(); this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); @@ -57,6 +57,8 @@ namespace BeWo.Report.DefaultReports this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableRow8 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); this.xrTable4 = new DevExpress.XtraReports.UI.XRTable(); this.xrTableRow10 = new DevExpress.XtraReports.UI.XRTableRow(); @@ -90,8 +92,6 @@ namespace BeWo.Report.DefaultReports this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow(); - this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit(); @@ -136,7 +136,7 @@ namespace BeWo.Report.DefaultReports this.xrLabel4, this.xrLabel3, this.xrLabel2, - this.xrLabel5, + this.lblAnrede, this.xrLabel8, this.lblAbrechnungszeitraum, this.xrTable2}); @@ -203,14 +203,14 @@ namespace BeWo.Report.DefaultReports this.xrLabel2.Text = "Rechnung Nr. [InvoiceNumber]"; this.xrLabel2.WordWrap = false; // - // xrLabel5 + // lblAnrede // - this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 297.5F); - this.xrLabel5.Name = "xrLabel5"; - this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel5.SizeF = new System.Drawing.SizeF(317F, 17F); - this.xrLabel5.StylePriority.UseFont = false; - this.xrLabel5.Text = "Sehr geehrte Damen und Herren,"; + this.lblAnrede.LocationFloat = new DevExpress.Utils.PointFloat(0F, 297.5F); + this.lblAnrede.Name = "lblAnrede"; + this.lblAnrede.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAnrede.SizeF = new System.Drawing.SizeF(317F, 17F); + this.lblAnrede.StylePriority.UseFont = false; + this.lblAnrede.Text = "Sehr geehrte Damen und Herren,"; // // xrLabel8 // @@ -376,6 +376,25 @@ namespace BeWo.Report.DefaultReports this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrTableCell5.Weight = 1D; // + // xrTableRow7 + // + this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell3}); + this.xrTableRow7.Name = "xrTableRow7"; + this.xrTableRow7.StylePriority.UseTextAlignment = false; + this.xrTableRow7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + this.xrTableRow7.Weight = 0.11258278145695365D; + // + // xrTableCell3 + // + this.xrTableCell3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "BusinessPartnerId")}); + this.xrTableCell3.Multiline = true; + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrTableCell3.TextFormatString = "GP-Nr.: {0}"; + this.xrTableCell3.Weight = 1D; + // // xrLabel15 // this.xrLabel15.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); @@ -799,25 +818,6 @@ namespace BeWo.Report.DefaultReports // this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); // - // xrTableRow7 - // - this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { - this.xrTableCell3}); - this.xrTableRow7.Name = "xrTableRow7"; - this.xrTableRow7.StylePriority.UseTextAlignment = false; - this.xrTableRow7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; - this.xrTableRow7.Weight = 0.11258278145695365D; - // - // xrTableCell3 - // - this.xrTableCell3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "BusinessPartnerId")}); - this.xrTableCell3.Multiline = true; - this.xrTableCell3.Name = "xrTableCell3"; - this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrTableCell3.TextFormatString = "GP-Nr.: {0}"; - this.xrTableCell3.Weight = 1D; - // // ServiceInvoiceReport // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { @@ -857,7 +857,7 @@ namespace BeWo.Report.DefaultReports private DevExpress.XtraReports.UI.XRLabel xrLabel4; private DevExpress.XtraReports.UI.XRLabel xrLabel3; private DevExpress.XtraReports.UI.XRLabel xrLabel2; - private DevExpress.XtraReports.UI.XRLabel xrLabel5; + private DevExpress.XtraReports.UI.XRLabel lblAnrede; private DevExpress.XtraReports.UI.XRLabel xrLabel8; private DevExpress.XtraReports.UI.XRLabel lblAbrechnungszeitraum; private DevExpress.XtraReports.UI.XRTable xrTable2; diff --git a/Report/DefaultReports/ServiceInvoiceReport.cs b/Report/DefaultReports/ServiceInvoiceReport.cs index e96ed414e..dc601f6ea 100644 --- a/Report/DefaultReports/ServiceInvoiceReport.cs +++ b/Report/DefaultReports/ServiceInvoiceReport.cs @@ -1,7 +1,7 @@ using System; using System.Text; using BeWo.Report.ReportObjects; - +using BS.Shared.Extensions; using DevExpress.XtraReports.UI; namespace BeWo.Report.DefaultReports @@ -26,6 +26,11 @@ namespace BeWo.Report.DefaultReports lblAbrechnungszeitraum.Text = String.Format("hiermit berechnen wir für den Zeitraum {0:MMMM yyyy} - {1:MMMM yyyy} folgende erbrachte Tätigkeiten:", start, end); } + if (pRO.CustomerSalutation.IsNullOrEmpty()) + { + lblAnrede.Text = "Guten Tag " + pRO.CustomerFirstName + " " + pRO.CustomerLastName + ","; + } + SetzeAdresse(pRO); this.bindingSource1.DataSource = pRO; diff --git a/Report/DefaultReports/SettlementReport.Designer.cs b/Report/DefaultReports/SettlementReport.Designer.cs index 9f858a74f..6e5c6c26c 100644 --- a/Report/DefaultReports/SettlementReport.Designer.cs +++ b/Report/DefaultReports/SettlementReport.Designer.cs @@ -47,7 +47,7 @@ namespace BeWo.Report.DefaultReports.Alt this.rowErbrachteLeistung = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); - this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAnrede = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); @@ -66,6 +66,8 @@ namespace BeWo.Report.DefaultReports.Alt this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableRow8 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow13 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); this.RecipientPostCodeAndTown = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel_RecipientStreet = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel_RecipientDivision = new DevExpress.XtraReports.UI.XRLabel(); @@ -121,8 +123,6 @@ namespace BeWo.Report.DefaultReports.Alt this.xrTableRow36 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell57 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell58 = new DevExpress.XtraReports.UI.XRTableCell(); - this.xrTableRow13 = new DevExpress.XtraReports.UI.XRTableRow(); - this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); @@ -312,14 +312,14 @@ namespace BeWo.Report.DefaultReports.Alt this.xrLabel6.StylePriority.UseFont = false; this.xrLabel6.Text = resources.GetString("xrLabel6.Text"); // - // xrLabel5 + // lblAnrede // - this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0.0002543131F, 262.125F); - this.xrLabel5.Name = "xrLabel5"; - this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel5.SizeF = new System.Drawing.SizeF(317F, 17F); - this.xrLabel5.StylePriority.UseFont = false; - this.xrLabel5.Text = "Sehr geehrte Damen und Herren,"; + this.lblAnrede.LocationFloat = new DevExpress.Utils.PointFloat(0.0002543131F, 262.125F); + this.lblAnrede.Name = "lblAnrede"; + this.lblAnrede.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAnrede.SizeF = new System.Drawing.SizeF(317F, 17F); + this.lblAnrede.StylePriority.UseFont = false; + this.lblAnrede.Text = "Sehr geehrte Damen und Herren,"; // // xrLabel4 // @@ -507,6 +507,25 @@ namespace BeWo.Report.DefaultReports.Alt this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrTableCell5.Weight = 1D; // + // xrTableRow13 + // + this.xrTableRow13.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell10}); + this.xrTableRow13.Name = "xrTableRow13"; + this.xrTableRow13.Weight = 0.11258278145695365D; + // + // xrTableCell10 + // + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "BusinessPartnerId")}); + this.xrTableCell10.Multiline = true; + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + this.xrTableCell10.TextFormatString = "GP-Nr.: {0}"; + this.xrTableCell10.Weight = 1D; + // // RecipientPostCodeAndTown // this.RecipientPostCodeAndTown.CanShrink = true; @@ -757,7 +776,7 @@ namespace BeWo.Report.DefaultReports.Alt this.xrLabel2, this.xrLabel3, this.xrLabel4, - this.xrLabel5, + this.lblAnrede, this.xrLabel6, this.xrTable1, this.xrLabel8}); @@ -1055,25 +1074,6 @@ namespace BeWo.Report.DefaultReports.Alt this.xrTableCell58.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; this.xrTableCell58.Weight = 0.21685899000901443D; // - // xrTableRow13 - // - this.xrTableRow13.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { - this.xrTableCell10}); - this.xrTableRow13.Name = "xrTableRow13"; - this.xrTableRow13.Weight = 0.11258278145695365D; - // - // xrTableCell10 - // - this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "BusinessPartnerId")}); - this.xrTableCell10.Multiline = true; - this.xrTableCell10.Name = "xrTableCell10"; - this.xrTableCell10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrTableCell10.StylePriority.UseTextAlignment = false; - this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; - this.xrTableCell10.TextFormatString = "GP-Nr.: {0}"; - this.xrTableCell10.Weight = 1D; - // // Spitzabrechnung // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { @@ -1110,7 +1110,7 @@ namespace BeWo.Report.DefaultReports.Alt private System.Windows.Forms.BindingSource bindingSource1; private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; private DevExpress.XtraReports.UI.XRLabel xrLabel6; - private DevExpress.XtraReports.UI.XRLabel xrLabel5; + private DevExpress.XtraReports.UI.XRLabel lblAnrede; private DevExpress.XtraReports.UI.XRLabel xrLabel4; private DevExpress.XtraReports.UI.XRLabel xrLabel3; private DevExpress.XtraReports.UI.XRLabel xrLabel2; diff --git a/Report/DefaultReports/SettlementReport.cs b/Report/DefaultReports/SettlementReport.cs index 9952fc51f..65730313b 100644 --- a/Report/DefaultReports/SettlementReport.cs +++ b/Report/DefaultReports/SettlementReport.cs @@ -5,6 +5,7 @@ using BeWo.Data.Entities; using BeWo.Report; using BeWo.Report.ReportObjects; using BS.Shared.DataContracts; +using BS.Shared.Extensions; namespace BeWo.Report.DefaultReports.Alt { @@ -77,9 +78,13 @@ namespace BeWo.Report.DefaultReports.Alt } } } - - this.bindingSource1.DataSource = pRO; + if (pRO.Salutation1.IsNullOrEmpty() && pRO.Salutation2.IsNullOrEmpty()) + { + lblAnrede.Text = "Guten Tag " + pRO.CustomerFirstName + " " + pRO.CustomerLastName + ","; + } + + this.bindingSource1.DataSource = pRO; } private String GetCustomerId(SettlementRO pRO) diff --git a/Report/DefaultReports/SettlementReport2.Designer.cs b/Report/DefaultReports/SettlementReport2.Designer.cs index ac3c161c3..2ac8b122d 100644 --- a/Report/DefaultReports/SettlementReport2.Designer.cs +++ b/Report/DefaultReports/SettlementReport2.Designer.cs @@ -41,7 +41,7 @@ namespace BeWo.Report.DefaultReports this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell(); this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule(); this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); - this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAnrede = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); @@ -221,14 +221,14 @@ namespace BeWo.Report.DefaultReports this.xrLabel6.StylePriority.UseFont = false; this.xrLabel6.Text = resources.GetString("xrLabel6.Text"); // - // xrLabel5 + // lblAnrede // - this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 261.0833F); - this.xrLabel5.Name = "xrLabel5"; - this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel5.SizeF = new System.Drawing.SizeF(317F, 17F); - this.xrLabel5.StylePriority.UseFont = false; - this.xrLabel5.Text = "Sehr geehrte Damen und Herren,"; + this.lblAnrede.LocationFloat = new DevExpress.Utils.PointFloat(0F, 261.0833F); + this.lblAnrede.Name = "lblAnrede"; + this.lblAnrede.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAnrede.SizeF = new System.Drawing.SizeF(317F, 17F); + this.lblAnrede.StylePriority.UseFont = false; + this.lblAnrede.Text = "Sehr geehrte Damen und Herren,"; // // xrLabel4 // @@ -685,7 +685,7 @@ namespace BeWo.Report.DefaultReports this.xrLabel2, this.xrLabel3, this.xrLabel4, - this.xrLabel5, + this.lblAnrede, this.xrLabel6, this.xrTable1, this.xrLabel8}); @@ -1110,7 +1110,7 @@ namespace BeWo.Report.DefaultReports private System.Windows.Forms.BindingSource bindingSource1; private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; private DevExpress.XtraReports.UI.XRLabel xrLabel6; - private DevExpress.XtraReports.UI.XRLabel xrLabel5; + private DevExpress.XtraReports.UI.XRLabel lblAnrede; private DevExpress.XtraReports.UI.XRLabel xrLabel4; private DevExpress.XtraReports.UI.XRLabel xrLabel3; private DevExpress.XtraReports.UI.XRLabel xrLabel2; diff --git a/Report/DefaultReports/SettlementReport2.cs b/Report/DefaultReports/SettlementReport2.cs index 12862aa3a..0f07cde7c 100644 --- a/Report/DefaultReports/SettlementReport2.cs +++ b/Report/DefaultReports/SettlementReport2.cs @@ -50,7 +50,12 @@ namespace BeWo.Report.DefaultReports } pRO.RateFactor = (double)rateFactor; - this.bindingSource1.DataSource = pRO; + if (pRO.Salutation1.IsNullOrEmpty() && pRO.Salutation2.IsNullOrEmpty()) + { + lblAnrede.Text = "Guten Tag " + pRO.CustomerFirstName + " " + pRO.CustomerLastName + ","; + } + + this.bindingSource1.DataSource = pRO; } } } diff --git a/Report/ReportObjects/ServiceInvoiceRO.cs b/Report/ReportObjects/ServiceInvoiceRO.cs index 668cb8a5f..7037308fb 100644 --- a/Report/ReportObjects/ServiceInvoiceRO.cs +++ b/Report/ReportObjects/ServiceInvoiceRO.cs @@ -162,9 +162,13 @@ namespace BeWo.Report.ReportObjects if (pDC.InvoiceBase.SupportConceptCostBearerRelDc != null) { - lResult.CustomerSalutation = pDC.InvoiceBase.SupportConceptCostBearerRelDc.SupportConcept.Customer.Sex == Sex.Male - ? "Herr" - : "Frau"; + if (pDC.InvoiceBase.SupportConceptCostBearerRelDc.SupportConcept.Customer.Sex == Sex.Male) + lResult.CustomerSalutation = "Herr"; + else if (pDC.InvoiceBase.SupportConceptCostBearerRelDc.SupportConcept.Customer.Sex == Sex.Female) + lResult.CustomerSalutation = "Frau"; + else + lResult.CustomerSalutation = ""; + var org = pDC.InvoiceBase.SupportConceptCostBearerRelDc.CostBearer; lResult.OrganisationDebitorNumber = org.DebitorNumber; diff --git a/Report/ReportObjects/Settlement2RO.cs b/Report/ReportObjects/Settlement2RO.cs index e243ce0cb..d81a262e0 100644 --- a/Report/ReportObjects/Settlement2RO.cs +++ b/Report/ReportObjects/Settlement2RO.cs @@ -234,8 +234,22 @@ namespace BeWo.Report.ReportObjects lResult.WeeksInAccountingPeriod = (decimal)(days / 7); lResult.CreatorName = pDC.CreatorFirstName + " " + pDC.CreatorLastName; - lResult.Salutation1 = lCustomer.Person.Sex == Sex.Male ? "Herr" : "Frau"; - lResult.Salutation2 = lCustomer.Person.Sex == Sex.Male ? "Herrn" : "Frau"; + + string salutation = ""; + string salutation2 = ""; + if (lCustomer.Person.Sex == Sex.Male) + { + salutation = "Herr"; + salutation2 = "Herrn"; + } + else if (lCustomer.Person.Sex == Sex.Female) + { + salutation = "Frau"; + salutation2 = "Frau"; + } + + lResult.Salutation1 = salutation; + lResult.Salutation2 = salutation2; lResult.HasGroupRecords = pDC.HasGroupRecords; lResult.Eigenbeteiligung = pDC.EquityContribution; diff --git a/Report/ReportObjects/SettlementRO.cs b/Report/ReportObjects/SettlementRO.cs index 1b5a557da..fde37e3ef 100644 --- a/Report/ReportObjects/SettlementRO.cs +++ b/Report/ReportObjects/SettlementRO.cs @@ -616,9 +616,21 @@ namespace BeWo.Report.ReportObjects lResult.CreatorName = pDC.CreatorFirstName + " " + pDC.CreatorLastName; - lResult.Salutation1 = lCustomer.Person.Sex == Sex.Male ? "Herr" : "Frau"; + string salutation = ""; + string salutation2 = ""; + if (lCustomer.Person.Sex == Sex.Male) + { + salutation = "Herr"; + salutation2 = "Herrn"; + } + else if (lCustomer.Person.Sex == Sex.Female) + { + salutation = "Frau"; + salutation2 = "Frau"; + } - lResult.Salutation2 = lCustomer.Person.Sex == Sex.Male ? "Herrn" : "Frau"; + lResult.Salutation1 = salutation; + lResult.Salutation2 = salutation2; lResult.CustomerName = lCustomer.Person.FirstName + " " + lCustomer.Person.LastName; lResult.Eigenbeteiligung = pDC.EquityContribution;