diff --git a/MP.INVE/MP.INVE.csproj b/MP.INVE/MP.INVE.csproj index 4e2a8c5e..ac2ca808 100644 --- a/MP.INVE/MP.INVE.csproj +++ b/MP.INVE/MP.INVE.csproj @@ -5,7 +5,7 @@ enable enable MP.INVE - 6.16.2211.1617 + 6.16.2211.1618 diff --git a/MP.INVE/Pages/Session.razor b/MP.INVE/Pages/Session.razor index ae5f8eda..13318d17 100644 --- a/MP.INVE/Pages/Session.razor +++ b/MP.INVE/Pages/Session.razor @@ -26,6 +26,10 @@ @item.InveSessID + + @item.Description @@ -53,4 +57,26 @@ + + + + + \ No newline at end of file diff --git a/MP.INVE/Pages/Session.razor.cs b/MP.INVE/Pages/Session.razor.cs index 92a8377d..a35569bb 100644 --- a/MP.INVE/Pages/Session.razor.cs +++ b/MP.INVE/Pages/Session.razor.cs @@ -31,25 +31,59 @@ namespace MP.INVE.Pages protected override async Task OnInitializedAsync() { //await FilterChanged.InvokeAsync(actFilter); - //await getId(); + await getId(); await Task.Delay(1); elencoSessioni = MIDataservice.InventSessCurrList(); } -#if false + protected override async Task OnAfterRenderAsync(bool firstRender) + { + if (firstRender) + { + await JSRuntime.InvokeVoidAsync("clearContent", $"qrCodeImg_{101}"); + await JSRuntime.InvokeVoidAsync("displayQr", $"qrCodeImg_{101}", rawCode); + } + } + protected string BaseUrlTab { get => $"{Configuration["ServerConf:BaseUrlJumper"]}"; } + private int idOperatore { get; set; } = 0; + private int currIdSess { get; set; } = 0; + private string authKey { get; set; } = ""; + + protected string rawCode + { + get + { + string answ = ""; + answ = $"{BaseUrlTab}IdSessione={currIdSess}&MatrOpr={idOperatore}&UserAuthKey={authKey}"; + return answ; + } + } + + + protected void getCurrSess(int idSess) + { + currIdSess = idSess; + } + + [Inject] + private IConfiguration Configuration { get; set; } = null!; [Inject] protected ILocalStorageService localStorage { get; set; } = null!; [Inject] protected NavigationManager NavManager { get; set; } = null!; + [Inject] + protected IJSRuntime JSRuntime { get; set; } = null!; + + protected async Task getId() { OperatoreDTO local = new OperatoreDTO(); local = await localStorage.GetItemAsync("MatrOpr"); - if ((local == null)) + if(local != null) { - NavManager.NavigateTo("OperatoreLogin"); + idOperatore = local.MatrOpr; + authKey = local.hashAuthKey; } } -#endif } } \ No newline at end of file diff --git a/MP.INVE/Resources/ChangeLog.html b/MP.INVE/Resources/ChangeLog.html index 0742b597..c57285e7 100644 --- a/MP.INVE/Resources/ChangeLog.html +++ b/MP.INVE/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOINVE -

Versione: 6.16.2211.1617

+

Versione: 6.16.2211.1618


Note di rilascio: