69 lines
2.2 KiB
Plaintext
69 lines
2.2 KiB
Plaintext
@using System.Net.Http.Headers
|
|
@using System.Linq.Expressions
|
|
@using Newtonsoft.Json
|
|
@using System.Text
|
|
@using Serialize.Linq.Serializers
|
|
@using GestionPersonalWeb.Models
|
|
@using BlazorBootstrap
|
|
@using bdAntifraude.db
|
|
@using Microsoft.AspNetCore.Components
|
|
@rendermode InteractiveServer
|
|
@inject IJSRuntime JS
|
|
@inject NavigationManager NavigationManager
|
|
@inject IHttpClientFactory HttpClientFactory
|
|
@inject IHttpContextAccessor HttpContextAccessor
|
|
@inject UserState UserState
|
|
|
|
<div class="tablaTabLateral">
|
|
<div style="overflow-x:auto;" class="tablaDesk">
|
|
<Grid TItem="HISTORICOIRPF"
|
|
Class="table tablaRegPers"
|
|
Data="itmList"
|
|
AllowFiltering="false"
|
|
PageSize="10"
|
|
AllowPaging="true"
|
|
AllowSorting="true"
|
|
EmptyText="No se han encontrado datos"
|
|
Height="100"
|
|
PageSizeSelectorVisible="false"
|
|
PageSizeSelectorItems="@(new int[] { 5, 10, 20, 50 })"
|
|
Responsive="true"
|
|
PaginationItemsTextFormat="{0} - {1} de {2} elementos">
|
|
|
|
<GridColumns>
|
|
<GridColumn TItem="HISTORICOIRPF" HeaderText="Fecha Cálculo">
|
|
@context.FECHACALCULO?.ToString("dd/MM/yyyy")
|
|
</GridColumn>
|
|
<GridColumn TItem="HISTORICOIRPF" HeaderText="Año">
|
|
@context.ANNO
|
|
</GridColumn>
|
|
<GridColumn TItem="HISTORICOIRPF" HeaderText="Tipo Retención Calculado">
|
|
@context.TIPODERETENCIONCALCULADO
|
|
</GridColumn>
|
|
|
|
|
|
</GridColumns>
|
|
</Grid>
|
|
</div>
|
|
</div>
|
|
@code {
|
|
[Parameter]
|
|
public PERSONAS Persona { get; set; } = new PERSONAS();
|
|
private HttpClient cliente = new HttpClient();
|
|
[Parameter]
|
|
public EventCallback OnPersonaActualizada { get; set; }
|
|
private List<HISTORICOIRPF> itmList = new List<HISTORICOIRPF>();
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
try
|
|
{
|
|
var listnom = Persona.HISTORICOIRPF;
|
|
foreach (HISTORICOIRPF i in listnom) { itmList.Add(i); }
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Console.WriteLine($"Error al obtener los datos: {e.Message}");
|
|
}
|
|
}
|
|
}
|