101 lines
4.1 KiB
Plaintext
101 lines
4.1 KiB
Plaintext
<div class="card shadow">
|
|
<div class="card-header bg-success text-light">
|
|
<div class="d-flex justify-content-between">
|
|
<div class="px-0">
|
|
<h4>Verifica KIT</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<b>Elenco Template KIT compatibili</b>
|
|
@if (ListRecScore == null || ListRecScore.Count == 0)
|
|
{
|
|
<div class="alert bg-warning bg-opacity-25 fw-bold text-center">Nessun KIT compatibile trovato!</div>
|
|
}
|
|
else
|
|
{
|
|
@if (doShowDetail)
|
|
{
|
|
<KitDetailModal ListTK="@ListKitTemplate" ListPODL="@ListRecKitPODL" EC_Close="() => KitToggleDetail(null)"></KitDetailModal>
|
|
}
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Cod Kit</th>
|
|
<th># OK</th>
|
|
<th>Coerenza</th>
|
|
<th>Azione</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecScore)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<button class="btn btn-sm btn-info" @onclick="() => KitToggleDetail(record)" title="Mostra dettaglio"><i class="fa-solid fa-search"></i></button>
|
|
</td>
|
|
<td>@record.CodArtParent</td>
|
|
<td>@record.ChildFound / @numRecWsm</td>
|
|
<td>@($"{record.TotalScore:P2}")</td>
|
|
<td>
|
|
@if (record.TotalScore == 1 && numRecWsm == record.ChildFound)
|
|
{
|
|
<button @onclick="() => DoCreatePOdl(record)" class="btn btn-success btn-sm"><i class="fa-solid fa-plus"></i> Prom ODL</button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-secondary disabled btn-sm"><i class="fa-solid fa-plus"></i> Prom ODL</button>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
<div runat="server" id="divPODL">
|
|
<b>Elenco promesse per KIT (100%)</b>
|
|
@if (ListRecPODL == null || ListRecPODL.Count == 0)
|
|
{
|
|
<div class="alert bg-success bg-opacity-25 fw-bold text-center">Nessuna PODL compatibile presente</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Cod Kit</th>
|
|
<th>Nome</th>
|
|
<th>Qty</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListRecPODL)
|
|
{
|
|
<tr>
|
|
<td>@record.IdxPromessa</td>
|
|
<td class="d-flex justify-content-between">
|
|
<div class="px-0 fw-bold">@record.CodArticolo</div>
|
|
<div class="px-0">@record.DescArticolo</div>
|
|
<div class="px-0">@record.KeyRichiesta</div>
|
|
</td>
|
|
<td>
|
|
<b>@record.IdxMacchina</b>
|
|
<small>@record.CodMacchina</small>
|
|
</td>
|
|
<td>@record.NumPezzi</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="card-footer py-1 bg-success text-light">
|
|
TempKey: <b>@KeyFilt</b> | Abilitato se = 100%
|
|
</div>
|
|
</div>
|
|
|
|
|