completo pagina prameterEdit
This commit is contained in:
@@ -191,6 +191,40 @@ namespace GWMS.Data
|
||||
/// </summary>
|
||||
public string name { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Wrapper valore richiesto come decimal
|
||||
/// </summary>
|
||||
public decimal reqValDec
|
||||
{
|
||||
get
|
||||
{
|
||||
decimal answ = 0;
|
||||
decimal.TryParse(reqValue, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
reqValue = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Wrapper valore richiesto come INT
|
||||
/// </summary>
|
||||
public int reqValInt
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
int.TryParse(reqValue, out answ);
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
reqValue = $"{value}";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Indica il NUOVO valore richiesto x l'item
|
||||
/// </summary>
|
||||
|
||||
@@ -671,6 +671,7 @@ namespace GWMS.UI.Controllers
|
||||
/// </summary>
|
||||
/// <param name="id">ID dell'IOB</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("getObjItems2Write/{id}")]
|
||||
public async Task<string> getObjItems2Write(string id)
|
||||
{
|
||||
string answ = "";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Version>1.0.2110.2319</Version>
|
||||
<Version>1.0.2110.2510</Version>
|
||||
<UserSecretsId>95c9f021-52d1-4390-a670-5810b7b777b0</UserSecretsId>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
@if (currRecord != null)
|
||||
{
|
||||
<i>Editor parametri</i>
|
||||
@*<OrderAdminEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData" SupplierId="@currRecord.SupplierId"></OrderAdminEditor>*@
|
||||
<ParamEditor currItem="@currRecord" DataReset="ResetData" DataUpdated="UpdateData" IdxMacchina="@SelPlantCode"></ParamEditor>
|
||||
}
|
||||
@if (ListRecords == null)
|
||||
{
|
||||
@@ -60,25 +60,49 @@
|
||||
<table class="table table-sm table-striped table-responsive-lg">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Cod</th>
|
||||
<th>Parametro</th>
|
||||
<th>Valore attuale/richiesto</th>
|
||||
<th>Update</th>
|
||||
<th class="text-right">Last message</th>
|
||||
@*<th class="text-right">Carico <i class="fas fa-truck-moving"></i></th>
|
||||
<th class="text-right">Ordine <i class="fas fa-file"></i></th>*@
|
||||
<th class="text-right">Ordine <i class="fas fa-file"></i></th>*@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var record in ListRecords)
|
||||
{
|
||||
<tr class="@checkSelect(@record.uid)">
|
||||
<td class="text-nowrap">
|
||||
@if (record.writable)
|
||||
{
|
||||
if (currRecord == null)
|
||||
{
|
||||
<button class="btn btn-sm btn-info" @onclick="() => Edit(record)">
|
||||
<span class="oi oi-pencil"></span>
|
||||
</button>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button class="btn btn-sm btn-secondary disabled">
|
||||
<i class="oi oi-pencil"></i>
|
||||
</button>
|
||||
}
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.name</div>
|
||||
<div class="small">@record.uid</div>
|
||||
</td>
|
||||
<td>
|
||||
<div>@record.value</div>
|
||||
<div class="small">@record.reqValue</div>
|
||||
<div>@record.name</div>
|
||||
</td>
|
||||
<td>
|
||||
<b>@record.value</b>
|
||||
@if (!string.IsNullOrEmpty(record.reqValue))
|
||||
{
|
||||
<span class="small text-info"> <i class="fas fa-arrow-left"></i> @record.reqValue</span>
|
||||
}
|
||||
</td>
|
||||
<td>@record.lastRead.ToString("yyyy.MM.dd hh:mm:ss")</td>
|
||||
<td>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GWMS - Gas Warehouse Management System</i>
|
||||
<h4>Versione: 1.0.2110.2319</h4>
|
||||
<h4>Versione: 1.0.2110.2510</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.0.2110.2319
|
||||
1.0.2110.2510
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.0.2110.2319</version>
|
||||
<version>1.0.2110.2510</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user