Add manual Excel column mapping

This commit is contained in:
2026-05-04 16:08:56 +02:00
parent 749a3209d9
commit c862a559f6
23 changed files with 1523 additions and 182 deletions
@@ -10,6 +10,7 @@ public class ExportOrchestrationService
private readonly ISiteExportService _siteExportService;
private readonly IConsolidatedExportService _consolidatedExportService;
private readonly IExportLogService _exportLogService;
private readonly IAppEventLogService _appEventLogService;
public event Action? OnExportStatusChanged;
@@ -22,12 +23,14 @@ public class ExportOrchestrationService
IDbContextFactory<AppDbContext> dbFactory,
ISiteExportService siteExportService,
IConsolidatedExportService consolidatedExportService,
IExportLogService exportLogService)
IExportLogService exportLogService,
IAppEventLogService appEventLogService)
{
_dbFactory = dbFactory;
_siteExportService = siteExportService;
_consolidatedExportService = consolidatedExportService;
_exportLogService = exportLogService;
_appEventLogService = appEventLogService;
}
public bool IsExporting(int siteId)
@@ -152,6 +155,11 @@ public class ExportOrchestrationService
{
return await _consolidatedExportService.ExportAsync(records ?? []);
}
catch (Exception ex)
{
await _appEventLogService.WriteAsync("Export", "Zentrale Datei fehlgeschlagen", "Error", details: ex.ToString());
return null;
}
finally
{
lock (_lock)