100 lines
5.0 KiB
Plaintext
100 lines
5.0 KiB
Plaintext
<div class="card shadow">
|
|
<div class="card-header">
|
|
@if (CurrRecord == null)
|
|
{
|
|
<b>Applicazioni</b>
|
|
}
|
|
else
|
|
{
|
|
<span>Detail Info: <b>@CurrRecord.CodApp</b> | <span class="small">v.@CurrRecord.VersNumCurrent</span></span>
|
|
}
|
|
</div>
|
|
<div class="card-body">
|
|
@if (isLoading)
|
|
{
|
|
<LoadingData DisplayMode="LoadingData.SpinMode.BounceLine"></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
@if (AppStats == null || AppStats.Count == 0)
|
|
{
|
|
<div class="alert alert-warning">
|
|
Nessun record trovato
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
@if (!HasCodImp)
|
|
{
|
|
<div class="@tblColMain">
|
|
<table class="table table-sm table-striped table-responsive-lg">
|
|
<thead>
|
|
|
|
<tr>
|
|
<th><button class="btn btn-primary btn-sm" @onclick="() => DoSelect(null)"><i class="fa-solid fa-rotate"></i></button></th>
|
|
<th>
|
|
Applicazione
|
|
<Sorter ParamName="CodApp" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
@if (CurrRecord == null)
|
|
{
|
|
<th class="text-end">
|
|
# Copie
|
|
<Sorter ParamName="NumInst" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th class="text-end">
|
|
# Licenze
|
|
<Sorter ParamName="NumImp" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th class="text-end">
|
|
Versione
|
|
<Sorter ParamName="VersNumCurrent" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th class="text-end ms-1">
|
|
Stato
|
|
<Sorter ParamName="UpdateScore" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecord)
|
|
{
|
|
<tr class="@checkSelect(record.CodApp)">
|
|
<td>
|
|
<button class="btn btn-info btn-sm" @onclick="() => DoSelect(record)"><i class="fa-solid fa-magnifying-glass"></i></button>
|
|
</td>
|
|
<td>@record.CodApp</td>
|
|
@if (CurrRecord == null)
|
|
{
|
|
<td class="text-end">@record.NumInst</td>
|
|
<td class="text-end">@record.NumImp</td>
|
|
<td class="text-end">@record.VersNumCurrent</td>
|
|
<td class="ms-1">
|
|
<InstUp2DateDispl CurrRecord="record"></InstUp2DateDispl>
|
|
</td>
|
|
}
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
@if (CurrRecord != null)
|
|
{
|
|
<div class="@tblColDet">
|
|
<InstAppPareto CurrRecord="CurrRecord" AppDetList="AppRelList"></InstAppPareto>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
<div class="card-footer">
|
|
@if (totalCount > numRecord)
|
|
{
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="setNumRec" numPageChanged="setNumPage" totalCount="totalCount" showLoading="isLoading" />
|
|
}
|
|
</div>
|
|
</div> |