diverse Aenderungen
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace TrafagSalesExporter.Models;
|
||||
|
||||
public class AppEventLog
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
public string Level { get; set; } = "Info";
|
||||
public string Category { get; set; } = string.Empty;
|
||||
public int? SiteId { get; set; }
|
||||
public string Land { get; set; } = string.Empty;
|
||||
public string Message { get; set; } = string.Empty;
|
||||
public string Details { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -30,6 +30,9 @@ public class ConfigTransferExportSettings
|
||||
public int TimerHour { get; set; } = 3;
|
||||
public int TimerMinute { get; set; }
|
||||
public bool TimerEnabled { get; set; } = true;
|
||||
public bool DebugLoggingEnabled { get; set; }
|
||||
public string LocalSiteExportFolder { get; set; } = string.Empty;
|
||||
public string LocalConsolidatedExportFolder { get; set; } = string.Empty;
|
||||
public string? SapUsername { get; set; }
|
||||
public string? SapPassword { get; set; }
|
||||
public string? Bi1Username { get; set; }
|
||||
@@ -62,6 +65,7 @@ public class ConfigTransferSite
|
||||
public string SourceSystem { get; set; } = "SAP";
|
||||
public string? UsernameOverride { get; set; }
|
||||
public string? PasswordOverride { get; set; }
|
||||
public string LocalExportFolderOverride { get; set; } = string.Empty;
|
||||
public string SapServiceUrl { get; set; } = string.Empty;
|
||||
public string SapEntitySet { get; set; } = string.Empty;
|
||||
public string SapEntitySetsCache { get; set; } = string.Empty;
|
||||
|
||||
@@ -17,5 +17,6 @@ public class ExportLog
|
||||
public int RowCount { get; set; }
|
||||
public string? ErrorMessage { get; set; }
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
public string FilePath { get; set; } = string.Empty;
|
||||
public double DurationSeconds { get; set; }
|
||||
}
|
||||
|
||||
@@ -7,6 +7,9 @@ public class ExportSettings
|
||||
public int TimerHour { get; set; } = 3;
|
||||
public int TimerMinute { get; set; }
|
||||
public bool TimerEnabled { get; set; } = true;
|
||||
public bool DebugLoggingEnabled { get; set; }
|
||||
public string LocalSiteExportFolder { get; set; } = string.Empty;
|
||||
public string LocalConsolidatedExportFolder { get; set; } = string.Empty;
|
||||
public string SapUsername { get; set; } = string.Empty;
|
||||
public string SapPassword { get; set; } = string.Empty;
|
||||
public string Bi1Username { get; set; } = string.Empty;
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
namespace TrafagSalesExporter.Models;
|
||||
|
||||
public class ManagementCockpitFileOption
|
||||
{
|
||||
public string Path { get; set; } = string.Empty;
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
public DateTime LastModified { get; set; }
|
||||
}
|
||||
|
||||
public class ManagementCockpitSummary
|
||||
{
|
||||
public string Land { get; set; } = string.Empty;
|
||||
public string Tsc { get; set; } = string.Empty;
|
||||
public DateTime? ExtractionDate { get; set; }
|
||||
public int RowCount { get; set; }
|
||||
public int InvoiceCount { get; set; }
|
||||
public int CustomerCount { get; set; }
|
||||
public decimal SalesValueTotal { get; set; }
|
||||
public decimal EstimatedCostTotal { get; set; }
|
||||
public decimal EstimatedMarginTotal { get; set; }
|
||||
public decimal EstimatedMarginPercent { get; set; }
|
||||
public decimal ServiceSharePercent { get; set; }
|
||||
public decimal MissingOrderDatePercent { get; set; }
|
||||
public decimal MissingSupplierPercent { get; set; }
|
||||
}
|
||||
|
||||
public class ManagementCockpitFinding
|
||||
{
|
||||
public string Severity { get; set; } = "Info";
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class ManagementCockpitTopItem
|
||||
{
|
||||
public string Label { get; set; } = string.Empty;
|
||||
public decimal Value { get; set; }
|
||||
public decimal SharePercent { get; set; }
|
||||
}
|
||||
|
||||
public class ManagementCockpitResult
|
||||
{
|
||||
public string FilePath { get; set; } = string.Empty;
|
||||
public ManagementCockpitSummary Summary { get; set; } = new();
|
||||
public List<ManagementCockpitFinding> Findings { get; set; } = [];
|
||||
public List<ManagementCockpitTopItem> TopCustomers { get; set; } = [];
|
||||
public List<ManagementCockpitTopItem> TopProductGroups { get; set; } = [];
|
||||
public List<ManagementCockpitTopItem> TopSalesEmployees { get; set; } = [];
|
||||
public Dictionary<string, int> DataQualityCounts { get; set; } = new(StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
@@ -27,6 +27,7 @@ public class Site
|
||||
public string UsernameOverride { get; set; } = string.Empty;
|
||||
|
||||
public string PasswordOverride { get; set; } = string.Empty;
|
||||
public string LocalExportFolderOverride { get; set; } = string.Empty;
|
||||
|
||||
public string SapServiceUrl { get; set; } = string.Empty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user