Add manual Excel column mapping
This commit is contained in:
@@ -14,6 +14,7 @@ public class CentralSalesRecord
|
||||
public string SourceSystem { get; set; } = string.Empty;
|
||||
public DateTime ExtractionDate { get; set; }
|
||||
public string Tsc { get; set; } = string.Empty;
|
||||
public int DocumentEntry { get; set; }
|
||||
public string InvoiceNumber { get; set; } = string.Empty;
|
||||
public int PositionOnInvoice { get; set; }
|
||||
public string Material { get; set; } = string.Empty;
|
||||
|
||||
@@ -15,6 +15,7 @@ public class ConfigTransferPackage
|
||||
public List<ConfigTransferSapSourceDefinition> SapSourceDefinitions { get; set; } = [];
|
||||
public List<ConfigTransferSapJoinDefinition> SapJoinDefinitions { get; set; } = [];
|
||||
public List<ConfigTransferSapFieldMapping> SapFieldMappings { get; set; } = [];
|
||||
public List<ConfigTransferManualExcelColumnMapping> ManualExcelColumnMappings { get; set; } = [];
|
||||
}
|
||||
|
||||
public class ConfigTransferSourceSystemDefinition
|
||||
@@ -124,3 +125,13 @@ public class ConfigTransferSapFieldMapping
|
||||
public bool IsActive { get; set; } = true;
|
||||
public int SortOrder { get; set; }
|
||||
}
|
||||
|
||||
public class ConfigTransferManualExcelColumnMapping
|
||||
{
|
||||
public string SiteKey { get; set; } = string.Empty;
|
||||
public string TargetField { get; set; } = string.Empty;
|
||||
public string SourceHeader { get; set; } = string.Empty;
|
||||
public bool IsRequired { get; set; }
|
||||
public bool IsActive { get; set; } = true;
|
||||
public int SortOrder { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace TrafagSalesExporter.Models;
|
||||
|
||||
public class ManualExcelColumnMapping
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public int SiteId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(SiteId))]
|
||||
public Site? Site { get; set; }
|
||||
|
||||
[Required]
|
||||
public string TargetField { get; set; } = nameof(SalesRecord.Material);
|
||||
|
||||
[Required]
|
||||
public string SourceHeader { get; set; } = string.Empty;
|
||||
|
||||
public bool IsRequired { get; set; }
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
public int SortOrder { get; set; }
|
||||
}
|
||||
@@ -4,6 +4,7 @@ public class SalesRecord
|
||||
{
|
||||
public DateTime ExtractionDate { get; set; }
|
||||
public string Tsc { get; set; } = string.Empty;
|
||||
public int DocumentEntry { get; set; }
|
||||
public string InvoiceNumber { get; set; } = string.Empty;
|
||||
public int PositionOnInvoice { get; set; }
|
||||
public string Material { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user