update Filter
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user