Commit 3f231dca2b58a167a4f064259371baa8ce8ab99e
1 parent
4a12c9f1
Exists in
master
and in
7 other branches
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 | 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 | 153 | Function: html |
| 141 | 154 | |
| ... | ... | @@ -831,6 +844,7 @@ i3GEOF.editorlimites = { |
| 831 | 844 | re = new RegExp("idunico_", "g"),//prefixo usado para marcar o id dos elementos input que contem os valores que se quer obter |
| 832 | 845 | temp = function(retorno){ |
| 833 | 846 | i3GEOF.editorlimites.editarAtributos.pegaDados(); |
| 847 | + i3GEOF.editorlimites.atualizaCamadasMetaestat(); | |
| 834 | 848 | i3GEO.janela.fechaAguarde("aguardeSalvaAtributos"); |
| 835 | 849 | }; |
| 836 | 850 | if(codigo_tipo_regiao == ""){ | ... | ... |