Files

69 lines
2.3 KiB
Plaintext

@if (isLoading || ListRecords == null)
{
<LoadingData></LoadingData>
}
else if (totalCount == 0)
{
<div class="alert alert-info text-center display-4">Nessun record trovato</div>
}
else
{
if (selRecord != null)
{
<i>chiedo quantita</i>
}
<table class="table table-sm table-striped mb-0">
<thead>
<tr>
<th>ID</th>
<th>Gruppo</th>
<th>Codice</th>
<th class="text-end">Qty Range</th>
<th class="text-end">UM</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in ListRecords)
{
<tr>
<td>@item.ItemID</td>
<td>
@if (item.ItemGroupNav != null)
{
@item.ItemGroupNav.Description
}
else
{
@item.CodGroup
}
</td>
<td>@item.ExtItemCode</td>
<td class="text-end text-nowrap">
@if (!item.IsOkQty)
{
<span class="text-warning me-2" title="Range Qty non corretto"><i class="fa-solid fa-triangle-exclamation"></i></span>
}
<span>@item.QtyMin.ToString("F1") &harr; @item.QtyMax.ToString("F1")</span>
</td>
<td class="text-end">@item.UM</td>
<td class="text-end">
<button class="btn btn-sm btn-primary" @onclick="() => DoSelect(item)"><i class="fa-solid fa-plus"></i></button>
</td>
</tr>
}
</tbody>
<tfoot>
@if (totalCount > numRecord || true)
{
<tr>
<td colspan="6">
<EgwCoreLib.Razor.DataPager currPage="@currPage" PageSize="@numRecord" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
</td>
</tr>
}
</tfoot>
</table>
}