99a2aae3ed
-riporto a 2 decimali la % affinità/score x KIT
154 lines
7.1 KiB
Plaintext
154 lines
7.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)
|
|
{
|
|
<dialog class="modal fade show" tabindex="-1" style="display:block; background-color: rgba(10,10,10,.6);" aria-modal="true" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content p-2">
|
|
<div class="modal-title d-flex justify-content-between">
|
|
<div class="px-0">
|
|
<h4>Dettaglio KIT <b>@CodArtParent</b></h4>
|
|
</div>
|
|
<div class="px-0">
|
|
<button class="btn btn-outline-dark" @onclick="() => KitToggleDetail(null)"><i class="fa-solid fa-xmark"></i></button>
|
|
</div>
|
|
</div>
|
|
<div class="modal-body p-1">
|
|
@if (ListKitTemplate == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (totalKitCount == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-4">
|
|
Nessun record trovato
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><i class="fa-solid fa-sitemap"></i> Cod Kit (Parent)</th>
|
|
<th><i class="fa-solid fa-file"></i> Articolo (Child)</th>
|
|
<th class="text-end"><i class="fa-solid fa-hashtag"></i> Art/Kit Qty</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListKitTemplate)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@record.CodArtParent
|
|
</td>
|
|
<td>
|
|
@record.CodArtChild
|
|
</td>
|
|
<td class="text-end">
|
|
<div>@record.Qty</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</dialog>
|
|
}
|
|
<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>
|
|
|
|
|