TAB3:
- Elenco TCicli come dictionary x evitare errori
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
<select @bind="@EditRecord.TCiclo" class="form-select">
|
||||
@foreach (var item in ListTCiclo)
|
||||
{
|
||||
<option value="@item.value">@item.label</option>
|
||||
<option value="@item.Key">@item.Value</option>
|
||||
}
|
||||
</select>
|
||||
<label for="floatingComm">T.Ciclo</label>
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace MP_TAB3.Components
|
||||
/// <summary>
|
||||
/// Eventi inseribili come fermate
|
||||
/// </summary>
|
||||
private List<ListValues> ListTCiclo { get; set; } = new List<ListValues>();
|
||||
private Dictionary<decimal, string> ListTCiclo { get; set; } = new Dictionary<decimal, string>();
|
||||
|
||||
private List<InsManualiModel>? ListPeriod { get; set; } = new List<InsManualiModel>();
|
||||
|
||||
@@ -419,7 +419,16 @@ namespace MP_TAB3.Components
|
||||
{
|
||||
string IdxMacc = RecMSE.IdxMacchina;
|
||||
// valori selezionabili x TCiclo
|
||||
ListTCiclo = TabDServ.ListValuesFilt("InsManuali", IdxMacc);
|
||||
var rawListTCiclo = TabDServ.ListValuesFilt("InsManuali", IdxMacc);
|
||||
ListTCiclo = new Dictionary<decimal, string>();
|
||||
foreach (var item in rawListTCiclo)
|
||||
{
|
||||
decimal chiave = 0;
|
||||
if(decimal.TryParse(item.value, out chiave))
|
||||
{
|
||||
ListTCiclo.Add(chiave, item.label);
|
||||
}
|
||||
}
|
||||
// eventi fermate
|
||||
var eventsAll = TabDServ.AnagEventiGetByMacch(IdxMacc);
|
||||
if (eventsAll != null)
|
||||
|
||||
@@ -148,14 +148,10 @@ namespace MP_TAB3.Components
|
||||
get
|
||||
{
|
||||
string answ = "text-nowrap";
|
||||
try
|
||||
{
|
||||
if (RecMSE != null && RecMSE.DescrizioneStato.Length >= 17)
|
||||
{
|
||||
answ = " scroll-left";
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2504.712</Version>
|
||||
<Version>6.16.2504.716</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB3</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2504.712</h4>
|
||||
<h4>Versione: 6.16.2504.716</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2504.712
|
||||
6.16.2504.716
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2504.712</version>
|
||||
<version>6.16.2504.716</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user