52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using MP.AppAuth.Models;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MP.Land.Components
|
|
{
|
|
public partial class CompareAnagKeyVal
|
|
{
|
|
#region Public Properties
|
|
|
|
[Parameter]
|
|
public EventCallback<string> EC_reqAct { get; set; }
|
|
|
|
[Parameter]
|
|
public List<AnagKeyValueModel> ListAnagKeyValLoc { get; set; } = new List<AnagKeyValueModel>();
|
|
|
|
[Parameter]
|
|
public List<AnagKeyValueModel> ListAnagKeyValRem { get; set; } = new List<AnagKeyValueModel>();
|
|
|
|
[Parameter]
|
|
public bool ShowDetail { get; set; } = false;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Properties
|
|
|
|
protected int numLoc { get; set; } = 0;
|
|
|
|
protected int numRem { get; set; } = 0;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override void OnParametersSet()
|
|
{
|
|
numLoc = ListAnagKeyValLoc != null ? ListAnagKeyValLoc.Count : 0;
|
|
numRem = ListAnagKeyValRem != null ? ListAnagKeyValRem.Count : 0;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Report richiesta confronto x AnagKeyVal
|
|
/// </summary>
|
|
protected async Task ReqCompare()
|
|
{
|
|
await EC_reqAct.InvokeAsync("AnagKeyVal");
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
}
|
|
} |