Commit 3f231dca2b58a167a4f064259371baa8ce8ab99e

Authored by Edmar Moretti
1 parent 4a12c9f1

Inclusão de função para atualização das camadas no editor de limites geográficos…

… quando um novo registro é inserido no sistema metaestat
Showing 1 changed file with 14 additions and 0 deletions   Show diff stats
ferramentas/metaestat/editorlimites.js
@@ -136,6 +136,19 @@ i3GEOF.editorlimites = { @@ -136,6 +136,19 @@ i3GEOF.editorlimites = {
136 i3GEOF.editorlimites.clearSelection 136 i3GEOF.editorlimites.clearSelection
137 ); 137 );
138 }, 138 },
  139 + /**
  140 + * Atualiza as camadas do mapa que sao oriundas do sistema METAESTAT
  141 + */
  142 + atualizaCamadasMetaestat: function(){
  143 + var p = i3GEO.configura.locaplic+"/ferramentas/metaestat/analise.php?funcao=LISTACAMADASMETAESTAT&g_sid="+i3GEO.configura.sid,
  144 + temp = function(retorno){
  145 + var n = retorno.data.length,i;
  146 + for(i=0;i<n;i++){
  147 + i3GEO.Interface.atualizaTema("",retorno.data[i]);
  148 + }
  149 + };
  150 + cpJSON.call(p,"foo",temp);
  151 + },
139 /* 152 /*
140 Function: html 153 Function: html
141 154
@@ -831,6 +844,7 @@ i3GEOF.editorlimites = { @@ -831,6 +844,7 @@ i3GEOF.editorlimites = {
831 re = new RegExp("idunico_", "g"),//prefixo usado para marcar o id dos elementos input que contem os valores que se quer obter 844 re = new RegExp("idunico_", "g"),//prefixo usado para marcar o id dos elementos input que contem os valores que se quer obter
832 temp = function(retorno){ 845 temp = function(retorno){
833 i3GEOF.editorlimites.editarAtributos.pegaDados(); 846 i3GEOF.editorlimites.editarAtributos.pegaDados();
  847 + i3GEOF.editorlimites.atualizaCamadasMetaestat();
834 i3GEO.janela.fechaAguarde("aguardeSalvaAtributos"); 848 i3GEO.janela.fechaAguarde("aguardeSalvaAtributos");
835 }; 849 };
836 if(codigo_tipo_regiao == ""){ 850 if(codigo_tipo_regiao == ""){