Files
mapo-core/MP-TAB-SERV/Pages/MachineDetail.razor.cs
T
Samuele Locatelli 3b3a650904 Fixed menu nav!
2023-10-03 07:55:39 +02:00

40 lines
954 B
C#

using MP.Data.DatabaseModels;
namespace MP_TAB_SERV.Pages
{
public partial class MachineDetail
{
#region Protected Properties
protected MappaStatoExpl? CurrMSE { get; set; } = null;
protected string IdxMacc { get; set; } = "";
#endregion Protected Properties
#region Protected Methods
protected override async Task OnInitializedAsync()
{
await ReloadData();
}
#endregion Protected Methods
#region Private Methods
private async Task ReloadData()
{
if (string.IsNullOrEmpty(IdxMacc))
{
IdxMacc = await MsgServ.IdxMaccGet();
// recupero MSE macchina....
if (!string.IsNullOrEmpty(IdxMacc))
{
CurrMSE = await MsgServ.GetMachineMse(IdxMacc);
}
}
}
#endregion Private Methods
}
}