proceso ficheros vencidos

This commit is contained in:
2026-05-11 12:19:32 +02:00
parent 9baa81b743
commit ed81d8d5a6
8 changed files with 823 additions and 652 deletions

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Servicio_Gestion_Asegasa.Clases
{
public class PolizaPagoUnicoExcel
{
public string NumeroPoliza { get; set; }
public string RazonSocial { get; set; }
public DateOnly FechaEfecto { get; set; }
public DateOnly FechaVencimiento { get; set; }
public string Descripcion { get; set; }
public string NombreAgente { get; set; }
public string CiaNumeroPolizaSuplemento { get; set; }
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ using Quartz.Impl;
using Servicio_Gestion_Asegasa.Procesos; using Servicio_Gestion_Asegasa.Procesos;
using System.Reflection; using System.Reflection;
using System.Reflection.Metadata; using System.Reflection.Metadata;
using static Servicio_Gestion_Asegasa.Procesos.ProcesosPolizas;
namespace Servicio_Gestion_Asegasa namespace Servicio_Gestion_Asegasa
{ {
public class Worker : BackgroundService public class Worker : BackgroundService
@@ -27,8 +27,10 @@ namespace Servicio_Gestion_Asegasa
{ {
string Mensaje = "Servicio Gestion Asegasa. Versi<73>n: " + tsUtilidades.Utilidades.ExtraeValorCadena(Assembly.GetExecutingAssembly().FullName, "Version"); string Mensaje = "Servicio Gestion Asegasa. Versi<73>n: " + tsUtilidades.Utilidades.ExtraeValorCadena(Assembly.GetExecutingAssembly().FullName, "Version");
try try
{ {
await ComprobarPolizasPagoUnico();
if (ProcesosConf.Conf.HoraProcesosDiarios != null) if (ProcesosConf.Conf.HoraProcesosDiarios != null)
{ {

View File

@@ -41,8 +41,12 @@ namespace bdAsegasa.db
} }
} }
[NotMapped]
private bool _CodigoPostalTmpEsNulo = true; private bool _CodigoPostalTmpEsNulo = true;
private string _CodigoPostalTmp; private string _CodigoPostalTmp;
[NotMapped]
public string CodigoPostalTmp public string CodigoPostalTmp
{ {
get get
@@ -78,6 +82,8 @@ namespace bdAsegasa.db
private bool _DomicilioTmpEsNulo = true; private bool _DomicilioTmpEsNulo = true;
private string _DomicilioTmp; private string _DomicilioTmp;
[NotMapped]
public string DomicilioTmp public string DomicilioTmp
{ {
get get
@@ -112,8 +118,11 @@ namespace bdAsegasa.db
} }
private bool _CodigoPoblacionTmpEsNulo = true; private bool _CodigoPoblacionTmpEsNulo = true;
[NotMapped]
private string _CodigoPoblacionTmp; private string _CodigoPoblacionTmp;
public string CodigoPoblacionTmp [NotMapped]
public virtual string CodigoPoblacionTmp
{ {
get get
{ {
@@ -176,6 +185,8 @@ namespace bdAsegasa.db
private string _PoblacionTmp; private string _PoblacionTmp;
private bool _PoblacionTmpEsNulo = true; private bool _PoblacionTmpEsNulo = true;
[NotMapped]
public string PoblacionTmp public string PoblacionTmp
{ {
get get
@@ -192,6 +203,8 @@ namespace bdAsegasa.db
private string _ProvinciaTmp; private string _ProvinciaTmp;
private bool _ProvinciaTmpEsNulo = true; private bool _ProvinciaTmpEsNulo = true;
[NotMapped]
public string ProvinciaTmp public string ProvinciaTmp
{ {
get get
@@ -205,6 +218,7 @@ namespace bdAsegasa.db
_ProvinciaTmpEsNulo = false; _ProvinciaTmpEsNulo = false;
} }
} }
[NotMapped]
public string OficinaAgente public string OficinaAgente
{ {

View File

@@ -1,7 +1,8 @@
using bdAsegasa.dbcontext;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq; using System.Linq;
using bdAsegasa.dbcontext;
namespace bdAsegasa.db namespace bdAsegasa.db
{ {
@@ -11,6 +12,8 @@ namespace bdAsegasa.db
private string _codigoPostalTmp; private string _codigoPostalTmp;
private bool _codigoPostalTmpEsNulo = true; private bool _codigoPostalTmpEsNulo = true;
[NotMapped]
public string CodigoPostalTmp public string CodigoPostalTmp
{ {
get get
@@ -32,6 +35,8 @@ namespace bdAsegasa.db
private string _domicilioTmp; private string _domicilioTmp;
private bool _domicilioTmpEsNulo = true; private bool _domicilioTmpEsNulo = true;
[NotMapped]
public string DomicilioTmp public string DomicilioTmp
{ {
get get
@@ -53,6 +58,8 @@ namespace bdAsegasa.db
private string _codigoPoblacionTmp; private string _codigoPoblacionTmp;
private bool _codigoPoblacionTmpEsNulo = true; private bool _codigoPoblacionTmpEsNulo = true;
[NotMapped]
public string CodigoPoblacionTmp public string CodigoPoblacionTmp
{ {
get get
@@ -92,8 +99,11 @@ namespace bdAsegasa.db
if (Direccion != null) Direccion.CodigoMunicipio = value; if (Direccion != null) Direccion.CodigoMunicipio = value;
} }
} }
[NotMapped]
public string DescripcionFormaLiquidacion => ((FormaLiquidacionEnum)(this.FormaLiquidacion)).ToString(); public string DescripcionFormaLiquidacion => ((FormaLiquidacionEnum)(this.FormaLiquidacion)).ToString();
[NotMapped]
public string CodigoNombre => $"{this.Codigo} {this.Nombre}"; public string CodigoNombre => $"{this.Codigo} {this.Nombre}";
public enum FormaLiquidacionEnum public enum FormaLiquidacionEnum

View File

@@ -10,6 +10,16 @@ namespace bdAsegasa.db
{ {
public partial class entidades : INotifyPropertyChanged public partial class entidades : INotifyPropertyChanged
{ {
public string ApellidosNombre
{
get
{
return this.Apellidos + " " + this.Nombre;
}
}
public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); protected virtual void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
@@ -53,6 +63,8 @@ namespace bdAsegasa.db
private string _codigoPostalTmp; private string _codigoPostalTmp;
private bool _codigoPostalTmpEsNulo = true; private bool _codigoPostalTmpEsNulo = true;
[NotMapped]
public string CodigoPostalTmp public string CodigoPostalTmp
{ {
get get
@@ -75,6 +87,8 @@ namespace bdAsegasa.db
private string _domicilioTmp; private string _domicilioTmp;
private bool _domicilioTmpEsNulo = true; private bool _domicilioTmpEsNulo = true;
[NotMapped]
public string DomicilioTmp public string DomicilioTmp
{ {
get get
@@ -97,6 +111,8 @@ namespace bdAsegasa.db
private string _codigoPoblacionTmp; private string _codigoPoblacionTmp;
private bool _codigoPoblacionTmpEsNulo = true; private bool _codigoPoblacionTmpEsNulo = true;
[NotMapped]
public string CodigoPoblacionTmp public string CodigoPoblacionTmp
{ {
get get
@@ -161,6 +177,8 @@ namespace bdAsegasa.db
private string _poblacionTmp; private string _poblacionTmp;
private bool _poblacionTmpEsNulo = true; private bool _poblacionTmpEsNulo = true;
[NotMapped]
public string PoblacionTmp public string PoblacionTmp
{ {
get get
@@ -184,6 +202,8 @@ namespace bdAsegasa.db
private string _provinciaTmp; private string _provinciaTmp;
private bool _provinciaTmpEsNulo = true; private bool _provinciaTmpEsNulo = true;
[NotMapped]
public string ProvinciaTmp public string ProvinciaTmp
{ {
get get

View File

@@ -1,7 +1,10 @@
using System.ComponentModel.DataAnnotations.Schema;
namespace bdAsegasa.db namespace bdAsegasa.db
{ {
public partial class entidadespolizas public partial class entidadespolizas
{ {
[NotMapped]
public bool AEliminar_tmp { get; set; } public bool AEliminar_tmp { get; set; }
public string Domicilio public string Domicilio

View File

@@ -13,6 +13,7 @@ namespace bdAsegasa.db
public partial class polizassg public partial class polizassg
{ {
#region CamposTemporales #region CamposTemporales
[NotMapped]
public string FechasInexistentes { get; set; } public string FechasInexistentes { get; set; }
#endregion #endregion
@@ -142,7 +143,7 @@ namespace bdAsegasa.db
} }
} }
} }
[NotMapped]
public string OficinaAgente public string OficinaAgente
{ {
get get
@@ -159,6 +160,7 @@ namespace bdAsegasa.db
} }
private bool _idPoliza_EsNula; private bool _idPoliza_EsNula;
[NotMapped]
public int? idPoliza_Nulable public int? idPoliza_Nulable
{ {
get get
@@ -177,7 +179,7 @@ namespace bdAsegasa.db
_idPoliza_EsNula = value == null; _idPoliza_EsNula = value == null;
} }
} }
[NotMapped]
public int? idCompania_Nulable public int? idCompania_Nulable
{ {
get get
@@ -190,7 +192,7 @@ namespace bdAsegasa.db
if (value.HasValue) this.idCompania = value.Value; if (value.HasValue) this.idCompania = value.Value;
} }
} }
[NotMapped]
public int? idAgente_Nulable public int? idAgente_Nulable
{ {
get get
@@ -203,7 +205,7 @@ namespace bdAsegasa.db
if (value.HasValue) this.idAgente = value.Value; if (value.HasValue) this.idAgente = value.Value;
} }
} }
[NotMapped]
public int? idRamo_Nulable public int? idRamo_Nulable
{ {
get get
@@ -678,6 +680,7 @@ namespace bdAsegasa.db
} }
} }
} }
[NotMapped]
public string Telefono1Tomador public string Telefono1Tomador
{ {
get get
@@ -696,6 +699,8 @@ namespace bdAsegasa.db
if (EntidadPolizaTomador != null) EntidadPolizaTomador.Telefono1 = value; if (EntidadPolizaTomador != null) EntidadPolizaTomador.Telefono1 = value;
} }
} }
[NotMapped]
public string Telefono2Tomador public string Telefono2Tomador
{ {
get get
@@ -714,6 +719,7 @@ namespace bdAsegasa.db
if (EntidadPolizaTomador != null) EntidadPolizaTomador.Telefono2 = value; if (EntidadPolizaTomador != null) EntidadPolizaTomador.Telefono2 = value;
} }
} }
[NotMapped]
public string EmailTomador public string EmailTomador
{ {
get get
@@ -1075,22 +1081,45 @@ namespace bdAsegasa.db
#endregion #endregion
#region Tomador_Tmp (WPF Bindings) #region Tomador_Tmp (WPF Bindings)
[NotMapped]
public string CifTomadorTmp { get; set; } public string CifTomadorTmp { get; set; }
[NotMapped]
public string RazonSocialTomadorTmp { get; set; } public string RazonSocialTomadorTmp { get; set; }
[NotMapped]
public string CodigoPostalTomadorTmp { get; set; } public string CodigoPostalTomadorTmp { get; set; }
[NotMapped]
public string DomicilioTomadorTmp { get; set; } public string DomicilioTomadorTmp { get; set; }
[NotMapped]
public string CodigoPoblacionTomadorTmp { get; set; } public string CodigoPoblacionTomadorTmp { get; set; }
[NotMapped]
public string PoblacionTomadorTmp { get; set; } public string PoblacionTomadorTmp { get; set; }
[NotMapped]
public string ProvinciaTomadorTmp { get; set; } public string ProvinciaTomadorTmp { get; set; }
[NotMapped]
public string TelefonoTomador1Tmp { get; set; } public string TelefonoTomador1Tmp { get; set; }
[NotMapped]
public string TelefonoTomador2Tmp { get; set; } public string TelefonoTomador2Tmp { get; set; }
[NotMapped]
public string EmailTomadorTmp { get; set; } public string EmailTomadorTmp { get; set; }
[NotMapped]
public bool? TomadorEsConductorHabitualTmp { get; set; } public bool? TomadorEsConductorHabitualTmp { get; set; }
[NotMapped]
public bool? TomadorEsPagadorTmp { get; set; } public bool? TomadorEsPagadorTmp { get; set; }
[NotMapped]
public bool? TomadorEsConductorOcasionalTmp { get; set; } public bool? TomadorEsConductorOcasionalTmp { get; set; }
[NotMapped]
public bool? TomadorEsPropietarioTmp { get; set; } public bool? TomadorEsPropietarioTmp { get; set; }
[NotMapped]
public int? idSexoTomadorTmp { get; set; } public int? idSexoTomadorTmp { get; set; }
[NotMapped]
public DateTime? FechaNacimientoTomadorTmp { get; set; } public DateTime? FechaNacimientoTomadorTmp { get; set; }
[NotMapped]
public DateTime? FechaCarnetTomadorTmp { get; set; } public DateTime? FechaCarnetTomadorTmp { get; set; }
public void RellenaDatosTmpTomador(entidades entidad) public void RellenaDatosTmpTomador(entidades entidad)