Files
2026-01-28 18:11:55 +01:00

111 lines
6.4 KiB
Plaintext

<div class="modal" tabindex="-1" style="display:block; background-color: rgba(10,10,10,.6);" role="dialog">
<div class="modal-dialog modal-xl">
<div class="modal-content">
<div class="modal-header">
<div class="d-flex justify-content-between w-100">
<div class="px-0 d-flex">
<div class="px-0 fs-5">
<h3>Selezione Materiali</h3>
</div>
<div class="px-0 fs-5">
@if (canSend)
{
<button class="btn btn-lg btn-success mx-2 fs-3 py-0" @onclick="DoSendCalc" title="Invia Richiesta">Invia <i class="fa-solid fa-upload"></i></button>
}
else
{
<button class="btn btn-lg btn-secondary disabled mx-2 fs-3 py-0" title="Invia Richiesta">Invia <i class="fa-solid fa-upload"></i></button>
}
</div>
</div>
<div class="px-0">
<div class="input-group">
<button class="btn btn-lg fs-3 py-0" @onclick="DoClose"><i class="fa-solid fa-xmark" title="Close Preview"></i></button>
</div>
</div>
</div>
</div>
<div class="modal-body">
<div class="row">
<div class="@mainColCss">
@if (isLoading)
{
<LoadingData></LoadingData>
}
else if (ListRecords == null || totalCount == 0)
{
<div class="alert alert-warning fs-4">Nessun record trovato</div>
}
else
{
<table class="table table-sm table-striped mb-0">
<thead>
<tr>
@* <th class="text-nowrap"></th> *@
<th class="text-nowrap">Item</th>
<th class="text-nowrap">Qty</th>
<th class="text-nowrap text-end" style="width: 40%;">
Grezzi
<button class="btn btn-sm btn-success" @onclick="() => DoAddStdSetAll()" title="Aggiungi set standard a tutti"><i class="fa-solid fa-plus"></i> All</button>
</th>
</tr>
</thead>
<tbody>
@foreach (var item in ListRecords)
{
<tr class="@checkSel(item.Key)">
@* <td><button class="btn btn-sm btn-info" @onclick="() => DoSelect(item)"><i class="fa-solid fa-magnifying-glass"></i></button></td> *@
<td class="">@item.Key</td>
<td class="">
@item.Value.Count
<button class="btn btn-sm btn-success" @onclick="() => DoAddStdSet(item)" title="Aggiungi set standard"><i class="fa-solid fa-plus"></i></button>
</td>
<td class="small">
@foreach (var rawMat in item.Value)
{
<div class="input-group input-group-sm" >
<span class="input-group-text">Num</span>
<input class="form-control" placeholder="Indicare Quantit&agrave;" aria-label="Qty" type="number" @bind="@rawMat.Qty">
<span class="input-group-text">Size</span>
<input class="form-control" placeholder="Dimensioni" aria-label="Dimensioni" type="number" @bind="@rawMat.Lenght">
<button class="btn btn-danger" @onclick="() => DoRemoveSize(item.Key, rawMat)"><i class="fa-solid fa-trash"></i></button>
</div>
}
</td>
</tr>
}
</tbody>
@if (totalCount >= numRecord)
{
<tfoot>
<tr>
<td colspan="15">
<EgwCoreLib.Razor.DataPager currPage="@currPage" PageSize="@numRecord" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
</td>
</tr>
</tfoot>
}
</table>
}
</div>
@if (CurrBomItem != null)
{
<div class="col-6 bg-info bg-opacity-25 shadow py-2">
@* <ItemSel SelFilt="CurrFilt" ListItemGroup="ListItemGroup"></ItemSel> *@
@foreach (var item in CurrBomItem.Value.Value)
{
<p>@item.Lenght x @item.Qty</p>
}
</div>
}
</div>
</div>
<div class="modal-footer text-center small">
Per ogni materiale previsto è possibile indicare con quali varianti effettuare il calcolo del file PROD.
</div>
</div>
</div>
</div>