133 lines
5.2 KiB
Plaintext
133 lines
5.2 KiB
Plaintext
<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 shadow shadow-lg">
|
|
<div class="modal-content p-2">
|
|
<div class="modal-title d-flex justify-content-between">
|
|
<div class="px-0">
|
|
<h3>Dettaglio KIT</h3>
|
|
</div>
|
|
<div class="px-0">
|
|
<button class="btn btn-outline-dark" @onclick="() => ReqClose()"><i class="fa-solid fa-xmark"></i></button>
|
|
</div>
|
|
</div>
|
|
<div class="modal-body px-1">
|
|
@if (ListTK == null && ListPODL == null)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else if (numIstKit == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-6">
|
|
Nessun record trovato
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
if (ListPODL != null)
|
|
{
|
|
<div class="text-center">
|
|
<h4>PODL KIT → Ordini</h4>
|
|
</div>
|
|
<table class="table table-sm table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><i class="fa-solid fa-key"></i> PODL</th>
|
|
<th><i class="fa-solid fa-object-group"></i> Cod Ord</th>
|
|
<th><i class="fa-solid fa-sitemap"></i> Cod Art</th>
|
|
<th class="text-end"><i class="fa-solid fa-hashtag"></i> Qty</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var record in ListPODL)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<div>@record.IdxPromessa</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.KeyRichiesta</div>
|
|
</td>
|
|
<td>
|
|
<div>@record.CodArticolo</div>
|
|
</td>
|
|
<td class="text-end">
|
|
<div>@record.NumPezzi</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
}
|
|
</div>
|
|
<div class="modal-footer d-flex justify-content-between px-0">
|
|
@if (numTempKit == 0)
|
|
{
|
|
<div class="alert alert-warning text-center display-6">
|
|
Nessun record trovato
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="text-center">
|
|
<b>Template KIT</b>
|
|
</div>
|
|
<table class="table table-success table-sm opacity-75 table-striped small">
|
|
<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 ListTK)
|
|
{
|
|
<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>
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
public EventCallback<bool> EC_Close { get; set; }
|
|
|
|
[Parameter]
|
|
public List<ODLExpModel>? ListODL { get; set; } = null;
|
|
|
|
[Parameter]
|
|
public List<PODLExpModel>? ListPODL { get; set; } = null;
|
|
|
|
[Parameter]
|
|
public List<TemplateKitModel>? ListTK { get; set; } = null;
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
numTempKit = ListTK != null ? ListTK.Count() : 0;
|
|
numIstKit = ListPODL != null ? ListPODL.Count() : 0;
|
|
}
|
|
|
|
protected async void ReqClose()
|
|
{
|
|
await EC_Close.InvokeAsync(true);
|
|
}
|
|
|
|
private int numTempKit = 0;
|
|
private int numIstKit = 0;
|
|
}
|