Fix selettore IN/OUT timbrature
This commit is contained in:
@@ -51,9 +51,10 @@
|
||||
<input type="datetime-local" @bind="@DataRif"></input>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<div class="custom-control custom-switch">
|
||||
@* <div class="custom-control custom-switch">
|
||||
<input type="checkbox" class="custom-control-input" id="switchEntrata" checked="@IsUscita" title="Ingresso /Uscrita" @bind-value="@IsUscita"> <label class="custom-control-label small" for="switchEntrata">@txtMsgInOut</label>
|
||||
</div>
|
||||
</div> *@
|
||||
<Toggler SelFilter="@ToggleData" FilterChanged="evToggled"></Toggler>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button @onclick="DoAdd" class="btn w-100 btn-sm btn-primary"><i class="fas fa-calendar-plus"></i></button>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>4.1.2507.0307</Version>
|
||||
<Version>4.1.2507.1518</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GPW - Gestione Presenze Web</i>
|
||||
<h4>Versione: 4.1.2507.0307</h4>
|
||||
<h4>Versione: 4.1.2507.1518</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
4.1.2507.0307
|
||||
4.1.2507.1518
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>4.1.2507.0307</version>
|
||||
<version>4.1.2507.1518</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user