From a8f1802eb843febaecdaa35abdf770924a77529a Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Wed, 20 Sep 2023 10:07:27 +0200 Subject: [PATCH] Update gestione pesatura --- IOB-WIN-NEXT/IobSoap/Gomba.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IOB-WIN-NEXT/IobSoap/Gomba.cs b/IOB-WIN-NEXT/IobSoap/Gomba.cs index 88a6ec26..a37ceeb7 100644 --- a/IOB-WIN-NEXT/IobSoap/Gomba.cs +++ b/IOB-WIN-NEXT/IobSoap/Gomba.cs @@ -347,13 +347,11 @@ namespace IOB_WIN_NEXT.IobSoap { isPesata = true; answ = reqWeight(true); - fatto = answ.feedback == "C"; } else if (item.uid == "reqOUT") { isPesata = true; answ = reqWeight(false); - fatto = answ.feedback == "C"; } else if (item.uid == "RM" || item.uid.StartsWith("Cod")) { @@ -365,7 +363,7 @@ namespace IOB_WIN_NEXT.IobSoap if (isPesata) { // se รจ OK - if (fatto) + if (answ.feedback == "C") { item.value = answ.feedback; item.reqValue = ""; @@ -376,7 +374,7 @@ namespace IOB_WIN_NEXT.IobSoap } else { - item.value = answ.feedback; + item.value = $"{answ.feedback} | {answ.notes}"; item.reqValue = ""; lgError($"reqWeight | Errore in richiesta peso GOMBA | {answ.feedback} | {answ.notes}"); }