50d65eebaa
- renaming classi gestione DbModels in - spostamento anagrafica flussi da auth a generale
71 lines
2.0 KiB
C#
71 lines
2.0 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_TAB3;
|
|
using MP_TAB3.Shared;
|
|
using MP_TAB3.Components;
|
|
using MP.Data;
|
|
using MP.Data.DbModels;
|
|
using MP.Data.DTO;
|
|
using MP.Data.Services;
|
|
using Newtonsoft.Json;
|
|
using NLog;
|
|
using Microsoft.Extensions.Primitives;
|
|
|
|
namespace MP_TAB3.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))
|
|
{
|
|
if (CodArticolo != codArticoloLast || IdxOdl != idxOdlLast || CodGruppo!=codGruppoLast)
|
|
{
|
|
codArticoloLast = CodArticolo;
|
|
idxOdlLast = IdxOdl;
|
|
codGruppoLast = CodGruppo;
|
|
await ReloadData();
|
|
}
|
|
}
|
|
}
|
|
private int idxOdlLast = 0;
|
|
private string codArticoloLast = "";
|
|
private string codGruppoLast = "";
|
|
|
|
[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>();
|
|
}
|
|
} |