diff --git a/MP-TAB3/Components/OdlMan.razor.cs b/MP-TAB3/Components/OdlMan.razor.cs index 72b16fa0..864667d8 100644 --- a/MP-TAB3/Components/OdlMan.razor.cs +++ b/MP-TAB3/Components/OdlMan.razor.cs @@ -750,15 +750,8 @@ namespace MP_TAB3.Components } IdxMaccParent = getIdxMaccParent(); checkAll(); -#if false - } -#endif // verifica stato inAttr await CheckAttr(); -#if false - if (RecMSE != null && !RecMSE.Equals(lastRecMSE)) - { -#endif //salvo lastRec... lastRecMSE = RecMSE; await ReloadData(true); @@ -1145,7 +1138,6 @@ namespace MP_TAB3.Components private ODLExpModel currOdl { get; set; } = new ODLExpModel(); private PODLExpModel currPodl { get; set; } = new PODLExpModel(); private MappaStatoExpl? currRecMSE { get; set; } = null; - private MappaStatoExpl? lastRecMSE { get; set; } = null; /// /// Verifica se l'ALTRA macchina NON abbia ODL valido (== 0) @@ -1184,6 +1176,7 @@ namespace MP_TAB3.Components private int IdxOdlAltra { get; set; } = 0; private bool isLoading { get; set; } = false; + private MappaStatoExpl? lastRecMSE { get; set; } = null; private string lblWarnBody { @@ -1587,8 +1580,7 @@ namespace MP_TAB3.Components if (IdxPOdlSel > 0) { await ReloadXDL(false); - // solo se NON sno in attrezzaggio - // controllo se sia cambiato PODL + // solo se NON sno in attrezzaggio controllo se sia cambiato PODL if (IdxPOdlSel != lastIdxPOdl) { lastIdxPOdl = IdxPOdlSel; diff --git a/MP-TAB3/Components/ProdConfirm.razor.cs b/MP-TAB3/Components/ProdConfirm.razor.cs index 3020a233..c06f425a 100644 --- a/MP-TAB3/Components/ProdConfirm.razor.cs +++ b/MP-TAB3/Components/ProdConfirm.razor.cs @@ -174,8 +174,9 @@ namespace MP_TAB3.Components protected override async Task OnParametersSetAsync() { lblOut = ""; - if (RecMSE != null && string.IsNullOrEmpty(IdxMaccSel)) + if (RecMSE != null && (string.IsNullOrEmpty(IdxMaccSel) || !RecMSE.MostlyEquals(lastRecMSE))) { + await TabDServ.FlushCache("StatoProd"); if (!confProdActive) { numPzLasciati = 0; @@ -196,6 +197,9 @@ namespace MP_TAB3.Components IdxMaccSel = idxMSel; } } + //salvo lastRec... + lastRecMSE = RecMSE; + dtReqUpdate = DateTime.Now.AddMilliseconds(100); await DoUpdate(); } } @@ -261,7 +265,6 @@ namespace MP_TAB3.Components } dtReqUpdate = DateTime.Now; await DoUpdate(); - //await InvokeAsync(StateHasChanged); } #endregion Protected Methods @@ -282,10 +285,9 @@ namespace MP_TAB3.Components private bool confProdActive { get; set; } = false; private MappaStatoExpl? currRecMSE { get; set; } = null; private DateTime dtReqUpdate { get; set; } = DateTime.Now; - private string IdxMaccSel { get; set; } = ""; - private bool isProcessing { get; set; } = false; + private MappaStatoExpl? lastRecMSE { get; set; } = null; private int MatrOpr { diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index bb4a00e0..c22dc9bb 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2402.2810 + 6.16.2402.2811 enable MP_TAB3 diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 430667e7..91757d55 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2402.2810

+

Versione: 6.16.2402.2811


Note di rilascio: