96 lines
4.0 KiB
Plaintext
96 lines
4.0 KiB
Plaintext
|
|
<button class="btn @btnCss w-100" @onclick="toggleFixOdl">
|
|
<i class="fa fa-check pe-1"></i>
|
|
<span class="fs-4 fw-bold">@txtBtnFixOdl</span>
|
|
<i class="fa @faCss ps-1"></i>
|
|
</button>
|
|
@if (showFixOdl)
|
|
{
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h1>Riassegnazione ODL</h1>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="input-group input-group-lg">
|
|
<input type="text" class="form-control w-25" placeholder="Cerca" aria-label="Cerca">
|
|
<select class="form-select w-50" @bind="IdxOdlSel">
|
|
@* <option disabled>Selezionare P.ODL</option> *@
|
|
@foreach (var item in ListSelODL)
|
|
{
|
|
<option value="@item.value">@item.label</option>
|
|
}
|
|
</select>
|
|
<div class="input-group-text">
|
|
<input class="form-check-input mt-0 me-1" id="chk_all" type="checkbox" @bind="ShowAll">
|
|
<label class="form-check-label" for="" chk_all">
|
|
Tutti
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 mt-2">
|
|
@if (IdxOdlSel > 0)
|
|
{
|
|
<button class="btn btn-lg btn-warning w-100" @onclick="() => SetupOdl()"><i class="fa-solid fa-plus"></i> Imposta ODL</button>
|
|
}
|
|
</div>
|
|
<div class="col-12">
|
|
<h4>Ultimi ODL lavorati:</h4>
|
|
<table class="table table-dark table-sm table-striped">
|
|
<thead>
|
|
<tr class="text-start1">
|
|
<th>ODL / Articolo</th>
|
|
<th class="text-end"># Pezzi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ListPaged)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<div class="d-flex justify-content-between fw-bold">
|
|
<div class="px-1">
|
|
@item.IdxOdl
|
|
</div>
|
|
<div class="px-1">
|
|
@item.CodArticolo
|
|
</div>
|
|
</div>
|
|
<div class="d-flex justify-content-between small">
|
|
<div class="px-1">
|
|
@($"{item.DataInizio:yyyy.MM.dd HH:mm:ss}")
|
|
</div>
|
|
<div class="px-1">
|
|
<i class="fa-solid fa-arrow-right"></i>
|
|
</div>
|
|
<div class="px-1 fw-bold">
|
|
@($"{item.DataFine:yyyy.MM.dd HH:mm:ss}")
|
|
</div>
|
|
</div>
|
|
@if (!string.IsNullOrEmpty(item.Note))
|
|
{
|
|
<div class="small text-secondary">
|
|
@item.Note
|
|
</div>
|
|
}
|
|
</td>
|
|
<td class="text-end">
|
|
<div>
|
|
@item.NumPezzi.ToString("N0")
|
|
</div>
|
|
<div class="small">
|
|
TC: @item.Tcassegnato.ToString("N2") | pz/pallet: @item.PzPallet
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<EgwCoreLib.Razor.DataPager currPage="@PageNum" PageSize="@NumRecPage" totalCount="@TotalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec"></EgwCoreLib.Razor.DataPager>
|
|
|
|
</div>
|
|
</div>
|
|
}
|
|
|