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: