69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using System.Net.Http;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Components.Authorization;
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
using Microsoft.AspNetCore.Components.Routing;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
|
using Microsoft.JSInterop;
|
|
using MP.SPEC;
|
|
using MP.SPEC.Shared;
|
|
using MP.SPEC.Components;
|
|
using MP.SPEC.Data;
|
|
|
|
namespace MP.SPEC.Pages
|
|
{
|
|
public partial class ODL
|
|
{
|
|
|
|
private List<MP.Data.DatabaseModels.ListValues>? ListStati;
|
|
|
|
[Inject]
|
|
protected IJSRuntime JSRuntime { get; set; }
|
|
|
|
[Inject]
|
|
protected MpDataService MDService { get; set; }
|
|
|
|
[Inject]
|
|
protected MessageService MessageService { get; set; }
|
|
|
|
[Inject]
|
|
protected NavigationManager NavManager { get; set; }
|
|
|
|
|
|
private bool isLoading { get; set; } = false;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await reloadData();
|
|
}
|
|
|
|
|
|
private async Task reloadData()
|
|
{
|
|
isLoading = true;
|
|
ListStati = await MDService.AnagStatiComm();
|
|
isLoading = false;
|
|
}
|
|
|
|
private bool showCurrent { get; set; } = false;
|
|
|
|
private async Task toggleCurrent()
|
|
{
|
|
showCurrent = !showCurrent;
|
|
await Task.Delay(1);
|
|
}
|
|
|
|
private string textToggle
|
|
{
|
|
get => showCurrent ? "In Corso" : "Programmati";
|
|
}
|
|
|
|
private string selStato { get; set; } = "*";
|
|
}
|
|
} |