From 340fc785f58e67ed6f904a4383571f2ba6469a63 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 27 Feb 2024 19:13:26 +0100 Subject: [PATCH] Fix veto reload note/tempo7pzPallet in attrezzaggio --- MP-TAB3/Components/OdlMan.razor | 4 +-- MP-TAB3/Components/OdlMan.razor.cs | 40 ++++++++++++++++++------------ 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/MP-TAB3/Components/OdlMan.razor b/MP-TAB3/Components/OdlMan.razor index b5d405de..6e1f0f70 100644 --- a/MP-TAB3/Components/OdlMan.razor +++ b/MP-TAB3/Components/OdlMan.razor @@ -82,9 +82,9 @@ } -
+ @*
Check articolo in revisione -
+
*@ @if (cancelSetupEnabled && RecMSE != null && RecMSE.PezziConf == 0) {
diff --git a/MP-TAB3/Components/OdlMan.razor.cs b/MP-TAB3/Components/OdlMan.razor.cs index 8090d76a..fcb4cf15 100644 --- a/MP-TAB3/Components/OdlMan.razor.cs +++ b/MP-TAB3/Components/OdlMan.razor.cs @@ -1543,21 +1543,25 @@ namespace MP_TAB3.Components } } await updateIdxOdl(); - // imposto tcRichAttr in base allo stato... - if (odlOk) + // aggiorno questi dati SOLO SE non sono in attrezzaggio + if (!inAttr) { - // prendo TCRich da PODL... - if (IdxPOdlSel > 0) + // imposto tcRichAttr in base allo stato... + if (odlOk) { - tcRichAttr = currPodl.Tcassegnato; - noteAttr = currPodl.Note; - PzPallet = currPodl.PzPallet; - } - else - { - tcRichAttr = currOdl.TCRichAttr; - noteAttr = currOdl.Note; - PzPallet = currOdl.PzPallet; + // prendo TCRich da PODL... + if (IdxPOdlSel > 0) + { + tcRichAttr = currPodl.Tcassegnato; + noteAttr = currPodl.Note; + PzPallet = currPodl.PzPallet; + } + else + { + tcRichAttr = currOdl.TCRichAttr; + noteAttr = currOdl.Note; + PzPallet = currOdl.PzPallet; + } } } } @@ -1570,13 +1574,17 @@ namespace MP_TAB3.Components if (IdxPOdlSel > 0) { await ReloadXDL(false); + // solo se NON sno in attrezzaggio // controllo se sia cambiato PODL if (IdxPOdlSel != lastIdxPOdl) { lastIdxPOdl = IdxPOdlSel; - tcRichAttr = currPodl.Tcassegnato; - noteAttr = currPodl.Note; - PzPallet = currPodl.PzPallet; + if (!inAttr) + { + tcRichAttr = currPodl.Tcassegnato; + noteAttr = currPodl.Note; + PzPallet = currPodl.PzPallet; + } } } }