update Filter

This commit is contained in:
zaccaria.majid
2022-10-06 13:10:12 +02:00
parent 81fd2820df
commit 5b12ac47d3
2 changed files with 18 additions and 8 deletions
+4 -5
View File
@@ -94,10 +94,10 @@
{
<div class="px-0 py-1">
<div class="px-2 input-group">
@if (selDtMax == null)
@if (selDt)
{
<button class="btn btn-primary" @onclick="() => setDtMax()"><i class="fa-regular fa-calendar-check"></i></button>
<button class="btn btn-primary btn-block" @onclick="toggleSelDt" title="Hide Parameters">OPEN</button>
}
else
{
@@ -105,8 +105,7 @@
<input class="form-control" @bind="@selDtMin" type="datetime-local" title="Data minima eventi da visualizzare">
<label class="input-group-text" for="flusso" title="Selezionare la data massima eventi da visualizzare"><i class="fa-regular fa-calendar-plus"></i></label>
<input class="form-control" @bind="@selDtMax" type="datetime-local" title="Selezionare la data massima eventi da visualizzare">
<button class="btn btn-primary" @onclick="() => untoggleSelDt()"><i class="fa-regular fa-calendar-check"></i></button>
<button class="btn btn-primary btn-block" @onclick="untoggleSelDt" title="Hide Parameters">CLOSE</button>
}
</div>
</div>
+14 -3
View File
@@ -186,14 +186,14 @@ namespace MP.SPEC.Components
// copio il filtro
var currFilt = SelFilter;
// fermo update
currFilt.LiveUpdate = false;
//currFilt.LiveUpdate = false;
currFilt.CurrPage = 0;
currFilt.lastUpdate = $"{DateTime.Now:yyyy/MM/dd HH:mm:ss}";
currFilt.dtMax = RoundDatetime(5);
currFilt.dtMin = RoundDatetime(5).AddHours(-numOreAnticipoSnapshot);
SelFilter = currFilt;
}
protected void startTimer()
{
@@ -318,9 +318,20 @@ namespace MP.SPEC.Components
}
private void untoggleSelDt()
{
selDt = true;
selDt = false;
liveUpdate = true;
}
private void toggleSelDt()
{
selDt = true;
liveUpdate = false;
if (selDtMax == null)
{
setDtMax();
}
}
#endregion Private Methods
}