Ok test pezzi lasciati/confermati in prod

This commit is contained in:
Samuele Locatelli
2023-10-04 18:48:22 +02:00
parent 9f13d9ddb4
commit dca19787f1
2 changed files with 19 additions and 6 deletions
+4 -4
View File
@@ -31,11 +31,11 @@
ultima conferma --> @dtReqUpdate.ToString()
</sub>
</div>
<div class="col-6 col-sm-3 pr-1 align-self-end fw-bold">
<div class="col-6 col-sm-3 px-0 align-self-end fw-bold">
<label>Pz Prodotti CONFERMATI</label>
<input class="form-control fs-2 text-end alert alert-warning py-0 mb-0" @bind="numPzProdotti2Rec" @onblur="() => setConfirmBtn(true)" @onfocus="() => setConfirmBtn(false)">
</div>
<div class="col-6 col-sm-3 px-1 align-self-end fw-bold">
<div class="col-6 col-sm-3 px-0 align-self-end fw-bold">
<div class="d-flex justify-content-around">
<div>
<span class="text-danger">Pz Scarto</span>
@@ -43,7 +43,7 @@
<span class="text-success">Pz Buoni</span>
</div>
</div>
<div class="px-2" style="font-size: 2em;">
<div class="px-2 fs-4">
<div class="d-flex justify-content-around">
<div>
<span runat="server" class="text-danger py-0">@lblPz2RecScarto</span>
@@ -64,7 +64,7 @@
<label class="btn btn-dark text-light btn-lg w-100" Visible="false">&nbsp;</label>
}
</div>
<div class="col-6 col-sm-3 pl-1 align-self-end fw-bold">
<div class="col-6 col-sm-3 px-0 align-self-end fw-bold">
@if (showConfirm)
{
<button class="btn btn-success text-light btn-lg w-100" @onclick="SalvaConfPz"><i class="fa-regular fa-floppy-disk"></i> CONFERMA</button>
+15 -2
View File
@@ -107,7 +107,18 @@ namespace MP_TAB_SERV.Components
}
}
protected int numPzLasciati { get; set; } = 0;
protected int numPzLasciati
{
get => numPzLasc;
set
{
if (value <= numPzConfermati)
{
numPzLasc = value;
}
}
}
private int numPzLasc { get; set; } = 0;
protected int numPzProdotti { get; set; } = 0;
@@ -130,6 +141,7 @@ namespace MP_TAB_SERV.Components
protected override async Task OnInitializedAsync()
{
lblOut = "";
numPzLasciati = 0;
if (RecMSE != null)
{
IdxMaccSel = RecMSE.IdxMacchina;
@@ -149,11 +161,12 @@ namespace MP_TAB_SERV.Components
// refresh tabella dati tablet...
TabDServ.RicalcMse(IdxMaccSel, 0);
// mostro output
lblOut = $"Confermata la produzione per {numPzConfermati} pezzi! (+{numPzScarto2Rec:N0} pz scarto) alle {dtReqUpdate:HH:mm:ss} di {dtReqUpdate:ddd yyyy-MM-dd}";
lblOut = $"Confermata produzione {numPzConfermati - numPzLasciati} pezzi (+{numPzLasciati} pz lasciati, +{numPzScarto2Rec:N0} pz scarto) |{dtReqUpdate:HH:mm:ss} | {dtReqUpdate:ddd yyyy.MM.dd}";
// cambio button conferma...
showInnov = false;
// sollevo evento!
dtReqUpdate = DateTime.Now;
numPzLasciati = 0;
await doUpdate();
await E_newVal.InvokeAsync(true);
}