From d92ee756ccc1f2c76b65daae40355f2ccd9d5577 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 15 Jul 2025 18:14:08 +0200 Subject: [PATCH] Fix selettore IN/OUT timbrature --- .../Components/Compo/TimbrEditor.razor | 5 +++-- .../Components/Compo/TimbrEditor.razor.cs | 19 +++++++++++++++++++ GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj | 2 +- Resources/ChangeLog.html | 2 +- Resources/VersNum.txt | 2 +- Resources/manifest.xml | 2 +- 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor b/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor index db9f434..a8f2693 100644 --- a/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor +++ b/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor @@ -51,9 +51,10 @@
-
+ @*
-
+
*@ +
diff --git a/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs b/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs index ece1c86..d7fe681 100644 --- a/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs +++ b/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs @@ -3,6 +3,7 @@ using GPW.CORE.Data.Services; using GPW.CORE.WRKLOG.Components.Pages; using Microsoft.AspNetCore.Components; using Microsoft.JSInterop; +using static EgwCoreLib.Razor.Toggler; namespace GPW.CORE.WRKLOG.Components.Compo { @@ -32,6 +33,23 @@ namespace GPW.CORE.WRKLOG.Components.Compo #region Protected Fields + private SelectGlobalToggle ToggleData { get; set; } = new SelectGlobalToggle(); + private void initToggler() + { + ToggleData = new SelectGlobalToggle() + { + leftString = "Entrata", + rightString = "Uscita", + placardCss = "bg-light border-light text-dark", + }; + } + private async Task evToggled(SelectGlobalToggle newTogData) + { + ToggleData = newTogData; + IsUscita = ToggleData.isActive; + await Task.Delay(1); + } + protected bool vetoUpd = false; #endregion Protected Fields @@ -203,6 +221,7 @@ namespace GPW.CORE.WRKLOG.Components.Compo protected override async Task OnInitializedAsync() { + initToggler(); await ReloadData(); } diff --git a/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj b/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj index 954b59b..d0b488f 100644 --- a/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj +++ b/GPW.CORE.WRKLOG/GPW.CORE.WRKLOG.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 4.1.2507.0307 + 4.1.2507.1518 diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html index 4691328..856351f 100644 --- a/Resources/ChangeLog.html +++ b/Resources/ChangeLog.html @@ -1,6 +1,6 @@ GPW - Gestione Presenze Web -

Versione: 4.1.2507.0307

+

Versione: 4.1.2507.1518


Note di rilascio:
  • diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt index 4f0d370..a582b32 100644 --- a/Resources/VersNum.txt +++ b/Resources/VersNum.txt @@ -1 +1 @@ -4.1.2507.0307 +4.1.2507.1518 diff --git a/Resources/manifest.xml b/Resources/manifest.xml index c7baa77..a1cfd5a 100644 --- a/Resources/manifest.xml +++ b/Resources/manifest.xml @@ -1,6 +1,6 @@ - 4.1.2507.0307 + 4.1.2507.1518 http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html false