diff --git a/Test.UI/Components/Pages/Aedifica.razor.cs b/Test.UI/Components/Pages/Aedifica.razor.cs
index b9e26a7..ad4b949 100644
--- a/Test.UI/Components/Pages/Aedifica.razor.cs
+++ b/Test.UI/Components/Pages/Aedifica.razor.cs
@@ -10,7 +10,7 @@ namespace Test.UI.Components.Pages
{
private string subChannel = "";
- private string CalcUid = "Pizza";
+ private string CalcUid = "TestBeam";
private string currSvg = "";
private string apiUrl = "";
private string calcTag = "";
diff --git a/WebAedificaConfigurator/WebAedificaMaker.razor b/WebAedificaConfigurator/WebAedificaMaker.razor
index 1b3f7b2..d5acd60 100644
--- a/WebAedificaConfigurator/WebAedificaMaker.razor
+++ b/WebAedificaConfigurator/WebAedificaMaker.razor
@@ -1,4 +1,5 @@
-
+@using Microsoft.AspNetCore.Components.Forms
+
diff --git a/WebAedificaConfigurator/WebAedificaMaker.razor.cs b/WebAedificaConfigurator/WebAedificaMaker.razor.cs
index 385cbf2..02c84bd 100644
--- a/WebAedificaConfigurator/WebAedificaMaker.razor.cs
+++ b/WebAedificaConfigurator/WebAedificaMaker.razor.cs
@@ -1,6 +1,9 @@
using Microsoft.AspNetCore.Components;
+using Microsoft.AspNetCore.Components.Forms;
+using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -14,7 +17,7 @@ namespace WebAedificaConfigurator
string m_sSvg = "";
[Parameter]
- public EventCallback
> EC_OnSave { get; set; }
+ public EventCallback> EC_OnSave { get; set; }
[Parameter]
public string CssSvg { get; set; } = "responsive-svg";
@@ -32,12 +35,37 @@ namespace WebAedificaConfigurator
///
protected async Task DoSave()
{
- Dictionary Args = new Dictionary();
+ Dictionary Args = new Dictionary();
Args.Add("FilePath", m_FilePath);
Args.Add("Mode", 1.ToString());
await EC_OnSave.InvokeAsync(Args);
}
+ ///
+ /// Esegue lettura file + invio richiesta specifica
+ ///
+ ///
+ ///
+
+ private async Task UploadFile(InputFileChangeEventArgs e)
+ {
+
+ Dictionary Args = new Dictionary();
+
+ // leggo il contenuto del PRIMO (singolo) file
+ IBrowserFile file = e.File;
+ // limite file size (e.g., 5 MB)
+ var maxAllowedSize = 1024 * 1024;
+
+ using var stream = file.OpenReadStream(maxAllowedSize);
+ using var reader = new StreamReader(stream);
+ string rawContent = await reader.ReadToEndAsync();
+ Args.Add("Btl", rawContent);
+ // da sostituire con Enums.EngineQueryType.Preview
+ Args.Add("Mode", "1");
+ await EC_OnSave.InvokeAsync(Args);
+ }
+
///
/// Componente SVG da mostrare
///
diff --git a/WebWindow.Base/WebWindow.Base.csproj b/WebWindow.Base/WebWindow.Base.csproj
index b5686b0..3125f61 100644
--- a/WebWindow.Base/WebWindow.Base.csproj
+++ b/WebWindow.Base/WebWindow.Base.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 2.7.9.1217
+ 2.7.9.1313
Annamaria Sassi
Egalware
Componente gestione JWD per LUX
@@ -21,3 +21,5 @@
+
+
diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj
index 00c81a7..51fa38f 100644
--- a/WebWindowComplex/WebWindowComplex.csproj
+++ b/WebWindowComplex/WebWindowComplex.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 2.7.9.1217
+ 2.7.9.1313
Annamaria Sassi
Egalware
Componente gestione Configurazioni avanzate Window per LUX
@@ -35,3 +35,5 @@
+
+
diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj
index 61c9846..eb9269d 100644
--- a/WebWindowConfigurator/WebWindowConfigurator.csproj
+++ b/WebWindowConfigurator/WebWindowConfigurator.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 2.7.9.1217
+ 2.7.9.1313
Annamaria Sassi
Egalware
Componente gestione JWD per LUX
@@ -46,3 +46,5 @@
+
+