Commit c235e40e7ad483f31d8564bad20bd2c42f2344d4
1 parent
e56773f8
Exists in
master
and in
7 other branches
Correção na geração de relatórios da ferramenta tabela
Showing
2 changed files
with
7 additions
and
2 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/tabela/index.js
| @@ -1589,6 +1589,7 @@ i3GEOF.tabela = { | @@ -1589,6 +1589,7 @@ i3GEOF.tabela = { | ||
| 1589 | */ | 1589 | */ |
| 1590 | relatorioTabela: function(){ | 1590 | relatorioTabela: function(){ |
| 1591 | try{ | 1591 | try{ |
| 1592 | + $i("i3GEOtabelatiporelh").value = ""; | ||
| 1592 | $i("i3GEOtabelaarearelh").value = $i("i3GEOtabelacalculaarea").checked; | 1593 | $i("i3GEOtabelaarearelh").value = $i("i3GEOtabelacalculaarea").checked; |
| 1593 | $i("i3GEOtabelastatrelh").value = $i("i3GEOtabelacalculaestat").checked; | 1594 | $i("i3GEOtabelastatrelh").value = $i("i3GEOtabelacalculaestat").checked; |
| 1594 | $i("i3GEOtabelaexcluirvalorh").value = $i("i3GEOtabelaexcestat").value; | 1595 | $i("i3GEOtabelaexcluirvalorh").value = $i("i3GEOtabelaexcestat").value; |
| @@ -1600,7 +1601,7 @@ i3GEOF.tabela = { | @@ -1600,7 +1601,7 @@ i3GEOF.tabela = { | ||
| 1600 | listaordem = [], | 1601 | listaordem = [], |
| 1601 | listanomes = [], | 1602 | listanomes = [], |
| 1602 | nome,ordem, | 1603 | nome,ordem, |
| 1603 | - i, | 1604 | + i,temp, |
| 1604 | n = inputs.length; | 1605 | n = inputs.length; |
| 1605 | for (i=0;i<n; i++){ | 1606 | for (i=0;i<n; i++){ |
| 1606 | if (inputs[i].type === "checkbox" && inputs[i].checked == true){ | 1607 | if (inputs[i].type === "checkbox" && inputs[i].checked == true){ |
| @@ -1617,8 +1618,10 @@ i3GEOF.tabela = { | @@ -1617,8 +1618,10 @@ i3GEOF.tabela = { | ||
| 1617 | $i("i3GEOtabelaordemrel").value=listaordem; | 1618 | $i("i3GEOtabelaordemrel").value=listaordem; |
| 1618 | $i("i3GEOtabelanomesrelh").value=listanomes; | 1619 | $i("i3GEOtabelanomesrelh").value=listanomes; |
| 1619 | $i("i3GEOtabelaitensrelh").value=listai; | 1620 | $i("i3GEOtabelaitensrelh").value=listai; |
| 1621 | + temp = $i("i3GEOtabelarelatorio").action; | ||
| 1620 | $i("i3GEOtabelarelatorio").action += "?ext="+i3GEO.parametros.mapexten; | 1622 | $i("i3GEOtabelarelatorio").action += "?ext="+i3GEO.parametros.mapexten; |
| 1621 | $i("i3GEOtabelarelatorio").submit(); | 1623 | $i("i3GEOtabelarelatorio").submit(); |
| 1624 | + $i("i3GEOtabelarelatorio").action = temp; | ||
| 1622 | }catch(e){i3GEO.janela.tempoMsg(e);} | 1625 | }catch(e){i3GEO.janela.tempoMsg(e);} |
| 1623 | }, | 1626 | }, |
| 1624 | /* | 1627 | /* |
| @@ -1639,7 +1642,7 @@ i3GEOF.tabela = { | @@ -1639,7 +1642,7 @@ i3GEOF.tabela = { | ||
| 1639 | listai = [], | 1642 | listai = [], |
| 1640 | listanomes = [], | 1643 | listanomes = [], |
| 1641 | nome, | 1644 | nome, |
| 1642 | - i, | 1645 | + i,temp, |
| 1643 | n = inputs.length; | 1646 | n = inputs.length; |
| 1644 | for (i=0;i<n; i++) | 1647 | for (i=0;i<n; i++) |
| 1645 | { | 1648 | { |
| @@ -1652,8 +1655,10 @@ i3GEOF.tabela = { | @@ -1652,8 +1655,10 @@ i3GEOF.tabela = { | ||
| 1652 | } | 1655 | } |
| 1653 | $i("i3GEOtabelanomesrelh").value=listanomes; | 1656 | $i("i3GEOtabelanomesrelh").value=listanomes; |
| 1654 | $i("i3GEOtabelaitensrelh").value=listai; | 1657 | $i("i3GEOtabelaitensrelh").value=listai; |
| 1658 | + temp = $i("i3GEOtabelarelatorio").action; | ||
| 1655 | $i("i3GEOtabelarelatorio").action += "?ext="+i3GEO.parametros.mapexten; | 1659 | $i("i3GEOtabelarelatorio").action += "?ext="+i3GEO.parametros.mapexten; |
| 1656 | $i("i3GEOtabelarelatorio").submit(); | 1660 | $i("i3GEOtabelarelatorio").submit(); |
| 1661 | + $i("i3GEOtabelarelatorio").action = temp; | ||
| 1657 | }catch(e){i3GEO.janela.tempoMsg(e);} | 1662 | }catch(e){i3GEO.janela.tempoMsg(e);} |
| 1658 | } | 1663 | } |
| 1659 | }; | 1664 | }; |