Files
mapo-core/MP-TAB3/Components/TechSheet_ST_Detail.razor.cs
T
2023-12-18 11:36:24 +01:00

62 lines
1.6 KiB
C#

using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
using global::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_TAB_SERV;
using MP_TAB_SERV.Shared;
using MP_TAB_SERV.Components;
using MP.Data;
using MP.Data.DatabaseModels;
using MP.Data.DTO;
using MP.Data.Services;
using Newtonsoft.Json;
using NLog;
using Microsoft.Extensions.Primitives;
namespace MP_TAB_SERV.Components
{
public partial class TechSheet_ST_Detail
{
[Parameter]
public string CodArticolo { get; set; } = "";
[Parameter]
public string CodGruppo { get; set; } = "";
[Parameter]
public int IdxOdl { get; set; } = 0;
private bool showWarning = false;
private string txtWarning = "";
protected override async Task OnParametersSetAsync()
{
if (IdxOdl > 0 && !string.IsNullOrEmpty(CodGruppo))
{
await ReloadData();
}
}
[Inject]
protected TabDataService TabServ { get; set; } = null!;
private async Task ReloadData()
{
await Task.Delay(1);
ListRecord = await TabServ.STAR_byGrpOdl(CodGruppo, IdxOdl);
}
protected List<ST_ActRow> ListRecord { get; set; } = new List<ST_ActRow>();
}
}