diff --git a/MP-TAB-SERV/Components/MseSampler.razor.cs b/MP-TAB-SERV/Components/MseSampler.razor.cs index 0c90ce82..085d46e3 100644 --- a/MP-TAB-SERV/Components/MseSampler.razor.cs +++ b/MP-TAB-SERV/Components/MseSampler.razor.cs @@ -68,12 +68,19 @@ namespace MP_TAB_SERV.Components protected void ElapsedTimer(object? source, System.Timers.ElapsedEventArgs e) { - var pUpd = Task.Run(async () => - { - aTimer.Interval = fastRefreshMs; - await InvokeAsync(RefreshData); - }); - pUpd.Wait(); + try + { + var pUpd = Task.Run(async () => + { + aTimer.Interval = fastRefreshMs; + await InvokeAsync(RefreshData); + }); + pUpd.Wait(); + } + catch (Exception exc) + { + Log.Error($"Eccezione durante MseSampler.ElapsedTimer{Environment.NewLine}{exc}"); + } } protected override void OnInitialized() diff --git a/MP-TAB-SERV/Components/OdlMan.razor.cs b/MP-TAB-SERV/Components/OdlMan.razor.cs index 6d084393..4c2b32c3 100644 --- a/MP-TAB-SERV/Components/OdlMan.razor.cs +++ b/MP-TAB-SERV/Components/OdlMan.razor.cs @@ -242,7 +242,7 @@ namespace MP_TAB_SERV.Components await advStep(currStep++); // cancella dati correnti ODL - DoRemoveCurrOdlData(); + DoRemoveCurrOdlData(false); await advStep(currStep++); } catch @@ -255,6 +255,10 @@ namespace MP_TAB_SERV.Components await advStep(currStep++); isProcessing = false; await InvokeAsync(StateHasChanged); +#if false + await Task.Delay(50); + NavMan.NavigateTo(NavMan.Uri, true); +#endif } /// @@ -630,7 +634,7 @@ namespace MP_TAB_SERV.Components checkBtnStatus(); fixSplitBtn(false); // faccio refresh e riporto - await TabDServ.FlushCache("ODL"); + await TabDServ.FlushOdlCache(); IdxPOdlSel = 0; RecMSE = null; await RefreshData(); @@ -972,7 +976,6 @@ namespace MP_TAB_SERV.Components private bool showOdlProvv = false; private bool showReopenOdlTav = false; private bool showSplitOdlOnTav = false; - private decimal tcRichAttr = 1; #endregion Private Fields @@ -994,7 +997,6 @@ namespace MP_TAB_SERV.Components } private ODLExpModel currOdl { get; set; } = new ODLExpModel(); - private PODLExpModel currPodl { get; set; } = new PODLExpModel(); /// @@ -1185,6 +1187,8 @@ namespace MP_TAB_SERV.Components } } + private decimal tcRichAttr { get; set; } = 1; + private string titleOdlDetail { get => IdxPOdlSel > 0 ? "Verifica parametri attrezzaggio NUOVO PODL" : inAttr ? "Parametri PODL in Attrezzaggio" : "Parametri ODL Corrente"; @@ -1426,7 +1430,7 @@ namespace MP_TAB_SERV.Components /// /// Rimozione dati e parametri (TAB e su PLC) x ODL corrente /// - private void DoRemoveCurrOdlData() + private void DoRemoveCurrOdlData(bool nav2detail) { // invio task x end produzione... string setArtVal = "NO ART"; @@ -1453,8 +1457,11 @@ namespace MP_TAB_SERV.Components TabDServ.addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal); } } - // rimando a pagina dettaglio... - NavMan.NavigateTo("machine-detail", true); + // se richiesto rimando a pagina dettaglio... + if (nav2detail) + { + NavMan.NavigateTo("machine-detail", true); + } } #if false @@ -1564,14 +1571,14 @@ namespace MP_TAB_SERV.Components // imposto tcRichAttr in base allo stato... if (odlOk) { - // prendo TCRich da ODL... - if (IdxOdl > 0) + // prendo TCRich da PODL... + if (IdxPOdlSel > 0) { - tcRichAttr = currOdl.TCRichAttr; + tcRichAttr = currPodl.Tcassegnato; } else { - tcRichAttr = currPodl.Tcassegnato; + tcRichAttr = currOdl.TCRichAttr; } } } diff --git a/MP-TAB-SERV/MP-TAB-SERV.csproj b/MP-TAB-SERV/MP-TAB-SERV.csproj index 03e15603..3c00190a 100644 --- a/MP-TAB-SERV/MP-TAB-SERV.csproj +++ b/MP-TAB-SERV/MP-TAB-SERV.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2312.1214 + 6.16.2312.1215 enable MP_TAB_SERV diff --git a/MP-TAB-SERV/Resources/ChangeLog.html b/MP-TAB-SERV/Resources/ChangeLog.html index 2457f48d..61e95d92 100644 --- a/MP-TAB-SERV/Resources/ChangeLog.html +++ b/MP-TAB-SERV/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2312.1214

+

Versione: 6.16.2312.1215


Note di rilascio: