diff --git a/ferramentas/tabela/dicionario.js b/ferramentas/tabela/dicionario.js index a9ea1ff..5416242 100755 --- a/ferramentas/tabela/dicionario.js +++ b/ferramentas/tabela/dicionario.js @@ -141,9 +141,9 @@ i3GEOF.tabela.dicionario = { es : "Excluir de las estadísticas el valor" } ], "relattext" : [ { - pt : "Relatório no formato texto", - en : "Report in text format", - es : "Informe en formato de texto" + pt : "Relatório no formato CSV", + en : "Report in CSV format", + es : "Informe en formato CSV" } ], 'temaNaoExisteMais' : [ { pt : "O tema já não existe mais no mapa", diff --git a/ferramentas/tabela/index.js b/ferramentas/tabela/index.js index 3e038eb..d3119ef 100755 --- a/ferramentas/tabela/index.js +++ b/ferramentas/tabela/index.js @@ -98,6 +98,19 @@ i3GEOF.tabela = // relatorio $i("i3GEOtabelaguia5").onclick = function() { i3GEO.guias.mostraGuiaFerramenta("i3GEOtabelaguia5", "i3GEOtabelaguia"); + i3GEO.util.checkItensEditaveis( + i3GEOF.tabela._parameters.tema, + function(retorno) { + if (retorno.tipo === "dados") { + $i("i3GEOtabelaitensrelatorio").innerHTML = retorno.dados; + } + }, + "i3GEOtabelaitensrelatorio", + "320px", + "", + "sim" + ); + i3GEO.util.comboItens( "i3GEOtabelaagrupaItem", i3GEOF.tabela._parameters.tema, @@ -508,20 +521,21 @@ i3GEOF.tabela = } }, "i3GEOtabelaitensGuia3", "","sim","","form-control"); }, - estatistica : function(idjanela) { + estatistica : function() { if ($i("i3GEOtabelaComboItensGuia3").value === "") { i3GEO.janela.tempoMsg("Escolha um item!"); return; } try { var monta = function(retorno) { - var ins = "", nome, valor, i, n; + var textoCopy = "", ins = "", nome, valor, i, n; if (retorno.data.indices !== undefined) { if (retorno.data.indices) { n = retorno.data.indices.length; for (i = 0; i < n; i++) { - nome =retorno.data.variaveis[retorno.data.indices[i]]; + nome = retorno.data.variaveis[retorno.data.indices[i]]; valor = retorno.data.valores[retorno.data.indices[i]]; + textoCopy += nome + " = " + valor + "\n"; ins += '
'+valor+'