Primer push

This commit is contained in:
2025-10-24 08:46:31 +02:00
parent ab72ebeb90
commit 519dba7445
586 changed files with 77601 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
namespace bdAntifraude
{
public class Class1
{
}
}

View File

@@ -0,0 +1,353 @@
<#@ template hostSpecific="true" #>
<#@ assembly name="Microsoft.EntityFrameworkCore" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #>
<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #>
<#@ parameter name="Model" type="Microsoft.EntityFrameworkCore.Metadata.IModel" #>
<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #>
<#@ parameter name="NamespaceHint" type="System.String" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="Microsoft.EntityFrameworkCore" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Infrastructure" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Scaffolding" #>
<#@ import namespace="Microsoft.Extensions.DependencyInjection" #>
<#
// Template version: 703 - please do NOT remove this line
if (!ProductInfo.GetVersion().StartsWith("7.0"))
{
Warning("Your templates were created using an older version of Entity Framework. Additional features and bug fixes may be available. See https://aka.ms/efcore-docs-updating-templates for more information.");
}
var services = (IServiceProvider)Host;
var providerCode = services.GetRequiredService<IProviderConfigurationCodeGenerator>();
var annotationCodeGenerator = services.GetRequiredService<IAnnotationCodeGenerator>();
var code = services.GetRequiredService<ICSharpHelper>();
var usings = new List<string>
{
"System",
"System.Collections.Generic",
"Microsoft.EntityFrameworkCore"
};
if (NamespaceHint != Options.ModelNamespace
&& !string.IsNullOrEmpty(Options.ModelNamespace))
{
usings.Add(Options.ModelNamespace);
}
if (!string.IsNullOrEmpty(NamespaceHint))
{
#>
namespace <#= NamespaceHint #>;
<#
}
#>
public partial class <#= Options.ContextName #> : DbContext
{
<#
if (!Options.SuppressOnConfiguring)
{
#>
public <#= Options.ContextName #>()
{
}
<#
}
#>
public <#= Options.ContextName #>(DbContextOptions<<#= Options.ContextName #>> options)
: base(options)
{
}
<#
foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType()))
{
#>
public virtual DbSet<<#= entityType.Name #>> <#= entityType.GetDbSetName() #> { get; set; }
<#
}
if (!Options.SuppressOnConfiguring)
{
#>
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
<#
if (!Options.SuppressConnectionStringWarning)
{
#>
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see http://go.microsoft.com/fwlink/?LinkId=723263.
<#
}
#>
=> optionsBuilder<#= code.Fragment(providerCode.GenerateUseProvider(Options.ConnectionString), indent: 3) #>;
<#
}
#>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
<#
var anyConfiguration = false;
var modelFluentApiCalls = Model.GetFluentApiCalls(annotationCodeGenerator);
if (modelFluentApiCalls != null)
{
usings.AddRange(modelFluentApiCalls.GetRequiredUsings());
#>
modelBuilder<#= code.Fragment(modelFluentApiCalls, indent: 3) #>;
<#
anyConfiguration = true;
}
StringBuilder mainEnvironment;
foreach (var entityType in Model.GetEntityTypes().Where(e => !e.IsSimpleManyToManyJoinEntityType()))
{
// Save all previously generated code, and start generating into a new temporary environment
mainEnvironment = GenerationEnvironment;
GenerationEnvironment = new StringBuilder();
if (anyConfiguration)
{
WriteLine("");
}
var anyEntityTypeConfiguration = false;
#>
modelBuilder.Entity<<#= entityType.Name #>>(entity =>
{
<#
var key = entityType.FindPrimaryKey();
if (key != null)
{
var keyFluentApiCalls = key.GetFluentApiCalls(annotationCodeGenerator);
if (keyFluentApiCalls != null
|| (!key.IsHandledByConvention() && !Options.UseDataAnnotations))
{
if (keyFluentApiCalls != null)
{
usings.AddRange(keyFluentApiCalls.GetRequiredUsings());
}
#>
entity.HasKey(<#= code.Lambda(key.Properties, "e") #>)<#= code.Fragment(keyFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
}
var entityTypeFluentApiCalls = entityType.GetFluentApiCalls(annotationCodeGenerator)
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations));
if (entityTypeFluentApiCalls != null)
{
usings.AddRange(entityTypeFluentApiCalls.GetRequiredUsings());
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
#>
entity<#= code.Fragment(entityTypeFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
foreach (var index in entityType.GetIndexes()
.Where(i => !(Options.UseDataAnnotations && i.IsHandledByDataAnnotations(annotationCodeGenerator))))
{
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator);
if (indexFluentApiCalls != null)
{
usings.AddRange(indexFluentApiCalls.GetRequiredUsings());
}
#>
entity.HasIndex(<#= code.Lambda(index.Properties, "e") #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
var firstProperty = true;
foreach (var property in entityType.GetProperties())
{
var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator)
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations)
&& !(c.Method == "IsRequired" && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType));
if (propertyFluentApiCalls == null)
{
continue;
}
usings.AddRange(propertyFluentApiCalls.GetRequiredUsings());
if (anyEntityTypeConfiguration && firstProperty)
{
WriteLine("");
}
#>
entity.Property(e => e.<#= property.Name #>)<#= code.Fragment(propertyFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
firstProperty = false;
}
foreach (var foreignKey in entityType.GetForeignKeys())
{
var foreignKeyFluentApiCalls = foreignKey.GetFluentApiCalls(annotationCodeGenerator)
?.FilterChain(c => !(Options.UseDataAnnotations && c.IsHandledByDataAnnotations));
if (foreignKeyFluentApiCalls == null)
{
continue;
}
usings.AddRange(foreignKeyFluentApiCalls.GetRequiredUsings());
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
#>
entity.HasOne(d => d.<#= foreignKey.DependentToPrincipal.Name #>).<#= foreignKey.IsUnique ? "WithOne" : "WithMany" #>(<#= foreignKey.PrincipalToDependent != null ? $"p => p.{foreignKey.PrincipalToDependent.Name}" : "" #>)<#= code.Fragment(foreignKeyFluentApiCalls, indent: 4) #>;
<#
anyEntityTypeConfiguration = true;
}
foreach (var skipNavigation in entityType.GetSkipNavigations().Where(n => n.IsLeftNavigation()))
{
if (anyEntityTypeConfiguration)
{
WriteLine("");
}
var left = skipNavigation.ForeignKey;
var leftFluentApiCalls = left.GetFluentApiCalls(annotationCodeGenerator, useStrings: true);
var right = skipNavigation.Inverse.ForeignKey;
var rightFluentApiCalls = right.GetFluentApiCalls(annotationCodeGenerator, useStrings: true);
var joinEntityType = skipNavigation.JoinEntityType;
if (leftFluentApiCalls != null)
{
usings.AddRange(leftFluentApiCalls.GetRequiredUsings());
}
if (rightFluentApiCalls != null)
{
usings.AddRange(rightFluentApiCalls.GetRequiredUsings());
}
#>
entity.HasMany(d => d.<#= skipNavigation.Name #>).WithMany(p => p.<#= skipNavigation.Inverse.Name #>)
.UsingEntity<Dictionary<string, object>>(
<#= code.Literal(joinEntityType.Name) #>,
r => r.HasOne<<#= right.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(rightFluentApiCalls, indent: 6) #>,
l => l.HasOne<<#= left.PrincipalEntityType.Name #>>().WithMany()<#= code.Fragment(leftFluentApiCalls, indent: 6) #>,
j =>
{
<#
var joinKey = joinEntityType.FindPrimaryKey();
var joinKeyFluentApiCalls = joinKey.GetFluentApiCalls(annotationCodeGenerator);
if (joinKeyFluentApiCalls != null)
{
usings.AddRange(joinKeyFluentApiCalls.GetRequiredUsings());
}
#>
j.HasKey(<#= code.Arguments(joinKey.Properties.Select(e => e.Name)) #>)<#= code.Fragment(joinKeyFluentApiCalls, indent: 7) #>;
<#
var joinEntityTypeFluentApiCalls = joinEntityType.GetFluentApiCalls(annotationCodeGenerator);
if (joinEntityTypeFluentApiCalls != null)
{
usings.AddRange(joinEntityTypeFluentApiCalls.GetRequiredUsings());
#>
j<#= code.Fragment(joinEntityTypeFluentApiCalls, indent: 7) #>;
<#
}
foreach (var index in joinEntityType.GetIndexes())
{
var indexFluentApiCalls = index.GetFluentApiCalls(annotationCodeGenerator);
if (indexFluentApiCalls != null)
{
usings.AddRange(indexFluentApiCalls.GetRequiredUsings());
}
#>
j.HasIndex(<#= code.Literal(index.Properties.Select(e => e.Name).ToArray()) #>, <#= code.Literal(index.GetDatabaseName()) #>)<#= code.Fragment(indexFluentApiCalls, indent: 7) #>;
<#
}
foreach (var property in joinEntityType.GetProperties())
{
var propertyFluentApiCalls = property.GetFluentApiCalls(annotationCodeGenerator);
if (propertyFluentApiCalls == null)
{
continue;
}
usings.AddRange(propertyFluentApiCalls.GetRequiredUsings());
#>
j.IndexerProperty<<#= code.Reference(property.ClrType) #>>(<#= code.Literal(property.Name) #>)<#= code.Fragment(propertyFluentApiCalls, indent: 7) #>;
<#
}
#>
});
<#
anyEntityTypeConfiguration = true;
}
#>
});
<#
// If any signicant code was generated, append it to the main environment
if (anyEntityTypeConfiguration)
{
mainEnvironment.Append(GenerationEnvironment);
anyConfiguration = true;
}
// Resume generating code into the main environment
GenerationEnvironment = mainEnvironment;
}
foreach (var sequence in Model.GetSequences())
{
var needsType = sequence.Type != typeof(long);
var needsSchema = !string.IsNullOrEmpty(sequence.Schema) && sequence.Schema != sequence.Model.GetDefaultSchema();
var sequenceFluentApiCalls = sequence.GetFluentApiCalls(annotationCodeGenerator);
#>
modelBuilder.HasSequence<#= needsType ? $"<{code.Reference(sequence.Type)}>" : "" #>(<#= code.Literal(sequence.Name) #><#= needsSchema ? $", {code.Literal(sequence.Schema)}" : "" #>)<#= code.Fragment(sequenceFluentApiCalls, indent: 3) #>;
<#
}
if (anyConfiguration)
{
WriteLine("");
}
#>
OnModelCreatingPartial(modelBuilder);
}
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
}
<#
mainEnvironment = GenerationEnvironment;
GenerationEnvironment = new StringBuilder();
foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer()))
{
#>
using <#= ns #>;
<#
}
WriteLine("");
GenerationEnvironment.Append(mainEnvironment);
#>

View File

