208 lines
No EOL
7.3 KiB
C#
208 lines
No EOL
7.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using ULA.Davivienda.PrendarioModel.Prendario;
|
|
|
|
namespace ULA.Davivienda.PrestamoAutos.Json
|
|
{
|
|
public class JsonAprobacion : Cotizacion
|
|
{
|
|
public int IdSolicitud { get; set; }
|
|
public string DescripcionProgramaCrediticio { get; set; }
|
|
public string DescripcionCampanna { get; set; }
|
|
public string DescripcionMoneda { get; set; }
|
|
public string DescripcionTipoVehiculo { get; set; }
|
|
public string DescripcionAnnoVehiculo { get; set; }
|
|
public string DescripcionAgenciaVehiculo { get; set; }
|
|
public string DescripcionSubAgenciaVehiculo { get; set; }
|
|
public string DescripcionMarcaVehiculo { get; set; }
|
|
public string DescripcionEstiloVehiculo { get; set; }
|
|
public string DescripcionTipoFuenteIngreso { get; set; }
|
|
public string DescripcionUsoVehiculo { get; set; }
|
|
public string DescripcionTipoIdentificacion { get; set; }
|
|
public string EnunciadoCondiciones { get; set; }
|
|
public bool SeguroAuto { get; set; }
|
|
public bool SeguroVida { get; set; }
|
|
public bool SeguroDesempleo { get; set; }
|
|
public string IdCategoriaRiesgo { get; set; }
|
|
public string IdMorosidad { get; set; }
|
|
public string IdComportamientoPagoHistorico { get; set; }
|
|
public string IdCapacidadPago { get; set; }
|
|
|
|
public string GeneradorMonedaExtranjera { get; set; }
|
|
|
|
public string RiesgoCambiarioDeudor { get; set; }
|
|
|
|
public string ConclusionJustificacion { get; set; }
|
|
public string CodigoRespuesta { get; set; }
|
|
public string DescripcionRespuesta { get; set; }
|
|
|
|
public decimal Endeudamiento { get; set; }
|
|
public decimal CuotaIngreso { get; set; }
|
|
public decimal AcumuladoConBanco { get; set; }
|
|
|
|
public decimal CoberturaSobreDeuda { get; set; }
|
|
|
|
public List<JsonInformacionIngresosCliente> InformacionIngresosCliente { get; set; }
|
|
public List<JsonInformacionLaboralCliente> InformacionLaboralClient { get; set; }
|
|
public List<JsonCondicionesTasaCotizacion> CondicionesTasaCotizacionAdapted { get; set; }
|
|
public ICollection<JsonAnalisisEstabilidad> AnalisisEstabilidad { get; set; }
|
|
public List<JsonSensibilizacionSolicitud> SensibilizacionSolicitud { get; set; }
|
|
public Garantia Garantia { get; set; }
|
|
public DatosAprobacion DatosAprobacion { get; set; }
|
|
|
|
public List<ResumenCotizacion> ResumenCotizacion { get; set; }
|
|
|
|
}
|
|
|
|
public class JsonCondicionesFormalizacion : BaseJsonMetadata
|
|
{
|
|
public List<JsonCondicionesFormalizacionSolicitud> CondicionesFormalizacionSolicitud { get; set; }
|
|
}
|
|
|
|
public class JsonCondicionesFormalizacionSolicitud
|
|
{
|
|
public int IdCondicionesFormalizacion { get; set; }
|
|
public int IdSolicitud { get; set; }
|
|
}
|
|
|
|
public class JsonCondicionesFormalizacionRespons : BaseJsonMetadata
|
|
{
|
|
public CondicionesFormalizacion CondicionesFormalizacion { get; set; }
|
|
public int IdCondicionesFormalizacion { get; set; }
|
|
public string DescripsionCondicionesFormalizacion { get; set; }
|
|
}
|
|
|
|
public class JsonInformacionIngresosCliente : InformacionIngresosCliente
|
|
{
|
|
public int? IdTipoSolicitante { get; set; }
|
|
|
|
public decimal TotalIngresosNetosColones
|
|
{
|
|
get
|
|
{
|
|
decimal ret = 0;
|
|
|
|
if (SalarioNetoCol != null)
|
|
ret += SalarioNetoCol.Value;
|
|
if (VariableNetoCol != null)
|
|
ret += VariableNetoCol.Value;
|
|
if (OffShoreNetoCol != null)
|
|
ret += OffShoreNetoCol.Value;
|
|
if (OtrosNetoCol != null)
|
|
ret += OtrosNetoCol.Value;
|
|
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public decimal TotalIngresosNetosDolares
|
|
{
|
|
get
|
|
{
|
|
decimal ret = 0;
|
|
|
|
if (SalarioNetoDol != null)
|
|
ret += SalarioNetoDol.Value;
|
|
if (VariableNetoDol != null)
|
|
ret += VariableNetoDol.Value;
|
|
if (OffShoreNetoDol != null)
|
|
ret += OffShoreNetoDol.Value;
|
|
if (OtrosNetoDol != null)
|
|
ret += OtrosNetoDol.Value;
|
|
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public decimal TotalIngresosNetos
|
|
{
|
|
get
|
|
{
|
|
decimal ret = 0;
|
|
|
|
if (TasaTipoCambioDolar > 0)
|
|
{
|
|
switch (IdMoneda)
|
|
{
|
|
case 0:
|
|
ret += TotalIngresosNetosColones + (TotalIngresosNetosDolares * TasaTipoCambioDolar);
|
|
break;
|
|
case 1:
|
|
ret += TotalIngresosNetosDolares + (TotalIngresosNetosColones / TasaTipoCambioDolar);
|
|
break;
|
|
default:
|
|
ret += TotalIngresosNetosColones + (TotalIngresosNetosDolares * TasaTipoCambioDolar);
|
|
break;
|
|
}
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
public decimal TasaTipoCambioDolar { get; set; }
|
|
|
|
public int? IdMoneda { get; set; }
|
|
}
|
|
|
|
public class JsonAnalisisEstabilidad : AnalisisEstabilidad
|
|
{
|
|
public int? IdTipoSolicitante { get; set; }
|
|
}
|
|
|
|
public class JsonInformacionLaboralCliente : InformacionLaboralCliente
|
|
{
|
|
public int? IdTipoSolicitante { get; set; }
|
|
public string DescripcionTipoFuenteIngreso { get; set; }
|
|
}
|
|
|
|
public class JsonSensibilizacionSolicitud
|
|
{
|
|
public int? IdTipoSolicitante { get; set; }
|
|
public string ss_esc3_ingresosnetos { get; set; }
|
|
public string ss_esc3_cuota { get; set; }
|
|
public decimal NvecesCubreCuota { get; set; }
|
|
}
|
|
public class JsonDecision : DatosAprobacion
|
|
{
|
|
public JsonDecision()
|
|
{
|
|
historialDecision = new List<HistorialDecision>();
|
|
}
|
|
|
|
public List<HistorialDecision> historialDecision { get; set; }
|
|
public string CodigoRespuesta { get; set; }
|
|
public string DescripcionRespuesta { get; set; }
|
|
public string DescripcionDecision { get; set; }
|
|
public string DescripcionExcepcion1 { get; set; }
|
|
public string DescripcionExcepcion2 { get; set; }
|
|
public string DescripcionRecomendacion { get; set; }
|
|
public string DescripcionMotivo { get; set; }
|
|
public string Firma1 { get; set; }
|
|
public string Firma2 { get; set; }
|
|
public string Firma3 { get; set; }
|
|
|
|
public string Firma4 { get; set; }
|
|
|
|
public string UsuarioFirma1 { get; set; }
|
|
public string UsuarioFirma2 { get; set; }
|
|
public string UsuarioFirma3 { get; set; }
|
|
public string UsuarioFirma4 { get; set; }
|
|
}
|
|
|
|
|
|
public class JsonCategoriaRiesgo : BaseJsonMetadata
|
|
{
|
|
public string CategoriaRiesgo { get; set; }
|
|
}
|
|
|
|
|
|
public class JsonResultadosSensibilizacion : BaseJsonMetadata
|
|
{
|
|
public SensibilizacionSolicitud SensibilizacionSolicitud { get; set; }
|
|
public SensibilizacionOperacion SensibilizacionOperacion { get; set; }
|
|
public SensibilizacionResumen SensibilizacionResumen { get; set; }
|
|
}
|
|
} |