bozza jumper

This commit is contained in:
zaccaria.majid
2022-11-21 15:49:30 +01:00
parent 3953472209
commit 8118574c9b
5 changed files with 47 additions and 11 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ namespace MP.INVE.Components
private DateTime dtStart { get; set; } = DateTime.Now.AddMonths(-1);
private DateTime dtEnd { get; set; } = DateTime.Now;
protected string BaseUrlTab { get => $"{Configuration["ServerConf:BaseUrl"]}"; }
protected string BaseUrlTab { get => $"{Configuration["ServerConf:BaseUrlJumper"]}"; }
protected string rawCode
+5 -7
View File
@@ -17,6 +17,7 @@ using MP.INVE.Components;
using Blazored.LocalStorage;
using MP.Data.DTO;
using Microsoft.AspNetCore.WebUtilities;
using MP.INVE.Data;
namespace MP.INVE.Pages
{
@@ -26,18 +27,15 @@ namespace MP.INVE.Pages
protected ILocalStorageService localStorage { get; set; } = null!;
[Inject]
protected NavigationManager NavManager { get; set; } = null!;
[Inject]
protected MiDataService MIService { get; set; } = null!;
private bool logged { get;set; } = false;
protected string idOPeratore { get; set; } = null!;
protected string authKey { get; set; } = null!;
protected override async Task OnInitializedAsync()
{
await Task.Delay(1);
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("MatrOpr", out var _matrOpr) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("UserAuthKey", out var _authKey))
{
idOPeratore = _matrOpr;
authKey = _authKey;
}
}
protected DateTime? lastScan { get; set; } = null;
}
+1 -1
View File
@@ -1,5 +1,5 @@
@page "/Jumper"
<h3>Jumper</h3>
<h3>@logged</h3>
+38
View File
@@ -14,10 +14,48 @@ using Microsoft.JSInterop;
using MP.INVE;
using MP.INVE.Shared;
using MP.INVE.Components;
using Blazored.LocalStorage;
using Microsoft.AspNetCore.WebUtilities;
using MP.INVE.Data;
using MP.Data.DatabaseModels;
namespace MP.INVE.Pages
{
public partial class Jumper
{
[Inject]
protected ILocalStorageService localStorage { get; set; } = null!;
[Inject]
protected NavigationManager NavManager { get; set; } = null!;
[Inject]
protected MiDataService MIService { get; set; } = null!;
private string logged { get; set; } = "";
private List<AnagOperatoriModel> operatore = new List<AnagOperatoriModel>();
protected string idOPeratore { get; set; } = null!;
protected string authKey { get; set; } = null!;
protected override async Task OnInitializedAsync()
{
await Task.Delay(1);
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("MatrOpr", out var _matrOpr) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("UserAuthKey", out var _authKey))
{
idOPeratore = _matrOpr;
authKey = _authKey;
}
operatore = MIService.ElencoOperatori(int.Parse(idOPeratore), MIService.DeriptData(authKey));
if(operatore.Count == 1)
{
logged = "success";
NavManager.NavigateTo("Acquisizione");
}
else
{
logged = "not success";
}
}
}
}
+2 -2
View File
@@ -18,7 +18,7 @@
"cacheCheckArtUsato": "2",
"redisLongTimeCache": "15",
"MpIoBaseUrl": "http://localhost:20967/",
"BaseUrl": "https://localhost:7212/Acquisizione?",
"BaseUrlJumper": "https://iis02.egalware.com/MP/jumper?"
"BaseUrl": "https://iis01.egalware.com/mp/inve/Acquisizione?",
"BaseUrlJumper": "https://iis01.egalware.com/MP/jumper?"
}
}