Files
mapo-core/MP.INVE/Pages/OperatoreQR.razor.cs
Samuele E. Locatelli 50d65eebaa MP.DATA, riorganizzazioni varie:
- renaming classi gestione DbModels in
- spostamento anagrafica flussi da auth a generale
2025-03-08 10:40:09 +01:00

97 lines
2.2 KiB
C#

using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using MP.Data.DbModels;
using MP.INVE.Data;
namespace MP.INVE.Pages
{
public partial class OperatoreQR
{
#region Protected Fields
protected SelectQrOperatoreParams currParams = new SelectQrOperatoreParams();
protected List<AnagOperatoriModel> listOperatori = new List<AnagOperatoriModel>();
#endregion Protected Fields
#region Protected Properties
[Inject]
protected IJSRuntime JSRuntime { get; set; } = null!;
[Inject]
protected MiDataService MIService { get; set; } = null!;
#endregion Protected Properties
#region Protected Methods
protected void ForceReload(int newNum)
{
numRecord = newNum;
}
protected void ForceReloadPage(int newNum)
{
currPage = newNum;
}
protected override async Task OnInitializedAsync()
{
await Task.Delay(1);
}
#endregion Protected Methods
#region Private Properties
[Inject]
private IConfiguration Configuration { get; set; } = null!;
private int currPage
{
get => currParams.CurrPage;
set
{
if (currParams.CurrPage != value)
{
currParams.CurrPage = value;
}
}
}
private bool isLoading { get; set; } = false;
private int numRecord
{
get => currParams.NumRec;
set
{
if (currParams.NumRec != value)
{
currParams.NumRec = value;
}
}
}
protected void UpdateTotCount(int newTotCount)
{
totalCount = newTotCount;
}
private int totalCount { get; set; } = 0;
//{
// get => currParams.TotCount;
// set
// {
// if (currParams.TotCount != value)
// {
// currParams.TotCount = value;
// }
// }
//}
#endregion Private Properties
}
}