From cda14a810b33edeced20df3ec351b09aa1d0a524 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 6 Jun 2024 09:07:26 +0200 Subject: [PATCH] Modifica blocco calcolo css display --- GWMS.UI/Components/PlantOverview.razor | 30 +++++++++++------------ GWMS.UI/Components/PlantOverview.razor.cs | 18 ++++++++------ GWMS.UI/GWMS.UI.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/GWMS.UI/Components/PlantOverview.razor b/GWMS.UI/Components/PlantOverview.razor index d05505c..cee7ab8 100644 --- a/GWMS.UI/Components/PlantOverview.razor +++ b/GWMS.UI/Components/PlantOverview.razor @@ -83,22 +83,20 @@
    -
  • -
    - SERBATOIO - @if(dataIsRT) - { - - } - else - { - - } -
    -
    - Livello:@currItem.LevelAct.ToString("N0")/@currItem.LevelMax.ToString("N0") | @currItem.LevelRatio % -
    -
  • + @{ + headerStatus = deviceOnline ? "list-group-item-info" : "text-secondary"; + playCss = dataIsRT ? "text-success" : "text-danger"; + checkRTime = dataIsRT ? $"Dati Realtime aggiornati al {_currItem.LastUpdate}" : $"Mancata ricezione: ultimo aggiornamento {_currItem.LastUpdate}"; +
  • +
    + SERBATOIO + +
    +
    + Livello:@currItem.LevelAct.ToString("N0")/@currItem.LevelMax.ToString("N0") | @currItem.LevelRatio % +
    +
  • + }
  • diff --git a/GWMS.UI/Components/PlantOverview.razor.cs b/GWMS.UI/Components/PlantOverview.razor.cs index c4df451..4fbd53b 100644 --- a/GWMS.UI/Components/PlantOverview.razor.cs +++ b/GWMS.UI/Components/PlantOverview.razor.cs @@ -71,18 +71,20 @@ namespace GWMS.UI.Components [Inject] protected MessageService AppMService { get; set; } - protected string checkRTime - { - get => dataIsRT ? $"Dati Realtime aggiornati al {_currItem.LastUpdate}" : $"Mancata ricezione: ultimo aggiornamento {_currItem.LastUpdate}"; - } + protected string checkRTime; + //{ + // get => dataIsRT ? $"Dati Realtime aggiornati al {_currItem.LastUpdate}" : $"Mancata ricezione: ultimo aggiornamento {_currItem.LastUpdate}"; + //} [Inject] protected GWMSDataService DataService { get; set; } - protected string headerStatus - { - get => deviceOnline ? "list-group-item-info" : "text-secondary"; - } + protected string headerStatus; + //{ + // get => deviceOnline ? "list-group-item-info" : "text-secondary"; + //} + + protected string playCss = ""; #endregion Protected Properties diff --git a/GWMS.UI/GWMS.UI.csproj b/GWMS.UI/GWMS.UI.csproj index cdcbce6..bb69765 100644 --- a/GWMS.UI/GWMS.UI.csproj +++ b/GWMS.UI/GWMS.UI.csproj @@ -2,7 +2,7 @@ net6.0 - 1.0.2406.0608 + 1.0.2406.0609 95c9f021-52d1-4390-a670-5810b7b777b0 true true diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index fd4f1e4..5efbe92 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ GWMS - Gas Warehouse Management System -

    Versione: 1.0.2406.0608

    +

    Versione: 1.0.2406.0609


    Note di rilascio:
    • diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index b3bbe11..ca68416 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -1.0.2406.0608 +1.0.2406.0609 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index 41d64e5..8b99cc0 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 1.0.2406.0608 + 1.0.2406.0609 http://nexus.steamware.net/repository/SWS/GWMS/stable/0/GWMS.UI.zip http://nexus.steamware.net/repository/SWS/GWMS/stable/0/ChangeLog.html false