//CLASE oFlotaAutomotores function oFlotaAutomotores_class() { this.VEHICULO_ACTUAL = 0; this.WORKFLOWREFERENCENUMBER = ""; //es el nro del workflow cuando se ejecuta el referal, se usa para aprobar o desaprobar el referal this.PRODUCTO = ""; this.NROCOT = ""; //Nro de Quote this.NROPOL = ""; // Nro de poliza this.RENEWALPOLICYNUMBER = ""; this.CROSSREFERENCENUMBER = ""; this.CROSSREFERENCETYPE = ""; this.TRNBER = "1"; // Nro de transaccion this.MAXTRNBER = "1"; //ultimo numero transaccionado this.TRANSACCION = "NEW_QUOTE"; //tipo de transaccion EJ: NEW_QUOTE, EDIT_QUOTE this.TIPOCOT = ""; /*R = rapida D= detallada*/ this.STATUSCODE = "POLICY_NEW"; /*representa el estado de la cotizacion QQ QU QY etc*/ this.STATUSQUOTE = []; /*Da el resultado de error del quote rate. Puede ser vacio , ERROR, WARNING o REFER.*/ this.REFERALMESSAGES = []; /*Aca se guardan los mensajes de Referal, ya que se van transladando de una pantalla a otra sin llamar al quote rate. Solo para pantalla cliente*/ this.WARNINGMESSAGES = []; /*Aca se guardan los mensajes de Referal, ya que se van transladando de una pantalla a otra sin llamar al quote rate. Solo para pantalla cliente*/ this.ERRORMESSAGES = []; this.CODPRODUCTOR = ""; this.PRODUCTORNOMBRE = ""; this.CODORGANIZADOR = ""; this.ORGANIZADORNOMBRE = ""; this.FECHAINICIOVIG = ""; this.RISKNUMBERMAX = 0; this.PLAZO = ""; this.FECHAFINVIG = ""; this.FECHAFINVIGCOT = moment(oGlobal.sys_date).add(1, 'months').format('DD/MM/YYYY'); this.ACTIVIDAD = ""; this.ACTIVIDADDESC = "" this.CLAUSULAEST = ""; this.CLIENTEDOCUMENTO = []; this.ESFLOTA = ""; this.CONVENIOPROD = ""; this.CONVENIOPRODDESC = ""; this.CONVENIOORG = ""; this.CONVENIOORGDESC = ""; this.PRIMATOTAL = ""; this.VARIACION = ""; this.PORCENTAJECOMISION = ""; this.PORCENTAJECOMISIONORG = ""; this.COMISION = ""; this.MEDIOPAGO = ""; this.MEDIOPAGODESC = ""; this.PLANPAGO = ""; this.PLANPAGODESC = ""; this.RECARGOFINANCIERO = ""; this.RECARGOADMINISTRATIVO = ""; this.TARJETA = ""; this.TARJETANRO = ""; this.TIPOPAGO = ""; this.CBU = ""; this.NOMBRECOMPANIA = ""; this.TIPOPERSONA = ""; this.CONDIVA = ""; this.CONDIVADESC = ""; this.CONDIIBB = ""; this.CONDIIBBDESC = ""; this.VEHICULOS = []; this.NROCLIENTE = ""; this.TIPOPERSONA = ""; this.NOMBRECLIENTE = ""; this.APELLIDOCLIENTE = ""; this.DOMICILIOCLIENTE = ""; this.FECHANACCLIENTE = ""; this.LUGARNACCLIENTE = ""; this.NACIONALIDADCLIENTE = ""; this.SEXOCLIENTE = ""; this.CPCLIENTE = ""; this.CALLECLIENTE = ""; this.CALLENROCLIENTE = ""; this.CLIENTEPISO = ""; this.CLIENTEPUERTA = ""; this.CLIENTEEMAIL = ""; this.CLIENTETELEFONO = ""; this.CLIENTECELULAR = ""; this.PPROVINCIACLIENTE = ""; this.CIUDADCLIENTE = ""; this.CALLESINNROCLIENTE = ""; this.CLIENTEFECHAREGISTRO = ""; this.CLIENTENROREGISTRO = ""; this.CLIENTEFECHACONTRATO = ""; this.CLIENTEIVACODE = ""; this.CLIENTEGROSSINCOMETYPE = ""; this.TAXIDGSTNUMBER = ""; this.REPRESENTANTELEGNOMBRE = ""; this.REPRESENTANTELEGAPELLIDO = ""; this.REPRESENTANTELEGDOCUMENTONRO = ""; this.REPRESENTANTELEGDOCUMENTOTIPO = ""; this.REPRESENTANTELEGPRODUCTO = ""; this.REFERAL = ""; this.POLICYPREMIUM = ""; this.PREMIUMRATES = ""; this.PREVIUSPOLICYDETAIL = ""; this.PREVIUSPOLICY = ""; this.CAMPANIA = ""; this.CAMPANIA_DESCUENTO = ""; this.NOTASADICIONALES_Y = ""; this.NOTASADICIONALES_N = ""; // Celso: indica si esta en modo ver o abrir this.PRE_TITULO = ""; this.POLICYPREMIUMDETAILS = ""; this.RESPUESTAVIEW = ""; this.REQUIRESREVIEWFLAG = false; this.RENEWALCONVERSIONFLAG = false; this.FLAGOFCLAIM = false; this.FLAGOFDEBT = false; this.carteraValida = undefined; this.carteraValidaMsg = ""; } oFlotaAutomotores_class.prototype.documento = function () { this.CLIENTIPODOC = { CLIENTIPODOC: "", CLIENNRODOC: "" }; this.CLIENNRODOC = { CLIENTIPODOC: "", CLIENNRODOC: "" }; } oFlotaAutomotores_class.prototype.vehiculo = function () { this.IDAUTO = ""; this.RISKNUMBER = ""; this.RISKREFERENCEID = ""; this.ANIOFAB = ""; this.MARCA = ""; this.CODIGOMARCA this.OTRAMARCA = ""; this.OTRAMARCADESC = ""; this.TIPO = ""; this.CATEGORIA = ""; this.IMPORTADO = ""; this.ES0KM = ""; this.PATENTE = ""; this.PATENTEADEFINIR = ""; this.NROMOTOR = ""; this.NROCHASIS = ""; this.SUMAASEG = ""; this.SUMAASEGORIG = ""; this.CODIGOPOSTAL = ""; this.LOCALIDAD = ""; this.PROVINCIA = ""; this.NOCALLENRO = "" this.PLAN = ""; this.PLANDESC = ""; this.DEDUCIBLE = ""; this.DEDUCIBLEDESC = ""; this.USO = ""; this.MERCADERIATRANSPORTADA = ""; this.MERCADERIATRANSPORTADADESC = ""; this.GRANIZO = ""; this.CRISTALES = ""; this.CAMPOSPETAERO = ""; this.DISPOSITIVORASTREO = ""; this.PROVEEDORDISPRASTREO = ""; this.PROVEEDORDISPRASTREODESC = ""; this.DISPRASTREOAPROB = "" this.INSPECCION = ""; this.INSPECCIONPROVEEDOR = ""; this.INSPECCIONPROVEEDORDESC = ""; this.INSPECAPROBADA = ""; this.INSPECCIONNROCOMPR = ""; this.DANGERCARGOCOB = ""; this.ACCESORIOS = []; this.SUBROGACION = []; this.ASEGURADOADIC = []; this.AVISONOPAGO = []; this.INSPECCIONNOMBRE = ""; this.INSPECCIONTELEFONO = ""; this.INSPECCIONCELULAR = ""; this.INSPECCIONEMAIL = ""; this.MODE = "A"; this.NOTASADICIONALES_Y = ""; this.NOTASADICIONALES_N = ""; this.PARTESINTERESADAS = []; } oFlotaAutomotores_class.prototype.accesorio = function () { this.TIPO = ""; this.DESCRIPCION = ""; this.MARCA = ""; this.SUMAASEG = ""; } oFlotaAutomotores_class.prototype.subrogacion = function () { this.TIPODOC = ""; this.NRODOC = ""; this.NOMAPE = ""; } oFlotaAutomotores_class.prototype.aseguradoAdic = function () { this.TIPODOC = ""; this.NRODOC = ""; this.NOMAPE = ""; } oFlotaAutomotores_class.prototype.avisoNoPago = function () { this.TIPODOC = ""; this.NRODOC = ""; this.NONRO = ""; this.NOMAPE = ""; this.CP = ""; this.LOCALIDAD = ""; this.PROVINCIA = ""; this.CALLE = ""; this.NUMERO = ""; this.PISO = ""; this.PUERTA = ""; } oFlotaAutomotores_class.prototype.partesInteresadas = function () { this.NROCLIENTE = ""; this.NOMBRE = ""; this.CP = ""; this.PUERTA = ""; this.CALLENRO = ""; this.PISO = ""; this.CALLE = ""; this.LOCALIDAD = ""; this.CPROVINCIA = ""; this.CALLESINNRO = ""; this.CODROL = ""; this.DOCUMENTO = ""; this.TIPODOC = ""; this.TIPOCLIENTE = ""; } oFlotaAutomotores_class.prototype.referalHeader = function () { this.REFERALREASON = "ManualRefer"; if (oGlobal.ambiente === "PROD") this.REFERRALEMAILADDRESS = oGen.nvl(oGlobal.getOneMail(), 'mail_interno_uat@zurich.com'); else this.REFERRALEMAILADDRESS = "mail_interno_uat@zurich.com"; this.REFERRALREASONLINE = ""; this.REFERRALDETAIL = []; this.TEXTOSTATUS = ""; this.COMENTARIO = ""; } oFlotaAutomotores_class.prototype.referalDetail = function () { this.RISKNUMBER = ""; this.RISKTYPE = ""; this.ERRORCODE = ""; } oFlotaAutomotores_class.prototype.referalUnderwriterComments = function () { this.TEXTOSTATUS = ""; this.COMENTARIO = ""; } oFlotaAutomotores_class.prototype.policyPremiumDetails = function () { this.FAPPREMIUM = ""; this.FAPTOTALPREMIUM = ""; this.TOTALTRANSACTIONPREMIUM = ""; this.ISSUINGCHARGES = ""; this.CHARGESPERCENTAGE = ""; this.VAT = ""; this.ADDITIONALVAT = ""; this.VATRETENTION = ""; this.PROVINCESTAMPCHARGES = ""; this.GROSSINCOME = ""; this.OTHERTAXES = ""; this.PRICE = ""; } oFlotaAutomotores_class.prototype.initialize = function () { //console.warn("Hi, I'm the initialize function by default. That means you don't have a properly initialize function"); }; oFlotaAutomotores_class.prototype.pantallaNotasAdicioanles = function (impFrentePolizaGral, noImpFrentePolizaGral, impMaxLenth, noImpMaxLenth) { var htmlBuffer = []; var _habilitacion = (oGlobal.usuarioInterno() ? ' ' : ' disabled '); var _visible = (oGlobal.usuarioInterno() ? ' ' : ' hidden '); var onFocusNotasSeImpFP = oGlobal.usuarioInterno() ? 'onFocus="'+"(function(){var notas = $('#notaAdSeImpFP').val().split('\\n'); for(var i = 0; i < notas.length; i++){ notas[i] = notas[i].trim(); } notas = notas.join('\\n'); $('#notaAdSeImpFP').val(notas); $('#btnFormatearNotasAdicionalesSeImpFP').show(); $('#btnEditarNotasAdicionalesSeImpFP').hide();"+'})()"' : ''; var onClickBtnFormatearNotasSeImpFP = 'onClick="'+"(function(){ $('#errorSeImpFP').hide(); oGen.fnDisable('notaAdSeImpFP'); var notas = oGen.fnFormatLinesByLength($('#notaAdSeImpFP').val(), 60); notas = oGen.fnFillString(notas, 60, ' '); $('#notaAdSeImpFP').val(notas); $('#btnFormatearNotasAdicionalesSeImpFP').hide(); $('#btnEditarNotasAdicionalesSeImpFP').show();})()"+'"'; var onClickBtnEditarNotasSeImpFP = 'onClick="'+"(function(){oGen.fnEnable('notaAdSeImpFP'); var notas = $('#notaAdSeImpFP').val().split('\\n'); for(var i = 0; i < notas.length; i++){ notas[i] = notas[i].trim(); } notas = notas.join('\\n'); $('#notaAdSeImpFP').val(notas); $('#btnFormatearNotasAdicionalesSeImpFP').show(); $('#btnEditarNotasAdicionalesSeImpFP').hide();})()"+'"'; var onFocusNotasNoSeImpFP = oGlobal.usuarioInterno() ? 'onFocus="'+"(function(){var notas = $('#notaAdNoSeImpFP').val().split('\\n'); for(var i = 0; i < notas.length; i++){ notas[i] = notas[i].trim(); } notas = notas.join('\\n'); $('#notaAdNoSeImpFP').val(notas); $('#btnFormatearNotasAdicionalesNoSeImpFP').show(); $('#btnEditarNotasAdicionalesNoSeImpFP').hide();"+'})()"' : ''; var onClickBtnFormatearNotasNoSeImpFP = 'onClick="'+"(function(){ $('#errorNoSeImpFP').hide(); oGen.fnDisable('notaAdNoSeImpFP'); var notas = oGen.fnFormatLinesByLength($('#notaAdNoSeImpFP').val(), 60); notas = oGen.fnFillString(notas, 60, ' '); $('#notaAdNoSeImpFP').val(notas); $('#btnFormatearNotasAdicionalesNoSeImpFP').hide(); $('#btnEditarNotasAdicionalesNoSeImpFP').show();})()"+'"'; var onClickBtnEditarNotasNoSeImpFP = 'onClick="'+"(function(){oGen.fnEnable('notaAdNoSeImpFP'); var notas = $('#notaAdNoSeImpFP').val().split('\\n'); for(var i = 0; i < notas.length; i++){ notas[i] = notas[i].trim(); } notas = notas.join('\\n'); $('#notaAdNoSeImpFP').val(notas); $('#btnFormatearNotasAdicionalesNoSeImpFP').show(); $('#btnEditarNotasAdicionalesNoSeImpFP').hide();})()"+'"'; impMaxLenth = impMaxLenth !== undefined ? impMaxLenth : '3000'; noImpMaxLenth = noImpMaxLenth !== undefined ? noImpMaxLenth : '3000'; htmlBuffer.push('