39 lines
969 B
C#
39 lines
969 B
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 void OnInitialized()
|
|
{
|
|
var rawList = MDService.MacchineGetFilt("*");
|
|
// prendo solo macchine VALIDE
|
|
SearchRecords = rawList.Where(x => !string.IsNullOrEmpty(x.locazione)).ToList();
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private bool isLoading = false;
|
|
|
|
private List<MacchineModel> SearchRecords = new();
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |