Files
lux/Lux.UI/Components/Compo/WorkLoad/ItemSel.razor
T
2026-06-05 12:25:03 +02:00

71 lines
2.4 KiB
Plaintext

@inherits BaseComp
@if (isLoading || ListRecords == null)
{
<LoadingData></LoadingData>
}
else if (totalCount == 0)
{
<div class="alert alert-info text-center display-4">@Traduci("noRecord")</div>
}
else
{
if (selRecord != null)
{
<i>@Traduci("caricoMac_chiedoQty")</i>
}
<table class="table table-sm table-striped mb-0">
<thead>
<tr>
<th>@Traduci("id")</th>
<th>@Traduci("gruppo")</th>
<th>@Traduci("codice")</th>
<th class="text-end">@Traduci("caricoMac_qtyRange")</th>
<th class="text-end">@Traduci("unitaMisura")</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="@Traduci("articoli_sbagliatoRangeQty")"><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>
}