From f1d7b4fd32031e670e33ab22c24946bc4d0a69d3 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 26 Feb 2024 08:34:15 +0100 Subject: [PATCH] Update grafico display blocchi --- MP-TAB3/Components/MachineBlock.razor | 4 +- MP-TAB3/Components/MachineBlock.razor.cs | 51 ++++++++++++++++++++++++ MP-TAB3/MP-TAB3.csproj | 2 +- MP-TAB3/Resources/ChangeLog.html | 2 +- MP-TAB3/Resources/VersNum.txt | 2 +- MP-TAB3/Resources/manifest.xml | 2 +- 6 files changed, 57 insertions(+), 6 deletions(-) diff --git a/MP-TAB3/Components/MachineBlock.razor b/MP-TAB3/Components/MachineBlock.razor index ac8363c7..c5feda72 100644 --- a/MP-TAB3/Components/MachineBlock.razor +++ b/MP-TAB3/Components/MachineBlock.razor @@ -33,7 +33,7 @@ else { if (Width > 640) { -
+
@RecMSE.CodMacchina
@@ -92,7 +92,7 @@ else } else { -
+
@RecMSE.CodMacchina
diff --git a/MP-TAB3/Components/MachineBlock.razor.cs b/MP-TAB3/Components/MachineBlock.razor.cs index 644f153c..1cd45001 100644 --- a/MP-TAB3/Components/MachineBlock.razor.cs +++ b/MP-TAB3/Components/MachineBlock.razor.cs @@ -81,6 +81,57 @@ namespace MP_TAB3.Components #endregion Public Methods + protected string overlayCss + { + get + { + string answ = ""; + if (RecMSE != null) + { + answ = RecMSE.Semaforo == "sGr" ? "bg-dark opacity-50" : ""; + } + return answ; + } + } + protected string borderCss + { + get + { + string answ = "border-2"; + if (RecMSE != null) + { + switch (RecMSE.Semaforo) + { + case "sGi": + answ += " border-warning"; + break; + + case "sRo": + answ += " border-danger"; + break; + + + case "sGr": + answ += " border-dark"; + break; + + //case "sBl": + // answ += " border-primary"; + // break; + + //case "sVe": + // answ += " border-success"; + // break; + + default: + answ += " border-secondary"; + break; + } + } + return answ; + } + } + #region Protected Fields protected string baseCss = "sem"; diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index cc2ea681..a267f372 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2402.2412 + 6.16.2402.2608 enable MP_TAB3 diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 84c7f083..c8c9f431 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2402.2412

+

Versione: 6.16.2402.2608


Note di rilascio:
  • diff --git a/MP-TAB3/Resources/VersNum.txt b/MP-TAB3/Resources/VersNum.txt index 47bbd192..83b65a12 100644 --- a/MP-TAB3/Resources/VersNum.txt +++ b/MP-TAB3/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2402.2412 +6.16.2402.2608 diff --git a/MP-TAB3/Resources/manifest.xml b/MP-TAB3/Resources/manifest.xml index 3fec1f64..8c11ca8a 100644 --- a/MP-TAB3/Resources/manifest.xml +++ b/MP-TAB3/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2402.2412 + 6.16.2402.2608 https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html false