From bc68c1578dcc8d7a59cbf21c0bca78a4468deea1 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 10 Jul 2025 16:17:54 +0200 Subject: [PATCH] TAB3: - aggiunto delay iniziale post conferma pz x mostrare subito pagina esecuzione --- MP-TAB3/Components/ProdConfirm.razor.cs | 37 ++++++++++++++----------- MP-TAB3/MP-TAB3.csproj | 2 +- MP-TAB3/Resources/ChangeLog.html | 2 +- MP-TAB3/Resources/VersNum.txt | 2 +- MP-TAB3/Resources/manifest.xml | 2 +- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Pages/PODL.razor | 2 +- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 10 files changed, 30 insertions(+), 25 deletions(-) diff --git a/MP-TAB3/Components/ProdConfirm.razor.cs b/MP-TAB3/Components/ProdConfirm.razor.cs index 3156f064..88ce77f5 100644 --- a/MP-TAB3/Components/ProdConfirm.razor.cs +++ b/MP-TAB3/Components/ProdConfirm.razor.cs @@ -163,29 +163,33 @@ namespace MP_TAB3.Components { get { - bool answ = (RecMSE != null && RecMSE.IdxOdl > 0); - if (isMulti && (!answ && RecMSE != null && IdxMaccSel != RecMSE?.IdxMacchina)) + bool answ = false; + if (RecMSE != null) { - int idxOdlSel = 0; - try + answ = (RecMSE.IdxOdl > 0); + if (isMulti && (RecMSE != null && IdxMaccSel != RecMSE?.IdxMacchina)) { - var pUpd = Task.Run(async () => + int idxOdlSel = 0; + try { - var tabOdlSel = await TabDServ.OdlCurrByMacc(IdxMaccSel, true); - idxOdlSel = tabOdlSel.IdxOdl; - }); - pUpd.Wait(); - answ = idxOdlSel > 0; + var pUpd = Task.Run(async () => + { + var tabOdlSel = await TabDServ.OdlCurrByMacc(IdxMaccSel, true); + idxOdlSel = tabOdlSel.IdxOdl; + }); + pUpd.Wait(); + answ = idxOdlSel > 0; + } + catch (Exception exc) + { + Log.Error($"Errore Durante recupero idxOdlSel {Environment.NewLine}{exc}"); + } } - catch (Exception exc) + else { - Log.Error($"Errore Durante recupero idxOdlSel {Environment.NewLine}{exc}"); + answ = (RecMSE != null && RecMSE.IdxOdl > 0); } } - else - { - answ = (RecMSE != null && RecMSE.IdxOdl > 0); - } return answ; } } @@ -291,6 +295,7 @@ namespace MP_TAB3.Components protected async Task SalvaConfPz() { isProcessing = true; + await Task.Delay(10); // effettua conferma con conf da DB del tipo (giorni / turni / periodo bool fatto = effettuaConfermaProd(); await TabDServ.FlushCache("StatoProd"); diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index afb98d99..21dc1e4d 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2507.113 + 6.16.2507.1016 enable MP_TAB3 diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 9b2b4419..0f3d6297 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2507.113

+

Versione: 6.16.2507.1016


Note di rilascio: