[성현모] DB 예외처리 추가, UI 사이즈 조정

This commit is contained in:
SHM
2025-09-02 11:50:01 +09:00
parent 2cb56154e5
commit 978e4faadc
13 changed files with 235 additions and 45 deletions

View File

@ -2,7 +2,7 @@
@inject ContextMenuService ContextMenuService
<RadzenDataGrid TItem="TDataModel" Data="@DataList" AllowPaging PageSize="100"
<RadzenDataGrid Style="height:calc(100vh - 23rem); font-size: 20px;" TItem="TDataModel" Data="@DataList" AllowPaging PageSize="100"
AllowFiltering FilterMode="FilterMode.Advanced" CellRender="@CellRender"
SelectionMode="DataGridSelectionMode.Single" @bind-Value="@SelectedRow"
CellContextMenu="@OnCellContextMenu" RowSelect="@SelectRow">
@ -25,8 +25,10 @@
if (col.Name.ToLower().Equals("testdate"))
{
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
<Template>
@Convert.ToDateTime(col.GetValue(context)).ToString("yyyy-MM-dd")
<Template>
<span class="custom-rz-value rz-color-secondary">
@Convert.ToDateTime(col.GetValue(context)).ToString("yyyy-MM-dd")
</span>
</Template>
</RadzenDataGridColumn>
}
@ -34,9 +36,9 @@
{
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
<Template>
<RadzenText Style="color: lime;">
<span class="custom-rz-value" style="color: lime;">
@col.GetValue(context)
</RadzenText>
</span>
</Template>
</RadzenDataGridColumn>
}
@ -44,15 +46,20 @@
{
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
<Template>
<RadzenText Style="color:red;">
<span class="custom-rz-value" style="color:red;">
@col.GetValue(context)
</RadzenText>
</span>
</Template>
</RadzenDataGridColumn>
}
else
{
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
<Template>
<span class="custom-rz-value">
@col.GetValue(context)
</span>
</Template>
</RadzenDataGridColumn>
}
}

View File

@ -0,0 +1,3 @@
.custom-rz-value {
font-size: 1.5rem !important;
}