Improve keyuser export workflow

This commit is contained in:
2026-05-20 09:52:55 +02:00
parent b5e0545fbf
commit a1fdea56ba
10 changed files with 409 additions and 4 deletions
@@ -96,7 +96,7 @@ public class ExportOrchestrationService
lock (_lock)
{
if (_runningExports.ContainsKey(site.Id)) return null;
_runningExports[site.Id] = "HANA Abfrage...";
_runningExports[site.Id] = BuildInitialExportStatus(site);
}
NotifyChanged();
@@ -134,6 +134,17 @@ public class ExportOrchestrationService
OnExportStatusChanged?.Invoke();
}
private static string BuildInitialExportStatus(Site site)
{
var sourceSystem = (site.SourceSystem ?? string.Empty).Trim().ToUpperInvariant();
return sourceSystem switch
{
"MANUAL_EXCEL" => "Manuelle Excel/CSV lesen...",
"SAP" => "SAP OData lesen...",
_ => "Quelldaten lesen..."
};
}
private async Task<string?> RunConsolidatedExportAsync()
{
lock (_lock)