Files
limanapp/LiMan.UI/Components/CadCamSearchKey.razor
Samuele E. Locatelli 9163841613 Update grafici pagina keys
2024-07-12 15:55:25 +02:00

55 lines
1.8 KiB
Plaintext

<div class="card shadow shadow-lg">
<div class="card-header">
<div class="row">
<h3>Chiavi</h3>
</div>
</div>
<div class="card-body px-2">
@if (isLoading)
{
<LoadingData></LoadingData>
}
@if (AllRecords == null || AllRecords.Count == 0)
{
<div class="alert alert-warning">No record to search</div>
}
else
{
if (string.IsNullOrEmpty(searchVal))
{
<div class="alert alert-info text-center mb-0">
<b>@AllRecords.Count</b> Records found
</div>
}
else
{
<table class="table table-sm table-striped table-responsive-lg">
<thead>
<tr>
<th>Numero</th>
<th>Seriale</th>
<th>Data</th>
<th>Note</th>
</tr>
</thead>
<tbody>
@foreach (var item in ListRecords)
{
<tr>
<td>@item.Number</td>
<td>@item.Seriale</td>
<td>@($"{item.Date:yyyy.MM.dd}")</td>
<td>@item.Note</td>
</tr>
}
</tbody>
</table>
}
}
</div>
<div class="card-footer">
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="setNumRec" numPageChanged="setNumPage" totalCount="totalCount" showLoading="isLoading" />
</div>
</div>