@page "/layers/{id:guid}" @using DiunaBI.UI.Shared.Services @using DiunaBI.Application.DTOModels @using MudBlazor Layer Details @if (layer != null && layer.Type == LayerType.Administration && IsWorkerLayer()) { @if (isRunningJob) { Creating Job... } else { Run Now } } Back to List @if (isLoading) { } else if (layer == null) { Layer not found } else { @if (layer.IsCancelled) { This layer is cancelled. Will not be used in any further processing. } Code @foreach (var column in displayedColumns) { @column } @if (isEditable) { Actions } @if (editingRecordId == context.Id) { @foreach (var column in displayedColumns) { @if (column == "Description1") { } else { @GetRecordValue(context, column) } } } else { @context.Code @foreach (var column in displayedColumns) { @GetRecordValue(context, column) } @if (isEditable) { } } @if (showSummary) { @totalSum.ToString("N2") @foreach (var column in displayedColumns) { @if (column.StartsWith("Value") && columnSums.ContainsKey(column)) { @columnSums[column].ToString("N2") } else { } } @if (isEditable) { } } @if (isEditable) { @if (isAddingNew) { Save Cancel } else { Add New Record } } @if (showHistoryTab) { @if (isLoadingHistory) { } else if (selectedRecordForHistory != null || selectedDeletedRecordForHistory != null) { History for Record: @if (selectedDeletedRecordForHistory != null) { @selectedDeletedRecordForHistory.Code (Deleted) } else { @selectedRecordForHistory?.Code } Back to list @if (!recordHistory.Any()) { No history available for this record. } else { @foreach (var history in recordHistory) { @history.ChangedAt.ToString("g") @history.ChangeType by @history.ChangedByName @history.FormattedChange } } } else { Active Records Select a record to view its history: Code Description Modified Modified By @context.Code @context.Desc1 @context.ModifiedAt.ToString("g") @GetModifiedByUsername(context.ModifiedById) Deleted Records Select a deleted record to view its history: @if (deletedRecords.Any()) { Code Description Deleted Deleted By @context.Code @context.Desc1 @context.DeletedAt.ToString("g") @context.DeletedByName } else { No deleted records found. } } } }