Browse Source

Início de relatório para etapa 3.

0.2
Guilherme Gondim 16 years ago
parent
commit
c0dd739e3a
  1. 18
      docs/relatorios/etapa3/Makefile
  2. 20
      docs/relatorios/etapa3/arquivos/casas.sql
  3. 46
      docs/relatorios/etapa3/arquivos/contatos.sql
  4. 36
      docs/relatorios/etapa3/arquivos/convenios.sql
  5. 41
      docs/relatorios/etapa3/arquivos/inventario.sql
  6. 52
      docs/relatorios/etapa3/arquivos/mesas.sql
  7. 37
      docs/relatorios/etapa3/arquivos/parlamentares.sql
  8. 12
      docs/relatorios/etapa3/arquivos/servicos.sql
  9. 24
      docs/relatorios/etapa3/cabecalho.tex
  10. 37
      docs/relatorios/etapa3/capa.tex
  11. 18
      docs/relatorios/etapa3/capitulos/capitulo1.tex
  12. 18
      docs/relatorios/etapa3/capitulos/introducao.tex
  13. 20
      docs/relatorios/etapa3/comandos.tex
  14. BIN
      docs/relatorios/etapa3/imagens/apps.png
  15. 460
      docs/relatorios/etapa3/imagens/cabecalho.pdf
  16. BIN
      docs/relatorios/etapa3/imagens/cadastro.png
  17. BIN
      docs/relatorios/etapa3/imagens/casas.png
  18. BIN
      docs/relatorios/etapa3/imagens/casosdeuso.png
  19. BIN
      docs/relatorios/etapa3/imagens/contatos.png
  20. BIN
      docs/relatorios/etapa3/imagens/convenios.png
  21. BIN
      docs/relatorios/etapa3/imagens/dashboard.png
  22. BIN
      docs/relatorios/etapa3/imagens/er.png
  23. BIN
      docs/relatorios/etapa3/imagens/inventario.png
  24. BIN
      docs/relatorios/etapa3/imagens/listagem.png
  25. BIN
      docs/relatorios/etapa3/imagens/mesas.png
  26. BIN
      docs/relatorios/etapa3/imagens/parlamentares.png
  27. BIN
      docs/relatorios/etapa3/imagens/servicos.png
  28. BIN
      docs/relatorios/etapa3/imagens/telalogin.png
  29. BIN
      docs/relatorios/etapa3/relatorio.pdf
  30. 65
      docs/relatorios/etapa3/relatorio.tex

18
docs/relatorios/etapa3/Makefile

@ -0,0 +1,18 @@
MAINNAME=relatorio
all:
mkdir -p build
cp *.tex build
cp -fR imagens build/
cp -fR capitulos build/
cp Makefile build/
make -C build build
build:
pdflatex ${MAINNAME}.tex
pdflatex ${MAINNAME}.tex
cp ${MAINNAME}.pdf ../
clean:
rm -fR build
rm -fR ${MAINNAME}.pdf

20
docs/relatorios/etapa3/arquivos/casas.sql

@ -0,0 +1,20 @@
BEGIN;
CREATE TABLE "casas_casalegislativa" (
"id" integer NOT NULL PRIMARY KEY,
"nome" varchar(60) NOT NULL,
"sigla" varchar(30) NOT NULL,
"tipo" varchar(2) NOT NULL,
"cnpj" varchar(18) NOT NULL,
"logradouro" varchar(100) NOT NULL,
"bairro" varchar(40) NOT NULL,
"cidade_id" integer NOT NULL,
"cep" varchar(9) NOT NULL,
"email" varchar(75) NOT NULL,
"pagina_web" varchar(200) NOT NULL,
"foto" varchar(100) NOT NULL,
"foto_largura" smallint NULL,
"foto_altura" smallint NULL,
"historico" text NOT NULL
)
;
COMMIT;

46
docs/relatorios/etapa3/arquivos/contatos.sql

@ -0,0 +1,46 @@
BEGIN;
CREATE TABLE "contatos_unidadefederativa" (
"codigo_ibge" integer unsigned NOT NULL PRIMARY KEY,
"nome" varchar(25) NOT NULL,
"sigla" varchar(2) NOT NULL,
"regiao" varchar(2) NOT NULL,
"populacao" integer unsigned NOT NULL
)
;
CREATE TABLE "contatos_telefone" (
"id" integer NOT NULL PRIMARY KEY,
"codigo_ddd" varchar(2) NOT NULL,
"numero" varchar(9) NOT NULL,
"tipo" varchar(1) NOT NULL,
"nota" varchar(70) NOT NULL,
"content_type_id" integer NOT NULL,
"object_id" integer unsigned NOT NULL,
UNIQUE ("codigo_ddd", "numero", "tipo")
)
;
CREATE TABLE "contatos_municipio" (
"codigo_ibge" integer unsigned NOT NULL PRIMARY KEY,
"codigo_mesorregiao" integer unsigned NOT NULL,
"codigo_microrregiao" integer unsigned NOT NULL,
"nome" varchar(50) NOT NULL,
"uf_id" integer NOT NULL REFERENCES "contatos_unidadefederativa"
("codigo_ibge"),
"is_capital" bool NOT NULL,
"populacao" integer unsigned NOT NULL,
"is_polo" bool NOT NULL,
"latitude" decimal NULL,
"longitude" decimal NULL
)
;
CREATE TABLE "contatos_contato" (
"id" integer NOT NULL PRIMARY KEY,
"nome" varchar(60) NOT NULL,
"nota" varchar(70) NOT NULL,
"email" varchar(75) NOT NULL,
"municipio_id" integer NULL REFERENCES "contatos_municipio"
("codigo_ibge"),
"content_type_id" integer NOT NULL,
"object_id" integer unsigned NOT NULL
)
;
COMMIT;

36
docs/relatorios/etapa3/arquivos/convenios.sql

@ -0,0 +1,36 @@
BEGIN;
CREATE TABLE "convenios_anexo" (
"id" integer NOT NULL PRIMARY KEY,
"convenio_id" integer NOT NULL,
"arquivo" varchar(100) NOT NULL,
"descricao" varchar(70) NOT NULL,
"data_pub" date NOT NULL
)
;
CREATE TABLE "convenios_convenio" (
"id" integer NOT NULL PRIMARY KEY,
"casa_legislativa_id" integer NOT NULL,
"num_convenio" integer unsigned NOT NULL,
"num_processo_sf" varchar(11) NOT NULL,
"data_adesao" date NOT NULL,
"data_retorno_assinatura" date NULL,
"data_termo_aceite" date NULL,
"data_pub_diario" date NULL,
"equipamentos_recebidos" varchar(1) NOT NULL
)
;
CREATE TABLE "convenios_equipamentoprevisto" (
"id" integer NOT NULL PRIMARY KEY,
"convenio_id" integer NOT NULL REFERENCES "convenios_convenio" ("id"),
"equipamento_id" integer NOT NULL,
"quantidade" smallint unsigned NOT NULL
)
;
CREATE TABLE "convenios_convenio_servicos" (
"id" integer NOT NULL PRIMARY KEY,
"convenio_id" integer NOT NULL REFERENCES "convenios_convenio" ("id"),
"servico_id" integer NOT NULL REFERENCES "servicos_servico" ("id"),
UNIQUE ("convenio_id", "servico_id")
)
;
COMMIT;

41
docs/relatorios/etapa3/arquivos/inventario.sql

