Dtos: Unify member names in DataTables

This commit is contained in:
2024-03-27 16:41:08 +01:00
parent d87f3ce6a6
commit 57662534f3
5 changed files with 58 additions and 46 deletions

View File

@ -12,8 +12,8 @@ namespace Elwig.Models.Dtos {
private static readonly (string, string, string?, int?)[] FieldNames = [
("MgNr", "MgNr.", null, 12),
("Name", "Name", null, 40),
("GivenName", "Vorname", null, 40),
("Name1", "Name", null, 40),
("Name2", "Vorname", null, 40),
("Address", "Adresse", null, 60),
("Plz", "PLZ", null, 10),
("Locality", "Ort", null, 60),
@ -54,8 +54,8 @@ namespace Elwig.Models.Dtos {
public class MemberListRow {
public int MgNr;
public string? Name;
public string? GivenName;
public string? Name1;
public string? Name2;
public string? DefaultKg;
public string? Branch;
public int BusinessShares;
@ -80,8 +80,8 @@ namespace Elwig.Models.Dtos {
public MemberListRow(Member m, int? areaCom = null) {
MgNr = m.MgNr;
Name = m.FamilyName;
GivenName = m.GivenName;
Name1 = m.FamilyName;
Name2 = m.AdministrativeName2;
DefaultKg = m.DefaultKg?.Name;
Branch = m.Branch?.Name;
BusinessShares = m.BusinessShares;