@@ -0,0 +1,174 @@
<#@ template hostSpecific="true" #>
<#@ assembly name="Microsoft.EntityFrameworkCore" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Design" #>
<#@ assembly name="Microsoft.EntityFrameworkCore.Relational" #>
<#@ assembly name="Microsoft.Extensions.DependencyInjection.Abstractions" #>
<#@ parameter name="EntityType" type="Microsoft.EntityFrameworkCore.Metadata.IEntityType" #>
<#@ parameter name="Options" type="Microsoft.EntityFrameworkCore.Scaffolding.ModelCodeGenerationOptions" #>
<#@ parameter name="NamespaceHint" type="System.String" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.ComponentModel.DataAnnotations" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="Microsoft.EntityFrameworkCore" #>
<#@ import namespace="Microsoft.EntityFrameworkCore.Design" #>
<#@ import namespace="Microsoft.Extensions.DependencyInjection" #>
<#
// Template version: 703 - please do NOT remove this line
if (EntityType.IsSimpleManyToManyJoinEntityType())
{
// Don't scaffold these
return "";
}
var services = (IServiceProvider)Host;
var annotationCodeGenerator = services.GetRequiredService<IAnnotationCodeGenerator>();
var code = services.GetRequiredService<ICSharpHelper>();
var usings = new List<string>
{
"System",
"System.Collections.Generic"
};
if (Options.UseDataAnnotations)
{
usings.Add("System.ComponentModel.DataAnnotations");
usings.Add("System.ComponentModel.DataAnnotations.Schema");
usings.Add("Microsoft.EntityFrameworkCore");
}
if (!string.IsNullOrEmpty(NamespaceHint))
{
#>
namespace <#= NamespaceHint #>;
<#
}
if (!string.IsNullOrEmpty(EntityType.GetComment()))
{
#>
/// <summary>
/// <#= code.XmlComment(EntityType.GetComment()) #>
/// </summary>
<#
}
if (Options.UseDataAnnotations)
{
foreach (var dataAnnotation in EntityType.GetDataAnnotations(annotationCodeGenerator))
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
#>
public partial class <#= EntityType.Name #>
{
<#
var firstProperty = true;
foreach (var property in EntityType.GetProperties().OrderBy(p => p.GetColumnOrder() ?? -1))
{
if (!firstProperty)
{
WriteLine("");
}
if (!string.IsNullOrEmpty(property.GetComment()))
{
#>
/// <summary>
/// <#= code.XmlComment(property.GetComment(), indent: 1) #>
/// </summary>
<#
}
if (Options.UseDataAnnotations)
{
var dataAnnotations = property.GetDataAnnotations(annotationCodeGenerator)
.Where(a => !(a.Type == typeof(RequiredAttribute) && Options.UseNullableReferenceTypes && !property.ClrType.IsValueType));
foreach (var dataAnnotation in dataAnnotations)
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
usings.AddRange(code.GetRequiredUsings(property.ClrType));
var needsNullable = Options.UseNullableReferenceTypes && property.IsNullable && !property.ClrType.IsValueType;
var needsInitializer = Options.UseNullableReferenceTypes && !property.IsNullable && !property.ClrType.IsValueType;
#>
public <#= code.Reference(property.ClrType) #><#= needsNullable ? "?" : "" #> <#= property.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #>
<#
firstProperty = false;
}
foreach (var navigation in EntityType.GetNavigations())
{
WriteLine("");
if (Options.UseDataAnnotations)
{
foreach (var dataAnnotation in navigation.GetDataAnnotations(annotationCodeGenerator))
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
var targetType = navigation.TargetEntityType.Name;
if (navigation.IsCollection)
{
#>
public virtual ICollection<<#= targetType #>> <#= navigation.Name #> { get; set; } = new List<<#= targetType #>>();
<#
}
else
{
var needsNullable = Options.UseNullableReferenceTypes && !(navigation.ForeignKey.IsRequired && navigation.IsOnDependent);
var needsInitializer = Options.UseNullableReferenceTypes && navigation.ForeignKey.IsRequired && navigation.IsOnDependent;
#>
public virtual <#= targetType #><#= needsNullable ? "?" : "" #> <#= navigation.Name #> { get; set; }<#= needsInitializer ? " = null!;" : "" #>
<#
}
}
foreach (var skipNavigation in EntityType.GetSkipNavigations())
{
WriteLine("");
if (Options.UseDataAnnotations)
{
foreach (var dataAnnotation in skipNavigation.GetDataAnnotations(annotationCodeGenerator))
{
#>
<#= code.Fragment(dataAnnotation) #>
<#
}
}
#>
public virtual ICollection<<#= skipNavigation.TargetEntityType.Name #>> <#= skipNavigation.Name #> { get; set; } = new List<<#= skipNavigation.TargetEntityType.Name #>>();
<#
}
#>
}
<#
var previousOutput = GenerationEnvironment;
GenerationEnvironment = new StringBuilder();
foreach (var ns in usings.Distinct().OrderBy(x => x, new NamespaceComparer()))
{
#>
using <#= ns #>;
<#
}
WriteLine("");
GenerationEnvironment.Append(previousOutput);
#>

View File

@@ -0,0 +1,434 @@
using bdAntifraude.db;
using Microsoft.VisualBasic;
using System.Diagnostics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using bdAntifraude.dbcontext;
namespace bdAntifraude
{
public class Comun
{
internal static string CadenaConexionBD = "";
internal static string CadenaConexionBD_SL = "";
public static string? Usuario;
public static bool? EsRemoto = default(Boolean?);
public static int idGrupoMenu;
public static int idUsuario;
public static USUARIOS? UsuarioActual;
public static string? VersionPrograma { get; set; }
private static string FicheroLog = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + @"\Antifraude\";
//public static void DescargaFichero(string FicheroDestino, string FicheroOrigen, SftpClient SFTP)
//{
// try
// {
// System.IO.FileStream fsd = new System.IO.FileStream(FicheroDestino, System.IO.FileMode.Create, FileAccess.ReadWrite);
// SFTP.DownloadFile(FicheroOrigen, fsd);
// fsd.Close();
// }
// catch (Exception ex)
// {
// throw;
// }
//}
public static tsUtilidades.Permisos ObtienePermisos(bdAntifraude.dbcontext.gestionantifraudeContext bd, Nullable<int> idPermiso, int idUsuario)
{
tsUtilidades.Permisos per = new tsUtilidades.Permisos();
string Grupo = bd.USUARIOS.Where(x => x.IDUSUARIO == idUsuario).Select(x => x.IDGRUPONavigation!.DESCRIPCION).First() ?? "";
if (Grupo == "TECNOSIS" || idPermiso == null)
{
per.Consultar = true;
per.Eliminar = true;
per.Nuevos = true;
per.Otros = true;
per.Modificar = true;
per.Impresion = true;
per.Exportar = true;
}
else
{
var au = from a in bd.AUTORIZACIONESUSUARIOS
where a.IDPERMISO == idPermiso && a.IDUSUARIO == idUsuario
select a;
if (au.Count() == 0)
{
//Hemos puesto int? porque int sin ? daba errores
int? idGrupo = (from u in bd.USUARIOS
where u.IDUSUARIO == idUsuario
select u).First().IDGRUPO;
var ag = (from g in bd.AUTORIZACIONESGRUPOS
where g.IDPERMISO == idPermiso && g.IDGRUPO == idGrupo
select g);
if (ag.Count() == 0)
{
per.Consultar = false;
per.Eliminar = false;
per.Nuevos = false;
per.Otros = false;
per.Modificar = false;
per.Impresion = false;
per.Exportar = false;
}
else
{
per.Consultar = ag.First().PERMITIRCONSULTAS;
per.Eliminar = ag.First().PERMITIRELIMINACIONES;
per.Nuevos = ag.First().PERMITIRNUEVOS;
per.Otros = ag.First().OTROSPERMISOS;
per.Modificar = ag.First().PERMITIRMODIFICACIONES;
per.Impresion = ag.First().PERMITIRIMPRESIONES;
per.Exportar = per.Impresion;
}
}
else
{
per.Consultar = au.First().PERMITIRCONSULTAS;
per.Eliminar = au.First().PERMITIRELIMINACIONES;
per.Nuevos = au.First().PERMITIRNUEVOS;
per.Otros = au.First().OTROSPERMISOS;
per.Modificar = au.First().PERMITIRMODIFICACIONES;
per.Impresion = au.First().PERMITIRIMPRESIONES;
per.Exportar = per.Impresion;
}
}
return per;
}
public static tsUtilidades.Permisos ObtienePermisos(bdAntifraude.dbcontext.gestionantifraudeContext bd, string Codigo, int idUsuario)
{
tsUtilidades.Permisos per = new tsUtilidades.Permisos();
USUARIOS usu = bd.USUARIOS.Include(x => x.IDGRUPONavigation).Include(x => x.IDGRUPOBDNavigation).First(x => x.IDUSUARIO == idUsuario);
if (usu?.IDGRUPONavigation?.DESCRIPCION?.ToUpper() == "TECNOSIS" || usu?.IDGRUPONavigation?.DESCRIPCION?.ToUpper() == "ADMINISTRADORES")
//if (bd.USUARIOS.First(x => x.idUsuario == idUsuario).idGrupoNavigation.Descripcion == "TECNOSIS")
{
per.Consultar = true;
per.Eliminar = true;
per.Nuevos = true;
per.Otros = true;
per.Modificar = true;
per.Impresion = true;
per.Exportar = true;
}
else
{
var au = (from a in bd.AUTORIZACIONESUSUARIOS
where a.IDPERMISONavigation.CODIGOPERMISO == Codigo && a.IDUSUARIO == idUsuario
select a);
if (au.Count() == 0)
{
int? idGrupo = (from u in bd.USUARIOS
where u.IDUSUARIO == idUsuario
select u).First().IDGRUPO;
var ag = (from g in bd.AUTORIZACIONESGRUPOS
where g.IDPERMISONavigation.CODIGOPERMISO == Codigo && g.IDGRUPO == idGrupo
select g);
if (ag.Count() == 0)
{
per.Consultar = false;
per.Eliminar = false;
per.Nuevos = false;
per.Otros = false;
per.Modificar = false;
per.Impresion = false;
per.Exportar = false;
}
else
{
per.Consultar = ag.First().PERMITIRCONSULTAS;
per.Eliminar = ag.First().PERMITIRELIMINACIONES;
per.Nuevos = ag.First().PERMITIRNUEVOS;
per.Otros = ag.First().OTROSPERMISOS;
per.Modificar = ag.First().PERMITIRMODIFICACIONES;
per.Impresion = ag.First().PERMITIRIMPRESIONES;
per.Exportar = per.Impresion;
}
}
else
{
per.Consultar = au.First().PERMITIRCONSULTAS;
per.Eliminar = au.First().PERMITIRELIMINACIONES;
per.Nuevos = au.First().PERMITIRNUEVOS;
per.Otros = au.First().OTROSPERMISOS;
per.Modificar = au.First().PERMITIRMODIFICACIONES;
per.Impresion = au.First().PERMITIRIMPRESIONES;
per.Exportar = per.Impresion;
}
}
return per;
}
public static EventLog? el;
public static string? DirectorioLogs;
public static void AñadeLog(tsUtilidades.Enumeraciones.TipoLog Tipo, string Asunto, string Mensaje = "", Exception? e = null)
{
// ----------------------------------------------------------------------------------------------------
// Descripción Sub: Gestión de logs de la aplicación
// Fecha. Creacion: ???
// Creada por: manmog
// Ultima Modificacion: 24/11/2010
//
// Modificaciones:
// ===============
string sFicheroLog = DirectorioLogs + "Log-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + ".txt";
try
{
if (e != null)
{
if (el != null)
el?.WriteEntry(e.Message + Constants.vbCrLf + e.StackTrace, EventLogEntryType.Error);
string sStackTrace = "Tipo excepción: " + e.ToString() + Constants.vbCrLf;
Exception? exError = e;
do
{
sStackTrace += exError.StackTrace + Constants.vbCrLf;
exError = exError.InnerException;
}
while (exError != null);
if (sStackTrace != "")
Mensaje += Constants.vbCrLf + "StackTrace: " + sStackTrace;
}
switch (Tipo)
{
case tsUtilidades.Enumeraciones.TipoLog.Fallo:
case tsUtilidades.Enumeraciones.TipoLog.Advertencia:
{
if (Tipo == tsUtilidades.Enumeraciones.TipoLog.Fallo)
{
sFicheroLog = DirectorioLogs + "Errores-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString().PadLeft(2, '0') + ".txt";
Mensaje = DateTime.Now.ToLongTimeString() + " Error enviado desde " + Environment.MachineName + ". " + Mensaje;
}
else
Mensaje = DateTime.Now.ToLongTimeString() + " Advertencia enviado desde " + Environment.MachineName + ". " + Mensaje;
string sDireccionesEnvio = "sevilla@tecnosis.net";
string sServidorSMTP = "correo.tecnosis.net";
var sRemitente = "logs@tecnosis.es";
if (Environment.MachineName.ToUpper().Trim() == "INTI" || Environment.MachineName.ToUpper().Trim() == "CERBERO")
{
sDireccionesEnvio = "danmun@tecnosis.net";
Asunto = "[INTI] " + Asunto;
}
if (Mensaje != "")
Mensaje = Mensaje.Replace(Constants.vbCrLf, Constants.vbCrLf + "<br />");
tsUtilidades.Correo.Funciones.EnviaCorreo(sServidorSMTP, sRemitente, sDireccionesEnvio, Asunto, Mensaje);
break;
}
}
Anadelogtxt(Mensaje, sFicheroLog);
}
catch (Exception ex)
{
sFicheroLog = DirectorioLogs + "Errores-" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString().PadLeft(2, '0') + ".txt";
Anadelogtxt(ex.Message, sFicheroLog);
}
}
public static void Anadelogtxt(string Mensaje, string FicheroLog)
{
System.IO.StreamWriter? sw = null;
try
{
Mensaje = Mensaje.Replace(Constants.vbCrLf, "---");
if (System.IO.File.Exists(FicheroLog))
sw = System.IO.File.AppendText(FicheroLog);
else
{
var directorio = System.IO.Path.GetDirectoryName(FicheroLog);
if (!System.IO.Directory.Exists(directorio))
tsUtilidades.Utilidades.CreaEstructuraDirectorio(directorio);
sw = System.IO.File.CreateText(FicheroLog);
}
Mensaje = DateTime.Now.ToString() + "|" + "Ws: " + System.Diagnostics.Process.GetCurrentProcess().WorkingSet64.ToString().PadLeft(20) + " PMS: " + System.Diagnostics.Process.GetCurrentProcess().PrivateMemorySize64.ToString().PadLeft(20) + "|" + Mensaje;
sw.WriteLine(Mensaje);
}
catch (Exception ex)
{
try
{
string sDireccionesEnvio = "sevilla@tecnosis.net";
string sServidorSMTP = "sevilla2.tecnosis.es";
var sRemitente = "logs@tecnosis.es";
if (Environment.MachineName == "INTI" || Environment.MachineName.ToUpper().Trim() == "CERBERO")
sDireccionesEnvio = "danmun@tecnosis.net";
if (Mensaje != null)
Mensaje = Mensaje.Replace(Constants.vbCrLf, Constants.vbCrLf + "<br />");
tsUtilidades.Correo.Funciones.EnviaCorreo(sServidorSMTP, sRemitente, sDireccionesEnvio, "Error Anadelogtxt. " + Mensaje, Environment.MachineName + ".- " + ex.Message + Constants.vbCrLf + ex.StackTrace + Constants.vbCrLf + ex.Source);
}
catch
{
}
}
finally
{
try
{
if (sw != null) sw.Close();
}
catch
{
}
}
}
//public static void GeneraRegistroCorreoExcepcion(Exception ex, string Rutina, string CadenaConexionBD, bool MostrarMensajeError = false)
//{
// try
// {
// var bd = new bdAntifraude.dbcontext.tsGestionAntifraude(false, CadenaConexionBD);
// string sMensaje = "Usuario: " + Usuario + Constants.vbCrLf;
// string sStackTrace = "Tipo excepción: " + ex.ToString() + Constants.vbCrLf;
// Exception? exError = ex;
// do
// {
// sStackTrace += exError.StackTrace + Constants.vbCrLf;
// exError = exError.InnerException;
// }
// while (exError != null);
// if (sStackTrace != "")
// sMensaje += Constants.vbCrLf + "StackTrace: " + sStackTrace;
// CUENTASCORREO cuentaorigen = (from c in bd.CUENTASCORREO
// where c.CODIGO == "TECNOSIS"
// select c).First();
// GeneraRegistroCorreo(bd, "Mensaje Automático. Error en " + Rutina, sMensaje, cuentaorigen, "sevilla@tecnosis.net");
// }
// catch (Exception ex2)
// {
// Anadelogtxt(ex2.Message, FicheroLog);
// }
//}
//public static void GeneraRegistroCorreoExcepcion(Exception ex, string sAsunto, string sCuerpo, string CadenaConexionBD)
//{
// try
// {
// var bd = new tsGestionAntifraude(false, CadenaConexionBD);
// string sMensaje = sCuerpo + Constants.vbCrLf + Constants.vbCrLf + "Usuario: " + Usuario + Constants.vbCrLf + Constants.vbCrLf;
// string sStackTrace = "Excepción: " + ex.ToString() + Constants.vbCrLf;
// Exception? exError = ex;
// do
// {
// sStackTrace += exError.StackTrace + Constants.vbCrLf + Constants.vbCrLf;
// exError = exError.InnerException;
// }
// while (exError != null);
// if (sStackTrace != "")
// sMensaje += Constants.vbCrLf + "StackTrace: " + sStackTrace;
// CUENTASCORREO cuentaorigen = (from c in bd.CUENTASCORREO
// where c.CODIGO == "TECNOSIS"
// select c).First();
// GeneraRegistroCorreo(bd, sAsunto, sMensaje, cuentaorigen, "sevilla@tecnosis.net");
// }
// catch (Exception ex2)
// {
// Anadelogtxt(ex2.Message, FicheroLog);
// }
//}
public static void GeneraRegistroCorreoExcepcion(tsGestionAntifraude bd, Exception ex, string sAsunto, string sCuerpo)
{
try
{
string sMensaje = sCuerpo + Constants.vbCrLf + Constants.vbCrLf + "Usuario: " + Usuario + Constants.vbCrLf + Constants.vbCrLf;
string sStackTrace = "Excepción: " + ex.ToString() + Constants.vbCrLf;
Exception? exError = ex;
do
{
sStackTrace += exError.StackTrace + Constants.vbCrLf + Constants.vbCrLf;
exError = exError.InnerException;
}
while (exError != null);
if (sStackTrace != "")
sMensaje += Constants.vbCrLf + "StackTrace: " + sStackTrace;
CUENTASCORREO cuentaorigen = (from c in bd.CUENTASCORREO
where c.CODIGO == "TECNOSIS"
select c).First();
GeneraRegistroCorreo(bd, sAsunto, sMensaje, cuentaorigen, "sevilla@tecnosis.net");
}
catch (Exception ex2)
{
Anadelogtxt(ex2.Message, FicheroLog);
}
}
//public static DateTime AhoraMysql(tsGestionAntifraude deGestionGuadex)
//{
// try
// {
// DateTime FechaServidor = (deGestionGuadex as IObjectContextAdapter).ObjectContext.ExecuteStoreQuery<DateTime>("select now() as Ahora").First();
// return FechaServidor;
// }
// catch
// {
// return DateTime.Now;
// }
//}
public static void GeneraRegistroCorreo(tsGestionAntifraude bd, string Asunto, string Cuerpo)
{
try
{
CUENTASCORREO cuentaorigen = (from c in bd.CUENTASCORREO
where c.CODIGO == "TECNOSIS"
select c).First();
var correo = new CORREOS()
{
ASUNTO = Asunto,
CUERPO = Cuerpo,
DESTINATARIO = "sevilla@tecnosis.net",
DIRECCIONRESPUESTA = cuentaorigen.REMITENTE,
//FECHACREACION = bd.AhoraMySql(),
IDCUENTA = cuentaorigen.IDCUENTA,
REMITENTE = cuentaorigen.REMITENTE
};
if (Environment.MachineName.ToUpper() == "INTI" || Environment.MachineName.ToUpper().Trim() == "CERBERO")
correo.DESTINATARIO = "danmun@tecnosis.net";
// // Reemplazar los saltos de línea con <br> porque el correo va en HTML, y si no hacemos esto
// // no habrá saltos de línea dentro del correo.
if (correo.CUERPO != null)
correo.CUERPO = correo.CUERPO.Replace(Constants.vbCrLf, Constants.vbCrLf + "<br />");
// // Guardar en la bd.
bd.Add(correo);
bd.GuardarCambios();
}
catch (Exception ex)
{
Debug.Write(ex.Message);
throw;
}
}
public static void GeneraRegistroCorreo(tsGestionAntifraude bd, string Asunto, string Cuerpo, CUENTASCORREO cuenta, string Destinatario)
{
try
{
var correo = new CORREOS()
{
ASUNTO = Asunto,
CUERPO = Cuerpo,
DESTINATARIO = Destinatario,
DIRECCIONRESPUESTA = cuenta.REMITENTE,
//FECHACREACION = bd.AhoraMySql(),
IDCUENTA = cuenta.IDCUENTA,
REMITENTE = cuenta.REMITENTE
};
if (Environment.MachineName.ToUpper() == "INTI" || Environment.MachineName.ToUpper().Trim() == "CERBERO")
Destinatario = "danmun@tecnosis.net";
bd.CORREOS.Add(correo);
bd.GuardarCambios();
}
catch (Exception ex)
{
Debug.Write(ex.Message);
throw;
}
}
}
}

View File

@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<PropertyChanged />
</Weavers>

View File

@@ -0,0 +1,43 @@
namespace bdAntifraude.DatRecTri
{
public class RecTri
{
public string Apellidos { get; set; } = "";
public string Nombre { get; set; } = "";
public string Nif { get; set; } = "";
public string Adscripcion { get; set; } = "";
public string Cuerpo { get; set; } = "";
public string NRP { get; set; } = "";
public string Grupo { get; set; } = "";
public string SitAdm { get; set; } = "";
public string DesPuesTrab { get; set; } = "";
public string CarOcu { get; set; } = "";
public string CenOrg { get; set; } = "";
public string Localidad { get; set; } = "";
public string Provincia { get; set; } = "";
public string FechaRecTri { get; set; } = "";
public string FechaEfeEco { get; set; } = "";
public string Departamento { get; set; } = "";
public int? TriA1 { get; set; }
public int? TriA2 { get; set; }
public int? TriC1 { get; set; }
public int? TriC2 { get; set; }
public int? TriE { get; set; }
public int? TolTri { get; set; }
public string ComEsp { get; set; } = "";
public string Nivel { get; set; } = "";
public string FecCumProTri { get; set; } = "";
public string FecVenTri { get; set; } = "";
public string CuerpoPuestoTrabajo { get; set; } = "";
public double ComplementoEspecifico { get; set; }
public string GrupoPuestoTrabajo { get; set; } = "";
public string NivelPuestoTrabajo { get; set; } = "";
public string FechaEfectoTomaPosesion { get; set; } = "";
public string OrganoCompetente { get; set; } = "";
public string MotivoTomaPosesion { get; set; } = "";
public string texto1 { get; set; } = "";
public string texto2 { get; set; } = "";
public string texto3 { get; set; } = "";
public string FechaEmision { get; set; } = "";
}
}

View File

@@ -0,0 +1,522 @@
using bdAntifraude.clases;
using bdAntifraude.db;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Query.Internal;
using Microsoft.VisualBasic;
using System;
using System.Collections.Generic;
using System.Diagnostics.Eventing.Reader;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.WebRequestMethods;
using static System.Runtime.InteropServices.JavaScript.JSType;
using tsUtilidades;
using Renci.SshNet;
using bdAntifraude;
using tsUtilidades.Enumeraciones;
using System.Diagnostics;
using System.Security.Cryptography;
using tsl5;
using Castle.Components.DictionaryAdapter.Xml;
namespace bdAntifraude
{
public enum NivelLogs
{
SIN_LOGS,
TODOS_LOGS,
MODIFICACIONES_Y_ELIMINACIONES
}
public class Utilidades
{
public static tsl5.Datos.BBDD ObtieneCBD(string Base = "")
{
var bbdd = new tsl5.Datos.BBDD
{
Pooling = true
};
string sBaseDatos = string.IsNullOrEmpty(Base) ?
(Environment.GetCommandLineArgs().Length > 1 ? Environment.GetCommandLineArgs()[1] : "")
: Base;
switch (sBaseDatos.ToLower())
{
case "desarrollo":
case "preproduccion":
bbdd.DataBase = "XE";
bbdd.Password = "mnJ1FkFTe-TpH5"; // antifraude2022
bbdd.Usuario = "ANTIFRAUDEDESARROLLO";
bbdd.Tipo = tsl5.Enumeraciones.TipoBD.ORACLE;
bbdd.Servidor = "192.168.41.203";
bbdd.Puerto = 21521;
return bbdd;
case "historicotecnosis":
bbdd.DataBase = "XE";
bbdd.Password = "mnJ1FkFTe-TpH5"; // antifraude2022
bbdd.Usuario = "ANTIFRAUDEDESARROLLO";
bbdd.Tipo = tsl5.Enumeraciones.TipoBD.ORACLE;
bbdd.Servidor = "192.168.41.203";
bbdd.Puerto = 21521;
return bbdd;
case "pruebas":
case "ayer":
case "historico":
bbdd.DataBase = "pre03";
switch (sBaseDatos.ToLower())
{
case "pruebas":
bbdd.Password = "s0E:NhbqZjMC"; // tecnosis2016
bbdd.Usuario = "PERSONPRE_OWN";
break;
case "ayer":
bbdd.Password = "antesdeayer+1";
bbdd.Usuario = "PERSONAYER_OWN";
break;
case "historico":
bbdd.Password = "8.7Z3XdT\\gBh"; // tecnosis1992
bbdd.Usuario = "PERSON_HISTORICO";
break;
}
bbdd.Tipo = tsl5.Enumeraciones.TipoBD.ORACLE;
bbdd.Servidor = "preora02";
bbdd.Puerto = 1521;
return bbdd;
default:
bbdd.DataBase = "XE";
bbdd.Password = "mnJ1FkFTe-TpH5"; // antifraude2022
bbdd.Usuario = "ANTIFRAUDE";
bbdd.Tipo = tsl5.Enumeraciones.TipoBD.ORACLE;
bbdd.Servidor = "192.168.41.203";
bbdd.Puerto = 21521;
return bbdd;
}
}
// public static OAEntities NuevaConexion(
//tsl5.Datos.BBDD bd,
//NivelLogs nivelLog = NivelLogs.MODIFICACIONES_Y_ELIMINACIONES,
//string aplicacion = "",
//string campoTimeStamp = "")
// {
// OAEntities de = new OAEntities();
// try
// {
// de = Conectar(
// bd.Servidor,
// bd.DataBase,
// bd.Usuario,
// bd.Password,
// bd.Puerto,
// nivelLog,
// aplicacion,
// bd.Pooling,
// bd.SSL,
// bd.FicheroCertificado,
// bd.PasswordCertificado
// );
// // ((IObjectContextAdapter)de)
// //.ObjectContext
// //.CommandTimeout = 600;
// de.Database.SetCommandTimeout(600);
// de.Aplicacion = aplicacion;
// de.NivelLog = nivelLog;
// return de;
// }
// catch (Exception ex)
// {
// throw new Exception(
// $"No se ha podido conectar a Servidor: {bd.Servidor} Database: {bd.DataBase} Usuario: {bd.Usuario} Puerto: {bd.Puerto}\n{ex.Message}",
// ex
// );
// }
// }
//public static OAEntities Conectar(string Servidor, string Database, string Usuario, string Password, int Puerto, NivelLogs NivelLog, string Aplicacion, bool Pooling, bool SSL, string FicheroCertificado, string ContraseñaCertificado)
//{
// string[] args = Environment.GetCommandLineArgs();
// // If (args.Length > 1 AndAlso (args(1) = "desarrollo")) Then
// // NivelLog = NivelLogs.SIN_LOGS
// // End If
// OAEntities de = new OAEntities();
// if (Usuario == "PERSONAYER_OWN")
// {
// de = tsl5.bbdd.ObtieneEntityConnectionStringOraclePasswordClara(Servidor, Database, Puerto.ToString(), Usuario, Password, "bdOficinaAntifraude", Pooling, SSL, FicheroCertificado, ContraseñaCertificado);
// }
// else
// {
// de = tsl5.bbdd.ObtieneEntityConnectionStringOracle(Servidor, Database, Puerto.ToString(), Usuario, Password, "bdOA", Pooling, SSL, FicheroCertificado, ContraseñaCertificado);
// }
// if (!(NivelLog == NivelLogs.SIN_LOGS))
// de.SavingChanges += GuardandoCambios;
// return de;
//}
// public static OAEntities Conectar(
// string servidor,
// string database,
// string usuario,
// string password,
// int puerto,
// NivelLogs nivelLog,
// string aplicacion,
// bool pooling,
// bool ssl,
// string ficheroCertificado,
// string contraseñaCertificado
//)
// {
// string connectionString;
// if (usuario == "PERSONAYER_OWN")
// {
// connectionString = tsl5.bbdd.ObtieneEntityConnectionStringOraclePasswordClara(
// servidor, database, puerto, usuario, password,
// "bdOficinaAntifraude", pooling, ssl, ficheroCertificado, contraseñaCertificado
// );
// }
// else
// {
// connectionString = tsl5.bbdd.ObtieneEntityConnectionStringOracle(
// servidor, database, puerto, usuario, password,
// "bdOA", pooling, ssl, ficheroCertificado, contraseñaCertificado
// );
// }
// var optionsBuilder = new DbContextOptionsBuilder<OAEntities>();
// optionsBuilder.UseOracle(connectionString);
// var de = new OAEntities(optionsBuilder.Options);
// if (nivelLog != NivelLogs.SIN_LOGS)
// de.SavingChanges += GuardandoCambios;
// return de;
// }
public static List<PuestoPersona> ObtienePuestoPersona(bdAntifraude.dbcontext.gestionantifraudeContext bd, int idPersona)
{
List<TIPOS_PERSONAL> listaTP = bd.TIPOS_PERSONAL.ToList();
List<PuestoPersona> puestosnuevos = new List<PuestoPersona>();
try
{
List<VIDA_ADMINISTRATIVA> listaVA = bd.VIDA_ADMINISTRATIVA.Where(x => x.IDPERSONAL == idPersona && x.IDMOTIVO != null)
.Include(v => v.IDMOTIVONavigation)
.ThenInclude(r => r.IDTIPOAPTOSNavigation)
.Include(v => v.NIVEL_OLDNavigation)
.Include(v => v.NIVELCNavigation)
.Include(v => v.GRUPOTNavigation)
.Include(v => v.OCUPACION_OLDNavigation)
.Include(v => v.IDPERSONALNavigation)
.Include(v => v.IDPUESTONavigation)
.ThenInclude(i => i.IDRPTDESNavigation)
.ThenInclude(r => r.IDDEPARTAMENTONavigation)
.Include(i => i.GRUPOTNavigation)
.Include(v => v.IDPUESTONavigation)
.ThenInclude(n => n.IDRPTDESNavigation)
.ThenInclude(gr => gr.GRUPO1Navigation)
.Include(v => v.IDPUESTONavigation)
.ThenInclude(n => n.IDRPTDESNavigation)
.ThenInclude(grr => grr.GRUPO2Navigation)
.Include(v => v.IDPUESTONavigation)
.ThenInclude(n => n.IDRPTDESNavigation)
.ThenInclude(nv => nv.IDNIVEL_RPTNavigation)
.OrderBy(x => x.FECHA).ThenBy(x => x.NUM_REG)
.AsNoTracking().ToList();
//.Include(v => v.IDSERVICIOADSCRITONavigation)
//.Include(v => v.IDUNIDADADMINISTRATIVANavigation)
if (listaVA.Count > 0)
{
List<VIDA_ADMINISTRATIVA> ToPoyCese = listaVA
.Where(x => x.MotivoTipo.Contains("TOMA POSESIÓN") ||
x.MotivoTipo.Contains("TOMA POSESION") ||
x.MotivoTipo.Contains("CESE") ||
x.MotivoTipo.Contains("BAJA")).ToList();
if (ToPoyCese.Count > 0)
{
int NumActo = ToPoyCese.Count;
for (int np = 0, loopTo = NumActo - 1; np <= loopTo; np += 2)
{
PuestoPersona pues = new PuestoPersona();
puestosnuevos.Add(pues);
VIDA_ADMINISTRATIVA vidaAdmin = ToPoyCese[np];
if (vidaAdmin?.IDMOTIVONavigation?.DESCRIPCION == "ACTIVO")
{
np = np + 1;
vidaAdmin = ToPoyCese[np];
}
//pues.Puesto = vidaAdmin.DENOMINACION_OLD;
pues.Puesto = vidaAdmin.IDPUESTONavigation.DESPUESCOM;
if (vidaAdmin?.IDPUESTO != null)
{
pues.Puesto = pues.Puesto + "*";
}
//pues.Nivel = vidaAdmin.DescripcionNivel;
pues.Nivel = vidaAdmin.IDPUESTONavigation.IDRPTDESNavigation.IDNIVEL_RPTNavigation.NIVEL1;
pues.Adscripcion = vidaAdmin.DescripcionAdscripcion(listaTP);
//pues.servicioAdscrito = vidaAdmin.IDSERVICIOADSCRITO != null ? bd.SERVICIOS.First(x => x.IDSERVICIO == vidaAdmin.IDSERVICIOADSCRITONavigation.IDSERVICIO).DESCRIPCION : "";
//pues.unidadAdministrativa = vidaAdmin.IDUNIDADADMINISTRATIVA != null ? bd.UNIDADADMINISTRATIVA.First(y => y.IDUNIDADADMINISTRATIVA == vidaAdmin.IDUNIDADADMINISTRATIVANavigation.IDUNIDADADMINISTRATIVA).LITERAL_DEPARTAMENTO : "";
pues.Grupo = vidaAdmin.IDPUESTONavigation.IDRPTDESNavigation.GRUPO1Navigation?.GRUPO1; //vidaAdmin.DescripcionGrupo1;
if (vidaAdmin.IDPUESTONavigation.IDRPTDESNavigation.GRUPO2Navigation?.GRUPO1 != null)
{
pues.Grupo = pues.Grupo.Trim() + "/" + vidaAdmin.IDPUESTONavigation.IDRPTDESNavigation.GRUPO2Navigation.GRUPO1;
}
if (pues.Grupo.Trim() == "")
{
pues.Grupo = vidaAdmin.GRUPOTNavigation.GRUPO1;
}
if (pues.Adscripcion.Trim() == "")
{
if ("|I|II|III|IV|V|".Trim().Contains("|" + pues.Grupo.Trim() + "|"))
{
pues.Adscripcion = "Laboral temporal";
}
else
{
pues.Adscripcion = "Funcionario";
}
}
if (vidaAdmin.FECHA.HasValue)
{
pues.FechaToPo = (DateTime)vidaAdmin.FECHA;
}
pues.MotivoToPo = vidaAdmin.IDMOTIVONavigation.DESCRIPCION;
if (vidaAdmin.OCUPACION_OLD != null)
{
pues.CaracterOcu = vidaAdmin.OCUPACION_OLDNavigation.DESCRIPCION;
}
Anos_Meses_Dias TiemSer = new Anos_Meses_Dias();
if (np + 2 <= NumActo)
{
VIDA_ADMINISTRATIVA vidaAdmin2 = ToPoyCese[np + 1];
if (!vidaAdmin2.IDMOTIVONavigation.TIPMOT.Trim().Contains("CESE") && vidaAdmin2.IDMOTIVONavigation.TIPMOT.Trim().Contains("BAJA"))
{
if (vidaAdmin2.FECHA > vidaAdmin.FECHA)
{
string motDes = vidaAdmin2.IDMOTIVONavigation.DESCRIPCION;
if (motDes == "ACTIVO" || motDes == "NOMBRAMIENTO" || motDes.Contains("REINGRESO PLAZA") || motDes.Contains("SERVICIOS ESPECIALES") || motDes.Contains("EXCEDENCIA"))
{
pues.FechaCese = (DateTime)vidaAdmin2.FECHA;
pues.MotivoCese = vidaAdmin2.IDMOTIVONavigation.DESCRIPCION;
if (motDes.Contains("REINGRESO PLAZA") || motDes.Contains("ACTIVO") || motDes.Contains("SERVICIOS ESPECIALES"))
{
for (int npn = np - 1; npn >= 0; npn -= 1)
{
if (ToPoyCese[npn].IDMOTIVONavigation.DESCRIPCION != "SERVICIOS ESPECIALES")
{
pues.MotivoCese = ToPoyCese[npn].IDMOTIVONavigation.DESCRIPCION;
pues.Puesto = "********";
pues.Nivel = "***";
pues.Grupo = "***";
pues.Adscripcion = "***";
if ((npn + 2) <= (NumActo - 1) && ToPoyCese[npn + 2].FECHA == pues.FechaCese)
{
pues.FechaCese = pues.FechaCese.AddDays(-1);
}
npn = 0;
PuestoPersona ppll = puestosnuevos[puestosnuevos.Count - 2];
if (ppll.FechaCese == pues.FechaToPo && ppll.MotivoCese != "CAMBIO DE SITUACIÓN ADMINISTRATIVA (CON RESERVA DE PUESTO)" && ppll.MotivoCese != "SERVICIOS ESPECIALES")
{
pues.FechaToPo = pues.FechaToPo.AddDays(+1);
}
}
}
}
}
else
{
pues.FechaCese = vidaAdmin2.FECHA.Value.AddDays(-1);
pues.MotivoCese = "SUPUESTO CESE NO EXISTE EN VIDAADMINISTRATIVA";
}
}
else
{
if (vidaAdmin2.FECHA.HasValue)
{
pues.FechaCese = vidaAdmin2.FECHA.Value;
}
pues.MotivoCese = vidaAdmin2.IDMOTIVONavigation?.DESCRIPCION;
}
PuestoPersona ppl = puestosnuevos[puestosnuevos.Count - 2];
if (puestosnuevos.Count - 2 >= 0 && ppl.FechaCese == pues.FechaToPo)
{
if (pues.MotivoToPo == "SERVICIOS ESPECIALES" && !(ppl.FechaCese == pues.FechaToPo && ppl.FechaToPo == pues.FechaToPo))
{
pues.FechaToPo = pues.FechaToPo.AddDays(+1);
pues.Puesto = "********";
pues.Nivel = "***";
pues.Grupo = "***";
pues.Adscripcion = "***";
}
}
TiemSer = AnosMesesDias(pues.FechaToPo, pues.FechaCese);
pues.AnosSer = TiemSer.Anos;
pues.MesesSer = TiemSer.Meses;
pues.DiasSer = TiemSer.Dias;
}
else
{
pues.FechaCese = (DateTime)vidaAdmin2.FECHA;
pues.MotivoCese = vidaAdmin2.IDMOTIVONavigation.DESCRIPCION;
if (pues.FechaToPo == pues.FechaCese && pues.MotivoCese.Contains("COMISIÓN DE SERVICIOS") && np + 2 <= NumActo)
{
pues.MotivoToPo = vidaAdmin2.IDMOTIVONavigation.DESCRIPCION;
pues.MotivoCese = ToPoyCese[np + 2].IDMOTIVONavigation.DESCRIPCION;
pues.FechaCese = ToPoyCese[np + 2].FECHA.Value.AddDays(-1);
pues.Puesto = "********";
pues.Nivel = "***";
pues.Grupo = "***";
pues.Adscripcion = "***";
}
if (((np + 2) < (NumActo - 1)) && pues.FechaCese == ToPoyCese[np + 2].FECHA && pues.FechaToPo != pues.FechaCese && ToPoyCese[np + 2].IDMOTIVONavigation.DESCRIPCION != "SERVICIOS ESPECIALES")
{
pues.FechaCese = pues.FechaCese.AddDays(-1);
}
if (puestosnuevos.Count >= 2 && pues.FechaToPo == puestosnuevos[puestosnuevos.Count - 2].FechaCese)
{
var puestoant = puestosnuevos[puestosnuevos.Count - 2];
if (pues.MotivoToPo == "NOMBRAMIENTO")
{
puestoant.FechaCese = puestoant.FechaCese.AddDays(-1);
TiemSer = AnosMesesDias(puestoant.FechaToPo, puestoant.FechaCese);
puestoant.AnosSer = TiemSer.Anos;
puestoant.MesesSer = TiemSer.Meses;
puestoant.DiasSer = TiemSer.Dias;
}
if (pues.MotivoToPo == "SERVICIOS ESPECIALES")
{
pues.FechaToPo = pues.FechaToPo.AddDays(1);
}
}
TiemSer = AnosMesesDias(pues.FechaToPo, pues.FechaCese);
pues.AnosSer = TiemSer.Anos;
pues.MesesSer = TiemSer.Meses;
pues.DiasSer = TiemSer.Dias;
if (pues.MotivoToPo == "SERVICIOS ESPECIALES" && (pues.MotivoCese == "REVOCACIÓN O CESE" || pues.MotivoCese == "CAMBIO DE SITUACIÓN ADMINISTRATIVA (CON RESERVA DE PUESTO)"))
{
pues.Puesto = "********";
pues.Nivel = "***";
pues.Grupo = "***";
pues.Adscripcion = "***";
}
}
}
else
{
TiemSer = AnosMesesDias(pues.FechaToPo, DateTime.Now);
pues.AnosSer = TiemSer.Anos;
pues.MesesSer = TiemSer.Meses;
pues.DiasSer = TiemSer.Dias;
if (pues.MotivoToPo.Contains("SERVICIOS ESPECIALES") && pues.MotivoCese == null)
{
pues.Puesto = "********";
pues.Nivel = "***";
pues.Grupo = "***";
pues.Adscripcion = "***";
}
np = NumActo;
}
if ((np + 2) <= (NumActo - 1) && ToPoyCese[np + 2].FECHA.Value.Subtract(pues.FechaCese).Days > 1 && ToPoyCese[np + 2].IDMOTIVONavigation.DESCRIPCION == "SERVICIOS ESPECIALES")
{
var puesnue = new PuestoPersona();
puestosnuevos.Add(puesnue);
puesnue.MotivoToPo = pues.MotivoCese;
puesnue.MotivoCese = pues.MotivoCese;
puesnue.FechaToPo = pues.FechaCese.AddDays(1);
puesnue.FechaCese = ToPoyCese[np + 2].FECHA.Value.AddDays(-1);
puesnue.Puesto = "********";
puesnue.Nivel = "***";
puesnue.Grupo = "***";
puesnue.Adscripcion = "***";
TiemSer = AnosMesesDias(puesnue.FechaToPo, puesnue.FechaCese);
puesnue.AnosSer = TiemSer.Anos;
puesnue.MesesSer = TiemSer.Meses;
puesnue.DiasSer = TiemSer.Dias;
}
if ((np + 2) <= (NumActo - 1) && ToPoyCese[np + 2].FECHA == pues.FechaCese && ToPoyCese[np + 2].IDMOTIVONavigation.DESCRIPCION != "SERVICIOS ESPECIALES" && ToPoyCese[np + 2].IDMOTIVONavigation.DESCRIPCION != "ACTIVO" && pues.FechaToPo != pues.FechaCese)
{
pues.FechaCese = pues.FechaCese.AddDays(-1);
TiemSer = AnosMesesDias(pues.FechaToPo, pues.FechaCese);
pues.AnosSer = TiemSer.Anos;
pues.MesesSer = TiemSer.Meses;
pues.DiasSer = TiemSer.Dias;
}
}
}
}
}
catch (Exception ex)
{
var a = 1;
}
return puestosnuevos.OrderByDescending(x => x.FechaToPo).ToList();
}
public static Anos_Meses_Dias AnosMesesDias(DateTime fechaInicio, DateTime fechaFin)
{
//DateTime fechaFinAjustada = (fechaFin.Date == DateTime.Today)
// ? fechaFin.AddDays(1)
// : fechaFin;
if (fechaFin < fechaInicio)
throw new ArgumentException("La fecha final debe ser mayor o igual que la fecha de inicio.");
int anos = fechaFin.Year - fechaInicio.Year;
int meses = fechaFin.Month - fechaInicio.Month;
int dias = fechaFin.Day - fechaInicio.Day;
// Ajustar cuando la diferencia en días es negativa (no se completó el mes)
if (dias < 0)
{
meses--;
int diasMesAnterior = DateTime.DaysInMonth(
fechaFin.Month == 1 ? fechaFin.Year - 1 : fechaFin.Year,
fechaFin.Month == 1 ? 12 : fechaFin.Month - 1);
dias += diasMesAnterior;
}
// Ajustar cuando la diferencia en meses es negativa (no se completó el año)
if (meses < 0)
{
anos--;
meses += 12;
}
return new Anos_Meses_Dias { Anos = anos, Meses = meses, Dias = dias };
}
}
}

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Globals">
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Globals">
<SccProjectName>SAK</SccProjectName>
<SccProvider>SAK</SccProvider>
<SccAuxPath>SAK</SccAuxPath>
<SccLocalPath>SAK</SccLocalPath>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Label="Globals">
<SccProjectName>%24/tecnosis.tfs/Clientes/ANTIFRAUDE.NET/Antifraude.Net/bdAntifraude</SccProjectName>
<SccProvider>{4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}</SccProvider>
<SccAuxPath>http://ts-devopss:81/tecnosiscollection</SccAuxPath>
<SccLocalPath>.</SccLocalPath>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="17.14.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="7.0.3" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.1" />
<PackageReference Include="Oracle.EntityFrameworkCore" Version="7.21.13" />
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="3.21.160" />
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0" />
<PackageReference Include="SSH.NET" Version="2024.2.0" />
<PackageReference Include="tsEFCore7" Version="1.0.2" />
<PackageReference Include="tsUtilidades" Version="1.0.5" />
</ItemGroup>
<ItemGroup>
<Reference Include="tsEFCore7">
<HintPath>..\..\..\..\Comun\tsEFCore7\bin\Debug\net8.0\tsEFCore7.dll</HintPath>
</Reference>
<Reference Include="tsl5">
<HintPath>..\..\..\..\Comun\tsl5\bin\Debug\tsl5.dll</HintPath>
</Reference>
<Reference Include="tsUtilidades">
<HintPath>..\..\..\..\Comun\tsUtilidades\bin\Debug\net8.0\tsUtilidades.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="db\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,18 @@
namespace bdAntifraude.clases
{
public class AlmacenaFicheroAtransmitir
{
public int IdRegistro { get; set; }
public string Tabla { get; set; } = "";
public string Fichero { get; set; } = "";
public AlmacenaFicheroAtransmitir() { }
public AlmacenaFicheroAtransmitir(int idRegistro, string tabla, string fichero)
{
IdRegistro = idRegistro;
Tabla = tabla;
Fichero = fichero;
}
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class Anos_Meses_Dias
{
public int Anos { get; set; }
public int Meses { get; set; }
public int Dias { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class Formacion
{
public string NumReg { get; set; } = "";
public string Descripcion { get; set; } = "";
public string Centro { get; set; } = "";
public string FExpedicion { get; set; } = "";
public string NumHoras { get; set; } = "";
public string Aprovechamiento { get; set; } = "";
}
}

View File

@@ -0,0 +1,26 @@
using bdAntifraude.db;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using static System.Runtime.InteropServices.JavaScript.JSType;
using System.Text.RegularExpressions;
using System.Security.Claims;
using bdAntifraude.clases;
namespace SwaggerAntifraude.Models
{
public class HojaAcreditacionDatos
{
public string Nif { get; set; } = "";
public string ApellidosNombre { get; set; } = "";
public string Cuerpo { get; set; } = "";
public string Especialidad { get; set; } = "";
public string Grado { get; set; } = "";
public string Antiguedad { get; set; } = "";
public string FechaRecGra { get; set; } = "";
public string FechaProTri { get; set; } = "";
public List<PuestoPersona> Puestos { get; set; } = new List<PuestoPersona>();
public List<PuestoPersona> Titulaciones { get; set; } = new List<PuestoPersona>();
public List<PuestoPersona> Cursos { get; set; } = new List<PuestoPersona>();
}
}

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class ParFicExcel
{
public string ClaveExcel { get; set; } = "";
public string texto1 { get; set; } = "";
public string texto2 { get; set; } = "";
public string Fecha { get; set; } = "";
}
public class NifPersona
{
public string Nif { get; set; } = "";
}
public class ResultadoObtenerHAD
{
public int Resultado { get; set; }
public string Mensaje { get; set; }
public string HAD { get; set; }
}
public class DatGenNom
{
public List<int> Personas = new List<int>();
public int Idnomina { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class PeticionFichero
{
public int IdRegistro { get; set; }
public string Tabla { get; set; } = "";
public string Nif { get; set; } = "";
public PeticionFichero() { }
public PeticionFichero(int idRegistro, string tabla, string nif)
{
IdRegistro = idRegistro;
Tabla = tabla;
Nif = nif;
}
}
}

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class PuestoPersona
{
public string Puesto { get; set; } = "";
public string Nivel { get; set; } = "";
public string Adscripcion { get; set; } = "";
public string Grupo { get; set; } = "";
public DateTime FechaToPo { get; set; }
public string MotivoToPo { get; set; } = "";
public string CaracterOcu { get; set; } = "";
public DateTime FechaCese { get; set; }
public string MotivoCese { get; set; } = "";
public int AnosSer { get; set; }
public int MesesSer { get; set; }
public int DiasSer { get; set; }
public string unidadAdministrativa { get; set; } = "";
public string servicioAdscrito { get; set; } = "";
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
[Serializable]
public class RegistroActividadRest
{
public string Usuario { get; set; } = "";
public DateTime FechaHora { get; set; }
public string OperacionInvocada { get; set; } = "";
public string ParametrosConsulta { get; set; } = "";
public string Respuesta { get; set; } = "";
public string Errores { get; set; } = "";
public string JWT { get; set; } = "";
}
}

View File

@@ -0,0 +1,8 @@
namespace bdAntifraude.clases
{
public class ResultadoAlmacenaFicheroAtransmitir
{
public int Resultado { get; set; }
public string Mensaje { get; set; } = "";
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class ResultadoGenerarExcel
{
public int Resultado { get; set; }
public string Mensaje { get; set; } = "";
public byte[] FicheroExcel { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace bdAntifraude.clases
{
public class ResultadoGenerarNomina
{
public int idnomina { get; set; }
public int NumNomGen { get; set; }
public string Errores { get; set; }
public int Resultado { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace bdAntifraude.clases
{
public class ResultadoObtenFicheroAtransmitir
{
public int Resultado { get; set; }
public string Mensaje { get; set; } = "";
public byte[] Pdf { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bdAntifraude.clases
{
public class Titulacion
{
public string NumReg { get; set; } = "";
public string Descripcion { get; set; } = "";
public string Centro { get; set; } = "";
public string FExpedicion { get; set; } = "";
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ACCESOSWEB
{
public long IDACCESO { get; set; }
public long IDUSUARIO { get; set; }
public long TIPOUSUARIO { get; set; }
public DateTime FECHAHORA { get; set; }
public string CLAVEACCESO { get; set; } = null!;
public long TIPOACCESO { get; set; }
public bool ACCESOCONCEDIDO { get; set; }
public bool ACCESOCADUCADO { get; set; }
public string? DOCUMENTOIDENTIDAD { get; set; }
public string? RAZONSOCIAL { get; set; }
public string? DOCUMENTOREPRESENTANTE { get; set; }
public string? NOMBREREPRESENTANTE { get; set; }
public byte[]? CERTIFICADO { get; set; }
}

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ACTOSADMINPREP
{
public int IDACTOADMINISTRATIVO { get; set; }
public DateTime? FECHA { get; set; }
public int? IDMOTIVOADMINISTRATIVO { get; set; }
public string? TEXTO1 { get; set; }
public string? TEXTO2 { get; set; }
public string? TEXTO3 { get; set; }
public int? IDPERSONA { get; set; }
public string DESCRIPCION { get; set; } = null!;
public string? MOTIVOTOMAPOSESION { get; set; }
public string? ORGANOCOMPETENTE { get; set; }
public virtual MOTIVOS_ADMINISTRATIVOS? IDMOTIVOADMINISTRATIVONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ADSCRIPCION
{
public int IDADSCRIPCION { get; set; }
public string? ADSCRIPCION1 { get; set; }
public string? DESCRIPCION { get; set; }
public bool ACTIVO { get; set; }
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIP { get; set; } = new List<RPT_DESCRIP>();
}

View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ALTOS_CARGOS
{
public int IDALTOCARGO { get; set; }
public string? NIF { get; set; }
public string? NOMBRE { get; set; }
public string? APELLIDO1 { get; set; }
public string? APELLIDO2 { get; set; }
public int? TIPO { get; set; }
public DateTime? FECHA_NOMBRAMIENTO { get; set; }
public DateTime? FECHA_CESE { get; set; }
public DateTime? FECHA_TRIENIO { get; set; }
public int? GRUPO { get; set; }
public string? AREA { get; set; }
public string? USUARIO { get; set; }
public string? CONTRASENA { get; set; }
public string? SITUACION { get; set; }
public DateTime? FECHA_NACIMIENTO { get; set; }
public string? SEXO { get; set; }
public string Oid { get; set; } = null!;
public decimal? OptimisticLockField { get; set; }
public decimal? GCRecord { get; set; }
}

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class AMORTIZACIONESPRESTAMOS
{
public int IDAMORTIZACIONESPRESTAMOS { get; set; }
public int? IDPRESTAMO { get; set; }
public int? IDNOMINAAMORTIZADO { get; set; }
public decimal? CANTIDADAMORTIZADA { get; set; }
public decimal? SALDORESTANTE { get; set; }
public decimal? INTERESBANCOESPAÑA { get; set; }
public decimal? IMPORTEPAGOESPECIE { get; set; }
public bool AMORTIZADO { get; set; }
public int? AÑO { get; set; }
public int? MES { get; set; }
public virtual NOMINAS? IDNOMINAAMORTIZADONavigation { get; set; }
public virtual PRESTAMOS? IDPRESTAMONavigation { get; set; }
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class APLICACION_PRESUPUESTARIA
{
public int IDAPRESUP { get; set; }
public decimal? APLICACION { get; set; }
public string? DENOMINACION { get; set; }
public string? CORRESPONDENCIA { get; set; }
public string? ACTIVA { get; set; }
public int? IDGRUPO { get; set; }
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ASCENDIENTES
{
public int IDASCENDIENTES { get; set; }
public int? IDPERSONA { get; set; }
public string? NOMBRE { get; set; }
public DateTime? FECHANACIMIENTO { get; set; }
public int? CONVIVENCIA { get; set; }
public int? IDDISCAPACIDAD { get; set; }
public bool MOVILIDADREDUCIDA { get; set; }
public virtual ENUMERACIONES? IDDISCAPACIDADNavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ASCENDIENTESHISTORICOIRPF
{
public int IDASCENDIENTESHISTORICOIRPF { get; set; }
public string? NOMBRE { get; set; }
public DateTime? FECHANACIMIENTO { get; set; }
public int? CONVIVENCIA { get; set; }
public int? IDDISCAPACIDAD { get; set; }
public bool MOVILIDADREDUCIDA { get; set; }
public int? IDHISTORICOIRPF { get; set; }
public virtual ENUMERACIONES? IDDISCAPACIDADNavigation { get; set; }
public virtual HISTORICOIRPF? IDHISTORICOIRPFNavigation { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ASIGNACIONTEMPORALCOBRADA
{
public decimal IDASIGNACIONTEMP { get; set; }
public int IDPERSONA { get; set; }
public int? DIASPAGADO { get; set; }
public decimal? IMPORTEPAGADO { get; set; }
public int? ANO { get; set; }
public int? MES { get; set; }
public virtual PERSONAS IDPERSONANavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ASISTENCIAS
{
public int IDASISTENCIA { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHA { get; set; }
public int? IDINCIDENCIACONTROLHORARIO { get; set; }
public DateTime? FECHAOCURRENCIA { get; set; }
public DateTime? FECHACOMPENSACION { get; set; }
public DateTime? FECHAFINTARDE { get; set; }
public decimal? HORASCOMPENSACION_D { get; set; }
public decimal? HORAINCIDENCIA_D { get; set; }
public decimal? HORAINICIOMAÑANA_D { get; set; }
public decimal? HORAFINMAÑANA_D { get; set; }
public decimal? HORAINICIOMAÑANAEXTRA_D { get; set; }
public decimal? HORAFINMAÑANAEXTRA_D { get; set; }
public decimal? HORASTRABAJADASMAÑANA_D { get; set; }
public decimal? HORASTRABAJADASMAÑANAEXTRA_D { get; set; }
public decimal? HORAINICIOTARDE_D { get; set; }
public decimal? HORAFINTARDE_D { get; set; }
public decimal? HORAINICIOTARDEEXTRA_D { get; set; }
public decimal? HORAFINTARDEEXTRA_D { get; set; }
public decimal? HORASTRABAJADASTARDE_D { get; set; }
public decimal? HORASTRABAJADASTARDEEXTRAS_D { get; set; }
public string? OBSERVACIONES { get; set; }
public string? EXPEDIENTEECO { get; set; }
public decimal? HORASRECUPERABLES { get; set; }
public DateTime? FECHAOCURRENCIAFIN { get; set; }
public int? NUMERODEDIAS { get; set; }
public bool ADJUNTO { get; set; }
public int? IDASISTENCIARELACIONADA { get; set; }
public int? IDOPCIONSELECCIONADA { get; set; }
public int? NUMEROELEMENTOS { get; set; }
public virtual ICollection<ESTADOSASISTENCIA> ESTADOSASISTENCIA { get; set; } = new List<ESTADOSASISTENCIA>();
public virtual ASISTENCIAS? IDASISTENCIARELACIONADANavigation { get; set; }
public virtual INCIDENCIASCONTROLHORARIO? IDINCIDENCIACONTROLHORARIONavigation { get; set; }
public virtual ENUMERACIONES? IDOPCIONSELECCIONADANavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ICollection<ASISTENCIAS> InverseIDASISTENCIARELACIONADANavigation { get; set; } = new List<ASISTENCIAS>();
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ASISTENCIASSESIONES
{
public int IDASISTENCIASESION { get; set; }
public int IDSESION { get; set; }
public int IDPERSONA { get; set; }
public int? IDLIQUIDACION { get; set; }
public virtual NOMINATRABAJADORCABECERA? IDLIQUIDACIONNavigation { get; set; }
public virtual PERSONAS IDPERSONANavigation { get; set; } = null!;
public virtual SESIONES IDSESIONNavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class AUTORIZACIONESGRUPOS
{
public int IDAUTORIZACIONGRUPO { get; set; }
public int? IDGRUPO { get; set; }
public int? IDPERMISO { get; set; }
public bool PERMITIRCONSULTAS { get; set; }
public bool PERMITIRNUEVOS { get; set; }
public bool PERMITIRMODIFICACIONES { get; set; }
public bool PERMITIRELIMINACIONES { get; set; }
public bool PERMITIRIMPRESIONES { get; set; }
public bool OTROSPERMISOS { get; set; }
public virtual GRUPOSUSUARIOS? IDGRUPONavigation { get; set; }
public virtual PERMISOS? IDPERMISONavigation { get; set; }
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class AUTORIZACIONESUSUARIOS
{
public int IDAUTORIZACIONES { get; set; }
public int? IDUSUARIO { get; set; }
public int IDPERMISO { get; set; }
public bool PERMITIRCONSULTAS { get; set; }
public bool PERMITIRNUEVOS { get; set; }
public bool PERMITIRMODIFICACIONES { get; set; }
public bool PERMITIRELIMINACIONES { get; set; }
public bool PERMITIRIMPRESIONES { get; set; }
public bool OTROSPERMISOS { get; set; }
public virtual PERMISOS IDPERMISONavigation { get; set; } = null!;
public virtual USUARIOS? IDUSUARIONavigation { get; set; }
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class BANCOS
{
public int IDBANCO { get; set; }
public string CODIGO { get; set; } = null!;
public string? NOMBRE { get; set; }
public string? BIC { get; set; }
public bool OBSOLETO { get; set; }
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class BLOQUEOS
{
public int IDBLOQUEO { get; set; }
public int? IDCONEXION { get; set; }
public string? APLICACION { get; set; }
public int? IDREGISTROBLOQUEADO { get; set; }
public virtual CONEXIONES? IDCONEXIONNavigation { get; set; }
}

View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CERTIFICADOSPUBLICOS
{
public decimal IDCERTIFICADO { get; set; }
public string? CODIGO { get; set; }
public string? CIF { get; set; }
public string? CODIGOPERSONAL { get; set; }
public string? NOMBRE { get; set; }
public string? APELLIDOS { get; set; }
public string? TIPO { get; set; }
public string? TITULO { get; set; }
public string? TIPOCONTENIDO { get; set; }
public string? CERT_ID { get; set; }
public string? CERT_ID_RELACIONADO { get; set; }
public DateTime? FECHAVALIDEZ { get; set; }
public DateTime? FECHACREACION { get; set; }
public DateTime? FECHACADUCIDAD { get; set; }
public DateTime? FECHAPETICIONREVOCACION { get; set; }
public DateTime? FECHAREVOCACION { get; set; }
public string? CAUSAREVOCACION { get; set; }
public string? OBSERVACIONES { get; set; }
public byte[]? CONTENEDORCLAVES { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CODIGOSPOSTALES
{
public int IDCODIGOPOSTAL { get; set; }
public string CODIGOPOSTAL { get; set; } = null!;
public string? CODIGOMUNICIPIO { get; set; }
public string? DESCRIPCIONADICIONAL { get; set; }
public DateTime? FECHAALTA { get; set; }
public int? IDALTA { get; set; }
public virtual MUNICIPIOS? CODIGOMUNICIPIONavigation { get; set; }
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class COMARCAS
{
public string CODIGOCOMARCA { get; set; } = null!;
public string CODIGOPROVINCIA { get; set; } = null!;
public string? NOMBRE { get; set; }
public virtual PROVINCIAS CODIGOPROVINCIANavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class COMPLEMENTONIVEL
{
public int IDCOMPLEMENTONIVEL { get; set; }
public decimal? IMPORTEANUAL { get; set; }
public decimal? IMPORTEMENSUAL { get; set; }
public int? IDNIVEL { get; set; }
public int? IDRPT { get; set; }
public virtual NIVEL? IDNIVELNavigation { get; set; }
public virtual RPT? IDRPTNavigation { get; set; }
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class COMPLEMENTOSCARRERA
{
public int IDCOMCARR { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHAINICIO { get; set; }
public int? IDGRUPO { get; set; }
public decimal? CANTIDAD { get; set; }
public int? IDTRAMO { get; set; }
public DateTime? FECHAFIN { get; set; }
public virtual GRUPO? IDGRUPONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ENUMERACIONES? IDTRAMONavigation { get; set; }
}

View File

@@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONCEPTOSGENERALES
{
public int IDCONCEPTOSGENERALES { get; set; }
public string? NOMBRE { get; set; }
public string? DESCRIPCION { get; set; }
public string? CONCEPTOAPLPRES { get; set; }
public string? APLPRESALTOSCARGOS { get; set; }
public string? APLPRESEVENTUAL { get; set; }
public string? APLPRESFUNCIONARIOA1 { get; set; }
public string? APLPRESFUNCIONARIOA2 { get; set; }
public string? APLPRESFUNCIONARIOC1 { get; set; }
public string? APLPRESFUNCIONARIOC2 { get; set; }
public string? APLPRESFUNCIONARIOE { get; set; }
public string? APLPRESLABORAL { get; set; }
public bool RETRIBUCIONES { get; set; }
public bool DEDUCCIONES { get; set; }
public bool COTIZASEGURIDADSOCIAL { get; set; }
public bool COTIZAIRPF { get; set; }
public bool EXTRA { get; set; }
public string? TIPO { get; set; }
public int? ORDEN { get; set; }
public bool INTERVIENEENPAGODIRECTO { get; set; }
public bool PERTENECENOMINA { get; set; }
public bool PERTENECELIQUIDACIONES { get; set; }
public string? APLPRESFUNCIONARIOB { get; set; }
public virtual ICollection<CONCEPTOSPUESTOSDETRABAJO> CONCEPTOSPUESTOSDETRABAJO { get; set; } = new List<CONCEPTOSPUESTOSDETRABAJO>();
public virtual ICollection<CONCEPTOSTIPOSPUESTOSTRABAJO> CONCEPTOSTIPOSPUESTOSTRABAJO { get; set; } = new List<CONCEPTOSTIPOSPUESTOSTRABAJO>();
public virtual ICollection<INCIDENCIAS> INCIDENCIAS { get; set; } = new List<INCIDENCIAS>();
public virtual ICollection<NOMINATRABAJADORLINEA> NOMINATRABAJADORLINEA { get; set; } = new List<NOMINATRABAJADORLINEA>();
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONCEPTOSPUESTOSDETRABAJO
{
public int IDCONCEPTOSPUESTOSDETRABAJO { get; set; }
public int? IDPUESTOSDETRABAJO { get; set; }
public string? NOMBRE { get; set; }
public string? DESCRIPCION { get; set; }
public decimal IMPORTE { get; set; }
public string? CONCEPTOAPLPRES { get; set; }
public string? APLICACIONPRESUPUESTARIA { get; set; }
public bool RETRIBUCIONES { get; set; }
public bool DEDUCCIONES { get; set; }
public bool COTIZASEGURIDADSOCIAL { get; set; }
public bool COTIZAIRPF { get; set; }
public bool EXTRA { get; set; }
public int? IDCONCEPTOGENERAL { get; set; }
public virtual CONCEPTOSGENERALES? IDCONCEPTOGENERALNavigation { get; set; }
public virtual PUESTOSTRABAJO? IDPUESTOSDETRABAJONavigation { get; set; }
}

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONCEPTOSTIPOSPUESTOSTRABAJO
{
public int IDCONCEPTOSTIPOSPUESTOTRABAJO { get; set; }
public int IDTIPOPUESTOSTRABAJO { get; set; }
public string? NOMBRE { get; set; }
public string? DESCRIPCION { get; set; }
public decimal IMPORTE { get; set; }
public string? CONCEPTOAPLPRES { get; set; }
public string? APLICACIONPRESUPUESTARIA { get; set; }
public bool COTIZASEGURIDADSOCIAL { get; set; }
public bool COTIZAIRPF { get; set; }
public bool RETRIBUCIONES { get; set; }
public bool DEDUCCIONES { get; set; }
public bool EXTRA { get; set; }
public int? IDCONCEPTOGENERAL { get; set; }
public virtual CONCEPTOSGENERALES? IDCONCEPTOGENERALNavigation { get; set; }
public virtual TIPOSPUESTOSTRABAJO IDTIPOPUESTOSTRABAJONavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONEXIONES
{
public int IDCONEXION { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAAUTENTICACION { get; set; }
public string? USUARIO { get; set; }
public string? IP { get; set; }
public virtual ICollection<BLOQUEOS> BLOQUEOS { get; set; } = new List<BLOQUEOS>();
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONEXIONESBD
{
public int IDCONEXIONESBD { get; set; }
public int IDGRUPOBD { get; set; }
public string? SERVIDORLOCAL { get; set; }
public string? SERVIDORREMOTO { get; set; }
public int? PUERTOLOCAL { get; set; }
public int? PUERTOREMOTO { get; set; }
public string? USUARIO { get; set; }
public string? PASSWORD { get; set; }
public string? ESQUEMA { get; set; }
public virtual GRUPOBD IDGRUPOBDNavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONSOLIDACION_GRADO
{
public int IDCUMPGRADO { get; set; }
public int? IDPERSONAL { get; set; }
public int? NIVEL { get; set; }
public DateTime? FECHA_EFECTO { get; set; }
public DateTime? FECHA_RESOLUCION { get; set; }
public DateTime? FECHA_COMUNICACION { get; set; }
public int? IDNIVEL { get; set; }
public virtual NIVEL? IDNIVELNavigation { get; set; }
public virtual PERSONAS? IDPERSONALNavigation { get; set; }
}

View File

@@ -0,0 +1,65 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CONTRATOS
{
public int IDCONTRATO { get; set; }
public string? CODIGO { get; set; }
public string? DESCRIPCION { get; set; }
public decimal? CONTCOMUNPORCENTEMPR { get; set; }
public decimal? CONTCOMUNPORCENTTRAB { get; set; }
public decimal? CONTCOMUNIMPORTEEMPR { get; set; }
public decimal? CONTCOMUNIMPORTETRAB { get; set; }
public decimal? FORMACIONPROFPORCENTEMPR { get; set; }
public decimal? FORMACIONPROFPORCENTTRAB { get; set; }
public decimal? FORMACIONPROFIMPORTEEMPR { get; set; }
public decimal? FORMACIONPROFIMPORTETRAB { get; set; }
public decimal? ACCITIMSCNAEPORCENTEMPR { get; set; }
public decimal? ACCITIMSCNAEPORCENTTRAB { get; set; }
public decimal? ACCITIMSCNAEIMPORTEEMPR { get; set; }
public decimal? ACCITIMSCNAEIMPORTETRAB { get; set; }
public decimal? DESEMPLEOPORCENTAJEEMPRESA { get; set; }
public decimal? DESEMPLEOPORCENTAJETRABAJADOR { get; set; }
public decimal? DESEMPLEOIMPORTEEMPRESA { get; set; }
public decimal? DESEMPLEOIMPORTETRABAJADOR { get; set; }
public decimal? FOGASAPORCENTAJEEMPRESA { get; set; }
public decimal? FOGASAPORCENTAJETRABAJADOR { get; set; }
public decimal? FOGASAIMPORTEEMPRESA { get; set; }
public decimal? FOGASAIMPORTETRABAJADOR { get; set; }
public decimal? MEIPORCENTAJEEMPRESA { get; set; }
public decimal? MEIPORCENTAJETRABAJADOR { get; set; }
public decimal? MEIIMPORTEEMPRESA { get; set; }
public decimal? MEIIMPORTETRABAJADOR { get; set; }
public virtual ICollection<PERIODOSSILTRA> PERIODOSSILTRA { get; set; } = new List<PERIODOSSILTRA>();
public virtual ICollection<PERSONAS> PERSONAS { get; set; } = new List<PERSONAS>();
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CORREOS
{
public int IDCORREO { get; set; }
public int? IDCUENTA { get; set; }
public string? REMITENTE { get; set; }
public string? DESTINATARIO { get; set; }
public string? DIRECCIONRESPUESTA { get; set; }
public string? ASUNTO { get; set; }
public string? CUERPO { get; set; }
public string? RUTAFICHEROADJUNTO { get; set; }
public int? IDFICHEROADJUNTO { get; set; }
public DateTime? FECHACREACION { get; set; }
public DateTime? FECHAENVIO { get; set; }
public DateTime? FECHAULTIMOINTENTO { get; set; }
public DateTime? FECHAANULACION { get; set; }
public DateTime? FECHAAVISOERROR { get; set; }
public int? IDPERSONA { get; set; }
public int? IDAPLICACION { get; set; }
public string? CODIGOAPLICACION { get; set; }
public virtual CUENTASCORREO? IDCUENTANavigation { get; set; }
public virtual FICHEROS? IDFICHEROADJUNTONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CUENTASCORREO
{
public int IDCUENTA { get; set; }
public string? CODIGO { get; set; }
public string? SERVIDORSMTP { get; set; }
public string? REMITENTE { get; set; }
public string? CUENTACORREO { get; set; }
public string? PASSWORDENC { get; set; }
public int? PUERTO { get; set; }
public bool SSL { get; set; }
public bool DESHABILITADA { get; set; }
public virtual ICollection<CORREOS> CORREOS { get; set; } = new List<CORREOS>();
}

View File

@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CUENTASCOTIZACIONPATRONAL
{
public int IDCUENTACOTIZACIONPATRONAL { get; set; }
public string? CODIGO { get; set; }
public string? REGIMEN { get; set; }
public string? AUTORIZADO { get; set; }
public string? NOMBRE { get; set; }
public string? DESCRIPCION { get; set; }
public string? ENTIDAD { get; set; }
public string? IPF { get; set; }
public string? IBANLIQUIDACIONESDEUDORAS { get; set; }
public string? IBANLIQUIDACIONESACREEDORAS { get; set; }
public int? IDTITULARTIPOIPF { get; set; }
public string? TITULARIPF { get; set; }
public string? TITULARNOMBRE { get; set; }
public bool FUNCIONARIO { get; set; }
public bool LABORAL { get; set; }
public bool EVENTUAL { get; set; }
public bool INTERINO { get; set; }
public bool ALTOCARGO { get; set; }
public bool DIPUTADOSENASIGNACION { get; set; }
public DateTime? FECHAALTA { get; set; }
public DateTime? FECHABAJA { get; set; }
public string? LETRAIDENTIFICACIONFICHERO { get; set; }
public decimal? COEFICIENTEREDUCTOREMPRESA { get; set; }
public decimal? COEFICIENTEREDUCTORTRABAJADOR { get; set; }
public decimal? COEFICIENTEREDUCTORTOTAL { get; set; }
public virtual ENUMERACIONES? IDTITULARTIPOIPFNavigation { get; set; }
public virtual ICollection<PERIODOSSILTRA> PERIODOSSILTRA { get; set; } = new List<PERIODOSSILTRA>();
public virtual ICollection<PERSONAS> PERSONAS { get; set; } = new List<PERSONAS>();
}

View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CUERPO
{
public int IDCUERPO { get; set; }
public string? CUERPO1 { get; set; }
public string? DESCRIPCION { get; set; }
public bool ACTIVO { get; set; }
public int? GRUPO_ASOCIADO { get; set; }
public int? MIN_GRADO { get; set; }
public int? MAX_GRADO { get; set; }
public int? IDGRUPO { get; set; }
public virtual GRUPO? IDGRUPONavigation { get; set; }
public virtual ICollection<PERSONAS> PERSONAS { get; set; } = new List<PERSONAS>();
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIPCUERPO1Navigation { get; set; } = new List<RPT_DESCRIP>();
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIPCUERPO2Navigation { get; set; } = new List<RPT_DESCRIP>();
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CUMPLIMIENTO_TRIENIOS
{
public int IDCUMPTRIENIO { get; set; }
public int? IDPERSONAL { get; set; }
public string? GRUPO { get; set; }
public int? TC { get; set; }
public DateTime? FECHA_PROPUESTA { get; set; }
public DateTime? FECHA_ANEXO { get; set; }
public DateTime? FECHA_COMUNICACION { get; set; }
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class CURSOS
{
public int IDCURSO { get; set; }
public string? DENOMINACION { get; set; }
public int? IDMODOIMPARTICION { get; set; }
public int? IDSALA { get; set; }
public DateTime? FECHAINICIOCURSO { get; set; }
public DateTime? FECHAFINCURSO { get; set; }
public DateTime? FECHAINICIOINSCRIPCION { get; set; }
public DateTime? FECHAFININSCRIPCION { get; set; }
public int? IDHORARIOCURSO { get; set; }
public DateTime? FECHAEXPEDICIONCERTIFICADO { get; set; }
public int? IDPROFESOR { get; set; }
public string? CONVOCATORIA { get; set; }
public int? IDPERSONACURSO { get; set; }
public virtual ICollection<FORMACION> FORMACION { get; set; } = new List<FORMACION>();
public virtual ICollection<HORARIOSCURSOS> HORARIOSCURSOS { get; set; } = new List<HORARIOSCURSOS>();
public virtual HORARIOSCURSOS? IDHORARIOCURSONavigation { get; set; }
public virtual ENUMERACIONES? IDMODOIMPARTICIONNavigation { get; set; }
public virtual PERSONASCURSOS? IDPERSONACURSONavigation { get; set; }
public virtual PROFESORESCURSOS? IDPROFESORNavigation { get; set; }
public virtual SALAS? IDSALANavigation { get; set; }
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DECLARACIONESDEVENGOS
{
public int IDDECLARACION { get; set; }
public int AÑO { get; set; }
public int MES { get; set; }
public DateTime? FECHADECLARACION { get; set; }
public virtual ICollection<DEVENGOS> DEVENGOS { get; set; } = new List<DEVENGOS>();
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DEDUCCIONESRETENCIONESJUDICI
{
public int IDDEDUCCRETENJUDI { get; set; }
public int? IDRETENCION { get; set; }
public int? IDPERSONA { get; set; }
public int? IDNOMINA { get; set; }
public decimal? CANTIDADDEDUCIDA { get; set; }
public decimal? SALDO { get; set; }
public bool DESCONTADA { get; set; }
public virtual NOMINAS? IDNOMINANavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual RETENCIONJUDICIAL? IDRETENCIONNavigation { get; set; }
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DEPARTAMENTOSCH
{
public int IDDEPARTAMENTO { get; set; }
public string? NOMBRE { get; set; }
public DateTime? FECHAALTA { get; set; }
public DateTime? FECHABAJA { get; set; }
public int? ORDEN { get; set; }
public virtual ICollection<ROLESDEPARTAMENTOSCH> ROLESDEPARTAMENTOSCH { get; set; } = new List<ROLESDEPARTAMENTOSCH>();
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DESGLOSETRIYCOMPLANTIGUEDAD
{
public int IDDESGLOSETRIYCOMPLANTI { get; set; }
public string? DESCRIPCION { get; set; }
public decimal? CANTIDAD { get; set; }
public decimal? IMPORTE { get; set; }
public decimal? TOTAL { get; set; }
public string? TIPO { get; set; }
public int? IDNOMINATRABAJADORCAB { get; set; }
public virtual NOMINATRABAJADORCABECERA? IDNOMINATRABAJADORCABNavigation { get; set; }
}

View File

@@ -0,0 +1,127 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DEVENGOS
{
public int IDDEVENGO { get; set; }
public int? IDPERCEPTOR { get; set; }
public DateTime FECHA { get; set; }
public int? IDCLAVE { get; set; }
public int? IDSUBCLAVE { get; set; }
public decimal? PERCEPCIONESINTEGRAS { get; set; }
public decimal? RETENCIONES { get; set; }
public decimal? VALORACION { get; set; }
public decimal? INGRESOSACUENTAEFECTUADOS { get; set; }
public decimal? INGRESOSACUENTAREPERCUTIDOS { get; set; }
public DateTime? AÑONACIMIENTO { get; set; }
public int? IDSITUACIONFAMILIAR { get; set; }
public string? NIFCONYUGE { get; set; }
public int? IDDISCAPACIDAD { get; set; }
public int? IDCONTRATOORELACION { get; set; }
public bool MOVILIDADGEOGRAFICA2014 { get; set; }
public bool MOVILIDADGEOGRAFICA { get; set; }
public int? ADQOREHVIVIENDAFINANAJENA { get; set; }
public decimal? REDUCCIONES { get; set; }
public decimal? GASTOSDEDUCIBLES { get; set; }
public decimal? PENSIONESCOMPENSATORIAS { get; set; }
public decimal? ANUALIDADESALIMENTOS { get; set; }
public int? DESCENDIENTEMENOR3AÑOSTOTAL { get; set; }
public int? DMENOR3AÑOSPORENTERO { get; set; }
public int? DESCENDIENTESRESTOTOTAL { get; set; }
public int? DESCENDIENTESRESTOPORENTERO { get; set; }
public int? ASCENDIENTESMENOR75TOTAL { get; set; }
public int? ASCENDIENTESMENOR75PORENTERO { get; set; }
public int? ASCENDIENTESMAYORIGUAL75TOTAL { get; set; }
public int? AMAYORIGUAL75PORENTERO { get; set; }
public int? COMPUTODEHIJO1 { get; set; }
public int? COMPUTODEHIJO2 { get; set; }
public int? COMPUTODEHIJO3 { get; set; }
public int? DDMAYORIGUAL33YMENOR65TOTAL { get; set; }
public int? DDMAYORIGUAL33YMENOR65PORENT { get; set; }
public int? DDMOVILIDADREDUCIDATOTAL { get; set; }
public int? DDMOVILIDADREDUCIDAPORENT { get; set; }
public int? DDMAYORIGUAL65TOTAL { get; set; }
public int? DDMAYORIGUAL65PORENT { get; set; }
public int? DAMAYORIGUAL33YMENOR65TOTAL { get; set; }
public int? DAMAYORIGUAL33YMENOR65PORENT { get; set; }
public int? DAMOVILIDADREDUCIDATOTAL { get; set; }
public int? DAMOVILIDADREDUCIDAPORENT { get; set; }
public int? DAMAYORIGUAL65TOTAL { get; set; }
public int? DAMAYORIGUAL65PORENT { get; set; }
public int? EJERCICIO { get; set; }
public int? MES { get; set; }
public string? CONCEPTO { get; set; }
public string? ORIGENDATO { get; set; }
public int? IDNOMINA { get; set; }
public DateTime? FECHAFISCALIZACION { get; set; }
public int? IDDECLARACION { get; set; }
public virtual ENUMERACIONES? IDCLAVENavigation { get; set; }
public virtual ENUMERACIONES? IDCONTRATOORELACIONNavigation { get; set; }
public virtual DECLARACIONESDEVENGOS? IDDECLARACIONNavigation { get; set; }
public virtual ENUMERACIONES? IDDISCAPACIDADNavigation { get; set; }
public virtual NOMINAS? IDNOMINANavigation { get; set; }
public virtual PERCEPTORES? IDPERCEPTORNavigation { get; set; }
public virtual ENUMERACIONES? IDSITUACIONFAMILIARNavigation { get; set; }
public virtual ENUMERACIONES? IDSUBCLAVENavigation { get; set; }
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DIASACOMPENSARPERSONAS
{
public int IDDIAACOMPENSARPERSONA { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHA { get; set; }
public DateTime? FECHACOMPENSACION { get; set; }
public string? DESCRIPCION { get; set; }
public DateTime? FECHALIMITEVALIDEZ { get; set; }
public int? NUMERODIAS { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DIASCOMPENSACION
{
public int IDDIACOMPENSACION { get; set; }
public int? IDHORAMES { get; set; }
public DateTime? FECHA { get; set; }
public decimal? NUMEROHORAS_D { get; set; }
public string? OBSERVACIONES { get; set; }
public decimal? HORASPARASALDOARECUPERAR_D { get; set; }
public virtual HORASMES? IDHORAMESNavigation { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DIFERENCIAPAGODELEGADO
{
public int IDDIFERENCIAPAGODELEGADO { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public decimal? BASEDIARIASEGURIDADSOCIAL { get; set; }
public int? IDPERSONA { get; set; }
public decimal? BASEPAGODIRECTO { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DIFERENCIATRIENIOS
{
public int IDDIFERENCIASTRIENIOS { get; set; }
public int? NUMEROTRIENIOS { get; set; }
public string? DESCRIPCION { get; set; }
public string? TIPO { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHAALTA { get; set; }
public DateTime? FECHABAJA { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DIPUTADOS
{
public int IDDIPUTADOS { get; set; }
public int IDPERSONAS { get; set; }
public virtual PERSONAS IDPERSONASNavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DOCENCIA
{
public int IDDOCENCIA { get; set; }
public string? DENOMINACION { get; set; }
public string? CENTRO { get; set; }
public string? TIPO { get; set; }
public DateTime? FECHAEXPEDICION { get; set; }
public decimal? DURACION { get; set; }
public int? IDTIPODOCENCIA { get; set; }
public int? IDPERSONA { get; set; }
public string? RUTA { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ENUMERACIONES? IDTIPODOCENCIANavigation { get; set; }
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class DOTACION
{
public int IDDOTACION { get; set; }
public string? DOTACION1 { get; set; }
public string? DESCRIPCION { get; set; }
public bool ACTIVO { get; set; }
public int? PLAZO { get; set; }
public virtual ICollection<PUESTOS> PUESTOS { get; set; } = new List<PUESTOS>();
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ENFERMEDADES
{
public int IDENFERMEDADES { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public decimal? BASE { get; set; }
public int? IDTIPO { get; set; }
public bool CONTINUIDAD { get; set; }
public bool NOMINANORMAL { get; set; }
public bool NOMINASEGURIDADSOCIAL { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ENUMERACIONES? IDTIPONavigation { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ENLACES
{
public int IDENLACE { get; set; }
public string? DESCRIPCION { get; set; }
public string? ENLACE { get; set; }
public int? IDSECCION { get; set; }
public int? ORDEN { get; set; }
public bool VISIBLEPERSONAL { get; set; }
public virtual ENUMERACIONES? IDSECCIONNavigation { get; set; }
}

View File

@@ -0,0 +1,209 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ENUMERACIONES
{
public int IDENUMERACION { get; set; }
public int? IDGRUPOENUMERACION { get; set; }
public string? CODIGO { get; set; }
public string? DESCRIPCION { get; set; }
public string? VALORALFABETICO1 { get; set; }
public string? VALORALFABETICO2 { get; set; }
public decimal? VALORNUMERICO1 { get; set; }
public decimal? VALORNUMERICO2 { get; set; }
public int? ORDEN { get; set; }
public bool OCULTO { get; set; }
public string? VALORALFABETICO3 { get; set; }
public string? VALORALFABETICO4 { get; set; }
public string? VALORALFABETICOLARGO { get; set; }
public decimal? VALORNUMERICO3 { get; set; }
public decimal? VALORNUMERICO4 { get; set; }
public virtual ICollection<ASCENDIENTES> ASCENDIENTES { get; set; } = new List<ASCENDIENTES>();
public virtual ICollection<ASCENDIENTESHISTORICOIRPF> ASCENDIENTESHISTORICOIRPF { get; set; } = new List<ASCENDIENTESHISTORICOIRPF>();
public virtual ICollection<ASISTENCIAS> ASISTENCIAS { get; set; } = new List<ASISTENCIAS>();
public virtual ICollection<COMPLEMENTOSCARRERA> COMPLEMENTOSCARRERA { get; set; } = new List<COMPLEMENTOSCARRERA>();
public virtual ICollection<CUENTASCOTIZACIONPATRONAL> CUENTASCOTIZACIONPATRONAL { get; set; } = new List<CUENTASCOTIZACIONPATRONAL>();
public virtual ICollection<CURSOS> CURSOS { get; set; } = new List<CURSOS>();
public virtual ICollection<DEVENGOS> DEVENGOSIDCLAVENavigation { get; set; } = new List<DEVENGOS>();
public virtual ICollection<DEVENGOS> DEVENGOSIDCONTRATOORELACIONNavigation { get; set; } = new List<DEVENGOS>();
public virtual ICollection<DEVENGOS> DEVENGOSIDDISCAPACIDADNavigation { get; set; } = new List<DEVENGOS>();
public virtual ICollection<DEVENGOS> DEVENGOSIDSITUACIONFAMILIARNavigation { get; set; } = new List<DEVENGOS>();
public virtual ICollection<DEVENGOS> DEVENGOSIDSUBCLAVENavigation { get; set; } = new List<DEVENGOS>();
public virtual ICollection<DOCENCIA> DOCENCIA { get; set; } = new List<DOCENCIA>();
public virtual ICollection<ENFERMEDADES> ENFERMEDADES { get; set; } = new List<ENFERMEDADES>();
public virtual ICollection<ENLACES> ENLACES { get; set; } = new List<ENLACES>();
public virtual ICollection<EXCEPCIONESPERMISOS> EXCEPCIONESPERMISOS { get; set; } = new List<EXCEPCIONESPERMISOS>();
public virtual ICollection<EXPEDIENTESPERSONAS> EXPEDIENTESPERSONAS { get; set; } = new List<EXPEDIENTESPERSONAS>();
public virtual ICollection<FAMILIA> FAMILIAIDDISCAPACIDADNavigation { get; set; } = new List<FAMILIA>();
public virtual ICollection<FAMILIA> FAMILIAIDPARENTESCONavigation { get; set; } = new List<FAMILIA>();
public virtual ICollection<FICHEROS> FICHEROS { get; set; } = new List<FICHEROS>();
public virtual ICollection<FORMACIONIMPARTIDA> FORMACIONIMPARTIDA { get; set; } = new List<FORMACIONIMPARTIDA>();
public virtual ICollection<HIJOS> HIJOS { get; set; } = new List<HIJOS>();
public virtual ICollection<HIJOSHISTORICOIRPF> HIJOSHISTORICOIRPF { get; set; } = new List<HIJOSHISTORICOIRPF>();
public virtual ICollection<HISTORICOIRPF> HISTORICOIRPF { get; set; } = new List<HISTORICOIRPF>();
public virtual ICollection<HORARIOSPERSONAS> HORARIOSPERSONASIDTARDEOBLIGATORIANavigation { get; set; } = new List<HORARIOSPERSONAS>();
public virtual ICollection<HORARIOSPERSONAS> HORARIOSPERSONASIDTURNONavigation { get; set; } = new List<HORARIOSPERSONAS>();
public virtual ICollection<HORASMES> HORASMES { get; set; } = new List<HORASMES>();
public virtual GRUPOSENUMERACIONES? IDGRUPOENUMERACIONNavigation { get; set; }
public virtual ICollection<IDIOMAS> IDIOMASIDNIVELNavigation { get; set; } = new List<IDIOMAS>();
public virtual ICollection<IDIOMAS> IDIOMASIDTIPOIDIOMANavigation { get; set; } = new List<IDIOMAS>();
public virtual ICollection<INCIDENCIASCONTROLHORARIO> INCIDENCIASCONTROLHORARIOIDADJUNTONavigation { get; set; } = new List<INCIDENCIASCONTROLHORARIO>();
public virtual ICollection<INCIDENCIASCONTROLHORARIO> INCIDENCIASCONTROLHORARIOIDGRUPONavigation { get; set; } = new List<INCIDENCIASCONTROLHORARIO>();
public virtual ICollection<INCIDENCIASCONTROLHORARIO> INCIDENCIASCONTROLHORARIOIDTIPONavigation { get; set; } = new List<INCIDENCIASCONTROLHORARIO>();
public virtual ICollection<LINEASVIDAADMINISTRATIVA> LINEASVIDAADMINISTRATIVA { get; set; } = new List<LINEASVIDAADMINISTRATIVA>();
public virtual ICollection<NOMINAS> NOMINASIDSITUACIONNOMINANavigation { get; set; } = new List<NOMINAS>();
public virtual ICollection<NOMINAS> NOMINASIDTIPONavigation { get; set; } = new List<NOMINAS>();
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERAIDGRUPOFUNCIONARIONavigation { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERAIDMUTUA2Navigation { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERAIDMUTUANavigation { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERAIDSINDICATO1Navigation { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERAIDSINDICATO2Navigation { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERAIDTIPOPERSONANavigation { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<PERIODOSSILTRA> PERIODOSSILTRAIDESTADONavigation { get; set; } = new List<PERIODOSSILTRA>();
public virtual ICollection<PERIODOSSILTRA> PERIODOSSILTRAIDTIPOLIQUIDACIONNavigation { get; set; } = new List<PERIODOSSILTRA>();
public virtual ICollection<PERIODOSSILTRA> PERIODOSSILTRAIDTIPOPERIODOTRAMONavigation { get; set; } = new List<PERIODOSSILTRA>();
public virtual ICollection<PERSONAS> PERSONASIDCAUSAALTAPARNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDCAUSABAJAPARNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDCAUSADEBAJANavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDDEPARTAMENTONavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDDISCAPACIDADNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDESCALANavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDESPECIALIDADNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDGRUPOFUNCIONARIONavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDMUTUA2Navigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDMUTUANavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDOCUPACIONNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDSEXONavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDSITUACIONENRPTNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDSITUACIONFAMILIARNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDSITUACIONLABORALNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDTIPOEMPLEADORPTNavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PERSONAS> PERSONASIDTIPONavigation { get; set; } = new List<PERSONAS>();
public virtual ICollection<PLANTILLAS> PLANTILLASIDGRUPONavigation { get; set; } = new List<PLANTILLAS>();
public virtual ICollection<PLANTILLAS> PLANTILLASIDTIPONavigation { get; set; } = new List<PLANTILLAS>();
public virtual ICollection<PROCESOS> PROCESOSIDSUBTIPONavigation { get; set; } = new List<PROCESOS>();
public virtual ICollection<PROCESOS> PROCESOSIDTIPONavigation { get; set; } = new List<PROCESOS>();
public virtual ICollection<PUESTOSTRABAJO> PUESTOSTRABAJOIDGRUPOFUNCIONARIONavigation { get; set; } = new List<PUESTOSTRABAJO>();
public virtual ICollection<PUESTOSTRABAJO> PUESTOSTRABAJOIDTIPONavigation { get; set; } = new List<PUESTOSTRABAJO>();
public virtual ICollection<ROLESDEPARTAMENTOSCH> ROLESDEPARTAMENTOSCH { get; set; } = new List<ROLESDEPARTAMENTOSCH>();
public virtual ICollection<RPT> RPT { get; set; } = new List<RPT>();
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIPIDDEPARTAMENTONavigation { get; set; } = new List<RPT_DESCRIP>();
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIPIDTIPOVIRTUALNavigation { get; set; } = new List<RPT_DESCRIP>();
public virtual ICollection<SALAS> SALAS { get; set; } = new List<SALAS>();
public virtual ICollection<SESIONES> SESIONESIDTIPONavigation { get; set; } = new List<SESIONES>();
public virtual ICollection<SESIONES> SESIONESIDTURNONavigation { get; set; } = new List<SESIONES>();
public virtual ICollection<SITUACIONACTUALIRPF> SITUACIONACTUALIRPFIDCONTRATOORELACIONNavigation { get; set; } = new List<SITUACIONACTUALIRPF>();
public virtual ICollection<SITUACIONACTUALIRPF> SITUACIONACTUALIRPFIDDISCAPACIDADNavigation { get; set; } = new List<SITUACIONACTUALIRPF>();
public virtual ICollection<SITUACIONACTUALIRPF> SITUACIONACTUALIRPFIDSITUACIONFAMILIARNavigation { get; set; } = new List<SITUACIONACTUALIRPF>();
public virtual ICollection<SITUACIONACTUALIRPF> SITUACIONACTUALIRPFIDSITUACIONLABORALNavigation { get; set; } = new List<SITUACIONACTUALIRPF>();
public virtual ICollection<TIPOSPUESTOSTRABAJO> TIPOSPUESTOSTRABAJOIDGRUPOFUNCIONARIONavigation { get; set; } = new List<TIPOSPUESTOSTRABAJO>();
public virtual ICollection<TIPOSPUESTOSTRABAJO> TIPOSPUESTOSTRABAJOIDTIPOPERSONANavigation { get; set; } = new List<TIPOSPUESTOSTRABAJO>();
public virtual ICollection<TIPOSSESIONES> TIPOSSESIONES { get; set; } = new List<TIPOSSESIONES>();
public virtual ICollection<TIPOSTRAMOS> TIPOSTRAMOSIDREGIMENAPLICACIONNavigation { get; set; } = new List<TIPOSTRAMOS>();
public virtual ICollection<TIPOSTRAMOS> TIPOSTRAMOSIDTIPOTRAMOFICHEROXMLNavigation { get; set; } = new List<TIPOSTRAMOS>();
public virtual ICollection<TURNOSTEMPORALES> TURNOSTEMPORALES { get; set; } = new List<TURNOSTEMPORALES>();
public virtual ICollection<VALIDACIONDOCUMENTOS> VALIDACIONDOCUMENTOS { get; set; } = new List<VALIDACIONDOCUMENTOS>();
public virtual ICollection<VIDA_ADMINISTRATIVA> VIDA_ADMINISTRATIVA { get; set; } = new List<VIDA_ADMINISTRATIVA>();
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ESPECIFICOS
{
public int IDESPECIFICO { get; set; }
public int? IDRPTDES { get; set; }
public decimal? IMPORTE_M { get; set; }
public decimal? IMPORTE_EXTRAS { get; set; }
public decimal? IMPORTE_TOTAL { get; set; }
public decimal? IMPORTE_DEDICACION { get; set; }
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class ESTADOSASISTENCIA
{
public int IDESTADOASISTENCIA { get; set; }
public int? IDASISTENCIA { get; set; }
public DateTime? FECHAHORA { get; set; }
public int? IDESTADO { get; set; }
public string? USUARIO { get; set; }
public string? INFORMACIONANEXA { get; set; }
public string? OBSERVACIONES { get; set; }
public virtual ASISTENCIAS? IDASISTENCIANavigation { get; set; }
public virtual TIPOSESTADOSASISTENCIA? IDESTADONavigation { get; set; }
}

View File

@@ -0,0 +1,87 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class EXCEPCIONESHORARIOS
{
public int IDEXCEPCIONHORARIO { get; set; }
public int? IDHORARIO { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public string? DESCRIPCION { get; set; }
public decimal? TRAMO1FACTOR { get; set; }
public decimal? TRAMO2FACTOR { get; set; }
public bool MAÑANALUNES { get; set; }
public bool MAÑANAMARTES { get; set; }
public bool MAÑANAMIERCOLES { get; set; }
public bool MAÑANAJUEVES { get; set; }
public bool MAÑANAVIERNES { get; set; }
public bool MAÑANASABADO { get; set; }
public bool MAÑANADOMINGO { get; set; }
public bool TARDELUNES { get; set; }
public bool TARDEMARTES { get; set; }
public bool TARDEMIERCOLES { get; set; }
public bool TARDEJUEVES { get; set; }
public bool TARDEVIERNES { get; set; }
public bool TARDESABADO { get; set; }
public bool TARDEDOMINGO { get; set; }
public decimal? POSIBLEINICIOMAÑANA_D { get; set; }
public decimal? POSIBLEFINMAÑANA_D { get; set; }
public decimal? HABITUALINICIOMAÑANA_D { get; set; }
public decimal? HABITUALFINMAÑANA_D { get; set; }
public decimal? OBLIGADOINICIOMAÑANA_D { get; set; }
public decimal? OBLIGADOFINMAÑANA_D { get; set; }
public decimal? POSIBLEINICIOTARDE_D { get; set; }
public decimal? POSIBLEFINTARDE_D { get; set; }
public decimal? HABITUALINICIOTARDE_D { get; set; }
public decimal? HABITUALFINTARDE_D { get; set; }
public decimal? OBLIGADOINICIOTARDE_D { get; set; }
public decimal? OBLIGADOFINTARDE_D { get; set; }
public decimal? TRAMO1INICIO_D { get; set; }
public decimal? TRAMO1FIN_D { get; set; }
public decimal? TRAMO2INICIO_D { get; set; }
public decimal? TRAMO2FIN_D { get; set; }
public decimal? HORASTRABAJOMAÑANA_D { get; set; }
public decimal? HORASTRABAJOTARDE_D { get; set; }
public virtual HORARIOS? IDHORARIONavigation { get; set; }
}

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class EXCEPCIONESPERMISOS
{
public int IDEXCEPCIONPERMISO { get; set; }
public int? IDDEPARTAMENTO { get; set; }
public int? IDPERSONA { get; set; }
public int? IDPERSONAPERMISO { get; set; }
public bool SUPERVISORDETODO { get; set; }
public bool SUPERVISORDEPARTAMENTO { get; set; }
public bool DELEGADO { get; set; }
public bool ADMINISTRADORCONTROLHORARIO { get; set; }
public bool ADMINISTRADORTOTAL { get; set; }
public bool ADMINISTRARPTYREGISTRO { get; set; }
public bool DELEGADOINFORMES { get; set; }
public virtual ENUMERACIONES? IDDEPARTAMENTONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual PERSONAS? IDPERSONAPERMISONavigation { get; set; }
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class EXPEDIENTESPERSONAS
{
public int IDEXPEDIENTESPERSONAS { get; set; }
public int? TIPO { get; set; }
public DateTime? FECHA { get; set; }
public string? DESCRIPCION { get; set; }
public int IDPERSONA { get; set; }
public virtual PERSONAS IDPERSONANavigation { get; set; } = null!;
public virtual ENUMERACIONES? TIPONavigation { get; set; }
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class FAMILIA
{
public int IDFAMILIA { get; set; }
public string? DNI { get; set; }
public string? NOMBRE { get; set; }
public string? APELLIDOS { get; set; }
public DateTime? FECHANACIMIENTO { get; set; }
public int? IDPARENTESCO { get; set; }
public int? IDPERSONA { get; set; }
public bool ACTIVO { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public int? IDDISCAPACIDAD { get; set; }
public bool ENTEROIRPF { get; set; }
public bool MOVILIDADREDUCIDA { get; set; }
public virtual ENUMERACIONES? IDDISCAPACIDADNavigation { get; set; }
public virtual ENUMERACIONES? IDPARENTESCONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class FICHEROS
{
public int IDFICHERO { get; set; }
public string? DESCRIPCION { get; set; }
public DateTime? FECHA { get; set; }
public int? IDTIPO { get; set; }
public string? OBSERVACIONES { get; set; }
public byte[]? FICHERO { get; set; }
public string? NOMBREFICHERO { get; set; }
public virtual ICollection<CORREOS> CORREOS { get; set; } = new List<CORREOS>();
public virtual ENUMERACIONES? IDTIPONavigation { get; set; }
public virtual ICollection<NOMINATRABAJADORCABECERA> NOMINATRABAJADORCABECERA { get; set; } = new List<NOMINATRABAJADORCABECERA>();
public virtual ICollection<PERSONAS> PERSONAS { get; set; } = new List<PERSONAS>();
public virtual ICollection<PLANTILLAS> PLANTILLAS { get; set; } = new List<PLANTILLAS>();
public virtual ICollection<PROCESOS> PROCESOS { get; set; } = new List<PROCESOS>();
public virtual ICollection<TIPOSDOCACTOSADMINPREP> TIPOSDOCACTOSADMINPREP { get; set; } = new List<TIPOSDOCACTOSADMINPREP>();
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class FICHEROSCONFIGURACION
{
public int IDFICHEROCONFIGURACION { get; set; }
public int? IDUSUARIO { get; set; }
public string? CODIGO { get; set; }
public byte[]? CONFIGURACION { get; set; }
public string? DESCRIPCION { get; set; }
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class FIESTAS
{
public int IDFIESTA { get; set; }
public DateTime? FECHA { get; set; }
public string? DESCRIPCION { get; set; }
}

View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class FORMACION
{
public int IDFORMACION { get; set; }
public string? NUM_REGISTRO { get; set; }
public string? NOMBRE_CURSO { get; set; }
public string? CENTRO { get; set; }
public DateTime? FECHA_EXPEDICION { get; set; }
public decimal? DURACION { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHA_INSCRIPCION_PROVISIONAL { get; set; }
public DateTime? FECHA_INSCRIPCION_DEFINITIVA { get; set; }
public bool APROVECHAMIENTO { get; set; }
public bool APTOCPH { get; set; }
public bool OFICIAL { get; set; }
public string? RUTA { get; set; }
public string? NIF { get; set; }
public int? IDCURSO { get; set; }
public decimal? NOTA { get; set; }
public string? OBSERVACIONES { get; set; }
public virtual CURSOS? IDCURSONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class FORMACIONIMPARTIDA
{
public int IDFORMACIONIMPARTIDA { get; set; }
public string? DENOMINACION { get; set; }
public string? CENTROENTIDAD { get; set; }
public bool HOMOLOGACIONIAPP { get; set; }
public DateTime? FECHAEXPEDICION { get; set; }
public decimal? HORAS { get; set; }
public decimal? MINUTOS { get; set; }
public int? IDTIPODOCENCIA { get; set; }
public virtual ENUMERACIONES? IDTIPODOCENCIANavigation { get; set; }
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPO
{
public int IDGRUPO { get; set; }
public string? GRUPO1 { get; set; }
public string? DESCRIPCION { get; set; }
public bool ACTIVO { get; set; }
public int? IMPORTE_G { get; set; }
public int? IMPORTE_TRI_TOA { get; set; }
public int? IMPORTE_TRI_TC { get; set; }
public int? IMPORTE_TRI_TCE { get; set; }
public int? IMPORTE_G_EXTRAS { get; set; }
public int? IMPORTE_TRI_TOAE { get; set; }
public virtual ICollection<COMPLEMENTOSCARRERA> COMPLEMENTOSCARRERA { get; set; } = new List<COMPLEMENTOSCARRERA>();
public virtual ICollection<CUERPO> CUERPO { get; set; } = new List<CUERPO>();
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIPGRUPO1Navigation { get; set; } = new List<RPT_DESCRIP>();
public virtual ICollection<RPT_DESCRIP> RPT_DESCRIPGRUPO2Navigation { get; set; } = new List<RPT_DESCRIP>();
public virtual ICollection<TRIENIOS> TRIENIOS { get; set; } = new List<TRIENIOS>();
public virtual ICollection<VIDA_ADMINISTRATIVA> VIDA_ADMINISTRATIVA { get; set; } = new List<VIDA_ADMINISTRATIVA>();
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPOBD
{
public int IDGRUPOBD { get; set; }
public string? DESCRIPCION { get; set; }
public virtual ICollection<CONEXIONESBD> CONEXIONESBD { get; set; } = new List<CONEXIONESBD>();
public virtual ICollection<USUARIOS> USUARIOS { get; set; } = new List<USUARIOS>();
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPOSENUMERACIONES
{
public int IDGRUPOENUMERACION { get; set; }
public string GRUPO { get; set; } = null!;
public string? DESCRIPCION { get; set; }
public bool OCULTO { get; set; }
public virtual ICollection<ENUMERACIONES> ENUMERACIONES { get; set; } = new List<ENUMERACIONES>();
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPOSINCIDENCIAS
{
public int IDGRUPOINCIDENCIA { get; set; }
public string? DESCRIPCION { get; set; }
public bool ACTIVO { get; set; }
public string? AYUDAWEB { get; set; }
public int? ORDEN { get; set; }
public bool DISPLAYHOME { get; set; }
public virtual ICollection<INCIDENCIASCONTROLHORARIO> INCIDENCIASCONTROLHORARIO { get; set; } = new List<INCIDENCIASCONTROLHORARIO>();
public virtual ICollection<SUBGRUPOSINCIDENCIAS> SUBGRUPOSINCIDENCIAS { get; set; } = new List<SUBGRUPOSINCIDENCIAS>();
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPOSMENUS
{
public int IDGRUPOSMENUS { get; set; }
public string? DESCRIPCION { get; set; }
public virtual ICollection<GRUPOSUSUARIOS> GRUPOSUSUARIOS { get; set; } = new List<GRUPOSUSUARIOS>();
public virtual ICollection<MENUS> MENUS { get; set; } = new List<MENUS>();
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPOSUSUARIOS
{
public int IDGRUPO { get; set; }
public string? DESCRIPCION { get; set; }
public int? IDGRUPOMENU { get; set; }
public virtual ICollection<AUTORIZACIONESGRUPOS> AUTORIZACIONESGRUPOS { get; set; } = new List<AUTORIZACIONESGRUPOS>();
public virtual GRUPOSMENUS? IDGRUPOMENUNavigation { get; set; }
public virtual ICollection<USUARIOS> USUARIOS { get; set; } = new List<USUARIOS>();
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class GRUPO_ALTOCARGO
{
public int IDGRUPO { get; set; }
public string? GRUPO { get; set; }
public string? DESCRIPCION { get; set; }
public string? ACTIVO { get; set; }
public decimal? IMPORTE_G { get; set; }
public decimal? IMPORTE_TRI_TOA { get; set; }
public decimal? IMPORTE_G_EXTRAS { get; set; }
public decimal? IMPORTE_TRI_TOAE { get; set; }
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HIJOS
{
public int IDHIJO { get; set; }
public int IDPERSONA { get; set; }
public string? NOMBRE { get; set; }
public string? SEXO { get; set; }
public DateTime? FECHANACIMIENTO { get; set; }
public DateTime? FECHAADOPCION { get; set; }
public bool ENTEROIRPF { get; set; }
public int? IDDISCAPACIDAD { get; set; }
public bool MOVILIDADREDUCIDA { get; set; }
public virtual ENUMERACIONES? IDDISCAPACIDADNavigation { get; set; }
public virtual PERSONAS IDPERSONANavigation { get; set; } = null!;
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HIJOSHISTORICOIRPF
{
public int IDHIJOSHISTORICOIRPF { get; set; }
public string? NOMBRE { get; set; }
public string? SEXO { get; set; }
public DateTime? FECHANACIMIENTO { get; set; }
public DateTime? FECHAADOPCION { get; set; }
public bool ENTEROIRPF { get; set; }
public int? IDDISCAPACIDAD { get; set; }
public bool MOVILIDADREDUCIDA { get; set; }
public int? IDHISTORICOIRPF { get; set; }
public virtual ENUMERACIONES? IDDISCAPACIDADNavigation { get; set; }
public virtual HISTORICOIRPF? IDHISTORICOIRPFNavigation { get; set; }
}

View File

@@ -0,0 +1,113 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HISTORICOIRPF
{
public int IDHISTORICOIRPF { get; set; }
public int? IDPERSONA { get; set; }
public int? ANNO { get; set; }
public DateTime? FECHACALCULO { get; set; }
public decimal? PORCENTAJEDEDISCAPACIDAD { get; set; }
public bool NECEAYUDATERCPERSOMOVILRED { get; set; }
public int? IDSITUACIONFAMILIAR { get; set; }
public string? NIFCONYUGE { get; set; }
public int? IDSITUACIONLABORAL { get; set; }
public int? IDCONTRATOORELACION { get; set; }
public bool MOVILIDADGEOGRAFICA { get; set; }
public bool PROLONGACTLABORAL { get; set; }
public decimal RETRTOTALESIMPORTEINTEGRO { get; set; }
public decimal REDUCCIONESPORIRREGULARIDAD182 { get; set; }
public decimal REDUCCIONESPORIRREGULARIDAD183 { get; set; }
public decimal GASTOSDEDUCIBLES { get; set; }
public bool DATANTERRENDIOBTENCEUOMEL { get; set; }
public decimal PENSCOMPENFAVORCONYUGE { get; set; }
public decimal ANUALPORALIFAVORHIJOS { get; set; }
public bool RETRIINTEINFER33MIL { get; set; }
public bool CAUSAREGULARIZACION1 { get; set; }
public bool CAUSAREGULARIZACION2 { get; set; }
public bool CAUSAREGULARIZACION3 { get; set; }
public bool CAUSAREGULARIZACION4 { get; set; }
public bool CAUSAREGULARIZACION5 { get; set; }
public bool CAUSAREGULARIZACION6 { get; set; }
public bool CAUSAREGULARIZACION7 { get; set; }
public bool CAUSAREGULARIZACION8 { get; set; }
public bool CAUSAREGULARIZACION9 { get; set; }
public bool CAUSAREGULARIZACION10 { get; set; }
public bool CAUSAREGULARIZACION11 { get; set; }
public decimal RETRIYASATISCONANTERAREGULAR { get; set; }
public decimal RETEINGRACUENTAPRACTANTAREG { get; set; }
public decimal RETRIANUALCONSICONANTREG { get; set; }
public decimal IMPANURETEINGRACUENDETANTREG { get; set; }
public bool RENDANTFUERONCEUOMEL { get; set; }
public decimal BASECALCTIPRETDETANTREGULAR { get; set; }
public decimal MINPERSYFAMCALCRETANTREGU { get; set; }
public decimal TIPRETENCALCANTREGU { get; set; }
public bool ANTREGSEAPLMINORPAGPRESVIV { get; set; }
public decimal IMPMINPAGPRESTVIVANTREG { get; set; }
public decimal BASECALCULOTIPORETENCION { get; set; }
public decimal MINPERSYFAMCALCRETEN { get; set; }
public decimal DEDUCCIONART80BISLIRPF { get; set; }
public bool MINPAGPRESTVIVHA { get; set; }
public decimal TIPODERETENCIONCALCULADO { get; set; }
public decimal IMPORTEANUALRETENCIONES { get; set; }
public decimal TIPODERETENCIONAAPLICAR { get; set; }
public bool CONSERVATIPO { get; set; }
public virtual ICollection<ASCENDIENTESHISTORICOIRPF> ASCENDIENTESHISTORICOIRPF { get; set; } = new List<ASCENDIENTESHISTORICOIRPF>();
public virtual ICollection<HIJOSHISTORICOIRPF> HIJOSHISTORICOIRPF { get; set; } = new List<HIJOSHISTORICOIRPF>();
public virtual ENUMERACIONES? IDCONTRATOORELACIONNavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HORARIOS
{
public int IDHORARIO { get; set; }
public string? DESCRIPCION { get; set; }
public string? CODIGOANTIGUO { get; set; }
public virtual ICollection<EXCEPCIONESHORARIOS> EXCEPCIONESHORARIOS { get; set; } = new List<EXCEPCIONESHORARIOS>();
public virtual ICollection<HORARIOSPERSONAS> HORARIOSPERSONAS { get; set; } = new List<HORARIOSPERSONAS>();
public virtual ICollection<TURNOSTEMPORALES> TURNOSTEMPORALES { get; set; } = new List<TURNOSTEMPORALES>();
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HORARIOSCURSOS
{
public int IDHORARIOCURSO { get; set; }
public DateTime? FECHA { get; set; }
public decimal? HORAINICIO { get; set; }
public decimal? HORAFIN { get; set; }
public int? IDCURSO { get; set; }
public virtual ICollection<CURSOS> CURSOS { get; set; } = new List<CURSOS>();
public virtual CURSOS? IDCURSONavigation { get; set; }
}

View File

@@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HORARIOSPERSONAS
{
public int IDHORARIOPERSONA { get; set; }
public int? IDPERSONA { get; set; }
public bool LISTABLE { get; set; }
public int? IDTARDEOBLIGATORIA { get; set; }
public bool HORAEXTRACOMPENSAMES { get; set; }
public int? IDHORARIO { get; set; }
public int? IDTURNO { get; set; }
public DateTime? FECHAINICIOLACTANCIA { get; set; }
public DateTime? FECHAFINLACTANCIA { get; set; }
public decimal? FACTORVIESABDOM { get; set; }
public decimal? FACTOREXTRA1 { get; set; }
public decimal? FACTOREXTRA2 { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public decimal? HORASLACTANCIA_D { get; set; }
public decimal? HORAINICIOEXTRA1_D { get; set; }
public decimal? HORAFINEXTRA1_D { get; set; }
public decimal? HORAINICIOEXTRA2_D { get; set; }
public decimal? HORAFINEXTRA2_D { get; set; }
public bool APLICAFACTORUJIER { get; set; }
public bool APLICAFACTPERSONHAB { get; set; }
public virtual HORARIOS? IDHORARIONavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ENUMERACIONES? IDTARDEOBLIGATORIANavigation { get; set; }
public virtual ENUMERACIONES? IDTURNONavigation { get; set; }
public virtual ICollection<TURNOSTEMPORALES> TURNOSTEMPORALES { get; set; } = new List<TURNOSTEMPORALES>();
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HORASEXTRAS
{
public int IDHORASEXTRA { get; set; }
public DateTime? FECHAHORAINICIO { get; set; }
public DateTime? FECHAHORAFIN { get; set; }
public decimal? FACTOR { get; set; }
public string? DESCRIPCION { get; set; }
public decimal? HORASASUMAR_D { get; set; }
public int? IDPERSONA { get; set; }
public decimal? HORAINICIO { get; set; }
public decimal? HORAFIN { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HORASMES
{
public int IDHORAMES { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public int? IDSITUACIONMES { get; set; }
public int? IDPERSONA { get; set; }
public decimal? HORASJORNADAHABITUAL_D { get; set; }
public decimal? HTJORNADAHABITUAL_D { get; set; }
public decimal? HTFUERAJORNHAB_D { get; set; }
public decimal? HTFUERAJORNHABEXTX1_D { get; set; }
public decimal? HTFUERAJORNHABEXTX2_D { get; set; }
public decimal? QUECOMPENSASEMANAANTERIOR_D { get; set; }
public decimal? SALDOJORNADAHABITUAL_D { get; set; }
public decimal? SALDOREALJORNADAHABITUAL_D { get; set; }
public decimal? SALDOFUERAJORNADAHABITUAL_D { get; set; }
public decimal? COMPENSADASSEMANASIGUIENTE_D { get; set; }
public decimal? HORASPARACOMPENSAR_D { get; set; }
public decimal? HORASCOMPENSADAS_D { get; set; }
public decimal? SALDOHORASCOMPENSADAS_D { get; set; }
public decimal? HORASCURSOS_D { get; set; }
public decimal? SALDOHORARECUPERABLES { get; set; }
public decimal? SALDOSEMESTRE_D { get; set; }
public decimal? SALDOADETRAER_D { get; set; }
public decimal? SALDOSEMESTREHORASRECUP_D { get; set; }
public virtual ICollection<DIASCOMPENSACION> DIASCOMPENSACION { get; set; } = new List<DIASCOMPENSACION>();
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ENUMERACIONES? IDSITUACIONMESNavigation { get; set; }
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class HUELGAS
{
public int IDHUELGA { get; set; }
public int? IDPERSONA { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public string? OBSERVACIONES { get; set; }
public int? IDNOMINAAPLICACION { get; set; }
public int? IDNOMINAORIGENDATOS { get; set; }
public bool NOMINANORMAL { get; set; }
public bool NOMINASEGURIDADSOCIAL { get; set; }
public decimal? HORAS { get; set; }
public virtual NOMINAS? IDNOMINAAPLICACIONNavigation { get; set; }
public virtual NOMINAS? IDNOMINAORIGENDATOSNavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class IDIOMAS
{
public int IDIDIOMA { get; set; }
public int? IDTIPOIDIOMA { get; set; }
public int? IDNIVEL { get; set; }
public string? CENTROEXPEDICION { get; set; }
public int? ANNO { get; set; }
public int? IDPERSONA { get; set; }
public virtual ENUMERACIONES? IDNIVELNavigation { get; set; }
public virtual PERSONAS? IDPERSONANavigation { get; set; }
public virtual ENUMERACIONES? IDTIPOIDIOMANavigation { get; set; }
}

View File

@@ -0,0 +1,61 @@
using System;
using System.Collections.Generic;
namespace bdAntifraude.db;
public partial class INCIDENCIAS
{
public int IDINCIDENCIA { get; set; }
public int? IDPERSONA { get; set; }
public int? MESNOMINA { get; set; }
public int? AÑONOMINA { get; set; }
public decimal CANTIDAD { get; set; }
public decimal IMPORTE { get; set; }
public decimal? IRPF { get; set; }
public int IDNOMINA { get; set; }
public int IDCONCEPTONOMINA { get; set; }
public int? IDNOMINACABECERA { get; set; }
public int? IDNOMINAORIGEN { get; set; }
public DateTime? FECHAINICIO { get; set; }
public DateTime? FECHAFIN { get; set; }
public bool NOMINANORMAL { get; set; }
public bool NOMINASEGURIDADSOCIAL { get; set; }
public string? TEXTO { get; set; }
public bool ESDELIQUIDACION { get; set; }
public bool SUSTITUYECONCEPTO { get; set; }
public bool COTIZASEGURIDADSOCIAL { get; set; }
public bool IRPFFICHA { get; set; }
public bool NOPARAIRPF { get; set; }
public string? APLICACIONPRESUPUESTARIA { get; set; }
public int? IDGRUPOINCIDENCIAS { get; set; }
public virtual CONCEPTOSGENERALES IDCONCEPTONOMINANavigation { get; set; } = null!;
public virtual NOMINATRABAJADORCABECERA? IDNOMINACABECERANavigation { get; set; }
public virtual NOMINAS IDNOMINANavigation { get; set; } = null!;
public virtual PERSONAS? IDPERSONANavigation { get; set; }
}

Some files were not shown because too many files have changed in this diff Show More