diff --git a/GWMS.Data/IobObjects.cs b/GWMS.Data/IobObjects.cs index 79eb868..346c4be 100644 --- a/GWMS.Data/IobObjects.cs +++ b/GWMS.Data/IobObjects.cs @@ -191,6 +191,40 @@ namespace GWMS.Data /// public string name { get; set; } = ""; + /// + /// Wrapper valore richiesto come decimal + /// + public decimal reqValDec + { + get + { + decimal answ = 0; + decimal.TryParse(reqValue, out answ); + return answ; + } + set + { + reqValue = $"{value}"; + } + } + + /// + /// Wrapper valore richiesto come INT + /// + public int reqValInt + { + get + { + int answ = 0; + int.TryParse(reqValue, out answ); + return answ; + } + set + { + reqValue = $"{value}"; + } + } + /// /// Indica il NUOVO valore richiesto x l'item /// diff --git a/GWMS.UI/Controllers/IOBController.cs b/GWMS.UI/Controllers/IOBController.cs index c3fcb0a..1fa1a22 100644 --- a/GWMS.UI/Controllers/IOBController.cs +++ b/GWMS.UI/Controllers/IOBController.cs @@ -671,6 +671,7 @@ namespace GWMS.UI.Controllers /// /// ID dell'IOB /// + [HttpGet("getObjItems2Write/{id}")] public async Task getObjItems2Write(string id) { string answ = ""; diff --git a/GWMS.UI/GWMS.UI.csproj b/GWMS.UI/GWMS.UI.csproj index 6840463..dabfe24 100644 --- a/GWMS.UI/GWMS.UI.csproj +++ b/GWMS.UI/GWMS.UI.csproj @@ -2,7 +2,7 @@ net5.0 - 1.0.2110.2319 + 1.0.2110.2510 95c9f021-52d1-4390-a670-5810b7b777b0 true true diff --git a/GWMS.UI/Pages/PlantParameters.razor b/GWMS.UI/Pages/PlantParameters.razor index ddc1d0d..c61fc50 100644 --- a/GWMS.UI/Pages/PlantParameters.razor +++ b/GWMS.UI/Pages/PlantParameters.razor @@ -43,7 +43,7 @@ @if (currRecord != null) { Editor parametri - @**@ + } @if (ListRecords == null) { @@ -60,25 +60,49 @@ + + @* - *@ + *@ @foreach (var record in ListRecords) { + +
Cod Parametro Valore attuale/richiesto Update Last messageCarico Ordine Ordine
+ @if (record.writable) + { + if (currRecord == null) + { + + } + else + { + + } + } + -
@record.name
@record.uid
-
@record.value
-
@record.reqValue
+
@record.name
+
+ @record.value + @if (!string.IsNullOrEmpty(record.reqValue)) + { + @record.reqValue + } @record.lastRead.ToString("yyyy.MM.dd hh:mm:ss") diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 70bfadd..8f9a319 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ GWMS - Gas Warehouse Management System -

Versione: 1.0.2110.2319

+

Versione: 1.0.2110.2510


Note di rilascio:
  • diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index 648be46..d368be6 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -1.0.2110.2319 +1.0.2110.2510 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index f671a59..99b9b5d 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 1.0.2110.2319 + 1.0.2110.2510 http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html false