@ -0,0 +1,41 @@
BEGIN;
CREATE TABLE "inventario_bem" (
"id" integer NOT NULL PRIMARY KEY,
"casa_legislativa_id" integer NOT NULL,
"equipamento_id" integer NOT NULL,
"fornecedor_id" integer NOT NULL,
"num_serie" varchar(50) NOT NULL UNIQUE,
"num_tombamento" varchar(50) NOT NULL UNIQUE
)
;
CREATE TABLE "inventario_fabricante" (
"id" integer NOT NULL PRIMARY KEY,
"nome" varchar(40) NOT NULL
)
;
CREATE TABLE "inventario_fornecedor" (
"id" integer NOT NULL PRIMARY KEY,
"nome" varchar(40) NOT NULL,
"email" varchar(75) NOT NULL,
"pagina_web" varchar(200) NOT NULL
)
;
CREATE TABLE "inventario_tipoequipamento" (
"id" integer NOT NULL PRIMARY KEY,
"tipo" varchar(40) NOT NULL
)
;
CREATE TABLE "inventario_equipamento" (
"id" integer NOT NULL PRIMARY KEY,
"fabricante_id" integer NOT NULL REFERENCES "inventario_fabricante" ("id"),
"modelo_id" integer NOT NULL,
UNIQUE ("fabricante_id", "modelo_id")
)
;
CREATE TABLE "inventario_modeloequipamento" (
"id" integer NOT NULL PRIMARY KEY,
"tipo_id" integer NOT NULL REFERENCES "inventario_tipoequipamento" ("id"),
"modelo" varchar(30) NOT NULL
)
;
COMMIT;

52
docs/relatorios/etapa3/arquivos/mesas.sql

@ -0,0 +1,52 @@
BEGIN;
CREATE TABLE "mesas_membromesadiretora" (
"id" integer NOT NULL PRIMARY KEY,
"parlamentar_id" integer NOT NULL,
"cargo_id" integer NOT NULL,
"mesa_diretora_id" integer NOT NULL
)
;
CREATE TABLE "mesas_cargo" (
"id" integer NOT NULL PRIMARY KEY,
"descricao" varchar(30) NOT NULL
)
;
CREATE TABLE "mesas_coligacao" (
"id" integer NOT NULL PRIMARY KEY,
"nome" varchar(50) NOT NULL,
"legislatura_id" integer NOT NULL,
"numero_votos" integer unsigned NULL
)
;
CREATE TABLE "mesas_legislatura" (
"id" integer NOT NULL PRIMARY KEY,
"numero" smallint unsigned NOT NULL,
"data_inicio" date NOT NULL,
"data_fim" date NOT NULL,
"data_eleicao" date NOT NULL
)
;
CREATE TABLE "mesas_sessaolegislativa" (
"id" integer NOT NULL PRIMARY KEY,
"numero" smallint unsigned NOT NULL UNIQUE,
"mesa_diretora_id" integer NOT NULL,
"legislatura_id" integer NOT NULL REFERENCES "mesas_legislatura" ("id"),
"tipo" varchar(1) NOT NULL,
"data_inicio" date NOT NULL,
"data_fim" date NOT NULL,
"data_inicio_intervalo" date NULL,
"data_fim_intervalo" date NULL
)
;
CREATE TABLE "mesas_mesadiretora" (
"id" integer NOT NULL PRIMARY KEY,
"casa_legislativa_id" integer NOT NULL
)
;
CREATE TABLE "mesas_composicaocoligacao" (
"id" integer NOT NULL PRIMARY KEY,
"coligacao_id" integer NOT NULL REFERENCES "mesas_coligacao" ("id"),
"partido_id" integer NOT NULL
)
;
COMMIT;

37
docs/relatorios/etapa3/arquivos/parlamentares.sql

@ -0,0 +1,37 @@
BEGIN;
CREATE TABLE "parlamentares_partido" (
"id" integer NOT NULL PRIMARY KEY,
"nome" varchar(50) NOT NULL,
"sigla" varchar(10) NOT NULL
)
;
CREATE TABLE "parlamentares_parlamentar" (
"id" integer NOT NULL PRIMARY KEY,
"nome_completo" varchar(60) NOT NULL,
"nome_parlamentar" varchar(35) NOT NULL,
"foto" varchar(100) NOT NULL,
"foto_largura" smallint NULL,
"foto_altura" smallint NULL,
"sexo" varchar(1) NOT NULL,
"data_nascimento" date NULL,
"logradouro" varchar(100) NOT NULL,
"bairro" varchar(40) NOT NULL,
"cidade_id" integer NOT NULL,
"cep" varchar(9) NOT NULL,
"pagina_web" varchar(200) NOT NULL,
"email" varchar(75) NOT NULL
)
;
CREATE TABLE "parlamentares_mandato" (
"id" integer NOT NULL PRIMARY KEY,
"parlamentar_id" integer NOT NULL REFERENCES
"parlamentares_parlamentar" ("id"),
"legislatura_id" integer NOT NULL,
"partido_id" integer NOT NULL REFERENCES "parlamentares_partido" ("id"),
"inicio_mandato" date NOT NULL,
"fim_mandato" date NOT NULL,
"is_afastado" bool NOT NULL,
"suplencia" varchar(1) NOT NULL
)
;
COMMIT;

12
docs/relatorios/etapa3/arquivos/servicos.sql

@ -0,0 +1,12 @@
BEGIN;
CREATE TABLE "servicos_servico" (
"id" integer NOT NULL PRIMARY KEY,
"tipo" varchar(50) NOT NULL,
"descricao" text NOT NULL,
"data_inicio" date NULL,
"data_fim" date NULL,
"situacao" varchar(1) NOT NULL,
"avaliacao" smallint unsigned NULL
)
;
COMMIT;

24
docs/relatorios/etapa3/cabecalho.tex

@ -0,0 +1,24 @@
% $Id$
% ---------------------------------------------------------------------------
%
% This is part of the SIGI.
% Copyright (C) 2008 Interlegis
% See the file relatorio.tex for copying conditions.
%
\lhead {
\setlength{\unitlength}{5mm}
\begin{picture}(0,0)
\includegraphics[scale=0.65]{imagens/cabecalho.pdf}
\end{picture}
}
\chead{}
\rhead{}
\renewcommand{\headrulewidth}{0pt}
%
% Local variables:
% mode: flyspell
% TeX-master: "relatorio.tex"
% End:
%

37
docs/relatorios/etapa3/capa.tex

@ -0,0 +1,37 @@
% $Id$
% ---------------------------------------------------------------------------
%
% This is part of the SIGI.
% Copyright (C) 2008 Interlegis
% See the file relatorio.tex for copying conditions.
%
\textsf{\vspace{6cm}}
\begin{center}
\noindent
\large{
\textbf{\titulo}
} \\
\Large{
\textbf{\subtitulo}
} \\
\large{
\textbf{APO-CASA}
}
\vspace{9cm}
\large{
\textbf{\autor}\\
\textsf{Contrato N$^{\circ}$: \numcontrato}\\
}
\end{center}
\cfoot{}
%
% Local variables:
% mode: flyspell
% TeX-master: "relatorio.tex"
% End:
%

18
docs/relatorios/etapa3/capitulos/capitulo1.tex

@ -0,0 +1,18 @@
% $Id$
% ---------------------------------------------------------------------------
%
% This is part of the SIGI.
% Copyright (C) 2008 Interlegis
% See the file relatorio.tex for copying conditions.
%
\section{Título}
pass
%
% Local variables:
% mode: flyspell
% TeX-master: "relatorio.tex"
% End:
%

18
docs/relatorios/etapa3/capitulos/introducao.tex

@ -0,0 +1,18 @@
% $Id$
% ---------------------------------------------------------------------------
%
% This is part of the SIGI.
% Copyright (C) 2008 Interlegis
% See the file relatorio.tex for copying conditions.
%
\section{Introdução}
pass
%
% Local variables:
% mode: flyspell
% TeX-master: "relatorio.tex"
% End:
%

20
docs/relatorios/etapa3/comandos.tex

@ -0,0 +1,20 @@
% $Id$
% ---------------------------------------------------------------------------
%
% This is part of the SIGI.
% Copyright (C) 2008 Interlegis
% See the file relatorio.tex for copying conditions.
%
\newcommand{\titulo}{Produto III}
\newcommand{\subtitulo}{Sistema de Informações Gerenciais do Interlegis}
\newcommand{\autor}{Guilherme Mesquita Gondim}
\newcommand{\numcontrato}{2008/000471} % Número do contrato caso seja
% consultor.
%
% Local variables:
% mode: flyspell
% TeX-master: "relatorio.tex"
% End:
%

BIN
docs/relatorios/etapa3/imagens/apps.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

460
docs/relatorios/etapa3/imagens/cabecalho.pdf

File diff suppressed because one or more lines are too long

BIN
docs/relatorios/etapa3/imagens/cadastro.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
docs/relatorios/etapa3/imagens/casas.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
docs/relatorios/etapa3/imagens/casosdeuso.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
docs/relatorios/etapa3/imagens/contatos.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
docs/relatorios/etapa3/imagens/convenios.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
docs/relatorios/etapa3/imagens/dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
docs/relatorios/etapa3/imagens/er.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
docs/relatorios/etapa3/imagens/inventario.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
docs/relatorios/etapa3/imagens/listagem.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/relatorios/etapa3/imagens/mesas.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
docs/relatorios/etapa3/imagens/parlamentares.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
docs/relatorios/etapa3/imagens/servicos.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
docs/relatorios/etapa3/imagens/telalogin.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
docs/relatorios/etapa3/relatorio.pdf

Binary file not shown.

65
docs/relatorios/etapa3/relatorio.tex

@ -0,0 +1,65 @@
% $Id$
% ---------------------------------------------------------------------------
%
% Copyright (c) 2008 Interlegis
%
% Permission is granted to copy, distribute and/or modify this
% document under the terms of the GNU Free Documentation License,
% Version 1.2 or any later version published by the Free Software
% Foundation; with no Invariant Sections, no Front-Cover Texts, and no
% Back-Cover Texts. A copy of the license is included in the section
% entitled "GNU Free Documentation License". If not, see
% <http://www.gnu.org/licenses/>.
%
\documentclass[a4paper,12pt]{article}
\textheight 22.5cm
\usepackage[brazil]{babel} % suporte ao portugues brasil
\usepackage[utf8]{inputenc} % Codificacao dos caracteres (use a
% codificacao latin1 caso seu
% sistema/editor nao suporte utf8).
\usepackage[T1]{fontenc}
\usepackage{indentfirst} % indenta o primeiro paragrafo
\usepackage{graphicx} % uso para imagens
\usepackage{dsfont} % fonte
\usepackage{fancyhdr} % permite alterar o cabecalho
\pagestyle{fancy} % configura o estilo padrao
\usepackage{verbatim}
\input{comandos} % novos comandos
\usepackage[pdftex,% % formatacao no PDF
pdfauthor={\autor},%
pdftitle={\titulo \ - \subtitulo},%
]{hyperref}
\hypersetup{backref=true,pdfpagemode=UseOutlines,colorlinks=true,
breaklinks=true,hyperindex,linkcolor=blue,anchorcolor=black,
citecolor=blue,filecolor=magenta,menucolor=red,pagecolor=red,
urlcolor=cyan,bookmarks=true,bookmarksopen=true,pdfpagelayout=SinglePage,
pdfpagetransition=Dissolve}
\begin{document}
\input{cabecalho}
\input{capa}
% configura o rodape do conteudo pre-textual para numeros romanos
\clearpage
\cfoot{\thepage}
\setcounter{page}{1}
\pagenumbering{Roman}
\tableofcontents
\listoffigures
% configura o rodape das paginas de conteudo para numeros convencionais
\clearpage
\setcounter{page}{1}
\pagenumbering{arabic}
% conteudo
\include{capitulos/introducao}
\include{capitulos/capitulo1}
\end{document}
Loading…
Cancel
Save