63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.Data.DatabaseModels;
|
|
using MP.SPEC.Data;
|
|
|
|
namespace MP.SPEC.Pages
|
|
{
|
|
public partial class Index
|
|
{
|
|
#region Public Properties
|
|
|
|
public List<LinkMenu>? ElencoLink { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Properties
|
|
|
|
[Inject]
|
|
protected MpDataService MDService { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected MessageService MessageService { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
// nascondo ricerca
|
|
// recupero elenco JQM
|
|
ElencoLink = await MDService.ElencoLink();
|
|
#if false
|
|
configData = await MDService.ConfigGetAll();
|
|
if (configData != null)
|
|
{
|
|
var currRec = configData.FirstOrDefault(x => x.Chiave == "AZIENDA");
|
|
if (currRec != null)
|
|
{
|
|
currAzienda = currRec.Valore;
|
|
}
|
|
}
|
|
#endif
|
|
currAzienda = await MDService.ConfigTryGet("AZIENDA");
|
|
await Task.Delay(1);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Fields
|
|
|
|
private string currAzienda = "";
|
|
|
|
#endregion Private Fields
|
|
|
|
#region Private Properties
|
|
|
|
#if false
|
|
private List<ConfigModel>? configData { get; set; } = null;
|
|
#endif
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |