This commit is contained in:
2026-06-08 12:58:45 +02:00
10 changed files with 180 additions and 66 deletions

View File

@@ -190,8 +190,8 @@
@code {
[Parameter]
public string? cl { get; set; } = "";
private static bdAntifraude.db.CONCEPTOSGENERALES Concepto = new CONCEPTOSGENERALES();
private EditContext editContext = new EditContext(Concepto);
private bdAntifraude.db.CONCEPTOSGENERALES Concepto = new CONCEPTOSGENERALES();
private EditContext editContext = default!;
private HttpClient cliente = new HttpClient();
private ValidationMessageStore? messageStore;
@@ -199,11 +199,18 @@
List<ToastMessage> mensajes = new List<ToastMessage>();
public bool mostrar { get; set; } = true;
public bool mostrarBtn { get; set; } = false;
List<FieldIdentifier> listaIdentificadores = new List<FieldIdentifier>();
private void EstablecerEditContext(CONCEPTOSGENERALES nuevo)
{
Concepto = nuevo;
editContext = new EditContext(Concepto);
messageStore = new ValidationMessageStore(editContext);
listaIdentificadores.Clear();
}
protected override async Task OnInitializedAsync()
{
EstablecerEditContext(new CONCEPTOSGENERALES());
try
{
var url = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
@@ -216,6 +223,7 @@
if (string.IsNullOrEmpty(cl))
{
EstablecerEditContext(new CONCEPTOSGENERALES());
Concepto = new CONCEPTOSGENERALES();
mostrarBtn = true;
}
@@ -232,6 +240,7 @@
}
var resultContent = await response.Content.ReadAsStringAsync();
Concepto = JsonConvert.DeserializeObject<CONCEPTOSGENERALES>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
EstablecerEditContext(Concepto);
}
editContext = new EditContext(Concepto);
messageStore = new ValidationMessageStore(editContext);

View File

@@ -204,8 +204,8 @@
@code {
[Parameter]
public string? cl { get; set; } = "";
private static bdAntifraude.db.CONTRATOS iContrato = new CONTRATOS();
private EditContext editContext = new EditContext(iContrato);
private bdAntifraude.db.CONTRATOS iContrato = new CONTRATOS();
private EditContext editContext = default!;
private HttpClient cliente = new HttpClient();
private ValidationMessageStore? messageStore;
@@ -213,11 +213,19 @@
List<ToastMessage> mensajes = new List<ToastMessage>();
public bool mostrar { get; set; } = true;
public bool mostrarBtn { get; set; } = false;
List<FieldIdentifier> listaIdentificadores = new List<FieldIdentifier>();
private void EstablecerEditContext(CONTRATOS nuevo)
{
iContrato = nuevo;
editContext = new EditContext(iContrato);
messageStore = new ValidationMessageStore(editContext);
listaIdentificadores.Clear();
}
protected override async Task OnInitializedAsync()
{
EstablecerEditContext(new CONTRATOS());
try
{
var url = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
@@ -230,7 +238,9 @@
if (string.IsNullOrEmpty(cl))
{
iContrato = new CONTRATOS();
// iContrato = new CONTRATOS();
EstablecerEditContext(new CONTRATOS());
mostrarBtn = true;
}
else
@@ -244,7 +254,8 @@
throw new Exception($"Error al obtener los datos del Contrato. Código: {response.StatusCode}");
}
var resultContent = await response.Content.ReadAsStringAsync();
iContrato = JsonConvert.DeserializeObject<CONTRATOS>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
var iContrat = JsonConvert.DeserializeObject<CONTRATOS>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
EstablecerEditContext(iContrat);
}
editContext = new EditContext(iContrato);
messageStore = new ValidationMessageStore(editContext);

View File

@@ -193,8 +193,8 @@
@code {
[Parameter]
public string? cl { get; set; } = "";
private static bdAntifraude.db.CUENTASCOTIZACIONPATRONAL iCuentaContizacion = new CUENTASCOTIZACIONPATRONAL();
private EditContext editContext = new EditContext(iCuentaContizacion);
private bdAntifraude.db.CUENTASCOTIZACIONPATRONAL iCuentaContizacion = new CUENTASCOTIZACIONPATRONAL();
private EditContext editContext = default!;
private HttpClient cliente = new HttpClient();
private ValidationMessageStore? messageStore;
@@ -202,13 +202,20 @@
List<ToastMessage> mensajes = new List<ToastMessage>();
public bool mostrar { get; set; } = true;
public bool mostrarBtn { get; set; } = false;
List<FieldIdentifier> listaIdentificadores = new List<FieldIdentifier>();
private List<ENUMERACIONES> lTipoIPF = new List<ENUMERACIONES>();
private void EstablecerEditContext(CUENTASCOTIZACIONPATRONAL nuevo)
{
iCuentaContizacion = nuevo;
editContext = new EditContext(iCuentaContizacion);
messageStore = new ValidationMessageStore(editContext);
listaIdentificadores.Clear();
}
protected override async Task OnInitializedAsync()
{
EstablecerEditContext(new CUENTASCOTIZACIONPATRONAL());
try
{
var url = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
@@ -222,6 +229,7 @@
if (string.IsNullOrEmpty(cl))
{
iCuentaContizacion = new CUENTASCOTIZACIONPATRONAL();
EstablecerEditContext(new CUENTASCOTIZACIONPATRONAL());
mostrarBtn = true;
}
else
@@ -235,7 +243,8 @@
throw new Exception($"Error al obtener los datos. Código: {response.StatusCode}");
}
var resultContent = await response.Content.ReadAsStringAsync();
iCuentaContizacion = JsonConvert.DeserializeObject<CUENTASCOTIZACIONPATRONAL>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
var iCuentContizacion = JsonConvert.DeserializeObject<CUENTASCOTIZACIONPATRONAL>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
EstablecerEditContext(iCuentContizacion);
}
editContext = new EditContext(iCuentaContizacion);
messageStore = new ValidationMessageStore(editContext);

View File

@@ -111,10 +111,10 @@
@code {
[Parameter]
public string? cl { get; set; } = "";
private static bdAntifraude.db.TIPOSPUESTOSTRABAJO puestoTrabajo = new TIPOSPUESTOSTRABAJO();
private bdAntifraude.db.TIPOSPUESTOSTRABAJO puestoTrabajo = new TIPOSPUESTOSTRABAJO();
private List<ENUMERACIONES> lGrupos = new List<ENUMERACIONES>();
private List<ENUMERACIONES> lTipoPersonal = new List<ENUMERACIONES>();
private EditContext editContext = new EditContext(puestoTrabajo);
private EditContext editContext = default!;
private Tabs tabsPuesTrab { get; set; } = new Tabs();
private HttpClient cliente = new HttpClient();
@@ -123,11 +123,19 @@
List<ToastMessage> mensajes = new List<ToastMessage>();
public bool mostrar { get; set; } = true;
public bool mostrarBtn { get; set; } = false;
List<FieldIdentifier> listaIdentificadores = new List<FieldIdentifier>();
private void EstablecerEditContext(TIPOSPUESTOSTRABAJO nuevo)
{
puestoTrabajo = nuevo;
editContext = new EditContext(puestoTrabajo);
messageStore = new ValidationMessageStore(editContext);
listaIdentificadores.Clear();
}
protected override async Task OnInitializedAsync()
{
EstablecerEditContext(new TIPOSPUESTOSTRABAJO());
try
{
var url = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
@@ -141,6 +149,7 @@
if (string.IsNullOrEmpty(cl))
{
puestoTrabajo = new TIPOSPUESTOSTRABAJO();
EstablecerEditContext(new TIPOSPUESTOSTRABAJO());
mostrarBtn = true;
}
else
@@ -156,7 +165,8 @@
}
var resultContent = await response.Content.ReadAsStringAsync();
puestoTrabajo = JsonConvert.DeserializeObject<TIPOSPUESTOSTRABAJO>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
var puestTrabajo = JsonConvert.DeserializeObject<TIPOSPUESTOSTRABAJO>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
EstablecerEditContext(puestTrabajo);
}
editContext = new EditContext(puestoTrabajo);
messageStore = new ValidationMessageStore(editContext);

View File

@@ -262,8 +262,8 @@
@code {
[Parameter]
public string? cl { get; set; } = "";
private static bdAntifraude.db.VALORESNOMINA oValorNomina = new VALORESNOMINA();
private EditContext editContext = new EditContext(oValorNomina);
private bdAntifraude.db.VALORESNOMINA oValorNomina = new VALORESNOMINA();
private EditContext editContext = default!;
private HttpClient cliente = new HttpClient();
private ValidationMessageStore? messageStore;
@@ -272,10 +272,18 @@
public bool mostrar { get; set; } = true;
public bool mostrarBtn { get; set; } = false;
List<FieldIdentifier> listaIdentificadores = new List<FieldIdentifier>();
private void EstablecerEditContext(VALORESNOMINA nuevo)
{
oValorNomina = nuevo;
editContext = new EditContext(oValorNomina);
messageStore = new ValidationMessageStore(editContext);
listaIdentificadores.Clear();
}
protected override async Task OnInitializedAsync()
{
EstablecerEditContext(new VALORESNOMINA());
try
{
var url = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
@@ -288,7 +296,8 @@
if (string.IsNullOrEmpty(cl))
{
oValorNomina = new VALORESNOMINA();
// oValorNomina = new VALORESNOMINA();
EstablecerEditContext(new VALORESNOMINA());
mostrarBtn = true;
}
else
@@ -303,7 +312,8 @@
throw new Exception($"Error al obtener los datos del Tipo de Trabajo. Código: {response.StatusCode}");
}
var resultContent = await response.Content.ReadAsStringAsync();
oValorNomina = JsonConvert.DeserializeObject<VALORESNOMINA>(resultContent) ?? throw new Exception("Error al deserializar los datos.");
var ValorNomina = JsonConvert.DeserializeObject<VALORESNOMINA>(resultContent) ?? throw new Exception("Error al deserializar los datos.");
EstablecerEditContext(ValorNomina);
}
editContext = new EditContext(oValorNomina);
messageStore = new ValidationMessageStore(editContext);

View File

@@ -233,7 +233,7 @@
public string idNom { get; set; } = "";
private Tabs tabsDtsNom { get; set; } = new Tabs();
List<ToastMessage> messages = new List<ToastMessage>();
private static NOMINAS Nomina { get; set; } = new NOMINAS();
private NOMINAS Nomina { get; set; } = new NOMINAS();
private List<ENUMERACIONES> listadoTipo = new List<ENUMERACIONES>();
private List<ENUMERACIONES> listadoSituacion = new List<ENUMERACIONES>();
private string tituloPopup = "";

View File

@@ -833,7 +833,7 @@
}
cliente = Utilidades.ObtenerCliente(UserState.Token, HttpClientFactory);
// ListaSexos = await Utilidades.ObtenerObjeto<List<ENUMERACIONES>>(cliente, "/api/ENUMERACIONES/EnumeracionesGrupo/SEXO");
ListaSexos = await Utilidades.ObtenerObjeto<List<ENUMERACIONES>>(cliente, "/api/ENUMERACIONES/EnumeracionesGrupo/SEXO");
string nifDesencriptado = tsUtilidades.crypt.FEncS(cl,
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.:/-*",
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.:/-*",
@@ -907,7 +907,6 @@
Console.WriteLine($"Error al cargar la foto: {ex.Message}");
}
}
private string GetCssClass(string fieldName)
{
if (messageStore == null)
@@ -978,3 +977,10 @@
}
<script>
function obtenerCheck(id){
return $("#"+id)[0].checked
}
</script>

View File

@@ -66,10 +66,17 @@
<button @onclick="@(() => abrirPopupModificacion(context, false))" class="btnOAAFAzul">Editar</button>
</GridColumn>
<GridColumn TItem="INCIDENCIAS" HeaderText="Nómina">
@context.IDNOMINANavigation.DESCRIPCION
</GridColumn>
@if (context.IDNOMINANavigation != null){
@context.IDNOMINANavigation.DESCRIPCION
}
</GridColumn>
<GridColumn TItem="INCIDENCIAS" HeaderText="Concepto">
@if (context.IDCONCEPTONOMINANavigation != null){
@context.IDCONCEPTONOMINANavigation.DESCRIPCION
}
</GridColumn>
<GridColumn TItem="INCIDENCIAS" HeaderText="Sustituye Concepto">
@if (context.SUSTITUYECONCEPTO)
@@ -120,7 +127,9 @@
}
</GridColumn>
<GridColumn TItem="INCIDENCIAS" HeaderText="Nómina Origen">
@if (context.IDNOMINANavigation != null){
@context.IDNOMINANavigation.DESCRIPCION
}
</GridColumn>
<GridColumn TItem="INCIDENCIAS" HeaderText="Apl. Presupuestaria">
@context.APLICACIONPRESUPUESTARIA
@@ -140,36 +149,50 @@
<Modal @ref="popupGestionDatos" IsVerticallyCentered="true" UseStaticBackdrop="true" CloseOnEscape="false">
<BodyTemplate>
<div class="row">
<div class="col-md-12">
<div class="col-md-12" style="display:flex; justify-content:space-between">
<label for="txtEDesc" class="fw-bold">Sustituye concepto: </label>
<input class="" type="checkbox" id="chbSusConcepto" checked="@ItemEnEdicion.SUSTITUYECONCEPTO" />
<label for="txtEDesc" class="fw-bold">Cotiza seguridad social: </label>
<input class="" type="checkbox" id="chbCotizaSS" checked="@ItemEnEdicion.COTIZASEGURIDADSOCIAL" />
</div>
<div class="col-md-12">
<label for="txtEDesc" class="fw-bold">Texto: </label>
<input class="form-control" type="text" @bind-value="@ItemEnEdicion.TEXTO" />
<input class="form-control" type="text" @bind-value="@ItemEnEdicion.TEXTO" />
</div>
<div class="col-md-12">
<label for="txtEDesc" class="fw-bold">Cantidad: </label>
<input class="form-control" type="number" @bind-value="@ItemEnEdicion.CANTIDAD" />
</div>
<div class="col-md-12">
<label for="txtEDesc" class="fw-bold">Importe: </label>
<input class="form-control" type="number" @bind-value="@ItemEnEdicion.IMPORTE" />
</div>
<div class="col-md-12" style="display:flex; justify-content:space-between">
<label for="txtEDesc" class="fw-bold">IRPF: </label>
<input class="" type="checkbox" id="chbIRPF" checked="@ItemEnEdicion.IRPF" />
<label for="txtEDesc" class="fw-bold">IRPF Ficha: </label>
<input class="" type="checkbox" id="chbIRPFficha" checked="@ItemEnEdicion.IRPFFICHA" />
<label for="txtEDesc" class="fw-bold">No para IRPF: </label>
<input class="" type="checkbox" id="chbNominaIRPF" checked="@ItemEnEdicion.NOPARAIRPF" />
</div>
<div class="col-md-12" style="display:flex; justify-content:space-between">
<label for="txtEDesc" class="fw-bold">Nómina normal: </label>
<input class="" type="checkbox" id="chbNominaNormal" checked="@ItemEnEdicion.NOMINANORMAL" />
<label for="txtEDesc" class="fw-bold">Nómina seguridad social: </label>
<input class="" type="checkbox" id="chbNominaSS" checked="@ItemEnEdicion.NOMINASEGURIDADSOCIAL" />
<label for="txtEDesc" class="fw-bold">Apl. Presupuestaria: </label>
<input class="" type="checkbox" id="chbAplPresupuestria" checked="@ItemEnEdicion.APLICACIONPRESUPUESTARIA" />
</div>
<div class="col-md-12">
<label for="txtEDesc" class="fw-bold">Apl. Presupuestaria: </label>
<input class="form-control" type="text" @bind-value="@ItemEnEdicion.APLICACIONPRESUPUESTARIA" />
</div>
</div>
</BodyTemplate>
<FooterTemplate>
<Button Color="ButtonColor.Secondary" @onclick="cerrarPopupModificacion">Cerrar</Button>
<Button Type="ButtonType.Submit" Color="ButtonColor.Primary">Modificar</Button>
<Button Type="ButtonType.Submit" Color="ButtonColor.Primary" @onclick="GestionarDatos">Modificar</Button>
</FooterTemplate>
</Modal>
@@ -190,16 +213,24 @@
private List<String> nombMeses = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
private INCIDENCIAS ItemEnEdicion { get; set; } = new INCIDENCIAS();
protected override async Task OnInitializedAsync()
{
CargarListas();
}
private async Task abrirPopupModificacion(INCIDENCIAS objeto, bool esNuevo)
{
ItemEnEdicion = objeto;
await popupGestionDatos.ShowAsync();
}
private async Task cerrarPopupModificacion()
{
await popupGestionDatos.HideAsync();
}
private async Task CargarListas()
{
try
{
// cliente = Utilidades.ObtenerCliente(UserState.Token, HttpClientFactory);
// Expression<Func<INCIDENCIAS, bool>> filtro = x => x.IDPERSONA == Persona.IDPERSONA;
// itmList = await Utilidades.ObtenerObjeto<List<INCIDENCIAS>>(cliente, "/api/INCIDENCIAS/filtrar", filtro);
var listnom = Persona.INCIDENCIAS.Where(x => x.ESDELIQUIDACION == false).ToList();
var nominaIncidenciadelcarajo = listnom.FirstOrDefault(x => x.IDINCIDENCIA == 56543);
foreach (INCIDENCIAS i in listnom)
{
itmList.Add(i);
@@ -218,6 +249,8 @@
}
}
annos = annos.OrderDescending().ToList();
Task.Delay(1);
StateHasChanged();
}
catch (Exception e)
@@ -225,24 +258,42 @@
Console.WriteLine($"Error al obtener los datos: {e.Message}");
}
}
private async Task abrirPopupModificacion(INCIDENCIAS objeto, bool esNuevo)
{
ItemEnEdicion = objeto;
await popupGestionDatos.ShowAsync();
}
private async Task cerrarPopupModificacion()
{
await popupGestionDatos.HideAsync();
}
// GUARDAR
private async Task GestionarDatos(INCIDENCIAS inci)
private async Task GestionarDatos()
{
var inci = ItemEnEdicion;
string chbSusConcepto = "chbSusConcepto";
inci.SUSTITUYECONCEPTO = await JS.InvokeAsync<bool>("obtenerCheck", chbSusConcepto);
string chbCotizaSS = "chbCotizaSS";
inci.COTIZASEGURIDADSOCIAL = await JS.InvokeAsync<bool>("obtenerCheck", chbCotizaSS);
string chbIRPFficha = "chbIRPFficha";
inci.IRPFFICHA= await JS.InvokeAsync<bool>("obtenerCheck", chbIRPFficha);
string chbNominaIRPF = "chbNominaIRPF";
inci.NOPARAIRPF = await JS.InvokeAsync<bool>("obtenerCheck", chbNominaIRPF);
string chbNominaNormal = "chbNominaNormal";
inci.NOMINANORMAL = await JS.InvokeAsync<bool>("obtenerCheck", chbNominaNormal);
string chbNominaSS = "chbNominaSS";
inci.NOMINASEGURIDADSOCIAL = await JS.InvokeAsync<bool>("obtenerCheck", chbNominaSS);
var cliente = Utilidades.ObtenerCliente(UserState.Token, HttpClientFactory);
var response = await Utilidades.ActualizarObjeto(cliente, "/api/INCIDENCIAS/" + inci.IDINCIDENCIA, inci);
await cerrarPopupModificacion();
await InvokeAsync(StateHasChanged);
var response1 = await cliente.GetAsync($"/api/PERSONAS/PersonaNominaNif/{Persona.NIF}");
if (!response1.IsSuccessStatusCode)
{
throw new Exception($"Error al obtener los datos de la persona. Código: {response1.StatusCode}");
}
var resultContent = await response1.Content.ReadAsStringAsync();
Persona = JsonConvert.DeserializeObject<PERSONAS>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
await CargarListas();
// itmList.First(x => x.IDINCIDENCIA == inci.IDINCIDENCIA).IDNOMINANavigation = inci.IDNOMINANavigation;
// itmList.First(x => x.IDINCIDENCIA == inci.IDINCIDENCIA).IDCONCEPTONOMINANavigation= inci.IDCONCEPTONOMINANavigation;
// await InvokeAsync(StateHasChanged);
}
}

