[성현모] TestList 조회 페이지 개선
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
<span style="@($"font-size:1.3rem; width:{MaxWidth}; max-width:{MaxWidth}; display:inline-block;white-space:normal;word-wrap:break-word;")">
|
||||
@Text
|
||||
</span>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public string Text { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string MaxWidth { get; set; }
|
||||
}
|
||||
23
Projects/WebClient/Web.Tra/Components/Module/TitleCard.razor
Normal file
23
Projects/WebClient/Web.Tra/Components/Module/TitleCard.razor
Normal file
@ -0,0 +1,23 @@
|
||||
<RadzenCard Style="@($"height:100%;{CardStyle};")" class="rz-mb-3 rz-p-0">
|
||||
<RadzenStack Style="width:100%; height:2.7rem; background-color:var(--rz-primary-lighter);" class="rz-pl-3">
|
||||
<RadzenLabel class="rz-p-1" Text="@HeaderText">
|
||||
</RadzenLabel>
|
||||
</RadzenStack>
|
||||
<RadzenStack Style="@($"height:{ContentsHeight}")" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
|
||||
@ChildContent
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public RenderFragment? ChildContent { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string HeaderText { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string ContentsHeight { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string CardStyle { get; set; }
|
||||
}
|
||||
@ -18,9 +18,10 @@
|
||||
|
||||
@foreach (var col in typeof(TDataModel).GetProperties())
|
||||
{
|
||||
@* if(DisableColums?.Contains(col.Name.ToLower()) == true)
|
||||
continue; *@
|
||||
|
||||
if (col.Name.ToLower().Contains("navigation") || col.Name.ToLower().Contains("stepversion") || col.Name.ToLower().Contains("isglobal")
|
||||
|| col.Name.ToLower().Contains("updatedt") || col.Name.ToLower().Contains("enable"))
|
||||
continue;
|
||||
|
||||
if (col.Name.ToLower().Equals("testdate"))
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name" Width="10rem">
|
||||
@ -71,6 +72,15 @@
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
else if (col.Name.ToLower().Contains("activate"))
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name" Width="20rem">
|
||||
<Template>
|
||||
<RadzenCheckBox TValue="bool" Value="@Convert.ToBoolean(col.GetValue(context))">
|
||||
</RadzenCheckBox>
|
||||
</Template>
|
||||
</RadzenDataGridColumn>
|
||||
}
|
||||
else
|
||||
{
|
||||
<RadzenDataGridColumn Property="@col.Name" Title="@col.Name">
|
||||
|
||||
Reference in New Issue
Block a user