150 lines
7.4 KiB
Plaintext
150 lines
7.4 KiB
Plaintext
|
|
|
|
<MachSel RecMSE="RecMSE" E_MachSel="SetMacc"></MachSel>
|
|
|
|
|
|
<ShowProcessing Message="Caricamento" IsProcessing="@isProcessing"></ShowProcessing>
|
|
<div class="cardObj p-2 mt-2">
|
|
@if (enableScarti)
|
|
{
|
|
<div class="mb-2">
|
|
<ScrapEditor RecMSE="@RecMSE" E_Updated="ReloadData"></ScrapEditor>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="alert bg-info text-dark fw-bold">Registrazione scarti disabilitata</div>
|
|
}
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<h2>Tipo Selezione</h2>
|
|
</div>
|
|
<div class="col-6">
|
|
<div class="form-check form-switch fs-3">
|
|
<input class="form-check-input" type="checkbox" @bind="@UseOdl">
|
|
<label class="form-check-label">@selMessage</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (useOdl)
|
|
{
|
|
<MachineSelOdl IdxMacchina="@IdxMaccSel" E_OdlSel="SetOdl"></MachineSelOdl>
|
|
}
|
|
else
|
|
{
|
|
<div style="font-size: .8rem">
|
|
<EgwCoreLib.Razor.PeriodoSel CurrPeriodo="CurrPeriodo" E_PeriodoSel="SetPeriodo"></EgwCoreLib.Razor.PeriodoSel>
|
|
</div>
|
|
}
|
|
<div class="mb-2 p-1">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
|
|
<table class="table table-dark table-sm table-striped">
|
|
<thead>
|
|
<tr class="text-start1">
|
|
<th>
|
|
Registro Scarti
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if (TotalCount == 0)
|
|
{
|
|
<tr>
|
|
<td class="p-0">
|
|
<div class="alert fs-4">No record found</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
else
|
|
{
|
|
@foreach (var item in ListPaged)
|
|
{
|
|
<tr class="@selectedCss(item)">
|
|
<td>
|
|
<div class="row">
|
|
<div class="col-5 small">
|
|
<div>
|
|
Art: <b>@item.CodArticolo</b>
|
|
</div>
|
|
<div class="@($"text-{item.cssClass}")">
|
|
<i class="@item.icona"></i> @item.Descrizione
|
|
</div>
|
|
</div>
|
|
<div class="col-2 px-0 text-center text-nowrap d-flex justify-content-center">
|
|
<div>
|
|
<b class="fs-2">@item.Qta</b>
|
|
</div>
|
|
<div class="ps-1 fs-4">
|
|
|
|
@if (item.Tipo == "KIT")
|
|
{
|
|
<div class="d-flex justify-content-center align-items-center flex-wrap h-100">
|
|
<sub class="pe-1">×</sub>
|
|
@if (item.KitSplit)
|
|
{
|
|
<button class="btn btn-info" @onclick="() => ShowKitDetail(item)" title="KIT esploso" style="max-width: 2.5rem;display: flex;justify-content: center;min-height: 2.375rem;align-items: center;">
|
|
<i class="fa-solid fa-box-open"></i>
|
|
</button>
|
|
}
|
|
else
|
|
{
|
|
<button class="btn btn-secondary" @onclick="() => ShowKitDetail(item)" title="KIT non esploso">
|
|
<i class="fa-solid fa-box"></i>
|
|
</button>
|
|
}
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
|
|
<sub>
|
|
×
|
|
<span>pz</span>
|
|
</sub>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="col-5 text-end small">
|
|
<div class="text-truncate">
|
|
@($"{item.DataOra:ddd dd.MM.yy HH:mm:ss}")
|
|
<i class="fa fa-clock-o" aria-hidden="true"></i>
|
|
</div>
|
|
<div class="text-truncate">
|
|
<b>@item.Operatore</b>
|
|
<i class="fa fa-user" aria-hidden="true"></i>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 small text-secondary">
|
|
@if (!string.IsNullOrEmpty(item.Note))
|
|
{
|
|
<span>Nota: <b>@item.Note</b></span>
|
|
}
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@if (item.Equals(selItem))
|
|
{
|
|
<tr>
|
|
<td class="p-0">
|
|
<ScrapKitMan ParentKit="item" E_Updated="ForceReload"></ScrapKitMan>
|
|
</td>
|
|
</tr>
|
|
}
|
|
}
|
|
}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td>
|
|
<EgwCoreLib.Razor.DataPager currPage="@PageNum" PageSize="@NumRecPage" totalCount="@TotalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |