Commit 885990cd21f15c1dd1a01d0ccf523bc4000ef560
1 parent
1a923cf7
Exists in
master
and in
7 other branches
Correção no posicionamento das janelas do sistema METAESTAT.
Correção no "zoom para" na ferramenta tabela
Showing
8 changed files
with
43 additions
and
12 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/js/core.js
@@ -1451,6 +1451,11 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo,modal) | @@ -1451,6 +1451,11 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose,titulo,modal) | ||
1451 | }; | 1451 | }; |
1452 | YAHOO.util.Event.addListener(YAHOO.admin.container.panelEditor.close, "click", fecha); | 1452 | YAHOO.util.Event.addListener(YAHOO.admin.container.panelEditor.close, "click", fecha); |
1453 | YAHOO.admin.container.panelEditor.show(); | 1453 | YAHOO.admin.container.panelEditor.show(); |
1454 | + //registra a janela no gerenciador de janelas default da classe i3GEO.janela caso ela exista | ||
1455 | + try{ | ||
1456 | + YAHOO.i3GEO.janela.manager.register(YAHOO.admin.container.panelEditor); | ||
1457 | + } | ||
1458 | + catch(e){} | ||
1454 | } | 1459 | } |
1455 | /* | 1460 | /* |
1456 | Function idiomaSel | 1461 | Function idiomaSel |
admin/php/classe_metaestat.php
@@ -1641,13 +1641,11 @@ class Metaestat{ | @@ -1641,13 +1641,11 @@ class Metaestat{ | ||
1641 | $c = $this->listaConexao($medida["codigo_estat_conexao"],true); | 1641 | $c = $this->listaConexao($medida["codigo_estat_conexao"],true); |
1642 | //var_dump($c);exit; | 1642 | //var_dump($c);exit; |
1643 | $dbh = new PDO('pgsql:dbname='.$c["bancodedados"].';user='.$c["usuario"].';password='.$c["senha"].';host='.$c["host"].';port='.$c["porta"]); | 1643 | $dbh = new PDO('pgsql:dbname='.$c["bancodedados"].';user='.$c["usuario"].';password='.$c["senha"].';host='.$c["host"].';port='.$c["porta"]); |
1644 | - | ||
1645 | $colunassql[] = $medida["colunavalor"].",".$medida["colunaidunico"]; | 1644 | $colunassql[] = $medida["colunavalor"].",".$medida["colunaidunico"]; |
1646 | $alias[] = $medida["nomemedida"]; | 1645 | $alias[] = $medida["nomemedida"]; |
1647 | $colunas[] = $medida["colunavalor"]; | 1646 | $colunas[] = $medida["colunavalor"]; |
1648 | $alias[] = "idunico"; | 1647 | $alias[] = "idunico"; |
1649 | $colunas[] = $medida["colunaidunico"]; | 1648 | $colunas[] = $medida["colunaidunico"]; |
1650 | - | ||
1651 | $parametros = $this->listaParametro($id_medida_variavel); | 1649 | $parametros = $this->listaParametro($id_medida_variavel); |
1652 | foreach($parametros as $p){ | 1650 | foreach($parametros as $p){ |
1653 | $colunassql[] = $p["coluna"]; | 1651 | $colunassql[] = $p["coluna"]; |
@@ -1656,7 +1654,6 @@ class Metaestat{ | @@ -1656,7 +1654,6 @@ class Metaestat{ | ||
1656 | } | 1654 | } |
1657 | 1655 | ||
1658 | $sql = "select ".implode(",",$colunassql)." from ".$medida["esquemadb"].".".$medida["tabela"]." WHERE ".$medida["colunaidgeo"]."::text = ".$identificador_regiao."::text "; | 1656 | $sql = "select ".implode(",",$colunassql)." from ".$medida["esquemadb"].".".$medida["tabela"]." WHERE ".$medida["colunaidgeo"]."::text = ".$identificador_regiao."::text "; |
1659 | - //echo $sql;exit; | ||
1660 | if($medida["filtro"] != ""){ | 1657 | if($medida["filtro"] != ""){ |
1661 | $sql .= " and ".$medida["filtro"]; | 1658 | $sql .= " and ".$medida["filtro"]; |
1662 | } | 1659 | } |
admin/php/metaestat.php
@@ -415,7 +415,7 @@ switch (strtoupper($funcao)) | @@ -415,7 +415,7 @@ switch (strtoupper($funcao)) | ||
415 | $verde = $cor[1]; | 415 | $verde = $cor[1]; |
416 | $azul = $cor[2]; | 416 | $azul = $cor[2]; |
417 | } | 417 | } |
418 | - $m->alteraClasseClassificacao("",$id_classe,$titulo,$expressao,$vermelho,$verde,$azul,"","","-1","-1","-1",""); | 418 | + $m->alteraClasseClassificacao("",$id_classe,$titulo,$expressao,$vermelho,$verde,$azul,"","","255","255","255","2"); |
419 | } | 419 | } |
420 | } | 420 | } |
421 | if($tipo == "intiguais5"){ | 421 | if($tipo == "intiguais5"){ |
@@ -444,7 +444,7 @@ switch (strtoupper($funcao)) | @@ -444,7 +444,7 @@ switch (strtoupper($funcao)) | ||
444 | $verde = $cor[1]; | 444 | $verde = $cor[1]; |
445 | $azul = $cor[2]; | 445 | $azul = $cor[2]; |
446 | } | 446 | } |
447 | - $m->alteraClasseClassificacao("",$id_classe,$titulo,$expressao,$vermelho,$verde,$azul,"","","-1","-1","-1",""); | 447 | + $m->alteraClasseClassificacao("",$id_classe,$titulo,$expressao,$vermelho,$verde,$azul,"","","255","255","255","2"); |
448 | } | 448 | } |
449 | } | 449 | } |
450 | retornaJSON("ok"); | 450 | retornaJSON("ok"); |
classesphp/classe_atributos.php
@@ -211,12 +211,13 @@ class Atributos | @@ -211,12 +211,13 @@ class Atributos | ||
211 | } | 211 | } |
212 | //error_reporting(E_ALL); | 212 | //error_reporting(E_ALL); |
213 | $this->layer->set("template","none.htm"); | 213 | $this->layer->set("template","none.htm"); |
214 | - $this->layer->setfilter(""); | 214 | + //$this->layer->setfilter(""); |
215 | $ext = ""; | 215 | $ext = ""; |
216 | //procura o registro e pega a extensão geográfica | 216 | //procura o registro e pega a extensão geográfica |
217 | if($this->v == 6){ | 217 | if($this->v == 6){ |
218 | $this->layer->open(); | 218 | $this->layer->open(); |
219 | $shape = $this->layer->getShape(new resultObj($registro)); | 219 | $shape = $this->layer->getShape(new resultObj($registro)); |
220 | + //$shape = $this->layer->getShape($this->layer->getResult($registro)); | ||
220 | } | 221 | } |
221 | else{ | 222 | else{ |
222 | if (@$this->layer->open() == MS_SUCCESS) | 223 | if (@$this->layer->open() == MS_SUCCESS) |
@@ -230,6 +231,7 @@ class Atributos | @@ -230,6 +231,7 @@ class Atributos | ||
230 | } | 231 | } |
231 | } | 232 | } |
232 | } | 233 | } |
234 | + | ||
233 | $ext = $this->extensaoShape($shape); | 235 | $ext = $this->extensaoShape($shape); |
234 | return($ext); | 236 | return($ext); |
235 | } | 237 | } |
@@ -444,8 +446,8 @@ class Atributos | @@ -444,8 +446,8 @@ class Atributos | ||
444 | "nome"=>$nome | 446 | "nome"=>$nome |
445 | ); | 447 | ); |
446 | } | 448 | } |
447 | - | ||
448 | - $registros[] = array("indice"=>$indx,"valores"=>$valitem,"status"=>$chk,"classe"=>$classe); | 449 | + $ext = $this->extensaoShape($shape); |
450 | + $registros[] = array("indice"=>$indx,"valores"=>$valitem,"status"=>$chk,"classe"=>$classe,"ext"=>$ext); | ||
449 | } | 451 | } |
450 | $resultadoFinal[] = array("registros"=>$registros); | 452 | $resultadoFinal[] = array("registros"=>$registros); |
451 | } | 453 | } |
@@ -512,7 +514,8 @@ class Atributos | @@ -512,7 +514,8 @@ class Atributos | ||
512 | ); | 514 | ); |
513 | } | 515 | } |
514 | if(count($valitem) > 0){ | 516 | if(count($valitem) > 0){ |
515 | - $registros[] = array("indice"=>$indx,"valores"=>$valitem,"status"=>$chk,"classe"=>$classe); | 517 | + $ext = $this->extensaoShape($shape); |
518 | + $registros[] = array("indice"=>$indx,"valores"=>$valitem,"status"=>$chk,"classe"=>$classe,"ext"=>$ext); | ||
516 | } | 519 | } |
517 | $chk = ""; | 520 | $chk = ""; |
518 | } | 521 | } |
ferramentas/metaestat/dicionario1.js
@@ -45,7 +45,7 @@ it:"" | @@ -45,7 +45,7 @@ it:"" | ||
45 | }], | 45 | }], |
46 | "7":[ | 46 | "7":[ |
47 | { | 47 | { |
48 | -pt:"Crie ou edite as classificações que podem ser utilizadas para representar os dados escolhidos. As classificações definem as cores para o mapa e os valores que cada classe abrange. Na próxima tela serão definidas as classes.", | 48 | +pt:"Crie ou edite as classificações que podem ser utilizadas para representar os dados escolhidos. As classificações definem as cores para o mapa e os valores que cada classe abrange. Nessa tela o nome da classificação é definido, e na próxima tela serão definidas as classes.", |
49 | en:"", | 49 | en:"", |
50 | es:"", | 50 | es:"", |
51 | it:"" | 51 | it:"" |
ferramentas/metaestat/index.js
@@ -135,7 +135,9 @@ i3GEOF.metaestat = { | @@ -135,7 +135,9 @@ i3GEOF.metaestat = { | ||
135 | return ins; | 135 | return ins; |
136 | }, | 136 | }, |
137 | comboCamadas: function(){ | 137 | comboCamadas: function(){ |
138 | - //i3geoCartoAnaliseCamadas | 138 | + if(!$i("i3geoCartoAnaliseCamadas")){ |
139 | + return; | ||
140 | + } | ||
139 | var temp = function(retorno){ | 141 | var temp = function(retorno){ |
140 | var temas = retorno.data, | 142 | var temas = retorno.data, |
141 | n = temas.length, | 143 | n = temas.length, |
@@ -1010,6 +1012,10 @@ i3GEOF.metaestat = { | @@ -1010,6 +1012,10 @@ i3GEOF.metaestat = { | ||
1010 | temp = function(retorno){ | 1012 | temp = function(retorno){ |
1011 | core_carregando("desativa"); | 1013 | core_carregando("desativa"); |
1012 | }; | 1014 | }; |
1015 | + if(cores == ""){ | ||
1016 | + alert("Escolha as cores primeiro"); | ||
1017 | + return; | ||
1018 | + } | ||
1013 | core_carregando("ativa"); | 1019 | core_carregando("ativa"); |
1014 | i3GEO.util.ajaxGet(p,temp); | 1020 | i3GEO.util.ajaxGet(p,temp); |
1015 | }, | 1021 | }, |
@@ -1021,6 +1027,10 @@ i3GEOF.metaestat = { | @@ -1021,6 +1027,10 @@ i3GEOF.metaestat = { | ||
1021 | temp = function(retorno){ | 1027 | temp = function(retorno){ |
1022 | core_carregando("desativa"); | 1028 | core_carregando("desativa"); |
1023 | }; | 1029 | }; |
1030 | + if(cores == ""){ | ||
1031 | + alert("Escolha as cores primeiro"); | ||
1032 | + return; | ||
1033 | + } | ||
1024 | core_carregando("ativa"); | 1034 | core_carregando("ativa"); |
1025 | i3GEO.util.ajaxGet(p,temp); | 1035 | i3GEO.util.ajaxGet(p,temp); |
1026 | }, | 1036 | }, |
ferramentas/tabela/index.js
@@ -485,7 +485,11 @@ i3GEOF.tabela = { | @@ -485,7 +485,11 @@ i3GEOF.tabela = { | ||
485 | n = retorno.data[1].registros.length; | 485 | n = retorno.data[1].registros.length; |
486 | for (i=0;i<n;i++){ | 486 | for (i=0;i<n;i++){ |
487 | ins += "<tr><td><img style=cursor:pointer onclick='i3GEOF.tabela.excluiLinha(this)' src='"+i3GEO.configura.locaplic+"/imagens/x.gif' title='"+$trad("t12")+"' /></td>"; | 487 | ins += "<tr><td><img style=cursor:pointer onclick='i3GEOF.tabela.excluiLinha(this)' src='"+i3GEO.configura.locaplic+"/imagens/x.gif' title='"+$trad("t12")+"' /></td>"; |
488 | - ins += "<td><img style=cursor:pointer onclick='i3GEOF.tabela.zoomLinha(this)' src='"+i3GEO.configura.locaplic+"/imagens/o.gif' title='zoom' ids="+retorno.data[1].registros[i].indice+" /></td>"; | 488 | + ins += "<td>"; |
489 | + if(retorno.data[1].registros[i].ext && retorno.data[1].registros[i].ext != ""){ | ||
490 | + ins += "<img style=cursor:pointer onclick='i3GEOF.tabela.zoomExt(\""+retorno.data[1].registros[i].ext+"\")' src='"+i3GEO.configura.locaplic+"/imagens/o.gif' title='zoom' ids="+retorno.data[1].registros[i].indice+" />"; | ||
491 | + } | ||
492 | + ins += "</td>"; | ||
489 | stat = ""; | 493 | stat = ""; |
490 | if(retorno.data[1].registros[i].status === "CHECKED") | 494 | if(retorno.data[1].registros[i].status === "CHECKED") |
491 | {stat = "CHECKED";} | 495 | {stat = "CHECKED";} |
@@ -652,6 +656,18 @@ i3GEOF.tabela = { | @@ -652,6 +656,18 @@ i3GEOF.tabela = { | ||
652 | } while (p.childNodes.length > 0); | 656 | } while (p.childNodes.length > 0); |
653 | p.parentNode.removeChild(p); | 657 | p.parentNode.removeChild(p); |
654 | }, | 658 | }, |
659 | + zoomExt: function(ext){ | ||
660 | + if(i3GEOF.tabela.aguarde.visibility === "visible") | ||
661 | + {return;} | ||
662 | + i3GEOF.tabela.aguarde.visibility = "visible"; | ||
663 | + var funcao = function(){ | ||
664 | + i3GEOF.tabela.aguarde.visibility = "hidden"; | ||
665 | + i3GEOF.tabela.pegaRegistros(); | ||
666 | + i3GEO.atualiza(); | ||
667 | + }; | ||
668 | + i3GEO.php.mudaext(funcao,"nenhum",ext); | ||
669 | + }, | ||
670 | + //depreciado | ||
655 | zoomLinha: function(celula){ | 671 | zoomLinha: function(celula){ |
656 | if(i3GEOF.tabela.aguarde.visibility === "visible") | 672 | if(i3GEOF.tabela.aguarde.visibility === "visible") |
657 | {return;} | 673 | {return;} |