Files
limanapp/LiMan.UI/Components/CadCamSearchProd.razor
Samuele E. Locatelli 780eef4459 Aggiunta search prodotti
2024-07-12 16:04:41 +02:00

55 lines
1.8 KiB
Plaintext

<div class="card shadow shadow-lg">
<div class="card-header">
<div class="row">
<h3>Prodotti</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>Nome</th>
<th>Numero</th>
<th>Opzione 1</th>
<th>Opzione 2</th>
</tr>
</thead>
<tbody>
@foreach (var item in ListRecords)
{
<tr>
<td>@item.ProductName</td>
<td>@item.ProductNumber</td>
<td>@item.ProductOption1</td>
<td>@item.ProductOption2</td>
</tr>
}
</tbody>
</table>
}
}
</div>
<div class="card-footer">
<DataPager PageSize="numRecord" currPage="currPage" numRecordChanged="setNumRec" numPageChanged="setNumPage" totalCount="totalCount" showLoading="isLoading" />
</div>
</div>