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) //{