From cf7b67fb5c0940e1b4275d71457b0c7704e31cbf Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Mon, 27 Feb 2023 15:01:06 +0100 Subject: [PATCH] =?UTF-8?q?MH:=20Angeh=C3=B6rige=20auf=20Stammdatenblatt?= =?UTF-8?q?=20verkn=C3=BCpft?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Klientenstammblatt.Designer.cs | 2 +- .../HPHBersenbrueck/Klientenstammblatt.cs | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ReportImp/HPHBersenbrueck/Klientenstammblatt.Designer.cs b/ReportImp/HPHBersenbrueck/Klientenstammblatt.Designer.cs index 074c538d4..f7a06773b 100644 --- a/ReportImp/HPHBersenbrueck/Klientenstammblatt.Designer.cs +++ b/ReportImp/HPHBersenbrueck/Klientenstammblatt.Designer.cs @@ -1555,7 +1555,7 @@ namespace BeWo.HPHBersenbrueck // lblAngehoerigerName // this.lblAngehoerigerName.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); - this.lblAngehoerigerName.LocationFloat = new DevExpress.Utils.PointFloat(149.9967F, 440F); + this.lblAngehoerigerName.LocationFloat = new DevExpress.Utils.PointFloat(149.9966F, 440F); this.lblAngehoerigerName.Name = "lblAngehoerigerName"; this.lblAngehoerigerName.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.lblAngehoerigerName.SizeF = new System.Drawing.SizeF(200F, 20F); diff --git a/ReportImp/HPHBersenbrueck/Klientenstammblatt.cs b/ReportImp/HPHBersenbrueck/Klientenstammblatt.cs index 4203e30b1..c2c52635e 100644 --- a/ReportImp/HPHBersenbrueck/Klientenstammblatt.cs +++ b/ReportImp/HPHBersenbrueck/Klientenstammblatt.cs @@ -139,6 +139,24 @@ namespace BeWo.HPHBersenbrueck } } } + + if (pRO.EnvironmentPersons != null && pRO.EnvironmentPersons.Count > 0) + { + lblAngehoerigerName.Text = pRO.EnvironmentPersons[0].Person.LastName; + lblAngehoerigerVorname.Text = pRO.EnvironmentPersons[0].Person.FirstName; + lblAngehoerigerStr.Text = pRO.EnvironmentPersons[0].Person.Street; + lblAngehoerigerOrt.Text = pRO.EnvironmentPersons[0].Person.PostalCode + " " + pRO.EnvironmentPersons[0].Person.Town; + lblAngehoerigerTel.Text = pRO.EnvironmentPersons[0].Person.Communication1; + + if (pRO.EnvironmentPersons.Count > 1) + { + lblAngehoeriger2Name.Text = pRO.EnvironmentPersons[1].Person.LastName; + lblAngehoeriger2Vorname.Text = pRO.EnvironmentPersons[1].Person.FirstName; + lblAngehoeriger2Str.Text = pRO.EnvironmentPersons[1].Person.Street; + lblAngehoeriger2Ort.Text = pRO.EnvironmentPersons[1].Person.PostalCode + " " + pRO.EnvironmentPersons[0].Person.Town; + lblAngehoeriger2Tel.Text = pRO.EnvironmentPersons[1].Person.Communication1; + } + } //var gb = pRO.EnvironmentPersons.FirstOrDefault(f => f.RelationRole.TypeDescription.Equals("Gesetzlicher Vertreter")); //if (gb != null) //{