From eb115333382db6dbf94f1e651afeed209e081c05 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Fri, 21 Oct 2022 12:51:52 +0200 Subject: [PATCH] display filtri attivi fine --- MP.SPEC/Components/DossiersFilter.razor | 24 +++++++++++++++++--- MP.SPEC/Components/DossiersFilter.razor.cs | 13 ++++++++++- MP.SPEC/Components/ParamsFilter.razor | 26 ++++++++++------------ MP.SPEC/Components/ParamsFilter.razor.cs | 21 ++++++++++++----- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Pages/ODL.razor | 24 +++++++++++++++++--- MP.SPEC/Pages/ODL.razor.cs | 12 ++++++++++ MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 10 files changed, 97 insertions(+), 31 deletions(-) diff --git a/MP.SPEC/Components/DossiersFilter.razor b/MP.SPEC/Components/DossiersFilter.razor index 145fc9dd..d8607670 100644 --- a/MP.SPEC/Components/DossiersFilter.razor +++ b/MP.SPEC/Components/DossiersFilter.razor @@ -1,7 +1,25 @@ 
- - - +
+ @if (filtActive) + { +
+ @**@ + @if (selMacchina != "*") + { + + } + @if (selArticolo != "*") + { + + } +
+ } +
+ + + +
+

FILTRI

diff --git a/MP.SPEC/Components/DossiersFilter.razor.cs b/MP.SPEC/Components/DossiersFilter.razor.cs index f5dd2bbe..98cdbe8f 100644 --- a/MP.SPEC/Components/DossiersFilter.razor.cs +++ b/MP.SPEC/Components/DossiersFilter.razor.cs @@ -38,7 +38,18 @@ namespace MP.SPEC.Components } } } - + private bool filtActive + { + get => selMacchina != "*" || selArticolo != "*"; + } + protected void resetMacchina() + { + selMacchina = "*"; + } + protected void resetArticolo() + { + selArticolo = "*"; + } protected DateTime selDtMax { get diff --git a/MP.SPEC/Components/ParamsFilter.razor b/MP.SPEC/Components/ParamsFilter.razor index 279ae55d..a6cfe239 100644 --- a/MP.SPEC/Components/ParamsFilter.razor +++ b/MP.SPEC/Components/ParamsFilter.razor @@ -3,13 +3,13 @@
@if (!liveUpdate) { - } else { - @@ -41,19 +41,17 @@
@if (filtActive) { -
- @**@ - @if (selMacchina != "*") - { - - } - @if (selFlux != "*") - { - - } -
+ @**@ + @if (selMacchina != "*") + { + + } + @if (selFlux != "*") + { + + } } -
+
diff --git a/MP.SPEC/Components/ParamsFilter.razor.cs b/MP.SPEC/Components/ParamsFilter.razor.cs index 0aed527a..c29423a6 100644 --- a/MP.SPEC/Components/ParamsFilter.razor.cs +++ b/MP.SPEC/Components/ParamsFilter.razor.cs @@ -211,6 +211,14 @@ namespace MP.SPEC.Components aTimer.Enabled = true; aTimer.Start(); } + protected void resetMacchina() + { + selMacchina = "*"; + } + protected void resetFase() + { + selFlux = "*"; + } protected async Task takeSnapshot() { @@ -234,18 +242,19 @@ namespace MP.SPEC.Components selDtMax = null; } - protected async Task toggleUpdate() + protected async Task notLive() { - liveUpdate = !liveUpdate; + liveUpdate = false; await Task.Delay(1); if (!liveUpdate) { lastUpdate = $"{DateTime.Now:yyyy/MM/dd HH:mm:ss}"; } - else - { - selDtMax = null; - } + } + protected async Task live() + { + liveUpdate = true; + await Task.Delay(1); } #endregion Protected Methods diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index b871039a..ae517e0b 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2210.2110 + 6.16.2210.2112 diff --git a/MP.SPEC/Pages/ODL.razor b/MP.SPEC/Pages/ODL.razor index e1d49972..b31a35a4 100644 --- a/MP.SPEC/Pages/ODL.razor +++ b/MP.SPEC/Pages/ODL.razor @@ -20,9 +20,27 @@
- - - +
+ @if (filtActive) + { +
+ @**@ + @if (selMacchina != "*") + { + + } + @if (selStato != "*") + { + + } +
+ } +
+ + + +
+

FILTRI

diff --git a/MP.SPEC/Pages/ODL.razor.cs b/MP.SPEC/Pages/ODL.razor.cs index a29dcdd0..592e6c2a 100644 --- a/MP.SPEC/Pages/ODL.razor.cs +++ b/MP.SPEC/Pages/ODL.razor.cs @@ -71,7 +71,19 @@ namespace MP.SPEC.Pages #endregion Protected Properties #region Protected Methods + private bool filtActive + { + get => selMacchina != "*" || selStato != "*"; + } + protected void resetMacchina() + { + selMacchina = "*"; + } + protected void resetFase() + { + selStato = "*"; + } protected void ForceReload(int newNum) { numRecord = newNum; diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index 84ccf39f..41ed64e1 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2210.2110

+

Versione: 6.16.2210.2112


Note di rilascio:
  • diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt index 148d3a17..611d3d51 100644 --- a/MP.SPEC/Resources/VersNum.txt +++ b/MP.SPEC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2210.2110 +6.16.2210.2112 diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml index 463051c6..a74c9b0c 100644 --- a/MP.SPEC/Resources/manifest.xml +++ b/MP.SPEC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2210.2110 + 6.16.2210.2112 https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html false