EKÁER grid: status enum fix, batch create, UI/UX, DB guard
- 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
This commit is contained in:
parent
04f0d7d3e3
commit
7c47d212f2
|
|
@ -256,12 +256,19 @@ public partial class MgGridInfoPanel : ComponentBase, IAsyncDisposable, IInfoPan
|
||||||
return displayText;
|
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))
|
if (!string.IsNullOrEmpty(column.DisplayFormat))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (column.DisplayFormat.Contains("{0"))
|
||||||
return string.Format(column.DisplayFormat, value);
|
return string.Format(column.DisplayFormat, value);
|
||||||
|
|
||||||
|
if (value is IFormattable formattable)
|
||||||
|
return formattable.ToString(column.DisplayFormat, null);
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue