122 lines
7.5 KiB
Plaintext
122 lines
7.5 KiB
Plaintext
@using SystemX.Core.DB
|
|
@using Web.Tra.Services
|
|
|
|
@page "/testlist/{ProductNo}/{TestCode}/{StepVersion}"
|
|
@inject CPXV2LogService CPXV2LogService
|
|
|
|
<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; }
|
|
|
|
[Parameter]
|
|
public string TestCode { get; set; }
|
|
|
|
[Parameter]
|
|
public string StepVersion { get; set; }
|
|
|
|
private TestList GetTestList = new TestList();
|
|
|
|
protected override async Task OnParametersSetAsync()
|
|
{
|
|
GetTestList = await CPXV2LogService?.GetTestList(ProductNo, TestCode, Convert.ToInt32(StepVersion));
|
|
}
|
|
}
|