SOPEC:
- aggiunto visualizzazione dettaglio KIT
This commit is contained in:
@@ -14,9 +14,67 @@
|
||||
}
|
||||
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>
|
||||
@@ -26,21 +84,24 @@
|
||||
<tbody>
|
||||
@foreach (var record in ListRecScore)
|
||||
{
|
||||
<tr>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -34,6 +34,16 @@ namespace MP.SPEC.Components.ProdKit
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
private bool doShowDetail = false;
|
||||
private string CodArtParent = "";
|
||||
|
||||
protected void KitToggleDetail(TksScoreModel? currRec)
|
||||
{
|
||||
CodArtParent = currRec != null ? currRec.CodArtParent : "";
|
||||
doShowDetail = !doShowDetail;
|
||||
}
|
||||
|
||||
|
||||
#region Protected Methods
|
||||
|
||||
protected override void OnParametersSet()
|
||||
|
||||
Reference in New Issue
Block a user