@@ -266,6 +267,20 @@
protected override async Task OnInitializedAsync()
{
await ReloadAllData();
+ await JSRuntime.InvokeVoidAsync("displayQr", "qrCodeImg", rawCode);
+ }
+
+ protected string rawCode
+ {
+ get
+ {
+ string answ = "";
+ if (_currItem != null)
+ {
+ answ = _currItem.OrderCode;
+ }
+ return answ;
+ }
}
protected async Task ReloadAllData()
@@ -290,17 +305,17 @@
return q[parmName] ?? "";
}
- ///
- /// Restituisce URL immagine QRCode
- ///
- ///
Parametro da renderizzare con QRCode
- ///
- protected string getImgUrl(object QrValue)
- {
- string baseUrl = $"{Configuration["ZCodeUrl"]}/HOME/QR_site/JSON?val=";
- string payload = "{'baseUrl':'{0}','parameters':['" + $"{QrValue}" + "']}";
- string answ = $"{baseUrl}{payload}";
- return answ;
- }
+ /////
+ ///// Restituisce URL immagine QRCode
+ /////
+ /////
Parametro da renderizzare con QRCode
+ /////
+ //protected string getImgUrl(object QrValue)
+ //{
+ // string baseUrl = $"{Configuration["ZCodeUrl"]}/HOME/QR_site/JSON?val=";
+ // string payload = "{'baseUrl':'{0}','parameters':['" + $"{QrValue}" + "']}";
+ // string answ = $"{baseUrl}{payload}";
+ // return answ;
+ //}
}
\ No newline at end of file
diff --git a/GWMS.UI/Components/OrderSupplierEditor.razor b/GWMS.UI/Components/OrderSupplierEditor.razor
index 2b25657..a01a74d 100644
--- a/GWMS.UI/Components/OrderSupplierEditor.razor
+++ b/GWMS.UI/Components/OrderSupplierEditor.razor
@@ -8,6 +8,7 @@
@inject MessageService AppMService
@inject GWMSDataService DataService
@inject IConfiguration Configuration
+@inject IJSRuntime JSRuntime