5d72d21fb1
Update gestione paginazione (visibile solo dove serve) + fix calcolo di alcuni intems male filtrati
96 lines
4.8 KiB
Plaintext
96 lines
4.8 KiB
Plaintext
<div class="row p-0">
|
|
<div class="@CssDivMain px-1">
|
|
<div class="card shadow">
|
|
<div class="card-header">
|
|
<div class="text-end">Vers. Corrente: <b>@CurrRecord.VersNumCurrent</b></div>
|
|
</div>
|
|
<div class="card-body p-1">
|
|
<table class="table table-sm table-striped table-responsive-lg small">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<button class="btn btn-sm btn-dark @CssResetCli" title="Rimuovi Filtro Cliente" @onclick="ResetCliente"><i class="fa-solid fa-rotate-right"></i> Cliente</button>
|
|
<Sorter ParamName="CodInst" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th>
|
|
<button class="btn btn-sm btn-primary @CssResetImp" title="Rimuovi Filtro Dispositivo" @onclick="ResetCodImp"><i class="fa-solid fa-rotate-right"></i> Dispositivo</button>
|
|
<Sorter ParamName="PcInst" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
@if (!HasFiltImp)
|
|
{
|
|
<th>
|
|
# Lic.
|
|
<Sorter ParamName="NumImp" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
<th class="text-end">
|
|
Versione
|
|
<Sorter ParamName="VersNumInstall" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter>
|
|
</th>
|
|
}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecord)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<button class="btn btn-sm @CssBtnInst(record.CodInst) py-1 text-truncate" title="Fissa Cliente" @onclick="() => SetCliente(record)"><i class="fa-solid fa-location-crosshairs"></i> @record.Cliente</button>
|
|
</td>
|
|
<td>
|
|
<button class="btn btn-sm @CssBtnImp(record.CodImp) py-1 text-truncate" title="Fissa Dispositivo" @onclick="() => SetCodImp(record)"><i class="fa-solid fa-location-crosshairs"></i> @record.PcInst</button>
|
|
|
|
</td>
|
|
@if (!HasFiltImp)
|
|
{
|
|
<td>@record.NumImp</td>
|
|
<td class="text-end @cssVers(record)">@record.VersNumInstall</td>
|
|
}
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="card-footer">
|
|
@if (totalCount > numRecord)
|
|
{
|
|
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="setNumRec" numPageChanged="setNumPage" totalCount="totalCount" showLoading="isLoading" />
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="@CssDivDetail px-2">
|
|
@if (HasFiltImp)
|
|
{
|
|
<div class="row">
|
|
<div class="col-5 px-1">
|
|
<div class="mb-1">
|
|
<ListAppShort AppList="AppInstList" EC_ReqUpdateApp="ProcReqUpdate"></ListAppShort>
|
|
</div>
|
|
<div class="mb-1">
|
|
<ListInfoShort Title="License Data" DetailInfo="LicInfo" EnabAbbrev="true" MaxKeyChar="30"></ListInfoShort>
|
|
</div>
|
|
</div>
|
|
<div class="col-7 px-1">
|
|
<div class="mb-1">
|
|
<ListInfoShort Title="Device Info" DetailInfo="DevInfo"></ListInfoShort>
|
|
</div>
|
|
<div class="mb-1">
|
|
<ListInfoShort Title="Updater Stats" DetailInfo="RunStats"></ListInfoShort>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="card shadow">
|
|
<div class="card-header">
|
|
<b>Distribuzione</b>
|
|
</div>
|
|
<div class="card-body px-1 py-3">
|
|
<Doughnut Id="RelVers" Type="@Doughnut.ChartType.Doughnut" Data="@ChartData" Labels="ChartLabels" BackgroundColor="@ChartColor" BordWidth="1"></Doughnut>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|