diff --git a/MP-TAB3/Components/CmpTop.razor.cs b/MP-TAB3/Components/CmpTop.razor.cs index b1291083..4dc12c29 100644 --- a/MP-TAB3/Components/CmpTop.razor.cs +++ b/MP-TAB3/Components/CmpTop.razor.cs @@ -155,12 +155,23 @@ namespace MP_TAB3.Components await RefreshScadLogIn(currOprTokLsDeco); await EA_UserIsOk.InvokeAsync(true); } + +#if false + // infine controllo sia valida macchina richiesta rispetto a memoria... + // cerco MSE macchina + var machMse = MsgServ.GetMachineMse(CurrMacc); + if (machMse != null) + { + MsgServ.LastIdxMacchina = ""; + NavMan.NavigateTo("status-map"); + } +#endif } protected async Task RefreshScadLogIn(string decodValue) { bool done = false; - // solo se non è logout!!! + // solo se non � logout!!! if (!NavMan.Uri.Contains("logout")) { if (listT2H == null || listT2H.Count == 0) @@ -177,14 +188,23 @@ namespace MP_TAB3.Components } if (done && !string.IsNullOrEmpty(LastOpenedPage)) { - // se è nelle pagine "T2H" lascio proseguire... + // se � nelle pagine "T2H" lascio proseguire... if (listT2H != null && listT2H.Find(x => x.NavigateUrl == LastOpenedPage) != null) { NavMan.NavigateTo(LastOpenedPage); } else if (!string.IsNullOrEmpty(CurrMacc)) { - NavMan.NavigateTo(LastOpenedPage); + var machMse = await MsgServ.GetMachineMse(CurrMacc); + if (machMse == null) + { + await MsgServ.IdxMaccSet(""); + NavMan.NavigateTo("status-map"); + } + else + { + NavMan.NavigateTo(LastOpenedPage); + } } else { diff --git a/MP-TAB3/Components/SlideMenu.razor b/MP-TAB3/Components/SlideMenu.razor index 2cadef9a..7a4f65b1 100644 --- a/MP-TAB3/Components/SlideMenu.razor +++ b/MP-TAB3/Components/SlideMenu.razor @@ -51,6 +51,9 @@ +
+ Reset Cache +
diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index d379504c..cfa0a166 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2502.2411 + 6.16.2502.2815 enable MP_TAB3 diff --git a/MP-TAB3/Pages/ForceReset.razor b/MP-TAB3/Pages/ForceReset.razor new file mode 100644 index 00000000..b2688f6d --- /dev/null +++ b/MP-TAB3/Pages/ForceReset.razor @@ -0,0 +1,41 @@ +@page "/force-reset" + +
+
+ +
+
+ +
+
+ +@* *@ + +@code { + + [Inject] + protected NavigationManager navManager { get; set; } = null!; + [Inject] + protected MessageService MsgServ { get; set; } = null!; + + /// + /// Esecuzione task di reset... + /// + /// + protected override async Task OnInitializedAsync() + { + // svuoto cache + MsgServ.LastIdxMacchina = ""; + await MsgServ.ClearLocalStor(); + await MsgServ.ClearSessionStor(); + // attendo + await Task.Delay(1000); + // rimando alla home... + navManager.NavigateTo("", true); + } +} diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 0a610a6b..4fc06f35 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2502.2411

+

Versione: 6.16.2502.2815


Note di rilascio: