From b8c231da3761a573dc69a1b6b8ebf7135b1528ca Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 3 Oct 2012 14:23:56 +0000 Subject: [PATCH] --- admin/admin.db | Bin 139264 -> 0 bytes admin/sql/metaestat.sql | 31 ++++++++++++++++--------------- documentacao/diagramas/metaestat.erm | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------- ferramentas/metaestat/index.js | 36 +++++++++++++++++++++++++++++++++++- ferramentas/metaestat/upload.html | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 186 insertions(+), 42 deletions(-) create mode 100644 ferramentas/metaestat/upload.html diff --git a/admin/admin.db b/admin/admin.db index 4497a79..ffed226 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/admin/sql/metaestat.sql b/admin/sql/metaestat.sql index 239f710..7199c72 100644 --- a/admin/sql/metaestat.sql +++ b/admin/sql/metaestat.sql @@ -20,7 +20,8 @@ drop table i3geoestat_variavel; /* create tables */ --- lista controlada dos parâmetros de conexão com o banco de dados onde residem dados +-- lista controlada dos parâmetros de conexão com o banco de dados onde residem dados +-- código 0 indica que será utilizada a conexão padrão create table i3geoestat_conexao ( codigo_estat_conexao integer not null unique primary key autoincrement, @@ -86,15 +87,6 @@ create table i3geoestat_tipo_periodo ); --- tabela com o nome e descrição de uma variável variável -create table i3geoestat_variavel -( - codigo_variavel integer not null unique primary key autoincrement, - nome text, - descricao text -); - - create table i3geoestat_unidade_medida ( codigo_unidade_medida integer not null unique primary key autoincrement, @@ -107,6 +99,15 @@ create table i3geoestat_unidade_medida ); +-- tabela com o nome e descrição de uma variável variável +create table i3geoestat_variavel +( + codigo_variavel integer not null unique primary key autoincrement, + nome text, + descricao text +); + + -- descreve as colunas que contém valores de algum tipo de medida, por exemplo população residente create table i3geoestat_medida_variavel ( @@ -128,16 +129,16 @@ create table i3geoestat_medida_variavel filtro text, -- titulo da medida nomemedida text, - foreign key (codigo_tipo_regiao) - references i3geoestat_tipo_regiao (codigo_tipo_regiao), foreign key (codigo_tipo_periodo) references i3geoestat_tipo_periodo (codigo_tipo_periodo), - foreign key (codigo_variavel) - references i3geoestat_variavel (codigo_variavel), foreign key (codigo_estat_conexao) references i3geoestat_conexao (codigo_estat_conexao), foreign key (codigo_unidade_medida) - references i3geoestat_unidade_medida (codigo_unidade_medida) + references i3geoestat_unidade_medida (codigo_unidade_medida), + foreign key (codigo_tipo_regiao) + references i3geoestat_tipo_regiao (codigo_tipo_regiao), + foreign key (codigo_variavel) + references i3geoestat_variavel (codigo_variavel) ); diff --git a/documentacao/diagramas/metaestat.erm b/documentacao/diagramas/metaestat.erm index 46d623c..c47015a 100644 --- a/documentacao/diagramas/metaestat.erm +++ b/documentacao/diagramas/metaestat.erm @@ -11,7 +11,7 @@ 0 1.0 - 219 + 159 -89 255 @@ -110,7 +110,7 @@ false 2012-07-17 15:03:53 - 2012-09-25 10:02:07 + 2012-10-03 10:48:05 Project Name @@ -1068,7 +1068,7 @@ - 39 + 40 1 @@ -1386,7 +1386,7 @@ - 40 + 41 9 @@ -1530,7 +1530,7 @@ - 38 + 36 12 @@ -2260,7 +2260,7 @@ 3 - 12 + 14 8 1..n 1 @@ -2277,7 +2277,7 @@ 4 - 4 + 2 8 1..n 1 @@ -2294,7 +2294,7 @@ 5 - 14 + 12 8 1..n 1 @@ -2311,7 +2311,7 @@ 6 - 2 + 4 8 1..n 1 @@ -2369,7 +2369,7 @@ 32 0 - 6 + 4 @@ -2435,7 +2435,7 @@ 34 8 - 4 + 6 @@ -2468,7 +2468,7 @@ 35 55 - 3 + 5 @@ -2501,7 +2501,7 @@ 36 71 - 5 + 3 @@ -2837,7 +2837,7 @@ - 41 + 39 45 @@ -3144,7 +3144,7 @@ - 36 + 38 51 @@ -4131,7 +4131,7 @@ 72 - dbspo + geosaude 73 @@ -4390,7 +4390,7 @@ 55 - 1 + 2 56 @@ -4406,11 +4406,11 @@ 59 - public + i3geo_mestaestat 60 - tb_ibge + municipios 61 @@ -4418,11 +4418,11 @@ 62 - + 2010 63 - ibge + co_municipio 64 @@ -4444,7 +4444,7 @@ 56 - Estados + Estado 57 @@ -4456,11 +4456,11 @@ 59 - public + i3geo_mestaestat 60 - tb_ibge_estados + uf 61 @@ -4468,11 +4468,11 @@ 62 - + 2010 63 - co_ibge_uf + co_uf 64 @@ -4487,6 +4487,56 @@ the_geom + + + 55 + 1 + + + 56 + Bairro + + + 57 + Limites de bairros + + + 58 + 1 + + + 59 + i3geo_mestaestat + + + 60 + bairros + + + 61 + the_geom + + + 62 + 2010 + + + 63 + co_bairro + + + 64 + no_bairro + + + 65 + 4326 + + + 66 + the_geom + + 0 diff --git a/ferramentas/metaestat/index.js b/ferramentas/metaestat/index.js index 35a10cd..8f98a00 100644 --- a/ferramentas/metaestat/index.js +++ b/ferramentas/metaestat/index.js @@ -644,7 +644,8 @@ i3GEOF.metaestat = { t0: function(){ var ins = "

" + $trad(2,i3GEOF.metaestat.dicionario1) + "

" + - " "; + " " + + " "; i3GEO.util.proximoAnterior("","i3GEOF.metaestat.editor.t1()",ins,"i3GEOF.metaestat.editor.t0","i3GEOFmetaestatEditor"); new YAHOO.widget.Button( "i3GEOFmetaestatEditorBotao1", @@ -655,6 +656,39 @@ i3GEOF.metaestat = { "i3GEOFmetaestatEditorBotao2", {onclick:{fn: function(){alert("Oi");}}} ); + new YAHOO.widget.Button( + "i3GEOFmetaestatEditorBotao3", + {onclick:{fn: function(){ + var cabecalho,minimiza,janela; + if (!$i("i3geoCartoUpload")){ + cabecalho = function(){ + }; + minimiza = function(){ + i3GEO.janela.minimiza("i3geoCartoUpload"); + }; + janela = i3GEO.janela.cria( + "500px", + "400px", + i3GEO.configura.locaplic+"/ferramentas/metaestat/upload.html", + "", + "", + "Upload", + "i3geoCartoUpload", + false, + "hd", + cabecalho, + minimiza + ); + janela = janela[0]; + YAHOO.i3GEO.janela.manager.register(janela); + janela.render(); + } + else{ + janela = YAHOO.i3GEO.janela.manager.find("i3geoCartoUpload"); + } + janela.show(); + }}} + ); }, /** * Edicao da variavel diff --git a/ferramentas/metaestat/upload.html b/ferramentas/metaestat/upload.html new file mode 100644 index 0000000..7198d50 --- /dev/null +++ b/ferramentas/metaestat/upload.html @@ -0,0 +1,59 @@ + + + + +Upload de dados + + + + + + + + + +

+
+
+
+
+

+ +

+ +
+
+
+ +
+ + \ No newline at end of file -- libgit2 0.21.2