85 lines
2.2 KiB
C#
85 lines
2.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Components;
|
|
using System.Net.Http;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Components.Authorization;
|
|
using Microsoft.AspNetCore.Components.Forms;
|
|
using Microsoft.AspNetCore.Components.Routing;
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using Microsoft.AspNetCore.Components.Web.Virtualization;
|
|
using Microsoft.JSInterop;
|
|
using MP.INVE;
|
|
using MP.INVE.Shared;
|
|
using MP.INVE.Components;
|
|
using MP.Data.DatabaseModels;
|
|
using MP.INVE.Data;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace MP.INVE.Pages
|
|
{
|
|
public partial class OperatoreQR
|
|
{
|
|
[Inject]
|
|
protected MiDataService MIService { get; set; } = null!;
|
|
[Inject]
|
|
protected IJSRuntime JSRuntime { get; set; } = null!;
|
|
[Inject]
|
|
private IConfiguration Configuration { get; set; } = null!;
|
|
|
|
protected List<AnagOperatoriModel> listOperatori = new List<AnagOperatoriModel>();
|
|
|
|
protected SelectQrOperatoreParams currParams = new SelectQrOperatoreParams();
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await Task.Delay(1);
|
|
}
|
|
|
|
private int totalCount
|
|
{
|
|
get => currParams.TotCount;
|
|
set
|
|
{
|
|
if (currParams.TotCount != value)
|
|
{
|
|
currParams.TotCount = value;
|
|
}
|
|
}
|
|
}
|
|
private int numRecord
|
|
{
|
|
get => currParams.NumRec;
|
|
set
|
|
{
|
|
if (currParams.NumRec != value)
|
|
{
|
|
currParams.NumRec = value;
|
|
}
|
|
}
|
|
}
|
|
private int currPage
|
|
{
|
|
get => currParams.CurrPage;
|
|
set
|
|
{
|
|
if (currParams.CurrPage != value)
|
|
{
|
|
currParams.CurrPage = value;
|
|
}
|
|
}
|
|
}
|
|
protected void ForceReload(int newNum)
|
|
{
|
|
numRecord = newNum;
|
|
}
|
|
|
|
protected void ForceReloadPage(int newNum)
|
|
{
|
|
currPage = newNum;
|
|
}
|
|
private bool isLoading { get; set; } = false;
|
|
}
|
|
} |