137 lines
6.1 KiB
Plaintext
137 lines
6.1 KiB
Plaintext
<MachSel RecMSE="RecMSE" E_MachSel="SetMacc"></MachSel>
|
|
|
|
<ShowProcessing Message="Caricamento" IsProcessing="@isProcessing"></ShowProcessing>
|
|
<div class="cardObj p-2 mt-2">
|
|
<div class="mb-1 fs-6">
|
|
@if (enableControlli)
|
|
{
|
|
@if (RecMSE != null && RecMSE.IdxOdl > 0)
|
|
{
|
|
<button class="btn @btnCss btn-lg text-light w-100 mb-1 fs-2 text-uppercase" @onclick="ToggleBtn">
|
|
<i class="fa fa-wrench pe-1"></i> @ConfTitle <i class="fa @faCss ps-1"></i>
|
|
</button>
|
|
}
|
|
else
|
|
{
|
|
<div class="alert bg-danger text-light fw-bold">ODL non presente!</div>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<div class="alert bg-info text-dark fw-bold">Registrazione controlli 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
|
|
{
|
|
<EgwCoreLib.Razor.PeriodoSel CurrPeriodo="CurrPeriodo" E_PeriodoSel="SetPeriodo"></EgwCoreLib.Razor.PeriodoSel>
|
|
}
|
|
@if (showInsert)
|
|
{
|
|
@if (showNote)
|
|
{
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="">
|
|
<label class="form-label text-light">Note controllo NON superato (opzionali)</label>
|
|
<textarea class="form-control" @bind="@noteKo" style="height: 6rem;"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="col-12">
|
|
<button class="btn btn-danger btn-lg w-100" @onclick="SaveKo">Conferma controllo KO</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row my-2">
|
|
<div class="col-6">
|
|
<button class="btn btn-success w-100 fs-4 fw-bold" @onclick="SaveOk">OK</button>
|
|
</div>
|
|
<div class="col-6">
|
|
<button class="btn btn-danger w-100 fs-4 fw-bold" @onclick="ShowKo">KO</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
<div class="bg-secondary p-1 mb-1">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<table class="table table-dark table-sm table-striped">
|
|
<thead>
|
|
<tr class="text-start1">
|
|
<th>
|
|
Registro Controlli
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListPaged)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<div class="row">
|
|
<div class="col-5 small">
|
|
<div>
|
|
Art: <b>@item.CodArticolo</b>
|
|
</div>
|
|
<div>
|
|
ODL: <b>@($"ODL{item.IdxOdl:000000000}")</b>
|
|
</div>
|
|
</div>
|
|
<div class="col-2 px-0 text-center">
|
|
@if (item.EsitoOk)
|
|
{
|
|
<i runat="server" class="fa fa-check-circle fs-1 text-success" aria-hidden="true"></i>
|
|
}
|
|
else
|
|
{
|
|
<i runat="server" class="fa fa-ban fs-1 text-danger" aria-hidden="true"></i>
|
|
}
|
|
</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">
|
|
@if (!string.IsNullOrEmpty(item.Note))
|
|
{
|
|
<div class="text-warning">@item.Note</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</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> |