var viewCommons = new JackBeView(); viewCommons.responseHandlers.getCuentasPropias = function(res) { if(Y(res.dto) != 'undefined') { genData.cuentasPropias = res.dto; } } viewCommons.responseHandlers.getCuentasPropiasCaller = function(res) { if(Y(res.dto) != 'undefined') { genData.cuentasPropias = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.getCuentasTerceros = function(res) { if(Y(res.dto) != 'undefined') { genData.cuentasTerceros = res.dto; } } viewCommons.responseHandlers.getCuentasTercerosCaller = function(res) { if(Y(res.dto) != 'undefined') { genData.cuentasTerceros = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.getCuentasInterbancaria = function(res) { if(Y(res.dto) != 'undefined') { genData.cuentasInterbancarias = res.dto; } } viewCommons.responseHandlers.getCuentasInterbancariaCaller = function(res) { if(Y(res.dto) != 'undefined') { genData.cuentasInterbancarias = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.getTarjetasDebitoInterbancariasCaller = function(res) { if(Y(res.dto) != 'undefined') { genData.tarjetasDebitoInterbancarias = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.accesoOperacion = function(res) { cmns.accs.accessHandler(res); } viewCommons.responseHandlers.accesoOperacionMulti = function(res) { if(typeof(genData.accesos) == "undefined") { genData.accesos = new Object(); } for(var i = 0; res.dto.length; i++) { var acc = res.dto[i]; genData.accesos[acc.operacion] = acc; } } viewCommons.responseHandlers.getTarjetasDeCreditoPropias = function(res) { if(Y(res.dto) != 'undefined') { genData.tarjetasCreditoPropias = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.getTarjetasDeCreditoPropiasCaller = function(res) { if(Y(res.dto) != 'undefined') { genData.tarjetasCreditoPropias = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.getTarjetasTerceros = function(res) { if(Y(res.dto) != 'undefined') { genData.getTarjetasTerceros = res.dto; } } viewCommons.responseHandlers.getTarjetasTercerosCaller = function(res) { if(Y(res.dto) != 'undefined') { genData.getTarjetasTerceros = res.dto; } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } } viewCommons.responseHandlers.validarImporte = function(res) { cmns.getImporte.limiteHandler(res); } viewCommons.responseHandlers.getFechaActual = function(res) { if(res.error.clave == "OK") { clienteOBJ.FechaActual = res.dto.fecha; clienteOBJ.horaActual = res.dto.hora; clienteOBJ.sFechaHabil = res.dto.sfechahabil; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getDiasInhabiles = function(res) { if(res.error.clave == "OK") { days = res.dto.diasInhabiles; dias = SP(days,"|"); clienteOBJ.DiasInhabiles = dias; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getTarjetaDebito = function(res) { if(res.error.clave == "OK") { Servicios.tarjetasDebito = res.dto; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getTarjetasTercerosSantander = function(res) { if(res.error.clave == "OK") { genData.tarjetasTercerosSantander = res.dto; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getTarjetasTercerosInterbancarias = function(res) { if(res.error.clave == "OK") { genData.tarjetasTercerosInterbancarias = res.dto; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getCatalagoBancosTC = function(res) { if(res.error.clave == "OK") { genData.catalagoBancosTC = res.dto; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getCatalagoBancosTD = function(res) { if(res.error.clave == "OK") { genData.catalagoBancosTD = res.dto; }else{ alert(res.error.message); } } viewCommons.responseHandlers.getMensajesCliente = function(res) { if(res.error.clave == "OK"){ spntMain.avisos = res.dto; spntMain.mensajes(); }else{ spntMain.avisos = {}; } } viewCommons.responseHandlers.commonGetContratosVistaYPlazo = function(res){ if(res.error.clave == "OK"){ clienteOBJ.contratosVP = res.dto; }else{ clienteOBJ.contratosVP = []; viewError.responseHandlers.defaultHandler(res); } if(doCaller.index != null){ doCaller.goCaller(doCaller.arr[doCaller.index++]); } }