diff --git a/MP.INVE/Components/InveSessionList.razor.cs b/MP.INVE/Components/InveSessionList.razor.cs
index 8bdc71a4..511d8056 100644
--- a/MP.INVE/Components/InveSessionList.razor.cs
+++ b/MP.INVE/Components/InveSessionList.razor.cs
@@ -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
diff --git a/MP.INVE/Pages/Acquisizione.razor.cs b/MP.INVE/Pages/Acquisizione.razor.cs
index 6e8c3620..c0853bfe 100644
--- a/MP.INVE/Pages/Acquisizione.razor.cs
+++ b/MP.INVE/Pages/Acquisizione.razor.cs
@@ -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;
}
diff --git a/MP.INVE/Pages/Jumper.razor b/MP.INVE/Pages/Jumper.razor
index 433b7484..0cc71e05 100644
--- a/MP.INVE/Pages/Jumper.razor
+++ b/MP.INVE/Pages/Jumper.razor
@@ -1,5 +1,5 @@
@page "/Jumper"
-
Jumper
+@logged
diff --git a/MP.INVE/Pages/Jumper.razor.cs b/MP.INVE/Pages/Jumper.razor.cs
index 91ed4305..778da839 100644
--- a/MP.INVE/Pages/Jumper.razor.cs
+++ b/MP.INVE/Pages/Jumper.razor.cs
@@ -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 operatore = new List();
+ 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";
+ }
+ }
}
}
\ No newline at end of file
diff --git a/MP.INVE/appsettings.json b/MP.INVE/appsettings.json
index 885f1db8..9cbfcb78 100644
--- a/MP.INVE/appsettings.json
+++ b/MP.INVE/appsettings.json
@@ -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?"
}
}