Cambio usurio retribuciones

This commit is contained in:
2026-01-13 12:51:39 +01:00
parent d6b7406bc9
commit 07518d0d44
2 changed files with 9 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ using Microsoft.EntityFrameworkCore;
using bdAntifraude.db; using bdAntifraude.db;
using bdAntifraude.dbcontext; using bdAntifraude.dbcontext;
using SwaggerAntifraude.Models; using SwaggerAntifraude.Models;
using DevExpress.CodeParser;
namespace SwaggerAntifraude.Controllers namespace SwaggerAntifraude.Controllers
{ {
@@ -51,13 +52,18 @@ namespace SwaggerAntifraude.Controllers
} }
// Creamos el objeto Personal para el usuario consultante // Creamos el objeto Personal para el usuario consultante
var grup = context.USUARIOS.Include(x => x.IDGRUPONavigation).FirstOrDefault(x => x.USUARIO == persona.NIF).IDGRUPONavigation.DESCRIPCION;
var usuarioActual = new Personal var usuarioActual = new Personal
{ {
Nombre = persona.APELLIDOS + ", " + persona.NOMBRE, Nombre = persona.APELLIDOS + ", " + persona.NOMBRE,
Departamento = persona.IDDEPARTAMENTONavigation?.DESCRIPCION, Departamento = persona.IDDEPARTAMENTONavigation?.DESCRIPCION,
Dni = persona.NIF, Dni = persona.NIF,
idPersona = persona.IDPERSONA, idPersona = persona.IDPERSONA,
Roll = string.Empty Roll = string.Empty,
Grupo = grup.ToUpper() == "ACCESO WEB RET" ? "RET" : ""
}; };
// Creamos la lista de personas y agregamos inmediatamente el usuario consultante // Creamos la lista de personas y agregamos inmediatamente el usuario consultante

View File

@@ -7,6 +7,7 @@
public int idPersona { get; set; } public int idPersona { get; set; }
public string Departamento { get; set; } public string Departamento { get; set; }
public string Roll { get; set; } public string Roll { get; set; }
public string Grupo { get; set; }
public int NumeroInciPorAceptar { get; set; } public int NumeroInciPorAceptar { get; set; }
public int NumeroInciBorrador { get; set; } public int NumeroInciBorrador { get; set; }
public DateTime FeIniInciPorAceptar { get; set; } public DateTime FeIniInciPorAceptar { get; set; }