40 lines
903 B
C#
40 lines
903 B
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.SPEC.Data;
|
|
|
|
namespace MP.SPEC.Components
|
|
{
|
|
public partial class ListOdlLotto
|
|
{
|
|
#region Public Properties
|
|
|
|
[Parameter]
|
|
public string BatchSel { get; set; } = null!;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnParametersSetAsync()
|
|
{
|
|
if (!string.IsNullOrEmpty(BatchSel))
|
|
{
|
|
elencoODL = await MDService.OdlByBatch(BatchSel);
|
|
}
|
|
else
|
|
{
|
|
elencoODL = new List<int>();
|
|
}
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Properties
|
|
|
|
private List<int> elencoODL { get; set; } = new List<int>();
|
|
|
|
[Inject]
|
|
private MpDataService MDService { get; set; } = null!;
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |