Helpers/Export: Add Dto file export
This commit is contained in:
@ -7,23 +7,23 @@ using System.Threading.Tasks;
|
||||
namespace Elwig.Models.Dtos {
|
||||
public class DeliveryConfirmationData : DataTable<DeliveryConfirmationRow> {
|
||||
|
||||
private static readonly (string, string)[] _fields = new[] {
|
||||
private static readonly (string, string)[] _fieldNames = new[] {
|
||||
("LsNr", "LsNr."),
|
||||
("DPNr", "Pos."),
|
||||
("Variant", "Sorte"),
|
||||
("Attribute", "Attribut"),
|
||||
("Modifiers", "Zu-/Abschläge"),
|
||||
("QualityLevel", "Qualitätsstufe"),
|
||||
("GradationOe", "°Oe"),
|
||||
("GradationKmw", "°KMW"),
|
||||
("Commitment", "Flächenbindung"),
|
||||
("Oe", "°Oe"),
|
||||
("Kmw", "°KMW"),
|
||||
("Buckets", "Flächenbindung"),
|
||||
("Weight", "Gewicht"),
|
||||
};
|
||||
|
||||
public int MgNr { get; private set; }
|
||||
|
||||
private DeliveryConfirmationData(IEnumerable<DeliveryConfirmationRow> rows, int mgnr) :
|
||||
base("Anl.-Best.", "Anlieferungsbestätigung", rows, _fields) {
|
||||
base("Anl.-Best.", "Anlieferungsbestätigung", rows, _fieldNames) {
|
||||
MgNr = mgnr;
|
||||
}
|
||||
|
||||
@ -61,16 +61,16 @@ namespace Elwig.Models.Dtos {
|
||||
|
||||
public class DeliveryConfirmationRow {
|
||||
|
||||
public string LsNr { get; set; }
|
||||
public int DPNr { get; set; }
|
||||
public string Variant { get; set; }
|
||||
public string? Attribute { get; set; }
|
||||
public string QualityLevel { get; set; }
|
||||
public double Oe { get; set; }
|
||||
public double Kmw { get; set; }
|
||||
public string[] Modifiers { get; set; }
|
||||
public int Weight { get; set; }
|
||||
public (string, int)[] Buckets { get; set; }
|
||||
public string LsNr;
|
||||
public int DPNr;
|
||||
public string Variant;
|
||||
public string? Attribute;
|
||||
public string QualityLevel;
|
||||
public double Oe;
|
||||
public double Kmw;
|
||||
public string[] Modifiers;
|
||||
public int Weight;
|
||||
public (string, int)[] Buckets;
|
||||
|
||||
public DeliveryConfirmationRow(DeliveryPart p) {
|
||||
var d = p.Delivery;
|
||||
|
Reference in New Issue
Block a user