53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.Data.DbModels;
|
|
using MP.SPEC.Components.Reparti;
|
|
using MP.SPEC.Data;
|
|
using NLog.LayoutRenderers;
|
|
using static MP.Core.Objects.Enums;
|
|
using static MP.Data.Services.ExecStatsCollector;
|
|
|
|
namespace MP.SPEC.Pages
|
|
{
|
|
public partial class RepStop
|
|
{
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected MpDataService MDService { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
#if false
|
|
var rawList = MDService.MacchineGetFilt("*");
|
|
// prendo solo macchine VALIDE
|
|
SearchMacchine = rawList.Where(x => !string.IsNullOrEmpty(x.locazione)).ToList();
|
|
#endif
|
|
CurrMSE = await MDService.MseGetAll(false);
|
|
SearchFermate = MDService.AnagEventiGeneral();
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private bool isLoading = false;
|
|
private bool showFermate = false;
|
|
|
|
#if false
|
|
private List<MacchineModel> SearchMacchine = new();
|
|
#endif
|
|
private List<MappaStatoExplModel> CurrMSE = new();
|
|
List<vSelEventiBCodeModel> SearchFermate = new();
|
|
|
|
#endregion Private Fields
|
|
private void CheckSelection(List<string> listSelezione)
|
|
{
|
|
// se c'è selezione mostro elenco fermate...
|
|
showFermate = listSelezione.Count > 0;
|
|
}
|
|
}
|
|
} |