451 lines
No EOL
18 KiB
C#
451 lines
No EOL
18 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Collections;
|
|
|
|
namespace ULA.Davivienda.PrestamoAutos.Commons
|
|
{
|
|
public enum EnumTipoSolicitante {
|
|
Deudor = 1,
|
|
Codeudor = 2,
|
|
Fiador = 3,
|
|
FiadorJurídico = 4,
|
|
AseguradoDeudor = 5,
|
|
AseguradoCodeudor = 6,
|
|
AseguradoOtro = 7
|
|
}
|
|
|
|
|
|
public enum EnumTipoTasaReferencia { TBP = 1, LIBOR = 2 }
|
|
public enum EnumTipoTasa { FIJA = 1, VARIABLE = 2 }
|
|
public enum EnumTipoRubroSeguro { Vida = 1, Desempleo = 2, Auto = 3 }
|
|
public enum EnumEstadoCotiza { Creada = 0, Enviada = 1, Eliminada=2 }
|
|
public enum EnumMoneda { Colones = 0, Dolares = 1 }
|
|
public enum EnumFuncionalidadCuenta { SinDefinir = 1, CuentaPolizaVehiculo = 2 } // Steven Rojas
|
|
|
|
|
|
public class EnumDecision {
|
|
public const int Aprobar = 1;
|
|
public const int Rechazar = 2;
|
|
public const int Recomienda = 3;
|
|
public const int NoRecomienda = 4;
|
|
public const int IrAModificacionCaratula = 5;
|
|
public const int IrASeguros = 6;
|
|
public const int IrAInforma = 7;
|
|
public const int IrACreaOperacion = 8;
|
|
public const int IrAFirmaDocumentos = 9;
|
|
public const int IrALiquidación = 10;
|
|
public const int IrAFin = 11;
|
|
public const int IrAAprobacion1 = 12;
|
|
public const int IrAAprobacion2 = 13;
|
|
public const int IrACotizacion = 14;
|
|
}
|
|
|
|
|
|
public class EnumAseguradora
|
|
{
|
|
public const int INS = 1;
|
|
public const int MAPFRE = 2;
|
|
public const int OTRA = 3;
|
|
public const int DS = 4;
|
|
|
|
}
|
|
|
|
public class EnumTipoIdentificacion
|
|
{
|
|
public const int PersonaFisicaNacional = 1;
|
|
public const int PersonaFisicaExtranjeraResidente_Permanente = 2;
|
|
public const int PersonaFisicaExtranjeraResidente_Temporal = 3;
|
|
public const int PersonaFisicaExtranjeraResidente_AsiladoPolitico = 4;
|
|
public const int PersonaFisicaExtranjeraResidente_PermanentelibreCondicion = 5;
|
|
public const int PersonaFisicaExtranjeraResidente_Rentista = 6;
|
|
public const int PersonaFisicaExtranjeraResidente_Refugiado = 7;
|
|
public const int Pasaporte = 8;
|
|
public const int PersonaJuridicaNacional = 9;
|
|
public const int PersonaJuridicaExtranjera_NoFinanciera = 10;
|
|
public const int IdentificacionUnicaExtranjero = 11;
|
|
}
|
|
|
|
public class EnumEstadoCivil
|
|
{
|
|
public const string CASADO_A = "C";
|
|
public const string DIVORCIADO_A = "D";
|
|
public const string SOLTERO_A = "S";
|
|
public const string UNION_LIBRE = "U";
|
|
public const string VIUDO_A = "V";
|
|
}
|
|
|
|
public class EnumFuenteIngreso
|
|
{
|
|
public const string ASALARIADO_EMP_PRIVADA = "AEPR";
|
|
public const string ASALARIADO_EMP_PUBLICA = "AEPU";
|
|
public const string NO_PROFESIONAL_INDEPENDIENTE = "INDN";
|
|
public const string PROFESIONAL_INDEPENDIENTE = "INDP";
|
|
public const string INGRESOS_MIXTOS = "MIXT";
|
|
public const string PENSIONADO = "PENS";
|
|
}
|
|
|
|
public class EnumTipoTelefono
|
|
{
|
|
public const string LABORAL = "DC";
|
|
public const string FAX_LABORAL = "DCF";
|
|
public const string CELULAR_LABORAL = "DCM";
|
|
public const string RESIDENCIAL = "DM";
|
|
public const string FAX_RESIDENCIAL = "DMF";
|
|
public const string CELULAR_PERSONAL = "DMM";
|
|
}
|
|
|
|
|
|
|
|
public class EnumGracia
|
|
{
|
|
public const int NoAplica = 0;
|
|
public const int EnInteres = 1;
|
|
public const int EnCapital = 2;
|
|
public const int EnSeguroAuto = 3;
|
|
public const int EnInteresEnCapital = 4;
|
|
public const int EnInteresEnCapitalEnSeguroAuto = 5;
|
|
|
|
}
|
|
|
|
|
|
public class ItemHash {
|
|
public string key {get; set;}
|
|
public int value {get; set;}
|
|
}
|
|
|
|
public class EnumPeriodoReajuste
|
|
{
|
|
public static ItemHash ANUAL = new ItemHash { key = "A", value = 12 };
|
|
public static ItemHash MENSUAL = new ItemHash { key = "M", value = 1 };
|
|
public static ItemHash SEMESTRAL = new ItemHash { key = "S", value = 6 };
|
|
public static ItemHash TRIMESTRAL = new ItemHash { key = "T", value = 3 };
|
|
}
|
|
|
|
public enum EnumNivelEducacion
|
|
{
|
|
SIN_ESTUDIOS = 1,
|
|
PRIMARIA_COMPLETA = 2,
|
|
SECUNDARIA_COMPLETA = 3,
|
|
TECNICO_COMPLETO = 4,
|
|
UNIVERSITARIA_COMPLETA = 5,
|
|
POSTGRADO_COMPLETO = 6,
|
|
}
|
|
|
|
|
|
public class EnumEtapas
|
|
{
|
|
public const string EtapaAprobacion1 = "AU_Aprobacion_1";
|
|
public const string EtapaAprobacion2 = "AU_Aprobacion_2";
|
|
public const string EtapaInforma = "AU_Informa";
|
|
public const string EtapaVbModificacionCaratula = "AU_Vb_Modif_Caratula";
|
|
public const string EtapaVbAprobacionCaratula = "AU_Vb_Aprob_Caratula";
|
|
public const string EtapaSeguros = "AU_Seguros";
|
|
public const string EtapaCrearOperacion = "AU_Crear_Oper";
|
|
public const string EtapaFirmaDocumentos = "AU_Firma_Doc";
|
|
public const string EtapaLiquidacion = "AU_Liquidacion";
|
|
public const string EtapaCotizacion = "AU_Cotiza";
|
|
}
|
|
|
|
public class EnumTipoAprobacionCaso
|
|
{
|
|
public const int NoDefinido = 0;
|
|
public const int Aprobado = 1;
|
|
public const int PreAprobado = 2;
|
|
}
|
|
|
|
|
|
public class UltimusIncident
|
|
{
|
|
public int Incident { get; set; }
|
|
public string Process { get; set; }
|
|
public string Step { get; set; }
|
|
public string TaskId { get; set; }
|
|
public string User { get; set; }
|
|
public string UserFullName { get; set; }
|
|
}
|
|
|
|
public class Transaccion
|
|
{
|
|
public bool Resultado { get; set; }
|
|
public string Error { get; set; }
|
|
|
|
public Transaccion()
|
|
{
|
|
Resultado = true;
|
|
}
|
|
}
|
|
|
|
public class ComboBoxDataSource
|
|
{
|
|
public Transaccion ResultadoTransaccion { get; set; }
|
|
public List<ComboBoxItem> Items { get; set; }
|
|
|
|
public ComboBoxDataSource()
|
|
{
|
|
ResultadoTransaccion = new Transaccion();
|
|
Items = new List<ComboBoxItem>();
|
|
}
|
|
}
|
|
|
|
public class ComboBoxItem
|
|
{
|
|
public int ID { get; set; }
|
|
public string DESC { get; set; }
|
|
}
|
|
|
|
public class AutenticacionUltimus
|
|
{
|
|
public Transaccion ResultadoTransaccion { get; set; }
|
|
public bool Autenticado { get; set; }
|
|
public string RutaFirma { get; set; }
|
|
|
|
public AutenticacionUltimus()
|
|
{
|
|
ResultadoTransaccion = new Transaccion();
|
|
Autenticado = false;
|
|
}
|
|
}
|
|
|
|
public class VentaCruzadaFields
|
|
{
|
|
public Transaccion ResultadoTransaccion { get; set; }
|
|
public string LimitePropuesto { get; set; }
|
|
public string NivelEndeudamiento { get; set; }
|
|
public bool EsPrimeraFirma { get; set; }
|
|
public decimal LimiteAprobado { get; set; }
|
|
public VentaCruzadaFields()
|
|
{
|
|
ResultadoTransaccion = new Transaccion();
|
|
}
|
|
}
|
|
|
|
public class CredencialesUsuario
|
|
{
|
|
public string Usuario { get; set; }
|
|
public string Contrasena { get; set; }
|
|
}
|
|
|
|
public class UltimusVariable
|
|
{
|
|
public string Nombre { get; set; }
|
|
public string Valor { get; set; }
|
|
}
|
|
|
|
public class MenuEntity
|
|
{
|
|
public string Formulario { get; set; }
|
|
public string Etiqueta { get; set; }
|
|
public int Orden { get; set; }
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoNuevoColaborador
|
|
{
|
|
public string comision { get; set; }
|
|
public string condiciones_credito { get; set; }
|
|
public string correo_ejecutivo { get; set; }
|
|
public string desglose_cuota_1 { get; set; }
|
|
public string desglose_cuota_2 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_1 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_2 { get; set; }
|
|
public string desglose_cuota_total_1 { get; set; }
|
|
public string desglose_cuota_total_2 { get; set; }
|
|
public string detalles_deducciones_comision { get; set; }
|
|
public string detalles_deducciones_desembolso_neto { get; set; }
|
|
public string detalles_deducciones_monto_credito { get; set; }
|
|
public string detalles_deducciones_seguro_desempleo { get; set; }
|
|
public string detalles_deducciones_seguro_vehiculo { get; set; }
|
|
public string ejecutivo { get; set; }
|
|
public string fecha { get; set; }
|
|
public string ingreso_requerido_colones { get; set; }
|
|
public string ingreso_requerido_dolares { get; set; }
|
|
public string moneda { get; set; }
|
|
public string monto_credito { get; set; }
|
|
public string nombre_cliente { get; set; }
|
|
public string numero_cedula { get; set; }
|
|
public string plazo_meses { get; set; }
|
|
public string poliza_adicionales_desempleo { get; set; }
|
|
public string poliza_adicionales_vida { get; set; }
|
|
public string prima { get; set; }
|
|
public string prima_minima { get; set; }
|
|
public List<PlantillaCotizacionAutoNuevoColaboradorTablaPagos> tabla_pagos { get; set; }
|
|
public string telefono { get; set; }
|
|
public string telefonos { get; set; }
|
|
public string valor_vehiculo { get; set; }
|
|
public PlantillaCotizacionAutoNuevoColaborador()
|
|
{
|
|
tabla_pagos = new List<PlantillaCotizacionAutoNuevoColaboradorTablaPagos>();
|
|
}
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoNuevo
|
|
{
|
|
public string comision { get; set; }
|
|
public string condiciones_credito { get; set; }
|
|
public string correo_ejecutivo { get; set; }
|
|
public string desglose_cuota_1 { get; set; }
|
|
public string desglose_cuota_2 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_1 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_2 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_3 { get; set; }
|
|
public string desglose_cuota_sin_seguros_1 { get; set; }
|
|
public string desglose_cuota_sin_seguros_2 { get; set; }
|
|
public string desglose_cuota_sin_seguros_3 { get; set; }
|
|
public string desglose_cuota_total_1 { get; set; }
|
|
public string desglose_cuota_total_2 { get; set; }
|
|
public string desglose_cuota_total_3 { get; set; }
|
|
public string detalles_deducciones_comision { get; set; }
|
|
public string detalles_deducciones_desembolso_neto { get; set; }
|
|
public string detalles_deducciones_seguro_vehicuo { get; set; }
|
|
public string detalles_deducciones_seguros_adicionales { get; set; }
|
|
public string detalles_deducciones_traspaso { get; set; }
|
|
public string ejecutivo { get; set; }
|
|
public string fecha { get; set; }
|
|
public string ingreso_requerido_colones { get; set; }
|
|
public string ingreso_requerido_dolares { get; set; }
|
|
public string modalidad { get; set; }
|
|
public string moneda { get; set; }
|
|
public string monto_credito { get; set; }
|
|
public string nombre_cliente { get; set; }
|
|
public string numero_cedula { get; set; }
|
|
public string plazo_meses { get; set; }
|
|
public string poliza_adicionales_desempleo { get; set; }
|
|
public string poliza_adicionales_vida { get; set; }
|
|
public string prima { get; set; }
|
|
public string prima_minima { get; set; }
|
|
public string programa { get; set; }
|
|
public List<PlantillaCotizacionAutoNuevoTablaPagos> tabla_pagos { get; set; }
|
|
public string telefono { get; set; }
|
|
public string telefonos { get; set; }
|
|
public string valor_vehiculo { get; set; }
|
|
public PlantillaCotizacionAutoNuevo()
|
|
{
|
|
tabla_pagos = new List<PlantillaCotizacionAutoNuevoTablaPagos>();
|
|
}
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoUsadoColaborador
|
|
{
|
|
public string condiciones_credito { get; set; }
|
|
public string correo_ejecutivo { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_1 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_2 { get; set; }
|
|
public string desglose_cuota_sin_seguros_1 { get; set; }
|
|
public string desglose_cuota_sin_seguros_2 { get; set; }
|
|
public string desglose_cuota_total_1 { get; set; }
|
|
public string desglose_cuota_total_2 { get; set; }
|
|
public string detalles_deducciones_comision { get; set; }
|
|
public string detalles_deducciones_constitucion_prenda { get; set; }
|
|
public string detalles_deducciones_desembolso_neto_ap { get; set; }
|
|
public string detalles_deducciones_seguro_desempleo { get; set; }
|
|
public string detalles_deducciones_seguro_primer_mes { get; set; }
|
|
public string detalles_deducciones_total_deducciones { get; set; }
|
|
public string detalles_deducciones_traspaso { get; set; }
|
|
public string ejecutivo { get; set; }
|
|
public string fecha { get; set; }
|
|
public string ingreso_requerido_colones { get; set; }
|
|
public string ingreso_requerido_dolares { get; set; }
|
|
public string modelo_vehiculo { get; set; }
|
|
public string moneda { get; set; }
|
|
public string monto_credito { get; set; }
|
|
public string nombre_cliente { get; set; }
|
|
public string numero_cedula { get; set; }
|
|
public string plazo_meses { get; set; }
|
|
public string poliza_adicionales_desempleo { get; set; }
|
|
public string poliza_adicionales_vida { get; set; }
|
|
public string prima { get; set; }
|
|
public string prima_requerida { get; set; }
|
|
public List<PlantillaCotizacionAutoUsadoColaboradorTablaPagos> tabla_pagos { get; set; }
|
|
public string telefono { get; set; }
|
|
public string telefonos { get; set; }
|
|
public string valor_vehiculo { get; set; }
|
|
public PlantillaCotizacionAutoUsadoColaborador()
|
|
{
|
|
tabla_pagos = new List<PlantillaCotizacionAutoUsadoColaboradorTablaPagos>();
|
|
}
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoUsado
|
|
{
|
|
public string condiciones_credito { get; set; }
|
|
public string correo_ejecutivo { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_1 { get; set; }
|
|
public string desglose_cuota_seguro_vehiculo_2 { get; set; }
|
|
public string desglose_cuota_sin_seguros_1 { get; set; }
|
|
public string desglose_cuota_sin_seguros_2 { get; set; }
|
|
public string desglose_cuota_total_1 { get; set; }
|
|
public string desglose_cuota_total_2 { get; set; }
|
|
public string detalles_deducciones_comision { get; set; }
|
|
public string detalles_deducciones_constitucion_prenda { get; set; }
|
|
public string detalles_deducciones_desembolso_neto_ap { get; set; }
|
|
public string detalles_deducciones_seguro_desempleo { get; set; }
|
|
public string detalles_deducciones_seguro_primer_mes { get; set; }
|
|
public string detalles_deducciones_total_deducciones { get; set; }
|
|
public string detalles_deducciones_traspaso { get; set; }
|
|
public string ejecutivo { get; set; }
|
|
public string fecha { get; set; }
|
|
public string ingreso_requerido_colones { get; set; }
|
|
public string ingreso_requerido_dolares { get; set; }
|
|
public string modelo_vehiculo { get; set; }
|
|
public string moneda { get; set; }
|
|
public string monto_credito { get; set; }
|
|
public string nombre_cliente { get; set; }
|
|
public string numero_cedula { get; set; }
|
|
public string plazo_meses { get; set; }
|
|
public string poliza_adicionales_desempleo { get; set; }
|
|
public string poliza_adicionales_vida { get; set; }
|
|
public string prima { get; set; }
|
|
public string prima_requerida { get; set; }
|
|
public List<PlantillaCotizacionAutoUsadoTablaPagos> tabla_pagos { get; set; }
|
|
public string telefono { get; set; }
|
|
public string telefonos { get; set; }
|
|
public string valor_vehiculo { get; set; }
|
|
public PlantillaCotizacionAutoUsado()
|
|
{
|
|
tabla_pagos = new List<PlantillaCotizacionAutoUsadoTablaPagos>();
|
|
}
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoNuevoColaboradorTablaPagos
|
|
{
|
|
public string Periodo { get; set; }
|
|
public string SaldoInicial { get; set; }
|
|
public string PorcentajeInteresMensual { get; set; }
|
|
public string Capital { get; set; }
|
|
public string InteresMensual { get; set; }
|
|
public string Mensualidad { get; set; }
|
|
public string SaldoFinal { get; set; }
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoNuevoTablaPagos
|
|
{
|
|
public string Periodo { get; set; }
|
|
public string SaldoInicial { get; set; }
|
|
public string PorcentajeInteresMensual { get; set; }
|
|
public string Capital { get; set; }
|
|
public string InteresMensual { get; set; }
|
|
public string Mensualidad { get; set; }
|
|
public string SaldoFinal { get; set; }
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoUsadoColaboradorTablaPagos
|
|
{
|
|
public string Periodo { get; set; }
|
|
public string SaldoInicial { get; set; }
|
|
public string Capital { get; set; }
|
|
public string InteresMensual { get; set; }
|
|
public string Mensualidad { get; set; }
|
|
public string SaldoFinal { get; set; }
|
|
}
|
|
|
|
public class PlantillaCotizacionAutoUsadoTablaPagos
|
|
{
|
|
public string Periodo { get; set; }
|
|
public string SaldoInicial { get; set; }
|
|
public string Capital { get; set; }
|
|
public string InteresMensual { get; set; }
|
|
public string Mensualidad { get; set; }
|
|
public string SaldoFinal { get; set; }
|
|
}
|
|
} |