[성현모] TestList 조회 페이지 개선

This commit is contained in:
SHM
2025-09-17 16:44:33 +09:00
parent bdde95386f
commit a1a6759ea6
5 changed files with 154 additions and 30 deletions

View File

@ -4,12 +4,104 @@
@page "/testlist/{ProductNo}/{TestCode}/{StepVersion}"
@inject CPXV2LogService CPXV2LogService
<RadzenStack Style="height:80vh;">
<TraGrid TDataModel="VRFY_TestListFileRelease" DataList="@GetTestList.TestListFile"
HostColumnMerge="false">
</TraGrid>
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start" class="rz-p-2">
<RadzenStack Style="font-size: 1.5rem; height:90vh;">
<TitleCard HeaderText="Test List" ContentsHeight="inherits;" CardStyle="overflow-y:auto;overflow-x:hidden;">
<RadzenStack Style="width:40rem;" class="rz-p-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
@if(GetTestList?.StorTestListFile is not null)
{
<RadzenStack Style="width:40rem;">
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="TestListFileName"></RadzenLabel>
<BlockLabel Text="@GetTestList.StorTestListFile.FileName"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="TestListFileNo"></RadzenLabel>
<BlockLabel Text="@GetTestList.StorTestListFile.No.ToString()"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="TestType"></RadzenLabel>
<BlockLabel Text="@GetTestList.StorTestListFile.TestType"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="TestType"></RadzenLabel>
<BlockLabel Text="@GetTestList.StorTestListFile.Version"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="TestType"></RadzenLabel>
<BlockLabel Text="@GetTestList.StorTestListFile.ProdCode"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="Description"></RadzenLabel>
<BlockLabel Text="@GetTestList.StorTestListFile.Description"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="ProductGroupName"></RadzenLabel>
<BlockLabel Text="@GetTestList.ProdGroup.GroupName"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="ProductModelName"></RadzenLabel>
<BlockLabel Text="@GetTestList.ProdGroup.ModelName"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="ProductNo"></RadzenLabel>
<BlockLabel Text="@GetTestList.ProdRelease.ProdNo_C"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="TestCode"></RadzenLabel>
<BlockLabel Text="@($"{GetTestList.StatTestCode.TestCode} ({GetTestList.StatTestCode.No})")"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="ParentNo"></RadzenLabel>
<BlockLabel Text="@($"{GetTestList.ProdVariant.ProdNo_P}")"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="VariantNo"></RadzenLabel>
<BlockLabel Text="@GetTestList.ProdRelease.VariantNo.ToString()"></BlockLabel>
</RadzenStack>
<RadzenStack class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<RadzenLabel Text="StepVersion"></RadzenLabel>
<BlockLabel Text="@StepVersion"></BlockLabel>
</RadzenStack>
</RadzenStack>
}
else
{
<RadzenStack Style="width:40rem;">
<RadzenStack Style="color:red;" class="rz-border-bottom rz-p-1 rz-pb-2" Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Start">
<BlockLabel Text="Can't find TestList."></BlockLabel>
<BlockLabel Text="Check TestList parameters."></BlockLabel>
<br />
<BlockLabel Text="@($"ProductNo: {ProductNo}")"></BlockLabel>
<BlockLabel Text="@($"TestCode: {TestCode}")"></BlockLabel>
<BlockLabel Text="@($"StepVersion: {StepVersion}")"></BlockLabel>
</RadzenStack>
</RadzenStack>
}
</RadzenStack>
</TitleCard>
</RadzenStack>
<RadzenStack Style="height:90vh;" class="rz-pb-3">
<TraGrid TDataModel="VRFY_TestListFileRelease" DataList="@GetTestList.TestListFile"
HostColumnMerge="false">
</TraGrid>
</RadzenStack>
</RadzenStack>
@code {
[Parameter]
public string ProductNo { get; set; }