Ancora update display ST
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
<h3>TechSheet_ST_Detail</h3>
|
||||
|
||||
|
||||
@if (showWarning)
|
||||
@if (showWarning)
|
||||
{
|
||||
<div class="text-danget text-center fs-3">@txtWarning</div>
|
||||
}
|
||||
|
||||
@@ -1,5 +1,32 @@
|
||||
<div>
|
||||
@CurrRec.Value
|
||||
<div class="row">
|
||||
<div class="col-4 pr-0 text-start">
|
||||
@CurrRec.Label
|
||||
</div>
|
||||
<div class="col-8 pl-0 text-end fw-bold @dataCss @derogaCss">
|
||||
@if (CurrRec.ShowMissingData && enableForceParamSchedaTecnica)
|
||||
{
|
||||
if (hasDeroga)
|
||||
{
|
||||
<span class="text-success">Deroga Attiva</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<button class=" btn btn-sm btn-danger py-0 text-light"><i class="fa-solid fa-kit-medical"></i></button>
|
||||
}
|
||||
}
|
||||
<small>(@CurrRec.ValueRead)</small> @CurrRec.Value
|
||||
<span class="text-danger">
|
||||
|
||||
@if (showError)
|
||||
{
|
||||
<i class="fa-solid fa-triangle-exclamation"></i>
|
||||
}
|
||||
@if (showChecked)
|
||||
{
|
||||
<i class="fa-regular fa-square-check"></i>
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -20,12 +20,73 @@ using MP.Data.DTO;
|
||||
using MP.Data.Services;
|
||||
using Newtonsoft.Json;
|
||||
using NLog;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MP_TAB_SERV.Components
|
||||
{
|
||||
public partial class TechSheet_ST_ObjView
|
||||
{
|
||||
[Parameter]
|
||||
public ST_ActRow CurrRec { get; set; } = null !;
|
||||
public ST_ActRow CurrRec { get; set; } = null!;
|
||||
[Inject]
|
||||
protected SharedMemService SMServ { get; set; } = null!;
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
enableForceParamSchedaTecnica = SMServ.GetConfBool("enableForceParamSchedaTecnica");
|
||||
hasDeroga = false;
|
||||
#if false
|
||||
try
|
||||
{
|
||||
var currDeroga = DataLayerObj.getDerogaSt(idxST);
|
||||
answ = (currDeroga != null);
|
||||
if (answ)
|
||||
{
|
||||
answ = (currDeroga.CanForce && currDeroga.Num == dataNum && currDeroga.CodGruppo == dataGroup && currDeroga.CodTipo == dataType && currDeroga.Oggetto == dataOggetto);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
#endif
|
||||
}
|
||||
|
||||
private bool enableForceParamSchedaTecnica = false;
|
||||
|
||||
public string dataCss
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
if (CurrRec.Required)
|
||||
{
|
||||
if (CurrRec.Value != CurrRec.ExtCode)
|
||||
{
|
||||
answ = " text-danger";
|
||||
}
|
||||
else
|
||||
{
|
||||
answ = " text-success";
|
||||
}
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
public string derogaCss
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = enableForceParamSchedaTecnica && hasDeroga ? " bg-warning" : "";
|
||||
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private bool hasDeroga = false;
|
||||
private bool showError = false;
|
||||
private bool showChecked = false;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2310.2611</Version>
|
||||
<Version>6.16.2310.2612</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB_SERV</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2310.2611</h4>
|
||||
<h4>Versione: 6.16.2310.2612</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2310.2611
|
||||
6.16.2310.2612
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2310.2611</version>
|
||||
<version>6.16.2310.2612</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
@@ -27,5 +27,10 @@ namespace MP.Data.DatabaseModels
|
||||
public string ValueRead { get; set; } = "";
|
||||
public string Note { get; set; } = "";
|
||||
|
||||
[NotMapped]
|
||||
public bool ShowMissingData
|
||||
{
|
||||
get => Required && (Value != ExtCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user