From 2b02a91627a2bc41159da34ff74ee12f471f78a4 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 1 Mar 2024 09:46:54 +0100 Subject: [PATCH] Fix pz pallet riattrezzaggio --- MP-TAB3/Components/OdlMan.razor.cs | 23 ++++++++++------------- MP-TAB3/MP-TAB3.csproj | 2 +- MP-TAB3/Resources/ChangeLog.html | 2 +- MP-TAB3/Resources/VersNum.txt | 2 +- MP-TAB3/Resources/manifest.xml | 2 +- 5 files changed, 14 insertions(+), 17 deletions(-) diff --git a/MP-TAB3/Components/OdlMan.razor.cs b/MP-TAB3/Components/OdlMan.razor.cs index efae2435..53717fb2 100644 --- a/MP-TAB3/Components/OdlMan.razor.cs +++ b/MP-TAB3/Components/OdlMan.razor.cs @@ -995,7 +995,10 @@ namespace MP_TAB3.Components protected async Task ShowRiattrezzaggio() { showSplitOdlRiattr = !showSplitOdlRiattr; - await ReloadXDL(true); + if (showSplitOdlRiattr) + { + await ReloadXDL(true); + } } protected async Task SplitOdl() @@ -1445,19 +1448,13 @@ namespace MP_TAB3.Components } } - private void fixTcNotePzPallet() + private void fixTcNotePzPallet(bool reloadFromOdl) { - if (tcRichAttr == 0) + if (tcRichAttr == 0 || string.IsNullOrEmpty(noteAttr) || PzPallet == 0) { - tcRichAttr = IdxPOdlSel == 0 ? currOdl.TCRichAttr : currPodl.Tcassegnato; - } - if (string.IsNullOrEmpty(noteAttr)) - { - noteAttr = IdxPOdlSel == 0 ? currOdl.Note : currPodl.Note; - } - if (PzPallet == 0) - { - PzPallet = IdxPOdlSel == 0 ? currOdl.PzPallet : currPodl.PzPallet; + tcRichAttr = reloadFromOdl || IdxPOdlSel == 0 ? currOdl.TCRichAttr : currPodl.Tcassegnato; + noteAttr = reloadFromOdl || IdxPOdlSel == 0 ? currOdl.Note : currPodl.Note; + PzPallet = reloadFromOdl || IdxPOdlSel == 0 ? currOdl.PzPallet : currPodl.PzPallet; } } @@ -1625,7 +1622,7 @@ namespace MP_TAB3.Components } await updateIdxOdl(); // sistemo TCiclo, note, pzPallet.. - fixTcNotePzPallet(); + fixTcNotePzPallet(reloadFromOdl); } private async Task updateIdxOdl() diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index 901b44e7..a88f035a 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2402.2818 + 6.16.2403.109 enable MP_TAB3 diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 403c5e9c..b25337e5 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2402.2818

+

Versione: 6.16.2403.109


Note di rilascio: