MH: Angehörige auf Stammdatenblatt verknüpft

This commit is contained in:
2023-02-27 15:01:06 +01:00
parent 8a5131fd67
commit cf7b67fb5c
2 changed files with 19 additions and 1 deletions

View File

@@ -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);

View File

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