minor fix

This commit is contained in:
zaccaria.majid
2022-11-21 18:29:57 +01:00
parent b36f8fd6f0
commit 2ffe8d7ac9
8 changed files with 23 additions and 14 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.INVE</RootNamespace>
<Version>6.16.2211.2116</Version>
<Version>6.16.2211.2118</Version>
</PropertyGroup>
<ItemGroup>
+16 -7
View File
@@ -18,6 +18,8 @@ using Blazored.LocalStorage;
using Microsoft.AspNetCore.WebUtilities;
using MP.INVE.Data;
using MP.Data.DatabaseModels;
using MP.Data.DTO;
using Microsoft.IdentityModel.Tokens;
namespace MP.INVE.Pages
{
@@ -33,6 +35,7 @@ namespace MP.INVE.Pages
private string logged { get; set; } = "";
private List<AnagOperatoriModel> operatore = new List<AnagOperatoriModel>();
private AnagOperatoriModel currOperatore = new AnagOperatoriModel();
protected string idOPeratore { get; set; } = null!;
protected string authKey { get; set; } = null!;
protected override async Task OnInitializedAsync()
@@ -47,14 +50,20 @@ namespace MP.INVE.Pages
operatore = MIService.ElencoOperatori(int.Parse(idOPeratore), MIService.DeriptData(authKey));
if(operatore.Count == 1)
if (operatore != null)
{
logged = "success";
NavManager.NavigateTo("Acquisizione");
}
else
{
logged = "not success";
if (operatore.Count == 1)
{
logged = "success";
NavManager.NavigateTo("Acquisizione");
localStorage.SetItemAsync("MatrOpr", idOPeratore);
localStorage.SetItemAsync("authKey", authKey);
}
else
{
logged = "not success";
}
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOINVE </i>
<h4>Versione: 6.16.2211.2116</h4>
<h4>Versione: 6.16.2211.2118</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2211.2116
6.16.2211.2118
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2211.2116</version>
<version>6.16.2211.2118</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>
+1 -1
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("Elencomagazzini", true);
}
}
else
+1 -1
View File
@@ -39,7 +39,7 @@ namespace MP.INVE.Shared
userName = $"{answ.Cognome} {answ.Nome} ({answ.MatrOpr})";
if (NavigationManager.Uri.Contains("OperatoreLogin"))
{
NavigationManager.NavigateTo("Starter", true);
NavigationManager.NavigateTo("Elencomagazzini", true);
}
}
else
+1 -1
View File
@@ -19,6 +19,6 @@
"redisLongTimeCache": "15",
"MpIoBaseUrl": "http://localhost:20967/",
"BaseUrl": "https://iis01.egalware.com/mp/inve/Acquisizione?",
"BaseUrlJumper": "https://iis01.egalware.com/jumper?"
"BaseUrlJumper": "https://iis01.egalware.com/mp/inve/jumper?"
}
}