fix vari link reindirizzamento

This commit is contained in:
zaccaria.majid
2022-11-21 16:04:10 +01:00
parent e9cc7752fa
commit e974756376
12 changed files with 17 additions and 44 deletions
-14
View File
@@ -109,20 +109,6 @@ namespace MP.Data
return answ;
}
[Inject]
protected ILocalStorageService localStorage { get; set; } = null!;
[Inject]
protected NavigationManager NavManager { get; set; } = null!;
protected async Task getId()
{
OperatoreDTO local = new OperatoreDTO();
local = await localStorage.GetItemAsync<OperatoreDTO>("MatrOpr");
if ((local == null))
{
NavManager.NavigateTo("OperatoreLogin");
}
}
#endregion Public Methods
}
}
+3 -3
View File
@@ -24,7 +24,7 @@ namespace MP.INVE.Components
{
await localStorage.ClearAsync();
// rimando a pagina login
NavManager.NavigateTo("OperatoreLogin", true);
NavManager.NavigateTo("/MP/Inve/OperatoreLogin", true);
}
#endregion Public Methods
@@ -49,7 +49,7 @@ namespace MP.INVE.Components
userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})";
if (NavManager.Uri.Contains("OperatoreLogin"))
{
NavManager.NavigateTo("Starter", true);
NavManager.NavigateTo("/MP/Inve/Starter", true);
}
}
else
@@ -57,7 +57,7 @@ namespace MP.INVE.Components
userName = "0";
if (!NavManager.Uri.Contains("OperatoreLogin"))
{
NavManager.NavigateTo("OperatoreLogin", true);
NavManager.NavigateTo("/MP/Inve/OperatoreLogin", true);
}
}
}
+2 -2
View File
@@ -135,7 +135,7 @@ namespace MP.INVE.Components
};
await MIDataservice.InsertNewSessione(newSess);
NavManager.NavigateTo("Session", true);
NavManager.NavigateTo(NavManager.Uri, true);
await reloadData();
}
else
@@ -155,7 +155,7 @@ namespace MP.INVE.Components
if (alert)
{
await MIDataservice.deleteSessione(session);
NavManager.NavigateTo("Session", true);
NavManager.NavigateTo(NavManager.Uri, true);
await reloadData();
}
}
+1 -1
View File
@@ -75,7 +75,7 @@ namespace MP.INVE.Components
Nascosto = false
};
await MIDataservice.InsertNewMag(newMag);
NavManager.NavigateTo("Elencomagazzini", true);
NavManager.NavigateTo(NavManager.Uri, true);
//await MIDataservice.FlushRedisCache();
await reloadData();
}
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.INVE</RootNamespace>
<Version>6.16.2211.2115</Version>
<Version>6.16.2211.2116</Version>
</PropertyGroup>
<ItemGroup>
-15
View File
@@ -34,21 +34,6 @@ namespace MP.INVE.Pages
//await getId();
await Task.Delay(1);
}
#if false
[Inject]
protected ILocalStorageService localStorage { get; set; } = null!;
[Inject]
protected NavigationManager NavManager { get; set; } = null!;
protected async Task getId()
{
OperatoreDTO local = new OperatoreDTO();
local = await localStorage.GetItemAsync<OperatoreDTO>("MatrOpr");
if ((local == null))
{
NavManager.NavigateTo("OperatoreLogin");
}
}
#endif
#endregion Protected Methods
#region Private Fields
+1 -1
View File
@@ -66,7 +66,7 @@ namespace MP.INVE.Pages
if (elencoOperatori.Count == 1)
{
NavManager.NavigateTo("/MP/InveSession", true);
NavManager.NavigateTo("/MP/Inve/InveSession", true);
localStorage.SetItemAsync("MatrOpr", sessionOpr);
}
else
+4 -2
View File
@@ -126,7 +126,7 @@ namespace MP.INVE.Pages
Nascosto = false
};
await MIDataservice.InsertNewMag(newMag);
NavManager.NavigateTo("Elencomagazzini", true);
NavManager.NavigateTo(NavManager.Uri, true);
//await MIDataservice.FlushRedisCache();
await reloadData();
}
@@ -135,6 +135,7 @@ namespace MP.INVE.Pages
closeNew();
}
}
#if false
private async Task deleteMag(AnagMagModel mag)
{
@@ -145,7 +146,8 @@ namespace MP.INVE.Pages
NavManager.NavigateTo("Elencomagazzini", true);
await reloadData();
}
}
}
#endif
protected void ForceReload(int newNum)
{
numRecord = newNum;
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOINVE </i>
<h4>Versione: 6.16.2211.2115</h4>
<h4>Versione: 6.16.2211.2116</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2211.2115
6.16.2211.2116
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2211.2115</version>
<version>6.16.2211.2116</version>
<url>https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/MP.INVE.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+2 -2
View File
@@ -32,7 +32,7 @@ namespace MP.INVE.Shared
userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})";
if (NavManager.Uri.Contains("OperatoreLogin"))
{
NavManager.NavigateTo("Starter", true);
NavManager.NavigateTo("MP/Inve/Starter", true);
}
}
else
@@ -40,7 +40,7 @@ namespace MP.INVE.Shared
userName = "0";
if (!NavManager.Uri.Contains("OperatoreLogin"))
{
NavManager.NavigateTo("OperatoreLogin", true);
NavManager.NavigateTo("MP/Inve/OperatoreLogin", true);
}
}
}