From a1e86c1050bb4ee4b562ecd7456dc50de3b4cc7a Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Tue, 15 Nov 2022 09:34:23 +0100 Subject: [PATCH] Aggiunta disegno codice qr --- MP.INVE/MP.INVE.csproj | 2 +- MP.INVE/Pages/Starter.razor | 35 +- MP.INVE/Pages/_Layout.cshtml | 4 + MP.INVE/Resources/ChangeLog.html | 2 +- MP.INVE/Resources/VersNum.txt | 2 +- MP.INVE/Resources/manifest.xml | 2 +- MP.INVE/appsettings.json | 3 +- MP.INVE/wwwroot/lib/qrHelper.js | 21 + MP.INVE/wwwroot/lib/qrcode.js | 702 ++++++++++++++++++++++++++++++ MP.INVE/wwwroot/lib/qrcode.min.js | 1 + 10 files changed, 768 insertions(+), 6 deletions(-) create mode 100644 MP.INVE/wwwroot/lib/qrHelper.js create mode 100644 MP.INVE/wwwroot/lib/qrcode.js create mode 100644 MP.INVE/wwwroot/lib/qrcode.min.js diff --git a/MP.INVE/MP.INVE.csproj b/MP.INVE/MP.INVE.csproj index 28000fb5..8a05759d 100644 --- a/MP.INVE/MP.INVE.csproj +++ b/MP.INVE/MP.INVE.csproj @@ -5,7 +5,7 @@ enable enable MP.INVE - 6.16.2211.1417 + 6.16.2211.1509 diff --git a/MP.INVE/Pages/Starter.razor b/MP.INVE/Pages/Starter.razor index 75eba1b5..47b44abf 100644 --- a/MP.INVE/Pages/Starter.razor +++ b/MP.INVE/Pages/Starter.razor @@ -1,9 +1,42 @@ @page "/Starter" +@inject IJSRuntime JSRuntime

Starter

- +
+
+
+ +@**@ @code { + [Inject] + private IConfiguration Configuration { get; set; } = null!; + + 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:BaseUrl"]}"; + } + + + protected string rawCode + { + get + { + string answ = ""; + answ = $"{BaseUrlTab}MatrOpr={101}&UserAuthKey={12345}"; + return answ; + } + } + } diff --git a/MP.INVE/Pages/_Layout.cshtml b/MP.INVE/Pages/_Layout.cshtml index f3fee0c1..f7a5c3fa 100644 --- a/MP.INVE/Pages/_Layout.cshtml +++ b/MP.INVE/Pages/_Layout.cshtml @@ -58,5 +58,9 @@ }); }); + + + + diff --git a/MP.INVE/Resources/ChangeLog.html b/MP.INVE/Resources/ChangeLog.html index 84719f4a..f082f172 100644 --- a/MP.INVE/Resources/ChangeLog.html +++ b/MP.INVE/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOINVE -

Versione: 6.16.2211.1417

+

Versione: 6.16.2211.1509


Note di rilascio: