Cambio usurio retribuciones
This commit is contained in:
@@ -6,7 +6,8 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.EntityFrameworkCore;
|
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
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user