@lblPz2RecScarto
@@ -64,7 +64,7 @@
}
-
+
@if (showConfirm)
{
diff --git a/MP-TAB-SERV/Components/ProdConfirm.razor.cs b/MP-TAB-SERV/Components/ProdConfirm.razor.cs
index b0543028..514ae03f 100644
--- a/MP-TAB-SERV/Components/ProdConfirm.razor.cs
+++ b/MP-TAB-SERV/Components/ProdConfirm.razor.cs
@@ -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);
}