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 listOperatori = new List(); #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 } }