diff --git a/MP-TAB-SERV/Components/ProdConfirm.razor b/MP-TAB-SERV/Components/ProdConfirm.razor index eb80eb5c..10d40bb4 100644 --- a/MP-TAB-SERV/Components/ProdConfirm.razor +++ b/MP-TAB-SERV/Components/ProdConfirm.razor @@ -31,11 +31,11 @@ ultima conferma --> @dtReqUpdate.ToString() -
+
-
+
Pz Scarto @@ -43,7 +43,7 @@ Pz Buoni
-
+
@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); }