DataTable: Add units for columns

This commit is contained in:
2023-11-15 18:29:14 +01:00
parent 486655d071
commit b096163ed3
7 changed files with 125 additions and 92 deletions

View File

@ -8,18 +8,18 @@ using System.Threading.Tasks;
namespace Elwig.Models.Dtos {
public class MemberDeliveryPerVariantData : DataTable<MemberDeliveryPerVariantRow> {
private static readonly (string, string, int)[] FieldNames = new[] {
("MgNr", "MgNr.", 12),
("Name", "Name", 40),
("GivenName", "Vorname", 40),
("Address", "Adresse", 60),
("Plz", "PLZ", 10),
("Locality", "Ort", 60),
("SortIds", "Sorte", 12),
("AttrIds", "Attribut", 16),
("Weights", "Geliefert", 22),
("Areas", "Fläche", 22),
("Yields", "Ertrag", 22),
private static readonly (string, string, string?, int)[] FieldNames = new[] {
("MgNr", "MgNr.", null, 12),
("Name", "Name", null, 40),
("GivenName", "Vorname", null, 40),
("Address", "Adresse", null, 60),
("Plz", "PLZ", null, 10),
("Locality", "Ort", null, 60),
("SortIds", "Sorte", null, 12),
("AttrIds", "Attribut", null, 16),
("Weights", "Geliefert", "kg", 22),
("Areas", "Fläche", "m²", 22),
("Yields", "Ertrag", "kg/ha", 22),
};