From 620572e25043502e84330e8df99df009f0122cee Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 10 Mar 2025 08:57:16 +0100 Subject: [PATCH] Refresh dimensioni testi --- MP-TAB3/Components/MachineBlock.razor | 31 ++++++++++++++++++++---- MP-TAB3/Components/MachineBlock.razor.cs | 2 ++ 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/MP-TAB3/Components/MachineBlock.razor b/MP-TAB3/Components/MachineBlock.razor index 4de2f7cb..8011134e 100644 --- a/MP-TAB3/Components/MachineBlock.razor +++ b/MP-TAB3/Components/MachineBlock.razor @@ -175,7 +175,7 @@ else {
- Da Confermare + Da Conferm.
@($"{datiProdAct.Pz2RecTot}") @@ -186,7 +186,7 @@ else {
- Da Confermare + Da Conferm.
@($"{datiProdAct.Pz2RecTot}") @@ -204,6 +204,16 @@ else
} + else{ +
+
+ Scarti Versati +
+
+ @($"{NumScartiConf}") +
+
+ } @if (datiProdAct.PzConfRilav > 0) {
@@ -215,20 +225,31 @@ else
} + else + { +
+
+ Rilav Versati +
+
+ @($"{datiProdAct.PzConfRilav}") +
+
+ }
- Buoni Versati + Buoni Vers.
@($"{datiProdAct.PzConfBuoni}")
} - @if (CRecMSE.extraVal > 0) + @if (CRecMSE.extraVal > 0 && showQtaExtra) {
- Qta Extra + Extra
@($"{CRecMSE.extraVal}")
diff --git a/MP-TAB3/Components/MachineBlock.razor.cs b/MP-TAB3/Components/MachineBlock.razor.cs index de469228..4273816a 100644 --- a/MP-TAB3/Components/MachineBlock.razor.cs +++ b/MP-TAB3/Components/MachineBlock.razor.cs @@ -26,6 +26,7 @@ namespace MP_TAB3.Components private static NLog.Logger Log = LogManager.GetCurrentClassLogger(); private bool enableDisegno = false; + private bool showQtaExtra = false; private bool forceCloseOdl = true; private int IdxOdl = 0; private int IdxOdlAltra = 0; @@ -353,6 +354,7 @@ namespace MP_TAB3.Components saveParams(); // abilitazione disegni... TabDServ.ConfigGetVal("enableDisegno", ref enableDisegno); + TabDServ.ConfigGetVal("TAB_ShowQtaExtra", ref showQtaExtra); await ReloadXDL(true); // se configurata uso cartella virtuale... altrimenti cartella processo var sImgBasePath = config.GetValue("ServerConf:ImgBasePath") ?? (config.GetValue("OptConf:ImgBasePath") ?? "");