Bugfixes beim Personenmodul

This commit is contained in:
2026-02-05 11:58:53 +01:00
parent 7c443429af
commit 9ecd430f98
3 changed files with 12 additions and 22 deletions

View File

@@ -3596,12 +3596,6 @@
<ItemGroup>
<None Include="Scripts\src\SvcUtil.exe" />
</ItemGroup>
<ItemGroup>
<Resource Include="Ressources\Icons\micro.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="AI\Controls\micro.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="AI\Controls\Icon_KI_Chat_Weiss_TEMP.png" />
</ItemGroup>

View File

@@ -88,7 +88,7 @@ namespace BeWoPlanerMobil.Util
Familienstand = person.FamilyStatus != null ? EnumTranslations.FamilyStatusTranslations[person.FamilyStatus] : string.Empty;
Funktion = person.Function?.DisplayName ?? string.Empty;
Staatsangehoerigkeit = person.Nationalitaet?.DisplayName ?? string.Empty;
Migrationshintergrund = person.Migrationshintergrund;
Migrationshintergrund = person.IsMigrant ? "checked" : string.Empty;
Aufenthaltsstatus = person.AufenthaltsStatus?.DisplayName ?? string.Empty;
Archiviert = person.ActivationType == ActivationTypeId.Archived ? "checked" : string.Empty;
Notizen = person.PersonNotice;
@@ -106,16 +106,16 @@ namespace BeWoPlanerMobil.Util
{
switch(contact.ContactType)
{
case ContactType.business_Mail:
case ContactType.private_Mail:
EMail = contact.ContactValue;
break;
case ContactType.business_Fax:
case ContactType.private_Fax:
Fax = contact.ContactValue;
break;
case ContactType.business_Phone:
case ContactType.private_Phone:
Telefon = contact.ContactValue;
break;
case ContactType.business_MobilePhone:
case ContactType.private_MobilePhone:
Handy = contact.ContactValue;
break;
}

View File

@@ -265,16 +265,12 @@
</div>
</div>
<div class="row">
<div class="form-group w-100 my-1">
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">
Migrationshintergrund
</div>
</div>
<input @inputDisabled maxlength="16" type="text" autocomplete="on" class="form-control" id="migrationshintergrund" name="migrationshintergrund" value="@Model.SelectedJsonPerson.Migrationshintergrund" />
</div>
</div>
<div class="form-group w-100 my-1">
<div class="form-group form-check w-100 my-1">
<input @inputDisabled type="checkbox" class="form-check-input" id="migrationshintergrund" name="migrationshintergrund" @Model.SelectedJsonPerson.Migrationshintergrund />
<label class="form-check-label" for="migrationshintergrund">Migrationshintergrund</label>
</div>
</div>
</div>
<div class="row">
<div class="form-group w-100 my-1">
@@ -523,7 +519,7 @@
</button>
</div>
</div>
<div class="colapse @Html.GetCollapsibleClass(Model.Collapsibles2IsShown, $"collapse-organisation-{organisation.Organisation2PersonOid}")" id="collapse-organisation-@organisation.Organisation2PersonOid">
<div class="collapse @Html.GetCollapsibleClass(Model.Collapsibles2IsShown, $"collapse-organisation-{organisation.Organisation2PersonOid}")" id="collapse-organisation-@organisation.Organisation2PersonOid">
<div class="card-body">
<table class="table table-sm table-striped service-record-table">
<tr>