44 lines
1.2 KiB
C#
44 lines
1.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.SPEC;
|
|
using MP.SPEC.Shared;
|
|
using MP.SPEC.Components;
|
|
using MP.SPEC.Data;
|
|
|
|
namespace MP.SPEC.Components
|
|
{
|
|
public partial class ListOdlLotto
|
|
{
|
|
|
|
[Parameter]
|
|
public string BatchSel { get; set; } = null!;
|
|
|
|
private List<int> elencoODL { get; set; } = new List<int>();
|
|
|
|
|
|
[Inject]
|
|
private MpDataService MDService { get; set; } = null!;
|
|
protected override async Task OnParametersSetAsync()
|
|
{
|
|
if (!string.IsNullOrEmpty(BatchSel))
|
|
{
|
|
elencoODL = await MDService.OdlByBatch(BatchSel);
|
|
}
|
|
else
|
|
{
|
|
elencoODL = new List<int>();
|
|
}
|
|
}
|
|
}
|
|
} |