55 lines
1.3 KiB
C#
55 lines
1.3 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.Land;
|
|
using MP.Land.Shared;
|
|
using MP.AppAuth.Models;
|
|
using MP.Land.Data;
|
|
using MP.AppAuth.Services;
|
|
|
|
namespace MP.Land.Components
|
|
{
|
|
public partial class CmpGroupFilt
|
|
{
|
|
|
|
[Inject]
|
|
protected LMessageService AppMService { get; set; }
|
|
|
|
[Inject]
|
|
protected AppAuthService DataService { get; set; }
|
|
|
|
private List<AnagraficaGruppi> ListGroups;
|
|
private string groupName
|
|
{
|
|
get
|
|
{
|
|
return AppMService.CodGruppo;
|
|
}
|
|
set
|
|
{
|
|
AppMService.CodGruppo = value;
|
|
}
|
|
}
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await ReloadData();
|
|
}
|
|
|
|
private async Task ReloadData()
|
|
{
|
|
// carico i gruppi
|
|
ListGroups = await DataService.AnagGruppiFilt("REPARTO");
|
|
}
|
|
}
|
|
} |