View File

@@ -607,7 +607,7 @@
@code {
[Parameter]
public PERSONAS Persona { get; set; } = new PERSONAS();
public static NOMINATRABAJADORCABECERA Nomina { get; set; } = new NOMINATRABAJADORCABECERA();
public NOMINATRABAJADORCABECERA Nomina { get; set; } = new NOMINATRABAJADORCABECERA();
private HttpClient cliente = new HttpClient();
[Parameter]
public EventCallback OnPersonaActualizada { get; set; }
@@ -629,7 +629,19 @@
private Tabs tabsDtsNom { get; set; } = new Tabs();
private Modal popupConfirmacion = default!;
List<ToastMessage> mensajes = new List<ToastMessage>();
private EditContext editContext = new EditContext(Nomina);
private EditContext editContext = default!;
List<FieldIdentifier> listaIdentificadores = new List<FieldIdentifier>();
private void EstablecerEditContext(NOMINATRABAJADORCABECERA nuevo)
{
Nomina = nuevo;
editContext = new EditContext(Nomina);
messageStore = new ValidationMessageStore(editContext);
listaIdentificadores.Clear();
}
private async Task abrirGuardar()
{
await popupConfirmacion.ShowAsync();
@@ -647,6 +659,7 @@
}
protected override async Task OnInitializedAsync()
{
EstablecerEditContext(new NOMINATRABAJADORCABECERA());
try
{
var url = NavigationManager.ToAbsoluteUri(NavigationManager.Uri);
@@ -665,14 +678,6 @@
var clCn = clDesencriptado.Split("-");
nifDesencriptado = clCn[0];
NominaDesencriptada = Int32.Parse(clCn[1]);
// int NominaDesencriptada = Int32.Parse(tsUtilidades.crypt.FEncS(cn,
// "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.:/-*",
// "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.:/-*",
// -875421649));
var response = await cliente.GetAsync($"/api/PERSONAS/PersonaNominaNif/{nifDesencriptado}");
if (!response.IsSuccessStatusCode)
{
@@ -681,7 +686,8 @@
var resultContent = await response.Content.ReadAsStringAsync();
Persona = JsonConvert.DeserializeObject<PERSONAS>(resultContent) ?? throw new Exception("Error al deserializar los datos de la persona.");
Nomina = Persona.NOMINATRABAJADORCABECERA?.FirstOrDefault(x => x.IDNOMINA == NominaDesencriptada);
var Nomi = Persona.NOMINATRABAJADORCABECERA?.FirstOrDefault(x => x.IDNOMINA == NominaDesencriptada);
EstablecerEditContext(Nomi);
lConceptos = new List<NOMINATRABAJADORLINEA>();
foreach (var lin in Nomina.NOMINATRABAJADORLINEA){lConceptos.Add(lin);}
lPagoEspecie = new List<NOMINATRABAJADORPAGOESPECIE>();

View File

@@ -189,7 +189,7 @@
</div>
@code {
private static PERIODOSSILTRA PeriodoSiltra = new PERIODOSSILTRA();
private PERIODOSSILTRA PeriodoSiltra = new PERIODOSSILTRA();
public EventCallback<string> OnValidationStateChanged { get; set; }
private List<int> annos = new List<int>();
private string cl { get; set; }
@@ -201,12 +201,14 @@
// private List<TIPOSTRAMOS> lTipPeriodo = new List<TIPOSTRAMOS>();
private List<ENUMERACIONES> lTipPeriodo = new List<ENUMERACIONES>();
private List<TRAMOSSILTRA> lTraSil = new List<TRAMOSSILTRA>();
private EditContext editContext = new EditContext(PeriodoSiltra);
private EditContext editContext = default!;
private HttpClient cliente = new HttpClient();
private ValidationMessageStore? messageStore;
private string errorMessage = "";
private Modal popupConfirmacion = default!;
List<ToastMessage> mensajes = new List<ToastMessage>();
protected override async Task OnInitializedAsync()
{
var token = UserState.Token;