Files
Samuele Locatelli 5d72d21fb1 Stat installazioni:
Update gestione paginazione (visibile solo dove serve) + fix calcolo di alcuni intems male filtrati
2025-04-03 17:47:31 +02:00

95 lines
3.9 KiB
Plaintext

@using LiMan.UI.Components
<div class="card">
<div class="card-header">
<div class="d-flex justify-content-between">
<div class="px-2">
<h3>Elenco Clienti/Programmi</h3>
</div>
<div class="px-2">
<div class="input-group input-group-sm" title="Periodo Selezionato">
<span class="input-group-text">
Da
</span>
<input type="date" @bind="@DtFrom" class="form-control" />
<span class="input-group-text">
A
</span>
<input type="date" @bind="@DtTo" class="form-control" />
</div>
</div>
</div>
</div>
<div class="card-body">
@if (ListRecords == null)
{
<LoadingData></LoadingData>
}
else if (totalCount == 0)
{
<div class="alert alert-warning text-center display-4">Nessun record trovato</div>
}
else
{
<div class="row">
<div class="col-12">
<table class="table table-sm table-striped table-responsive-lg">
<thead>
<tr>
<th>
<button type="button" class="btn btn-sm btn-primary" @onclick="() => FullReload()"><i class="fas fa-sync"></i></button>
</th>
<th>Anno</th>
<th>Codice</th>
<th>App</th>
<th class="text-end"># Call</th>
</tr>
</thead>
<tbody>
@foreach (var record in ListRecords)
{
<tr class="@checkSelect(record)">
<td class="text-nowrap">
@if (currRecord == null)
{
<button class="btn btn-sm btn-primary" @onclick="() => Select(record)" title="Edit record">
<i class="fas fa-search"></i>
</button>
}
else
{
<button class="btn btn-sm btn-secondary disabled">
<i class="fas fa-search"></i>
</button>
}
</td>
<td>
<b>@record.YearRef</b>
</td>
<td>
<b>@record.CodInst</b>
</td>
<td>
<b>@record.CodApp</b>
</td>
<td class="text-end">
<div>@record.TotCall</div>
</td>
</tr>
}
</tbody>
</table>
</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>