@using GoodWood.Application.DTOs @using GoodWood.Application.Interfaces @inject ISepaExportService SepaExportService SEPA Export Details @if (_loading) { } else if (_exportDetails is not null) { Beschreibung @_exportDetails.Description Einzugsdatum @_exportDetails.RequestedCollectionDate.ToString("dd.MM.yyyy") Erstellt @_exportDetails.CreatedAt.ToString("dd.MM.yyyy HH:mm") Gesamtbetrag @_exportDetails.TotalAmount.ToString("C") Enthaltene Buchungen (@_exportDetails.EntryCount) Datum Person Beschreibung Betrag @context.BookingDate.ToString("dd.MM.yyyy") @context.PersonName @context.Comment @context.Amount.ToString("C") } else if (_error is not null) { @_error } Schließen @code { [CascadingParameter] private IMudDialogInstance? MudDialog { get; set; } [Parameter] public SepaExportDto Export { get; set; } = null!; private SepaExportDto? _exportDetails; private bool _loading = true; private string? _error; protected override async Task OnInitializedAsync() { try { _exportDetails = await SepaExportService.GetByIdAsync(Export.Id); if (_exportDetails is null) { _error = "Export nicht gefunden"; } } catch (Exception ex) { _error = ex.Message; } finally { _loading = false; } } private void Close() => MudDialog?.Close(); }