diff --git a/MP-TAB3/Components/CmpTop.razor.cs b/MP-TAB3/Components/CmpTop.razor.cs index d48189d6..73b54a5f 100644 --- a/MP-TAB3/Components/CmpTop.razor.cs +++ b/MP-TAB3/Components/CmpTop.razor.cs @@ -67,26 +67,30 @@ namespace MP_TAB3.Components #region Protected Methods - protected async Task RefreshLogIn(string decodValue) + protected async Task RefreshScadLogIn(string decodValue) { bool done = false; - if (TypeScadLogin <= 0 || TypeScadLogin == 2) + // solo se non è logout!!! + if (!NavMan.Uri.Contains("logout")) { - done = await MsgServ.DoLogIn(decodValue, false); - } - else - { - done = await MsgServ.DoLogIn(decodValue, true); - } - if (done) - { - if (!string.IsNullOrEmpty(LastOpenedPage) && !string.IsNullOrEmpty(CurrMacc)) + if (TypeScadLogin <= 0 || TypeScadLogin == 2) { - NavMan.NavigateTo(LastOpenedPage); + done = await MsgServ.DoLogIn(decodValue, false); } else { - NavMan.NavigateTo("status-map"); + done = await MsgServ.DoLogIn(decodValue, true); + } + if (done ) + { + if (!string.IsNullOrEmpty(LastOpenedPage) && !string.IsNullOrEmpty(CurrMacc)) + { + NavMan.NavigateTo(LastOpenedPage); + } + else if(!NavMan.Uri.Contains(LastOpenedPage)) + { + NavMan.NavigateTo("status-map"); + } } } } @@ -149,7 +153,7 @@ namespace MP_TAB3.Components CurrMacc = await MsgServ.IdxMaccGet(); CurrOprTknLS = await MsgServ.GetCurrOperDtoLSAsync(); - var decodedUrl = Uri.UnescapeDataString(CurrOprTknLS); + var currOprTokLsDeco = Uri.UnescapeDataString(CurrOprTknLS); if (!string.IsNullOrEmpty(CurrOprTknLS)) { var decryptedData = MsgServ.DecryptData(CurrOprTknLS); @@ -176,7 +180,7 @@ namespace MP_TAB3.Components } else if (!string.IsNullOrEmpty(CurrOprTknRedis) && CurrOprTknRedis == CurrOprTknLS) { - await RefreshLogIn(decodedUrl); + await RefreshScadLogIn(currOprTokLsDeco); await EA_UserIsOk.InvokeAsync(true); } } diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index 3067e8e9..7e9382bf 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2401.2618 + 6.16.2402.616 enable MP_TAB3 diff --git a/MP-TAB3/Pages/Logout.razor.cs b/MP-TAB3/Pages/Logout.razor.cs index c4b3f3b8..2d599b96 100644 --- a/MP-TAB3/Pages/Logout.razor.cs +++ b/MP-TAB3/Pages/Logout.razor.cs @@ -26,6 +26,12 @@ namespace MP_TAB3.Pages #region Protected Methods + protected override Task OnAfterRenderAsync(bool firstRender) + { + MsgServ.RigaOper = null; + return base.OnAfterRenderAsync(firstRender); + } + protected override async Task OnInitializedAsync() { await Task.Delay(1); diff --git a/MP-TAB3/Pages/RegNewDevice.razor b/MP-TAB3/Pages/RegNewDevice.razor index 2e07310a..acfef946 100644 --- a/MP-TAB3/Pages/RegNewDevice.razor +++ b/MP-TAB3/Pages/RegNewDevice.razor @@ -11,6 +11,7 @@ @if (ShowScanBarcode) { + - +
@@ -37,6 +38,7 @@
+ } @if (oprsList.Count > 0) diff --git a/MP-TAB3/Pages/_Layout.cshtml b/MP-TAB3/Pages/_Layout.cshtml index 68812b00..10492c10 100644 --- a/MP-TAB3/Pages/_Layout.cshtml +++ b/MP-TAB3/Pages/_Layout.cshtml @@ -22,7 +22,6 @@ - @* *@ @RenderBody() @@ -38,7 +37,6 @@ 🗙 - @**@ diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 1b530b44..cbfbf3ab 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2401.2618

+

Versione: 6.16.2402.616


Note di rilascio: