var pxChar = 8; var __constants = new function() { this.FIDS = new function() { //Fids this.CONTRIBUTOR = 831 ; this.VALUE_CODE = 501 ; this.SETTLE_DATE = 288 ; this.MATURITY = 67 ; this.STRIKE = 66 ; this.CALLPUT = 1052; this.RATIO = 947 ; this.DATE = 16 ; this.TIME = 18 ; this.BID = 393 ; this.ASK = 275 ; this.VEGA = 2308 ; this.GAMMA = 2306 ; this.THETA = 2307 ; this.DELTA = 2305 ; this.SPOT = 999 ; this.VOLUME = 178 ; this.STATUS_MKT = 188 ; this.STATUS_ID = 189 ; this.VOLATILITY = 2330; this.UNDERLYING = 3 ; this.ISIN = 78 ; this.ELASTICITY = 2209; this.SECTOR = 749 ; this.RISK_FACTOR = 1053; this.LEVERAGE = 130 ; this.ID = 2947; this.TYPE_WRT = 1051; this.TYPE_OPT = 1009; this.STOP_LOSS = 1460; this.CURRENCY_W = 15 ; this.CURRENCY_U = 1084; this.CHG_RATE = 942 ; this.INT_RATE = 35 ; this.DIVIDEND = 71 ; this.CALCULATED = 10000; // A partir del 10000 son calculados por la aplicacion // Calculados this.VOLIMP_CALC = this.VOLATILITY; this.PRIMA_CALC = 10001; this.VEGA_CALC = this.VEGA; this.DELTA_CALC = this.DELTA; this.THETA_CALC = this.THETA; this.GAMMA_CALC = this.GAMMA; this.ELASTICIDAD_CALC = this.ELASTICITY; this.VALORCOMPRA_CALC = 10010; this.CANTIDAD_CALC = 10011; this.VALORMERCADO_CALC = 10012; this.RENTABILIDAD_CALC = 10013; this.GASTOS_CALC = 10014; this.FECHACOMPRA_CALC = 10015; this.VUNITARIO_CALC = 10016; this.RENTABILIDADACU_CALC = 10020; this.VOLATILIDADACU_CALC = 10021; this.BIDMIN = 10023; this.BIDMAX = 10024; this.ASKMIN = 10025; this.ASKMAX = 10026; this.SPOTMIN = 10027; this.SPOTMAX = 10028; this.VOLMIN = 10029; this.VOLMAX = 10030; this.MATDATE = 10031; this.CONDALERT = 10032; this.SITUALERT = 10033; this.CODALERT = 10034; this.RISKFACTOR_CALC = 10060; } } var COLUMN_ID = 0; var COLUMN_NAME = 1; var COLUMN_WIDTH = 2; var COLUMN_CLASS = 3; var COLUMN_FAVORITE = 4; var COLUMN_SIMULATION = 5; var COLUMN_PORTFOLIO = 6; var COLUMN_RANKING = 7; // id, nombre, tamaño en caracteres, clase, mostrar en favoritos, mostrar en simulacion, mostrar en carteras, mostrar en ranking var allFids = [ [__constants.FIDS.CONTRIBUTOR, 'Contribuidor', '10', ,true, true, true, true], [__constants.FIDS.VALUE_CODE, 'Cod. Valor', '10', ,true, true, true, true], [__constants.FIDS.DATE, 'Fecha', '10', 'headerRow1' ,true, true, true, true], [__constants.FIDS.MATURITY, 'Vencimiento', '10', ,true, true, true, true], [__constants.FIDS.STRIKE, 'Strike', '6', ,true, true, true, true], [__constants.FIDS.CALLPUT, 'Call/Put', '8', ,true, true, true, true], [__constants.FIDS.RATIO, 'Ratio', '7', ,true, true, true, true], [__constants.FIDS.TIME, 'Hora', '8', ,true, true, true, true], [__constants.FIDS.BID, 'Bid', '7', 'headerRow2' ,true, true, true, true], [__constants.FIDS.ASK, 'Ask', '7', 'headerRow2' ,true, true, true, true], [__constants.FIDS.VEGA, 'Vega', '10', ,true, true, true, true], [__constants.FIDS.GAMMA, 'Gamma', '10', ,true, true, true, true], [__constants.FIDS.THETA, 'Theta', '10', ,true, true, true, true], [__constants.FIDS.DELTA, 'Delta', '10', ,true, true, true, true], [__constants.FIDS.SPOT, 'Spot', '7', 'headerRow1' ,true, true, true, true], [__constants.FIDS.VOLUME, 'Volumen', '10', ,true, true, true, true], [__constants.FIDS.VOLATILITY, 'Volatilidad', '6', 'headerRow2' ,true, true, true, true], [__constants.FIDS.UNDERLYING, 'Subyacente', '12', ,true, true, true, true], [__constants.FIDS.ISIN, 'Cod.ISIN', '12', ,true, true, true, true], [__constants.FIDS.ELASTICITY, 'Elasticidad', '10', ,true, true, true, true], [__constants.FIDS.SECTOR, 'Sector', '10', ,true, true, true, true], [__constants.FIDS.RISK_FACTOR, 'Perfil', '5', ,true, true, true, true], [__constants.FIDS.LEVERAGE, 'Apalancamiento', '10', ,true, true, true, true], [__constants.FIDS.TYPE_OPT , 'Tipo Opcion', '2', ,true, true, true, true], [__constants.FIDS.TYPE_WRT , 'Tipo Warrant', '2', ,true, true, true, true], [__constants.FIDS.CURRENCY_W, 'Divisa Wrt.', '10', ,true, true, true, true], [__constants.FIDS.CURRENCY_U, 'Divisa Suby.', '10', ,true, true, true, true], [__constants.FIDS.CHG_RATE, 'Tipo de Cambio', '10', ,true, true, true, true], [__constants.FIDS.INT_RATE, 'T. Interés', '8', 'headerRow1' ,true, true, true, true], [__constants.FIDS.PRIMA_CALC, 'Prima', '8', 'headerRow2' ,false, true, false, false], [__constants.FIDS.VALORCOMPRA_CALC, 'Valor Compra', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.CANTIDAD_CALC, 'Cantidad', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.VALORMERCADO_CALC, 'Valor Mercado', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.RENTABILIDAD_CALC, 'Rentabilidad', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.GASTOS_CALC, 'Gastos', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.FECHACOMPRA_CALC, 'F. Compra', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.VUNITARIO_CALC, 'P. Compra', '8', 'headerRow3' ,false, false, true, false], [__constants.FIDS.RENTABILIDADACU_CALC, 'Rentabilidad', '8', 'headerRow3' ,false, false, false, true], [__constants.FIDS.BIDMIN, 'Bid Min.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.BIDMAX, 'Bid Max.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.ASKMIN, 'Ask Min.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.ASKMAX, 'Ask Max.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.SPOTMIN, 'Spot Min.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.SPOTMAX, 'Spot Max.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.VOLMIN, 'Vol. Min.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.VOLMAX, 'Vol. Max.', '7', 'headerRow3' ,false, false, false, false], [__constants.FIDS.MATDATE, 'Fecha Caducidad', '8', 'headerRow3' ,false, false, false, false], [__constants.FIDS.CONDALERT, 'Alerta', '20', 'headerRow3' ,false, false, false, false], [__constants.FIDS.SITUALERT, 'Situación', '18', 'headerRow3' ,false, false, false, false], [__constants.FIDS.CODALERT, 'cod. Alerta', '6', 'headerRow3' ,false, false, false, false], [__constants.FIDS.DIVIDEND, 'Dividendo', '6', 'headerRow1' ,false, false, false, false], [__constants.FIDS.RISKFACTOR_CALC, 'Perfil', '8', ,false, false, false, false], [__constants.FIDS.STATUS_ID, 'Estado', '10', ,true, true, true, true] ]; getName = function(fid) { for(var i = 0; i=0;i--) { var nombre = allFids[i][1] if(inArray(arrayAux, nombre)>=0) { continue; } else { salida[salida.length] = allFids[i].join(", ").split(", "); salida[salida.length-1][2]=allFids[i][2] salida[salida.length-1][0]=allFids[i][0].toString() salida[salida.length-1][3]=allFids[i][3].toString() if(nombre.charAt(nombre.length-1)=="_") { nombre = nombre.substr(0, nombre.length-1); arrayAux[arrayAux.length]= nombre; salida[salida.length-1][1] = nombre; } } } return salida; }