From 7c47d212f2f7d60da2fb0ba813402083a4bcbe96 Mon Sep 17 00:00:00 2001 From: Loretta Date: Thu, 11 Jun 2026 08:52:09 +0200 Subject: [PATCH] =?UTF-8?q?EK=C3=81ER=20grid:=20status=20enum=20fix,=20bat?= =?UTF-8?q?ch=20create,=20UI/UX,=20DB=20guard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixed EkaerHistory status persistence (int+enum wrapper for linq2db) - Added batch EKÁER record creation (toolbar date picker, SignalR, UI) - Enhanced GridEkaerHistory: status, error, XML copy, manual edit - Improved column display format handling in MgGridInfoPanel - Updated SignalR binary protocol streaming strategy doc - Added DB guard PowerShell hook: blocks non-_DEV DB shell access - New styles for EKÁER toolbar date picker --- .../Components/Grids/MgGridInfoPanel.razor.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/AyCode.Blazor.Components/Components/Grids/MgGridInfoPanel.razor.cs b/AyCode.Blazor.Components/Components/Grids/MgGridInfoPanel.razor.cs index 731ca78..cc74f16 100644 --- a/AyCode.Blazor.Components/Components/Grids/MgGridInfoPanel.razor.cs +++ b/AyCode.Blazor.Components/Components/Grids/MgGridInfoPanel.razor.cs @@ -256,12 +256,19 @@ public partial class MgGridInfoPanel : ComponentBase, IAsyncDisposable, IInfoPan return displayText; } - // Apply column's DisplayFormat if available + // Apply column's DisplayFormat if available. + // A DxGrid kétféle formátumot fogad: kompozit ("{0:yyyy.MM.dd}") és sima formátum-specifikáló + // ("yyyy.MM.dd HH:mm"). A string.Format csak a kompozitot érti — placeholder nélküli formátumnál + // NEM dob hibát, hanem a format-stringet adja vissza szó szerint, ezért külön ág kell. if (!string.IsNullOrEmpty(column.DisplayFormat)) { try { - return string.Format(column.DisplayFormat, value); + if (column.DisplayFormat.Contains("{0")) + return string.Format(column.DisplayFormat, value); + + if (value is IFormattable formattable) + return formattable.ToString(column.DisplayFormat, null); } catch {