From d983ffd8c9a564839f4273116f528bdb5862c010 Mon Sep 17 00:00:00 2001 From: kleryton.diego Date: Tue, 27 Mar 2018 14:44:19 -0300 Subject: [PATCH] GSAN CONSENSO --- atualizacao-cadastral-master/.classpath | 10 ++++++++++ atualizacao-cadastral-master/.gitignore | 3 +++ atualizacao-cadastral-master/.project | 33 +++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/AndroidManifest.xml | 232 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/README.md | 4 ++++ atualizacao-cadastral-master/assets/theme.xml | 37 +++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/build.xml | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/libs/android-support-v4.jar | Bin 0 -> 337562 bytes atualizacao-cadastral-master/proguard-project.txt | 20 ++++++++++++++++++++ atualizacao-cadastral-master/project.properties | 14 ++++++++++++++ atualizacao-cadastral-master/res/anim/slide_in_left.xml | 4 ++++ atualizacao-cadastral-master/res/anim/slide_in_right.xml | 4 ++++ atualizacao-cadastral-master/res/anim/slide_out_left.xml | 4 ++++ atualizacao-cadastral-master/res/anim/slide_out_right.xml | 4 ++++ atualizacao-cadastral-master/res/drawable-hdpi/camera.png | Bin 0 -> 11412 bytes atualizacao-cadastral-master/res/drawable-hdpi/exclude.png | Bin 0 -> 6202 bytes atualizacao-cadastral-master/res/drawable-hdpi/ic_action_search.png | Bin 0 -> 3120 bytes atualizacao-cadastral-master/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 4996 bytes atualizacao-cadastral-master/res/drawable-hdpi/line.png | Bin 0 -> 2989 bytes atualizacao-cadastral-master/res/drawable-hdpi/warning.png | Bin 0 -> 3185 bytes atualizacao-cadastral-master/res/drawable-ldpi/camera.png | Bin 0 -> 11412 bytes atualizacao-cadastral-master/res/drawable-ldpi/exclude.png | Bin 0 -> 6202 bytes atualizacao-cadastral-master/res/drawable-ldpi/line.png | Bin 0 -> 2989 bytes atualizacao-cadastral-master/res/drawable-ldpi/warning.png | Bin 0 -> 3185 bytes atualizacao-cadastral-master/res/drawable-mdpi/backgroundcabecalho.png | Bin 0 -> 3797 bytes atualizacao-cadastral-master/res/drawable-mdpi/backgroundcompleto.jpg | Bin 0 -> 182974 bytes atualizacao-cadastral-master/res/drawable-mdpi/bgproximo.jpg | Bin 0 -> 11031 bytes atualizacao-cadastral-master/res/drawable-mdpi/botaoentrar.png | Bin 0 -> 4027 bytes atualizacao-cadastral-master/res/drawable-mdpi/btlupa.jpg | Bin 0 -> 10256 bytes atualizacao-cadastral-master/res/drawable-mdpi/btnadicionar.png | Bin 0 -> 3830 bytes atualizacao-cadastral-master/res/drawable-mdpi/btnanterior.png | Bin 0 -> 3907 bytes atualizacao-cadastral-master/res/drawable-mdpi/btnproximo.png | Bin 0 -> 3916 bytes atualizacao-cadastral-master/res/drawable-mdpi/btnremover.png | Bin 0 -> 3767 bytes atualizacao-cadastral-master/res/drawable-mdpi/camera.png | Bin 0 -> 11412 bytes atualizacao-cadastral-master/res/drawable-mdpi/chart_bar.png | Bin 0 -> 916 bytes atualizacao-cadastral-master/res/drawable-mdpi/erro.png | Bin 0 -> 4033 bytes atualizacao-cadastral-master/res/drawable-mdpi/exclude.png | Bin 0 -> 6202 bytes atualizacao-cadastral-master/res/drawable-mdpi/ic_action_search.png | Bin 0 -> 3030 bytes atualizacao-cadastral-master/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 3065 bytes atualizacao-cadastral-master/res/drawable-mdpi/icon_back.png.png | Bin 0 -> 478 bytes atualizacao-cadastral-master/res/drawable-mdpi/icon_salvar.png | Bin 0 -> 577 bytes atualizacao-cadastral-master/res/drawable-mdpi/icone.PNG | Bin 0 -> 5551 bytes atualizacao-cadastral-master/res/drawable-mdpi/line.png | Bin 0 -> 2989 bytes atualizacao-cadastral-master/res/drawable-mdpi/logo.png | Bin 0 -> 22713 bytes atualizacao-cadastral-master/res/drawable-mdpi/ok.png | Bin 0 -> 4147 bytes atualizacao-cadastral-master/res/drawable-mdpi/quadra_icon.png | Bin 0 -> 1038 bytes atualizacao-cadastral-master/res/drawable-mdpi/tab.png | Bin 0 -> 70 bytes atualizacao-cadastral-master/res/drawable-mdpi/tegroteiro.png | Bin 0 -> 3827 bytes atualizacao-cadastral-master/res/drawable-mdpi/transfer.png | Bin 0 -> 3956 bytes atualizacao-cadastral-master/res/drawable-mdpi/update.png | Bin 0 -> 1704 bytes atualizacao-cadastral-master/res/drawable-mdpi/warning.png | Bin 0 -> 3185 bytes atualizacao-cadastral-master/res/drawable-xhdpi/ic_action_search.png | Bin 0 -> 3199 bytes atualizacao-cadastral-master/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 6679 bytes atualizacao-cadastral-master/res/drawable/borders.xml | 10 ++++++++++ atualizacao-cadastral-master/res/drawable/botao_bg_selected.xml | 16 ++++++++++++++++ atualizacao-cadastral-master/res/drawable/botao_bg_selector.xml | 18 ++++++++++++++++++ atualizacao-cadastral-master/res/drawable/botao_bg_selector_login.xml | 18 ++++++++++++++++++ atualizacao-cadastral-master/res/drawable/botao_bg_unselected.xml | 16 ++++++++++++++++ atualizacao-cadastral-master/res/drawable/botao_bg_unselected_login.xml | 12 ++++++++++++ atualizacao-cadastral-master/res/drawable/bt_azul.xml | 15 +++++++++++++++ atualizacao-cadastral-master/res/drawable/bt_branco.xml | 16 ++++++++++++++++ atualizacao-cadastral-master/res/drawable/bt_preto.xml | 13 +++++++++++++ atualizacao-cadastral-master/res/drawable/bt_titulo.xml | 13 +++++++++++++ atualizacao-cadastral-master/res/drawable/cabecalho.xml | 11 +++++++++++ atualizacao-cadastral-master/res/drawable/camera.png | Bin 0 -> 11412 bytes atualizacao-cadastral-master/res/drawable/fundo_bg_rodape.xml | 14 ++++++++++++++ atualizacao-cadastral-master/res/drawable/fundoazulclaro_bg.xml | 11 +++++++++++ atualizacao-cadastral-master/res/drawable/fundobranco_bg.xml | 17 +++++++++++++++++ atualizacao-cadastral-master/res/drawable/fundocinza_bg.xml | 10 ++++++++++ atualizacao-cadastral-master/res/drawable/fundopreto_bg.xml | 10 ++++++++++ atualizacao-cadastral-master/res/drawable/icon_info.png | Bin 0 -> 1838 bytes atualizacao-cadastral-master/res/drawable/imovel_bg.xml | 11 +++++++++++ atualizacao-cadastral-master/res/drawable/imovelcondominio_bg.xml | 17 +++++++++++++++++ atualizacao-cadastral-master/res/drawable/lista_bg.xml | 13 +++++++++++++ atualizacao-cadastral-master/res/drawable/menu_bg_selected.xml | 9 +++++++++ atualizacao-cadastral-master/res/drawable/menu_bg_selector.xml | 18 ++++++++++++++++++ atualizacao-cadastral-master/res/drawable/menu_bg_unselected.xml | 9 +++++++++ atualizacao-cadastral-master/res/drawable/rodape_bg.xml | 10 ++++++++++ atualizacao-cadastral-master/res/drawable/tab_anormalidade_bg.xml | 15 +++++++++++++++ atualizacao-cadastral-master/res/drawable/tab_bg_cell.xml | 11 +++++++++++ atualizacao-cadastral-master/res/drawable/tab_bg_cell_options.xml | 11 +++++++++++ atualizacao-cadastral-master/res/drawable/tab_bg_selected.xml | 9 +++++++++ atualizacao-cadastral-master/res/drawable/tab_bg_selector.xml | 18 ++++++++++++++++++ atualizacao-cadastral-master/res/drawable/tab_bg_unselected.xml | 10 ++++++++++ atualizacao-cadastral-master/res/drawable/tab_text_selector.xml | 19 +++++++++++++++++++ atualizacao-cadastral-master/res/drawable/titulo_bg.xml | 13 +++++++++++++ atualizacao-cadastral-master/res/drawable/vermelho_bg.xml | 19 +++++++++++++++++++ atualizacao-cadastral-master/res/layout/arquivo_adapter.xml | 5 +++++ atualizacao-cadastral-master/res/layout/arquivo_dividido_selecionar.xml | 27 +++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/arquivo_selecionar.xml | 27 +++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/categoria_imovel_inserir.xml | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/cliente_aba.xml | 209 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/download_arquivo_activity.xml | 17 +++++++++++++++++ atualizacao-cadastral-master/res/layout/endereco_aba.xml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/fotos_aba.xml | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/imovel_aba.xml | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/ligacao_aba.xml | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/lista_relatorio_cadastrador_adapter.xml | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/lista_relatorio_ocorrencia_adapter.xml | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/localidade_aba.xml | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/logradouro_inserir.xml | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/relatorio_activity.xml | 190 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/relatorio_por_cadastrador.xml | 33 +++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/relatorio_por_ocorrencia_cadastro.xml | 33 +++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/roteiro.xml | 41 +++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/roteiro_adapter.xml | 37 +++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/route_finalization_activity.xml | 22 ++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/tabs_activity.xml | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/tabs_bg.xml | 14 ++++++++++++++ atualizacao-cadastral-master/res/layout/tela_login.xml | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/layout/versao_errada.xml | 6 ++++++ atualizacao-cadastral-master/res/menu/activity_aba.xml | 6 ++++++ atualizacao-cadastral-master/res/menu/endereco_aba.xml | 9 +++++++++ atualizacao-cadastral-master/res/menu/fotos_aba.xml | 9 +++++++++ atualizacao-cadastral-master/res/menu/ligacao_aba.xml | 9 +++++++++ atualizacao-cadastral-master/res/menu/logradouro_inserir.xml | 9 +++++++++ atualizacao-cadastral-master/res/menu/menu.xml | 23 +++++++++++++++++++++++ atualizacao-cadastral-master/res/menu/menu_sobre.xml | 10 ++++++++++ atualizacao-cadastral-master/res/values-large/dimens.xml | 7 +++++++ atualizacao-cadastral-master/res/values-v11/styles.xml | 5 +++++ atualizacao-cadastral-master/res/values-v14/styles.xml | 5 +++++ atualizacao-cadastral-master/res/values/colors.xml | 6 ++++++ atualizacao-cadastral-master/res/values/dimens.xml | 7 +++++++ atualizacao-cadastral-master/res/values/strings.xml | 261 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/res/values/styles.xml | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/adapter/ArquivoAdapter.java | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatorioCadastradorAdapter.java | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatoriosOcorrenciaCadastroAdapter.java | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/adapter/RoteiroAdapter.java | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/conexao/ComunicacaoWebServer.java | 653 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/conexao/ConexaoWebServer.java | 737 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/conexao/DBConnection.java | 149 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/conexao/PhotoConnection.java | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorBase.java | 403 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorSistemaParametros.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorUtil.java | 2250 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorBase.java | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorSistemaParametros.java | 11 +++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorUtil.java | 325 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Bairro.java | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/CadastroOcorrencia.java | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Categoria.java | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Cep.java | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteAtlzCadastral.java | 487 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteFoneAtlzCad.java | 277 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteTipo.java | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/EnderecoReferencia.java | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/EntidadeBase.java | 29 +++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/FoneTipo.java | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/FonteAbastecimento.java | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Foto.java | 221 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroCapacidade.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroInstHistAtlzCad.java | 329 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroLocalInst.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroMarca.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroProtecao.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelAtlzCadastral.java | 1021 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelOcorrencia.java | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelPerfil.java | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelSubCategAtlzCad.java | 285 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoAguaSituacao.java | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoEsgotoSituacao.java | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Logradouro.java | 342 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroBairro.java | 183 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroCep.java | 216 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTipo.java | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTitulo.java | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/MedicaoTipo.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Municipio.java | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/OrgaoExpedidorRg.java | 141 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoCalcada.java | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoRua.java | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/PessoaSexo.java | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Quadra.java | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/Roteiro.java | 178 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/SetorComercial.java | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/SistemaParametros.java | 403 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/SubCategoria.java | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/UnidadeFederacao.java | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/ClienteFoneHelper.java | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioOcorrenciaCadastro.java | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioPorCadastrador.java | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/exception/ControladorException.java | 17 +++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/exception/FachadaException.java | 22 ++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/exception/RepositorioException.java | 22 ++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/fachada/Fachada.java | 786 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/fachada/FachadaWebServer.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/ApkActivity.java | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/ArquivoFinalizadoActivity.java | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseActivity.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseTabsActivity.java | 36 ++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/CategoriaImovelInserirActivity.java | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/ClienteAbaActivity.java | 1004 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadApkActivity.java | 327 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadArquivoActivity.java | 236 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/EnderecoAbaActivity.java | 656 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/FinalizarRoteiroActivity.java | 744 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/FotosAbaActivity.java | 606 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/ImovelAbaActivity.java | 536 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/LigacaoAbaActivity.java | 361 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/LocalidadeAbaActivity.java | 310 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/LoginActivity.java | 439 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/LogradouroInserirActivity.java | 755 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioActivity.java | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorCadastradorActivity.java | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorOcorrenciaCadastroActivity.java | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/RoteiroActivity.java | 1057 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoActivity.java | 218 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoDivididoActivity.java | 273 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/TabsActivity.java | 973 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/gui/VersaoArquivoErradaActivity.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/IRepositorioBase.java | 152 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBairro.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBase.java | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCadastroOcorrencia.java | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCategoria.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCep.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteAtlzCadastral.java | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteFoneAtlzCad.java | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteTipo.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioEnderecoReferencia.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoneTipo.java | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFonteAbastecimento.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoto.java | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroCapacidade.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroInstHistAtlzCad.java | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroLocalInst.java | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroMarca.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroProtecao.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelAtlzCadastral.java | 838 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelOcorrencia.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelPerfil.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelSubCategAtlzCad.java | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoAguaSituacao.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoEsgotoSituacao.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouro.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroBairro.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroCep.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTipo.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTitulo.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMedicaoTipo.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMunicipio.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioOrgaoExpedidorRg.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoCalcada.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoRua.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPessoaSexo.java | 173 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioQuadra.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSetorComercial.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSistemaParametros.java | 253 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSubCategoria.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioUnidadeFederacao.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/CarregarArquivoDividido.java | 386 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/Compress.java | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/ConstantesSistema.java | 357 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/Cryptograph.java | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/DBLoader.java | 272 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/DBScript.java | 342 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/ExportaBancoDados.java | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/GZip.java | 300 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/Mascara.java | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/SQLiteHelper.java | 37 +++++++++++++++++++++++++++++++++++++ atualizacao-cadastral-master/src/com/br/gsanac/util/Util.java | 1667 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_dim_fatos_amarrecadacao.kjb | 472 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_dim_fatos_amfaturamento.kjb | 759 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_dimen_geografica.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_dimen_solicitacao.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_fato_cobranca_acao.kjb | 436 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_fato_coleta_esgoto.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_fato_consumo_agua.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_fato_resumo_faturamento.kjb | 549 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_job_dimen_sem_loca.kjb | 2391 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_arrecadacao.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_hidr_instalados.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_hidr_nao_instalados.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_ind_faturamento.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_leitura_anormalidade.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_ligacoes.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_parcelamento.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_pendencia.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_resumo_registro_atendimento.kjb | 478 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_cobranca_acao.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_coleta.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_consumo_agua.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_faturamento.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_resumo_arrecadacao.kjb | 479 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_resumo_hidr_instalados.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_resumo_leitura_anormalidade.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_resumo_ligacoes.kjb | 436 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_resumo_parcelamento.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/kjb_sg_resumo_registro_atendimento.kjb | 437 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/krt_dimen_faturamento_situacao.ktr | 829 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_arrecadacao_forma.ktr | 885 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_arrecadador.ktr | 1029 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_categoria_subcategoria.ktr | 729 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cliente_tipo.ktr | 871 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao.ktr | 1330 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_efeito.ktr | 754 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_situacao.ktr | 730 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_criterio.ktr | 1138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_debito_situacao.ktr | 706 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_grupo.ktr | 754 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_cobranca_situacao.ktr | 826 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_credito_origem_tipo.ktr | 849 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_debito_lancamento_item.ktr | 872 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_devolucao_situacao.ktr | 785 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_documento_tipo.ktr | 947 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_empresa.ktr | 682 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_epoca_pagamento.ktr | 709 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_esfera_poder_perfil.ktr | 729 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_faixa_valor_pendente.ktr | 520 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_faturamento_grupo.ktr | 873 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_financiamento_tipo.ktr | 778 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_geografica.ktr | 834 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_hidr_armazenagem_macro.ktr | 782 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_hidr_capacidade_diametro.ktr | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_hidr_marca_tipo_classe.ktr | 797 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_hidro_situacao_baixa.ktr | 750 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_imposto_tipo.ktr | 717 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_indicador.ktr | 574 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_leitura_anormalidade.ktr | 730 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_leitura_situacao.ktr | 682 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_localizacao.ktr | 1843 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_medicao_tipo.ktr | 682 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_motivo_encerramento.ktr | 757 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_motivo_nao_entrega_documento.ktr | 730 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_pagamento_situacao.ktr | 761 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_percentual_coleta.ktr | 620 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_percentual_esgoto.ktr | 620 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_recebida_mes.ktr | 538 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_servico_tipo_perfil.ktr | 1017 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_situacao_agua.ktr | 1423 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_situacao_esgoto.ktr | 1171 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_solicitacao.ktr | 954 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_tempo.ktr | 3026 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_tipo_consumo.ktr | 706 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_unidade_organizacional.ktr | 701 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_dimen_usuario.ktr | 673 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_coleta_esgoto.ktr | 1880 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_consumo_agua.ktr | 1357 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_faturamento.ktr | 1987 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_hidrometro_instalacao.ktr | 1381 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_hidrometro_nao_instalados.ktr | 981 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_ind_faturamento_a.ktr | 2451 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_leitura_anormalidade.ktr | 1501 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_parcelamento.ktr | 1679 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_resumo_arrecadacao.ktr | 2324 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_resumo_cobranca_acao_eventual.ktr | 2725 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_resumo_ligacoes_economia.ktr | 1570 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_fato_resumo_registro_atendimento.ktr | 2027 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/ktr_resumo_pendencia.ktr | 1469 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_anomes_ind_fatiramento.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_dmgr.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_dmlo.ktr | 424 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_dmsol.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_rear.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_reca.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_rece.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_refa.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_rehi.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_reih.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_rele.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_relt.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_repa.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_rera.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/seq_max_rpen.ktr | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_arrecadacao.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_cobranca_acao.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_coleta.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_consumo_agua.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_faturamento.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_hidrometro_instalacao.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_leitura_anormalidade.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_localizacao_lig.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_parcelamento.ktr | 1991 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/sg_registro_atendimento.ktr | 1969 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PDI/stage_paghist.ktr | 998 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PSW/cagepa_acao_cobranca.xml | 248 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/PSW/cagepa_resumosgerenciais.xml | 2662 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gerencial_pentaho-master/README.md | 2 ++ gsanas-master/.gitignore | 3 +++ gsanas-master/AndroidManifest.xml | 285 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/README.md | 2 ++ gsanas-master/res/drawable-hdpi/add.png | Bin 0 -> 5179 bytes gsanas-master/res/drawable-hdpi/addresstitle.png | Bin 0 -> 3442 bytes gsanas-master/res/drawable-hdpi/afterprograming.png | Bin 0 -> 5888 bytes gsanas-master/res/drawable-hdpi/bar.png | Bin 0 -> 3012 bytes gsanas-master/res/drawable-hdpi/begin_icon.png | Bin 0 -> 1425 bytes gsanas-master/res/drawable-hdpi/bottonlogin.png | Bin 0 -> 51630 bytes gsanas-master/res/drawable-hdpi/buttonlogin.png | Bin 0 -> 4692 bytes gsanas-master/res/drawable-hdpi/done.png | Bin 0 -> 5357 bytes gsanas-master/res/drawable-hdpi/during_icon.png | Bin 0 -> 1256 bytes gsanas-master/res/drawable-hdpi/edit.png | Bin 0 -> 5958 bytes gsanas-master/res/drawable-hdpi/end_icon.png | Bin 0 -> 1425 bytes gsanas-master/res/drawable-hdpi/execution.png | Bin 0 -> 5882 bytes gsanas-master/res/drawable-hdpi/foundmaterial_title.png | Bin 0 -> 3773 bytes gsanas-master/res/drawable-hdpi/gsan.png | Bin 0 -> 8862 bytes gsanas-master/res/drawable-hdpi/hydrometertitle.png | Bin 0 -> 4848 bytes gsanas-master/res/drawable-hdpi/icon.png | Bin 0 -> 4147 bytes gsanas-master/res/drawable-hdpi/icon_history.png | Bin 0 -> 7019 bytes gsanas-master/res/drawable-hdpi/icon_history_small.png | Bin 0 -> 6680 bytes gsanas-master/res/drawable-hdpi/infotitle.png | Bin 0 -> 3438 bytes gsanas-master/res/drawable-hdpi/login_button.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/drawable-hdpi/message_gray.png | Bin 0 -> 887 bytes gsanas-master/res/drawable-hdpi/notexecutedicon.png | Bin 0 -> 5146 bytes gsanas-master/res/drawable-hdpi/pause.png | Bin 0 -> 5443 bytes gsanas-master/res/drawable-hdpi/reasontitle.png | Bin 0 -> 3638 bytes gsanas-master/res/drawable-hdpi/start.png | Bin 0 -> 5687 bytes gsanas-master/res/drawable-hdpi/title.psd | Bin 0 -> 25817 bytes gsanas-master/res/drawable-hdpi/tostart.png | Bin 0 -> 5465 bytes gsanas-master/res/drawable-ldpi/add.png | Bin 0 -> 5179 bytes gsanas-master/res/drawable-ldpi/addresstitle.png | Bin 0 -> 3442 bytes gsanas-master/res/drawable-ldpi/afterprograming.png | Bin 0 -> 5888 bytes gsanas-master/res/drawable-ldpi/bar.png | Bin 0 -> 3012 bytes gsanas-master/res/drawable-ldpi/begin_icon.png | Bin 0 -> 1425 bytes gsanas-master/res/drawable-ldpi/bottonlogin.png | Bin 0 -> 51630 bytes gsanas-master/res/drawable-ldpi/buttonlogin.png | Bin 0 -> 4692 bytes gsanas-master/res/drawable-ldpi/done.png | Bin 0 -> 5357 bytes gsanas-master/res/drawable-ldpi/during_icon.png | Bin 0 -> 1256 bytes gsanas-master/res/drawable-ldpi/edit.png | Bin 0 -> 5958 bytes gsanas-master/res/drawable-ldpi/end_icon.png | Bin 0 -> 1425 bytes gsanas-master/res/drawable-ldpi/execution.png | Bin 0 -> 5882 bytes gsanas-master/res/drawable-ldpi/foundmaterial_title.png | Bin 0 -> 3773 bytes gsanas-master/res/drawable-ldpi/gsan.png | Bin 0 -> 8862 bytes gsanas-master/res/drawable-ldpi/hydrometertitle.png | Bin 0 -> 4848 bytes gsanas-master/res/drawable-ldpi/icon.png | Bin 0 -> 1723 bytes gsanas-master/res/drawable-ldpi/icon_history.png | Bin 0 -> 7019 bytes gsanas-master/res/drawable-ldpi/icon_messages.png | Bin 0 -> 4635 bytes gsanas-master/res/drawable-ldpi/icon_photos.png | Bin 0 -> 4970 bytes gsanas-master/res/drawable-ldpi/line.png | Bin 0 -> 2989 bytes gsanas-master/res/drawable-ldpi/materialtitle.png | Bin 0 -> 3453 bytes gsanas-master/res/drawable-ldpi/message_gray.png | Bin 0 -> 887 bytes gsanas-master/res/drawable-ldpi/notexecutedicon.png | Bin 0 -> 5146 bytes gsanas-master/res/drawable-ldpi/offline.png | Bin 0 -> 4172 bytes gsanas-master/res/drawable-ldpi/pending.png | Bin 0 -> 6151 bytes gsanas-master/res/drawable-ldpi/servicetitle.png | Bin 0 -> 3427 bytes gsanas-master/res/drawable-ldpi/start.png | Bin 0 -> 5687 bytes gsanas-master/res/drawable-ldpi/started.png | Bin 0 -> 5421 bytes gsanas-master/res/drawable-ldpi/toplogin.png | Bin 0 -> 6113 bytes gsanas-master/res/drawable-mdpi/add.png | Bin 0 -> 5179 bytes gsanas-master/res/drawable-mdpi/addresstitle.png | Bin 0 -> 3442 bytes gsanas-master/res/drawable-mdpi/afterprograming.png | Bin 0 -> 5888 bytes gsanas-master/res/drawable-mdpi/bar.png | Bin 0 -> 3012 bytes gsanas-master/res/drawable-mdpi/begin_icon.png | Bin 0 -> 1425 bytes gsanas-master/res/drawable-mdpi/bottonlogin.png | Bin 0 -> 51630 bytes gsanas-master/res/drawable-mdpi/buttonlogin.png | Bin 0 -> 4692 bytes gsanas-master/res/drawable-mdpi/done.png | Bin 0 -> 5357 bytes gsanas-master/res/drawable-mdpi/during_icon.png | Bin 0 -> 1256 bytes gsanas-master/res/drawable-mdpi/edit.png | Bin 0 -> 5958 bytes gsanas-master/res/drawable-mdpi/end_icon.png | Bin 0 -> 1425 bytes gsanas-master/res/drawable-mdpi/eviaarquivoicon.png | Bin 0 -> 3281 bytes gsanas-master/res/drawable-mdpi/execution.png | Bin 0 -> 5882 bytes gsanas-master/res/drawable-mdpi/foundmaterial_title.png | Bin 0 -> 3773 bytes gsanas-master/res/drawable-mdpi/gsan.png | Bin 0 -> 8862 bytes gsanas-master/res/drawable-mdpi/hydrometertitle.png | Bin 0 -> 4848 bytes gsanas-master/res/drawable-mdpi/icon.png | Bin 0 -> 2574 bytes gsanas-master/res/drawable-mdpi/icon_history.png | Bin 0 -> 7019 bytes gsanas-master/res/drawable-mdpi/icon_history_small.png | Bin 0 -> 6680 bytes gsanas-master/res/drawable-mdpi/icon_messages.png | Bin 0 -> 4635 bytes gsanas-master/res/drawable-mdpi/icon_photos.png | Bin 0 -> 4970 bytes gsanas-master/res/drawable-mdpi/icon_reason.png | Bin 0 -> 5318 bytes gsanas-master/res/drawable-mdpi/infotitle.png | Bin 0 -> 3438 bytes gsanas-master/res/drawable-mdpi/materialtitle.png | Bin 0 -> 3453 bytes gsanas-master/res/drawable-mdpi/message_yellow.png | Bin 0 -> 1784 bytes gsanas-master/res/drawable-mdpi/reasontitle.png | Bin 0 -> 3638 bytes gsanas-master/res/drawable-mdpi/search.png | Bin 0 -> 5777 bytes gsanas-master/res/drawable-mdpi/start.png | Bin 0 -> 5687 bytes gsanas-master/res/drawable-mdpi/toplogin.png | Bin 0 -> 6113 bytes gsanas-master/res/drawable/login_button.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/drawable/myprogress.xml | 21 +++++++++++++++++++++ gsanas-master/res/layout/autocomplete_list.xml | 8 ++++++++ gsanas-master/res/layout/dados_rede_agua.xml | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/download_apk_activity.xml | 15 +++++++++++++++ gsanas-master/res/layout/edit_address.xml | 33 +++++++++++++++++++++++++++++++++ gsanas-master/res/layout/file_adapter.xml | 10 ++++++++++ gsanas-master/res/layout/file_download_activity.xml | 11 +++++++++++ gsanas-master/res/layout/file_selector.xml | 26 ++++++++++++++++++++++++++ gsanas-master/res/layout/gallery.xml | 28 ++++++++++++++++++++++++++++ gsanas-master/res/layout/gallery_item.xml | 21 +++++++++++++++++++++ gsanas-master/res/layout/guide.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/guide_adapter.xml | 18 ++++++++++++++++++ gsanas-master/res/layout/historic.xml | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/hydrometer.xml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/hydrometerpagethree.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/hydrometerpagetwo.xml | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/local.xml | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/login_activity.xml | 35 +++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/message.xml | 30 ++++++++++++++++++++++++++++++ gsanas-master/res/layout/not_closed_reason.xml | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/reasons_adapter.xml | 14 ++++++++++++++ gsanas-master/res/layout/route_download_activity.xml | 16 ++++++++++++++++ gsanas-master/res/layout/service_order_info.xml | 41 +++++++++++++++++++++++++++++++++++++++++ gsanas-master/res/layout/stageitem.xml | 16 ++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/ElementoReferenciaAdpter.java | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/ExecutedServiceAdapter.java | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/FilelAdapter.java | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/GuideAdapter.java | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/LigacaoAguaMaterialAdpter.java | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/MessageAdapter.java | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/adapters/ObservationAdapter.java | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/BasicController.java | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/FileController.java | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/FloorController.java | 165 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/HidrometerSubstitutionController.java | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/IBasicController.java | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/IFloorController.java | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/IHidrometerSubstitutionController.java | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/IMaterialController.java | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/controller/MaterialController.java | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/model/Floor.java | 175 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/model/Message.java | 172 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/model/Photo.java | 196 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/model/ServiceOrder.java | 516 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/repository/ActivityRepository.java | 255 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/repository/FloorRepository.java | 293 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/repository/IActivityRepository.java | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/repository/IFloorRepository.java | 16 ++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/repository/IPhotoRepository.java | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/repository/PhotoRepository.java | 444 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/service/CommunicationService.java | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/DadosRedeAguaActivity.java | 354 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/DownloadApkActivity.java | 463 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/EditAddress.java | 180 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/FileDownloadActivity.java | 156 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/FileInsert.java | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/FileSelector.java | 160 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/Gallery.java | 468 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/GalleryItem.java | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/Guide.java | 619 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/Historic.java | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/LoginActivity.java | 255 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/NewStageActivity.java | 378 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/PhotoTypeActivity.java | 225 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/ui/SelectFilterActivity.java | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/util/Cryptograph.java | 311 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/util/SQLiteHelper.java | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsanas-master/src/com/br/ipad/gsanas/util/Util.java | 681 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/.gitignore | 3 +++ gsaneos-master/AndroidManifest.xml | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/README.md | 2 ++ gsaneos-master/libs/android-support-v4.jar | Bin 0 -> 385685 bytes gsaneos-master/proguard-project.txt | 20 ++++++++++++++++++++ gsaneos-master/project.properties | 14 ++++++++++++++ gsaneos-master/res/drawable-hdpi/bottomlogin.png | Bin 0 -> 114892 bytes gsaneos-master/res/drawable-hdpi/camera.png | Bin 0 -> 11412 bytes gsaneos-master/res/drawable-hdpi/done.png | Bin 0 -> 5357 bytes gsaneos-master/res/drawable-hdpi/excluir.png | Bin 0 -> 6202 bytes gsaneos-master/res/drawable-hdpi/export_database.png | Bin 0 -> 3688 bytes gsaneos-master/res/drawable-hdpi/finalizar_roteiro.png | Bin 0 -> 1652 bytes gsaneos-master/res/drawable-hdpi/gsan_logo.png | Bin 0 -> 16730 bytes gsaneos-master/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 7658 bytes gsaneos-master/res/drawable-hdpi/incluir.png | Bin 0 -> 6283 bytes gsaneos-master/res/drawable-hdpi/line.png | Bin 0 -> 2989 bytes gsaneos-master/res/drawable-hdpi/login_button.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/drawable-ldpi/camera.png | Bin 0 -> 11412 bytes gsaneos-master/res/drawable-mdpi/backgroundcompleto.jpg | Bin 0 -> 182974 bytes gsaneos-master/res/drawable-mdpi/camera.png | Bin 0 -> 11412 bytes gsaneos-master/res/drawable-mdpi/erro.png | Bin 0 -> 4033 bytes gsaneos-master/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 3777 bytes gsaneos-master/res/drawable-mdpi/ok.png | Bin 0 -> 4147 bytes gsaneos-master/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 12516 bytes gsaneos-master/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 24777 bytes gsaneos-master/res/layout-small/apresentar_roteiros_activity.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout-small/login_activity.xml | 33 +++++++++++++++++++++++++++++++++ gsaneos-master/res/layout-small/manter_dados_aba_fiscalizacao_activity.xml | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout-small/registrar_fotos.xml | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/apresentar_dados_aba_debitos_activity.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/apresentar_dados_imovel_activity.xml | 467 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/apresentar_roteiro_tabs.xml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/apresentar_roteiros_activity.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/apresentar_roteiros_adapter_row.xml | 28 ++++++++++++++++++++++++++++ gsaneos-master/res/layout/corte_tipo_adapter.xml | 9 +++++++++ gsaneos-master/res/layout/documento_entregue_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/download_arquivo_activity.xml | 14 ++++++++++++++ gsaneos-master/res/layout/file_adapter.xml | 5 +++++ gsaneos-master/res/layout/file_selector.xml | 21 +++++++++++++++++++++ gsaneos-master/res/layout/finalizar_roteiro_os_activity.xml | 20 ++++++++++++++++++++ gsaneos-master/res/layout/fiscalizacao_situacao_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/hidrometro_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/hidrometro_local_armazenagem_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/hidrometro_local_instalacao_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/hidrometro_protecao_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/login_activity.xml | 32 ++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/manter_dados_aba_instalacao_caixa_protecao.xml | 297 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/manter_dados_aba_remocao_hidrometro_activity.xml | 209 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/manter_dados_aba_substituicao_hidrometro_activity.xml | 377 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/layout/motivo_encerramento_adapter.xml | 10 ++++++++++ gsaneos-master/res/layout/tipo_hidrometro_adapter.xml | 10 ++++++++++ gsaneos-master/res/values/strings.xml | 283 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/res/values/styles.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/ApresentarRoteirosAdapter.java | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/AtendimentoMotivoEncerramentoAdapter.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/CorteTipoAdapter.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/DocumentoEntregueAdapter.java | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/HidrometroProtecaoAdapter.java | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/MotivoSupressaoAdapter.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/adapter/TipoSupressaoAdapter.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/AgenteComercial.java | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/AtendimentoMotivoEncerramento.java | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/ClienteInformadoEmCampo.java | 372 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/CorteTipo.java | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/DebitoOrdemServico.java | 298 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/DocumentoEntregue.java | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/FiscalizacaoSituacao.java | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/Foto.java | 305 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/FotoTipo.java | 231 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/Gsaneos.java | 17 +++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/Hidrometro.java | 161 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/HidrometroLocalArmazenagem.java | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/HidrometroLocalInstalacao.java | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/MotivoSupressao.java | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/OrdemServicoInstalacaoCaixaProtecao.java | 196 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/OrdemServicoSubstituicaoHidrometro.java | 262 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/OrgaoExpedidorRG.java | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/bean/TipoPoco.java | 227 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/controladores/ControladorBasico.java | 332 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/controladores/ControladorFoto.java | 200 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/controladores/ControladorTipoServico.java | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/controladores/IControladorBasico.java | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/controladores/IControladorFoto.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/controladores/IControladorTipoServico.java | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/excecoes/ControladorException.java | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/excecoes/FachadaException.java | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/excecoes/NegocioException.java | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/excecoes/RepositorioException.java | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/io/GZip.java | 376 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/repositorios/IRepositorioBasico.java | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/repositorios/IRepositorioFoto.java | 31 +++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/repositorios/RepositorioBasico.java | 391 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/repositorios/RepositorioFoto.java | 257 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/repositorios/RepositorioTipoServico.java | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ApkActivity.java | 217 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarDadosAbaDebitosActivity.java | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarDadosImovelActivity.java | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarRoteiroTabsActivity.java | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarRoteirosActivity.java | 396 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/BaseActivity.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/BaseTabActivity.java | 37 +++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/DownloadApkActivity.java | 321 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/DownloadArquivoActivity.java | 182 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/LoginActivity.java | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaClienteActivity.java | 812 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaInstalacaoCaixaProtecao.java | 489 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaRemocaoHidrometroActivity.java | 400 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaSubstituicaoHidrometroActivity.java | 737 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/ui/SelecionarArquivoActivity.java | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/util/Compress.java | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/util/Criptografia.java | 354 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/util/SQLiteHelper.java | 37 +++++++++++++++++++++++++++++++++++++ gsaneos-master/src/br/com/ipad/gsaneos/util/Util.java | 3159 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/.gitignore | 3 +++ impressao-simultanea-master/AndroidManifest.xml | 300 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/README.md | 3 +++ impressao-simultanea-master/libs/ZSDK_API.jar | Bin 0 -> 102934 bytes impressao-simultanea-master/proguard-project.txt | 20 ++++++++++++++++++++ impressao-simultanea-master/project.properties | 14 ++++++++++++++ impressao-simultanea-master/res/drawable-hdpi/camera.png | Bin 0 -> 11412 bytes impressao-simultanea-master/res/drawable-hdpi/fundotela.png | Bin 0 -> 111803 bytes impressao-simultanea-master/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 10149 bytes impressao-simultanea-master/res/drawable-hdpi/icon.png | Bin 0 -> 4147 bytes impressao-simultanea-master/res/drawable-hdpi/line.png | Bin 0 -> 2989 bytes impressao-simultanea-master/res/drawable-hdpi/logo_gsan_impressao.png | Bin 0 -> 32721 bytes impressao-simultanea-master/res/drawable-hdpi/warning.png | Bin 0 -> 3185 bytes impressao-simultanea-master/res/drawable-ldpi/camera.png | Bin 0 -> 11412 bytes impressao-simultanea-master/res/drawable-ldpi/fundotela.png | Bin 0 -> 111803 bytes impressao-simultanea-master/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 6685 bytes impressao-simultanea-master/res/drawable-ldpi/icon.png | Bin 0 -> 1723 bytes impressao-simultanea-master/res/drawable-ldpi/line.png | Bin 0 -> 2989 bytes impressao-simultanea-master/res/drawable-ldpi/logo_gsan_impressao.png | Bin 0 -> 32721 bytes impressao-simultanea-master/res/drawable-ldpi/warning.png | Bin 0 -> 3185 bytes impressao-simultanea-master/res/drawable-mdpi/aba.png | Bin 0 -> 3361 bytes impressao-simultanea-master/res/drawable-mdpi/arqretorno.png | Bin 0 -> 7475 bytes impressao-simultanea-master/res/drawable-mdpi/arquivooffline.png | Bin 0 -> 1695 bytes impressao-simultanea-master/res/drawable-mdpi/arquivoonline.png | Bin 0 -> 1671 bytes impressao-simultanea-master/res/drawable-mdpi/barra.jpg | Bin 0 -> 12988 bytes impressao-simultanea-master/res/drawable-mdpi/barrafalsa.png | Bin 0 -> 2331 bytes impressao-simultanea-master/res/drawable-mdpi/barramenorfalsa.png | Bin 0 -> 689 bytes impressao-simultanea-master/res/drawable-mdpi/bg.jpg | Bin 0 -> 3015 bytes impressao-simultanea-master/res/drawable-mdpi/bgbusca.jpg | Bin 0 -> 11054 bytes impressao-simultanea-master/res/drawable-mdpi/bgcondominio.jpg | Bin 0 -> 360 bytes impressao-simultanea-master/res/drawable-mdpi/bgcondominiolegenda.jpg | Bin 0 -> 7815 bytes impressao-simultanea-master/res/drawable-mdpi/bgimovelcalculado.png | Bin 0 -> 3205 bytes impressao-simultanea-master/res/drawable-mdpi/bgimovelcondominioaba.jpg | Bin 0 -> 11131 bytes impressao-simultanea-master/res/drawable-mdpi/bgimovelinicia.png | Bin 0 -> 3271 bytes impressao-simultanea-master/res/drawable-mdpi/bgimovelnome.png | Bin 0 -> 6853 bytes impressao-simultanea-master/res/drawable-mdpi/bgimovelparado.png | Bin 0 -> 3203 bytes impressao-simultanea-master/res/drawable-mdpi/bgimovelpausa.png | Bin 0 -> 3232 bytes impressao-simultanea-master/res/drawable-mdpi/bgnumero.png | Bin 0 -> 2955 bytes impressao-simultanea-master/res/drawable-mdpi/bgnumerocalculado.png | Bin 0 -> 2966 bytes impressao-simultanea-master/res/drawable-mdpi/bgnumeroparado.png | Bin 0 -> 2960 bytes impressao-simultanea-master/res/drawable-mdpi/bgnumeropausa.png | Bin 0 -> 2978 bytes impressao-simultanea-master/res/drawable-mdpi/bgproximo.jpg | Bin 0 -> 11031 bytes impressao-simultanea-master/res/drawable-mdpi/bolaamarela.png | Bin 0 -> 4401 bytes impressao-simultanea-master/res/drawable-mdpi/bolacalculado.png | Bin 0 -> 4733 bytes impressao-simultanea-master/res/drawable-mdpi/bolaimpresso.png | Bin 0 -> 4517 bytes impressao-simultanea-master/res/drawable-mdpi/bolarevisitar.png | Bin 0 -> 4501 bytes impressao-simultanea-master/res/drawable-mdpi/bolaverde.png | Bin 0 -> 4394 bytes impressao-simultanea-master/res/drawable-mdpi/btlupa.jpg | Bin 0 -> 10256 bytes impressao-simultanea-master/res/drawable-mdpi/btvisualizar.png | Bin 0 -> 4952 bytes impressao-simultanea-master/res/drawable-mdpi/camera.png | Bin 0 -> 11412 bytes impressao-simultanea-master/res/drawable-mdpi/camerabt.png | Bin 0 -> 7808 bytes impressao-simultanea-master/res/drawable-mdpi/chart_bar.png | Bin 0 -> 1185 bytes impressao-simultanea-master/res/drawable-mdpi/consimovel.png | Bin 0 -> 4968 bytes impressao-simultanea-master/res/drawable-mdpi/contraste.png | Bin 0 -> 1847 bytes impressao-simultanea-master/res/drawable-mdpi/done.png | Bin 0 -> 5357 bytes impressao-simultanea-master/res/drawable-mdpi/envimoveis.png | Bin 0 -> 6509 bytes impressao-simultanea-master/res/drawable-mdpi/excluir.png | Bin 0 -> 5659 bytes impressao-simultanea-master/res/drawable-mdpi/exit.png | Bin 0 -> 4008 bytes impressao-simultanea-master/res/drawable-mdpi/export_database.png | Bin 0 -> 3688 bytes impressao-simultanea-master/res/drawable-mdpi/finalroteiro.png | Bin 0 -> 5520 bytes impressao-simultanea-master/res/drawable-mdpi/fundotela.jpg | Bin 0 -> 57317 bytes impressao-simultanea-master/res/drawable-mdpi/fundoteste.png | Bin 0 -> 665 bytes impressao-simultanea-master/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 8726 bytes impressao-simultanea-master/res/drawable-mdpi/icon.png | Bin 0 -> 2574 bytes impressao-simultanea-master/res/drawable-mdpi/impressora.png | Bin 0 -> 6022 bytes impressao-simultanea-master/res/drawable-mdpi/line.png | Bin 0 -> 2989 bytes impressao-simultanea-master/res/drawable-mdpi/listaimoveis.png | Bin 0 -> 10625 bytes impressao-simultanea-master/res/drawable-mdpi/listimoveis.png | Bin 0 -> 4588 bytes impressao-simultanea-master/res/drawable-mdpi/logo_gsan_impressao.png | Bin 0 -> 73267 bytes impressao-simultanea-master/res/drawable-mdpi/lupa.jpg | Bin 0 -> 12204 bytes impressao-simultanea-master/res/drawable-mdpi/lupanew.png | Bin 0 -> 3425 bytes impressao-simultanea-master/res/drawable-mdpi/noicon.png | Bin 0 -> 1518 bytes impressao-simultanea-master/res/drawable-mdpi/offline.png | Bin 0 -> 4172 bytes impressao-simultanea-master/res/drawable-mdpi/quadra_icon.png | Bin 0 -> 1038 bytes impressao-simultanea-master/res/drawable-mdpi/question.png | Bin 0 -> 3385 bytes impressao-simultanea-master/res/drawable-mdpi/relatorios.png | Bin 0 -> 2579 bytes impressao-simultanea-master/res/drawable-mdpi/rotamarcacao.png | Bin 0 -> 6191 bytes impressao-simultanea-master/res/drawable-mdpi/roteiroincomp.png | Bin 0 -> 4802 bytes impressao-simultanea-master/res/drawable-mdpi/roteirooff.png | Bin 0 -> 5875 bytes impressao-simultanea-master/res/drawable-mdpi/roteiroon.png | Bin 0 -> 6441 bytes impressao-simultanea-master/res/drawable-mdpi/selimpressora.png | Bin 0 -> 5513 bytes impressao-simultanea-master/res/drawable-mdpi/selimpressoramaior.png | Bin 0 -> 5870 bytes impressao-simultanea-master/res/drawable-mdpi/stop.png | Bin 0 -> 5095 bytes impressao-simultanea-master/res/drawable-mdpi/warning.png | Bin 0 -> 3185 bytes impressao-simultanea-master/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 10149 bytes impressao-simultanea-master/res/drawable/borders.xml | 10 ++++++++++ impressao-simultanea-master/res/drawable/botao_bg_selected.xml | 12 ++++++++++++ impressao-simultanea-master/res/drawable/botao_bg_selector.xml | 18 ++++++++++++++++++ impressao-simultanea-master/res/drawable/botao_bg_unselected.xml | 12 ++++++++++++ impressao-simultanea-master/res/drawable/bt_branco.xml | 12 ++++++++++++ impressao-simultanea-master/res/drawable/bt_preto.xml | 13 +++++++++++++ impressao-simultanea-master/res/drawable/bt_titulo.xml | 13 +++++++++++++ impressao-simultanea-master/res/drawable/fundoazulclaro_bg.xml | 11 +++++++++++ impressao-simultanea-master/res/drawable/fundobranco_bg.xml | 17 +++++++++++++++++ impressao-simultanea-master/res/drawable/fundocinza_bg.xml | 10 ++++++++++ impressao-simultanea-master/res/drawable/fundopreto_bg.xml | 10 ++++++++++ impressao-simultanea-master/res/drawable/imovel_bg.xml | 11 +++++++++++ impressao-simultanea-master/res/drawable/imovelcondominio_bg.xml | 17 +++++++++++++++++ impressao-simultanea-master/res/drawable/lista_bg.xml | 13 +++++++++++++ impressao-simultanea-master/res/drawable/menu_bg_selected.xml | 9 +++++++++ impressao-simultanea-master/res/drawable/menu_bg_selector.xml | 18 ++++++++++++++++++ impressao-simultanea-master/res/drawable/menu_bg_unselected.xml | 9 +++++++++ impressao-simultanea-master/res/drawable/rodape_bg.xml | 10 ++++++++++ impressao-simultanea-master/res/drawable/tab_anormalidade_bg.xml | 15 +++++++++++++++ impressao-simultanea-master/res/drawable/tab_bg_cell.xml | 11 +++++++++++ impressao-simultanea-master/res/drawable/tab_bg_cell_options.xml | 11 +++++++++++ impressao-simultanea-master/res/drawable/tab_bg_selected.xml | 9 +++++++++ impressao-simultanea-master/res/drawable/tab_bg_selector.xml | 18 ++++++++++++++++++ impressao-simultanea-master/res/drawable/tab_bg_unselected.xml | 10 ++++++++++ impressao-simultanea-master/res/drawable/tab_text_selector.xml | 10 ++++++++++ impressao-simultanea-master/res/drawable/titulo_bg.xml | 13 +++++++++++++ impressao-simultanea-master/res/drawable/vermelho_bg.xml | 19 +++++++++++++++++++ impressao-simultanea-master/res/layout/anormalidade_adapter.xml | 18 ++++++++++++++++++ impressao-simultanea-master/res/layout/camera_activity.xml | 20 ++++++++++++++++++++ impressao-simultanea-master/res/layout/constrast_activity.xml | 24 ++++++++++++++++++++++++ impressao-simultanea-master/res/layout/conta_activity.xml | 286 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/download_arquivo_activity.xml | 28 ++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/finalizar_arquivo_activity.xml | 10 ++++++++++ impressao-simultanea-master/res/layout/foto.xml | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/hidrometro_activity.xml | 247 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/hidrometro_agua_activity.xml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/imagem_salvar_activity.xml | 26 ++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/informacoes_gerais.xml | 144 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/legenda_adapter.xml | 21 +++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_imoveis.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_imoveis_adapter.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_impressoras.xml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_impressoras_adapter.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_menu_adapter.xml | 38 ++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_relatorio_por_quadra.xml | 35 +++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/lista_relatorio_por_quadra_adapter.xml | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/menu.xml | 25 +++++++++++++++++++++++++ impressao-simultanea-master/res/layout/relatorio_activity.xml | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/selecionar_arquivo_activity.xml | 25 +++++++++++++++++++++++++ impressao-simultanea-master/res/layout/selecionar_arquivo_adapter.xml | 10 ++++++++++ impressao-simultanea-master/res/layout/spinner_layout.xml | 11 +++++++++++ impressao-simultanea-master/res/layout/tabs_activity.xml | 98 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/tabs_bg.xml | 14 ++++++++++++++ impressao-simultanea-master/res/layout/tela_configurar_impressora.xml | 27 +++++++++++++++++++++++++++ impressao-simultanea-master/res/layout/tela_login.xml | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/values/colors.xml | 4 ++++ impressao-simultanea-master/res/values/strings.xml | 320 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/res/values/styles.xml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/AnormalidadeAdapter.java | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/LegendaAdapter.java | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaImovelAdapter.java | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaImpressoraAdapter.java | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaMenuAdapter.java | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaRelatorioPorQuadraAdapter.java | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/adapters/SelecionarArquivoAdapter.java | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/background/BackGroundTaskEnviarImovelOnline.java | 43 +++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/background/BackgroundTask.java | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/CategoriaSubcategoria.java | 261 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoAnormalidade.java | 184 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoAnormalidadeAcao.java | 398 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoAnteriores.java | 204 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoHistorico.java | 325 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoTarifaCategoria.java | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoTarifaFaixa.java | 216 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoTipo.java | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaCategoria.java | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaCategoriaConsumoFaixa.java | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaComunicado.java | 117 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaDebito.java | 217 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaImposto.java | 181 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/CreditoRealizado.java | 179 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/DebitoCobrado.java | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/FaturamentoSituacaoTipo.java | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/Foto.java | 245 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/HidrometroInstalado.java | 545 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ImovelConta.java | 1646 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ImovelRevisitar.java | 131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/LeituraAnormalidade.java | 308 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/LogFinalizacao.java | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/ObjetoBasico.java | 23 +++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/QualidadeAgua.java | 867 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/SequencialRotaMarcacao.java | 149 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/SistemaParametros.java | 699 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/CameraHelper.java | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/Impressora.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/Menu.java | 47 +++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/RateioConsumoHelper.java | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/RelatorioPorQuadra.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/conexao/ComunicacaoWebServer.java | 269 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/conexao/ConexaoEnviaImovel.java | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/conexao/ConexaoFoto.java | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/conexao/ConexaoWebServer.java | 716 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaBasico.java | 251 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarAnormalidadeConsumo.java | 357 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarConexaoImpressora.java | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarErro.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarFoto.java | 181 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarImpressao.java | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarLeitura.java | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarMensagemConexao.java | 295 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorBasico.java | 446 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorCategoriaSubcategoria.java | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoAnormalidade.java | 32 ++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoAnormalidadeAcao.java | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoAnteriores.java | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoHistorico.java | 366 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoTarifaCategoria.java | 128 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoTarifaFaixa.java | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoTipo.java | 33 +++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConta.java | 2696 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaCategoria.java | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaCategoriaConsumoFaixa.java | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaDebito.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaImposto.java | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaOracle.java | 28 ++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaPostgres.java | 383 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorCreditoRealizado.java | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorDebitoCobrado.java | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorFoto.java | 212 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorHidrometroInstalado.java | 401 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovel.java | 1334 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelConta.java | 1235 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelOracle.java | 25 +++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelPostgres.java | 24 ++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelRevisitar.java | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImpressao.java | 450 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorLeituraAnormalidade.java | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorLogFinalizacao.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorQualidadeAgua.java | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorRateioImovelCondominio.java | 659 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorRetorno.java | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorSequencialRotaMarcacao.java | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorSistemaParametros.java | 213 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarAnormalidadeConsumo.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarConexaoImpressora.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarImpressao.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarLeitura.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarMensagemConexao.java | 6 ++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorBasico.java | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorCategoriaSubcategoria.java | 24 ++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoAnormalidade.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoAnormalidadeAcao.java | 25 +++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoAnteriores.java | 30 ++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoHistorico.java | 34 ++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoTarifaCategoria.java | 31 +++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoTarifaFaixa.java | 28 ++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoTipo.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConta.java | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaCategoria.java | 19 +++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaCategoriaConsumoFaixa.java | 23 +++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaDebito.java | 18 ++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaImposto.java | 20 ++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorCreditoRealizado.java | 22 ++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorDebitoCobrado.java | 22 ++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorFoto.java | 28 ++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorHidrometroInstalado.java | 25 +++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImovel.java | 156 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImovelConta.java | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImovelRevisitar.java | 18 ++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImpressao.java | 21 +++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorLeituraAnormalidade.java | 19 +++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorLogFinalizacao.java | 13 +++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorQualidadeAgua.java | 16 ++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorRetorno.java | 9 +++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorSequencialRotaMarcacao.java | 17 +++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorSistemaParametros.java | 39 +++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/ConexaoImpressoraException.java | 13 +++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/ControladorException.java | 15 +++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/FachadaException.java | 18 ++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/NegocioException.java | 15 +++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/RepositorioException.java | 15 +++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/StatusImpressoraException.java | 15 +++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/excecoes/ZebraException.java | 15 +++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/fachada/Fachada.java | 2026 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/fachada/FachadaWebServer.java | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/BaseActivity.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/BaseTabActivity.java | 28 ++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/CameraActivity.java | 359 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/ConstrasteActivity.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/ContaActivity.java | 242 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/ControladorAlerta.java | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/CustomDrawableView.java | 28 ++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/DownloadApkActivity.java | 484 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/DownloadArquivoActivity.java | 419 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/FinalizaArquivoActivty.java | 429 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/FotoActivity.java | 299 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/HidrometroAguaActivity.java | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/HidrometroBaseActivity.java | 579 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/HidrometroEsgotoActivity.java | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/ImagemSalvarActivity.java | 145 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/InformacoesGeraisActivity.java | 135 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/ListaImoveisActivity.java | 429 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/ListaImpressorasActivity.java | 200 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/LoginActivity.java | 522 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/MenuActivity.java | 843 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/RateioActivity.java | 287 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/RelatorioActivity.java | 126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/RelatorioPorQuadraActivity.java | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/SelecionarArquivoActivity.java | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/gui/TabsActivity.java | 1455 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/CodigoDeBarras.java | 265 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ExtratoMacroCaern.java | 343 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ExtratoMacroCompesa.java | 572 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/Impressao.java | 402 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoCaer.java | 40 ++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoCaern.java | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoCompesa.java | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoContaCaer.java | 1354 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoContaCaern.java | 958 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoContaCompesaNovo.java | 1 + impressao-simultanea-master/src/com/br/ipad/isc/impressao/NotificacaoDebitoCaer.java | 192 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/NotificacaoDebitoCaern.java | 245 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/NotificacaoDebitoCompesa.java | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/impressao/ZebraUtils.java | 239 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/io/ArquivoRetorno.java | 1059 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/io/ExportBancoDados.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/io/GZip.java | 301 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/io/MessageDispatcher.java | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/BDScript.java | 279 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/CarregaBD.java | 278 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioBasico.java | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioCategoriaSubcategoria.java | 14 ++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoAnormalidade.java | 7 +++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoAnormalidadeAcao.java | 13 +++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoAnteriores.java | 18 ++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoHistorico.java | 12 ++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoTarifaCategoria.java | 16 ++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoTarifaFaixa.java | 14 ++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoTipo.java | 6 ++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaCategoria.java | 11 +++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaCategoriaConsumoFaixa.java | 19 +++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaDebito.java | 12 ++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaImposto.java | 11 +++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioCreditoRealizado.java | 14 ++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioDebitoCobrado.java | 14 ++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioFaturamentoSituacaoTipo.java | 6 ++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioFoto.java | 16 ++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioHidrometroInstalado.java | 14 ++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioImovelConta.java | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioImovelRevisitar.java | 13 +++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioLeituraAnormalidade.java | 13 +++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioQualidadeAgua.java | 12 ++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioSequencialRotaMarcacao.java | 12 ++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioSistemaParametros.java | 18 ++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioBasico.java | 366 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioCategoriaSubcategoria.java | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoAnormalidade.java | 19 +++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoAnormalidadeAcao.java | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoAnteriores.java | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoHistorico.java | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoTarifaCategoria.java | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoTarifaFaixa.java | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoTipo.java | 19 +++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaCategoria.java | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaCategoriaConsumoFaixa.java | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaDebito.java | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaImposto.java | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioCreditoRealizado.java | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioDebitoCobrado.java | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioFaturamentoSituacaoTipo.java | 19 +++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioFoto.java | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioHidrometroInstalado.java | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioImovelConta.java | 1854 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioImovelRevisitar.java | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioLeituraAnormalidade.java | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioQualidadeAgua.java | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioSequencialRotaMarcacao.java | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioSistemaParametros.java | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/Bluetooth.java | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/ConstantesSistema.java | 450 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/Criptografia.java | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/Device.java | 758 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/SQLiteHelper.java | 40 ++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/SettingsHelper.java | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/TesteGeral.java | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ impressao-simultanea-master/src/com/br/ipad/isc/util/Util.java | 3069 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1020 files changed, 231225 insertions(+), 0 deletions(-) create mode 100644 atualizacao-cadastral-master/.classpath create mode 100644 atualizacao-cadastral-master/.gitignore create mode 100644 atualizacao-cadastral-master/.project create mode 100644 atualizacao-cadastral-master/AndroidManifest.xml create mode 100644 atualizacao-cadastral-master/README.md create mode 100644 atualizacao-cadastral-master/assets/theme.xml create mode 100644 atualizacao-cadastral-master/build.xml create mode 100644 atualizacao-cadastral-master/libs/android-support-v4.jar create mode 100644 atualizacao-cadastral-master/proguard-project.txt create mode 100644 atualizacao-cadastral-master/project.properties create mode 100644 atualizacao-cadastral-master/res/anim/slide_in_left.xml create mode 100644 atualizacao-cadastral-master/res/anim/slide_in_right.xml create mode 100644 atualizacao-cadastral-master/res/anim/slide_out_left.xml create mode 100644 atualizacao-cadastral-master/res/anim/slide_out_right.xml create mode 100644 atualizacao-cadastral-master/res/drawable-hdpi/camera.png create mode 100644 atualizacao-cadastral-master/res/drawable-hdpi/exclude.png create mode 100644 atualizacao-cadastral-master/res/drawable-hdpi/ic_action_search.png create mode 100644 atualizacao-cadastral-master/res/drawable-hdpi/ic_launcher.png create mode 100644 atualizacao-cadastral-master/res/drawable-hdpi/line.png create mode 100644 atualizacao-cadastral-master/res/drawable-hdpi/warning.png create mode 100644 atualizacao-cadastral-master/res/drawable-ldpi/camera.png create mode 100644 atualizacao-cadastral-master/res/drawable-ldpi/exclude.png create mode 100644 atualizacao-cadastral-master/res/drawable-ldpi/line.png create mode 100644 atualizacao-cadastral-master/res/drawable-ldpi/warning.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/backgroundcabecalho.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/backgroundcompleto.jpg create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/bgproximo.jpg create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/botaoentrar.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/btlupa.jpg create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/btnadicionar.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/btnanterior.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/btnproximo.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/btnremover.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/camera.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/chart_bar.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/erro.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/exclude.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/ic_action_search.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/ic_launcher.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/icon_back.png.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/icon_salvar.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/icone.PNG create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/line.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/logo.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/ok.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/quadra_icon.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/tab.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/tegroteiro.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/transfer.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/update.png create mode 100644 atualizacao-cadastral-master/res/drawable-mdpi/warning.png create mode 100644 atualizacao-cadastral-master/res/drawable-xhdpi/ic_action_search.png create mode 100644 atualizacao-cadastral-master/res/drawable-xhdpi/ic_launcher.png create mode 100644 atualizacao-cadastral-master/res/drawable/borders.xml create mode 100644 atualizacao-cadastral-master/res/drawable/botao_bg_selected.xml create mode 100644 atualizacao-cadastral-master/res/drawable/botao_bg_selector.xml create mode 100644 atualizacao-cadastral-master/res/drawable/botao_bg_selector_login.xml create mode 100644 atualizacao-cadastral-master/res/drawable/botao_bg_unselected.xml create mode 100644 atualizacao-cadastral-master/res/drawable/botao_bg_unselected_login.xml create mode 100644 atualizacao-cadastral-master/res/drawable/bt_azul.xml create mode 100644 atualizacao-cadastral-master/res/drawable/bt_branco.xml create mode 100644 atualizacao-cadastral-master/res/drawable/bt_preto.xml create mode 100644 atualizacao-cadastral-master/res/drawable/bt_titulo.xml create mode 100644 atualizacao-cadastral-master/res/drawable/cabecalho.xml create mode 100644 atualizacao-cadastral-master/res/drawable/camera.png create mode 100644 atualizacao-cadastral-master/res/drawable/fundo_bg_rodape.xml create mode 100644 atualizacao-cadastral-master/res/drawable/fundoazulclaro_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/fundobranco_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/fundocinza_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/fundopreto_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/icon_info.png create mode 100644 atualizacao-cadastral-master/res/drawable/imovel_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/imovelcondominio_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/lista_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/menu_bg_selected.xml create mode 100644 atualizacao-cadastral-master/res/drawable/menu_bg_selector.xml create mode 100644 atualizacao-cadastral-master/res/drawable/menu_bg_unselected.xml create mode 100644 atualizacao-cadastral-master/res/drawable/rodape_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_anormalidade_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_bg_cell.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_bg_cell_options.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_bg_selected.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_bg_selector.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_bg_unselected.xml create mode 100644 atualizacao-cadastral-master/res/drawable/tab_text_selector.xml create mode 100644 atualizacao-cadastral-master/res/drawable/titulo_bg.xml create mode 100644 atualizacao-cadastral-master/res/drawable/vermelho_bg.xml create mode 100644 atualizacao-cadastral-master/res/layout/arquivo_adapter.xml create mode 100644 atualizacao-cadastral-master/res/layout/arquivo_dividido_selecionar.xml create mode 100644 atualizacao-cadastral-master/res/layout/arquivo_selecionar.xml create mode 100644 atualizacao-cadastral-master/res/layout/categoria_imovel_inserir.xml create mode 100644 atualizacao-cadastral-master/res/layout/cliente_aba.xml create mode 100644 atualizacao-cadastral-master/res/layout/download_arquivo_activity.xml create mode 100644 atualizacao-cadastral-master/res/layout/endereco_aba.xml create mode 100644 atualizacao-cadastral-master/res/layout/fotos_aba.xml create mode 100644 atualizacao-cadastral-master/res/layout/imovel_aba.xml create mode 100644 atualizacao-cadastral-master/res/layout/ligacao_aba.xml create mode 100644 atualizacao-cadastral-master/res/layout/lista_relatorio_cadastrador_adapter.xml create mode 100644 atualizacao-cadastral-master/res/layout/lista_relatorio_ocorrencia_adapter.xml create mode 100644 atualizacao-cadastral-master/res/layout/localidade_aba.xml create mode 100644 atualizacao-cadastral-master/res/layout/logradouro_inserir.xml create mode 100644 atualizacao-cadastral-master/res/layout/relatorio_activity.xml create mode 100644 atualizacao-cadastral-master/res/layout/relatorio_por_cadastrador.xml create mode 100644 atualizacao-cadastral-master/res/layout/relatorio_por_ocorrencia_cadastro.xml create mode 100644 atualizacao-cadastral-master/res/layout/roteiro.xml create mode 100644 atualizacao-cadastral-master/res/layout/roteiro_adapter.xml create mode 100644 atualizacao-cadastral-master/res/layout/route_finalization_activity.xml create mode 100644 atualizacao-cadastral-master/res/layout/tabs_activity.xml create mode 100644 atualizacao-cadastral-master/res/layout/tabs_bg.xml create mode 100644 atualizacao-cadastral-master/res/layout/tela_login.xml create mode 100644 atualizacao-cadastral-master/res/layout/versao_errada.xml create mode 100644 atualizacao-cadastral-master/res/menu/activity_aba.xml create mode 100644 atualizacao-cadastral-master/res/menu/endereco_aba.xml create mode 100644 atualizacao-cadastral-master/res/menu/fotos_aba.xml create mode 100644 atualizacao-cadastral-master/res/menu/ligacao_aba.xml create mode 100644 atualizacao-cadastral-master/res/menu/logradouro_inserir.xml create mode 100644 atualizacao-cadastral-master/res/menu/menu.xml create mode 100644 atualizacao-cadastral-master/res/menu/menu_sobre.xml create mode 100644 atualizacao-cadastral-master/res/values-large/dimens.xml create mode 100644 atualizacao-cadastral-master/res/values-v11/styles.xml create mode 100644 atualizacao-cadastral-master/res/values-v14/styles.xml create mode 100644 atualizacao-cadastral-master/res/values/colors.xml create mode 100644 atualizacao-cadastral-master/res/values/dimens.xml create mode 100644 atualizacao-cadastral-master/res/values/strings.xml create mode 100644 atualizacao-cadastral-master/res/values/styles.xml create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/adapter/ArquivoAdapter.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatorioCadastradorAdapter.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatoriosOcorrenciaCadastroAdapter.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/adapter/RoteiroAdapter.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/conexao/ComunicacaoWebServer.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/conexao/ConexaoWebServer.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/conexao/DBConnection.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/conexao/PhotoConnection.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorBase.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorSistemaParametros.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorUtil.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorBase.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorSistemaParametros.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorUtil.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Bairro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/CadastroOcorrencia.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Categoria.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Cep.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteAtlzCadastral.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteFoneAtlzCad.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/EnderecoReferencia.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/EntidadeBase.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/FoneTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/FonteAbastecimento.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Foto.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroCapacidade.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroInstHistAtlzCad.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroLocalInst.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroMarca.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroProtecao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelAtlzCadastral.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelOcorrencia.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelPerfil.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelSubCategAtlzCad.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoAguaSituacao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoEsgotoSituacao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Logradouro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroBairro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroCep.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTitulo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/MedicaoTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Municipio.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/OrgaoExpedidorRg.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoCalcada.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoRua.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/PessoaSexo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Quadra.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/Roteiro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/SetorComercial.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/SistemaParametros.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/SubCategoria.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/UnidadeFederacao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/ClienteFoneHelper.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioOcorrenciaCadastro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioPorCadastrador.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/exception/ControladorException.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/exception/FachadaException.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/exception/RepositorioException.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/fachada/Fachada.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/fachada/FachadaWebServer.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/ApkActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/ArquivoFinalizadoActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseTabsActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/CategoriaImovelInserirActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/ClienteAbaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadApkActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadArquivoActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/EnderecoAbaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/FinalizarRoteiroActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/FotosAbaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/ImovelAbaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/LigacaoAbaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/LocalidadeAbaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/LoginActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/LogradouroInserirActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorCadastradorActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorOcorrenciaCadastroActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/RoteiroActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoDivididoActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/TabsActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/gui/VersaoArquivoErradaActivity.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/IRepositorioBase.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBairro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBase.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCadastroOcorrencia.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCategoria.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCep.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteAtlzCadastral.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteFoneAtlzCad.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioEnderecoReferencia.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoneTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFonteAbastecimento.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoto.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroCapacidade.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroInstHistAtlzCad.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroLocalInst.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroMarca.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroProtecao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelAtlzCadastral.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelOcorrencia.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelPerfil.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelSubCategAtlzCad.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoAguaSituacao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoEsgotoSituacao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroBairro.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroCep.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTitulo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMedicaoTipo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMunicipio.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioOrgaoExpedidorRg.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoCalcada.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoRua.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPessoaSexo.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioQuadra.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSetorComercial.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSistemaParametros.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSubCategoria.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioUnidadeFederacao.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/CarregarArquivoDividido.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/Compress.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/ConstantesSistema.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/Cryptograph.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/DBLoader.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/DBScript.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/ExportaBancoDados.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/GZip.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/Mascara.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/SQLiteHelper.java create mode 100644 atualizacao-cadastral-master/src/com/br/gsanac/util/Util.java create mode 100644 gerencial_pentaho-master/PDI/kjb_dim_fatos_amarrecadacao.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_dim_fatos_amfaturamento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_dimen_geografica.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_dimen_solicitacao.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_fato_cobranca_acao.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_fato_coleta_esgoto.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_fato_consumo_agua.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_fato_resumo_faturamento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_job_dimen_sem_loca.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_arrecadacao.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_hidr_instalados.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_hidr_nao_instalados.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_ind_faturamento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_leitura_anormalidade.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_ligacoes.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_parcelamento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_pendencia.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_resumo_registro_atendimento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_cobranca_acao.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_coleta.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_consumo_agua.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_faturamento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_resumo_arrecadacao.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_resumo_hidr_instalados.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_resumo_leitura_anormalidade.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_resumo_ligacoes.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_resumo_parcelamento.kjb create mode 100644 gerencial_pentaho-master/PDI/kjb_sg_resumo_registro_atendimento.kjb create mode 100644 gerencial_pentaho-master/PDI/krt_dimen_faturamento_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_arrecadacao_forma.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_arrecadador.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_categoria_subcategoria.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cliente_tipo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_efeito.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_criterio.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_debito_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_grupo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_cobranca_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_credito_origem_tipo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_debito_lancamento_item.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_devolucao_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_documento_tipo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_empresa.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_epoca_pagamento.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_esfera_poder_perfil.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_faixa_valor_pendente.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_faturamento_grupo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_financiamento_tipo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_geografica.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_hidr_armazenagem_macro.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_hidr_capacidade_diametro.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_hidr_marca_tipo_classe.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_hidro_situacao_baixa.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_imposto_tipo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_indicador.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_leitura_anormalidade.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_leitura_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_localizacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_medicao_tipo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_motivo_encerramento.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_motivo_nao_entrega_documento.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_pagamento_situacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_percentual_coleta.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_percentual_esgoto.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_recebida_mes.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_servico_tipo_perfil.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_situacao_agua.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_situacao_esgoto.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_solicitacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_tempo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_tipo_consumo.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_unidade_organizacional.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_dimen_usuario.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_coleta_esgoto.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_consumo_agua.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_faturamento.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_hidrometro_instalacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_hidrometro_nao_instalados.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_ind_faturamento_a.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_leitura_anormalidade.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_parcelamento.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_resumo_arrecadacao.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_resumo_cobranca_acao_eventual.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_resumo_ligacoes_economia.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_fato_resumo_registro_atendimento.ktr create mode 100644 gerencial_pentaho-master/PDI/ktr_resumo_pendencia.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_anomes_ind_fatiramento.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_dmgr.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_dmlo.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_dmsol.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_rear.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_reca.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_rece.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_refa.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_rehi.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_reih.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_rele.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_relt.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_repa.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_rera.ktr create mode 100644 gerencial_pentaho-master/PDI/seq_max_rpen.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_arrecadacao.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_cobranca_acao.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_coleta.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_consumo_agua.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_faturamento.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_hidrometro_instalacao.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_leitura_anormalidade.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_localizacao_lig.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_parcelamento.ktr create mode 100644 gerencial_pentaho-master/PDI/sg_registro_atendimento.ktr create mode 100644 gerencial_pentaho-master/PDI/stage_paghist.ktr create mode 100644 gerencial_pentaho-master/PSW/cagepa_acao_cobranca.xml create mode 100644 gerencial_pentaho-master/PSW/cagepa_resumosgerenciais.xml create mode 100644 gerencial_pentaho-master/README.md create mode 100644 gsanas-master/.gitignore create mode 100644 gsanas-master/AndroidManifest.xml create mode 100644 gsanas-master/README.md create mode 100644 gsanas-master/res/drawable-hdpi/add.png create mode 100644 gsanas-master/res/drawable-hdpi/addresstitle.png create mode 100644 gsanas-master/res/drawable-hdpi/afterprograming.png create mode 100644 gsanas-master/res/drawable-hdpi/bar.png create mode 100644 gsanas-master/res/drawable-hdpi/begin_icon.png create mode 100644 gsanas-master/res/drawable-hdpi/bottonlogin.png create mode 100644 gsanas-master/res/drawable-hdpi/buttonlogin.png create mode 100644 gsanas-master/res/drawable-hdpi/done.png create mode 100644 gsanas-master/res/drawable-hdpi/during_icon.png create mode 100644 gsanas-master/res/drawable-hdpi/edit.png create mode 100644 gsanas-master/res/drawable-hdpi/end_icon.png create mode 100644 gsanas-master/res/drawable-hdpi/execution.png create mode 100644 gsanas-master/res/drawable-hdpi/foundmaterial_title.png create mode 100644 gsanas-master/res/drawable-hdpi/gsan.png create mode 100644 gsanas-master/res/drawable-hdpi/hydrometertitle.png create mode 100644 gsanas-master/res/drawable-hdpi/icon.png create mode 100644 gsanas-master/res/drawable-hdpi/icon_history.png create mode 100644 gsanas-master/res/drawable-hdpi/icon_history_small.png create mode 100644 gsanas-master/res/drawable-hdpi/infotitle.png create mode 100644 gsanas-master/res/drawable-hdpi/login_button.xml create mode 100644 gsanas-master/res/drawable-hdpi/message_gray.png create mode 100644 gsanas-master/res/drawable-hdpi/notexecutedicon.png create mode 100644 gsanas-master/res/drawable-hdpi/pause.png create mode 100644 gsanas-master/res/drawable-hdpi/reasontitle.png create mode 100644 gsanas-master/res/drawable-hdpi/start.png create mode 100644 gsanas-master/res/drawable-hdpi/title.psd create mode 100644 gsanas-master/res/drawable-hdpi/tostart.png create mode 100644 gsanas-master/res/drawable-ldpi/add.png create mode 100644 gsanas-master/res/drawable-ldpi/addresstitle.png create mode 100644 gsanas-master/res/drawable-ldpi/afterprograming.png create mode 100644 gsanas-master/res/drawable-ldpi/bar.png create mode 100644 gsanas-master/res/drawable-ldpi/begin_icon.png create mode 100644 gsanas-master/res/drawable-ldpi/bottonlogin.png create mode 100644 gsanas-master/res/drawable-ldpi/buttonlogin.png create mode 100644 gsanas-master/res/drawable-ldpi/done.png create mode 100644 gsanas-master/res/drawable-ldpi/during_icon.png create mode 100644 gsanas-master/res/drawable-ldpi/edit.png create mode 100644 gsanas-master/res/drawable-ldpi/end_icon.png create mode 100644 gsanas-master/res/drawable-ldpi/execution.png create mode 100644 gsanas-master/res/drawable-ldpi/foundmaterial_title.png create mode 100644 gsanas-master/res/drawable-ldpi/gsan.png create mode 100644 gsanas-master/res/drawable-ldpi/hydrometertitle.png create mode 100644 gsanas-master/res/drawable-ldpi/icon.png create mode 100644 gsanas-master/res/drawable-ldpi/icon_history.png create mode 100644 gsanas-master/res/drawable-ldpi/icon_messages.png create mode 100644 gsanas-master/res/drawable-ldpi/icon_photos.png create mode 100644 gsanas-master/res/drawable-ldpi/line.png create mode 100644 gsanas-master/res/drawable-ldpi/materialtitle.png create mode 100644 gsanas-master/res/drawable-ldpi/message_gray.png create mode 100644 gsanas-master/res/drawable-ldpi/notexecutedicon.png create mode 100644 gsanas-master/res/drawable-ldpi/offline.png create mode 100644 gsanas-master/res/drawable-ldpi/pending.png create mode 100644 gsanas-master/res/drawable-ldpi/servicetitle.png create mode 100644 gsanas-master/res/drawable-ldpi/start.png create mode 100644 gsanas-master/res/drawable-ldpi/started.png create mode 100644 gsanas-master/res/drawable-ldpi/toplogin.png create mode 100644 gsanas-master/res/drawable-mdpi/add.png create mode 100644 gsanas-master/res/drawable-mdpi/addresstitle.png create mode 100644 gsanas-master/res/drawable-mdpi/afterprograming.png create mode 100644 gsanas-master/res/drawable-mdpi/bar.png create mode 100644 gsanas-master/res/drawable-mdpi/begin_icon.png create mode 100644 gsanas-master/res/drawable-mdpi/bottonlogin.png create mode 100644 gsanas-master/res/drawable-mdpi/buttonlogin.png create mode 100644 gsanas-master/res/drawable-mdpi/done.png create mode 100644 gsanas-master/res/drawable-mdpi/during_icon.png create mode 100644 gsanas-master/res/drawable-mdpi/edit.png create mode 100644 gsanas-master/res/drawable-mdpi/end_icon.png create mode 100644 gsanas-master/res/drawable-mdpi/eviaarquivoicon.png create mode 100644 gsanas-master/res/drawable-mdpi/execution.png create mode 100644 gsanas-master/res/drawable-mdpi/foundmaterial_title.png create mode 100644 gsanas-master/res/drawable-mdpi/gsan.png create mode 100644 gsanas-master/res/drawable-mdpi/hydrometertitle.png create mode 100644 gsanas-master/res/drawable-mdpi/icon.png create mode 100644 gsanas-master/res/drawable-mdpi/icon_history.png create mode 100644 gsanas-master/res/drawable-mdpi/icon_history_small.png create mode 100644 gsanas-master/res/drawable-mdpi/icon_messages.png create mode 100644 gsanas-master/res/drawable-mdpi/icon_photos.png create mode 100644 gsanas-master/res/drawable-mdpi/icon_reason.png create mode 100644 gsanas-master/res/drawable-mdpi/infotitle.png create mode 100644 gsanas-master/res/drawable-mdpi/materialtitle.png create mode 100644 gsanas-master/res/drawable-mdpi/message_yellow.png create mode 100644 gsanas-master/res/drawable-mdpi/reasontitle.png create mode 100644 gsanas-master/res/drawable-mdpi/search.png create mode 100644 gsanas-master/res/drawable-mdpi/start.png create mode 100644 gsanas-master/res/drawable-mdpi/toplogin.png create mode 100644 gsanas-master/res/drawable/login_button.xml create mode 100644 gsanas-master/res/drawable/myprogress.xml create mode 100644 gsanas-master/res/layout/autocomplete_list.xml create mode 100644 gsanas-master/res/layout/dados_rede_agua.xml create mode 100644 gsanas-master/res/layout/download_apk_activity.xml create mode 100644 gsanas-master/res/layout/edit_address.xml create mode 100644 gsanas-master/res/layout/file_adapter.xml create mode 100644 gsanas-master/res/layout/file_download_activity.xml create mode 100644 gsanas-master/res/layout/file_selector.xml create mode 100644 gsanas-master/res/layout/gallery.xml create mode 100644 gsanas-master/res/layout/gallery_item.xml create mode 100644 gsanas-master/res/layout/guide.xml create mode 100644 gsanas-master/res/layout/guide_adapter.xml create mode 100644 gsanas-master/res/layout/historic.xml create mode 100644 gsanas-master/res/layout/hydrometer.xml create mode 100644 gsanas-master/res/layout/hydrometerpagethree.xml create mode 100644 gsanas-master/res/layout/hydrometerpagetwo.xml create mode 100644 gsanas-master/res/layout/local.xml create mode 100644 gsanas-master/res/layout/login_activity.xml create mode 100644 gsanas-master/res/layout/message.xml create mode 100644 gsanas-master/res/layout/not_closed_reason.xml create mode 100644 gsanas-master/res/layout/reasons_adapter.xml create mode 100644 gsanas-master/res/layout/route_download_activity.xml create mode 100644 gsanas-master/res/layout/service_order_info.xml create mode 100644 gsanas-master/res/layout/stageitem.xml create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/ElementoReferenciaAdpter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/ExecutedServiceAdapter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/FilelAdapter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/GuideAdapter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/LigacaoAguaMaterialAdpter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/MessageAdapter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/adapters/ObservationAdapter.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/BasicController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/FileController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/FloorController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/HidrometerSubstitutionController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/IBasicController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/IFloorController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/IHidrometerSubstitutionController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/IMaterialController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/controller/MaterialController.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/model/Floor.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/model/Message.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/model/Photo.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/model/ServiceOrder.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/repository/ActivityRepository.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/repository/FloorRepository.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/repository/IActivityRepository.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/repository/IFloorRepository.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/repository/IPhotoRepository.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/repository/PhotoRepository.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/service/CommunicationService.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/DadosRedeAguaActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/DownloadApkActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/EditAddress.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/FileDownloadActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/FileInsert.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/FileSelector.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/Gallery.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/GalleryItem.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/Guide.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/Historic.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/LoginActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/NewStageActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/PhotoTypeActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/ui/SelectFilterActivity.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/util/Cryptograph.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/util/SQLiteHelper.java create mode 100644 gsanas-master/src/com/br/ipad/gsanas/util/Util.java create mode 100644 gsaneos-master/.gitignore create mode 100644 gsaneos-master/AndroidManifest.xml create mode 100644 gsaneos-master/README.md create mode 100644 gsaneos-master/libs/android-support-v4.jar create mode 100644 gsaneos-master/proguard-project.txt create mode 100644 gsaneos-master/project.properties create mode 100644 gsaneos-master/res/drawable-hdpi/bottomlogin.png create mode 100644 gsaneos-master/res/drawable-hdpi/camera.png create mode 100644 gsaneos-master/res/drawable-hdpi/done.png create mode 100644 gsaneos-master/res/drawable-hdpi/excluir.png create mode 100644 gsaneos-master/res/drawable-hdpi/export_database.png create mode 100644 gsaneos-master/res/drawable-hdpi/finalizar_roteiro.png create mode 100644 gsaneos-master/res/drawable-hdpi/gsan_logo.png create mode 100644 gsaneos-master/res/drawable-hdpi/ic_launcher.png create mode 100644 gsaneos-master/res/drawable-hdpi/incluir.png create mode 100644 gsaneos-master/res/drawable-hdpi/line.png create mode 100644 gsaneos-master/res/drawable-hdpi/login_button.xml create mode 100644 gsaneos-master/res/drawable-ldpi/camera.png create mode 100644 gsaneos-master/res/drawable-mdpi/backgroundcompleto.jpg create mode 100644 gsaneos-master/res/drawable-mdpi/camera.png create mode 100644 gsaneos-master/res/drawable-mdpi/erro.png create mode 100644 gsaneos-master/res/drawable-mdpi/ic_launcher.png create mode 100644 gsaneos-master/res/drawable-mdpi/ok.png create mode 100644 gsaneos-master/res/drawable-xhdpi/ic_launcher.png create mode 100644 gsaneos-master/res/drawable-xxhdpi/ic_launcher.png create mode 100644 gsaneos-master/res/layout-small/apresentar_roteiros_activity.xml create mode 100644 gsaneos-master/res/layout-small/login_activity.xml create mode 100644 gsaneos-master/res/layout-small/manter_dados_aba_fiscalizacao_activity.xml create mode 100644 gsaneos-master/res/layout-small/registrar_fotos.xml create mode 100644 gsaneos-master/res/layout/apresentar_dados_aba_debitos_activity.xml create mode 100644 gsaneos-master/res/layout/apresentar_dados_imovel_activity.xml create mode 100644 gsaneos-master/res/layout/apresentar_roteiro_tabs.xml create mode 100644 gsaneos-master/res/layout/apresentar_roteiros_activity.xml create mode 100644 gsaneos-master/res/layout/apresentar_roteiros_adapter_row.xml create mode 100644 gsaneos-master/res/layout/corte_tipo_adapter.xml create mode 100644 gsaneos-master/res/layout/documento_entregue_adapter.xml create mode 100644 gsaneos-master/res/layout/download_arquivo_activity.xml create mode 100644 gsaneos-master/res/layout/file_adapter.xml create mode 100644 gsaneos-master/res/layout/file_selector.xml create mode 100644 gsaneos-master/res/layout/finalizar_roteiro_os_activity.xml create mode 100644 gsaneos-master/res/layout/fiscalizacao_situacao_adapter.xml create mode 100644 gsaneos-master/res/layout/hidrometro_adapter.xml create mode 100644 gsaneos-master/res/layout/hidrometro_local_armazenagem_adapter.xml create mode 100644 gsaneos-master/res/layout/hidrometro_local_instalacao_adapter.xml create mode 100644 gsaneos-master/res/layout/hidrometro_protecao_adapter.xml create mode 100644 gsaneos-master/res/layout/login_activity.xml create mode 100644 gsaneos-master/res/layout/manter_dados_aba_instalacao_caixa_protecao.xml create mode 100644 gsaneos-master/res/layout/manter_dados_aba_remocao_hidrometro_activity.xml create mode 100644 gsaneos-master/res/layout/manter_dados_aba_substituicao_hidrometro_activity.xml create mode 100644 gsaneos-master/res/layout/motivo_encerramento_adapter.xml create mode 100644 gsaneos-master/res/layout/tipo_hidrometro_adapter.xml create mode 100644 gsaneos-master/res/values/strings.xml create mode 100644 gsaneos-master/res/values/styles.xml create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/ApresentarRoteirosAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/AtendimentoMotivoEncerramentoAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/CorteTipoAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/DocumentoEntregueAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/HidrometroProtecaoAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/MotivoSupressaoAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/adapter/TipoSupressaoAdapter.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/AgenteComercial.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/AtendimentoMotivoEncerramento.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/ClienteInformadoEmCampo.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/CorteTipo.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/DebitoOrdemServico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/DocumentoEntregue.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/FiscalizacaoSituacao.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/Foto.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/FotoTipo.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/Gsaneos.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/Hidrometro.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/HidrometroLocalArmazenagem.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/HidrometroLocalInstalacao.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/MotivoSupressao.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/OrdemServicoInstalacaoCaixaProtecao.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/OrdemServicoSubstituicaoHidrometro.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/OrgaoExpedidorRG.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/bean/TipoPoco.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/controladores/ControladorBasico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/controladores/ControladorFoto.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/controladores/ControladorTipoServico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/controladores/IControladorBasico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/controladores/IControladorFoto.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/controladores/IControladorTipoServico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/excecoes/ControladorException.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/excecoes/FachadaException.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/excecoes/NegocioException.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/excecoes/RepositorioException.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/io/GZip.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/repositorios/IRepositorioBasico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/repositorios/IRepositorioFoto.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/repositorios/RepositorioBasico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/repositorios/RepositorioFoto.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/repositorios/RepositorioTipoServico.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ApkActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarDadosAbaDebitosActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarDadosImovelActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarRoteiroTabsActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ApresentarRoteirosActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/BaseActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/BaseTabActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/DownloadApkActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/DownloadArquivoActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/LoginActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaClienteActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaInstalacaoCaixaProtecao.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaRemocaoHidrometroActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/ManterDadosAbaSubstituicaoHidrometroActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/ui/SelecionarArquivoActivity.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/util/Compress.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/util/Criptografia.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/util/SQLiteHelper.java create mode 100644 gsaneos-master/src/br/com/ipad/gsaneos/util/Util.java create mode 100644 impressao-simultanea-master/.gitignore create mode 100644 impressao-simultanea-master/AndroidManifest.xml create mode 100644 impressao-simultanea-master/README.md create mode 100644 impressao-simultanea-master/libs/ZSDK_API.jar create mode 100644 impressao-simultanea-master/proguard-project.txt create mode 100644 impressao-simultanea-master/project.properties create mode 100644 impressao-simultanea-master/res/drawable-hdpi/camera.png create mode 100644 impressao-simultanea-master/res/drawable-hdpi/fundotela.png create mode 100644 impressao-simultanea-master/res/drawable-hdpi/ic_launcher.png create mode 100644 impressao-simultanea-master/res/drawable-hdpi/icon.png create mode 100644 impressao-simultanea-master/res/drawable-hdpi/line.png create mode 100644 impressao-simultanea-master/res/drawable-hdpi/logo_gsan_impressao.png create mode 100644 impressao-simultanea-master/res/drawable-hdpi/warning.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/camera.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/fundotela.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/ic_launcher.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/icon.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/line.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/logo_gsan_impressao.png create mode 100644 impressao-simultanea-master/res/drawable-ldpi/warning.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/aba.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/arqretorno.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/arquivooffline.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/arquivoonline.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/barra.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/barrafalsa.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/barramenorfalsa.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bg.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgbusca.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgcondominio.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgcondominiolegenda.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgimovelcalculado.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgimovelcondominioaba.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgimovelinicia.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgimovelnome.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgimovelparado.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgimovelpausa.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgnumero.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgnumerocalculado.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgnumeroparado.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgnumeropausa.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bgproximo.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bolaamarela.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bolacalculado.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bolaimpresso.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bolarevisitar.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/bolaverde.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/btlupa.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/btvisualizar.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/camera.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/camerabt.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/chart_bar.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/consimovel.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/contraste.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/done.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/envimoveis.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/excluir.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/exit.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/export_database.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/finalroteiro.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/fundotela.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/fundoteste.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/ic_launcher.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/icon.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/impressora.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/line.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/listaimoveis.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/listimoveis.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/logo_gsan_impressao.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/lupa.jpg create mode 100644 impressao-simultanea-master/res/drawable-mdpi/lupanew.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/noicon.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/offline.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/quadra_icon.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/question.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/relatorios.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/rotamarcacao.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/roteiroincomp.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/roteirooff.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/roteiroon.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/selimpressora.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/selimpressoramaior.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/stop.png create mode 100644 impressao-simultanea-master/res/drawable-mdpi/warning.png create mode 100644 impressao-simultanea-master/res/drawable-xhdpi/ic_launcher.png create mode 100644 impressao-simultanea-master/res/drawable/borders.xml create mode 100644 impressao-simultanea-master/res/drawable/botao_bg_selected.xml create mode 100644 impressao-simultanea-master/res/drawable/botao_bg_selector.xml create mode 100644 impressao-simultanea-master/res/drawable/botao_bg_unselected.xml create mode 100644 impressao-simultanea-master/res/drawable/bt_branco.xml create mode 100644 impressao-simultanea-master/res/drawable/bt_preto.xml create mode 100644 impressao-simultanea-master/res/drawable/bt_titulo.xml create mode 100644 impressao-simultanea-master/res/drawable/fundoazulclaro_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/fundobranco_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/fundocinza_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/fundopreto_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/imovel_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/imovelcondominio_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/lista_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/menu_bg_selected.xml create mode 100644 impressao-simultanea-master/res/drawable/menu_bg_selector.xml create mode 100644 impressao-simultanea-master/res/drawable/menu_bg_unselected.xml create mode 100644 impressao-simultanea-master/res/drawable/rodape_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_anormalidade_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_bg_cell.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_bg_cell_options.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_bg_selected.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_bg_selector.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_bg_unselected.xml create mode 100644 impressao-simultanea-master/res/drawable/tab_text_selector.xml create mode 100644 impressao-simultanea-master/res/drawable/titulo_bg.xml create mode 100644 impressao-simultanea-master/res/drawable/vermelho_bg.xml create mode 100644 impressao-simultanea-master/res/layout/anormalidade_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/camera_activity.xml create mode 100644 impressao-simultanea-master/res/layout/constrast_activity.xml create mode 100644 impressao-simultanea-master/res/layout/conta_activity.xml create mode 100644 impressao-simultanea-master/res/layout/download_arquivo_activity.xml create mode 100644 impressao-simultanea-master/res/layout/finalizar_arquivo_activity.xml create mode 100644 impressao-simultanea-master/res/layout/foto.xml create mode 100644 impressao-simultanea-master/res/layout/hidrometro_activity.xml create mode 100644 impressao-simultanea-master/res/layout/hidrometro_agua_activity.xml create mode 100644 impressao-simultanea-master/res/layout/imagem_salvar_activity.xml create mode 100644 impressao-simultanea-master/res/layout/informacoes_gerais.xml create mode 100644 impressao-simultanea-master/res/layout/legenda_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/lista_imoveis.xml create mode 100644 impressao-simultanea-master/res/layout/lista_imoveis_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/lista_impressoras.xml create mode 100644 impressao-simultanea-master/res/layout/lista_impressoras_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/lista_menu_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/lista_relatorio_por_quadra.xml create mode 100644 impressao-simultanea-master/res/layout/lista_relatorio_por_quadra_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/menu.xml create mode 100644 impressao-simultanea-master/res/layout/relatorio_activity.xml create mode 100644 impressao-simultanea-master/res/layout/selecionar_arquivo_activity.xml create mode 100644 impressao-simultanea-master/res/layout/selecionar_arquivo_adapter.xml create mode 100644 impressao-simultanea-master/res/layout/spinner_layout.xml create mode 100644 impressao-simultanea-master/res/layout/tabs_activity.xml create mode 100644 impressao-simultanea-master/res/layout/tabs_bg.xml create mode 100644 impressao-simultanea-master/res/layout/tela_configurar_impressora.xml create mode 100644 impressao-simultanea-master/res/layout/tela_login.xml create mode 100644 impressao-simultanea-master/res/values/colors.xml create mode 100644 impressao-simultanea-master/res/values/strings.xml create mode 100644 impressao-simultanea-master/res/values/styles.xml create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/AnormalidadeAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/LegendaAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaImovelAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaImpressoraAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaMenuAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/ListaRelatorioPorQuadraAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/adapters/SelecionarArquivoAdapter.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/background/BackGroundTaskEnviarImovelOnline.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/background/BackgroundTask.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/CategoriaSubcategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoAnormalidadeAcao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoAnteriores.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoHistorico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoTarifaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoTarifaFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ConsumoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaCategoriaConsumoFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaComunicado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaDebito.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ContaImposto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/CreditoRealizado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/DebitoCobrado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/FaturamentoSituacaoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/Foto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/HidrometroInstalado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ImovelConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ImovelRevisitar.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/LeituraAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/LogFinalizacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/ObjetoBasico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/QualidadeAgua.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/SequencialRotaMarcacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/SistemaParametros.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/CameraHelper.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/Impressora.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/Menu.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/RateioConsumoHelper.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/bean/helpers/RelatorioPorQuadra.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/conexao/ComunicacaoWebServer.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/conexao/ConexaoEnviaImovel.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/conexao/ConexaoFoto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/conexao/ConexaoWebServer.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaBasico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarAnormalidadeConsumo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarConexaoImpressora.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarErro.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarFoto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarImpressao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarLeitura.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorAlertaValidarMensagemConexao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorBasico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorCategoriaSubcategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoAnormalidadeAcao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoAnteriores.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoHistorico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoTarifaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoTarifaFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConsumoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaCategoriaConsumoFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaDebito.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaImposto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaOracle.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorContaPostgres.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorCreditoRealizado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorDebitoCobrado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorFoto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorHidrometroInstalado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovel.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelOracle.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelPostgres.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImovelRevisitar.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorImpressao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorLeituraAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorLogFinalizacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorQualidadeAgua.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorRateioImovelCondominio.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorRetorno.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorSequencialRotaMarcacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/ControladorSistemaParametros.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarAnormalidadeConsumo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarConexaoImpressora.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarImpressao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarLeitura.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorAlertaValidarMensagemConexao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorBasico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorCategoriaSubcategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoAnormalidadeAcao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoAnteriores.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoHistorico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoTarifaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoTarifaFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConsumoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaCategoriaConsumoFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaDebito.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorContaImposto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorCreditoRealizado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorDebitoCobrado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorFoto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorHidrometroInstalado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImovel.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImovelConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImovelRevisitar.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorImpressao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorLeituraAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorLogFinalizacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorQualidadeAgua.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorRetorno.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorSequencialRotaMarcacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/controladores/IControladorSistemaParametros.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/ConexaoImpressoraException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/ControladorException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/FachadaException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/NegocioException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/RepositorioException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/StatusImpressoraException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/excecoes/ZebraException.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/fachada/Fachada.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/fachada/FachadaWebServer.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/BaseActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/BaseTabActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/CameraActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/ConstrasteActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/ContaActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/ControladorAlerta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/CustomDrawableView.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/DownloadApkActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/DownloadArquivoActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/FinalizaArquivoActivty.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/FotoActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/HidrometroAguaActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/HidrometroBaseActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/HidrometroEsgotoActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/ImagemSalvarActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/InformacoesGeraisActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/ListaImoveisActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/ListaImpressorasActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/LoginActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/MenuActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/RateioActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/RelatorioActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/RelatorioPorQuadraActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/SelecionarArquivoActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/gui/TabsActivity.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/CodigoDeBarras.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ExtratoMacroCaern.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ExtratoMacroCompesa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/Impressao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoCaer.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoCaern.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoCompesa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoContaCaer.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoContaCaern.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ImpressaoContaCompesaNovo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/NotificacaoDebitoCaer.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/NotificacaoDebitoCaern.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/NotificacaoDebitoCompesa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/impressao/ZebraUtils.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/io/ArquivoRetorno.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/io/ExportBancoDados.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/io/GZip.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/io/MessageDispatcher.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/BDScript.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/CarregaBD.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioBasico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioCategoriaSubcategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoAnormalidadeAcao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoAnteriores.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoHistorico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoTarifaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoTarifaFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioConsumoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaCategoriaConsumoFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaDebito.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioContaImposto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioCreditoRealizado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioDebitoCobrado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioFaturamentoSituacaoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioFoto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioHidrometroInstalado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioImovelConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioImovelRevisitar.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioLeituraAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioQualidadeAgua.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioSequencialRotaMarcacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/IRepositorioSistemaParametros.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioBasico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioCategoriaSubcategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoAnormalidadeAcao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoAnteriores.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoHistorico.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoTarifaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoTarifaFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioConsumoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaCategoria.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaCategoriaConsumoFaixa.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaDebito.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioContaImposto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioCreditoRealizado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioDebitoCobrado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioFaturamentoSituacaoTipo.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioFoto.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioHidrometroInstalado.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioImovelConta.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioImovelRevisitar.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioLeituraAnormalidade.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioQualidadeAgua.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioSequencialRotaMarcacao.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/repositorios/RepositorioSistemaParametros.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/Bluetooth.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/ConstantesSistema.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/Criptografia.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/Device.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/SQLiteHelper.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/SettingsHelper.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/TesteGeral.java create mode 100644 impressao-simultanea-master/src/com/br/ipad/isc/util/Util.java diff --git a/atualizacao-cadastral-master/.classpath b/atualizacao-cadastral-master/.classpath new file mode 100644 index 0000000..5cb3007 --- /dev/null +++ b/atualizacao-cadastral-master/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/atualizacao-cadastral-master/.gitignore b/atualizacao-cadastral-master/.gitignore new file mode 100644 index 0000000..db2b0fa --- /dev/null +++ b/atualizacao-cadastral-master/.gitignore @@ -0,0 +1,3 @@ +.settings/ +bin/ +gen/ \ No newline at end of file diff --git a/atualizacao-cadastral-master/.project b/atualizacao-cadastral-master/.project new file mode 100644 index 0000000..7503941 --- /dev/null +++ b/atualizacao-cadastral-master/.project @@ -0,0 +1,33 @@ + + + atualizacao-cadastral + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/atualizacao-cadastral-master/AndroidManifest.xml b/atualizacao-cadastral-master/AndroidManifest.xml new file mode 100644 index 0000000..900ab2c --- /dev/null +++ b/atualizacao-cadastral-master/AndroidManifest.xml @@ -0,0 +1,232 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/README.md b/atualizacao-cadastral-master/README.md new file mode 100644 index 0000000..0dfe0fb --- /dev/null +++ b/atualizacao-cadastral-master/README.md @@ -0,0 +1,4 @@ +# atualizacao-cadastral +Aplicativo Android de Atualização Cadastral + +https://github.com/consensotec?tab=repositories diff --git a/atualizacao-cadastral-master/assets/theme.xml b/atualizacao-cadastral-master/assets/theme.xml new file mode 100644 index 0000000..0e8a2b1 --- /dev/null +++ b/atualizacao-cadastral-master/assets/theme.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/atualizacao-cadastral-master/build.xml b/atualizacao-cadastral-master/build.xml new file mode 100644 index 0000000..cfccc43 --- /dev/null +++ b/atualizacao-cadastral-master/build.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/libs/android-support-v4.jar b/atualizacao-cadastral-master/libs/android-support-v4.jar new file mode 100644 index 0000000..018c127 Binary files /dev/null and b/atualizacao-cadastral-master/libs/android-support-v4.jar differ diff --git a/atualizacao-cadastral-master/proguard-project.txt b/atualizacao-cadastral-master/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/atualizacao-cadastral-master/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/atualizacao-cadastral-master/project.properties b/atualizacao-cadastral-master/project.properties new file mode 100644 index 0000000..0840b4a --- /dev/null +++ b/atualizacao-cadastral-master/project.properties @@ -0,0 +1,14 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-15 diff --git a/atualizacao-cadastral-master/res/anim/slide_in_left.xml b/atualizacao-cadastral-master/res/anim/slide_in_left.xml new file mode 100644 index 0000000..06658a1 --- /dev/null +++ b/atualizacao-cadastral-master/res/anim/slide_in_left.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/anim/slide_in_right.xml b/atualizacao-cadastral-master/res/anim/slide_in_right.xml new file mode 100644 index 0000000..acdc7e2 --- /dev/null +++ b/atualizacao-cadastral-master/res/anim/slide_in_right.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/anim/slide_out_left.xml b/atualizacao-cadastral-master/res/anim/slide_out_left.xml new file mode 100644 index 0000000..178429f --- /dev/null +++ b/atualizacao-cadastral-master/res/anim/slide_out_left.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/anim/slide_out_right.xml b/atualizacao-cadastral-master/res/anim/slide_out_right.xml new file mode 100644 index 0000000..78a5b33 --- /dev/null +++ b/atualizacao-cadastral-master/res/anim/slide_out_right.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable-hdpi/camera.png b/atualizacao-cadastral-master/res/drawable-hdpi/camera.png new file mode 100644 index 0000000..611c260 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-hdpi/camera.png differ diff --git a/atualizacao-cadastral-master/res/drawable-hdpi/exclude.png b/atualizacao-cadastral-master/res/drawable-hdpi/exclude.png new file mode 100644 index 0000000..14769b4 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-hdpi/exclude.png differ diff --git a/atualizacao-cadastral-master/res/drawable-hdpi/ic_action_search.png b/atualizacao-cadastral-master/res/drawable-hdpi/ic_action_search.png new file mode 100644 index 0000000..67de12d Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-hdpi/ic_action_search.png differ diff --git a/atualizacao-cadastral-master/res/drawable-hdpi/ic_launcher.png b/atualizacao-cadastral-master/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..fba1ff0 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-hdpi/ic_launcher.png differ diff --git a/atualizacao-cadastral-master/res/drawable-hdpi/line.png b/atualizacao-cadastral-master/res/drawable-hdpi/line.png new file mode 100644 index 0000000..8918776 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-hdpi/line.png differ diff --git a/atualizacao-cadastral-master/res/drawable-hdpi/warning.png b/atualizacao-cadastral-master/res/drawable-hdpi/warning.png new file mode 100644 index 0000000..d771baa Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-hdpi/warning.png differ diff --git a/atualizacao-cadastral-master/res/drawable-ldpi/camera.png b/atualizacao-cadastral-master/res/drawable-ldpi/camera.png new file mode 100644 index 0000000..611c260 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-ldpi/camera.png differ diff --git a/atualizacao-cadastral-master/res/drawable-ldpi/exclude.png b/atualizacao-cadastral-master/res/drawable-ldpi/exclude.png new file mode 100644 index 0000000..14769b4 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-ldpi/exclude.png differ diff --git a/atualizacao-cadastral-master/res/drawable-ldpi/line.png b/atualizacao-cadastral-master/res/drawable-ldpi/line.png new file mode 100644 index 0000000..8918776 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-ldpi/line.png differ diff --git a/atualizacao-cadastral-master/res/drawable-ldpi/warning.png b/atualizacao-cadastral-master/res/drawable-ldpi/warning.png new file mode 100644 index 0000000..d771baa Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-ldpi/warning.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/backgroundcabecalho.png b/atualizacao-cadastral-master/res/drawable-mdpi/backgroundcabecalho.png new file mode 100644 index 0000000..774c52c Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/backgroundcabecalho.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/backgroundcompleto.jpg b/atualizacao-cadastral-master/res/drawable-mdpi/backgroundcompleto.jpg new file mode 100644 index 0000000..8fd8d22 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/backgroundcompleto.jpg differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/bgproximo.jpg b/atualizacao-cadastral-master/res/drawable-mdpi/bgproximo.jpg new file mode 100644 index 0000000..b151a61 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/bgproximo.jpg differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/botaoentrar.png b/atualizacao-cadastral-master/res/drawable-mdpi/botaoentrar.png new file mode 100644 index 0000000..463cee1 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/botaoentrar.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/btlupa.jpg b/atualizacao-cadastral-master/res/drawable-mdpi/btlupa.jpg new file mode 100644 index 0000000..6014578 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/btlupa.jpg differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/btnadicionar.png b/atualizacao-cadastral-master/res/drawable-mdpi/btnadicionar.png new file mode 100644 index 0000000..f071539 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/btnadicionar.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/btnanterior.png b/atualizacao-cadastral-master/res/drawable-mdpi/btnanterior.png new file mode 100644 index 0000000..c0d8975 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/btnanterior.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/btnproximo.png b/atualizacao-cadastral-master/res/drawable-mdpi/btnproximo.png new file mode 100644 index 0000000..1a6f7c1 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/btnproximo.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/btnremover.png b/atualizacao-cadastral-master/res/drawable-mdpi/btnremover.png new file mode 100644 index 0000000..6b21746 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/btnremover.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/camera.png b/atualizacao-cadastral-master/res/drawable-mdpi/camera.png new file mode 100644 index 0000000..611c260 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/camera.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/chart_bar.png b/atualizacao-cadastral-master/res/drawable-mdpi/chart_bar.png new file mode 100644 index 0000000..321d5c1 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/chart_bar.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/erro.png b/atualizacao-cadastral-master/res/drawable-mdpi/erro.png new file mode 100644 index 0000000..4adf6c4 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/erro.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/exclude.png b/atualizacao-cadastral-master/res/drawable-mdpi/exclude.png new file mode 100644 index 0000000..14769b4 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/exclude.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/ic_action_search.png b/atualizacao-cadastral-master/res/drawable-mdpi/ic_action_search.png new file mode 100644 index 0000000..134d549 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/ic_action_search.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/ic_launcher.png b/atualizacao-cadastral-master/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..72a445d Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/ic_launcher.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/icon_back.png.png b/atualizacao-cadastral-master/res/drawable-mdpi/icon_back.png.png new file mode 100644 index 0000000..bfd2050 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/icon_back.png.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/icon_salvar.png b/atualizacao-cadastral-master/res/drawable-mdpi/icon_salvar.png new file mode 100644 index 0000000..7febadb Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/icon_salvar.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/icone.PNG b/atualizacao-cadastral-master/res/drawable-mdpi/icone.PNG new file mode 100644 index 0000000..a35a7d8 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/icone.PNG differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/line.png b/atualizacao-cadastral-master/res/drawable-mdpi/line.png new file mode 100644 index 0000000..8918776 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/line.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/logo.png b/atualizacao-cadastral-master/res/drawable-mdpi/logo.png new file mode 100644 index 0000000..79f4dee Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/logo.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/ok.png b/atualizacao-cadastral-master/res/drawable-mdpi/ok.png new file mode 100644 index 0000000..9195a46 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/ok.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/quadra_icon.png b/atualizacao-cadastral-master/res/drawable-mdpi/quadra_icon.png new file mode 100644 index 0000000..9358282 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/quadra_icon.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/tab.png b/atualizacao-cadastral-master/res/drawable-mdpi/tab.png new file mode 100644 index 0000000..49180a9 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/tab.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/tegroteiro.png b/atualizacao-cadastral-master/res/drawable-mdpi/tegroteiro.png new file mode 100644 index 0000000..7979314 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/tegroteiro.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/transfer.png b/atualizacao-cadastral-master/res/drawable-mdpi/transfer.png new file mode 100644 index 0000000..a0bf3eb Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/transfer.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/update.png b/atualizacao-cadastral-master/res/drawable-mdpi/update.png new file mode 100644 index 0000000..7033c4c Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/update.png differ diff --git a/atualizacao-cadastral-master/res/drawable-mdpi/warning.png b/atualizacao-cadastral-master/res/drawable-mdpi/warning.png new file mode 100644 index 0000000..d771baa Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-mdpi/warning.png differ diff --git a/atualizacao-cadastral-master/res/drawable-xhdpi/ic_action_search.png b/atualizacao-cadastral-master/res/drawable-xhdpi/ic_action_search.png new file mode 100644 index 0000000..d699c6b Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-xhdpi/ic_action_search.png differ diff --git a/atualizacao-cadastral-master/res/drawable-xhdpi/ic_launcher.png b/atualizacao-cadastral-master/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..002e7b0 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable-xhdpi/ic_launcher.png differ diff --git a/atualizacao-cadastral-master/res/drawable/borders.xml b/atualizacao-cadastral-master/res/drawable/borders.xml new file mode 100644 index 0000000..99a2610 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/borders.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/botao_bg_selected.xml b/atualizacao-cadastral-master/res/drawable/botao_bg_selected.xml new file mode 100644 index 0000000..bd7caf0 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/botao_bg_selected.xml @@ -0,0 +1,16 @@ + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/botao_bg_selector.xml b/atualizacao-cadastral-master/res/drawable/botao_bg_selector.xml new file mode 100644 index 0000000..0ba8446 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/botao_bg_selector.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/atualizacao-cadastral-master/res/drawable/botao_bg_selector_login.xml b/atualizacao-cadastral-master/res/drawable/botao_bg_selector_login.xml new file mode 100644 index 0000000..78ad039 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/botao_bg_selector_login.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/atualizacao-cadastral-master/res/drawable/botao_bg_unselected.xml b/atualizacao-cadastral-master/res/drawable/botao_bg_unselected.xml new file mode 100644 index 0000000..250faa8 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/botao_bg_unselected.xml @@ -0,0 +1,16 @@ + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/botao_bg_unselected_login.xml b/atualizacao-cadastral-master/res/drawable/botao_bg_unselected_login.xml new file mode 100644 index 0000000..15e1909 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/botao_bg_unselected_login.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/bt_azul.xml b/atualizacao-cadastral-master/res/drawable/bt_azul.xml new file mode 100644 index 0000000..f759758 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/bt_azul.xml @@ -0,0 +1,15 @@ + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/bt_branco.xml b/atualizacao-cadastral-master/res/drawable/bt_branco.xml new file mode 100644 index 0000000..3792448 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/bt_branco.xml @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/bt_preto.xml b/atualizacao-cadastral-master/res/drawable/bt_preto.xml new file mode 100644 index 0000000..c993040 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/bt_preto.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/bt_titulo.xml b/atualizacao-cadastral-master/res/drawable/bt_titulo.xml new file mode 100644 index 0000000..551cbae --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/bt_titulo.xml @@ -0,0 +1,13 @@ + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/cabecalho.xml b/atualizacao-cadastral-master/res/drawable/cabecalho.xml new file mode 100644 index 0000000..229f487 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/cabecalho.xml @@ -0,0 +1,11 @@ + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/camera.png b/atualizacao-cadastral-master/res/drawable/camera.png new file mode 100644 index 0000000..611c260 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable/camera.png differ diff --git a/atualizacao-cadastral-master/res/drawable/fundo_bg_rodape.xml b/atualizacao-cadastral-master/res/drawable/fundo_bg_rodape.xml new file mode 100644 index 0000000..ab3bc11 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/fundo_bg_rodape.xml @@ -0,0 +1,14 @@ + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/fundoazulclaro_bg.xml b/atualizacao-cadastral-master/res/drawable/fundoazulclaro_bg.xml new file mode 100644 index 0000000..d4b61cb --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/fundoazulclaro_bg.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/fundobranco_bg.xml b/atualizacao-cadastral-master/res/drawable/fundobranco_bg.xml new file mode 100644 index 0000000..994ff77 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/fundobranco_bg.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/fundocinza_bg.xml b/atualizacao-cadastral-master/res/drawable/fundocinza_bg.xml new file mode 100644 index 0000000..a2bccd0 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/fundocinza_bg.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/fundopreto_bg.xml b/atualizacao-cadastral-master/res/drawable/fundopreto_bg.xml new file mode 100644 index 0000000..0661ade --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/fundopreto_bg.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/icon_info.png b/atualizacao-cadastral-master/res/drawable/icon_info.png new file mode 100644 index 0000000..48bf9f6 Binary files /dev/null and b/atualizacao-cadastral-master/res/drawable/icon_info.png differ diff --git a/atualizacao-cadastral-master/res/drawable/imovel_bg.xml b/atualizacao-cadastral-master/res/drawable/imovel_bg.xml new file mode 100644 index 0000000..6556d2d --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/imovel_bg.xml @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/imovelcondominio_bg.xml b/atualizacao-cadastral-master/res/drawable/imovelcondominio_bg.xml new file mode 100644 index 0000000..1409c27 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/imovelcondominio_bg.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/lista_bg.xml b/atualizacao-cadastral-master/res/drawable/lista_bg.xml new file mode 100644 index 0000000..a057dd6 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/lista_bg.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/menu_bg_selected.xml b/atualizacao-cadastral-master/res/drawable/menu_bg_selected.xml new file mode 100644 index 0000000..8be6b06 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/menu_bg_selected.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/menu_bg_selector.xml b/atualizacao-cadastral-master/res/drawable/menu_bg_selector.xml new file mode 100644 index 0000000..18f2d5b --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/menu_bg_selector.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/atualizacao-cadastral-master/res/drawable/menu_bg_unselected.xml b/atualizacao-cadastral-master/res/drawable/menu_bg_unselected.xml new file mode 100644 index 0000000..809d49e --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/menu_bg_unselected.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/rodape_bg.xml b/atualizacao-cadastral-master/res/drawable/rodape_bg.xml new file mode 100644 index 0000000..6767a45 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/rodape_bg.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/tab_anormalidade_bg.xml b/atualizacao-cadastral-master/res/drawable/tab_anormalidade_bg.xml new file mode 100644 index 0000000..c06210f --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_anormalidade_bg.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/tab_bg_cell.xml b/atualizacao-cadastral-master/res/drawable/tab_bg_cell.xml new file mode 100644 index 0000000..f546f15 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_bg_cell.xml @@ -0,0 +1,11 @@ + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/tab_bg_cell_options.xml b/atualizacao-cadastral-master/res/drawable/tab_bg_cell_options.xml new file mode 100644 index 0000000..7c104f1 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_bg_cell_options.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/atualizacao-cadastral-master/res/drawable/tab_bg_selected.xml b/atualizacao-cadastral-master/res/drawable/tab_bg_selected.xml new file mode 100644 index 0000000..a1be313 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_bg_selected.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/tab_bg_selector.xml b/atualizacao-cadastral-master/res/drawable/tab_bg_selector.xml new file mode 100644 index 0000000..bce1697 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_bg_selector.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + diff --git a/atualizacao-cadastral-master/res/drawable/tab_bg_unselected.xml b/atualizacao-cadastral-master/res/drawable/tab_bg_unselected.xml new file mode 100644 index 0000000..4e2a9ad --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_bg_unselected.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/tab_text_selector.xml b/atualizacao-cadastral-master/res/drawable/tab_text_selector.xml new file mode 100644 index 0000000..2ff38bb --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/tab_text_selector.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/titulo_bg.xml b/atualizacao-cadastral-master/res/drawable/titulo_bg.xml new file mode 100644 index 0000000..0fead45 --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/titulo_bg.xml @@ -0,0 +1,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/drawable/vermelho_bg.xml b/atualizacao-cadastral-master/res/drawable/vermelho_bg.xml new file mode 100644 index 0000000..08a28bb --- /dev/null +++ b/atualizacao-cadastral-master/res/drawable/vermelho_bg.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/layout/arquivo_adapter.xml b/atualizacao-cadastral-master/res/layout/arquivo_adapter.xml new file mode 100644 index 0000000..c646948 --- /dev/null +++ b/atualizacao-cadastral-master/res/layout/arquivo_adapter.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/layout/arquivo_dividido_selecionar.xml b/atualizacao-cadastral-master/res/layout/arquivo_dividido_selecionar.xml new file mode 100644 index 0000000..0ed22c2 --- /dev/null +++ b/atualizacao-cadastral-master/res/layout/arquivo_dividido_selecionar.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/layout/arquivo_selecionar.xml b/atualizacao-cadastral-master/res/layout/arquivo_selecionar.xml new file mode 100644 index 0000000..8b11a2a --- /dev/null +++ b/atualizacao-cadastral-master/res/layout/arquivo_selecionar.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/layout/categoria_imovel_inserir.xml b/atualizacao-cadastral-master/res/layout/categoria_imovel_inserir.xml new file mode 100644 index 0000000..27936c1 --- /dev/null +++ b/atualizacao-cadastral-master/res/layout/categoria_imovel_inserir.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/layout/versao_errada.xml b/atualizacao-cadastral-master/res/layout/versao_errada.xml new file mode 100644 index 0000000..815f83d --- /dev/null +++ b/atualizacao-cadastral-master/res/layout/versao_errada.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/menu/activity_aba.xml b/atualizacao-cadastral-master/res/menu/activity_aba.xml new file mode 100644 index 0000000..cfc10fd --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/activity_aba.xml @@ -0,0 +1,6 @@ + + + diff --git a/atualizacao-cadastral-master/res/menu/endereco_aba.xml b/atualizacao-cadastral-master/res/menu/endereco_aba.xml new file mode 100644 index 0000000..77f358b --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/endereco_aba.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/menu/fotos_aba.xml b/atualizacao-cadastral-master/res/menu/fotos_aba.xml new file mode 100644 index 0000000..77f358b --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/fotos_aba.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/menu/ligacao_aba.xml b/atualizacao-cadastral-master/res/menu/ligacao_aba.xml new file mode 100644 index 0000000..77f358b --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/ligacao_aba.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/menu/logradouro_inserir.xml b/atualizacao-cadastral-master/res/menu/logradouro_inserir.xml new file mode 100644 index 0000000..77f358b --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/logradouro_inserir.xml @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/menu/menu.xml b/atualizacao-cadastral-master/res/menu/menu.xml new file mode 100644 index 0000000..ce294a6 --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/menu.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/menu/menu_sobre.xml b/atualizacao-cadastral-master/res/menu/menu_sobre.xml new file mode 100644 index 0000000..28f88e7 --- /dev/null +++ b/atualizacao-cadastral-master/res/menu/menu_sobre.xml @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/atualizacao-cadastral-master/res/values-large/dimens.xml b/atualizacao-cadastral-master/res/values-large/dimens.xml new file mode 100644 index 0000000..5c4a502 --- /dev/null +++ b/atualizacao-cadastral-master/res/values-large/dimens.xml @@ -0,0 +1,7 @@ + + + 8dp + 16dp + 16dp + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/res/values-v11/styles.xml b/atualizacao-cadastral-master/res/values-v11/styles.xml new file mode 100644 index 0000000..d408cbc --- /dev/null +++ b/atualizacao-cadastral-master/res/values-v11/styles.xml @@ -0,0 +1,5 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ArquivoAdapter.java b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ArquivoAdapter.java new file mode 100644 index 0000000..f735e8d --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ArquivoAdapter.java @@ -0,0 +1,65 @@ +package com.br.gsanac.adapter; + +import java.util.List; + +import android.content.Context; +import android.view.Gravity; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.TextView; + +import com.br.gsanac.R; + + +/** + * @author Arthur Carvalho + */ +public class ArquivoAdapter extends BaseAdapter { + + private LayoutInflater inflater; + + private List files; + + private Context context; + + public ArquivoAdapter(Context context, List files) { + this.context = context; + this.files = files; + inflater = (LayoutInflater) this.context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + } + + @Override + public int getCount() { + return files.size(); + } + + @Override + public Object getItem(int position) { + return files.get(position); + } + + @Override + public long getItemId(int position) { + return position; + } + + @Override + public View getView(int position, View view, ViewGroup parent) { + + if (view == null) { + view = inflater.inflate(R.layout.arquivo_adapter, null); + } + + TextView tvFilename = (TextView) view.findViewById(R.id.name); + tvFilename.setText(files.get(position)); + tvFilename.setGravity(Gravity.CENTER_VERTICAL); + tvFilename.setHeight(50); + + view.setTag(getItem(position)); + + return view; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatorioCadastradorAdapter.java b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatorioCadastradorAdapter.java new file mode 100644 index 0000000..4dfbd33 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatorioCadastradorAdapter.java @@ -0,0 +1,125 @@ +package com.br.gsanac.adapter; + +import java.util.ArrayList; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.bean.RelatorioOcorrenciaCadastro; +import com.br.gsanac.entidades.bean.RelatorioPorCadastrador; +import com.br.gsanac.util.Util; + +import android.content.Context; +import android.view.LayoutInflater; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.animation.TranslateAnimation; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.LinearLayout; +import android.widget.TextView; + +public class ListaRelatorioCadastradorAdapter extends BaseAdapter implements OnClickListener{ + + private LayoutInflater inflater; + private ArrayList relatorio; + private Context c; + + public ListaRelatorioCadastradorAdapter(Context context, ArrayList relatorio){ + c = context; + this.relatorio = relatorio; + inflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + } + + @Override + public int getCount() { + + return relatorio.size(); + } + + @Override + public Object getItem(int position) { + + return relatorio.get(position); + } + + @Override + public long getItemId(int position) { + + return position; + } + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + if(convertView == null){ + convertView = inflater.inflate(R.layout.lista_relatorio_cadastrador_adapter, null); + } + + convertView.setOnClickListener(this); + + int totalImoveis = relatorio.get(position).getTotalImoveis().intValue(); + int totalImoveisAtualizados = relatorio.get(position).getTotalImoveisAtualizados().intValue(); + int totalImoveisIncluidos = relatorio.get(position).getTotalImoveisIncluidos().intValue(); + int totalImoveisVisitados = relatorio.get(position).getTotalImoveisVisitados(); + String desCadastrador = relatorio.get(position).getLogin(); + double porcentagem = ((float) totalImoveisAtualizados / (float) totalImoveis) * 100; + + TextView imoveisAtualizados = (TextView) convertView.findViewById(R.id.totalImvAtualizado); + imoveisAtualizados.setText("Total de Imveis Atualizados: " + totalImoveisAtualizados); + + TextView imoveisIncluidos = (TextView) convertView.findViewById(R.id.totalImvIncluido); + imoveisIncluidos.setText("Total de Imveis Incluidos: " + totalImoveisIncluidos); + + TextView imoveisVisitados = (TextView) convertView.findViewById(R.id.totalImvIVisitado); + imoveisVisitados.setText("Total de Imveis Visitados: " + totalImoveisVisitados); + + TextView percentualPorcadastrador = (TextView) convertView.findViewById(R.id.percentualPorCadastrador); + percentualPorcadastrador.setText(String.format("%.1f %s", porcentagem, "%" )); + + TextView descricaocadastrador = (TextView) convertView.findViewById(R.id.descricaoCadastrador); + + if(Util.isLong(desCadastrador)){ + descricaocadastrador.setText(Util.formatarCpf(desCadastrador)); + }else{ + descricaocadastrador.setText(desCadastrador.toUpperCase()); + } + + convertView.setTag(getItem(position)); + + + return convertView; + } + + @Override + public void onClick(View v) { + + + LinearLayout detalheCadastrador= (LinearLayout) v.findViewById(R.id.detalhesCadastrador); + LinearLayout resumoCadstrador = (LinearLayout) v.findViewById(R.id.resumoPorCadastrador); + + + if(detalheCadastrador.getVisibility() == View.VISIBLE){ + + detalheCadastrador.setVisibility(View.GONE); + TranslateAnimation slide = new TranslateAnimation(0, 0, 0, 0 ); + slide.setDuration(1000); + slide.setFillAfter(true); + detalheCadastrador.startAnimation(slide); + + resumoCadstrador.setBackgroundResource(R.drawable.fundocinza_bg); + + + }else{ + + detalheCadastrador.setVisibility(View.VISIBLE); + TranslateAnimation slide = new TranslateAnimation(0, 0, 0, 0 ); + slide.setDuration(1000); + slide.setFillAfter(true); + detalheCadastrador.startAnimation(slide); + + resumoCadstrador.setBackgroundResource(R.drawable.fundoazulclaro_bg); + + } + + + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatoriosOcorrenciaCadastroAdapter.java b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatoriosOcorrenciaCadastroAdapter.java new file mode 100644 index 0000000..8b3c53a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/ListaRelatoriosOcorrenciaCadastroAdapter.java @@ -0,0 +1,122 @@ +package com.br.gsanac.adapter; + +import java.util.ArrayList; +import java.util.zip.Inflater; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.bean.RelatorioOcorrenciaCadastro; + +import android.content.Context; +import android.graphics.Color; +import android.view.LayoutInflater; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.animation.TranslateAnimation; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.LinearLayout; +import android.widget.TextView; + +public class ListaRelatoriosOcorrenciaCadastroAdapter extends BaseAdapter implements OnClickListener{ + + private LayoutInflater inflater; + private ArrayList relatorios; + private Context c; + + public ListaRelatoriosOcorrenciaCadastroAdapter(Context context, ArrayList relatorios){ + c = context; + this.relatorios = relatorios; + inflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + } + + @Override + public int getCount() { + + return relatorios.size(); + } + + @Override + public Object getItem(int position) { + + return relatorios.get(position); + } + + @Override + public long getItemId(int position) { + + return position; + } + + + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + if(convertView == null){ + convertView = inflater.inflate(R.layout.lista_relatorio_ocorrencia_adapter, null); + } + + convertView.setOnClickListener(this); + + int totalImoveis = relatorios.get(position).getTotalImoveis(); + int imoveisAtualizados = relatorios.get(position).getTotalImoveisAtualizados().intValue(); + int imoveisIncluidos = relatorios.get(position).getTotalImoveisIncluidos().intValue(); + int imoveisVisitados = imoveisAtualizados + imoveisIncluidos; + String desOcorrencia = relatorios.get(position).getDescricao(); + double porcentagem = ( (float) imoveisAtualizados / (float) totalImoveis) * 100; + + TextView totalImoveisAtualizados = (TextView) convertView.findViewById(R.id.totalImvAtualizados); + totalImoveisAtualizados.setText("Imveis Atualizados: " + imoveisAtualizados); + + TextView totalImoveisIncluidos = (TextView) convertView.findViewById(R.id.totalImvIncluidos); + totalImoveisIncluidos.setText("Imveis Incluidos: " + imoveisIncluidos); + + TextView totalimoveisVisitados = (TextView) convertView.findViewById(R.id.totalImvIVisitados); + totalimoveisVisitados.setText("Imveis Visitados: " + imoveisVisitados); + + TextView percentualPorOcorrencia = (TextView) convertView.findViewById(R.id.percentualPorOcorrencia); + percentualPorOcorrencia.setText(String.format("%.1f %s", porcentagem, "%" )); + + TextView descricaoOcorrencia = (TextView) convertView.findViewById(R.id.descricaoOcorrencia); + descricaoOcorrencia.setText(desOcorrencia); + + convertView.setTag(getItem(position)); + + + + return convertView; + } + + @Override + public void onClick(View v) { + + LinearLayout detalheOcorrencia = (LinearLayout) v.findViewById(R.id.detalhesOcorrencia); + LinearLayout resumoOcorrencia = (LinearLayout) v.findViewById(R.id.resumoPorOcorrencia); + + + + if(detalheOcorrencia.getVisibility() == v.VISIBLE){ + + detalheOcorrencia.setVisibility(View.GONE); + TranslateAnimation slide = new TranslateAnimation(0, 0, 0, 0 ); + slide.setDuration(1000); + slide.setFillAfter(true); + detalheOcorrencia.startAnimation(slide); + + resumoOcorrencia.setBackgroundResource(R.drawable.fundocinza_bg); + + + }else{ + + detalheOcorrencia.setVisibility(View.VISIBLE); + TranslateAnimation slide = new TranslateAnimation(0, 0, 0, 0 ); + slide.setDuration(1000); + slide.setFillAfter(true); + detalheOcorrencia.startAnimation(slide); + + resumoOcorrencia.setBackgroundResource(R.drawable.fundoazulclaro_bg); + + } + + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/adapter/RoteiroAdapter.java b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/RoteiroAdapter.java new file mode 100644 index 0000000..c64418f --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/adapter/RoteiroAdapter.java @@ -0,0 +1,195 @@ +package com.br.gsanac.adapter; + +import java.util.List; + +import android.content.Context; +import android.graphics.Color; +import android.util.Log; +import android.view.Gravity; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseAdapter; +import android.widget.ImageView; +import android.widget.TextView; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.Roteiro; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + * @author Arthur Carvalho + */ +public class RoteiroAdapter extends BaseAdapter { + + private LayoutInflater inflater; + + private Context context; + + private List listaImovel; + + public RoteiroAdapter(Context context, List list) { + this.context = context; + this.listaImovel = list; + this.inflater = (LayoutInflater) this.context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); + } + + @Override + public int getCount() { + int retorno = 0; + if(listaImovel != null){ + retorno = listaImovel.size(); + } + + return retorno; + } + + @Override + public Object getItem(int position) { + + Object retorno = null; + if(listaImovel != null){ + retorno = listaImovel.get(position); + } + + return retorno; + } + + @Override + public long getItemId(int position) { + return position; + } + + @Override + public View getView(int position, View convertView, ViewGroup parentView) { + + //Recebe o Imovel + ImovelAtlzCadastral imovel = (ImovelAtlzCadastral) listaImovel.get(position); + + if (convertView == null) { + convertView = inflater.inflate(R.layout.roteiro_adapter, null); + } + + convertView.setBackgroundResource(R.drawable.tegroteiro); + Roteiro roteiro = null; + try{ + roteiro = (Roteiro) Fachada.getInstance().pesquisarRoteiro(imovel.getId()); + } catch (FachadaException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + //Exibe o nome do cliente + TextView tvCliente = (TextView) convertView.findViewById(R.id.cliente); + tvCliente.setGravity(Gravity.CENTER_VERTICAL); + tvCliente.setPadding(12, 12, 0, 0); + String nome = ""; + if ( roteiro.getNomeCliente() != null && !roteiro.getNomeCliente().equals("")) { + if ( roteiro.getNomeCliente().length() > 40 ) { + nome = roteiro.getNomeCliente().substring(0,40); + } else { + nome = roteiro.getNomeCliente(); + } + tvCliente.setText(nome); + tvCliente.setTextColor(Color.BLACK); + } else { + tvCliente.setText("CLIENTE NULO"); + tvCliente.setTextColor(Color.BLACK); + } + String endereco = ""; + + if ( roteiro.getDescricaoLogradouroTipo() != null ) { + + endereco = roteiro.getDescricaoLogradouroTipo() + " "; + } + + if ( roteiro.getDescricaoLogradouroTitulo() != null ) { + + endereco += roteiro.getDescricaoLogradouroTitulo() + " "; + } + + endereco += roteiro.getDescricaoLogradouro(); + + + if ( roteiro.getNumeroImovel() != null && !roteiro.getNumeroImovel().equals("") ) { + endereco += ", n " + roteiro.getNumeroImovel(); + } + + + if ( roteiro.getDescricaoBairro() != null ) { + + endereco += " - " + roteiro.getDescricaoBairro(); + } + + //Matricula + String matricula = imovel.getImovelId().toString(); + + TextView tvMatriculaLabel = (TextView) convertView.findViewById(R.id.tvMatriculaLabel); + tvMatriculaLabel.setPadding(12, 0, 0, 0); + tvMatriculaLabel.setTextColor(Color.BLACK); + + TextView tvMatricula = (TextView) convertView.findViewById(R.id.tvMatricula); + tvMatricula.setText(matricula); + tvMatricula.setPadding(3, 0, 0, 0); + tvMatricula.setTextColor(Color.BLACK); + + //Inscricao + String inscricao = imovel.getLocalidadeId() + "." + imovel.getCodigoSetorComercial() + "." + imovel.getNumeroQuadra() + "." + imovel.getNumeroLote() + "." + imovel.getNumeroSubLote(); + + TextView tvInscricaoLabel = (TextView) convertView.findViewById(R.id.tvInscricaoLabel); + tvInscricaoLabel.setText(" - Inscrio:"); + tvInscricaoLabel.setPadding(0, 0, 0, 0); + tvInscricaoLabel.setTextColor(Color.BLACK); + + TextView tvInscricao = (TextView) convertView.findViewById(R.id.tvInscricao); + tvInscricao.setText(inscricao); + tvInscricao.setPadding(3, 0, 0, 0); + tvInscricao.setTextColor(Color.BLACK); + + //Exibe o endereo + TextView tvEndereco = (TextView) convertView.findViewById(R.id.endereco); + tvEndereco.setText(endereco); + tvEndereco.setPadding(12, 0, 0, 0); + tvEndereco.setTextColor(Color.BLACK); + + //Exibe o endereo complemento + String enderecoComplemento = "CEP " + Util.formatarCEP(roteiro.getCodigoCep().toString()) + " - " + imovel.getNomeMunicipio() + " - PE "; + + TextView tvEnderecoComplemento = (TextView) convertView.findViewById(R.id.enderecoComplemento); + tvEnderecoComplemento.setText(enderecoComplemento); + tvEnderecoComplemento.setPadding(12, 0, 0, 0); + tvEnderecoComplemento.setTextColor(Color.BLACK); + + //Exibe a ordem + TextView tvOrdem = (TextView) convertView.findViewById(R.id.ordem); + tvOrdem.setText("Ordem: " + (imovel.getPosicao())); + tvOrdem.setPadding(22, 10, 0, 0); + tvOrdem.setTextColor(Color.BLACK); + + ImageView imgSituation = (ImageView) convertView.findViewById(R.id.imgSituation); + + + if ( imovel.getIndicadorFinalizado() != null ) { + switch (imovel.getIndicadorFinalizado()) { + case ConstantesSistema.PENDENTE: + imgSituation.setImageResource(R.drawable.erro); + break; + case ConstantesSistema.FINALIZADO: + imgSituation.setImageResource(R.drawable.ok); + break; + default: + Log.e(ConstantesSistema.LOG_TAG, "(Error) Imovel ID: " + imovel.getId()); + } + } + + convertView.setTag(getItem(position)); + + return convertView; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/conexao/ComunicacaoWebServer.java b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/ComunicacaoWebServer.java new file mode 100644 index 0000000..c5cbd53 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/ComunicacaoWebServer.java @@ -0,0 +1,653 @@ +package com.br.gsanac.conexao; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.SocketTimeoutException; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; +import java.util.Vector; + +import org.apache.http.HttpResponse; +import org.apache.http.HttpStatus; +import org.apache.http.client.ClientProtocolException; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.http.params.BasicHttpParams; +import org.apache.http.params.HttpConnectionParams; +import org.apache.http.params.HttpParams; + +import android.app.ProgressDialog; +import android.content.Context; +import android.util.Log; + +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.DBLoader; +import com.br.gsanac.util.Util; + + +/** + * @author Arthur Carvalho + */ +public class ComunicacaoWebServer { + + private HttpURLConnection conn = null; + + private Context context = null; + + private StringBuilder fileContent = new StringBuilder(""); + + private static final String REGISTER_TYPE_0 = "00"; + + public ComunicacaoWebServer(Context context) { + super(); + this.context = context; + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param url + * @param params + * @return + * @throws IOException + * @throws MalformedURLException + */ + private InputStream communicate(String url, List params) throws IOException, MalformedURLException { + + InputStream is = null; + + // Mostramos no log qual a url do arquivo que estamos tentando baixar + if (Util.hasParameter(params, ConstantesSistema.DOWNLOAD_FILE)) { + Log.i(ConstantesSistema.LOG_TAG, "Http.downloadArquivo: " + url); + } + + byte[] packParams = Util.packagingParameters(params); + + URL u = new URL(url); + + conn = (HttpURLConnection) u.openConnection(); + + // Setamos os parametros da conexao + conn.setRequestMethod("POST"); + conn.setRequestProperty("Content-Type", "application/octet-stream"); + conn.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.1"); + conn.setRequestProperty("Content-Length", String.valueOf(packParams.length)); + conn.setRequestProperty("Accept-Encoding", "identity"); + /* + * Tanto informamos parametros na requisicao quanto recebemos dados da mesma. Por isso, + * ambas as propriedades estao configuradas para verdadeiro + */ + conn.setDoInput(true); + conn.setDoOutput(true); + conn.setConnectTimeout(300); + // Estabelecemos o canal de conexao + conn.connect(); + + // Enviamos a requisicao em si + conn.getOutputStream().write(packParams); + + /* + * Selecionamos o tamanho do arquivo para que possamos informar a barra de progresso, o seu + * MAX + */ + int fileLenght = 0; + + List values = conn.getHeaderFields().get("content-Length"); + + if (values != null && !values.isEmpty()) { + String sLength = values.get(0); + + if (sLength != null) { + fileLenght = Util.parseStringToInteger(sLength); + } + } + + // Logamos o tamanho do arquivo + Log.i(ConstantesSistema.LOG_TAG, "FileSize: " + fileLenght); + + // Pegamos o retorno da requisicao + is = conn.getInputStream(); + + // Retorna a requisicao para tratamento do tipo de chamada solicitada + return is; + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param operation + * @return + */ + public boolean fileOperation(Byte operation) { + + boolean result = false; + + InputStream is = null; + + if (this.isServerOnline()) { + List params = new ArrayList(2); + params.add(operation); + params.add(new Long(Util.getEnderecoMac(this.context))); + + try { + + is = this.communicate(ConstantesSistema.ACTION, params); + result = loadFileToDatabase(is); + if (result) { + // Enviamos uma mensagem ao GSAN informando que o arquivo foi carregado com + // sucesso + if (!routeInitializationSignal(ConstantesSistema.ARQUIVO_EM_CAMPO)) { + result = false; + } + } else { + result = false; + } + + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + mue.printStackTrace(); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + ioe.printStackTrace(); + } + } + + return result; + + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param operation + * @param progressDialog + * @return + */ + public boolean fileOperation(Byte operation, ProgressDialog progressDialog, String login, String senha) { + + boolean result = false; + + InputStream is = null; + + //verifica se o usuario est online + if (this.isServerOnline()) { + + List params = new ArrayList(2); + params.add(operation); + params.add(login); + params.add(senha); + + try { + //estabelece uma comunicacao com o servidor GSAN + is = this.communicate(ConstantesSistema.ACTION, params); + //retorna o arquivo disponivel - carrega o arquivo retornado. + result = loadFileToDatabase(is, progressDialog); + + //caso o arquivo seja carregado com sucesso + if (result) { + // Enviamos uma mensagem ao GSAN informando que o arquivo foi carregado com sucesso + if (!routeInitializationSignal(ConstantesSistema.ARQUIVO_EM_CAMPO)) { + //caso a mensagem nao chegue ao gsan o sistema remove o banco de dados. + result = false; + + //caso o GSAN nao tenha sido atualizado o sistema remove o indicado de arquivo carregado completo. + SistemaParametros sistemaParametros = new SistemaParametros(); + try{ + + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + if ( sistemaParametros != null && sistemaParametros.getId() != null ) { + + sistemaParametros.setIndicadorArquivoCarregado(Integer.valueOf(2)); + Fachada.getInstance().update(sistemaParametros); + } + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + } else { + //caso o arquivo nao seja carregado com sucesso o sistema remove o banco de dados. + result = false; + } + + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + mue.printStackTrace(); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + ioe.printStackTrace(); + } + } + + return result; + + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param operation + * @param progressDialog + * @param context + * @return + */ + public boolean apkOperation(Byte operation, ProgressDialog progressDialog, Context context) { + + boolean result = false; + + if (this.isServerOnline()) { + List params = new ArrayList(2); + params.add( operation ); + + String strVersaoAtual = Util.getVersaoSistema(context); + Integer intVersaoAtual = Integer.valueOf(strVersaoAtual.replace(".","")); + + + try { + + InputStream in = this.communicate(ConstantesSistema.ACTION, params); + + + BufferedReader reader = new BufferedReader(new InputStreamReader(in)); + StringBuilder sb = new StringBuilder(); + String line = null; + String strNovaVersao = null; + Integer intNovaVersao = null; + + while ((line = reader.readLine()) != null) { + sb.append(line + "\n"); + } + if(sb.length() != 0){ + strNovaVersao = sb.substring(1,sb.length()-1); + if(strNovaVersao != ""){ + strNovaVersao = strNovaVersao.replace(".", ""); + intNovaVersao = Integer.valueOf(strNovaVersao); + } + } + + if(intNovaVersao != null){ + if(intNovaVersao > intVersaoAtual){ + result = true; + } + } + + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + mue.printStackTrace(); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + ioe.printStackTrace(); + } + } + + return result; + + } + + /** + * Verifica se o servidor do GSAN está online + * + * @autor Bruno Barros + * @date 01/09/2011 + * @return - Caso online, true, senão false + */ + public boolean isServerOnline() { + + int status = 0; + + try { + HttpGet request = new HttpGet(ConstantesSistema.GSAN_HOST); + + HttpParams httpParameters = new BasicHttpParams(); + + HttpConnectionParams.setConnectionTimeout(httpParameters, 3000); + HttpClient httpClient = new DefaultHttpClient(httpParameters); + HttpResponse response = httpClient.execute(request); + + status = response.getStatusLine().getStatusCode(); + + } catch (SocketTimeoutException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } catch (ClientProtocolException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } catch (IOException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } + + return (status == HttpStatus.SC_OK); + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param is + * @return + * @throws IOException + */ + public boolean loadFileToDatabase(InputStream is) throws IOException { + + BufferedReader buff = new BufferedReader(new InputStreamReader(is, "ISO-8859-1")); + + String line = ""; + + boolean sucess = true; + DBLoader.CONTADOR_IMOVEL = 0; + while ((line = buff.readLine()) != null) { + try { + if (line.substring(0, 1).equals("#")) { + sucess = false; + break; + } else { + line = line.replace("*", ""); + DBLoader.carregarBancoDados(line, null); + } + } catch (RepositorioException re) { + Log.e(ConstantesSistema.LOG_TAG, re.getMessage() + " " + re.getCause()); + re.printStackTrace(); + } + } + + return sucess; + } + + /** + * Metodo responsavel por carregar o arquivo de atualizacao cadastral no banco de dados do tablet. + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param is + * @param progressDialog + * @return + * @throws IOException + */ + public boolean loadFileToDatabase(InputStream is, ProgressDialog progressDialog) throws IOException { + + + // Cria um arquivo para que ele possa ser compartilhado entre outros usuarios. + File file = new File(ConstantesSistema.SDCARD_GSANAC_FILES_PATH + "/" + "Arquivo" + ".txt"); + FileOutputStream fileOut = null; + fileOut = new FileOutputStream(file); + + + BufferedReader buff = new BufferedReader(new InputStreamReader(is)); + + String line = ""; + + boolean sucess = true; + + //Lemos a primeira linha + DBLoader.CONTADOR_IMOVEL = 0; + Integer numberLine = new Integer(0); + while ((line = buff.readLine()) != null) { + try { + if (line.substring(0, 1).equals("#")) { + sucess = false; + break; + } else { + numberLine++; + line = line.replace("*", ""); + //armazena os registros no banco de dados do tablet + DBLoader.carregarBancoDados(line, null); + + fileOut.write(line.getBytes()); + String br = "\n"; + fileOut.write(br.getBytes()); + + progressDialog.setProgress((int) (((double) numberLine / (double) 500) * 100)); + progressDialog.setSecondaryProgress((int) (((double) numberLine / (double) 500) * 100)); + } + + } catch (RepositorioException re) { + Log.e(ConstantesSistema.LOG_TAG, re.getMessage() + " " + re.getCause()); + re.printStackTrace(); + } + } + + try{ + + //Renomeia o arquivo com o nome correto. + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + if ( sistemaParametros != null && sistemaParametros.getDescricaoArquivo() != null ) { + + File fileNovo = new File(ConstantesSistema.SDCARD_GSANAC_FILES_PATH + "/" + sistemaParametros.getDescricaoArquivo() ); + file.renameTo(fileNovo); + + if ( sistemaParametros.getIndicadorArquivoCarregado() != null && sistemaParametros.getIndicadorArquivoCarregado().equals(Integer.valueOf(1))) { + sucess = true; + } else { + sucess = false; + } + + } else { + file.delete(); + sucess = false; + } + + } catch (FachadaException e) { + e.printStackTrace(); + } + + return sucess; + } + + /** + * Baixa um arquivo a partir de uma url. Atualiza sempre a barra de progresso para que o usurio + * saiba o que est acontecendo no momento + */ + public boolean uploadReturnFile(String returnData) { + + boolean success = false; + + // Verificamos se o servidor está online + if (this.isServerOnline()) { + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.UPLOAD_FILE)); + // params.add(new Long(Util.getIMEI(context))); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.communicate(ConstantesSistema.ACTION, params); + success = this.loadFile(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + /** + * Carrega um inputstream + * + * @autor Bruno Barros + * @date 01/09/2011 + * @param arquivo + * @throws IOException + */ + public boolean loadFile(InputStream arquivo) throws IOException { + + boolean sucess = false; + + if (arquivo != null) { + BufferedReader buff = new BufferedReader(new InputStreamReader(arquivo)); + + String line = buff.readLine(); + + if (line.substring(0, 1).equals("*")) + sucess = true; + } + + return sucess; + } + + /** + * Baixa um arquivo a partir de uma url. Atualiza sempre a barra de progresso para que o usuário + * saiba o que está acontecendo no momento + */ +// public boolean sendOSInformation(Integer serviceOrderId, Integer inidicadorCompletion) { +// +// boolean success = false; +// +// // Verificamos se o servidor está online +// if (this.isServerOnline()) { +// +// try { +// fileContent = new StringBuilder(""); +// fileContent.append(Fachada.getInstance().generateReturnFile(serviceOrderId, inidicadorCompletion)); +// } catch (FachadaException fe) { +// fe.printStackTrace(); +// } +// +// String returnData = fileContent.toString(); +// Vector params = new Vector(3); +// params.add(new Byte(ConstantesSistema.UPLOAD_FILE)); +// +// // Adiciona a String do arquivo de retorno +// try { +// params.add(returnData.getBytes("UTF-8")); +// } catch (UnsupportedEncodingException uee) { +// Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); +// } +// +// InputStream in; +// +// try { +// in = this.communicate(ConstantesSistema.ACTION, params); +// success = this.loadFile(in); +// } catch (MalformedURLException mue) { +// Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); +// } catch (IOException ioe) { +// Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); +// } +// } +// +// return success; +// } + + /** + * Envia que o roteiro foi finalizado + * + * @author Arthur Carvalho + */ + public boolean sendFileFinished(Integer fileId, Integer inidicadorCompletion) { + + boolean success = false; + + // Verificamos se o servidor está online + if (this.isServerOnline()) { + + StringBuilder sb = new StringBuilder(""); + // Registro tipo 00 + sb.append(Util.stringPipe(REGISTER_TYPE_0)); + // Id do Arquivo Texto para Visita de Campo + sb.append(Util.stringPipe(fileId)); + // Indicador de Finalizacao do Lote + sb.append(Util.stringPipe(inidicadorCompletion)); + fileContent = new StringBuilder(""); + fileContent.append(sb); + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_ROTEIRO)); + // params.add(new Long(Util.getIMEI(context))); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.communicate(ConstantesSistema.ACTION, params); + success = this.loadFile(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + /** + * Manda um sinal para GSAN informando que a rota foi inicializada com sucesso. + */ + public boolean routeInitializationSignal(Integer situacaoArquivo) { + + boolean sucess = false; + + // Verificamos se o servidor est online + if (isServerOnline()) { + Vector parametros = new Vector(2); + parametros.add(new Byte(ConstantesSistema.ATUALIZAR_SITUACAO_ARQUIVO)); + // Pesquisa sistema parametros + SistemaParametros sistemaParametros = new SistemaParametros(); + try { + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + } catch (FachadaException e1) { + e1.printStackTrace(); + } + + parametros.add(new Long(sistemaParametros.getIdComando())); + parametros.add(situacaoArquivo); + + try { + InputStream in = this.communicate(ConstantesSistema.ACTION, parametros); + sucess = in.read() == '*'; + } catch (MalformedURLException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + sucess = false; + } catch (IOException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + sucess = false; + } + } + + return sucess; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/conexao/ConexaoWebServer.java b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/ConexaoWebServer.java new file mode 100644 index 0000000..34f8983 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/ConexaoWebServer.java @@ -0,0 +1,737 @@ +/* +* Copyright (C) 2007-2007 the GSAN - Sistema Integrado de Gestão de Serviços de Saneamento +* +* This file is part of GSAN, an integrated service management system for Sanitation +* +* GSAN is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License. +* +* GSAN is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA +*/ + +/* +* GSAN - Sistema Integrado de Gestão de Serviços de Saneamento +* Copyright (C) <2007> +* Adriano Britto Siqueira +* Alexandre Santos Cabral +* Ana Carolina Alves Breda +* Ana Maria Andrade Cavalcante +* Aryed Lins de Araújo +* Bruno Leonardo Rodrigues Barros +* Carlos Elmano Rodrigues Ferreira +* Cláudio de Andrade Lira +* Denys Guimarães Guenes Tavares +* Eduardo Breckenfeld da Rosa Borges +* Fabíola Gomes de Araújo +* Fernanda Vieira de Barros Almeida +* Flávio Leonardo Cavalcanti Cordeiro +* Francisco do Nascimento Júnior +* Homero Sampaio Cavalcanti +* Ivan Sérgio da Silva Júnior +* José Edmar de Siqueira +* José Thiago Tenório Lopes +* Kássia Regina Silvestre de Albuquerque +* Leonardo Luiz Vieira da Silva +* Márcio Roberto Batista da Silva +* Maria de Fátima Sampaio Leite +* Micaela Maria Coelho de Araújo +* Nelson Mendonça de Carvalho +* Newton Morais e Silva +* Pedro Alexandre Santos da Silva Filho +* Rafael Corrêa Lima e Silva +* Rafael Francisco Pinto +* Rafael Koury Monteiro +* Rafael Palermo de Araújo +* Raphael Veras Rossiter +* Roberto Sobreira Barbalho +* Rodrigo Avellar Silveira +* Rosana Carvalho Barbosa +* Sávio Luiz de Andrade Cavalcante +* Tai Mu Shih +* Thiago Augusto Souza do Nascimento +* Thúlio dos Santos Lins de Araújo +* Tiago Moreno Rodrigues +* Vivianne Barbosa Sousa +* +* Este programa é software livre; você pode redistribuí-lo e/ou +* modificá-lo sob os termos de Licença Pública Geral GNU, conforme +* publicada pela Free Software Foundation; versão 2 da +* Licença. +* Este programa é distribuído na expectativa de ser útil, mas SEM +* QUALQUER GARANTIA; sem mesmo a garantia implícita de +* COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM +* PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais +* detalhes. +* Você deve ter recebido uma cópia da Licença Pública Geral GNU +* junto com este programa; se não, escreva para Free Software +* Foundation, Inc., 59 Temple Place, Suitecom.br.gsanac.conexao1-1307, USA. +*/ + +package com.br.gsanac.conexao; + +import java.io.BufferedReader; +import java.io.ByteArrayOutputStream; +import java.io.DataOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.UnsupportedEncodingException; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.List; +import java.util.Vector; + +import android.content.Context; +import android.util.Log; + +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + * Classe responsavel pela conexao do android + * com o GSAN. Todas as requisições devem passar + * por aqui + * + * Essa classe deve sempre ser utilizada + * a partir de uma thread, para que nao + * utilize a thread principal; + * + * @author Fernanda Almeida + * @date 01/04/2012 + * + */ +public class ConexaoWebServer { + + public static ConexaoWebServer instancia; + private InputStream respostaOnline; + + private char tipoArquivo; + private static String mensagemError = null; + + + // Contexto, para que, ao finalizarmos qualquer operação, possamos + // mudar de tela + @SuppressWarnings("unused") + private Context context = null; + private HttpURLConnection conn = null; + + StringBuffer buffer = new StringBuffer(); + StringBuffer bufferValorParametro = new StringBuffer(); + + private StringBuilder fileContent = new StringBuilder(""); + + private static final String REGISTER_TYPE_0 = "00"; + + + private int fileLength; + + + private static String respostaServidor = ConstantesSistema.RESPOSTA_OK; + + public static ConexaoWebServer getInstancia() { + if (instancia == null) { + instancia = new ConexaoWebServer(); + } + + return instancia; + } + + public static String getRespostaServidor() { + return respostaServidor; + } + + + public void setContext(Context context){ + this.context=context; + } + /** + * Contrutor padrão. + * + * @param context + */ + public ConexaoWebServer( Context context ){ + super(); + this.context = context; + } + + public ConexaoWebServer() { + // TODO Auto-generated constructor stub + } + + + public InputStream comunicar( String url, Vector parametros ) throws IOException, MalformedURLException{ + InputStream in = null; + // Mostramos no log qual a url do arquivo que estamos tentando baixar + + if (!parametros.isEmpty() && parametros.contains(ConstantesSistema.DOWNLOAD_APK) && + parametros.firstElement().equals(ConstantesSistema.DOWNLOAD_APK)){ + Log.i( ConstantesSistema.LOG_TAG, "Http.downloadApk: " + url ); + } + + byte[] pacoteParametros = empacotarParametros( parametros ); + + URL u = new URL( url ); + +// if(ConstantesSistema.HOST.equals(ConstantesSistema.IP_CAERN_PRODUCAO)){ +// conn = ( HttpURLConnection ) u.openConnection(ConstantesSistema.PROXY_CAERN); +// }else{ + conn = ( HttpURLConnection ) u.openConnection(); +// } + + // Setamos os parametros da conexao + conn.setRequestMethod( "POST" ); + conn.setRequestProperty("Content-Type", "application/octet-stream"); + conn.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.1"); + conn.setRequestProperty("Content-Length", pacoteParametros.length+""); + conn.setRequestProperty("Accept-Encoding", "identity"); + + if ( parametros.contains(ConstantesSistema.PING)){ + conn.setConnectTimeout( 3000 ); + } else { + conn.setConnectTimeout(300); + } + + // Tanto informamos parametros na requisicao quanto + // recebemos dados da mesma. Por isso, ambas as + // propriedades estao configuradas para verdadeiro + conn.setDoInput( true ); + conn.setDoOutput( true ); + // Estabelecemos o canal de conexao + conn.connect(); + + // Enviamos a requisicao em si + conn.getOutputStream().write( pacoteParametros ); + + // Selecionamos o tamanho do arquivo para que possamos + // informar a barra de progresso, o seu MAX + if(conn != null){ + + fileLength = conn.getContentLength(); + // Logamos o tamanho do arquivo + Log.i( ConstantesSistema.LOG_TAG, "FileSize: " + fileLength ); + + // Pegamos o retorno da requisicao + in = conn.getInputStream(); + } + + // Retorna a requisicao para tratamento do tipo de chamada solicitada + return in; + } + + /** + * + * Verifica se o servidor do GSAN estao + * online + * + * @autor Bruno Barros + * @date 01/09/2011 + * + * @return - Caso online, true, senao false + */ + public boolean serverOnline(){ + boolean sucesso = true; + + try { +// Verificamos se o servidor está online + Vector parametros = new Vector(3); + parametros.add( new Byte(ConstantesSistema.PING) ); +// parametros.add( new Long( Util.getIMEI( context ) ) ); + + InputStream in = this.comunicar( ConstantesSistema.ACTION, parametros ); + + if(in != null){ + sucesso = in.read() == '*'; + return sucesso; + }else{ + return false; + } + + } catch (Exception e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG , e.getMessage()); + sucesso = false; + } + + return sucesso; + } + + + /** + * + * @author Arthur Carvalho + * @date 20/08/2013 + * + * @param idComando + * @return + */ + public Integer arquivoLiberadoParaTransmissao(Integer idComando){ + + Integer retorno = null; + boolean sucesso = true; + + try { + if ( serverOnline() ) { + //Verificamos se o arquivo ja foi finalizado + Vector parametros = new Vector(3); + parametros.add( new Byte(ConstantesSistema.CONSULTAR_ARQUIVO_FINALIZADO) ); + parametros.add( new Long( idComando ) ); + + InputStream in = this.comunicar( ConstantesSistema.ACTION, parametros ); + + if(in != null){ + sucesso = in.read() == '*'; + if ( sucesso ) { + retorno = 1; + } else { + retorno = 2; + } + return retorno; + }else{ + return retorno = 3; + } + + } else { + retorno = 3; + } + + } catch (Exception e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG , e.getMessage()); + sucesso = false; + } + + return retorno; + } + + + public byte[] empacotarParametros(Vector parametros) throws IOException { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + DataOutputStream dos = new DataOutputStream(baos); + + byte[] resposta = null; + + parametros.trimToSize(); + + // escreve os dados no OutputStream + if (parametros != null) { + int tamanho = parametros.size(); + for (int i = 0; i < tamanho; i++) { + Object param = parametros.elementAt(i); + if (param instanceof Byte) { + dos.writeByte(((Byte) param).byteValue()); + } else if (param instanceof Integer) { + dos.writeInt(((Integer) param).intValue()); + } else if (param instanceof Short) { + dos.writeShort(((Short) param).shortValue()); + } else if (param instanceof Long) { + dos.writeLong(((Long) param).longValue()); + } else if (param instanceof String) { + dos.writeUTF((String) param); + } else if (param instanceof byte[]) { + dos.write((byte[]) param); + } + } + } + + // pega os dados enpacotados + resposta = baos.toByteArray(); + + if (dos != null) { + dos.close(); + dos = null; + } + if (baos != null) { + baos.close(); + baos = null; + } + + // retorna o array de bytes + return resposta; + } + public InputStream getRespostaOnline() { + return this.respostaOnline; + } + + public void setRespostaOnline(InputStream respostaOnline) { + this.respostaOnline = respostaOnline; + } + + public void setFileLength(int fileLength) { + this.fileLength = fileLength; + } + + public int getFileLength() { + return fileLength; + } + + public void setTipoArquivo(char tipoArquivo) { + this.tipoArquivo = tipoArquivo; + } + + public char getTipoArquivo() { + return tipoArquivo; + } + + // Só podemos pegar a mensagem de error uma vez + public static String getMensagemError() { + String temp = mensagemError; + mensagemError = null; + return temp; + } + + /** + * Baixa um arquivo a partir de uma url. Atualiza sempre a barra de progresso para que o usurio + * saiba o que est acontecendo no momento + */ + public boolean enviarDadosImovel(ImovelAtlzCadastral imovelAtlzCadastral, ClienteAtlzCadastral clienteAtlzCadastral, List listaClienteFoneAtlzCadastral, + List listaHidrometroInstHistAtlzCad, List listaImovelSubCategAtlzCad, List listaImovelOcorrencia ) { + + boolean success = false; + + // Verificamos se o servidor est online + if (this.serverOnline()) { + + try { + + fileContent = new StringBuilder(""); + fileContent.append(Fachada.getInstance().gerarArquivoRetornoImovel(imovelAtlzCadastral)); + + //CLIENTE | CLIENTE FONE + fileContent.append(Fachada.getInstance().gerarArquivoRetornoCliente(clienteAtlzCadastral, listaClienteFoneAtlzCadastral, imovelAtlzCadastral.getIntegracaoID())); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoHidrometro(listaHidrometroInstHistAtlzCad, imovelAtlzCadastral.getIntegracaoID(), imovelAtlzCadastral.getImovelId())); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoSubategoria(listaImovelSubCategAtlzCad, imovelAtlzCadastral.getIntegracaoID())); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoOcorrencia(listaImovelOcorrencia, imovelAtlzCadastral.getIntegracaoID())); + + } catch (FachadaException fe) { + fe.printStackTrace(); + } + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_ROTEIRO)); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.comunicar(ConstantesSistema.ACTION, params); + success = this.carregarArquivo(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + /** + * Envia que o roteiro foi finalizado + * + * @author Arthur Carvalho + */ + public boolean enviarArquivoFinalizado(Integer fileId, Integer inidicadorCompletion) { + + boolean success = false; + + // Verificamos se o servidor est online + if (this.serverOnline()) { + + StringBuilder sb = new StringBuilder(""); + // Registro tipo 00 + sb.append(Util.stringPipe(REGISTER_TYPE_0)); + // Id do Arquivo Texto para Visita de Campo + sb.append(Util.stringPipe(fileId)); + // Indicador de Finalizacao do Lote + sb.append(Util.stringPipe(inidicadorCompletion)); + fileContent = new StringBuilder(""); + fileContent.append(sb); + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_IMOVEL)); + // params.add(new Long(Util.getIMEI(context))); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.comunicar(ConstantesSistema.ACTION, params); + success = this.carregarArquivo(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + /** + * + * @author Arthur Carvalho + * @date 14/01/2013 + * + * @param arquivo + * @return + * @throws IOException + */ + public boolean carregarArquivo(InputStream arquivo) throws IOException { + + boolean sucess = false; + + if (arquivo != null) { + BufferedReader buff = new BufferedReader(new InputStreamReader(arquivo)); + + String line = buff.readLine(); + + if (line.substring(0, 1).equals("*")) + sucess = true; + } + + return sucess; + } + + + /** + * Metodo responsavel por enviar os dados do endereco do imovel + * @author Arthur Carvalho + * @date 28/03/2013 + * + * @param cep + * @param logradouro + * @param sistemaParametros + * @param logradouroCep + * @return + */ + public boolean enviarDadosEndereco(Cep cep , Logradouro logradouro, SistemaParametros sistemaParametros, LogradouroCep logradouroCep) { + + boolean success = false; + + // Verificamos se o servidor est online + if (this.serverOnline()) { + + try { + fileContent = new StringBuilder(""); + + if ( cep != null ) { + fileContent.append(Fachada.getInstance().gerarArquivoRetornoCep(cep)); + } + + if ( logradouro != null ) { + fileContent.append(Fachada.getInstance().gerarArquivoRetornoLogradouro(logradouro, sistemaParametros)); + } + + if ( logradouroCep != null ) { + fileContent.append(Fachada.getInstance().gerarArquivoRetornoLogradouroCep(logradouroCep)); + } + + + } catch (FachadaException fe) { + fe.printStackTrace(); + } + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_ROTEIRO)); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.comunicar(ConstantesSistema.ACTION, params); + success = this.carregarArquivo(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + + + } + + + + /** + * Baixa um arquivo a partir de uma url. Atualiza sempre a barra de progresso para que o usurio + * saiba o que est acontecendo no momento + */ + public boolean enviarDadosCep(Cep cep) { + + boolean success = false; + + // Verificamos se o servidor est online + if (this.serverOnline()) { + + try { + fileContent = new StringBuilder(""); + fileContent.append(Fachada.getInstance().gerarArquivoRetornoCep(cep)); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_ROTEIRO)); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.comunicar(ConstantesSistema.ACTION, params); + success = this.carregarArquivo(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + /** + * Baixa um arquivo a partir de uma url. Atualiza sempre a barra de progresso para que o usurio + * saiba o que est acontecendo no momento + */ + public boolean enviarDadosLogradouro(Logradouro logradouro, SistemaParametros sistemaParametros) { + + boolean success = false; + + // Verificamos se o servidor est online + if (this.serverOnline()) { + + try { + fileContent = new StringBuilder(""); + fileContent.append(Fachada.getInstance().gerarArquivoRetornoLogradouro(logradouro, sistemaParametros)); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_ROTEIRO)); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.comunicar(ConstantesSistema.ACTION, params); + success = this.carregarArquivo(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + /** + * Baixa um arquivo a partir de uma url. Atualiza sempre a barra de progresso para que o usurio + * saiba o que est acontecendo no momento + */ + public boolean enviarDadosLogradouroCep(LogradouroCep logradouroCep) { + + boolean success = false; + + // Verificamos se o servidor est online + if (this.serverOnline()) { + + try { + fileContent = new StringBuilder(""); + fileContent.append(Fachada.getInstance().gerarArquivoRetornoLogradouroCep(logradouroCep)); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + + String returnData = fileContent.toString(); + Vector params = new Vector(3); + params.add(new Byte(ConstantesSistema.FINALIZAR_ROTEIRO)); + + // Adiciona a String do arquivo de retorno + try { + params.add(returnData.getBytes("UTF-8")); + } catch (UnsupportedEncodingException uee) { + Log.e(ConstantesSistema.LOG_TAG, uee.getMessage()); + } + + InputStream in; + + try { + in = this.comunicar(ConstantesSistema.ACTION, params); + success = this.carregarArquivo(in); + } catch (MalformedURLException mue) { + Log.e(ConstantesSistema.LOG_TAG, mue.getMessage()); + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, ioe.getMessage()); + } + } + + return success; + } + + + + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/conexao/DBConnection.java b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/DBConnection.java new file mode 100644 index 0000000..692f826 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/DBConnection.java @@ -0,0 +1,149 @@ +package com.br.gsanac.conexao; + +import android.content.Context; +import android.database.SQLException; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.DBScript; +import com.br.gsanac.util.SQLiteHelper; + +/** + *

+ * Classe responsável pelo gerenciamento da conexão com o banco de dados + *

+ * + * @author Arthur Carvalho + * @since 06/12/12 + */ +public class DBConnection { + + private static final int DATABASE_VERSION = 1; + + protected SQLiteDatabase db; + + private SQLiteHelper dbHelper; + + protected Context context; + + private static DBConnection instance; + + /** + * @param context + */ + public DBConnection(Context context) { + this.context = context; + if (db == null || (db != null && !db.isOpen())) { + this.openDatabase(); + } + + } + + public static DBConnection getInstance(Context context) { + if (instance == null) { + instance = new DBConnection(context); + } + return instance; + } + + /** + * @author Arthur Carvalho + * @since 06/12/12 + */ + private void openDatabase() { + try { + + this.closeDatabase(); + +// if (db != null) { +// if (!db.isOpen()) { + DBScript bDScript = new DBScript(); + dbHelper = new SQLiteHelper(this.context, + ConstantesSistema.DATABASE_NAME, + DATABASE_VERSION, + bDScript.obterScriptBanco(), + null); + + synchronized (dbHelper){ + this.db = dbHelper.getWritableDatabase(); + } +// } +// } + } catch (RepositorioException re) { + Log.e(ConstantesSistema.LOG_TAG, re.getMessage()); + } + } + + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @throws RepositorioException + */ + public void closeDatabase() throws RepositorioException { + if (this.db != null && !this.db.isOpen()) { + try { + this.db.close(); + } catch (SQLException sqle) { + Log.e(ConstantesSistema.LOG_TAG, sqle.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + if (this.dbHelper != null) { + try { + dbHelper.close(); + } catch (SQLException sqle) { + Log.e(ConstantesSistema.LOG_TAG, sqle.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + } + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @return SQLiteDatabase + */ + public static boolean checkDatabase() { + SQLiteDatabase checkDB = null; + try { + checkDB = SQLiteDatabase.openDatabase(ConstantesSistema.DATABASE_PATH + ConstantesSistema.DATABASE_NAME, + null, + SQLiteDatabase.OPEN_READONLY); + checkDB.close(); + } catch (SQLiteException sle) { + Log.e(ConstantesSistema.LOG_TAG, sle.getMessage() + " | " + sle.getCause()); + } + return (checkDB != null); + } + + public SQLiteDatabase getDb() { + return db; + } + + /** + *

+ * Remove o banco de dados. + *

+ * + * @author Arthur Carvalho + * @since 06/12/12 + */ + public void deleteDatabase() { + + dbHelper.close(); + + db.close(); + if (context.deleteDatabase(ConstantesSistema.DATABASE_NAME)) { + Log.d(ConstantesSistema.LOG_TAG, "deleteDatabase(): database deleted."); + } else { + Log.d(ConstantesSistema.LOG_TAG, "deleteDatabase(): database NOT deleted."); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/conexao/PhotoConnection.java b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/PhotoConnection.java new file mode 100644 index 0000000..a568cf6 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/conexao/PhotoConnection.java @@ -0,0 +1,185 @@ +package com.br.gsanac.conexao; + +import java.io.DataOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.SocketTimeoutException; +import java.net.URL; + +import org.apache.http.HttpResponse; +import org.apache.http.HttpStatus; +import org.apache.http.client.ClientProtocolException; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.http.params.BasicHttpParams; +import org.apache.http.params.HttpConnectionParams; +import org.apache.http.params.HttpParams; + +import android.os.AsyncTask; +import android.util.Log; + +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +public class PhotoConnection extends AsyncTask { + + private static final String UPLOAD_URL = ConstantesSistema.ACTION; + + + private Foto photo = null; + + /** + * Prepare activity before upload + */ + @Override + protected void onPreExecute() { + super.onPreExecute(); + } + + /** + * Clean app state after upload is completed + */ + @Override + protected void onPostExecute(Boolean result) { + + super.onPostExecute(result); + + if (result) { + photo.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + try { + Fachada.getInstance().update(photo); + } catch (FachadaException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, "Erro ao mudar status da photo: " + e.getMessage(), e); + } + } + } + + @Override + protected Boolean doInBackground(Object... params) { + + photo = (Foto) params[3]; + + return doFileUpload((File) params[0], (String) params[1], (Integer) params[2], UPLOAD_URL, photo); + } + + @Override + protected void onProgressUpdate(Integer... values) { + super.onProgressUpdate(values); + } + + public boolean doFileUpload(File file, String codigo, Integer tipoFoto, String uploadUrl, Foto foto) { + HttpURLConnection conn = null; + DataOutputStream dos = null; + photo = foto; + int bytesRead, bytesAvailable, bufferSize; + byte[] buffer; + int maxBufferSize = 1 * 1024 * 1024; + int sentBytes = 0; + long fileSize = file.length(); + + // Verificamos se o servidor est online + if (this.isServerOnline()) { + + // Send request + try { + // Configure connection + URL url = new URL(uploadUrl); + conn = (HttpURLConnection) url.openConnection(); + conn.setDoInput(true); + conn.setDoOutput(true); + conn.setUseCaches(false); + conn.setRequestMethod("POST"); + conn.setRequestProperty("Connection", "Keep-Alive"); + // conn.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.1"); + conn.setRequestProperty("Content-Type", "multipart/form-data"); + + publishProgress(0); + + dos = new DataOutputStream(conn.getOutputStream()); + + dos.writeByte(Util.ENVIAR_FOTO); + dos.writeUTF(codigo); + dos.writeInt(tipoFoto); + dos.writeLong(new Long(fileSize)); + + // Read file and create buffer + FileInputStream fileInputStream = new FileInputStream(file); + bytesAvailable = fileInputStream.available(); + bufferSize = Math.min(bytesAvailable, maxBufferSize); + buffer = new byte[bufferSize]; + + // Send file data + bytesRead = fileInputStream.read(buffer, 0, bufferSize); + while (bytesRead > 0) { + // Write buffer to socket + dos.write(buffer, 0, bufferSize); + + // Update progress dialog + sentBytes += bufferSize; + publishProgress((int) (sentBytes * 100 / fileSize)); + + bytesAvailable = fileInputStream.available(); + bufferSize = Math.min(bytesAvailable, maxBufferSize); + bytesRead = fileInputStream.read(buffer, 0, bufferSize); + } + + dos.flush(); + dos.close(); + fileInputStream.close(); + + } catch (IOException ioe) { + Log.e(ConstantesSistema.LOG_TAG, "Cannot upload file: " + ioe.getMessage(), ioe); + return false; + } + + // Read response + try { + int responseCode = conn.getResponseCode(); + return responseCode == 200; + } catch (IOException ioex) { + Log.e(ConstantesSistema.LOG_TAG, "Upload file failed: " + ioex.getMessage(), ioex); + return false; + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, "Upload file failed: " + e.getMessage(), e); + return false; + } + } + return false; + } + + public boolean isServerOnline() { + + int status = 0; + + try { + HttpGet request = new HttpGet(ConstantesSistema.GSAN_HOST); + + HttpParams httpParameters = new BasicHttpParams(); + + HttpConnectionParams.setConnectionTimeout(httpParameters, 3000); + HttpClient httpClient = new DefaultHttpClient(httpParameters); + HttpResponse response = httpClient.execute(request); + + status = response.getStatusLine().getStatusCode(); + + } catch (SocketTimeoutException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } catch (ClientProtocolException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } catch (IOException e) { + e.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } + + return (status == HttpStatus.SC_OK); + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorBase.java b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorBase.java new file mode 100644 index 0000000..59fc447 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorBase.java @@ -0,0 +1,403 @@ +package com.br.gsanac.controlador; + +import java.util.List; + +import android.content.Context; +import android.database.Cursor; + +import com.br.gsanac.entidades.Bairro; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.Categoria; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteTipo; +import com.br.gsanac.entidades.EnderecoReferencia; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.FoneTipo; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.HidrometroCapacidade; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroLocalInst; +import com.br.gsanac.entidades.HidrometroMarca; +import com.br.gsanac.entidades.HidrometroProtecao; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelPerfil; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.MedicaoTipo; +import com.br.gsanac.entidades.Municipio; +import com.br.gsanac.entidades.OrgaoExpedidorRg; +import com.br.gsanac.entidades.PavimentoCalcada; +import com.br.gsanac.entidades.PavimentoRua; +import com.br.gsanac.entidades.PessoaSexo; +import com.br.gsanac.entidades.Quadra; +import com.br.gsanac.entidades.SetorComercial; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.entidades.SubCategoria; +import com.br.gsanac.entidades.UnidadeFederacao; +import com.br.gsanac.exception.ControladorException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.repositorio.IRepositorioBase; +import com.br.gsanac.repositorio.RepositorioBairro; +import com.br.gsanac.repositorio.RepositorioBase; +import com.br.gsanac.repositorio.RepositorioCadastroOcorrencia; +import com.br.gsanac.repositorio.RepositorioCategoria; +import com.br.gsanac.repositorio.RepositorioCep; +import com.br.gsanac.repositorio.RepositorioClienteAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioClienteFoneAtlzCad; +import com.br.gsanac.repositorio.RepositorioClienteTipo; +import com.br.gsanac.repositorio.RepositorioEnderecoReferencia; +import com.br.gsanac.repositorio.RepositorioFoneTipo; +import com.br.gsanac.repositorio.RepositorioFonteAbastecimento; +import com.br.gsanac.repositorio.RepositorioFoto; +import com.br.gsanac.repositorio.RepositorioHidrometroCapacidade; +import com.br.gsanac.repositorio.RepositorioHidrometroInstHistAtlzCad; +import com.br.gsanac.repositorio.RepositorioHidrometroLocalInst; +import com.br.gsanac.repositorio.RepositorioHidrometroMarca; +import com.br.gsanac.repositorio.RepositorioHidrometroProtecao; +import com.br.gsanac.repositorio.RepositorioImovelAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioImovelOcorrencia; +import com.br.gsanac.repositorio.RepositorioImovelPerfil; +import com.br.gsanac.repositorio.RepositorioImovelSubCategAtlzCad; +import com.br.gsanac.repositorio.RepositorioLigacaoAguaSituacao; +import com.br.gsanac.repositorio.RepositorioLigacaoEsgotoSituacao; +import com.br.gsanac.repositorio.RepositorioLogradouro; +import com.br.gsanac.repositorio.RepositorioLogradouroBairro; +import com.br.gsanac.repositorio.RepositorioLogradouroCep; +import com.br.gsanac.repositorio.RepositorioLogradouroTipo; +import com.br.gsanac.repositorio.RepositorioLogradouroTitulo; +import com.br.gsanac.repositorio.RepositorioMedicaoTipo; +import com.br.gsanac.repositorio.RepositorioMunicipio; +import com.br.gsanac.repositorio.RepositorioOrgaoExpedidorRg; +import com.br.gsanac.repositorio.RepositorioPavimentoCalcada; +import com.br.gsanac.repositorio.RepositorioPavimentoRua; +import com.br.gsanac.repositorio.RepositorioPessoaSexo; +import com.br.gsanac.repositorio.RepositorioQuadra; +import com.br.gsanac.repositorio.RepositorioSetorComercial; +import com.br.gsanac.repositorio.RepositorioSistemaParametros; +import com.br.gsanac.repositorio.RepositorioSubCategoria; +import com.br.gsanac.repositorio.RepositorioUnidadeFederacao; + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + * @param + */ +@SuppressWarnings({ + "unchecked", + "rawtypes" +}) +public class ControladorBase implements IControladorBase { + + protected static Context context; + + private static IRepositorioBase iRepositoryBase; + + private static ControladorBase instance; + + public static ControladorBase getInstance() { + + if (instance == null) { + instance = new ControladorBase(); + } + + return instance; + } + + @Override + public T pesquisar(T t, String selection, String[] selectionArgs) throws ControladorException { + try { + t = (T) this.getRepositoryInstance(t.getClass()).pesquisar(t, selection, selectionArgs); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return t; + } + + @Override + public List pesquisarLista(Class t, String selection, String selectionArgs[], String orderBy) + throws ControladorException { + List allObjects = null; + + try { + allObjects = this.getRepositoryInstance(t).pesquisarLista(selection, selectionArgs, orderBy); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return allObjects; + } + + @Override + public Cursor getCursor(Class t, String idField, String descriptionField, String tablename) + throws ControladorException { + Cursor cursor = null; + + try { + cursor = this.getRepositoryInstance(t).getCursor(idField, descriptionField, tablename); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return cursor; + } + + @Override + public Cursor getCursor(Class t, String idField, String descriptionField, String tablename, String where) throws ControladorException{ + Cursor cursor = null; + + try { + cursor = this.getRepositoryInstance(t).getCursor(idField, descriptionField, tablename, where); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return cursor; + } + + public Cursor getCursorOrderBy(Class t, String idField, String descriptionField, String tablename, String where, String orderBy) throws ControladorException{ + Cursor cursor = null; + + try { + cursor = this.getRepositoryInstance(t).getCursorOrderBy(idField, descriptionField, tablename, where, orderBy); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return cursor; + } + + @Override + public long inserir(T t) throws ControladorException { + try { + return this.getRepositoryInstance(t.getClass()).inserir(t); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + } + + @Override + public void atualizar(T t) throws ControladorException { + try { + this.getRepositoryInstance(t.getClass()).atualizar(t); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + } + + @Override + public void remover(T t) throws ControladorException { + try { + this.getRepositoryInstance(t.getClass()).remover(t); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + } + + @Override + public Cursor getCursorOrderBy(Class t, String idField, String descriptionField, String tablename, String orderBy) throws ControladorException{ + Cursor cursor = null; + + try { + cursor = this.getRepositoryInstance(t).getCursorOrderBy(idField, descriptionField, tablename, orderBy); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return cursor; + } + + @Override + public Cursor getCursorLogradouro(Class t, String where) throws ControladorException{ + Cursor cursor = null; + + try { + cursor = this.getRepositoryInstance(t).getCursorLogradouro(where); + } catch (RepositorioException re) { + throw new ControladorException(re.getMessage()); + } + + return cursor; + } + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + public Cursor getCursorListaLogradouro(Class t) throws ControladorException{ + Cursor cursor = null; + + try{ + cursor = this.getRepositoryInstance(t).getCursorListaLogradouro(); + }catch(RepositorioException ex){ + throw new ControladorException(ex.getMessage()); + } + + return cursor; + } + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + + public Cursor getCursorListaLogradouroCep(Class t) throws ControladorException{ + Cursor cursor = null; + + try{ + cursor = this.getRepositoryInstance(t).getCursorListaLogradouroCep(); + }catch(RepositorioException ex){ + throw new ControladorException(ex.getMessage()); + } + + return cursor; + } + /** + * @author Arthur Carvalho + * @since 06/12/2012 + * @param clazz qualquer classe que extende de BaseEntity + * @return iRepositoryBase, uma instancia especializada do repositorio + */ + private IRepositorioBase getRepositoryInstance(Class clazz) { + + iRepositoryBase = null; + + if (clazz.equals(PessoaSexo.class)) { + iRepositoryBase = RepositorioPessoaSexo.getInstance(); + + }else if(clazz.equals(FoneTipo.class)){ + iRepositoryBase = RepositorioFoneTipo.getInstance(); + + }else if(clazz.equals(HidrometroLocalInst.class)){ + iRepositoryBase = RepositorioHidrometroLocalInst.getInstance(); + + }else if(clazz.equals(HidrometroProtecao.class)){ + iRepositoryBase = RepositorioHidrometroProtecao.getInstance(); + + }else if(clazz.equals(OrgaoExpedidorRg.class)){ + iRepositoryBase =RepositorioOrgaoExpedidorRg.getInstance(); + + }else if(clazz.equals(Categoria.class)){ + iRepositoryBase = RepositorioCategoria.getInstance(); + + }else if(clazz.equals(SubCategoria.class)){ + iRepositoryBase = RepositorioSubCategoria.getInstance(); + + }else if(clazz.equals(Bairro.class)){ + iRepositoryBase = RepositorioBairro.getInstance(); + + }else if(clazz.equals(Cep.class)){ + iRepositoryBase = RepositorioCep.getInstance(); + + }else if(clazz.equals(EnderecoReferencia.class)){ + iRepositoryBase = RepositorioEnderecoReferencia.getInstance(); + + }else if(clazz.equals(FonteAbastecimento.class)){ + iRepositoryBase = RepositorioFonteAbastecimento.getInstance(); + + }else if(clazz.equals(LigacaoAguaSituacao.class)){ + iRepositoryBase = RepositorioLigacaoAguaSituacao.getInstance(); + + }else if(clazz.equals(LigacaoEsgotoSituacao.class)){ + iRepositoryBase = RepositorioLigacaoEsgotoSituacao.getInstance(); + + }else if(clazz.equals(Logradouro.class)){ + iRepositoryBase = RepositorioLogradouro.getInstance(); + + }else if(clazz.equals(LogradouroBairro.class)){ + iRepositoryBase = RepositorioLogradouroBairro.getInstance(); + + }else if(clazz.equals(LogradouroCep.class)){ + iRepositoryBase = RepositorioLogradouroCep.getInstance(); + + }else if(clazz.equals(PavimentoCalcada.class)){ + iRepositoryBase = RepositorioPavimentoCalcada.getInstance(); + + }else if(clazz.equals(PavimentoRua.class)){ + iRepositoryBase = RepositorioPavimentoRua.getInstance(); + + }else if(clazz.equals(SistemaParametros.class)){ + iRepositoryBase = RepositorioSistemaParametros.getInstance(); + + }else if(clazz.equals(ImovelSubCategAtlzCad.class)){ + iRepositoryBase = RepositorioImovelSubCategAtlzCad.getInstance(); + + }else if(clazz.equals(ClienteFoneAtlzCad.class)){ + iRepositoryBase = RepositorioClienteFoneAtlzCad.getInstance(); + + }else if(clazz.equals(ClienteAtlzCadastral.class)){ + iRepositoryBase = RepositorioClienteAtlzCadastral.getInstance(); + + }else if(clazz.equals(ImovelAtlzCadastral.class)){ + iRepositoryBase = RepositorioImovelAtlzCadastral.getInstance(); + + }else if(clazz.equals(HidrometroInstHistAtlzCad.class)){ + iRepositoryBase = RepositorioHidrometroInstHistAtlzCad.getInstance(); + + }else if(clazz.equals(Municipio.class)){ + iRepositoryBase = RepositorioMunicipio.getInstance(); + + }else if(clazz.equals(LogradouroTipo.class)){ + iRepositoryBase = RepositorioLogradouroTipo.getInstance(); + + }else if(clazz.equals(LogradouroTitulo.class)){ + iRepositoryBase = RepositorioLogradouroTitulo.getInstance(); + + }else if(clazz.equals(Quadra.class)){ + iRepositoryBase = RepositorioQuadra.getInstance(); + + }else if(clazz.equals(ImovelPerfil.class)){ + iRepositoryBase = RepositorioImovelPerfil.getInstance(); + + }else if(clazz.equals(CadastroOcorrencia.class)){ + iRepositoryBase = RepositorioCadastroOcorrencia.getInstance(); + + }else if(clazz.equals(UnidadeFederacao.class)){ + iRepositoryBase = RepositorioUnidadeFederacao.getInstance(); + + }else if(clazz.equals(ClienteTipo.class)){ + iRepositoryBase = RepositorioClienteTipo.getInstance(); + + }else if(clazz.equals(MedicaoTipo.class)){ + iRepositoryBase = RepositorioMedicaoTipo.getInstance(); + + }else if(clazz.equals(HidrometroCapacidade.class)){ + iRepositoryBase = RepositorioHidrometroCapacidade.getInstance(); + + }else if(clazz.equals(HidrometroMarca.class)){ + iRepositoryBase = RepositorioHidrometroMarca.getInstance(); + + }else if(clazz.equals(Foto.class)){ + iRepositoryBase = RepositorioFoto.getInstance(); + + }else if(clazz.equals(ImovelOcorrencia.class)){ + iRepositoryBase = RepositorioImovelOcorrencia.getInstance(); + + }else if(clazz.equals(SetorComercial.class)){ + iRepositoryBase = RepositorioSetorComercial.getInstance(); + + } + + return iRepositoryBase; + } + + @Override + public void setContext(Context c) { + context = c; + RepositorioBase.setContext(c); + } + + public static Context getContext() { + return context; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorSistemaParametros.java b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorSistemaParametros.java new file mode 100644 index 0000000..ef514e5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorSistemaParametros.java @@ -0,0 +1,47 @@ +package com.br.gsanac.controlador; + +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.ControladorException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.repositorio.RepositorioSistemaParametros; + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class ControladorSistemaParametros extends ControladorBase implements IControladorSistemaParametros { + + private static ControladorSistemaParametros instance; + + private ControladorSistemaParametros() { + super(); + } + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + * @return controllerUser instance + */ + public static ControladorSistemaParametros getInstance() { + if (instance == null) { + instance = new ControladorSistemaParametros(); + } + return instance; + } + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + */ + @Override + public SistemaParametros validarLogin(String login, String password) throws ControladorException { + SistemaParametros sistemaParametros = null; + try { + sistemaParametros = RepositorioSistemaParametros.getInstance().validarLogin(login, password); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return sistemaParametros; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorUtil.java b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorUtil.java new file mode 100644 index 0000000..14e3af5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/ControladorUtil.java @@ -0,0 +1,2250 @@ +package com.br.gsanac.controlador; + +import java.io.File; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +import android.util.Log; + +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunas; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.HidrometroCapacidade; +import com.br.gsanac.entidades.HidrometroCapacidade.HidrometroCapacidadeColunas; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroMarca; +import com.br.gsanac.entidades.HidrometroMarca.HidrometroMarcaColunas; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoAguaSituacao.LigacaoAguaSituacaos; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao.LigacaoEsgotoSituacaos; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroBairro.LogradouroBairros; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.Roteiro; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.ControladorException; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.gui.TabsActivity; +import com.br.gsanac.repositorio.RepositorioImovelAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioSistemaParametros; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + + +public class ControladorUtil extends ControladorBase implements IControladorUtil { + + private static ControladorUtil instance; + //(trocar) chamar direto o controlador + private static Fachada fachada = Fachada.getInstance(); + + private ControladorUtil() { + super(); + } + + private static final String REGISTER_TYPE_1 = "01"; + private static final String REGISTER_TYPE_2 = "02"; + private static final String REGISTER_TYPE_3 = "03"; + private static final String REGISTER_TYPE_4 = "04"; + private static final String REGISTER_TYPE_5 = "05"; + private static final String REGISTER_TYPE_6 = "06"; + private static final String REGISTER_TYPE_7 = "07"; + private static final String REGISTER_TYPE_8 = "08"; + private static final String REGISTER_TYPE_9 = "09"; + private static final String REGISTER_TYPE_10 = "10"; + + boolean campoAbaLigacaoAlterado = false; + boolean fonteAbastecimentoAlterada = false; + boolean obrigatorio = true; + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + * @return ControladorUtil instance + */ + public static ControladorUtil getInstance() { + if (instance == null) { + instance = new ControladorUtil(); + } + return instance; + } + + /** + * [UC1423] - Concluir + * [SB0001][SB0005][SB0006] - Validar + * + * @author Anderson Cabral + * @since 09/01/2013 + * **/ + private boolean validarConcluir() throws ControladorException{ + String mensagemErro = ""; + obrigatorio = true; + + ImovelAtlzCadastral imovelAtlzCadastral = TabsActivity.imovel; + ClienteAtlzCadastral clienteAtlzCadastral = TabsActivity.cliente; + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = TabsActivity.hidrometroInstalacaoHist; + Collection colecaoImovelOcorrencia = TabsActivity.colecaoImovelOcorrencia; + + //Valida Campos Obrigatorios ABA Localidade + if ( validarAbaLocalidade(imovelAtlzCadastral) != null && !validarAbaLocalidade(imovelAtlzCadastral).equals("") ) { + mensagemErro += "ABA LOCALIDADE \n"; + mensagemErro += validarAbaLocalidade(imovelAtlzCadastral); + } + + //Valida Campos Obrigatorios ABA Endereco + if ( validarAbaEndereco(imovelAtlzCadastral) != null && !validarAbaEndereco(imovelAtlzCadastral).equals("") ) { + mensagemErro += "ABA ENDEREO \n"; + mensagemErro += validarAbaEndereco(imovelAtlzCadastral); + } + + //Valida Campos Obrigatorios ABA Imovel + if ( validarAbaImovel(imovelAtlzCadastral) != null && !validarAbaImovel(imovelAtlzCadastral).equals("") ) { + mensagemErro += "ABA IMVEL \n"; + mensagemErro += validarAbaImovel(imovelAtlzCadastral); + } + + //Valida Campos Obrigatorios ABA Fotos + if ( validarAbaFotos(imovelAtlzCadastral.getId()) != null && !validarAbaFotos(imovelAtlzCadastral.getId()).equals("") ) { + mensagemErro += "ABA FOTOS \n"; + mensagemErro += validarAbaFotos(imovelAtlzCadastral.getId()); + } + + //[SB0001] - Validar dados aba Cliente + if(imovelAtlzCadastral.getLigAguaSituacao() != null){ + String validarAbaCliente = validarAbaCliente(clienteAtlzCadastral, imovelAtlzCadastral.getLigAguaSituacao().getId()); + if (validarAbaCliente != null && !validarAbaCliente.equals("") ) { + mensagemErro += "ABA CLIENTE \n"; + mensagemErro += validarAbaCliente; + } + }else{ + String validarAbaCliente = validarAbaCliente(clienteAtlzCadastral, null); + if ( validarAbaCliente != null && !validarAbaCliente.equals("") ) { + mensagemErro += "ABA CLIENTE \n"; + mensagemErro += validarAbaCliente; + } + } + + //[SB0006] - Validar Situao da Ligao da gua x Hidrmetro + if ( validarAbaLigacao(imovelAtlzCadastral, hidrometroInstHistAtlzCad) != null && + !validarAbaLigacao(imovelAtlzCadastral, hidrometroInstHistAtlzCad).equals("") ) { + mensagemErro += "ABA LIGAO \n"; + mensagemErro += validarAbaLigacao(imovelAtlzCadastral, hidrometroInstHistAtlzCad); + } + + //Valida caso o indicador de campos obrigatorios no tablet de alguma ocorrencia cadastro selecionada seja igual a SIM OU +// o usuario tenha alterado algum dado da aba de ligacao ou a Fonte de Abastecimento. + if(obrigatorio || campoAbaLigacaoAlterado || fonteAbastecimentoAlterada){ + //[SB0005] - Validar Fonte de Abastecimento x Situacao da Ligacao da Agua x Ocorrencia de Cadastro + mensagemErro += validarInconsistenciaFonteAbastecimento(imovelAtlzCadastral, colecaoImovelOcorrencia); + } + + if ( mensagemErro != null && !mensagemErro.equals("") ) { + TabsActivity.mensagemErro = mensagemErro; + Util.exibirMensagemErro(getContext(), mensagemErro); + return false; + }else{ + return true; + } + } + + /** + * [UC1423] - Concluir + * [SB0005] - Validar Fonte de Abastecimento x Situacao da Ligacao da Agua x Ocorrencia de Cadastro + * + * @author Anderson Cabral + * @since 09/01/2013 + * + * @param ImovelAtlzCadastral + * @param Collection + * @return mensagemErro + * **/ + private String validarInconsistenciaFonteAbastecimento(ImovelAtlzCadastral imovelAtlzCadastral, Collection colecaoImovelOcorrencia){ + String mensagemErro = ""; + + //Validar Fonte Abastecimento x Situao da Ligao de gua x Ocorrncia Cadastro + if(colecaoImovelOcorrencia != null){ + for (ImovelOcorrencia imovelOcorrencia : colecaoImovelOcorrencia) { + if(imovelAtlzCadastral.getFonteAbastecimento() != null && !imovelAtlzCadastral.getFonteAbastecimento().getId().equals("") + && imovelAtlzCadastral.getLigAguaSituacao() != null && !imovelAtlzCadastral.getLigAguaSituacao().equals("") + && imovelOcorrencia != null && imovelOcorrencia.getCadastroOcorrencia() != null){ + + String fonteAbastecimento = ""; + if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.COMPESA){ + fonteAbastecimento = "COMPESA"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.CORTADO + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + }else if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + }else if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.POCO){ + fonteAbastecimento = "POO"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.CORTADO + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + }else if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + }else if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.VIZINHO){ + fonteAbastecimento = "VIZINHO"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.CORTADO + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + }else if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + }else if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.CACIMBA){ + fonteAbastecimento = "CACIMBA"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.CORTADO + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + }else if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + }else if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.CHAFARIZ){ + fonteAbastecimento = "CHAFARIZ"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.CORTADO + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + }else if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + }else if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.CARRO_PIPA){ + fonteAbastecimento = "CARRO PIPA"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.CORTADO + || imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + }else if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + }else if(imovelAtlzCadastral.getFonteAbastecimento().getId() == FonteAbastecimento.SEM_ABASTECIMENTO){ + fonteAbastecimento = "SEM ABASTECIMENTO"; + + if(imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.LIGADO){ + if(imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.SEM_OCORRENCIAS + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PERMITIU_ACESSO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.CLIENTE_NAO_PODE_RESPONDER + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_VISITADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_FECHADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.ANIMAL_BRAVO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_NAO_LOCALIZADO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DEMOLIDO + || imovelOcorrencia.getCadastroOcorrencia().getId() == CadastroOcorrencia.IMOVEL_DESOCUPADO){ + + mensagemErro = "Situao da Ligao de gua invlida para a sua Fonte de Abastecimento: " + fonteAbastecimento + " \n "; + } + } + } + } + } + } + return mensagemErro; + } + + /** + * [UC1423] - Concluir + * [SB0002][SB0003][SB0004][SB0007][SB0008][SB0009] - Inserir/Atualizar dados + * + * @author Anderson Cabral + * @throws RepositorioException + * @since 10/01/2013 + * **/ + public ImovelAtlzCadastral concluir()throws ControladorException, RepositorioException{ + if(validarConcluir()){ + ImovelAtlzCadastral imovelAtlzCadastral = TabsActivity.imovel; + ClienteAtlzCadastral clienteAtlzCadastral = TabsActivity.cliente; + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = TabsActivity.hidrometroInstalacaoHist; + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCadExcluir = TabsActivity.hidrometroInstalacaoHistInicial; + Collection colecaoClienteFoneAtlzCad = TabsActivity.colecaoClienteFone; + Collection colecaoClienteFoneAtlzCadExcluir = TabsActivity.colecaoClienteFoneIncial; + Collection colImoveisSubCategoria = TabsActivity.colImoveisSubCategoria; + Collection colImoveisSubCategoriaExcluir = TabsActivity.colImoveisSubCategoriaInicial; + Collection colecaoImovelOcorrencia = TabsActivity.colecaoImovelOcorrencia; + Collection colecaoImovelOcorrenciaExcluir = TabsActivity.colecaoImovelOcorrenciaInicial; + Foto fotoFrenteCasa = TabsActivity.fotoFrenteDaCasa; + Foto fotoHidrometro = TabsActivity.fotoHidrometro; + Foto fotoFrenteCasaInicial = TabsActivity.fotoFrenteDaCasaInicial; + Foto fotoHidrometroInicial = TabsActivity.fotoHidrometroInicial; + + try { + String integracao = null; + + imovelAtlzCadastral.setIndicadorFinalizado(ConstantesSistema.FINALIZADO); + imovelAtlzCadastral.setIndicadorTransmitido(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO); + imovelAtlzCadastral.setDataVisita(new Date()); + + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) fachada.pesquisar(sistemaParametros, null, null); + + if(imovelAtlzCadastral.getEnderecoReferencia().getId() == ConstantesSistema.SEM_NUMERO){ + imovelAtlzCadastral.setNumeroImovel(ConstantesSistema.SEM_NUMERO_ONLINE_OFFLINE); + } + + //Inserir/Atualiza Imovel Atualizacao Cadastral + if(imovelAtlzCadastral.getImovelId() == null || imovelAtlzCadastral.getImovelId().equals("") + || (imovelAtlzCadastral.getIndicadorImovelNovoComMatricula() != null + && imovelAtlzCadastral.getIndicadorImovelNovoComMatricula().intValue() == ConstantesSistema.SIM)){ + + Integer quantidade = Integer.valueOf(sistemaParametros.getQuantidadeImovel()) + 1; + sistemaParametros.setQuantidadeImovel(String.valueOf(quantidade)); + + imovelAtlzCadastral.setPosicao(quantidade); + + fachada.update(sistemaParametros); + + integracao = imovelAtlzCadastral.getLocalidadeId() +""+ imovelAtlzCadastral.getCodigoSetorComercial() +""+ imovelAtlzCadastral.getNumeroQuadra() +""+ + imovelAtlzCadastral.getNumeroLote() +""+ imovelAtlzCadastral.getNumeroSubLote() + Util.obterAAAAMMDDHHMMSS(new Date()); + + imovelAtlzCadastral.setIntegracaoID(integracao); + + long idImovel = 0; + + imovelAtlzCadastral.setLogin(sistemaParametros.getLogin()); + + idImovel = fachada.inserir(imovelAtlzCadastral); + + imovelAtlzCadastral.setId(String.valueOf(idImovel)); + }else{ + + integracao = imovelAtlzCadastral.getLocalidadeId() +""+ imovelAtlzCadastral.getCodigoSetorComercial() +""+ imovelAtlzCadastral.getNumeroQuadra() +""+ + imovelAtlzCadastral.getNumeroLote() +""+ imovelAtlzCadastral.getNumeroSubLote() + Util.obterAAAAMMDDHHMMSS(new Date()); + + imovelAtlzCadastral.setIntegracaoID(integracao); + + if(imovelAtlzCadastral.getImovelId() != null && imovelAtlzCadastral.getImovelId().intValue() == 0){ + imovelAtlzCadastral.setImovelId(null); + } + imovelAtlzCadastral.setLogin(sistemaParametros.getLogin()); + fachada.update(imovelAtlzCadastral); + } + + //Inserir/Atualiza Hidrometro Instalacao historico Atualizacao Cadastral + if(hidrometroInstHistAtlzCad != null){ + if(hidrometroInstHistAtlzCad.getId() == null || hidrometroInstHistAtlzCad.getId().equals("")){ + hidrometroInstHistAtlzCad.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.inserir(hidrometroInstHistAtlzCad); + }else{ + hidrometroInstHistAtlzCad.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.update(hidrometroInstHistAtlzCad); + } + }else if(hidrometroInstHistAtlzCadExcluir != null && hidrometroInstHistAtlzCadExcluir.getId() != null && !hidrometroInstHistAtlzCadExcluir.getId().equals("")){ + //Exclui hidrometroInstHistAtlzCad Inicial + fachada.remover(hidrometroInstHistAtlzCadExcluir); + } + + //Caso o cliente no for informado: + if((imovelAtlzCadastral.getLigAguaSituacao().getId().equals(LigacaoAguaSituacao.FACTIVEL) || + imovelAtlzCadastral.getLigAguaSituacao().getId().equals(LigacaoAguaSituacao.POTENCIAL)) + && !this.validarAbaCliente(clienteAtlzCadastral, LigacaoAguaSituacao.LIGADO).equals("")){ + + if ( clienteAtlzCadastral != null ) { + //Caso cliente ja existente + if(clienteAtlzCadastral.getId() != null && !clienteAtlzCadastral.getId().equals("")){ + + if(colecaoClienteFoneAtlzCadExcluir != null){ + for(ClienteFoneAtlzCad clienteFoneAtlzCad : colecaoClienteFoneAtlzCadExcluir){ + //remove clienteFone + fachada.remover(clienteFoneAtlzCad); + } + } + } + + /*** teste ***/ +// String selection = ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID + "=?"; +// +// String[] selectionArgs = new String[] { +// String.valueOf(clienteAtlzCadastral.getId()), +// }; +// +// ArrayList colecaoClienteFone = (ArrayList) fachada.pesquisarLista(ClienteFoneAtlzCad.class, selection, selectionArgs, null); + /******** ***/ + + //remove cliente + fachada.remover(clienteAtlzCadastral); + clienteAtlzCadastral = null; + TabsActivity.cliente = null; + } +// else { +// //inseri cliente +// clienteAtlzCadastral.setImovelAtlzCadastral(imovelAtlzCadastral); +// long idCliente = fachada.inserir(clienteAtlzCadastral); +// clienteAtlzCadastral.setId(String.valueOf(idCliente)); +// +// //Exclui clienteFone Iniciais +// if(colecaoClienteFoneAtlzCadExcluir != null){ +// for(ClienteFoneAtlzCad clienteFoneAtlzCad : colecaoClienteFoneAtlzCadExcluir){ +// clienteFoneAtlzCad.setClienteAtlzCadastral(clienteAtlzCadastral); +// fachada.remover(clienteFoneAtlzCad); +// } +// +// //inseri clienteFone +// if(colecaoClienteFoneAtlzCad != null){ +// for(ClienteFoneAtlzCad clienteFoneAtlzCad : colecaoClienteFoneAtlzCad){ +// clienteFoneAtlzCad.setClienteAtlzCadastral(clienteAtlzCadastral); +// fachada.inserir(clienteFoneAtlzCad); +// } +// } +// } +// } + }else{ + + if ( clienteAtlzCadastral != null ) { + + if(clienteAtlzCadastral.getId() != null && !clienteAtlzCadastral.getId().equals("")){ + //Atualiza cliente + clienteAtlzCadastral.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.update(clienteAtlzCadastral); + }else{ + //inseri cliente + clienteAtlzCadastral.setImovelAtlzCadastral(imovelAtlzCadastral); + long idCliente = fachada.inserir(clienteAtlzCadastral); + clienteAtlzCadastral.setId(String.valueOf(idCliente)); + + } + + //Exclui clienteFone Iniciais + if(colecaoClienteFoneAtlzCadExcluir != null){ + for(ClienteFoneAtlzCad clienteFoneAtlzCad : colecaoClienteFoneAtlzCadExcluir){ + clienteFoneAtlzCad.setClienteAtlzCadastral(clienteAtlzCadastral); + fachada.remover(clienteFoneAtlzCad); + } + } + + //inseri clienteFone + if(colecaoClienteFoneAtlzCad != null){ + //valida se o cliente ja possui um telefone com o indicador fone padrao + //caso contrario vai inserir um telefone com o indicador ativo + boolean existeFonePadrao = false; + for(ClienteFoneAtlzCad clienteFoneAtlzCad1 : colecaoClienteFoneAtlzCad){ + if (clienteFoneAtlzCad1.getIndicadorFonePadrao() != null && clienteFoneAtlzCad1.getIndicadorFonePadrao().toString().equals("1") ) { + existeFonePadrao = true; + } + } + + boolean primeiraVez = true; + for(ClienteFoneAtlzCad clienteFoneAtlzCad : colecaoClienteFoneAtlzCad){ + clienteFoneAtlzCad.setClienteAtlzCadastral(clienteAtlzCadastral); + if ( primeiraVez && !existeFonePadrao ) { + clienteFoneAtlzCad.setIndicadorFonePadrao(1); + primeiraVez = false; + } else { + clienteFoneAtlzCad.setIndicadorFonePadrao(2); + } + fachada.inserir(clienteFoneAtlzCad); + } + } + } + } + + //Exclui Sub Categorias Iniciais + if(colImoveisSubCategoriaExcluir != null){ + for(ImovelSubCategAtlzCad imovelSubCategAtlzCad : colImoveisSubCategoriaExcluir){ + imovelSubCategAtlzCad.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.remover(imovelSubCategAtlzCad); + } + } + + //inseri Sub Categorias + if(colImoveisSubCategoria != null){ + //Inclui apenas as selecionadas + for(ImovelSubCategAtlzCad imovelSubCategAtlzCad : colImoveisSubCategoria){ + imovelSubCategAtlzCad.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.inserir(imovelSubCategAtlzCad); + } + } + + //Exclui Imovel Ocorrencia Iniciais + if(colecaoImovelOcorrenciaExcluir != null){ + for(ImovelOcorrencia imovelOcorrencia : colecaoImovelOcorrenciaExcluir){ + imovelOcorrencia.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.remover(imovelOcorrencia); + } + } + + //inseri Imovel Ocorrencia + if(colecaoImovelOcorrencia != null){ + for(ImovelOcorrencia imovelOcorrencia : colecaoImovelOcorrencia){ + imovelOcorrencia.setImovelAtlzCadastral(imovelAtlzCadastral); + fachada.inserir(imovelOcorrencia); + } + } + + + //Inserir/Alterar Foto Frente da Casa + if(fotoFrenteCasa != null){ + + String caminhoFoto = fotoFrenteCasa.getFotoPath(); + File foto = new File(caminhoFoto); + + File fileNovo = new File(Util.getFotoFile(integracao, fotoFrenteCasa.getFotoTipo())); + foto.renameTo(fileNovo); + + fotoFrenteCasa.setFotoPath(fileNovo.getAbsolutePath()); + + if(fotoFrenteCasa.getId() != null){ + fachada.update(fotoFrenteCasa); + }else{ + fachada.inserir(fotoFrenteCasa); + } + }else if(fotoFrenteCasaInicial != null){ + fachada.remover(fotoFrenteCasaInicial); + } + + + + + //Inserir/Alterar Foto Hidrometro + if(fotoHidrometro != null){ + String caminhoFoto = fotoHidrometro.getFotoPath(); + File foto = new File(caminhoFoto); + + File fileNovo = new File(Util.getFotoFile(integracao, fotoHidrometro.getFotoTipo())); + foto.renameTo(fileNovo); + + fotoHidrometro.setFotoPath(fileNovo.getAbsolutePath()); + if(fotoHidrometro.getId() != null){ + fachada.update(fotoHidrometro); + }else{ + fachada.inserir(fotoHidrometro); + } + }else if(fotoHidrometroInicial != null){ + fachada.remover(fotoHidrometroInicial); + } + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + + DBConnection.getInstance(context).closeDatabase(); + + return imovelAtlzCadastral; + }else{ + return null; + } + } + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + */ + public String validarAbaLocalidade(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException { + String mensagemErro = ""; + + if(imovelAtlzCadastral.getCodigoSetorComercial() == null || imovelAtlzCadastral.getCodigoSetorComercial().equals(0)){ + mensagemErro += "Informe Setor Comercial \n"; + } + + if(imovelAtlzCadastral.getNumeroQuadra() == null || imovelAtlzCadastral.getNumeroQuadra().equals(0)){ + mensagemErro += "Informe Quadra \n"; + } + + if(imovelAtlzCadastral.getNumeroLote() == null ){ + mensagemErro += "Informe Lote \n"; + } + + if ( imovelAtlzCadastral.getNumeroSubLote() == null ) { + mensagemErro += "Informe Sublote \n"; + } + + return mensagemErro; + } + + /** + * Metodo responsavel por validar os campos da aba endereco + * + * @author Anderson Cabral + * @date 26/12/2012 + * + * @param imovelAtlzCadastral + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaEndereco(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException { + String mensagemErro = ""; + + if(imovelAtlzCadastral.getLogradouro() == null){ + mensagemErro += "Informe Logradouro \n"; + } + + if(imovelAtlzCadastral.getEnderecoReferencia() == null || imovelAtlzCadastral.getEnderecoReferencia().getId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getEnderecoReferencia().getId().equals(0)){ + mensagemErro += "Informe Referncia \n"; + } + + if(imovelAtlzCadastral.getNumeroImovel() == null || (imovelAtlzCadastral.getNumeroImovel().equals("") + && (imovelAtlzCadastral.getEnderecoReferencia()==null + || imovelAtlzCadastral.getEnderecoReferencia().getId() != ConstantesSistema.SEM_NUMERO))) { + + mensagemErro += "Informe Nmero \n"; + } + + if(imovelAtlzCadastral.getLogradouroBairroId() == null || imovelAtlzCadastral.getLogradouroBairroId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getLogradouroBairroId().equals(0)){ + mensagemErro += "Informe Bairro \n"; + } + + if(imovelAtlzCadastral.getLogradouroCEPId() == null || imovelAtlzCadastral.getLogradouroCEPId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getLogradouroCEPId().equals(0)){ + mensagemErro += "Informe CEP \n"; + } + + + + + return mensagemErro; + } + + /** + * Metodo responsavel por validar os campos da aba cliente + * + * @author Davi Menezes + * @date 28/12/2012 + * + * @param clienteAtlzCadastral + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaCliente(ClienteAtlzCadastral clienteAtlzCadastral, Integer idLigacaoAguaSituacao) throws ControladorException { + String mensagemErro = ""; + boolean clienteObrigatorio = false; + + if(idLigacaoAguaSituacao != null){ + if(!idLigacaoAguaSituacao.equals(LigacaoAguaSituacao.FACTIVEL) && !idLigacaoAguaSituacao.equals(LigacaoAguaSituacao.POTENCIAL)){ + clienteObrigatorio = true; + } + }else{ + clienteObrigatorio = true; + } + + //verifica se foi selecionado alguma ocorrencia de cadastro com o indicador de campos obrigatorios igual a 1 + obrigatorio = this.verificarOcorrenciaCadastroSelecionada(); + boolean imovelNovo = TabsActivity.imovelInicial == null || TabsActivity.imovelInicial.getId() == null || TabsActivity.imovelInicial.getId().equals(0); + + if(obrigatorio || !obrigatorio && imovelNovo){ + if(clienteAtlzCadastral != null){ + if(clienteAtlzCadastral.getClienteTipo() != null && clienteAtlzCadastral.getClienteTipo().getId() != null){ + if(clienteObrigatorio && (clienteAtlzCadastral.getClienteTipo().getId() == null || clienteAtlzCadastral.getClienteTipo().getId() == ConstantesSistema.ITEM_INVALIDO)){ + mensagemErro += "Informe Tipo de Cliente \n"; + }else{ + //Validar Dados de Pessoa Fsica + if(clienteAtlzCadastral.getClienteTipo().getIndicadorPessoa().equals(ConstantesSistema.PESSOA_FISICA)){ + //Validar CPF + if(clienteAtlzCadastral.getNumeroCPFCNPPJ() != null && clienteAtlzCadastral.getNumeroCPFCNPPJ().length() != 0 && !Util.validateCPF(clienteAtlzCadastral.getNumeroCPFCNPPJ())){ + mensagemErro += "CPF Invlido \n"; + } + + //Validar Nome do Cliente + if(clienteAtlzCadastral.getNomeCliente() != null && !clienteAtlzCadastral.getNomeCliente().trim().equals("")){ + if(clienteAtlzCadastral.getNomeCliente().length() > 100){ + mensagemErro += "Nome Invlido \n"; + } + }else if(clienteObrigatorio){ + mensagemErro += "Informe Nome \n"; + } + + //Validar Sexo do Cliente + if(clienteObrigatorio && clienteAtlzCadastral.getPessoaSexo() == null){ + mensagemErro += "Informe Sexo \n"; + } + + //Validar Data de Nascimento do Cliente + if(!TabsActivity.dataNascimentoValida){ + mensagemErro += "Data de Nascimento Invlida \n"; + }else if(clienteAtlzCadastral.getDataNascimento() != null && clienteAtlzCadastral.getDataNascimento().getTime() > (new Date()).getTime()){ + mensagemErro += "Data de Nascimento deve ser menor que a Data Atual \n"; + } + + mensagemErro = this.validarDadosRgCliente(clienteAtlzCadastral, mensagemErro); + + //Validar Dados de Pessoa Jurdica + }else if(clienteAtlzCadastral.getClienteTipo().getIndicadorPessoa().equals(ConstantesSistema.PESSOA_JURIDICA)){ + //Validar CNPJ + if(clienteAtlzCadastral.getNumeroCPFCNPPJ() != null && clienteAtlzCadastral.getNumeroCPFCNPPJ().length() != 0 && !Util.validateCNPJ(clienteAtlzCadastral.getNumeroCPFCNPPJ())){ + mensagemErro += "CNPJ Invlido \n"; + } + + //Validar Nome do Cliente + if(clienteAtlzCadastral.getNomeCliente() != null && !clienteAtlzCadastral.getNomeCliente().trim().equals("")){ + if(clienteAtlzCadastral.getNomeCliente().length() > 100){ + mensagemErro += "Nome de Cliente Invlido \n"; + } + }else if(clienteObrigatorio){ + mensagemErro += "Informe Nome do Cliente \n"; + } + }else{ + mensagemErro += "Tipo de Cliente Invlido \n"; + } + } + }else if(clienteObrigatorio){ + mensagemErro += "Informe Tipo de Cliente \n"; + } + }else if(clienteObrigatorio){ + mensagemErro += "Informe Nome \n"; + mensagemErro += "Informe Sexo \n"; + } + + }else{ + if(clienteAtlzCadastral != null){ + + //Cliente Tipo + if(clienteObrigatorio){ + if(clienteAtlzCadastral.getClienteTipo() == null || clienteAtlzCadastral.getClienteTipo().getId() == null + || clienteAtlzCadastral.getClienteTipo().getId() == ConstantesSistema.ITEM_INVALIDO){ + mensagemErro += "Informe Tipo de Cliente \n"; + } + } + + //Validar Nome do Cliente + if(clienteAtlzCadastral.getNomeCliente() != null && !clienteAtlzCadastral.getNomeCliente().trim().equals("")){ + if(clienteAtlzCadastral.getNomeCliente().length() > 100){ + mensagemErro += "Nome Invlido \n"; + } + }else if(clienteObrigatorio){ + mensagemErro += "Informe Nome \n"; + } + }else if(clienteObrigatorio){ + mensagemErro += "Informe Nome \n"; + } + } + + return mensagemErro; + } + + /** + * Mtodo responsvel por validar os dados do RG do Cliente + * + * @author Davi Menezes + * @date 28/12/2012 + */ + private String validarDadosRgCliente(ClienteAtlzCadastral clienteAtlzCadastral, String mensagemErro) throws ControladorException { + //Validar Dados com Nmero do RG Informado + if(clienteAtlzCadastral.getNumeroRG() != null && !clienteAtlzCadastral.getNumeroRG().equals("")){ + if(clienteAtlzCadastral.getOrgaoExpedidorRg() == null || clienteAtlzCadastral.getOrgaoExpedidorRg().getId() == ConstantesSistema.ITEM_INVALIDO || clienteAtlzCadastral.getOrgaoExpedidorRg().getId().equals(0)){ + mensagemErro += "Informe rgo Expedidor \n"; + } + if(clienteAtlzCadastral.getUnidadeFederacao() == null || clienteAtlzCadastral.getUnidadeFederacao().getId() == ConstantesSistema.ITEM_INVALIDO || clienteAtlzCadastral.getUnidadeFederacao().getId().equals(0)){ + mensagemErro += "Informe Unidade Federao \n"; + } + if(!TabsActivity.dataEmissaoValida){ + mensagemErro += "Data de Emisso Invlida \n"; + }else if(clienteAtlzCadastral.getDataNascimento() != null && clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() < clienteAtlzCadastral.getDataNascimento().getTime()){ + mensagemErro += "Data de Emisso deve ser maior que a Data de Nascimento \n"; + }else if(clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() > (new Date()).getTime()){ + mensagemErro += "Data de Emisso deve ser menor ou igual a Data Atual \n"; + } + + //Validar Dados com rgo Expedidor do RG Informado + }else if(clienteAtlzCadastral.getOrgaoExpedidorRg() != null && clienteAtlzCadastral.getOrgaoExpedidorRg().getId() != ConstantesSistema.ITEM_INVALIDO && !clienteAtlzCadastral.getOrgaoExpedidorRg().getId().equals(0)){ + if(clienteAtlzCadastral.getNumeroRG() == null || clienteAtlzCadastral.getNumeroRG().equals("")){ + mensagemErro += "Informe RG \n"; + } + if(clienteAtlzCadastral.getUnidadeFederacao() == null || clienteAtlzCadastral.getUnidadeFederacao().getId() == ConstantesSistema.ITEM_INVALIDO || clienteAtlzCadastral.getUnidadeFederacao().getId().equals(0)){ + mensagemErro += "Informe Unidade Federao \n"; + } + if(!TabsActivity.dataEmissaoValida){ + mensagemErro += "Data de Emisso Invlida \n"; + }else if(clienteAtlzCadastral.getDataNascimento() != null && clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() < clienteAtlzCadastral.getDataNascimento().getTime()){ + mensagemErro += "Data de Emisso deve ser maior que a Data de Nascimento \n"; + }else if(clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() > (new Date()).getTime()){ + mensagemErro += "Data de Emisso deve ser menor ou igual a Data Atual \n"; + } + + //Validar Dados com Unidade Federao Informado + }else if(clienteAtlzCadastral.getUnidadeFederacao() != null && clienteAtlzCadastral.getUnidadeFederacao().getId() != ConstantesSistema.ITEM_INVALIDO && !clienteAtlzCadastral.getUnidadeFederacao().getId().equals(0)){ + if(clienteAtlzCadastral.getNumeroRG() == null || clienteAtlzCadastral.getNumeroRG().equals("")){ + mensagemErro += "Informe RG \n"; + } + if(clienteAtlzCadastral.getOrgaoExpedidorRg() == null || clienteAtlzCadastral.getOrgaoExpedidorRg().getId() == ConstantesSistema.ITEM_INVALIDO || clienteAtlzCadastral.getOrgaoExpedidorRg().getId().equals(0)){ + mensagemErro += "Informe rgo Expedidor \n"; + } + if(!TabsActivity.dataEmissaoValida){ + mensagemErro += "Data de Emisso Invlida \n"; + }else if(clienteAtlzCadastral.getDataNascimento() != null && clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() < clienteAtlzCadastral.getDataNascimento().getTime()){ + mensagemErro += "Data de Emisso deve ser maior que a Data de Nascimento \n"; + }else if(clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() > (new Date()).getTime()){ + mensagemErro += "Data de Emisso deve ser menor ou igual a Data Atual \n"; + } + + //Validar Dados com Data de Emisso Informado + }else if(clienteAtlzCadastral.getDataEmissaoRg() != null || !TabsActivity.dataEmissaoValida){ + if(!TabsActivity.dataEmissaoValida){ + mensagemErro += "Data de Emisso Invlida \n"; + }else if(clienteAtlzCadastral.getDataNascimento() != null && clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() < clienteAtlzCadastral.getDataNascimento().getTime()){ + mensagemErro += "Data de Emisso deve ser maior que a Data de Nascimento \n"; + }else if(clienteAtlzCadastral.getDataEmissaoRg() != null && clienteAtlzCadastral.getDataEmissaoRg().getTime() > (new Date()).getTime()){ + mensagemErro += "Data de Emisso deve ser menor ou igual a Data Atual \n"; + } + + if(clienteAtlzCadastral.getNumeroRG() == null || clienteAtlzCadastral.getNumeroRG().equals("")){ + mensagemErro += "Informe RG \n"; + } + if(clienteAtlzCadastral.getOrgaoExpedidorRg() == null || clienteAtlzCadastral.getOrgaoExpedidorRg().getId() == ConstantesSistema.ITEM_INVALIDO || clienteAtlzCadastral.getOrgaoExpedidorRg().getId().equals(0)){ + mensagemErro += "Informe rgao Expedidor \n"; + } + if(clienteAtlzCadastral.getUnidadeFederacao() == null || clienteAtlzCadastral.getUnidadeFederacao().getId() == ConstantesSistema.ITEM_INVALIDO || clienteAtlzCadastral.getUnidadeFederacao().getId().equals(0)){ + mensagemErro += "Informe Unidade Federao \n"; + } + } + + return mensagemErro; + } + + /** + * Metodo responsavel por validar os campos da aba ligacao + * + * @author Anderson Cabral + * @date 03/01/2013 + * + * @param imovelAtlzCadastral + * @param hidrometroInstHistAtlzCad + * @return Mensagem de Erro + * @throws ControladorException + * @throws FachadaException + */ + public String validarAbaLigacao(ImovelAtlzCadastral imovelAtlzCadastral, HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws ControladorException { + String mensagemErro = ""; + + //verifica se foi selecionado alguma ocorrencia de cadastro com o indicador de campos obrigatorios igual a 1 + obrigatorio = this.verificarOcorrenciaCadastroSelecionada(); + campoAbaLigacaoAlterado = false; + boolean imovelNovo = TabsActivity.imovelInicial == null || TabsActivity.imovelInicial.getId() == null || TabsActivity.imovelInicial.getId().equals(0); + + if(obrigatorio || !obrigatorio && imovelNovo){ + + if(imovelAtlzCadastral.getLigAguaSituacao() == null || imovelAtlzCadastral.getLigAguaSituacao().getId().equals(0)){ + mensagemErro += "Informe Situao Ligao gua \n"; + } + + if(imovelAtlzCadastral.getLigEsgotoSituacao() == null || imovelAtlzCadastral.getLigEsgotoSituacao().getId().equals(0)){ + mensagemErro += "Informe Situao Ligao Esgoto \n"; + } + + if(hidrometroInstHistAtlzCad != null){ + if(hidrometroInstHistAtlzCad.getHidrometroLocalInst() == null || hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId().equals(0)){ + mensagemErro += "Informe Local de Instalao \n"; + } + + if(hidrometroInstHistAtlzCad.getHidrometroProtecao() == null){ + mensagemErro += "Informe Proteo Tipo \n"; + } + + if(hidrometroInstHistAtlzCad.getIndicadorCavalete() == null){ + mensagemErro += "Informe Cavalete \n"; + } + + //Validacao do Numero Hidrometro + if(hidrometroInstHistAtlzCad.getNumeroHidrometro() == null || hidrometroInstHistAtlzCad.getNumeroHidrometro().trim().equals("")){ + mensagemErro += "Informe Nmero do Hidrmetro \n"; + }else{ + mensagemErro += this.validarNumeroHidrometro(imovelAtlzCadastral, hidrometroInstHistAtlzCad); + } + + //SB0006 - Validar Situacao da Ligacao da Agua x Hidrometro + if(imovelAtlzCadastral.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL){ + mensagemErro += "Situao da Ligao da gua invlida para a instalao do Hidrmetro: POTENCIAL \n"; + }else if(imovelAtlzCadastral.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL){ + mensagemErro += "Situao da Ligao da gua invlida para a instalao do Hidrmetro: FACTIVEL \n"; + }else if(imovelAtlzCadastral.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + mensagemErro += "Situao da Ligao da gua invlida para a instalao do Hidrmetro: SUPRIMIDO \n"; + } + } + } + //Faz as validacoes nnos campos que sofreram alteracao + else{ + + try{ + + //verifica se a situacao da ligacao de agua que veio no imovel existe no banco de dados do tablet + String selection = LigacaoAguaSituacaos.ID + "=?"; + String[] selectionArgs = new String[] { String.valueOf(TabsActivity.imovelInicial.getLigAguaSituacao().getId()) }; + + LigacaoAguaSituacao ligacaoAguaSituacao = new LigacaoAguaSituacao(); + ligacaoAguaSituacao = (LigacaoAguaSituacao) fachada.pesquisar(ligacaoAguaSituacao, selection, selectionArgs); + + + //Ligacao Agua + if((TabsActivity.imovelInicial.getLigAguaSituacao() == null && imovelAtlzCadastral.getLigAguaSituacao() != null) + || (TabsActivity.imovelInicial.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao() == null) + || (TabsActivity.imovelInicial.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao() != null && + !TabsActivity.imovelInicial.getLigAguaSituacao().getId().equals(imovelAtlzCadastral.getLigAguaSituacao().getId()))){ + + campoAbaLigacaoAlterado = true; + + if(imovelAtlzCadastral.getLigAguaSituacao() == null || imovelAtlzCadastral.getLigAguaSituacao().getId().equals(0)){ + mensagemErro += "Informe Situao Ligao gua \n"; + } + + } + else if((ligacaoAguaSituacao == null || ligacaoAguaSituacao.getId() == null) + && (imovelAtlzCadastral.getLigAguaSituacao() == null + || imovelAtlzCadastral.getLigAguaSituacao().getId().equals(TabsActivity.imovelInicial.getLigAguaSituacao().getId()))){ + + campoAbaLigacaoAlterado = true; + mensagemErro += "Informe Situao Ligao gua \n"; + } + + //verifica se a situacao da ligacao de esgoto que veio no imovel existe no banco de dados do tablet + String selectionEsgoto = LigacaoEsgotoSituacaos.ID + "=?"; + String[] selectionArgsEsgoto = new String[] { String.valueOf(TabsActivity.imovelInicial.getLigEsgotoSituacao().getId()) }; + + LigacaoEsgotoSituacao ligacaoEsgotoSituacao = new LigacaoEsgotoSituacao(); + ligacaoEsgotoSituacao = (LigacaoEsgotoSituacao) fachada.pesquisar(ligacaoEsgotoSituacao, selectionEsgoto, selectionArgsEsgoto); + + //Ligacao Esgoto + if((ligacaoEsgotoSituacao == null || ligacaoEsgotoSituacao.getId() == null) + || (TabsActivity.imovelInicial.getLigEsgotoSituacao() == null && imovelAtlzCadastral.getLigEsgotoSituacao() != null) + || (TabsActivity.imovelInicial.getLigEsgotoSituacao() != null && imovelAtlzCadastral.getLigEsgotoSituacao() == null) + || (TabsActivity.imovelInicial.getLigEsgotoSituacao() != null && imovelAtlzCadastral.getLigEsgotoSituacao() != null && + !TabsActivity.imovelInicial.getLigEsgotoSituacao().getId().equals(imovelAtlzCadastral.getLigEsgotoSituacao().getId()))){ + + campoAbaLigacaoAlterado = true; + + if(imovelAtlzCadastral.getLigEsgotoSituacao() == null || imovelAtlzCadastral.getLigEsgotoSituacao().getId().equals(0)){ + mensagemErro += "Informe Situao Ligao Esgoto \n"; + } + } + else if((ligacaoEsgotoSituacao == null || ligacaoEsgotoSituacao.getId() == null) + && (imovelAtlzCadastral.getLigEsgotoSituacao() == null + || imovelAtlzCadastral.getLigEsgotoSituacao().getId().equals(TabsActivity.imovelInicial.getLigEsgotoSituacao().getId()))){ + + campoAbaLigacaoAlterado = true; + mensagemErro += "Informe Situao Ligao Esgoto \n"; + } + + if(hidrometroInstHistAtlzCad != null){ + + //Local Instalacao + if((TabsActivity.hidrometroInstalacaoHistInicial.getHidrometroLocalInst() == null && (hidrometroInstHistAtlzCad.getHidrometroLocalInst() != null && !hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId().equals(0))) + || ((TabsActivity.hidrometroInstalacaoHistInicial.getHidrometroLocalInst() != null && !TabsActivity.hidrometroInstalacaoHistInicial.getHidrometroLocalInst().getId().equals(0)) && hidrometroInstHistAtlzCad.getHidrometroLocalInst() == null) + || (TabsActivity.hidrometroInstalacaoHistInicial.getHidrometroLocalInst() != null && hidrometroInstHistAtlzCad.getHidrometroLocalInst() != null && + !TabsActivity.hidrometroInstalacaoHistInicial.getHidrometroLocalInst().getId().equals(hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId()))){ + + campoAbaLigacaoAlterado = true; + + if(hidrometroInstHistAtlzCad.getHidrometroLocalInst() == null || hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId().equals(0)){ + mensagemErro += "Informe Local de Instalao \n"; + } + } + + //Protecao Tipo + if(TabsActivity.hidrometroInstalacaoHistInicial.getHidrometroProtecao() != null && hidrometroInstHistAtlzCad.getHidrometroProtecao() == null){ + campoAbaLigacaoAlterado = true; + mensagemErro += "Informe Proteo Tipo \n"; + } + + //Cavalete + if(TabsActivity.hidrometroInstalacaoHistInicial.getIndicadorCavalete() != null && hidrometroInstHistAtlzCad.getIndicadorCavalete() == null){ + campoAbaLigacaoAlterado = true; + mensagemErro += "Informe Cavalete \n"; + } + + //Numero Hidrometro + if((TabsActivity.hidrometroInstalacaoHistInicial.getNumeroHidrometro() == null && hidrometroInstHistAtlzCad.getNumeroHidrometro() != null) + || (TabsActivity.hidrometroInstalacaoHistInicial.getNumeroHidrometro() != null && hidrometroInstHistAtlzCad.getNumeroHidrometro() == null) + || (TabsActivity.hidrometroInstalacaoHistInicial.getNumeroHidrometro() != null && hidrometroInstHistAtlzCad.getNumeroHidrometro() != null && + !TabsActivity.hidrometroInstalacaoHistInicial.getNumeroHidrometro().equalsIgnoreCase(hidrometroInstHistAtlzCad.getNumeroHidrometro()))){ + + campoAbaLigacaoAlterado = true; + + if(hidrometroInstHistAtlzCad.getNumeroHidrometro() == null || hidrometroInstHistAtlzCad.getNumeroHidrometro().trim().equals("")){ + mensagemErro += "Informe Nmero do Hidrmetro \n"; + }else{ + mensagemErro += this.validarNumeroHidrometro(imovelAtlzCadastral, hidrometroInstHistAtlzCad); + } + } + + if(campoAbaLigacaoAlterado){ + //SB0006 - Validar Situacao da Ligacao da Agua x Hidrometro + if(imovelAtlzCadastral.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.POTENCIAL){ + mensagemErro += "Situao da Ligao da gua invlida para a instalao do Hidrmetro: POTENCIAL \n"; + }else if(imovelAtlzCadastral.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.FACTIVEL){ + mensagemErro += "Situao da Ligao da gua invlida para a instalao do Hidrmetro: FACTIVEL \n"; + }else if(imovelAtlzCadastral.getLigAguaSituacao() != null && imovelAtlzCadastral.getLigAguaSituacao().getId() == LigacaoAguaSituacao.SUPRIMIDO){ + mensagemErro += "Situao da Ligao da gua invlida para a instalao do Hidrmetro: SUPRIMIDO \n"; + } + } + } + + + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + return mensagemErro; + } + + /** + * Metodo responsavel por validar o Numero do Hidrometro + * + * @author Anderson Cabral + * @date 03/01/2013 + * + * @param imovelAtlzCadastral + * @param hidrometroInstHistAtlzCad + * @return Mensagem de Erro + * @throws ControladorException + */ + private String validarNumeroHidrometro(ImovelAtlzCadastral imovelAtlzCadastral, HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws ControladorException { + String mensagemErro = ""; + try { + //Validacao do Numero Hidrometro + String primeiroCaracter = hidrometroInstHistAtlzCad.getNumeroHidrometro().substring(0, 1); + + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + String selectionHidroCapacidade = HidrometroCapacidadeColunas.CODIGO + "=?"; + + String[] selectionArgsHidroCapacidade = new String[] { + String.valueOf(primeiroCaracter) + }; + + hidrometroCapacidade = (HidrometroCapacidade) fachada.pesquisar(hidrometroCapacidade, selectionHidroCapacidade, selectionArgsHidroCapacidade); + + if(hidrometroCapacidade == null || hidrometroCapacidade.getId() == null){ + mensagemErro = "Nmero do Hidrmetro inconsistente \n"; + }else{ + if ( hidrometroInstHistAtlzCad.getNumeroHidrometro().length() > 4 ) { + String quartoCaracter = hidrometroInstHistAtlzCad.getNumeroHidrometro().substring(3, 4); + + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + String selectionHidroMarca = HidrometroMarcaColunas.CODIGO + "=?"; + + String[] selectionArgsHidroMarca = new String[] { + String.valueOf(quartoCaracter) + }; + + hidrometroMarca = (HidrometroMarca) fachada.pesquisar(hidrometroMarca, selectionHidroMarca, selectionArgsHidroMarca); + + if(hidrometroMarca == null || hidrometroMarca.getId() == null){ + mensagemErro = "Nmero do Hidrmetro inconsistente \n"; + } + } else { + mensagemErro = "Nmero do Hidrmetro inconsistente \n"; + } + } + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + + return mensagemErro; + } + + /** + * Metodo responsavel por validar os campos da aba imvel + * + * @author Davi Menezes + * @date 07/01/2012 + * + * @param imovelAtlzCadastral + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaImovel(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException { + String mensagemErro = ""; + fonteAbastecimentoAlterada = false; + + if(imovelAtlzCadastral != null){ + if(imovelAtlzCadastral.getImovelPerfil() == null || imovelAtlzCadastral.getImovelPerfil().getId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getImovelPerfil().getId().equals(0)){ + mensagemErro += "Informe Perfil do Imvel \n"; + } + + if(imovelAtlzCadastral.getPavimentoRua() == null || imovelAtlzCadastral.getPavimentoRua().getId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getPavimentoRua().getId().equals(0)){ + mensagemErro += "Informe Pavimento Rua \n"; + } + + if(imovelAtlzCadastral.getPavimentoCalcada() == null || imovelAtlzCadastral.getPavimentoCalcada().getId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getPavimentoCalcada().getId().equals(0)){ + mensagemErro += "Informe Pavimento Calada \n"; + } + + if(imovelAtlzCadastral.getFonteAbastecimento() == null || imovelAtlzCadastral.getFonteAbastecimento().getId().equals(ConstantesSistema.ITEM_INVALIDO) || imovelAtlzCadastral.getFonteAbastecimento().getId().equals(0)){ + mensagemErro += "Informe Fonte de Abastecimento \n"; + } + + if(TabsActivity.colImoveisSubCategoria == null || TabsActivity.colImoveisSubCategoria.size() == 0){ + mensagemErro += "Informe no mnimo uma Categoria \n"; + } + + } + + if(TabsActivity.imovelInicial == null + || ((TabsActivity.imovelInicial.getFonteAbastecimento() == null || TabsActivity.imovelInicial.getFonteAbastecimento().getId().equals(0)) && (imovelAtlzCadastral.getFonteAbastecimento() != null && !imovelAtlzCadastral.getFonteAbastecimento().getId().equals(0))) + || ((TabsActivity.imovelInicial.getFonteAbastecimento() != null && !TabsActivity.imovelInicial.getFonteAbastecimento().getId().equals(0)) && (imovelAtlzCadastral.getFonteAbastecimento() == null || imovelAtlzCadastral.getFonteAbastecimento().getId().equals(0))) + || (imovelAtlzCadastral.getFonteAbastecimento() != null && TabsActivity.imovelInicial.getFonteAbastecimento() != null && + !TabsActivity.imovelInicial.getFonteAbastecimento().getId().equals(imovelAtlzCadastral.getFonteAbastecimento().getId()))){ + + fonteAbastecimentoAlterada = true; + } + + return mensagemErro; + } + + /** + * Metodo que pesquisa o imovel de acordo com a posicao dele no roteiro. + * + * @author Arthur Carvalho + * @date 08/01/2013 + * + * @param posicao + * @return + * @throws ControladorException + */ + public ImovelAtlzCadastral buscarImovelPosicao(Integer posicao) throws ControladorException { + ImovelAtlzCadastral imovelAtlzCadastral = null; + try { + + imovelAtlzCadastral = RepositorioImovelAtlzCadastral.getInstance().buscarImovelPosicao(posicao); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + + return imovelAtlzCadastral; + } + + /** + * Metodo responsavel por validar os campos da aba Fotos + * + * @author Anderson Cabral + * @date 08/01/2013 + * + * @param idImovel + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaFotos(Integer idImovel)throws ControladorException { + String mensagemErro = ""; + + if(TabsActivity.colecaoImovelOcorrencia == null || TabsActivity.colecaoImovelOcorrencia.isEmpty()){ + mensagemErro += "Informe no mnimo uma Ocorrncia \n"; + } + + return mensagemErro; + } + + + /**** + * Retorna o maior id da tabela Imovel + * + *@author Anderson Cabral + *@since 11/01/2013 + ****/ + public Integer pesquisarMaiorIdImovel() throws ControladorException{ + Integer id = null; + try { + + id = RepositorioImovelAtlzCadastral.getInstance().pesquisarMaiorIdImovel(); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + + return id; + } + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoLogradouroBairro(Logradouro logradouro, SistemaParametros sistemaParametros) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + + //Registro tipo 02 - LOGRADOURO | 03 - LOGRADOURO BAIRRO + sb.append(gerarRegistro02(logradouro, sistemaParametros)); + + + return sb.toString(); + } + + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoLogradouroCep(LogradouroCep logradouroCep) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + + //Registro tipo 04 - LOGRADOURO CEP + sb.append(gerarRegistro04(logradouroCep)); + + + return sb.toString(); + } + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoCep(Cep cep) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + //Registro tipo 01 - CEP + sb.append(gerarRegistro01(cep)); + + return sb.toString(); + } + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoImovel(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + //Registro tipo 05 - IMOVEL ATLZ CADASTRAL | 06 Cliente Atlz Cadastral | 07 Cliente Fone Atlz Cadastral + // 08 Hidrometro Atlz Cadastral | 09 Subcategoria Atlz Cadastral | 10 Imovel ocorrencia + sb.append(gerarRegistro05(imovelAtlzCadastral)); + + return sb.toString(); + } + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro01(Cep cep) throws ControladorException { + StringBuilder sb = new StringBuilder(""); + + sb.append(Util.stringPipe(REGISTER_TYPE_1)); + sb.append(Util.stringPipe(cep.getCodigoUnico())); + sb.append(Util.stringPipe(cep.getCodigo())); + sb.append("\n"); + + return sb.toString(); + } + + /** + * Registro tipo 02 - logradouro + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro02(Logradouro logradouro, SistemaParametros sistemaParametros) throws ControladorException { + StringBuilder sb = new StringBuilder(""); + + sb.append(Util.stringPipe(REGISTER_TYPE_2)); + sb.append(Util.stringPipe(logradouro.getCodigoUnico())); + sb.append(Util.stringPipe(logradouro.getNomeLogradouro())); + sb.append(Util.stringPipe(logradouro.getNomePopularLogradouro())); + sb.append(Util.stringPipe(logradouro.getNomeLoteamento())); + if ( logradouro.getMunicipio() != null ) { + sb.append(Util.stringPipe(logradouro.getMunicipio().getId())); + }else{ + sb.append(Util.stringPipe(null)); + } + + if ( logradouro.getLogradouroTipo() != null ) { + sb.append(Util.stringPipe(logradouro.getLogradouroTipo().getId())); + }else{ + sb.append(Util.stringPipe(null)); + } + + if ( logradouro.getLogradouroTitulo() != null ) { + sb.append(Util.stringPipe(logradouro.getLogradouroTitulo().getId())); + }else{ + sb.append(Util.stringPipe(null)); + } + + sb.append(Util.stringPipe(sistemaParametros.getIdLocalidade())); + + sb.append(Util.stringPipe(sistemaParametros.getIdEmpresa())); + + + sb.append("\n"); + + + //Pesquisa os logradouros bairros + sb.append(gerarRegistro03(logradouro.getId(), logradouro.getCodigoUnico())); + + + return sb.toString(); + } + + /** + * Registro tipo 03 - logradouro Bairro + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro03(Integer idLogradouro, String codigoUnico) throws ControladorException { + StringBuilder sb = new StringBuilder(""); + + //Pesquisa Logradouro bairro + String selection = LogradouroBairros.LOGRADOURO + "=?"; + + String[] selectionArgs = new String[] { + idLogradouro.toString() + }; + + try { + + List listaLogradouroBairro = fachada.pesquisarLista(LogradouroBairro.class, selection, selectionArgs, null); + + if ( listaLogradouroBairro != null ) { + + Iterator iteratorLogradouroBairro = listaLogradouroBairro.iterator(); + while( iteratorLogradouroBairro.hasNext() ) { + + LogradouroBairro logradouroBairro = (LogradouroBairro) iteratorLogradouroBairro.next(); + sb.append(Util.stringPipe(REGISTER_TYPE_3)); + sb.append(Util.stringPipe(codigoUnico)); + sb.append(Util.stringPipe(logradouroBairro.getBairro().getId())); + sb.append("\n"); + } + } + } catch (FachadaException e) { + e.printStackTrace(); + } + + return sb.toString() ; + } + + + /** + * Registro tipo 04 - logradouro cep + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro04(LogradouroCep logradouroCep) throws ControladorException { + StringBuilder sb = new StringBuilder(""); + + try { + Cep cep = new Cep(); + + String selection = ""; + String[] selectionArgs = null; + if (selection == null || selection.trim().equals("")) { + selection = Ceps.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(logradouroCep.getCep().getId()) + }; + } + + cep = (Cep) fachada.pesquisar(cep, selection, selectionArgs); + + Logradouro logradouro = new Logradouro(); + + String selectionLogradouro = ""; + String[] selectionArgsLogradouro = null; + if (selectionLogradouro == null || selectionLogradouro.trim().equals("")) { + selectionLogradouro = Logradouros.ID + "=?"; + } + + if (selectionArgsLogradouro == null) { + selectionArgsLogradouro = new String[] { + String.valueOf(logradouroCep.getLogradouro().getId()) + }; + } + + logradouro = (Logradouro) fachada.pesquisar(logradouro, selectionLogradouro, selectionArgsLogradouro); + + sb.append(Util.stringPipe(REGISTER_TYPE_4)); + sb.append(Util.stringPipe(cep.getCodigoUnico())); + sb.append(Util.stringPipe(logradouro.getCodigoUnico())); + sb.append("\n"); + + } catch (FachadaException e) { + e.printStackTrace(); + } + + return sb.toString(); + } + + + /** + * Registro tipo 05 - Imovel Atlz Cadastral + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro05(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + SistemaParametros sistemaParametros = new SistemaParametros(); + + try { + sistemaParametros = (SistemaParametros) fachada.pesquisar(sistemaParametros, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + + sb.append(Util.stringPipe(REGISTER_TYPE_5)); + sb.append(Util.stringPipe(imovelAtlzCadastral.getId()));//1 + sb.append(Util.stringPipe(imovelAtlzCadastral.getImovelId()));//2 + sb.append(Util.stringPipe(imovelAtlzCadastral.getMunicipioId()));//3 + sb.append(Util.stringPipe(imovelAtlzCadastral.getLocalidadeId()));//4 + sb.append(Util.stringPipe(imovelAtlzCadastral.getCodigoSetorComercial()));//5 + sb.append(Util.stringPipe(imovelAtlzCadastral.getNumeroQuadra()));//6 + sb.append(Util.stringPipe(imovelAtlzCadastral.getNumeroLote()));//7 + sb.append(Util.stringPipe(imovelAtlzCadastral.getNumeroSubLote()));//8 + + //enviar o codigo unico do logradouro + if ( imovelAtlzCadastral.getCodigoUnicoLogradouro() != null && !imovelAtlzCadastral.getCodigoUnicoLogradouro().equals("") ) { + sb.append(Util.stringPipe(imovelAtlzCadastral.getCodigoUnicoLogradouro()));//9 + } else { + sb.append(Util.stringPipe(imovelAtlzCadastral.getLogradouro().getId()));//9 + } + + sb.append(Util.stringPipe(imovelAtlzCadastral.getEnderecoReferencia().getId()));//10 + sb.append(Util.stringPipe(imovelAtlzCadastral.getNumeroImovel()));//11 + sb.append(Util.stringPipe(imovelAtlzCadastral.getComplementoEndereco()));//12 + sb.append(Util.stringPipe(imovelAtlzCadastral.getLogradouroBairroId()));//13 + sb.append(Util.stringPipe(imovelAtlzCadastral.getLogradouroCEPId()));//14 + sb.append(Util.stringPipe(imovelAtlzCadastral.getImovelPerfil().getId()));//15 + sb.append(Util.stringPipe(imovelAtlzCadastral.getNumeroMedidorEnergia()));//16 + sb.append(Util.stringPipe(imovelAtlzCadastral.getNumeroMorador()));//17 + sb.append(Util.stringPipe(imovelAtlzCadastral.getPavimentoRua().getId()));//18 + sb.append(Util.stringPipe(imovelAtlzCadastral.getPavimentoCalcada().getId()));//19 + sb.append(Util.stringPipe(imovelAtlzCadastral.getFonteAbastecimento().getId()));//20 + sb.append(Util.stringPipe(imovelAtlzCadastral.getLigAguaSituacao().getId()));//21 + sb.append(Util.stringPipe(imovelAtlzCadastral.getLigEsgotoSituacao().getId()));//22 + sb.append(Util.stringPipe(imovelAtlzCadastral.getIndicadorTarifaSocial()));//23 + sb.append(Util.stringPipe(Util.convertDateToStringComHora(imovelAtlzCadastral.getDataVisita())));//24 + sb.append(Util.stringPipe(imovelAtlzCadastral.getIntegracaoID()));//25 + sb.append(Util.stringPipe(sistemaParametros.getIdComando()));//26 + sb.append(Util.stringPipe(imovelAtlzCadastral.getIdBairro()));//27 + sb.append(Util.stringPipe(imovelAtlzCadastral.getCodigoCep()));//28 + sb.append(Util.stringPipe(imovelAtlzCadastral.getObservacao()));//29 + sb.append(Util.stringPipe(sistemaParametros.getIdEmpresa()));//30 + + if ( imovelAtlzCadastral.getLogin() != null && !imovelAtlzCadastral.getLogin().equals("") ) { + + sb.append(Util.stringPipe(imovelAtlzCadastral.getLogin()));//31 + } else { + sb.append(Util.stringPipe(sistemaParametros.getLogin()));//31 + } + + sb.append(Util.stringPipe(imovelAtlzCadastral.getNomeMunicipio()));//32 + + if(imovelAtlzCadastral.getIndicadorImovelNovoComMatricula() != null + && imovelAtlzCadastral.getIndicadorImovelNovoComMatricula().intValue() == ConstantesSistema.SIM){ + sb.append(Util.stringPipe(ConstantesSistema.SIM)); //33 + }else{ + sb.append(Util.stringPipe(ConstantesSistema.NAO)); //33 + } + + sb.append("\n"); + + + return sb.toString(); + } + + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoOcorrencia( List listaImovelOcorrencia, String codigoImovelAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + //Registro do tipo 10 - Imovel ocorrencia + sb.append(gerarRegistro10(listaImovelOcorrencia, codigoImovelAtlzCadastral)); + + return sb.toString(); + } + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoSubcategoria( List listaImovelSubCategAtlzCad, String codigoImovelAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + //Registro do tipo 09 - Subcategoria Atlz Cadastral + sb.append(gerarRegistro09(listaImovelSubCategAtlzCad, codigoImovelAtlzCadastral)); + + return sb.toString(); + } + + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoHidrometro( List listaHidrometroInstHistAtlzCad, String codigoImovelAtlzCadastral, Integer idImovel) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + //Registro do tipo 08 - Hidrometro Atlz Cadastral + sb.append(gerarRegistro08(listaHidrometroInstHistAtlzCad, codigoImovelAtlzCadastral, idImovel)); + + return sb.toString(); + } + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoCliente(ClienteAtlzCadastral clienteAtlzCadastral, List listaClienteFoneAtlzCadastral, + String codigoImovelAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + //Registro do tipo 06 - Cliente Atz Cadastral | 07 Cliente Fone Atlz Cadastral + sb.append(gerarRegistro06(clienteAtlzCadastral, listaClienteFoneAtlzCadastral, codigoImovelAtlzCadastral)); + + return sb.toString(); + } + + + /** + * Registro tipo 06 - Cliente Atlz Cadastral + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro06(ClienteAtlzCadastral clienteAtlzCadastral, List listaClienteFoneAtlzCadastral, String codigoImovelAtlzCadastral) + throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + if ( clienteAtlzCadastral != null && clienteAtlzCadastral.getId() != null ) { + + sb.append(Util.stringPipe(REGISTER_TYPE_6)); + + sb.append(Util.stringPipe(codigoImovelAtlzCadastral)); + sb.append(Util.stringPipe(clienteAtlzCadastral.getClienteTipo().getId())); + sb.append(Util.stringPipe(clienteAtlzCadastral.getNumeroCPFCNPPJ())); + sb.append(Util.stringPipe(clienteAtlzCadastral.getNomeCliente())); + sb.append(Util.stringPipe(clienteAtlzCadastral.getNumeroRG())); + + String idOrgaoExpedidor = null; + if ( clienteAtlzCadastral.getOrgaoExpedidorRg() != null && clienteAtlzCadastral.getOrgaoExpedidorRg().getId() != null + && !clienteAtlzCadastral.getOrgaoExpedidorRg().getId().toString().equals("0") ) { + idOrgaoExpedidor = new String(""); + idOrgaoExpedidor = clienteAtlzCadastral.getOrgaoExpedidorRg().getId().toString(); + } + sb.append(Util.stringPipe(idOrgaoExpedidor)); + + String idUnidadeFederacao = null; + if ( clienteAtlzCadastral.getUnidadeFederacao() != null && clienteAtlzCadastral.getUnidadeFederacao().getId() != null + && !clienteAtlzCadastral.getUnidadeFederacao().getId().toString().equals("0") ) { + idUnidadeFederacao = new String(""); + idUnidadeFederacao = clienteAtlzCadastral.getUnidadeFederacao().getId().toString(); + } + sb.append(Util.stringPipe(idUnidadeFederacao)); + + String dataRG = null; + if ( clienteAtlzCadastral.getDataEmissaoRg() != null && !clienteAtlzCadastral.getDataEmissaoRg().equals("") ) { + dataRG = new String(""); + dataRG = Util.convertDateToString(clienteAtlzCadastral.getDataEmissaoRg()); + } + sb.append(Util.stringPipe(dataRG)); + + String pessoaSexo = null; + if ( clienteAtlzCadastral.getPessoaSexo() != null && clienteAtlzCadastral.getPessoaSexo().getId() != null + && !clienteAtlzCadastral.getPessoaSexo().getId().toString().equals("0") ) { + pessoaSexo = new String(""); + pessoaSexo = clienteAtlzCadastral.getPessoaSexo().getId().toString(); + } + sb.append(Util.stringPipe(pessoaSexo)); + + String dataNascimento = null; + if ( clienteAtlzCadastral.getDataNascimento() != null && !clienteAtlzCadastral.getDataNascimento().equals("") ) { + dataNascimento = new String(""); + dataNascimento = Util.convertDateToString(clienteAtlzCadastral.getDataNascimento()); + } + sb.append(Util.stringPipe(dataNascimento)); + + sb.append(Util.stringPipe(clienteAtlzCadastral.getIdCliente())); + sb.append(Util.stringPipe(clienteAtlzCadastral.getId())); + sb.append("\n"); + + sb.append(gerarRegistro07(listaClienteFoneAtlzCadastral, codigoImovelAtlzCadastral, clienteAtlzCadastral.getId())); + } + + + + return sb.toString(); + } + + + /** + * Registro tipo 07 - Cliente Fone Atlz Cadastral + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro07(List listaClienteFoneAtlzCadastral , String codigoImovelAtlzCadastral, Integer idClienteAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + if ( listaClienteFoneAtlzCadastral != null && !listaClienteFoneAtlzCadastral.isEmpty() ) { + + Iterator iteratorClienteFoneAtlzCadastral = listaClienteFoneAtlzCadastral.iterator(); + while( iteratorClienteFoneAtlzCadastral.hasNext() ) { + + ClienteFoneAtlzCad clienteFoneAtlzCadastral = (ClienteFoneAtlzCad) iteratorClienteFoneAtlzCadastral.next(); + sb.append(Util.stringPipe(REGISTER_TYPE_7)); + sb.append(Util.stringPipe(codigoImovelAtlzCadastral)); + sb.append(Util.stringPipe(clienteFoneAtlzCadastral.getFoneTipo().getId())); + sb.append(Util.stringPipe(clienteFoneAtlzCadastral.getCodigoDDD())); + sb.append(Util.stringPipe(clienteFoneAtlzCadastral.getNumeroFone())); + sb.append(Util.stringPipe(clienteFoneAtlzCadastral.getIndicadorFonePadrao())); + + //Id do cliente atualizacao cadastral para atualizar os dados do tablet "pai". + sb.append(Util.stringPipe(idClienteAtlzCadastral)); + sb.append(Util.stringPipe(clienteFoneAtlzCadastral.getClienteId())); + + sb.append("\n"); + } + } + + return sb.toString(); + } + + /** + * Registro tipo 08 - Hidrometro Atlz Cadastral + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro08(List listaHidrometroInstHistAtlzCad, String codigoImovelAtlzCadastral, Integer idImovel) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + + if ( listaHidrometroInstHistAtlzCad != null ) { + + Iterator iteratorHidrometroInstHistAtlzCad = listaHidrometroInstHistAtlzCad.iterator(); + while( iteratorHidrometroInstHistAtlzCad.hasNext() ) { + + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = (HidrometroInstHistAtlzCad) iteratorHidrometroInstHistAtlzCad.next(); + sb.append(Util.stringPipe(REGISTER_TYPE_8)); + sb.append(Util.stringPipe(codigoImovelAtlzCadastral)); + sb.append(Util.stringPipe(hidrometroInstHistAtlzCad.getNumeroHidrometro())); + + String hidrometroLocalInst = null; + if ( hidrometroInstHistAtlzCad.getHidrometroLocalInst() != null && hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId() != null ) { + hidrometroLocalInst = new String(""); + hidrometroLocalInst = String.valueOf(hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId()); + } + sb.append(Util.stringPipe(hidrometroLocalInst)); + + String hidrometroProtecao = null; + if ( hidrometroInstHistAtlzCad.getHidrometroProtecao() != null && hidrometroInstHistAtlzCad.getHidrometroProtecao().getId() != null ) { + hidrometroProtecao = new String(""); + hidrometroProtecao = String.valueOf(hidrometroInstHistAtlzCad.getHidrometroProtecao().getId()); + } + + sb.append(Util.stringPipe(hidrometroProtecao)); + sb.append(Util.stringPipe(hidrometroInstHistAtlzCad.getIndicadorCavalete())); + sb.append(Util.stringPipe(hidrometroInstHistAtlzCad.getNumeroInstHidrometro())); + sb.append(Util.stringPipe(idImovel)); + + sb.append("\n"); + } + } + + + return sb.toString(); + } + + + /** + * Registro tipo 09 - Subcategoria Atlz Cadastral + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro09(List listaImovelSubCategAtlzCad, String codigoImovelAtlzCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + if ( listaImovelSubCategAtlzCad != null ) { + + Iterator iteratorImovelSubCategAtlzCad = listaImovelSubCategAtlzCad.iterator(); + while( iteratorImovelSubCategAtlzCad.hasNext() ) { + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = (ImovelSubCategAtlzCad) iteratorImovelSubCategAtlzCad.next(); + sb.append(Util.stringPipe(REGISTER_TYPE_9)); + sb.append(Util.stringPipe(codigoImovelAtlzCadastral)); + sb.append(Util.stringPipe(imovelSubCategAtlzCad.getCategoria().getId())); + sb.append(Util.stringPipe(imovelSubCategAtlzCad.getSubCategoria().getId())); + sb.append(Util.stringPipe(imovelSubCategAtlzCad.getQuantidadeEconomia())); + + sb.append("\n"); + } + } + + + return sb.toString(); + } + + /** + * Registro tipo 10 - Imovel ocorrencia + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + private String gerarRegistro10( List listaImovelOcorrencia, String codigoImovelAtualizacaoCadastral) throws ControladorException { + + StringBuilder sb = new StringBuilder(""); + + + if ( listaImovelOcorrencia != null ) { + + Iterator iteratorImovelOcorrencia = listaImovelOcorrencia.iterator(); + while( iteratorImovelOcorrencia.hasNext() ) { + + ImovelOcorrencia imovelOcorrencia = (ImovelOcorrencia) iteratorImovelOcorrencia.next(); + sb.append(Util.stringPipe(REGISTER_TYPE_10)); + sb.append(Util.stringPipe(imovelOcorrencia.getCadastroOcorrencia().getId())); + sb.append(Util.stringPipe(codigoImovelAtualizacaoCadastral)); + sb.append("\n"); + } + } + + return sb.toString(); + } + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public Roteiro pesquisarRoteiro(Integer idImovelAtlzCadastral) throws ControladorException { + Roteiro roteiro = null; + try { + roteiro = RepositorioImovelAtlzCadastral.getInstance().pesquisarRoteiro(idImovelAtlzCadastral); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return roteiro; + } + + /** + * Metodo responsavel por pesquisar todos os imveis cadastrados no gsan. + * + * @author Arthur Carvalho + * @return FileReturn + * @param idServiceOrder + * @throws RepositoryException + */ + public ArrayList pesquisarMatriculas() throws ControladorException { + + ArrayList lista = null; + + try { + lista = RepositorioImovelAtlzCadastral.getInstance().pesquisarMatriculas(); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return lista; + } + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + */ + @Override + public SistemaParametros validarLogin(String login, String password) throws ControladorException { + SistemaParametros sistemaParametros = null; + try { + sistemaParametros = RepositorioSistemaParametros.getInstance().validarLogin(login, password); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return sistemaParametros; + } + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + */ + public SistemaParametros validarLoginCpf(String login) throws ControladorException { + SistemaParametros sistemaParametros = null; + try { + sistemaParametros = RepositorioSistemaParametros.getInstance().validarLoginCpf(login); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return sistemaParametros; + } + + /**** + * Retorna imovel atraves do numero do hidrometro + * + *@author Anderson Cabral + *@since 17/07/2013 + ****/ + public List pesquisarImovelPeloHidrometro(String numeroHidrometro) throws ControladorException { + + List listaImovelAtlzCadastral = null; + + try { + listaImovelAtlzCadastral = RepositorioImovelAtlzCadastral.getInstance().pesquisarImovelPeloHidrometro(numeroHidrometro); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return listaImovelAtlzCadastral; + } + + /**** + * Retorna colecao de imoveis pelo cpf + * + *@author Anderson Cabral + *@since 17/07/2013 + ****/ + public List pesquisarImovelPeloCPFCNPJ(String numeroCpfCnpj) throws ControladorException{ + List listaImovelAtlzCadastral = null; + + try { + listaImovelAtlzCadastral = RepositorioImovelAtlzCadastral.getInstance().pesquisarImovelPeloCPFCNPJ(numeroCpfCnpj); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return listaImovelAtlzCadastral; + } + + /** + * + * @author Arthur Carvalho + * @date 26/06/2013 + * + * @return + * @throws ControladorException + */ + public Integer pesquisarSetorComercialPrincipal() throws ControladorException { + + Integer codigo = null; + + try { + codigo = RepositorioImovelAtlzCadastral.getInstance().pesquisarSetorComercialPrincipal(); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return codigo; + } + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public Date pesquisarArquivoDivididoCarregado(String nomeArquivo) throws ControladorException { + Date dataCarregamento = null; + try { + dataCarregamento = RepositorioImovelAtlzCadastral.getInstance().pesquisarArquivoDivididoCarregado(nomeArquivo); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + return dataCarregamento; + } + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public void inserirArquivoDividido(String nomeArquivo) throws ControladorException { + try { + RepositorioImovelAtlzCadastral.getInstance().inserirArquivoDividido(nomeArquivo); + + } catch (RepositorioException e) { + e.printStackTrace(); + } + } + + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + public Integer obterQuantidadeImoveis() throws ControladorException{ + Integer quantidade = 0; + try{ + quantidade = RepositorioImovelAtlzCadastral.getInstance().obterQuantidadeImoveis(); + + }catch(RepositorioException ex){ + ex.printStackTrace(); + } + return quantidade; + } + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + public Integer obterQuantidadeImoveisAtualizadosPorOcorrencia(Integer numeroOcorrencia) throws ControladorException{ + Integer quantidade = 0; + try{ + quantidade = RepositorioImovelAtlzCadastral.getInstance().obterQuantidadeImoveisAtualizadosPorOcorrencia(numeroOcorrencia); + + }catch(RepositorioException ex){ + ex.printStackTrace(); + } + + return quantidade; + } + + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + public Integer obterQuantidadeImoveisIncluidosComPorOcorrencia(Integer numeroOcorrencia) throws ControladorException{ + Integer quantidade = 0; + try{ + quantidade = RepositorioImovelAtlzCadastral.getInstance().obterQuantidadeImoveisIncluidosComPorOcorrencia(numeroOcorrencia); + + }catch(RepositorioException ex){ + ex.printStackTrace();; + } + + return quantidade; + } + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @return + * @throws RepositorioException + */ + public String buscarDescricaoOcorrencias(Integer idCadastroOcorrencia) throws ControladorException{ + + String dsOcorreicias = null; + try{ + + dsOcorreicias = RepositorioImovelAtlzCadastral.getInstance().buscarDescricaoOcorrencias(idCadastroOcorrencia); + + }catch(RepositorioException ex){ + ex.printStackTrace(); + } + return dsOcorreicias; + } + + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @return + * @throws RepositorioException + */ + + public Integer obterTotalImoveisAtualizados(String login) throws ControladorException{ + Integer quantidade = 0; + + try{ + quantidade = RepositorioImovelAtlzCadastral.getInstance().obterTotalImoveisAtualizados(login); + + }catch(RepositorioException ex){ + ex.printStackTrace(); + } + + return quantidade; + + } + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @return + * @throws RepositorioException + */ + public Integer obterTotalImoveisIncluidos(String login) throws ControladorException{ + Integer quantidade = 0; + + try{ + quantidade = RepositorioImovelAtlzCadastral.getInstance().obterTotalImoveisIncluidos(login); + + }catch(RepositorioException ex){ + ex.printStackTrace(); + } + + return quantidade; + + } + + + /** + * @author Flavio Ferreira + * @date 15/10/2013 + * @return + * @throws RepositorioException + */ + + public List pesquisarListaLogin() throws ControladorException{ + List listaLogin = null; + + try{ + + listaLogin = RepositorioImovelAtlzCadastral.getInstance().pesquisarListaLogin(); + }catch(RepositorioException ex){ + ex.printStackTrace(); + } + + return listaLogin; + + } + + /** + * + * @author Anderson Cabral + * @date 08/10/2013 + * + * @return + * @throws ControladorException + */ + public boolean verificarOcorrenciaCadastroSelecionada(){ + boolean retorno = false; + if(TabsActivity.colecaoImovelOcorrencia != null && !TabsActivity.colecaoImovelOcorrencia.isEmpty()){ + for(ImovelOcorrencia imovelOcorrencia : TabsActivity.colecaoImovelOcorrencia){ + CadastroOcorrencia cadastroOcorrencia = pesquisarCadastroOcorrencia(imovelOcorrencia.getCadastroOcorrencia().getId()); + + if(cadastroOcorrencia.getIndicadorCampoObrigatorio().intValue() == ConstantesSistema.SIM){ + retorno = true; + break; + } + } + }else{ + retorno = true; + } + + return retorno; + } + + public CadastroOcorrencia pesquisarCadastroOcorrencia(Integer id){ + + //Pesquisar Cadastro Ocorrencia + String selection = CadastroOcorrenciaColunas.ID + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(id) + }; + + CadastroOcorrencia cadOcorrencia = new CadastroOcorrencia(); + + try { + cadOcorrencia = (CadastroOcorrencia) fachada.pesquisar(cadOcorrencia, selection, selectionArgs); + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + return cadOcorrencia; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorBase.java b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorBase.java new file mode 100644 index 0000000..ec2d997 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorBase.java @@ -0,0 +1,131 @@ +package com.br.gsanac.controlador; + +import java.util.List; + +import android.content.Context; +import android.database.Cursor; + +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.exception.ControladorException; + +/** + * @author Arthur Carvalho + * @since 06/12/12 + * @param + */ +public interface IControladorBase { + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @param context + */ + public void setContext(Context c); + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @param t + * @param selection + * @param selectionArgs + * @return + * @throws ControladorException + */ + public T pesquisar(T t, String selection, String[] selectionArgs) throws ControladorException; + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @param clazz + * @param selection + * is a String to search for in the columns. Only columns with matching string are + * returned. + * @param selectionArgs + * is a String[] with arguments for the selection. + * @param orderBy + * @return + * @throws ControladorException + */ + public List pesquisarLista(Class clazz, String selection, String selectionArgs[], + String orderBy) throws ControladorException; + + /** + * @author Arthur Carvalho + * @since 23/09/2011 + * @param clazz + * @param idField + * @param descriptionField + * @param tablename + * @return + * @throws ControladorException + */ + public Cursor getCursor(Class clazz, String idField, String descriptionField, String tablename) + throws ControladorException; + + /** + * @author Anderson Cabral + * @since 13/01/2013 + * @param clazz + * @param idField + * @param descriptionField + * @param tablename + * @param where + * @return + * @throws ControladorException + */ + public Cursor getCursor(Class clazz, String idField, String descriptionField, String tablename, String where) + throws ControladorException; + + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @param t + * @throws ControladorException + */ + public long inserir(T t) throws ControladorException; + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @param t + * @throws ControladorException + */ + public void atualizar(T t) throws ControladorException; + + /** + * @author Arthur Carvalho + * @since 06/12/12 + * @param t + * @throws ControladorException + */ + public void remover(T t) throws ControladorException; + + /** + * @author Anderson Cabral + * @since 13/01/2013 + * @param clazz + * @param idField + * @param descriptionField + * @param tablename + * @param where + * @return + * @throws ControladorException + */ + public Cursor getCursorOrderBy(Class clazz, String idField, String descriptionField, String tablename, String orderBy) + throws ControladorException; + + /** + * @author Anderson Cabral + * @since 13/01/2013 + * @param clazz + * @param idField + * @param descriptionField + * @param tablename + * @param where + * @return + * @throws ControladorException + */ + public Cursor getCursorLogradouro(Class clazz, String where) throws ControladorException; + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorSistemaParametros.java b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorSistemaParametros.java new file mode 100644 index 0000000..51e294a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorSistemaParametros.java @@ -0,0 +1,11 @@ +package com.br.gsanac.controlador; + +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.ControladorException; + +/** + * @author Arthur Carvalho + */ +public interface IControladorSistemaParametros { + public SistemaParametros validarLogin(String login, String password) throws ControladorException; +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorUtil.java b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorUtil.java new file mode 100644 index 0000000..9b7b1bf --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/controlador/IControladorUtil.java @@ -0,0 +1,325 @@ +package com.br.gsanac.controlador; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.Roteiro; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.ControladorException; +import com.br.gsanac.exception.RepositorioException; + +/** + * @author Arthur Carvalho + */ +public interface IControladorUtil { + + public String validarAbaLocalidade(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException; + + /** + * Metodo responsavel por validar os campos da aba endereco + * + * @author Anderson Cabral + * @date 26/12/2012 + * + * @param imovelAtlzCadastral + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaEndereco(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException; + + /** + * Metodo responsavel por validar os campos da aba cliente + * + * @author Davi Menezes + * @date 28/12/2012 + * + * @param clienteAtlzCadastral + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaCliente(ClienteAtlzCadastral clienteAtlzCadastral, Integer idLigacaoAguaSituacao) throws ControladorException; + + /** + * Metodo responsavel por validar os campos da aba ligacao + * + * @author Anderson Cabral + * @date 03/01/2013 + * + * @param imovelAtlzCadastral + * @param hidrometroInstHistAtlzCad + * @param contemHidrometro + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaLigacao(ImovelAtlzCadastral imovelAtlzCadastral, HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws ControladorException; + + /** + * Metodo que pesquisa o imovel de acordo com a posicao dele no roteiro. + * + * @author Arthur Carvalho + * @date 08/01/2013 + * + * @param posicao + * @return + * @throws ControladorException + */ + public ImovelAtlzCadastral buscarImovelPosicao(Integer posicao) throws ControladorException; + + /** + * Metodo responsavel por validar os campos da aba Fotos + * + * @author Anderson Cabral + * @date 08/01/2013 + * + * @param idImovel + * @return Mensagem de Erro + * @throws ControladorException + */ + public String validarAbaFotos(Integer idImovel)throws ControladorException; + + /**** + * Retorna o maior id da tabela Imovel + * + *@author Anderson Cabral + *@since 11/01/2013 + ****/ + public Integer pesquisarMaiorIdImovel() throws ControladorException; + + /** + * + * @author Arthur Carvalho + * @date 14/01/2013 + * + * @throws ControladorException + */ + public String gerarArquivoRetornoImovel(ImovelAtlzCadastral imovelAtlzCadastral) throws ControladorException; + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoLogradouroBairro(Logradouro logradouro, SistemaParametros sistemaParametros) throws ControladorException ; + + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoLogradouroCep(LogradouroCep logradouroCep) throws ControladorException ; + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoCep(Cep cep) throws ControladorException ; + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public Roteiro pesquisarRoteiro(Integer idImovelAtlzCadastral) throws ControladorException; + + /** + * Metodo responsavel por pesquisar todos os imveis cadastrados no gsan. + * + * @author Arthur Carvalho + * @return FileReturn + * @param idServiceOrder + * @throws RepositoryException + */ + public ArrayList pesquisarMatriculas() throws ControladorException; + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoCliente(ClienteAtlzCadastral clienteAtlzCadastral, List listaClienteFoneAtlzCadastral, String codigoImovelAtlzCadastral) + throws ControladorException; + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoHidrometro( List listaHidrometroInstHistAtlzCad, String codigoImovelAtlzCadastral, Integer idImovel) throws ControladorException; + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoSubcategoria( List listaImovelSubCategAtlzCad, String codigoImovelAtlzCadastral) throws ControladorException; + + + /** + * + * @author Arthur Carvalho + * @date 15/01/2013 + * + * @return + * @throws ControladorException + */ + public String gerarArquivoRetornoOcorrencia( List listaImovelOcorrencia, String codigoImovelAtlzCadastral) throws ControladorException ; + + /** + * + * @author Arthur Carvalho + * @date 18/02/2013 + * + * @param login + * @param password + * @return + * @throws ControladorException + */ + public SistemaParametros validarLogin(String login, String password) throws ControladorException; + + /** + * @author Erivan Sousa + * @since 06/09/2011 + * @param login + * @param password + * @return + */ + public SistemaParametros validarLoginCpf(String login) throws ControladorException ; + + /** + * + * @author Arthur Carvalho + * @date 26/06/2013 + * + * @return + * @throws ControladorException + */ + public Integer pesquisarSetorComercialPrincipal() throws ControladorException ; + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public Date pesquisarArquivoDivididoCarregado(String nomeArquivo) throws ControladorException; + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public void inserirArquivoDividido(String nomeArquivo) throws ControladorException; + + /** + * + * @author Flvio Ferreira + * @date 11/10/2013 + * + * @return + * @throws ControladorException + */ + public Integer obterQuantidadeImoveisIncluidosComPorOcorrencia(Integer numeroOcorrencia) throws ControladorException; + + /** + * + * @author Flvio Ferreira + * @date 11/10/2013 + * + * @return + * @throws ControladorException + */ + + public Integer obterQuantidadeImoveisAtualizadosPorOcorrencia(Integer numeroOcorrencia) throws ControladorException; + + /** + * + * @author Flvio Ferreira + * @date 11/10/2013 + * + * @return + * @throws ControladorException + */ + + public Integer obterQuantidadeImoveis() throws ControladorException; + + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + public String buscarDescricaoOcorrencias(Integer idCadastroOcorrencia)throws ControladorException; + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + + + public Integer obterTotalImoveisAtualizados(String login) throws ControladorException; + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + + public Integer obterTotalImoveisIncluidos(String login) throws ControladorException; + + /** + * @author Flavio Ferreira + * @date 15/10/2013 + * @return + * @throws RepositorioException + */ + + public List pesquisarListaLogin() throws ControladorException; +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Bairro.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Bairro.java new file mode 100644 index 0000000..d37f8fe --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Bairro.java @@ -0,0 +1,150 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsavel pelo objeto LogradouroCep + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class Bairro extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int BAIR_ID_INDEX = 1; + private static final int BAIR_CODIGO_INDEX = 2; + private static final int BAIR_DESCRICAO_INDEX = 3; + + + private Integer codigo; + + private String descricao; + + public static final String[] colunas = new String[] { + Bairros.ID, + Bairros.CODIGO, + Bairros.DESCRICAO + }; + + public static final class Bairros implements BaseColumns { + public static final String ID = "BAIR_ID"; + public static final String CODIGO = "BAIR_CDBAIRRO"; + public static final String DESCRICAO = "BAIR_NMBAIRRO"; + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "BAIRRO"; + } + + public final class BairroTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CODIGO = " INTEGER NOT NULL"; + public final String DESCRICAO = " VARCHAR(30) NOT NULL"; + + private String[] tipos = new String[] {ID, CODIGO, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static Bairro inserirDoArquivo(List c) { + + Bairro bairro = new Bairro(); + + bairro.setId(c.get(BAIR_ID_INDEX)); + + bairro.setCodigo(Integer.valueOf(c.get(BAIR_CODIGO_INDEX))); + + bairro.setDescricao(c.get(BAIR_DESCRICAO_INDEX)); + + return bairro; + } + + + public Integer getCodigo() { + return codigo; + } + + public void setCodigo(Integer codigo) { + this.codigo = codigo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(Bairros.ID, getId()); + values.put(Bairros.CODIGO, getCodigo()); + values.put(Bairros.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList bairros = new ArrayList(); + + + if ( cursor.moveToFirst() ) { + do{ + Bairro bairro = new Bairro(); + + int id = cursor.getColumnIndex(Bairros.ID); + int codigo = cursor.getColumnIndex(Bairros.CODIGO); + int descricao = cursor.getColumnIndex(Bairros.DESCRICAO); + + bairro.setId(cursor.getInt(id)); + + bairro.setCodigo(cursor.getInt(codigo)); + + bairro.setDescricao(cursor.getString(descricao)); + bairros.add(bairro); + + } while (cursor.moveToNext()); + } + cursor.close(); + return bairros; + } + + public Bairro carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(Bairros.ID); + int codigo = cursor.getColumnIndex(Bairros.CODIGO); + int descricao = cursor.getColumnIndex(Bairros.DESCRICAO); + + Bairro bairro = new Bairro(); + + if ( cursor.moveToFirst() ) { + + bairro.setId(cursor.getInt(id)); + + bairro.setCodigo(cursor.getInt(codigo)); + + bairro.setDescricao(cursor.getString(descricao)); + } + cursor.close(); + return bairro; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/CadastroOcorrencia.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/CadastroOcorrencia.java new file mode 100644 index 0000000..25ee799 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/CadastroOcorrencia.java @@ -0,0 +1,151 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto CadastroOcorrencia + *

+ * + * @author Anderson Cabral + * @since 13/12/2012 + */ +public class CadastroOcorrencia extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int COCR_ID_INDEX = 1; + private static final int COCR_DSCADASTROOCORRENCIA_INDEX = 2; + private static final int COCR_ICCAMPOSOBRIGTABLET_INDEX = 3; + + //Constantes + public final static int SEM_OCORRENCIAS = 1; + public final static int CLIENTE_NAO_PERMITIU_ACESSO = 2; + public final static int CLIENTE_NAO_PODE_RESPONDER = 3; + public final static int IMOVEL_NAO_VISITADO = 8; + public final static int IMOVEL_FECHADO = 10; + public final static int ANIMAL_BRAVO = 11; + public final static int IMOVEL_NAO_LOCALIZADO = 16; + public final static int IMOVEL_DEMOLIDO = 26; + public final static int IMOVEL_DESOCUPADO = 27; + + private String descricao; + private Short indicadorCampoObrigatorio; + + public static final String[] columns = new String[]{ + CadastroOcorrenciaColunas.ID, + CadastroOcorrenciaColunas.DESCRICAO, + CadastroOcorrenciaColunas.INDICADOR_CAMPO_OBRIGATORIO + }; + + public static final class CadastroOcorrenciaColunas implements BaseColumns{ + public static final String ID = "COCR_ID"; + public static final String DESCRICAO = "COCR_DSCADASTROOCORRENCIA"; + public static final String INDICADOR_CAMPO_OBRIGATORIO = "COCR_ICCAMPOSOBRIGTABLET"; + } + + public final class CadastroOcorrenciaColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(25) NOT NULL"; + public final String INDICADOR_CAMPO_OBRIGATORIO = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO, INDICADOR_CAMPO_OBRIGATORIO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static CadastroOcorrencia inserirDoArquivo(List c) { + + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + + cadastroOcorrencia.setId(c.get(COCR_ID_INDEX)); + cadastroOcorrencia.setDescricao(c.get(COCR_DSCADASTROOCORRENCIA_INDEX)); + cadastroOcorrencia.setIndicadorCampoObrigatorio(Short.valueOf(c.get(COCR_ICCAMPOSOBRIGTABLET_INDEX))); + + return cadastroOcorrencia; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(CadastroOcorrenciaColunas.ID, getId()); + values.put(CadastroOcorrenciaColunas.DESCRICAO, getDescricao()); + values.put(CadastroOcorrenciaColunas.INDICADOR_CAMPO_OBRIGATORIO, getIndicadorCampoObrigatorio()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaCadastroOcorrencia = new ArrayList(); + + if ( cursor.moveToFirst() ) { + do{ + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + int codigo = cursor.getColumnIndex(CadastroOcorrenciaColunas.ID); + int descricao = cursor.getColumnIndex(CadastroOcorrenciaColunas.DESCRICAO); + int indicadorCampoObrigatorio = cursor.getColumnIndex(CadastroOcorrenciaColunas.INDICADOR_CAMPO_OBRIGATORIO); + + cadastroOcorrencia.setId(cursor.getInt(codigo)); + cadastroOcorrencia.setDescricao(cursor.getString(descricao)); + cadastroOcorrencia.setIndicadorCampoObrigatorio(cursor.getShort(indicadorCampoObrigatorio)); + + listaCadastroOcorrencia.add(cadastroOcorrencia); + + } while (cursor.moveToNext()); + } + cursor.close(); + return listaCadastroOcorrencia; + } + + public CadastroOcorrencia carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(CadastroOcorrenciaColunas.ID); + int descricao = cursor.getColumnIndex(CadastroOcorrenciaColunas.DESCRICAO); + int indicadorCampoObrigatorio = cursor.getColumnIndex(CadastroOcorrenciaColunas.INDICADOR_CAMPO_OBRIGATORIO); + + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + + if ( cursor.moveToFirst() ) { + + cadastroOcorrencia.setId(cursor.getInt(codigo)); + cadastroOcorrencia.setDescricao(cursor.getString(descricao)); + cadastroOcorrencia.setIndicadorCampoObrigatorio(cursor.getShort(indicadorCampoObrigatorio)); + } + + cursor.close(); + return cadastroOcorrencia; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public Short getIndicadorCampoObrigatorio() { + return indicadorCampoObrigatorio; + } + + public void setIndicadorCampoObrigatorio(Short indicadorCampoObrigatorio) { + this.indicadorCampoObrigatorio = indicadorCampoObrigatorio; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "CADASTRO_OCORRENCIA"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Categoria.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Categoria.java new file mode 100644 index 0000000..3e68ecf --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Categoria.java @@ -0,0 +1,119 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto Categoria + *

+ * + * @author Anderson Cabral + * @since 10/12/2012 + */ +public class Categoria extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int CATG_ID_INDEX = 1; + private static final int CATG_DSCATEGORIA_INDEX = 2; + + private String descricao; + + public static final String[] columns = new String[]{ + CategoriaColunas.ID, + CategoriaColunas.DESCRICAO + }; + + public static final class CategoriaColunas implements BaseColumns{ + public static final String ID = "CATG_ID"; + public static final String DESCRICAO = "CATG_DSCATEGORIA"; + } + + public final class CategoriaColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(16) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static Categoria inserirDoArquivo(List c) { + + Categoria categoria = new Categoria(); + + categoria.setId(c.get(CATG_ID_INDEX)); + categoria.setDescricao(c.get(CATG_DSCATEGORIA_INDEX)); + + return categoria; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(CategoriaColunas.ID, getId()); + values.put(CategoriaColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaCategoria = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + Categoria categoria = new Categoria(); + int codigo = cursor.getColumnIndex(CategoriaColunas.ID); + int descricao = cursor.getColumnIndex(CategoriaColunas.DESCRICAO); + + categoria.setId(cursor.getInt(codigo)); + categoria.setDescricao(cursor.getString(descricao)); + listaCategoria.add(categoria); + + } while (cursor.moveToNext()); + } + cursor.close(); + return listaCategoria; + } + + public Categoria carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(CategoriaColunas.ID); + int descricao = cursor.getColumnIndex(CategoriaColunas.DESCRICAO); + + Categoria categoria = new Categoria(); + + if ( cursor.moveToFirst() ) { + + categoria.setId(cursor.getInt(codigo)); + categoria.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return categoria; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "CATEGORIA"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Cep.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Cep.java new file mode 100644 index 0000000..692e249 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Cep.java @@ -0,0 +1,191 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import com.br.gsanac.util.ConstantesSistema; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + * Classe responsavel pelo objeto Cep + * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class Cep extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int CEP_ID_INDEX = 1; + private static final int CEP_CODIGO_INDEX = 2; + + + private Integer codigo; + private Integer indicadorNovo; + private Integer indicadorTransmitido; + private String codigoUnico; + + public static final String[] colunas = new String[] { + Ceps.ID, + Ceps.CODIGO, + Ceps.INDICADORNOVO, + Ceps.INDICADOR_TRANSMITIDO, + Ceps.CODIGO_UNICO + + }; + + public static final class Ceps implements BaseColumns { + public static final String ID = "CEP_ID"; + public static final String CODIGO = "CEP_CDCEP"; + public static final String INDICADORNOVO = "CEP_ICNOVO"; + public static final String INDICADOR_TRANSMITIDO = "CEP_ICTRANSMITIDO"; + public static final String CODIGO_UNICO = "CEP_CDUNIDO"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "CEP"; + } + + public final class CepTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CODIGO = " INTEGER NOT NULL"; + public final String INDICADORNOVO = " INTEGER NOT NULL"; + public final String INDICADOR_TRANSMITIDO = " INTEGER NOT NULL"; + public final String CODIGO_UNICO = " VARCHAR(20) NULL "; + + private String[] tipos = new String[] {ID, CODIGO, INDICADORNOVO, INDICADOR_TRANSMITIDO, CODIGO_UNICO }; + + public String[] getTipos(){ + return tipos; + } + } + + public static Cep inserirDoArquivo(List c) { + + Cep cep = new Cep(); + + cep.setId(c.get(CEP_ID_INDEX)); + cep.setCodigo(Integer.valueOf(c.get(CEP_CODIGO_INDEX))); + cep.setIndicadorNovo(ConstantesSistema.NAO); + cep.setIndicadorTransmitido(ConstantesSistema.NAO); + + return cep; + } + + public static Cep inserirAtualizarDoArquivoDividido(List c) { + + Cep cep = new Cep(); + +// cep.setId(); + cep.setCodigo(Integer.valueOf(c.get(CEP_CODIGO_INDEX))); + cep.setCodigoUnico(c.get(CEP_ID_INDEX)); + cep.setIndicadorNovo(ConstantesSistema.SIM); + cep.setIndicadorTransmitido(ConstantesSistema.NAO); + + return cep; + } + + public Integer getIndicadorTransmitido() { + return indicadorTransmitido; + } + + public void setIndicadorTransmitido(Integer indicadorTransmitido) { + this.indicadorTransmitido = indicadorTransmitido; + } + + public Integer getCodigo() { + return codigo; + } + + public void setCodigo(Integer codigo) { + this.codigo = codigo; + } + + public Integer getIndicadorNovo() { + return indicadorNovo; + } + + public void setIndicadorNovo(Integer indicadorNovo) { + this.indicadorNovo = indicadorNovo; + } + + public String getCodigoUnico() { + return codigoUnico; + } + + public void setCodigoUnico(String codigoUnico) { + this.codigoUnico = codigoUnico; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(Ceps.ID, getId()); + values.put(Ceps.CODIGO, getCodigo()); + values.put(Ceps.INDICADORNOVO, getIndicadorNovo()); + values.put(Ceps.INDICADOR_TRANSMITIDO, getIndicadorTransmitido()); + values.put(Ceps.CODIGO_UNICO, getCodigoUnico()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList ceps = new ArrayList(); + + if ( cursor.moveToFirst() ) { + do{ + Cep cep = new Cep(); + int id = cursor.getColumnIndex(Ceps.ID); + int codigo = cursor.getColumnIndex(Ceps.CODIGO); + int indicadorNovo = cursor.getColumnIndex(Ceps.INDICADORNOVO); + int indicadorTransmitido = cursor.getColumnIndex(Ceps.INDICADOR_TRANSMITIDO); + int codigoUnico = cursor.getColumnIndex(Ceps.CODIGO_UNICO); + + cep.setId(cursor.getInt(id)); + cep.setCodigo(cursor.getInt(codigo)); + cep.setIndicadorNovo(cursor.getInt(indicadorNovo)); + cep.setIndicadorTransmitido(cursor.getInt(indicadorTransmitido)); + cep.setCodigoUnico(cursor.getString(codigoUnico)); + + ceps.add(cep); + + } while (cursor.moveToNext()); + } + cursor.close(); + return ceps; + } + + public Cep carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(Ceps.ID); + int codigo = cursor.getColumnIndex(Ceps.CODIGO); + int indicadorNovo = cursor.getColumnIndex(Ceps.INDICADORNOVO); + int indicadorTransmitido = cursor.getColumnIndex(Ceps.INDICADOR_TRANSMITIDO); + int codigoUnico = cursor.getColumnIndex(Ceps.CODIGO_UNICO); + + Cep cep = new Cep(); + + if ( cursor.moveToFirst() ) { + + cep.setId(cursor.getInt(id)); + cep.setCodigo(cursor.getInt(codigo)); + cep.setIndicadorNovo(cursor.getInt(indicadorNovo)); + cep.setIndicadorTransmitido(cursor.getInt(indicadorTransmitido)); + cep.setCodigoUnico(cursor.getString(codigoUnico)); + } + + cursor.close(); + return cep; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteAtlzCadastral.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteAtlzCadastral.java new file mode 100644 index 0000000..da36206 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteAtlzCadastral.java @@ -0,0 +1,487 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import com.br.gsanac.util.Util; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto ClienteAtlzCadastralastral + *

+ * + * @author Anderson Cabral + * @since 11/12/2012 + */ +public class ClienteAtlzCadastral extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int CLAC_ID_INDEX = 1; + private static final int IMAC_ID_INDEX = 2; + private static final int CLTP_ID_INDEX = 3; + private static final int CLAC_NNCPFCNPPJ_INDEX = 4; + private static final int CLAC_NMCLIENTE_INDEX = 5; + private static final int CLAC_NNRG_INDEX = 6; + private static final int OERG_ID_INDEX = 7; + private static final int UNFE_ID_INDEX = 8; + private static final int PSEX_ID_INDEX = 9; + private static final int CLAC_DTRGEMISSAO_INDEX = 10; + private static final int CLAC_DTNASCIMENTO_INDEX = 11; + private static final int CLAC_ID_CLIENTE = 12; + + + //Carregar arquivo dividido. + private static final int AD_CLTP_ID_INDEX = 2; + private static final int AD_CLAC_NNCPFCNPPJ_INDEX = 3; + private static final int AD_CLAC_NMCLIENTE_INDEX = 4; + private static final int AD_CLAC_NNRG_INDEX = 5; + private static final int AD_OERG_ID_INDEX = 6; + private static final int AD_UNFE_ID_INDEX = 7; + private static final int AD_CLAC_DTRGEMISSAO_INDEX = 8; + private static final int AD_PSEX_ID_INDEX = 9; + private static final int AD_CLAC_DTNASCIMENTO_INDEX = 10; + private static final int AD_CLAC_ID_CLIENTE = 11; + + + + + private ImovelAtlzCadastral imovelAtlzCadastral; + private PessoaSexo pessoaSexo; + private ClienteTipo clienteTipo; + private String numeroCPFCNPPJ; + private String nomeCliente; + private String numeroRG; + private OrgaoExpedidorRg orgaoExpedidorRg; + private UnidadeFederacao unidadeFederacao; + private Date dataEmissaoRg; + private Date dataNascimento; + private Integer idCliente; + + public static final String[] columns = new String[]{ + ClienteAtlzCadastralColunas.ID, + ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID, + ClienteAtlzCadastralColunas.PESSOASEXO_ID, + ClienteAtlzCadastralColunas.CLIENTETIPO_ID, + ClienteAtlzCadastralColunas.NUMCPFCNPJ, + ClienteAtlzCadastralColunas.NOMECLIENTE, + ClienteAtlzCadastralColunas.NUMERORG, + ClienteAtlzCadastralColunas.ORGAOEXPEDIDOR_ID, + ClienteAtlzCadastralColunas.UNIDADEFEDERACAO_ID, + ClienteAtlzCadastralColunas.DATAEMISSAORG, + ClienteAtlzCadastralColunas.DATANASCIMENTO, + ClienteAtlzCadastralColunas.ID_CLIENTE + }; + + public static final class ClienteAtlzCadastralColunas implements BaseColumns{ + public static final String ID = "CLAC_ID"; + public static final String IMOVELATLZCAD_ID = "IMAC_ID"; + public static final String PESSOASEXO_ID = "PSEX_ID"; + public static final String CLIENTETIPO_ID = "CLTP_ID"; + public static final String NUMCPFCNPJ = "CLAC_NNCPFCNPPJ"; + public static final String NOMECLIENTE = "CLAC_NMCLIENTE"; + public static final String NUMERORG = "CLAC_NNRG"; + public static final String ORGAOEXPEDIDOR_ID = "OERG_ID"; + public static final String UNIDADEFEDERACAO_ID = "UNFE_ID"; + public static final String DATAEMISSAORG = "CLAC_DTRGEMISSAO"; + public static final String DATANASCIMENTO = "CLAC_DTNASCIMENTO"; + public static final String ID_CLIENTE = "CLAC_IDCLIENTE"; + } + + public final class ClienteAtlzCadastralColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String IMOVELATLZCAD_ID = " INTEGER"; + public final String PESSOASEXO_ID = " INTEGER"; + public final String CLIENTETIPO_ID = " INTEGER NOT NULL"; + public final String NUMCPFCNPJ = " VARCHAR(14)"; + public final String NOMECLIENTE = " VARCHAR(50)"; + public final String NUMERORG = " VARCHAR(13)"; + public final String ORGAOEXPEDIDOR_ID = " INTEGER"; + public final String UNIDADEFEDERACAO_ID = " INTEGER"; + public final String DATAEMISSAORG = " DATE"; + public final String DATANASCIMENTO = " DATE"; + public final String ID_CLIENTE = " INTEGER"; + + private String[] tipos = new String[] {ID, IMOVELATLZCAD_ID, PESSOASEXO_ID, + CLIENTETIPO_ID, NUMCPFCNPJ, NOMECLIENTE, NUMERORG, + ORGAOEXPEDIDOR_ID, UNIDADEFEDERACAO_ID, + DATAEMISSAORG, DATANASCIMENTO, ID_CLIENTE}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ClienteAtlzCadastral inserirDoArquivo(List c) { + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + + clienteAtlzCadastral.setId(c.get(CLAC_ID_INDEX)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(c.get(IMAC_ID_INDEX)); + clienteAtlzCadastral.setImovelAtlzCadastral(_imovelAtlzCadastral); + + if(c.get(PSEX_ID_INDEX) != null && !c.get(PSEX_ID_INDEX).toString().equals("")){ + PessoaSexo _pessoaSexo = new PessoaSexo(); + _pessoaSexo.setId(c.get(PSEX_ID_INDEX)); + clienteAtlzCadastral.setPessoaSexo(_pessoaSexo); + } + + ClienteTipo _clienteTipo = new ClienteTipo(); + _clienteTipo.setId(c.get(CLTP_ID_INDEX)); + clienteAtlzCadastral.setClienteTipo(_clienteTipo); + + clienteAtlzCadastral.setNumeroCPFCNPPJ(c.get(CLAC_NNCPFCNPPJ_INDEX)); + clienteAtlzCadastral.setNomeCliente(c.get(CLAC_NMCLIENTE_INDEX)); + clienteAtlzCadastral.setNumeroRG(c.get(CLAC_NNRG_INDEX)); + + if(c.get(CLAC_DTRGEMISSAO_INDEX) != null && !c.get(CLAC_DTRGEMISSAO_INDEX).toString().equals("")){ + clienteAtlzCadastral.setDataEmissaoRg(Util.converteStringParaDate(c.get(CLAC_DTRGEMISSAO_INDEX))); + } + + if(c.get(CLAC_DTNASCIMENTO_INDEX) != null && !c.get(CLAC_DTNASCIMENTO_INDEX).toString().equals("")){ + clienteAtlzCadastral.setDataNascimento(Util.converteStringParaDate(c.get(CLAC_DTNASCIMENTO_INDEX))); + } + + if(c.get(OERG_ID_INDEX) != null && !c.get(OERG_ID_INDEX).toString().equals("")){ + OrgaoExpedidorRg _orgaoExpedidorRg = new OrgaoExpedidorRg(); + _orgaoExpedidorRg.setId(c.get(OERG_ID_INDEX)); + clienteAtlzCadastral.setOrgaoExpedidorRg(_orgaoExpedidorRg); + } + + if(c.get(UNFE_ID_INDEX) != null && !c.get(UNFE_ID_INDEX).toString().equals("")){ + UnidadeFederacao _unidadeFederacao = new UnidadeFederacao(); + _unidadeFederacao.setId(c.get(UNFE_ID_INDEX)); + clienteAtlzCadastral.setUnidadeFederacao(_unidadeFederacao); + } + + if ( c.get(CLAC_ID_CLIENTE) != null ) { + clienteAtlzCadastral.setIdCliente(Integer.valueOf(c.get(CLAC_ID_CLIENTE))); + } + + return clienteAtlzCadastral; + } + + + public static ClienteAtlzCadastral inserirAtualizarDoArquivoDividido(List c, Long idImovelAtlzCad) { + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(idImovelAtlzCad.intValue()); + clienteAtlzCadastral.setImovelAtlzCadastral(_imovelAtlzCadastral); + + if(c.get(AD_PSEX_ID_INDEX) != null && !c.get(AD_PSEX_ID_INDEX).toString().equals("")){ + PessoaSexo _pessoaSexo = new PessoaSexo(); + _pessoaSexo.setId(c.get(AD_PSEX_ID_INDEX)); + clienteAtlzCadastral.setPessoaSexo(_pessoaSexo); + } + + ClienteTipo _clienteTipo = new ClienteTipo(); + _clienteTipo.setId(c.get(AD_CLTP_ID_INDEX)); + clienteAtlzCadastral.setClienteTipo(_clienteTipo); + + clienteAtlzCadastral.setNumeroCPFCNPPJ(c.get(AD_CLAC_NNCPFCNPPJ_INDEX)); + clienteAtlzCadastral.setNomeCliente(c.get(AD_CLAC_NMCLIENTE_INDEX)); + clienteAtlzCadastral.setNumeroRG(c.get(AD_CLAC_NNRG_INDEX)); + + if(c.get(AD_CLAC_DTRGEMISSAO_INDEX) != null && !c.get(AD_CLAC_DTRGEMISSAO_INDEX).toString().equals("")){ + clienteAtlzCadastral.setDataEmissaoRg(Util.converteStringParaDate(c.get(AD_CLAC_DTRGEMISSAO_INDEX))); + } + + if(c.get(AD_CLAC_DTNASCIMENTO_INDEX) != null && !c.get(AD_CLAC_DTNASCIMENTO_INDEX).toString().equals("")){ + clienteAtlzCadastral.setDataNascimento(Util.converteStringParaDate(c.get(AD_CLAC_DTNASCIMENTO_INDEX))); + } + + if(c.get(AD_OERG_ID_INDEX) != null && !c.get(AD_OERG_ID_INDEX).toString().equals("")){ + OrgaoExpedidorRg _orgaoExpedidorRg = new OrgaoExpedidorRg(); + _orgaoExpedidorRg.setId(c.get(AD_OERG_ID_INDEX)); + clienteAtlzCadastral.setOrgaoExpedidorRg(_orgaoExpedidorRg); + } + + if(c.get(AD_UNFE_ID_INDEX) != null && !c.get(AD_UNFE_ID_INDEX).toString().equals("")){ + UnidadeFederacao _unidadeFederacao = new UnidadeFederacao(); + _unidadeFederacao.setId(c.get(AD_UNFE_ID_INDEX)); + clienteAtlzCadastral.setUnidadeFederacao(_unidadeFederacao); + } + + if ( c.get(AD_CLAC_ID_CLIENTE) != null ) { + clienteAtlzCadastral.setIdCliente(Integer.valueOf(c.get(AD_CLAC_ID_CLIENTE))); + } + + return clienteAtlzCadastral; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ClienteAtlzCadastralColunas.ID, getId()); + values.put(ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID, getImovelAtlzCadastral().getId()); + + if ( getClienteTipo() != null ) { + values.put(ClienteAtlzCadastralColunas.CLIENTETIPO_ID, getClienteTipo().getId()); + } + + values.put(ClienteAtlzCadastralColunas.NUMCPFCNPJ, getNumeroCPFCNPPJ()); + values.put(ClienteAtlzCadastralColunas.NOMECLIENTE, getNomeCliente()); + + if(getDataNascimento() != null){ + values.put(ClienteAtlzCadastralColunas.DATANASCIMENTO, Util.dateFormatDB.format(getDataNascimento())); + }else{ + values.putNull(ClienteAtlzCadastralColunas.DATANASCIMENTO); + } + + if(getPessoaSexo() != null){ + values.put(ClienteAtlzCadastralColunas.PESSOASEXO_ID, getPessoaSexo().getId()); + }else{ + values.putNull(ClienteAtlzCadastralColunas.PESSOASEXO_ID); + } + + values.put(ClienteAtlzCadastralColunas.NUMERORG, getNumeroRG()); + + if(getOrgaoExpedidorRg() != null){ + values.put(ClienteAtlzCadastralColunas.ORGAOEXPEDIDOR_ID, getOrgaoExpedidorRg().getId()); + }else{ + values.putNull(ClienteAtlzCadastralColunas.ORGAOEXPEDIDOR_ID); + } + + if(getUnidadeFederacao() != null){ + values.put(ClienteAtlzCadastralColunas.UNIDADEFEDERACAO_ID, getUnidadeFederacao().getId()); + }else{ + values.putNull(ClienteAtlzCadastralColunas.UNIDADEFEDERACAO_ID); + } + + if(getDataEmissaoRg() != null){ + values.put(ClienteAtlzCadastralColunas.DATAEMISSAORG, Util.dateFormatDB.format(getDataEmissaoRg())); + }else{ + values.putNull(ClienteAtlzCadastralColunas.DATAEMISSAORG); + } + + values.put(ClienteAtlzCadastralColunas.ID_CLIENTE, getIdCliente()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaClienteAtlzCadastral = new ArrayList(); + + do{ + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + + int _codigo = cursor.getColumnIndex(ClienteAtlzCadastralColunas.ID); + int _imovelAtlzCadastralId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID); + int _pessoaSexoId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.PESSOASEXO_ID); + int _clienteTipoId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.CLIENTETIPO_ID); + int _numeroCPFCNPPJ = cursor.getColumnIndex(ClienteAtlzCadastralColunas.NUMCPFCNPJ); + int _nomeCliente = cursor.getColumnIndex(ClienteAtlzCadastralColunas.NOMECLIENTE); + int _numeroRG = cursor.getColumnIndex(ClienteAtlzCadastralColunas.NUMERORG); + int _orgaoExpedidorId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.ORGAOEXPEDIDOR_ID); + int _unidadeFederacaoId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.UNIDADEFEDERACAO_ID); + int _dataEmissaoRg = cursor.getColumnIndex(ClienteAtlzCadastralColunas.DATAEMISSAORG); + int _dataNascimento = cursor.getColumnIndex(ClienteAtlzCadastralColunas.DATANASCIMENTO); + int _idCliente = cursor.getColumnIndex(ClienteAtlzCadastralColunas.ID_CLIENTE); + clienteAtlzCadastral.setId(cursor.getInt(_codigo)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(_imovelAtlzCadastralId)); + clienteAtlzCadastral.setImovelAtlzCadastral(_imovelAtlzCadastral); + + PessoaSexo _pessoaSexo = new PessoaSexo(); + _pessoaSexo.setId(cursor.getInt(_pessoaSexoId)); + clienteAtlzCadastral.setPessoaSexo(_pessoaSexo); + + ClienteTipo _clienteTipo = new ClienteTipo(); + _clienteTipo.setId(cursor.getInt(_clienteTipoId)); + clienteAtlzCadastral.setClienteTipo(_clienteTipo); + + clienteAtlzCadastral.setNumeroCPFCNPPJ(cursor.getString(_numeroCPFCNPPJ)); + clienteAtlzCadastral.setNomeCliente(cursor.getString(_nomeCliente)); + clienteAtlzCadastral.setNumeroRG(cursor.getString(_numeroRG)); + + if(cursor.getString(_dataEmissaoRg) != null && !cursor.getString(_dataEmissaoRg).equals("")){ + clienteAtlzCadastral.setDataEmissaoRg(Util.convertStringToDate(cursor.getString(_dataEmissaoRg))); + } + + if(cursor.getString(_dataNascimento) != null && !cursor.getString(_dataNascimento).equals("")){ + clienteAtlzCadastral.setDataNascimento(Util.convertStringToDate(cursor.getString(_dataNascimento))); + } + + OrgaoExpedidorRg _orgaoExpedidor = new OrgaoExpedidorRg(); + _orgaoExpedidor.setId(cursor.getInt(_orgaoExpedidorId)); + clienteAtlzCadastral.setOrgaoExpedidorRg(_orgaoExpedidor); + + UnidadeFederacao _unidadeFederacao = new UnidadeFederacao(); + _unidadeFederacao.setId(cursor.getInt(_unidadeFederacaoId)); + clienteAtlzCadastral.setUnidadeFederacao(_unidadeFederacao); + clienteAtlzCadastral.setIdCliente(cursor.getInt(_idCliente)); + listaClienteAtlzCadastral.add(clienteAtlzCadastral); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaClienteAtlzCadastral; + } + + public ClienteAtlzCadastral carregarEntidade(Cursor cursor) { + + int _codigo = cursor.getColumnIndex(ClienteAtlzCadastralColunas.ID); + int _imovelAtlzCadastralId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID); + int _pessoaSexoId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.PESSOASEXO_ID); + int _clienteTipoId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.CLIENTETIPO_ID); + int _numeroCPFCNPPJ = cursor.getColumnIndex(ClienteAtlzCadastralColunas.NUMCPFCNPJ); + int _nomeCliente = cursor.getColumnIndex(ClienteAtlzCadastralColunas.NOMECLIENTE); + int _numeroRG = cursor.getColumnIndex(ClienteAtlzCadastralColunas.NUMERORG); + int _orgaoExpedidorId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.ORGAOEXPEDIDOR_ID); + int _unidadeFederacaoId = cursor.getColumnIndex(ClienteAtlzCadastralColunas.UNIDADEFEDERACAO_ID); + int _dataEmissaoRg = cursor.getColumnIndex(ClienteAtlzCadastralColunas.DATAEMISSAORG); + int _dataNascimento = cursor.getColumnIndex(ClienteAtlzCadastralColunas.DATANASCIMENTO); + int _idCliente = cursor.getColumnIndex(ClienteAtlzCadastralColunas.ID_CLIENTE); + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + + if ( cursor.moveToFirst() ) { + + clienteAtlzCadastral.setId(cursor.getInt(_codigo)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(_imovelAtlzCadastralId)); + clienteAtlzCadastral.setImovelAtlzCadastral(_imovelAtlzCadastral); + + PessoaSexo _pessoaSexo = new PessoaSexo(); + _pessoaSexo.setId(cursor.getInt(_pessoaSexoId)); + clienteAtlzCadastral.setPessoaSexo(_pessoaSexo); + + ClienteTipo _clienteTipo = new ClienteTipo(); + _clienteTipo.setId(cursor.getInt(_clienteTipoId)); + clienteAtlzCadastral.setClienteTipo(_clienteTipo); + + clienteAtlzCadastral.setNumeroCPFCNPPJ(cursor.getString(_numeroCPFCNPPJ)); + clienteAtlzCadastral.setNomeCliente(cursor.getString(_nomeCliente)); + clienteAtlzCadastral.setNumeroRG(cursor.getString(_numeroRG)); + + if(cursor.getString(_dataEmissaoRg) != null && !cursor.getString(_dataEmissaoRg).equals("")){ + clienteAtlzCadastral.setDataEmissaoRg(Util.convertStringToDate(cursor.getString(_dataEmissaoRg))); + } + + if(cursor.getString(_dataNascimento) != null && !cursor.getString(_dataNascimento).equals("")){ + clienteAtlzCadastral.setDataNascimento(Util.convertStringToDate(cursor.getString(_dataNascimento))); + } + + OrgaoExpedidorRg _orgaoExpedidorRg = new OrgaoExpedidorRg(); + _orgaoExpedidorRg.setId(cursor.getInt(_orgaoExpedidorId)); + clienteAtlzCadastral.setOrgaoExpedidorRg(_orgaoExpedidorRg); + + UnidadeFederacao _unidadeFederacao = new UnidadeFederacao(); + _unidadeFederacao.setId(cursor.getInt(_unidadeFederacaoId)); + clienteAtlzCadastral.setUnidadeFederacao(_unidadeFederacao); + clienteAtlzCadastral.setIdCliente(cursor.getInt(_idCliente)); + } + + cursor.close(); + return clienteAtlzCadastral; + } + + public ImovelAtlzCadastral getImovelAtlzCadastral() { + return imovelAtlzCadastral; + } + + public void setImovelAtlzCadastral(ImovelAtlzCadastral imovelAtlzCadastral) { + this.imovelAtlzCadastral = imovelAtlzCadastral; + } + + public PessoaSexo getPessoaSexo() { + return pessoaSexo; + } + + public void setPessoaSexo(PessoaSexo pessoaSexo) { + this.pessoaSexo = pessoaSexo; + } + + public Date getDataEmissaoRg() { + return dataEmissaoRg; + } + + public void setDataEmissaoRg(Date dataEmissaoRg) { + this.dataEmissaoRg = dataEmissaoRg; + } + + public Date getDataNascimento() { + return dataNascimento; + } + + public void setDataNascimento(Date dataNascimento) { + this.dataNascimento = dataNascimento; + } + + public ClienteTipo getClienteTipo() { + return clienteTipo; + } + + public void setClienteTipo(ClienteTipo clienteTipo) { + this.clienteTipo = clienteTipo; + } + + public String getNumeroCPFCNPPJ() { + return numeroCPFCNPPJ; + } + + public void setNumeroCPFCNPPJ(String numeroCPFCNPPJ) { + this.numeroCPFCNPPJ = numeroCPFCNPPJ; + } + + public String getNomeCliente() { + return nomeCliente; + } + + public void setNomeCliente(String nomeCliente) { + this.nomeCliente = nomeCliente; + } + + public String getNumeroRG() { + return numeroRG; + } + + public void setNumeroRG(String numeroRG) { + this.numeroRG = numeroRG; + } + + public OrgaoExpedidorRg getOrgaoExpedidorRg() { + return orgaoExpedidorRg; + } + + public void setOrgaoExpedidorRg(OrgaoExpedidorRg orgaoExpedidorRg) { + this.orgaoExpedidorRg = orgaoExpedidorRg; + } + + public UnidadeFederacao getUnidadeFederacao() { + return unidadeFederacao; + } + + public void setUnidadeFederacao(UnidadeFederacao unidadeFederacao) { + this.unidadeFederacao = unidadeFederacao; + } + + public Integer getIdCliente() { + return idCliente; + } + + public void setIdCliente(Integer idCliente) { + this.idCliente = idCliente; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "CLIENTE_ATLZ_CADASTRAL"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteFoneAtlzCad.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteFoneAtlzCad.java new file mode 100644 index 0000000..1d457be --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteFoneAtlzCad.java @@ -0,0 +1,277 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto ClienteFoneAtlzCad + *

+ * + * @author Anderson Cabral + * @since 11/12/2012 + */ +public class ClienteFoneAtlzCad extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int CLAC_ID_INDEX = 1; + private static final int CLIE_ID_INDEX = 2; + private static final int FNET_ID_INDEX = 3; + private static final int CFAC_CDDDD_INDEX = 4; + private static final int CFAC_NNFONE_INDEX = 5; + private static final int CFAC_FONEPADRAO_INDEX = 6; + + private static final int AD_FNET_ID_INDEX = 2; + private static final int AD_CFAC_CDDDD_INDEX = 3; + private static final int AD_CFAC_NNFONE_INDEX = 4; + private static final int AD_CFAC_FONEPADRAO_INDEX = 5; + private static final int AD_CLAC_ID_INDEX = 6; + private static final int AD_CLIE_ID_INDEX = 7; + + + private FoneTipo foneTipo; + private ClienteAtlzCadastral clienteAtlzCadastral; + private Integer clienteId; + private Integer codigoDDD; + private Integer numeroFone; + private Integer indicadorFonePadrao; + + public static final String[] columns = new String[]{ + ClienteFoneAtlzCadColunas.ID, + ClienteFoneAtlzCadColunas.FONETIPO_ID, + ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID, + ClienteFoneAtlzCadColunas.CLIENTE_ID, + ClienteFoneAtlzCadColunas.CODIGODDD, + ClienteFoneAtlzCadColunas.NUMEROFONE, + ClienteFoneAtlzCadColunas.FONE_PADRAO + }; + + public static final class ClienteFoneAtlzCadColunas implements BaseColumns{ + public static final String ID = "CFAC_ID"; + public static final String FONETIPO_ID = "FNET_ID"; + public static final String CLIENTEATLZCAD_ID = "CLAC_ID"; + public static final String CLIENTE_ID = "CLIE_ID"; + public static final String CODIGODDD = "CFAC_CDDDD"; + public static final String NUMEROFONE = "CFAC_NNFONE"; + public static final String FONE_PADRAO = "CFAC_ICFONEPADRAO"; + } + + public final class ClienteFoneAtlzCadColunasTipo { + public final String ID = " INTEGER PRIMARY KEY AUTOINCREMENT"; + public final String FONETIPO_ID = " INTEGER NOT NULL"; + public final String CLIENTEATLZCAD_ID = " INTEGER NOT NULL"; + public final String CLIENTE_ID = " INTEGER "; + public final String CODIGODDD = " INTEGER "; + public final String NUMEROFONE = " INTEGER "; + public final String FONE_PADRAO = " INTEGER "; + + + private String[] tipos = new String[] {ID, FONETIPO_ID, CLIENTEATLZCAD_ID, + CLIENTE_ID, CODIGODDD, NUMEROFONE, FONE_PADRAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ClienteFoneAtlzCad inserirDoArquivo(List c) { + + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + + FoneTipo _foneTipo = new FoneTipo(); + _foneTipo.setId(c.get(FNET_ID_INDEX)); + clienteFoneAtlzCad.setFoneTipo(_foneTipo); + + ClienteAtlzCadastral _clienteAtlzCadastral = new ClienteAtlzCadastral(); + _clienteAtlzCadastral.setId(c.get(CLAC_ID_INDEX)); + clienteFoneAtlzCad.setClienteAtlzCadastral(_clienteAtlzCadastral); + + clienteFoneAtlzCad.setClienteId(Integer.valueOf(c.get(CLIE_ID_INDEX))); + clienteFoneAtlzCad.setCodigoDDD(Integer.valueOf(c.get(CFAC_CDDDD_INDEX))); + clienteFoneAtlzCad.setNumeroFone(Integer.valueOf(c.get(CFAC_NNFONE_INDEX))); + + if(c.get(CFAC_FONEPADRAO_INDEX) != null && !c.get(CFAC_FONEPADRAO_INDEX).equals("")){ + clienteFoneAtlzCad.setIndicadorFonePadrao(Integer.valueOf(c.get(CFAC_FONEPADRAO_INDEX))); + }else{ + clienteFoneAtlzCad.setIndicadorFonePadrao(Integer.valueOf("2")); + } + + return clienteFoneAtlzCad; + } + + public static ClienteFoneAtlzCad inserirAtualizarDoArquivoDividido(List c) { + + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + + FoneTipo _foneTipo = new FoneTipo(); + _foneTipo.setId(c.get(AD_FNET_ID_INDEX)); + clienteFoneAtlzCad.setFoneTipo(_foneTipo); + + ClienteAtlzCadastral _clienteAtlzCadastral = new ClienteAtlzCadastral(); + _clienteAtlzCadastral.setId(c.get(AD_CLAC_ID_INDEX)); + clienteFoneAtlzCad.setClienteAtlzCadastral(_clienteAtlzCadastral); + + clienteFoneAtlzCad.setClienteId(Integer.valueOf(c.get(AD_CLIE_ID_INDEX))); + clienteFoneAtlzCad.setCodigoDDD(Integer.valueOf(c.get(AD_CFAC_CDDDD_INDEX))); + clienteFoneAtlzCad.setNumeroFone(Integer.valueOf(c.get(AD_CFAC_NNFONE_INDEX))); + + if(c.get(AD_CFAC_FONEPADRAO_INDEX) != null && !c.get(AD_CFAC_FONEPADRAO_INDEX).equals("")){ + clienteFoneAtlzCad.setIndicadorFonePadrao(Integer.valueOf(c.get(AD_CFAC_FONEPADRAO_INDEX))); + }else{ + clienteFoneAtlzCad.setIndicadorFonePadrao(Integer.valueOf("2")); + } + + return clienteFoneAtlzCad; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ClienteFoneAtlzCadColunas.ID, getId()); + values.put(ClienteFoneAtlzCadColunas.FONETIPO_ID, getFoneTipo().getId()); + values.put(ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID, getClienteAtlzCadastral().getId()); + values.put(ClienteFoneAtlzCadColunas.CLIENTE_ID, getClienteId()); + values.put(ClienteFoneAtlzCadColunas.CODIGODDD, getCodigoDDD()); + values.put(ClienteFoneAtlzCadColunas.NUMEROFONE, getNumeroFone()); + values.put(ClienteFoneAtlzCadColunas.FONE_PADRAO, getIndicadorFonePadrao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaClienteFoneAtlzCad = new ArrayList(); + + if ( cursor.moveToFirst() ) { + + do{ + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + + int codigo = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.ID); + int foneTipoId = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.FONETIPO_ID); + int clienteAtlzCadastralId = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID); + int clienteId = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.CLIENTE_ID); + int codigoDDD = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.CODIGODDD); + int numeroFone = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.NUMEROFONE); + int fonePadrao = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.FONE_PADRAO); + + clienteFoneAtlzCad.setId(cursor.getInt(codigo)); + + FoneTipo _foneTipo = new FoneTipo(); + _foneTipo.setId(cursor.getInt(foneTipoId)); + clienteFoneAtlzCad.setFoneTipo(_foneTipo); + + ClienteAtlzCadastral _clienteAtlzCadastral = new ClienteAtlzCadastral(); + _clienteAtlzCadastral.setId(cursor.getInt(clienteAtlzCadastralId)); + clienteFoneAtlzCad.setClienteAtlzCadastral(_clienteAtlzCadastral); + + clienteFoneAtlzCad.setClienteId(cursor.getInt(clienteId)); + clienteFoneAtlzCad.setCodigoDDD(cursor.getInt(codigoDDD)); + clienteFoneAtlzCad.setNumeroFone(cursor.getInt(numeroFone)); + clienteFoneAtlzCad.setIndicadorFonePadrao(cursor.getInt(fonePadrao)); + + listaClienteFoneAtlzCad.add(clienteFoneAtlzCad); + + } while (cursor.moveToNext()); + } + cursor.close(); + return listaClienteFoneAtlzCad; + } + + public ClienteFoneAtlzCad carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.ID); + int foneTipoId = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.FONETIPO_ID); + int clienteAtlzCadastralId = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID); + int clienteId = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.CLIENTE_ID); + int codigoDDD = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.CODIGODDD); + int numeroFone = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.NUMEROFONE); + int fonePadrao = cursor.getColumnIndex(ClienteFoneAtlzCadColunas.FONE_PADRAO); + + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + + if ( cursor.moveToFirst() ) { + + clienteFoneAtlzCad.setId(cursor.getInt(codigo)); + + FoneTipo _foneTipo = new FoneTipo(); + _foneTipo.setId(cursor.getInt(foneTipoId)); + clienteFoneAtlzCad.setFoneTipo(_foneTipo); + + ClienteAtlzCadastral _clienteAtlzCadastral = new ClienteAtlzCadastral(); + _clienteAtlzCadastral.setId(cursor.getInt(clienteAtlzCadastralId)); + clienteFoneAtlzCad.setClienteAtlzCadastral(_clienteAtlzCadastral); + + clienteFoneAtlzCad.setClienteId(cursor.getInt(clienteId)); + clienteFoneAtlzCad.setCodigoDDD(cursor.getInt(codigoDDD)); + clienteFoneAtlzCad.setNumeroFone(cursor.getInt(numeroFone)); + clienteFoneAtlzCad.setIndicadorFonePadrao(cursor.getInt(fonePadrao)); + } + + cursor.close(); + return clienteFoneAtlzCad; + } + + public FoneTipo getFoneTipo() { + return foneTipo; + } + + public void setFoneTipo(FoneTipo foneTipo) { + this.foneTipo = foneTipo; + } + + public ClienteAtlzCadastral getClienteAtlzCadastral() { + return clienteAtlzCadastral; + } + + public void setClienteAtlzCadastral(ClienteAtlzCadastral clienteAtlzCadastral) { + this.clienteAtlzCadastral = clienteAtlzCadastral; + } + + public Integer getClienteId() { + return clienteId; + } + + public void setClienteId(Integer clienteId) { + this.clienteId = clienteId; + } + + public Integer getCodigoDDD() { + return codigoDDD; + } + + public void setCodigoDDD(Integer codigoDDD) { + this.codigoDDD = codigoDDD; + } + + public Integer getNumeroFone() { + return numeroFone; + } + + public void setNumeroFone(Integer numeroFone) { + this.numeroFone = numeroFone; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "CLIENTE_FONE_ATLZ_CAD"; + } + + public Integer getIndicadorFonePadrao() { + return indicadorFonePadrao; + } + + public void setIndicadorFonePadrao(Integer indicadorFonePadrao) { + this.indicadorFonePadrao = indicadorFonePadrao; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteTipo.java new file mode 100644 index 0000000..b2225c6 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ClienteTipo.java @@ -0,0 +1,143 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto ClienteTipo + *

+ * + * @author Davi Menezes + * @since 28/12/2012 + */ +public class ClienteTipo extends EntidadeBase { + + public final static Integer PARTICULARES = new Integer("25"); + + private static final long serialVersionUID = 1L; + + private static final int CLTP_ID_INDEX = 1; + private static final int CLTP_DSCLIENTETIPO_INDEX = 2; + private static final int CLTP_ICPESSOAFISICAJURIDICA_INDEX = 3; + + private String descricao; + + private Integer indicadorPessoa; + + public static final String[] columns = new String[]{ + ClienteTipoColunas.ID, + ClienteTipoColunas.DESCRICAO, + ClienteTipoColunas.INDICADOR_PESSOA + }; + + public static final class ClienteTipoColunas implements BaseColumns{ + public static final String ID = "CLTP_ID"; + public static final String DESCRICAO = "CLTP_DSCLIENTETIPO"; + public static final String INDICADOR_PESSOA = "CLTP_ICPESSOAFISICAJURIDICA"; + } + + public final class ClienteTipoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(50) NOT NULL"; + public final String INDICADOR_PESSOA = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO, INDICADOR_PESSOA}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ClienteTipo inserirDoArquivo(List c) { + + ClienteTipo clienteTipo = new ClienteTipo(); + + clienteTipo.setId(c.get(CLTP_ID_INDEX)); + clienteTipo.setDescricao(c.get(CLTP_DSCLIENTETIPO_INDEX)); + clienteTipo.setIndicadorPessoa(Integer.valueOf(c.get(CLTP_ICPESSOAFISICAJURIDICA_INDEX))); + + return clienteTipo; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ClienteTipoColunas.ID , getId()); + values.put(ClienteTipoColunas.DESCRICAO, getDescricao()); + values.put(ClienteTipoColunas.INDICADOR_PESSOA, getIndicadorPessoa()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaClienteTipo = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + int codigo = cursor.getColumnIndex(ClienteTipoColunas.ID); + int descricao = cursor.getColumnIndex(ClienteTipoColunas.DESCRICAO); + int indicadorPessoa = cursor.getColumnIndex(ClienteTipoColunas.INDICADOR_PESSOA); + + ClienteTipo clienteTipo = new ClienteTipo(); + + clienteTipo.setId(cursor.getInt(codigo)); + clienteTipo.setDescricao(cursor.getString(descricao)); + clienteTipo.setIndicadorPessoa(cursor.getInt(indicadorPessoa)); + + listaClienteTipo.add(clienteTipo); + + } while (cursor.moveToNext()); + } + cursor.close(); + return listaClienteTipo; + } + + public ClienteTipo carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(ClienteTipoColunas.ID); + int descricao = cursor.getColumnIndex(ClienteTipoColunas.DESCRICAO); + int indicadorPessoa = cursor.getColumnIndex(ClienteTipoColunas.INDICADOR_PESSOA); + + ClienteTipo clienteTipo = new ClienteTipo(); + + if ( cursor.moveToFirst() ) { + + clienteTipo.setId(cursor.getInt(codigo)); + clienteTipo.setDescricao(cursor.getString(descricao)); + clienteTipo.setIndicadorPessoa(cursor.getInt(indicadorPessoa)); + } + + cursor.close(); + return clienteTipo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public Integer getIndicadorPessoa() { + return indicadorPessoa; + } + + public void setIndicadorPessoa(Integer indicadorPessoa) { + this.indicadorPessoa = indicadorPessoa; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "CLIENTE_TIPO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/EnderecoReferencia.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/EnderecoReferencia.java new file mode 100644 index 0000000..19aead6 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/EnderecoReferencia.java @@ -0,0 +1,144 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsável pelo objeto EnderecoReferencia + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class EnderecoReferencia extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int EDRF_ID_INDEX = 1; + private static final int EDRF_DESCRICAO_INDEX = 2; + private static final int EDRF_DESCRICAO_ABREVIADA_INDEX = 3; + + + private String descricao; + + private String descricaoAbreviada; + + public static final String[] colunas = new String[] { + EnderecoReferencias.ID, + EnderecoReferencias.DESCRICAO, + EnderecoReferencias.DESCRICAO_ABREVIADA + }; + + public static final class EnderecoReferencias implements BaseColumns { + public static final String ID = "EDRF_ID"; + public static final String DESCRICAO = "EDRF_DSENDERECOREFERENCIA"; + public static final String DESCRICAO_ABREVIADA = "EDRF_DSABREVIADO"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "ENDERECO_REFERENCIA"; + } + + public final class EnderecoReferenciaTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) "; + public final String DESCRICAO_ABREVIADA = " VARCHAR(18) "; + + private String[] tipos = new String[] {ID, DESCRICAO, DESCRICAO_ABREVIADA}; + + public String[] getTipos(){ + return tipos; + } + } + + public static EnderecoReferencia inserirDoArquivo(List c) { + + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + + enderecoReferencia.setId(c.get(EDRF_ID_INDEX)); + enderecoReferencia.setDescricao(c.get(EDRF_DESCRICAO_INDEX)); + enderecoReferencia.setDescricaoAbreviada(c.get(EDRF_DESCRICAO_ABREVIADA_INDEX)); + + return enderecoReferencia; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public String getDescricaoAbreviada() { + return descricaoAbreviada; + } + + public void setDescricaoAbreviada(String descricaoAbreviada) { + this.descricaoAbreviada = descricaoAbreviada; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(EnderecoReferencias.ID, getId()); + values.put(EnderecoReferencias.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList enderecoReferencias = new ArrayList(); + + do{ + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + + int codigo = cursor.getColumnIndex(EnderecoReferencias.ID); + int descricao = cursor.getColumnIndex(EnderecoReferencias.DESCRICAO); + int descricaoAbreviada = cursor.getColumnIndex(EnderecoReferencias.DESCRICAO_ABREVIADA); + + enderecoReferencia.setId(cursor.getInt(codigo)); + enderecoReferencia.setDescricao(cursor.getString(descricao)); + enderecoReferencia.setDescricaoAbreviada(cursor.getString(descricaoAbreviada)); + + enderecoReferencias.add(enderecoReferencia); + + } while (cursor.moveToNext()); + + cursor.close(); + return enderecoReferencias; + } + + public EnderecoReferencia carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(EnderecoReferencias.ID); + int descricao = cursor.getColumnIndex(EnderecoReferencias.DESCRICAO); + int descricaoAbreviada = cursor.getColumnIndex(EnderecoReferencias.DESCRICAO_ABREVIADA); + + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + + if ( cursor.moveToFirst() ) { + + enderecoReferencia.setId(cursor.getInt(codigo)); + enderecoReferencia.setDescricao(cursor.getString(descricao)); + enderecoReferencia.setDescricaoAbreviada(cursor.getString(descricaoAbreviada)); + } + + cursor.close(); + return enderecoReferencia; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/EntidadeBase.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/EntidadeBase.java new file mode 100644 index 0000000..f6ea1f3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/EntidadeBase.java @@ -0,0 +1,29 @@ +package com.br.gsanac.entidades; + +import java.io.Serializable; + +import com.br.gsanac.util.Util; + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class EntidadeBase implements Serializable { + + private static final long serialVersionUID = -6654289119975726850L; + + private Integer id; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public void setId(String id) { + this.id = Util.parseStringToInteger(id); + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/FoneTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/FoneTipo.java new file mode 100644 index 0000000..0db3a0e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/FoneTipo.java @@ -0,0 +1,126 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto FoneTipo + *

+ * + * @author Anderson Cabral + * @since 10/12/2012 + */ +public class FoneTipo extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int FNET_ID_INDEX = 1; + private static final int FNET_DSFONETIPO_INDEX = 2; + + public static final int RESIDENCIAL = 1; + public static final int COMERCIAL = 2; + public static final int CELULAR = 3; + public static final int FAX = 4; + + private String descricao; + + public static final String[] columns = new String[]{ + FoneTipoColunas.ID, + FoneTipoColunas.DESCRICAO + }; + + public static final class FoneTipoColunas implements BaseColumns{ + public static final String ID = "FNET_ID"; + public static final String DESCRICAO = "FNET_DSFONETIPO"; + } + + public final class FoneTipoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static FoneTipo inserirDoArquivo(List c) { + + FoneTipo foneTipo = new FoneTipo(); + + foneTipo.setId(c.get(FNET_ID_INDEX)); + foneTipo.setDescricao(c.get(FNET_DSFONETIPO_INDEX)); + + return foneTipo; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(FoneTipoColunas.ID, getId()); + values.put(FoneTipoColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaFoneTipo = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + FoneTipo foneTipo = new FoneTipo(); + int codigo = cursor.getColumnIndex(FoneTipoColunas.ID); + int descricao = cursor.getColumnIndex(FoneTipoColunas.DESCRICAO); + + foneTipo.setId(cursor.getInt(codigo)); + foneTipo.setDescricao(cursor.getString(descricao)); + + listaFoneTipo.add(foneTipo); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaFoneTipo; + } + + public FoneTipo carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(FoneTipoColunas.ID); + int descricao = cursor.getColumnIndex(FoneTipoColunas.DESCRICAO); + + FoneTipo foneTipo = new FoneTipo(); + + if ( cursor.moveToFirst() ) { + + foneTipo.setId(cursor.getInt(codigo)); + foneTipo.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return foneTipo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "FONE_TIPO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/FonteAbastecimento.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/FonteAbastecimento.java new file mode 100644 index 0000000..f8663c1 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/FonteAbastecimento.java @@ -0,0 +1,133 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsavel pelo objeto FonteAbastecimento + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class FonteAbastecimento extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int FTAB_ID_INDEX = 1; + private static final int FTAB_DESCRICAO_INDEX = 2; + + //Constantes + public static final int COMPESA = 1; + public static final int POCO = 2; + public static final int VIZINHO = 3; + public static final int CACIMBA = 4; + public static final int CHAFARIZ = 5; + public static final int CARRO_PIPA = 6; + public static final int SEM_ABASTECIMENTO = 7; + + private String descricao; + + public static final String[] colunas = new String[] { + FonteAbastecimentos.ID, + FonteAbastecimentos.DESCRICAO + }; + + public static final class FonteAbastecimentos implements BaseColumns { + public static final String ID = "FTAB_ID"; + public static final String DESCRICAO = "FTAB_DSFONTEABASTECIMENTO"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "FONTE_ABASTECIMENTO"; + } + + public final class FonteAbastecimentoTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(25) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static FonteAbastecimento inserirDoArquivo(List c) { + + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + + fonteAbastecimento.setId(c.get(FTAB_ID_INDEX)); + fonteAbastecimento.setDescricao(c.get(FTAB_DESCRICAO_INDEX)); + + return fonteAbastecimento; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(FonteAbastecimentos.ID, getId()); + values.put(FonteAbastecimentos.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList fonteAbastecimentos = new ArrayList(); + + do{ + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + + int codigo = cursor.getColumnIndex(FonteAbastecimentos.ID); + int descricao = cursor.getColumnIndex(FonteAbastecimentos.DESCRICAO); + + fonteAbastecimento.setId(cursor.getInt(codigo)); + fonteAbastecimento.setDescricao(cursor.getString(descricao)); + + fonteAbastecimentos.add(fonteAbastecimento); + + } while (cursor.moveToNext()); + + cursor.close(); + return fonteAbastecimentos; + } + + public FonteAbastecimento carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(FonteAbastecimentos.ID); + int descricao = cursor.getColumnIndex(FonteAbastecimentos.DESCRICAO); + + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + + if ( cursor.moveToFirst() ) { + + fonteAbastecimento.setId(cursor.getInt(codigo)); + fonteAbastecimento.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return fonteAbastecimento; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Foto.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Foto.java new file mode 100644 index 0000000..5f4e0d2 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Foto.java @@ -0,0 +1,221 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + *

+ * Classe responsavel pelo objeto Foto + *

+ * + * @author Anderson Cabral + * @since 04/01/2013 + */ +public class Foto extends EntidadeBase implements Cloneable{ + + private static final long serialVersionUID = 1L; + + private static final int FOTO_PATH_INDEX = 1; + private static final int FOTP_ID_INDEX = 2; + + private ImovelAtlzCadastral imovelAtlzCadastral; + private Integer fotoTipo; + private String fotoPath; + private Date ultimaAlteracao; + private Integer indicadorTransmitido; + + public static final String[] columns = new String[]{ + FotoColunas.ID, + FotoColunas.FOTOTIPO, + FotoColunas.IMOVELATLZCAD_ID, + FotoColunas.FOTOPATH, + FotoColunas.FOTOULTIMAALTERACAO, + FotoColunas.INDICADORTRANSMITIDO + }; + + public static final class FotoColunas implements BaseColumns{ + public static final String ID = "FOTO_ID"; + public static final String IMOVELATLZCAD_ID = "IMAC_ID"; + public static final String FOTOTIPO = "FOTO_TIPO"; + public static final String FOTOPATH = "FOTO_PATH"; + public static final String FOTOULTIMAALTERACAO = "FOTO_TMULTIMAALTERACAO"; + public static final String INDICADORTRANSMITIDO = "FOTO_ICTRANSMITIDO"; + } + + public final class FotoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String IMOVELATLZCAD_ID = " INTEGER NOT NULL"; + public final String FOTOTIPO = " INTEGER NOT NULL"; + public final String FOTOPATH = " VARCHAR NOT NULL"; + public final String FOTOULTIMAALTERACAO = " DATETIME NOT NULL"; + public final String INDICADORTRANSMITIDO = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, IMOVELATLZCAD_ID, FOTOTIPO, FOTOPATH, + FOTOULTIMAALTERACAO, INDICADORTRANSMITIDO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static Foto inserirAtualizarDoArquivoDividido(List c, ImovelAtlzCadastral imovelAtlzCadastral) { + + Foto foto = new Foto(); + + foto.setFotoTipo(Integer.valueOf(c.get(FOTP_ID_INDEX))); + + foto.setImovelAtlzCadastral(imovelAtlzCadastral); + + foto.setFotoPath(c.get(FOTO_PATH_INDEX)); + foto.setUltimaAlteracao(new Date()); + foto.setIndicadorTransmitido(Integer.valueOf(String.valueOf(ConstantesSistema.NAO))); + + return foto; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(FotoColunas.ID, getId()); + values.put(FotoColunas.IMOVELATLZCAD_ID, getImovelAtlzCadastral().getId()); + values.put(FotoColunas.FOTOTIPO, getFotoTipo()); + values.put(FotoColunas.FOTOPATH, getFotoPath()); + values.put(FotoColunas.FOTOULTIMAALTERACAO, Util.convertDateToString(getUltimaAlteracao())); + values.put(FotoColunas.INDICADORTRANSMITIDO, getIndicadorTransmitido()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaFoto = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + Foto foto = new Foto(); + int id = cursor.getColumnIndex(FotoColunas.ID); + int imovelAtlzCadId = cursor.getColumnIndex(FotoColunas.IMOVELATLZCAD_ID); + int fotoTipo = cursor.getColumnIndex(FotoColunas.FOTOTIPO); + int fotoPath = cursor.getColumnIndex(FotoColunas.FOTOPATH); + int ultimaAlteracao = cursor.getColumnIndex(FotoColunas.FOTOULTIMAALTERACAO); + int indicadorTransmitido = cursor.getColumnIndex(FotoColunas.INDICADORTRANSMITIDO); + + foto.setId(cursor.getInt(id)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(imovelAtlzCadId); + foto.setImovelAtlzCadastral(_imovelAtlzCadastral); + + foto.setFotoTipo(cursor.getInt(fotoTipo)); + foto.setFotoPath(cursor.getString(fotoPath)); + + //testar + Long ultimaAlteracaoMilleS = cursor.getLong(ultimaAlteracao); + foto.setUltimaAlteracao(new Date(ultimaAlteracaoMilleS)); + // -- // + + foto.setIndicadorTransmitido(cursor.getInt(indicadorTransmitido)); + + listaFoto.add(foto); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaFoto; + } + + public Foto carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(FotoColunas.ID); + int imovelAtlzCadId = cursor.getColumnIndex(FotoColunas.IMOVELATLZCAD_ID); + int fotoTipo = cursor.getColumnIndex(FotoColunas.FOTOTIPO); + int fotoPath = cursor.getColumnIndex(FotoColunas.FOTOPATH); + int ultimaAlteracao = cursor.getColumnIndex(FotoColunas.FOTOULTIMAALTERACAO); + int indicadorTransmitido = cursor.getColumnIndex(FotoColunas.INDICADORTRANSMITIDO); + + Foto foto = new Foto(); + + if ( cursor.moveToFirst() ) { + + foto.setId(cursor.getInt(id)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(imovelAtlzCadId)); + foto.setImovelAtlzCadastral(_imovelAtlzCadastral); + + foto.setFotoTipo(cursor.getInt(fotoTipo)); + foto.setFotoPath(cursor.getString(fotoPath)); + + //testar + Long ultimaAlteracaoMilleS = cursor.getLong(ultimaAlteracao); + foto.setUltimaAlteracao(new Date(ultimaAlteracaoMilleS)); + // -- // + + foto.setIndicadorTransmitido(cursor.getInt(indicadorTransmitido)); + } + + cursor.close(); + return foto; + } + + public ImovelAtlzCadastral getImovelAtlzCadastral() { + return imovelAtlzCadastral; + } + + public void setImovelAtlzCadastral(ImovelAtlzCadastral imovelAtlzCadastral) { + this.imovelAtlzCadastral = imovelAtlzCadastral; + } + + public Integer getFotoTipo() { + return fotoTipo; + } + + public void setFotoTipo(Integer fotoTipo) { + this.fotoTipo = fotoTipo; + } + + public String getFotoPath() { + return fotoPath; + } + + public void setFotoPath(String fotoPath) { + this.fotoPath = fotoPath; + } + + public Date getUltimaAlteracao() { + return ultimaAlteracao; + } + + public void setUltimaAlteracao(Date ultimaAlteracao) { + this.ultimaAlteracao = ultimaAlteracao; + } + + public Integer getIndicadorTransmitido() { + return indicadorTransmitido; + } + + public void setIndicadorTransmitido(Integer indicadorTransmitido) { + this.indicadorTransmitido = indicadorTransmitido; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "FOTO"; + } + + public Foto clone() throws CloneNotSupportedException { + return (Foto) super.clone(); + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroCapacidade.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroCapacidade.java new file mode 100644 index 0000000..158ba8a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroCapacidade.java @@ -0,0 +1,121 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto HidrometroCapacidade + *

+ * + * @author Anderson Cabral + * @since 03/01/2013 + */ +public class HidrometroCapacidade extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int HICP_ID_INDEX = 1; + private static final int HICP_CDHIDROMETROCAPACIDADE_INDEX = 2; + + private String codigo; + + public static final String[] columns = new String[]{ + HidrometroCapacidadeColunas.ID, + HidrometroCapacidadeColunas.CODIGO + }; + + public static final class HidrometroCapacidadeColunas implements BaseColumns{ + public static final String ID = "HICP_ID"; + public static final String CODIGO = "HICP_CDHIDROMETROCAPACIDADE"; + } + + public final class HidrometroCapacidadeColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CODIGO = " CHAR NOT NULL"; + + private String[] tipos = new String[] {ID, CODIGO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static HidrometroCapacidade inserirDoArquivo(List c) { + + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + + hidrometroCapacidade.setId(c.get(HICP_ID_INDEX)); + hidrometroCapacidade.setCodigo(c.get(HICP_CDHIDROMETROCAPACIDADE_INDEX)); + + return hidrometroCapacidade; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(HidrometroCapacidadeColunas.ID, getId()); + values.put(HidrometroCapacidadeColunas.CODIGO, getCodigo()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaHidrometroCapacidade = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + int id = cursor.getColumnIndex(HidrometroCapacidadeColunas.ID); + int codigo = cursor.getColumnIndex(HidrometroCapacidadeColunas.CODIGO); + + hidrometroCapacidade.setId(cursor.getInt(id)); + hidrometroCapacidade.setCodigo(cursor.getString(codigo)); + + listaHidrometroCapacidade.add(hidrometroCapacidade); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaHidrometroCapacidade; + } + + public HidrometroCapacidade carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(HidrometroCapacidadeColunas.ID); + int codigo = cursor.getColumnIndex(HidrometroCapacidadeColunas.CODIGO); + + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + + if ( cursor.moveToFirst() ) { + + hidrometroCapacidade.setId(cursor.getInt(id)); + hidrometroCapacidade.setCodigo(cursor.getString(codigo)); + } + + cursor.close(); + return hidrometroCapacidade; + } + + public String getCodigo() { + return codigo; + } + + public void setCodigo(String codigo) { + this.codigo = codigo; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "HIDROMETRO_CAPACIDADE"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroInstHistAtlzCad.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroInstHistAtlzCad.java new file mode 100644 index 0000000..dccf03d --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroInstHistAtlzCad.java @@ -0,0 +1,329 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto HidrometroInstHistAtlzCad + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class HidrometroInstHistAtlzCad extends EntidadeBase implements Cloneable { + + private static final long serialVersionUID = 1L; + + private static final int HIAC_ID_INDEX = 1; + private static final int IMAC_ID_INDEX = 2; + private static final int MEDT_ID_INDEX = 3; + private static final int HIAC_NNHIDROMETRO_INDEX = 4; + private static final int HILI_ID_INDEX = 5; + private static final int HIPR_ID_INDEX = 6; + private static final int IMAC_ICCAVALETE_INDEX = 7; + private static final int HIAC_NNINSTALACAOHIDMT_INDEX = 8; + + private static final int AD_IMAC_ID_INDEX = 1; + private static final int AD_HIAC_NNHIDROMETRO_INDEX = 2; + private static final int AD_HILI_ID_INDEX = 3; + private static final int AD_HIPR_ID_INDEX = 4; + private static final int AD_IMAC_ICCAVALETE_INDEX = 5; + private static final int AD_HIAC_NNINSTALACAOHIDMT_INDEX = 6; + + private ImovelAtlzCadastral imovelAtlzCadastral; + private MedicaoTipo medicaoTipo; + private String numeroHidrometro; + private HidrometroLocalInst hidrometroLocalInst; + private HidrometroProtecao hidrometroProtecao; + private Integer indicadorCavalete; + private Integer numeroInstHidrometro; + + public static final String[] columns = new String[]{ + HidrometroInstHistAtlzCadColunas.ID, + HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID, + HidrometroInstHistAtlzCadColunas.MEDICAOTIPO_ID, + HidrometroInstHistAtlzCadColunas.NUMEROHIDROMETRO, + HidrometroInstHistAtlzCadColunas.HIDROMETROLOCALINST_ID, + HidrometroInstHistAtlzCadColunas.HIDROMETROPROTECAO_ID, + HidrometroInstHistAtlzCadColunas.INDICADORCAVALETE, + HidrometroInstHistAtlzCadColunas.NUMEROINSTALACAOHIDMT + }; + + public static final class HidrometroInstHistAtlzCadColunas implements BaseColumns{ + + public static final String ID = "HIAC_ID"; + public static final String IMOVELATLZCAD_ID = "IMAC_ID"; + public static final String MEDICAOTIPO_ID = "MEDT_ID"; + public static final String NUMEROHIDROMETRO = "HIAC_NNHIDROMETRO"; + public static final String HIDROMETROLOCALINST_ID = "HILI_ID"; + public static final String HIDROMETROPROTECAO_ID = "HIPR_ID"; + public static final String INDICADORCAVALETE = "IMAC_ICCAVALETE"; + public static final String NUMEROINSTALACAOHIDMT = "HIAC_NNINSTALACAOHIDMT"; + } + + public final class HidrometroInstHistAtlzCadColunasTipo { + public final String ID = " INTEGER PRIMARY KEY AUTOINCREMENT"; + public final String IMOVELATLZCAD_ID = " INTEGER NOT NULL"; + public final String MEDICAOTIPO_ID = " INTEGER"; + public final String NUMEROHIDROMETRO = " VARCHAR(20)"; + public final String HIDROMETROLOCALINST_ID = " INTEGER"; + public final String HIDROMETROPROTECAO_ID = " INTEGER"; + public final String INDICADORCAVALETE = " INTEGER NOT NULL"; + public final String NUMEROINSTALACAOHIDMT = " INTEGER"; + + private String[] tipos = new String[] {ID, IMOVELATLZCAD_ID, MEDICAOTIPO_ID, NUMEROHIDROMETRO, + HIDROMETROLOCALINST_ID, HIDROMETROPROTECAO_ID, + INDICADORCAVALETE, NUMEROINSTALACAOHIDMT}; + + public String[] getTipos(){ + return tipos; + } + } + + public static HidrometroInstHistAtlzCad inserirDoArquivo(List c) { + + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + + hidrometroInstHistAtlzCad.setId(c.get(HIAC_ID_INDEX)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(c.get(IMAC_ID_INDEX)); + hidrometroInstHistAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + MedicaoTipo _medicaoTipo = new MedicaoTipo(); + _medicaoTipo.setId(c.get(MEDT_ID_INDEX)); + hidrometroInstHistAtlzCad.setMedicaoTipo(_medicaoTipo); + + hidrometroInstHistAtlzCad.setNumeroHidrometro(c.get(HIAC_NNHIDROMETRO_INDEX)); + + HidrometroLocalInst _hidrometroLocalInst = new HidrometroLocalInst(); + _hidrometroLocalInst.setId(c.get(HILI_ID_INDEX)); + hidrometroInstHistAtlzCad.setHidrometroLocalInst(_hidrometroLocalInst); + + HidrometroProtecao _hidrometroProtecao = new HidrometroProtecao(); + _hidrometroProtecao.setId(c.get(HIPR_ID_INDEX)); + hidrometroInstHistAtlzCad.setHidrometroProtecao(_hidrometroProtecao); + + if(c.get(IMAC_ICCAVALETE_INDEX) != null && !c.get(IMAC_ICCAVALETE_INDEX).equals("")){ + hidrometroInstHistAtlzCad.setIndicadorCavalete(Integer.valueOf(c.get(IMAC_ICCAVALETE_INDEX))); + } + + if(c.get(HIAC_NNINSTALACAOHIDMT_INDEX) != null && !c.get(HIAC_NNINSTALACAOHIDMT_INDEX).equals("")){ + hidrometroInstHistAtlzCad.setNumeroInstHidrometro(Integer.valueOf(c.get(HIAC_NNINSTALACAOHIDMT_INDEX))); + } + + return hidrometroInstHistAtlzCad; + } + + + public static HidrometroInstHistAtlzCad inserirAtualizarDoArquivoDividido(List c, Long idImovelAtlzCad) { + + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(idImovelAtlzCad.intValue()); + hidrometroInstHistAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + MedicaoTipo _medicaoTipo = new MedicaoTipo(); + _medicaoTipo.setId(1); + hidrometroInstHistAtlzCad.setMedicaoTipo(_medicaoTipo); + + hidrometroInstHistAtlzCad.setNumeroHidrometro(c.get(AD_HIAC_NNHIDROMETRO_INDEX)); + + HidrometroLocalInst _hidrometroLocalInst = new HidrometroLocalInst(); + _hidrometroLocalInst.setId(c.get(AD_HILI_ID_INDEX)); + hidrometroInstHistAtlzCad.setHidrometroLocalInst(_hidrometroLocalInst); + + HidrometroProtecao _hidrometroProtecao = new HidrometroProtecao(); + _hidrometroProtecao.setId(c.get(AD_HIPR_ID_INDEX)); + hidrometroInstHistAtlzCad.setHidrometroProtecao(_hidrometroProtecao); + + hidrometroInstHistAtlzCad.setIndicadorCavalete(Integer.valueOf(c.get(AD_IMAC_ICCAVALETE_INDEX))); + hidrometroInstHistAtlzCad.setNumeroInstHidrometro(Integer.valueOf(c.get(AD_HIAC_NNINSTALACAOHIDMT_INDEX))); + + return hidrometroInstHistAtlzCad; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(HidrometroInstHistAtlzCadColunas.ID, getId()); + values.put(HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID, getImovelAtlzCadastral().getId()); + values.put(HidrometroInstHistAtlzCadColunas.MEDICAOTIPO_ID, getMedicaoTipo().getId()); + values.put(HidrometroInstHistAtlzCadColunas.NUMEROHIDROMETRO, getNumeroHidrometro()); + values.put(HidrometroInstHistAtlzCadColunas.HIDROMETROLOCALINST_ID, getHidrometroLocalInst().getId()); + values.put(HidrometroInstHistAtlzCadColunas.HIDROMETROPROTECAO_ID, getHidrometroProtecao().getId()); + values.put(HidrometroInstHistAtlzCadColunas.INDICADORCAVALETE, getIndicadorCavalete()); + values.put(HidrometroInstHistAtlzCadColunas.NUMEROINSTALACAOHIDMT, getNumeroInstHidrometro()); + + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaHidrometroInstHistAtlzCad = new ArrayList(); + if ( cursor.moveToFirst() ) { + + do{ + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + + int _codigo = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.ID); + int _imovelAtlzCadastralId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID); + int _medicaoTipoId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.MEDICAOTIPO_ID); + int _numeroHidrometro = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.NUMEROHIDROMETRO); + int _hidrometroLocalInstId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.HIDROMETROLOCALINST_ID); + int _hidrometroProtecaoId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.HIDROMETROPROTECAO_ID); + int _indicadorCavalete = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.INDICADORCAVALETE); + int _numeroInstHidrometro = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.NUMEROINSTALACAOHIDMT); + + hidrometroInstHistAtlzCad.setId(cursor.getInt(_codigo)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(_imovelAtlzCadastralId)); + hidrometroInstHistAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + MedicaoTipo _medicaoTipo = new MedicaoTipo(); + _medicaoTipo.setId(cursor.getInt(_medicaoTipoId)); + hidrometroInstHistAtlzCad.setMedicaoTipo(_medicaoTipo); + + hidrometroInstHistAtlzCad.setNumeroHidrometro(cursor.getString(_numeroHidrometro)); + + HidrometroLocalInst _hidrometroLocalInst = new HidrometroLocalInst(); + _hidrometroLocalInst.setId(cursor.getInt(_hidrometroLocalInstId)); + hidrometroInstHistAtlzCad.setHidrometroLocalInst(_hidrometroLocalInst); + + HidrometroProtecao _hidrometroProtecao = new HidrometroProtecao(); + _hidrometroProtecao.setId(cursor.getInt(_hidrometroProtecaoId)); + hidrometroInstHistAtlzCad.setHidrometroProtecao(_hidrometroProtecao); + + hidrometroInstHistAtlzCad.setIndicadorCavalete(cursor.getInt(_indicadorCavalete)); + hidrometroInstHistAtlzCad.setNumeroInstHidrometro(cursor.getInt(_numeroInstHidrometro)); + + listaHidrometroInstHistAtlzCad.add(hidrometroInstHistAtlzCad); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaHidrometroInstHistAtlzCad; + } + + public HidrometroInstHistAtlzCad carregarEntidade(Cursor cursor) { + + int _codigo = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.ID); + int _imovelAtlzCadastralId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID); + int _medicaoTipoId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.MEDICAOTIPO_ID); + int _numeroHidrometro = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.NUMEROHIDROMETRO); + int _hidrometroLocalInstId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.HIDROMETROLOCALINST_ID); + int _hidrometroProtecaoId = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.HIDROMETROPROTECAO_ID); + int _indicadorCavalete = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.INDICADORCAVALETE); + int _numeroInstHidrometro = cursor.getColumnIndex(HidrometroInstHistAtlzCadColunas.NUMEROINSTALACAOHIDMT); + + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + + if ( cursor.moveToFirst() ) { + + hidrometroInstHistAtlzCad.setId(cursor.getInt(_codigo)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(_imovelAtlzCadastralId)); + hidrometroInstHistAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + MedicaoTipo _medicaoTipo = new MedicaoTipo(); + _medicaoTipo.setId(cursor.getInt(_medicaoTipoId)); + hidrometroInstHistAtlzCad.setMedicaoTipo(_medicaoTipo); + + hidrometroInstHistAtlzCad.setNumeroHidrometro(cursor.getString(_numeroHidrometro)); + + HidrometroLocalInst _hidrometroLocalInst = new HidrometroLocalInst(); + _hidrometroLocalInst.setId(cursor.getInt(_hidrometroLocalInstId)); + hidrometroInstHistAtlzCad.setHidrometroLocalInst(_hidrometroLocalInst); + + HidrometroProtecao _hidrometroProtecao = new HidrometroProtecao(); + _hidrometroProtecao.setId(cursor.getInt(_hidrometroProtecaoId)); + hidrometroInstHistAtlzCad.setHidrometroProtecao(_hidrometroProtecao); + + hidrometroInstHistAtlzCad.setIndicadorCavalete(cursor.getInt(_indicadorCavalete)); + hidrometroInstHistAtlzCad.setNumeroInstHidrometro(cursor.getInt(_numeroInstHidrometro)); + } + + cursor.close(); + return hidrometroInstHistAtlzCad; + } + + public MedicaoTipo getMedicaoTipo() { + return medicaoTipo; + } + + public void setMedicaoTipo(MedicaoTipo medicaoTipo) { + this.medicaoTipo = medicaoTipo; + } + + public ImovelAtlzCadastral getImovelAtlzCadastral() { + return imovelAtlzCadastral; + } + + public void setImovelAtlzCadastral(ImovelAtlzCadastral imovelAtlzCadastral) { + this.imovelAtlzCadastral = imovelAtlzCadastral; + } + + public HidrometroProtecao getHidrometroProtecao() { + return hidrometroProtecao; + } + + public void setHidrometroProtecao(HidrometroProtecao hidrometroProtecao) { + this.hidrometroProtecao = hidrometroProtecao; + } + + public HidrometroLocalInst getHidrometroLocalInst() { + return hidrometroLocalInst; + } + + public void setHidrometroLocalInst(HidrometroLocalInst hidrometroLocalInst) { + this.hidrometroLocalInst = hidrometroLocalInst; + } + + public String getNumeroHidrometro() { + return numeroHidrometro; + } + + public void setNumeroHidrometro(String numeroHidrometro) { + this.numeroHidrometro = numeroHidrometro; + } + + public Integer getIndicadorCavalete() { + return indicadorCavalete; + } + + public void setIndicadorCavalete(Integer indicadorCavalete) { + this.indicadorCavalete = indicadorCavalete; + } + + public Integer getNumeroInstHidrometro() { + return numeroInstHidrometro; + } + + public void setNumeroInstHidrometro(Integer numeroInstHidrometro) { + this.numeroInstHidrometro = numeroInstHidrometro; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "HIDROM_INST_HIST_ATL_CAD"; + } + + public HidrometroInstHistAtlzCad clone() throws CloneNotSupportedException { + return (HidrometroInstHistAtlzCad) super.clone(); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroLocalInst.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroLocalInst.java new file mode 100644 index 0000000..8493ba5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroLocalInst.java @@ -0,0 +1,121 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto HidrometroLocalInst + *

+ * + * @author Anderson Cabral + * @date 10/12/12 + */ +public class HidrometroLocalInst extends EntidadeBase { + + private static final long serialVersionUID = 1L; + private static final int HILI_ID_INDEX = 1; + private static final int HILI_DSHIDMTLOCALINSTALACAO_INDEX = 2; + + private String descricao; + + public static final String[] columns = new String[]{ + HidrometroLocalInstColunas.ID, + HidrometroLocalInstColunas.DESCRICAO + }; + + public static final class HidrometroLocalInstColunas implements BaseColumns{ + public static final String ID = "HILI_ID"; + public static final String DESCRICAO = "HILI_DSHIDMTLOCALINSTALACAO"; + } + + public final class HidrometroLocalInstColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static HidrometroLocalInst inserirDoArquivo(List c) { + + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + + hidrometroLocalInst.setId(c.get(HILI_ID_INDEX)); + hidrometroLocalInst.setDescricao(c.get(HILI_DSHIDMTLOCALINSTALACAO_INDEX)); + + return hidrometroLocalInst; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(HidrometroLocalInstColunas.ID, getId()); + values.put(HidrometroLocalInstColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaHidrometroLocalInst = new ArrayList(); + + if ( cursor.moveToFirst() ) { + do{ + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + int codigo = cursor.getColumnIndex(HidrometroLocalInstColunas.ID); + int descricao = cursor.getColumnIndex(HidrometroLocalInstColunas.DESCRICAO); + + hidrometroLocalInst.setId(cursor.getInt(codigo)); + hidrometroLocalInst.setDescricao(cursor.getString(descricao)); + + listaHidrometroLocalInst.add(hidrometroLocalInst); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaHidrometroLocalInst; + } + + public HidrometroLocalInst carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(HidrometroLocalInstColunas.ID); + int descricao = cursor.getColumnIndex(HidrometroLocalInstColunas.DESCRICAO); + + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + + if ( cursor.moveToFirst() ) { + + hidrometroLocalInst.setId(cursor.getInt(codigo)); + hidrometroLocalInst.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return hidrometroLocalInst; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "HIDROMETRO_LOCAL_INST"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroMarca.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroMarca.java new file mode 100644 index 0000000..ca2f597 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroMarca.java @@ -0,0 +1,121 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto HidrometroMarca + *

+ * + * @author Anderson Cabral + * @since 03/01/2013 + */ +public class HidrometroMarca extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int HIMC_ID_INDEX = 1; + private static final int HIMC_CDHIDROMETROMARCA_INDEX = 2; + + private String codigo; + + public static final String[] columns = new String[]{ + HidrometroMarcaColunas.ID, + HidrometroMarcaColunas.CODIGO + }; + + public static final class HidrometroMarcaColunas implements BaseColumns{ + public static final String ID = "HIMC_ID"; + public static final String CODIGO = "HIMC_CDHIDROMETROMARCA"; + } + + public final class HidrometroMarcaColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CODIGO = " CHAR NOT NULL"; + + private String[] tipos = new String[] {ID, CODIGO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static HidrometroMarca inserirDoArquivo(List c) { + + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + + hidrometroMarca.setId(c.get(HIMC_ID_INDEX)); + hidrometroMarca.setCodigo(c.get(HIMC_CDHIDROMETROMARCA_INDEX)); + + return hidrometroMarca; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(HidrometroMarcaColunas.ID, getId()); + values.put(HidrometroMarcaColunas.CODIGO, getCodigo()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaHidrometroMarca = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + int id = cursor.getColumnIndex(HidrometroMarcaColunas.ID); + int codigo = cursor.getColumnIndex(HidrometroMarcaColunas.CODIGO); + + hidrometroMarca.setId(cursor.getInt(id)); + hidrometroMarca.setCodigo(cursor.getString(codigo)); + + listaHidrometroMarca.add(hidrometroMarca); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaHidrometroMarca; + } + + public HidrometroMarca carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(HidrometroMarcaColunas.ID); + int codigo = cursor.getColumnIndex(HidrometroMarcaColunas.CODIGO); + + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + + if ( cursor.moveToFirst() ) { + + hidrometroMarca.setId(cursor.getInt(id)); + hidrometroMarca.setCodigo(cursor.getString(codigo)); + } + + cursor.close(); + return hidrometroMarca; + } + + public String getCodigo() { + return codigo; + } + + public void setCodigo(String codigo) { + this.codigo = codigo; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "HIDROMETRO_MARCA"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroProtecao.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroProtecao.java new file mode 100644 index 0000000..a8795fa --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/HidrometroProtecao.java @@ -0,0 +1,121 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto HidrometroProtecao + *

+ * + * @author Anderson Cabral + * @since 11/12/2012 + */ +public class HidrometroProtecao extends EntidadeBase{ + + private static final long serialVersionUID = 1L; + private static final int HIPR_ID_INDEX = 1; + private static final int HIPR_DSHIDROMETROPROTECAO_INDEX = 2; + + private String descricao; + + public static final String[] columns = new String[]{ + HidrometroProtecaoColunas.ID, + HidrometroProtecaoColunas.DESCRICAO + }; + + public static final class HidrometroProtecaoColunas implements BaseColumns{ + public static final String ID = "HIPR_ID"; + public static final String DESCRICAO = "HIPR_DSHIDROMETROPROTECAO"; + } + + public final class HidrometroProtecaoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(50) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static HidrometroProtecao inserirDoArquivo(List c) { + + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + + hidrometroProtecao.setId(c.get(HIPR_ID_INDEX)); + hidrometroProtecao.setDescricao(c.get(HIPR_DSHIDROMETROPROTECAO_INDEX)); + + return hidrometroProtecao; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(HidrometroProtecaoColunas.ID, getId()); + values.put(HidrometroProtecaoColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaHidrometroProtecao = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + int codigo = cursor.getColumnIndex(HidrometroProtecaoColunas.ID); + int descricao = cursor.getColumnIndex(HidrometroProtecaoColunas.DESCRICAO); + + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + + hidrometroProtecao.setId(cursor.getInt(codigo)); + hidrometroProtecao.setDescricao(cursor.getString(descricao)); + + listaHidrometroProtecao.add(hidrometroProtecao); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaHidrometroProtecao; + } + + public HidrometroProtecao carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(HidrometroProtecaoColunas.ID); + int descricao = cursor.getColumnIndex(HidrometroProtecaoColunas.DESCRICAO); + + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + + if ( cursor.moveToFirst() ) { + + hidrometroProtecao.setId(cursor.getInt(codigo)); + hidrometroProtecao.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return hidrometroProtecao; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "HIDROMETRO_PROTECAO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelAtlzCadastral.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelAtlzCadastral.java new file mode 100644 index 0000000..fde3d1d --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelAtlzCadastral.java @@ -0,0 +1,1021 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + *

+ * Classe responsavel pelo objeto ImovelAtlzCadastral + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class ImovelAtlzCadastral extends EntidadeBase implements Cloneable { + + private static final long serialVersionUID = 1L; + + private static final int IMAC_ID_INDEX = 1; + private static final int IMOV_ID_INDEX = 2; + private static final int MUNI_ID_INDEX = 3; + private static final int MUNI_NMMUNICIPIO_INDEX = 4; + private static final int LOCA_ID_INDEX = 5; + private static final int LOCA_NMLOCALIDADE_INDEX = 6; + private static final int STCM_CDSETORCOMERCIAL_INDEX = 7; + private static final int QDRA_NNQUADRA_INDEX = 8; + private static final int IMAC_NNLOTE_INDEX = 9; + private static final int IMAC_NNSUBLOTE_INDEX = 10; + private static final int LOGRADOURO_LOGR_ID_INDEX = 11; + private static final int EDRF_ID_INDEX = 12; + private static final int IMAC_NNIMOVEL_INDEX = 13; + private static final int IMAC_DSCOMPLEMENTOENDERECO_INDEX = 14; + private static final int LGBR_ID_INDEX = 15; + private static final int LGCP_ID_INDEX = 16; + private static final int IPER_ID_INDEX = 17; + private static final int IMAC_NNMEDIDORENERGIA_INDEX = 18; + private static final int IMAC_NNMORADOR_INDEX = 19; + private static final int PRUA_ID_INDEX = 20; + private static final int PCAL_ID_INDEX = 21; + private static final int FTAB_ID_INDEX = 22; + private static final int LAST_ID_INDEX = 23; + private static final int LEST_ID_INDEX = 24; + private static final int IMAC_ICTARIFASOCIAL_INDEX = 25; + private static final int IMAC_IDBAIRRO_INDEX = 26; + private static final int IMAC_CDCEP_INDEX = 27; + private static final int STCM_DSSETORCOMERCIAL_INDEX = 28; + + + private static final int AD_IMAC_ID_INDEX = 1; + private static final int AD_IMOV_ID_INDEX = 2; + private static final int AD_MUNI_ID_INDEX = 3; + private static final int AD_LOCA_ID_INDEX = 4; + private static final int AD_STCM_CDSETORCOMERCIAL_INDEX = 5; + private static final int AD_QDRA_NNQUADRA_INDEX = 6; + private static final int AD_IMAC_NNLOTE_INDEX = 7; + private static final int AD_IMAC_NNSUBLOTE_INDEX = 8; + private static final int AD_LOGRADOURO_LOGR_ID_INDEX = 9; + private static final int AD_EDRF_ID_INDEX = 10; + private static final int AD_IMAC_NNIMOVEL_INDEX = 11; + private static final int AD_IMAC_DSCOMPLEMENTOENDERECO_INDEX = 12; + private static final int AD_LGBR_ID_INDEX = 13; + private static final int AD_LGCP_ID_INDEX = 14; + private static final int AD_IPER_ID_INDEX = 15; + private static final int AD_IMAC_NNMEDIDORENERGIA_INDEX = 16; + private static final int AD_IMAC_NNMORADOR_INDEX = 17; + private static final int AD_PRUA_ID_INDEX = 18; + private static final int AD_PCAL_ID_INDEX = 19; + private static final int AD_FTAB_ID_INDEX = 20; + private static final int AD_LAST_ID_INDEX = 21; + private static final int AD_LEST_ID_INDEX = 22; + private static final int AD_IMAC_ICTARIFASOCIAL_INDEX = 23; + private static final int AD_IMAC_DATA_VISITA = 24; + private static final int AD_IMAC_INTEGRACAO_ID = 25; + private static final int AD_IMAC_IDBAIRRO_INDEX = 27; + private static final int AD_IMAC_CDCEP_INDEX = 28; + private static final int AD_IMAC_OBSERVACAO = 29; + private static final int AD_IMAC_LOGIN = 31; + private static final int AD_IMAC_NOMEMUNICIPIO = 32; + + + + + private Logradouro logradouro; + private LigacaoAguaSituacao ligAguaSituacao; + private LigacaoEsgotoSituacao ligEsgotoSituacao; + private FonteAbastecimento fonteAbastecimento; + private PavimentoCalcada pavimentoCalcada; + private EnderecoReferencia enderecoReferencia; + private PavimentoRua pavimentoRua; + private ImovelPerfil imovelPerfil; + private Integer imovelId; + private Integer municipioId; + private String nomeMunicipio; + private Integer localidadeId; + private String nomeLocalidade; + private Integer codigoSetorComercial; + private Integer numeroQuadra; + private Integer numeroLote; + private Integer numeroSubLote; + private String numeroImovel; + private String complementoEndereco; + private Integer logradouroBairroId; + private Integer logradouroCEPId; + private String numeroMedidorEnergia; + private Integer numeroMorador; + private Integer indicadorFinalizado; + private String observacao; + private Integer indicadorTarifaSocial; + private Integer posicao; + private Integer indicadorTransmitido; + private String integracaoID; + private Date dataVisita; + private Integer idBairro; + private Integer codigoCep; + private String codigoUnicoLogradouro; + private String login; + private Integer indicadorImovelNovoComMatricula; + private String descricaoSetorComercial; + + + public static final String[] columns = new String[]{ + ImovelAtlzCadastralColunas.ID, + ImovelAtlzCadastralColunas.LOGRADOURO_ID, + ImovelAtlzCadastralColunas.LIGAGUASITUACAO_ID, + ImovelAtlzCadastralColunas.LIGESGOTOSITUACAO_ID, + ImovelAtlzCadastralColunas.FONTEABASTECIMENTO_ID, + ImovelAtlzCadastralColunas.PAVIMENTOCALCADA_ID, + ImovelAtlzCadastralColunas.ENDERECOREFERENCIA_ID, + ImovelAtlzCadastralColunas.PAVIMENTORUA_ID, + ImovelAtlzCadastralColunas.IMOVEL_ID, + ImovelAtlzCadastralColunas.MUNICIPIO_ID, + ImovelAtlzCadastralColunas.NOMEMUNICIPIO, + ImovelAtlzCadastralColunas.LOCALIDADE_ID, + ImovelAtlzCadastralColunas.NOMELOCALIDADE, + ImovelAtlzCadastralColunas.CODIGOSETORCOMERCIAL, + ImovelAtlzCadastralColunas.NUMQUADRA, + ImovelAtlzCadastralColunas.NUMLOTE, + ImovelAtlzCadastralColunas.NUMSUBLOTE, + ImovelAtlzCadastralColunas.NUMIMOVEL, + ImovelAtlzCadastralColunas.COMPLENDERECO, + ImovelAtlzCadastralColunas.LOGRADOUROBAIRRO_ID, + ImovelAtlzCadastralColunas.LOGRADOUROCEP_ID, + ImovelAtlzCadastralColunas.IMOVELPERFIL_ID, + ImovelAtlzCadastralColunas.NUMMEDIDORENERGIA, + ImovelAtlzCadastralColunas.NUMMORADOR, + ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO, + ImovelAtlzCadastralColunas.OBSERVACAO, + ImovelAtlzCadastralColunas.INDICADOR_TARIFA_SOCIAL, + ImovelAtlzCadastralColunas.POSICAO, + ImovelAtlzCadastralColunas.INDICADOR_TRANSMITIDO, + ImovelAtlzCadastralColunas.INTEGRACAO, + ImovelAtlzCadastralColunas.DATA_VISITA, + ImovelAtlzCadastralColunas.ID_BAIRRO, + ImovelAtlzCadastralColunas.CODIGO_CEP, + ImovelAtlzCadastralColunas.CODIGO_LOGRADOURO, + ImovelAtlzCadastralColunas.LOGIN, + ImovelAtlzCadastralColunas.DESCRICAOSETORCOMERCIAL + }; + + public static final class ImovelAtlzCadastralColunas implements BaseColumns{ + + public static final String ID = "IMAC_ID"; + public static final String LOGRADOURO_ID = "LOGR_ID"; + public static final String LIGAGUASITUACAO_ID = "LAST_ID"; + public static final String LIGESGOTOSITUACAO_ID = "LEST_ID"; + public static final String FONTEABASTECIMENTO_ID = "FTAB_ID"; + public static final String PAVIMENTOCALCADA_ID = "PCAL_ID"; + public static final String ENDERECOREFERENCIA_ID = "EDRF_ID"; + public static final String PAVIMENTORUA_ID = "PRUA_ID"; + public static final String IMOVEL_ID = "IMOV_ID"; + public static final String MUNICIPIO_ID = "MUNI_ID"; + public static final String NOMEMUNICIPIO = "MUNI_NMMUNICIPIO"; + public static final String LOCALIDADE_ID = "LOCA_ID"; + public static final String NOMELOCALIDADE = "LOCA_NMLOCALIDADE"; + public static final String CODIGOSETORCOMERCIAL = "STCM_CDSETORCOMERCIAL"; + public static final String NUMQUADRA = "QDRA_NNQUADRA"; + public static final String NUMLOTE = "IMAC_NNLOTE"; + public static final String NUMSUBLOTE = "IMAC_NNSUBLOTE"; + public static final String NUMIMOVEL = "IMAC_NNIMOVEL"; + public static final String COMPLENDERECO = "IMAC_DSCOMPLEMENTOENDERECO"; + public static final String LOGRADOUROBAIRRO_ID = "LGBR_ID"; + public static final String LOGRADOUROCEP_ID = "LGCP_ID"; + public static final String IMOVELPERFIL_ID = "IPER_ID"; + public static final String NUMMEDIDORENERGIA = "IMAC_NNMEDIDORENERGIA"; + public static final String NUMMORADOR = "IMAC_NNMORADOR"; + public static final String INDICADOR_FINALIZADO = "IMAC_ICFINALIZADO"; + public static final String OBSERVACAO = "IMAC_DSOBSERVACAO"; + public static final String INDICADOR_TARIFA_SOCIAL = "IMAC_ICTARIFASOCIAL"; + public static final String POSICAO = "IMAC_POSICAO"; + public static final String INDICADOR_TRANSMITIDO = "IMAC_ICTRANSMITIDO"; + public static final String INTEGRACAO = "IMAC_INTEGRACAOID"; + public static final String DATA_VISITA = "IMAC_DTVISITA"; + public static final String ID_BAIRRO = "BAIR_ID"; + public static final String CODIGO_CEP = "IMAC_CDCEP"; + public static final String CODIGO_LOGRADOURO = "IMAC_CDUNICOLOG"; + public static final String LOGIN = "IMAC_LOGIN"; + public static final String DESCRICAOSETORCOMERCIAL = "STCM_DSSETORCOMERCIAL"; + + } + + public final class ImovelAtlzCadastralColunasTipo { + + public final String ID = " INTEGER PRIMARY KEY"; + public final String LOGRADOURO_ID = " INTEGER"; + public final String LIGACAOAGUA_ID = " INTEGER NOT NULL"; + public final String LIGACAOESGOTO_ID = " INTEGER NOT NULL"; + public final String FONTEABASTECIMENTO_ID = " INTEGER"; + public final String PAVIMENTOCALCADA_ID = " INTEGER"; + public final String ENDERECOREFERENCIA_ID = " INTEGER"; + public final String PAVIMENTORUA_ID = " INTEGER"; + public final String IMOVEL_ID = " INTEGER"; + public final String MUNICIPIO_ID = " INTEGER"; + public final String NOMEMUNICIPIO = " VARCHAR(30)"; + public final String LOCALIDADE_ID = " INTEGER NOT NULL"; + public final String NOMELOCALIDADE = " VARCHAR(30)"; + public final String CODIGOSETORCOMERCIAL = " INTEGER"; + public final String NUMQUADRA = " INTEGER NOT NULL"; + public final String NUMLOTE = " INTEGER NOT NULL"; + public final String NUMSUBLOTE = " INTEGER NOT NULL"; + public final String NUMIMOVEL = " VARCHAR(5) NOT NULL"; + public final String COMPLENDERECO = " VARCHAR(25)"; + public final String LOGRADOUROBAIRRO_ID = " INTEGER"; + public final String LOGRADOUROCEP_ID = " INTEGER"; + public final String IMOVELPERFIL_ID = " INTEGER NOT NULL"; + public final String NUMMEDIDORENERGIA = " VARCHAR(10)"; + public final String NUMMORADOR = " INTEGER"; + public final String INDICADOR_FINALIZADO = " INTEGER NOT NULL"; + public final String OBSERVACAO = " VARCHAR(400)"; + public final String INDICADOR_TARIFA_SOCIAL = " INTEGER NOT NULL"; + public final String POSICAO = " INTEGER"; + public final String INDICADOR_TRANSMITIDO = " INTEGER NOT NULL"; + public final String INTEGRACAO = " VARCHAR(50)"; + public final String DATA_VISITA = " DATE"; + public final String BAIRRO = " INTEGER"; + public final String CEP = " INTEGER"; + public final String CDLOG = " VARCHAR(40)"; + public final String LOGIN = " VARCHAR(30)"; + public final String DESCRICAOSETORCOMERCIAL = " VARCHAR(50)"; + + private String[] tipos = new String[] {ID, LOGRADOURO_ID, LIGACAOAGUA_ID, LIGACAOESGOTO_ID, + FONTEABASTECIMENTO_ID, PAVIMENTOCALCADA_ID, ENDERECOREFERENCIA_ID, PAVIMENTORUA_ID, + IMOVEL_ID, MUNICIPIO_ID, NOMEMUNICIPIO, LOCALIDADE_ID, NOMELOCALIDADE, CODIGOSETORCOMERCIAL, + NUMQUADRA, NUMLOTE, NUMSUBLOTE, NUMIMOVEL, COMPLENDERECO, LOGRADOUROBAIRRO_ID, LOGRADOUROCEP_ID, + IMOVELPERFIL_ID, NUMMEDIDORENERGIA, NUMMORADOR, INDICADOR_FINALIZADO, OBSERVACAO, INDICADOR_TARIFA_SOCIAL, POSICAO, + INDICADOR_TRANSMITIDO,INTEGRACAO,DATA_VISITA, BAIRRO, CEP, CDLOG, LOGIN, DESCRICAOSETORCOMERCIAL}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ImovelAtlzCadastral inserirDoArquivo(List c, Integer posicao ) { + + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + + imovelAtlzCadastral.setPosicao(posicao); + + imovelAtlzCadastral.setId(c.get(IMAC_ID_INDEX)); + + Logradouro _logradouro = new Logradouro(); + _logradouro.setId(c.get(LOGRADOURO_LOGR_ID_INDEX)); + imovelAtlzCadastral.setLogradouro(_logradouro); + + LigacaoAguaSituacao _ligAguaSituacao = new LigacaoAguaSituacao(); + _ligAguaSituacao.setId(c.get(LAST_ID_INDEX)); + imovelAtlzCadastral.setLigAguaSituacao(_ligAguaSituacao); + + LigacaoEsgotoSituacao _ligEsgotoSituacao = new LigacaoEsgotoSituacao(); + _ligEsgotoSituacao.setId(c.get(LEST_ID_INDEX)); + imovelAtlzCadastral.setLigEsgotoSituacao(_ligEsgotoSituacao); + + FonteAbastecimento _fonteAbastecimento = new FonteAbastecimento(); + _fonteAbastecimento.setId(c.get(FTAB_ID_INDEX)); + imovelAtlzCadastral.setFonteAbastecimento(_fonteAbastecimento); + + PavimentoCalcada _pavimentoCalcada = new PavimentoCalcada(); + _pavimentoCalcada.setId(c.get(PCAL_ID_INDEX)); + imovelAtlzCadastral.setPavimentoCalcada(_pavimentoCalcada); + + EnderecoReferencia _enderecoReferencia = new EnderecoReferencia(); + _enderecoReferencia.setId(Util.verificarNuloInt(c.get(EDRF_ID_INDEX))); + imovelAtlzCadastral.setEnderecoReferencia(_enderecoReferencia); + + PavimentoRua _pavimentoRua = new PavimentoRua(); + _pavimentoRua.setId(Util.verificarNuloInt(c.get(PRUA_ID_INDEX))); + imovelAtlzCadastral.setPavimentoRua(_pavimentoRua); + + ImovelPerfil _imovelPerfil = new ImovelPerfil(); + _imovelPerfil.setId(Util.verificarNuloInt(c.get(IPER_ID_INDEX))); + imovelAtlzCadastral.setImovelPerfil(_imovelPerfil); + + imovelAtlzCadastral.setImovelId(Util.verificarNuloInt(c.get(IMOV_ID_INDEX))); + imovelAtlzCadastral.setMunicipioId(Util.verificarNuloInt(c.get(MUNI_ID_INDEX))); + imovelAtlzCadastral.setNomeMunicipio(c.get(MUNI_NMMUNICIPIO_INDEX)); + imovelAtlzCadastral.setLocalidadeId(Util.verificarNuloInt(c.get(LOCA_ID_INDEX))); + imovelAtlzCadastral.setNomeLocalidade(c.get(LOCA_NMLOCALIDADE_INDEX)); + imovelAtlzCadastral.setCodigoSetorComercial(Util.verificarNuloInt(c.get(STCM_CDSETORCOMERCIAL_INDEX))); + imovelAtlzCadastral.setNumeroQuadra(Util.verificarNuloInt(c.get(QDRA_NNQUADRA_INDEX))); + imovelAtlzCadastral.setNumeroLote(Util.verificarNuloInt(c.get(IMAC_NNLOTE_INDEX))); + imovelAtlzCadastral.setNumeroSubLote(Util.verificarNuloInt(c.get(IMAC_NNSUBLOTE_INDEX))); + + //retira qualquer caracter especial do numero do imovel. + String numeroImovel = c.get(IMAC_NNIMOVEL_INDEX); + if ( numeroImovel != null && !numeroImovel.equals("") ) { + + numeroImovel = numeroImovel.replaceAll("[^a-zA-Z0-9/\\- ]", " "); + imovelAtlzCadastral.setNumeroImovel(numeroImovel); + } + + String complementoEndereco = c.get(IMAC_DSCOMPLEMENTOENDERECO_INDEX); + if ( complementoEndereco != null && !complementoEndereco.equals("") ) { + + complementoEndereco = complementoEndereco.replaceAll("[^a-zA-Z0-9/\\- ]", " "); + imovelAtlzCadastral.setComplementoEndereco(complementoEndereco); + } + + + + imovelAtlzCadastral.setLogradouroBairroId(Util.verificarNuloInt(c.get(LGBR_ID_INDEX))); + imovelAtlzCadastral.setLogradouroCEPId(Util.verificarNuloInt(c.get(LGCP_ID_INDEX))); + imovelAtlzCadastral.setNumeroMedidorEnergia(c.get(IMAC_NNMEDIDORENERGIA_INDEX)); + imovelAtlzCadastral.setNumeroMorador(Util.verificarNuloInt(c.get(IMAC_NNMORADOR_INDEX))); + imovelAtlzCadastral.setIndicadorTarifaSocial(Util.verificarNuloInt(c.get(IMAC_ICTARIFASOCIAL_INDEX))); + imovelAtlzCadastral.setIndicadorFinalizado(ConstantesSistema.PENDENTE); + imovelAtlzCadastral.setIndicadorTransmitido(ConstantesSistema.NAO); + imovelAtlzCadastral.setIdBairro(Util.verificarNuloInt(c.get(IMAC_IDBAIRRO_INDEX))); + imovelAtlzCadastral.setCodigoCep(Util.verificarNuloInt(c.get(IMAC_CDCEP_INDEX))); + imovelAtlzCadastral.setDescricaoSetorComercial(c.get(STCM_DSSETORCOMERCIAL_INDEX)); + + return imovelAtlzCadastral; + } + + public static ImovelAtlzCadastral inserirAtualizarDoArquivoDividido(List c, Integer posicao, ImovelAtlzCadastral imovelAtlzCadastral , Logradouro logradouro) { + + //caso seja imovel novo atualiza a posicao do imovel + if ( posicao != null ) { + imovelAtlzCadastral.setPosicao(posicao); + } else { + //caso o imovel ja seja cadastrado no tablet, informa o id para atualizacao. + imovelAtlzCadastral.setId(c.get(AD_IMAC_ID_INDEX)); + } + + + + if ( logradouro != null ) { + imovelAtlzCadastral.setLogradouro(logradouro); + imovelAtlzCadastral.setCodigoUnicoLogradouro(logradouro.getCodigoUnico()); + } else { + Logradouro _logradouro = new Logradouro(); + _logradouro.setId(c.get(AD_LOGRADOURO_LOGR_ID_INDEX)); + } + + LigacaoAguaSituacao _ligAguaSituacao = new LigacaoAguaSituacao(); + _ligAguaSituacao.setId(c.get(AD_LAST_ID_INDEX)); + imovelAtlzCadastral.setLigAguaSituacao(_ligAguaSituacao); + + LigacaoEsgotoSituacao _ligEsgotoSituacao = new LigacaoEsgotoSituacao(); + _ligEsgotoSituacao.setId(c.get(AD_LEST_ID_INDEX)); + imovelAtlzCadastral.setLigEsgotoSituacao(_ligEsgotoSituacao); + + FonteAbastecimento _fonteAbastecimento = new FonteAbastecimento(); + _fonteAbastecimento.setId(c.get(AD_FTAB_ID_INDEX)); + imovelAtlzCadastral.setFonteAbastecimento(_fonteAbastecimento); + + PavimentoCalcada _pavimentoCalcada = new PavimentoCalcada(); + _pavimentoCalcada.setId(c.get(AD_PCAL_ID_INDEX)); + imovelAtlzCadastral.setPavimentoCalcada(_pavimentoCalcada); + + EnderecoReferencia _enderecoReferencia = new EnderecoReferencia(); + _enderecoReferencia.setId(Util.verificarNuloInt(c.get(AD_EDRF_ID_INDEX))); + imovelAtlzCadastral.setEnderecoReferencia(_enderecoReferencia); + + PavimentoRua _pavimentoRua = new PavimentoRua(); + _pavimentoRua.setId(Util.verificarNuloInt(c.get(AD_PRUA_ID_INDEX))); + imovelAtlzCadastral.setPavimentoRua(_pavimentoRua); + + ImovelPerfil _imovelPerfil = new ImovelPerfil(); + _imovelPerfil.setId(Util.verificarNuloInt(c.get(AD_IPER_ID_INDEX))); + imovelAtlzCadastral.setImovelPerfil(_imovelPerfil); + + imovelAtlzCadastral.setImovelId(Util.verificarNuloInt(c.get(AD_IMOV_ID_INDEX))); + imovelAtlzCadastral.setMunicipioId(Util.verificarNuloInt(c.get(AD_MUNI_ID_INDEX))); + imovelAtlzCadastral.setLocalidadeId(Util.verificarNuloInt(c.get(AD_LOCA_ID_INDEX))); + imovelAtlzCadastral.setCodigoSetorComercial(Util.verificarNuloInt(c.get(AD_STCM_CDSETORCOMERCIAL_INDEX))); + imovelAtlzCadastral.setNumeroQuadra(Util.verificarNuloInt(c.get(AD_QDRA_NNQUADRA_INDEX))); + imovelAtlzCadastral.setNumeroLote(Util.verificarNuloInt(c.get(AD_IMAC_NNLOTE_INDEX))); + imovelAtlzCadastral.setNumeroSubLote(Util.verificarNuloInt(c.get(AD_IMAC_NNSUBLOTE_INDEX))); + imovelAtlzCadastral.setNumeroImovel(c.get(AD_IMAC_NNIMOVEL_INDEX)); + imovelAtlzCadastral.setComplementoEndereco(c.get(AD_IMAC_DSCOMPLEMENTOENDERECO_INDEX)); + imovelAtlzCadastral.setLogradouroBairroId(Util.verificarNuloInt(c.get(AD_LGBR_ID_INDEX))); + imovelAtlzCadastral.setLogradouroCEPId(Util.verificarNuloInt(c.get(AD_LGCP_ID_INDEX))); + imovelAtlzCadastral.setNumeroMedidorEnergia(c.get(AD_IMAC_NNMEDIDORENERGIA_INDEX)); + imovelAtlzCadastral.setNumeroMorador(Util.verificarNuloInt(c.get(AD_IMAC_NNMORADOR_INDEX))); + imovelAtlzCadastral.setIndicadorTarifaSocial(Util.verificarNuloInt(c.get(AD_IMAC_ICTARIFASOCIAL_INDEX))); + imovelAtlzCadastral.setIndicadorFinalizado(ConstantesSistema.SIM); + imovelAtlzCadastral.setIndicadorTransmitido(ConstantesSistema.NAO); + imovelAtlzCadastral.setIdBairro(Util.verificarNuloInt(c.get(AD_IMAC_IDBAIRRO_INDEX))); + imovelAtlzCadastral.setCodigoCep(Util.verificarNuloInt(c.get(AD_IMAC_CDCEP_INDEX))); + imovelAtlzCadastral.setObservacao(c.get(AD_IMAC_OBSERVACAO)); + imovelAtlzCadastral.setDataVisita(Util.converteStringParaDate(c.get(AD_IMAC_DATA_VISITA))); + imovelAtlzCadastral.setIntegracaoID(c.get(AD_IMAC_INTEGRACAO_ID)); + imovelAtlzCadastral.setLogin(c.get(AD_IMAC_LOGIN)); + imovelAtlzCadastral.setNomeMunicipio(c.get(AD_IMAC_NOMEMUNICIPIO)); + + return imovelAtlzCadastral; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ImovelAtlzCadastralColunas.ID, getId()); + values.put(ImovelAtlzCadastralColunas.LOGRADOURO_ID, getLogradouro().getId()); + values.put(ImovelAtlzCadastralColunas.LIGAGUASITUACAO_ID, getLigAguaSituacao().getId()); + values.put(ImovelAtlzCadastralColunas.LIGESGOTOSITUACAO_ID, getLigEsgotoSituacao().getId()); + values.put(ImovelAtlzCadastralColunas.FONTEABASTECIMENTO_ID, getFonteAbastecimento().getId()); + values.put(ImovelAtlzCadastralColunas.PAVIMENTOCALCADA_ID, getPavimentoCalcada().getId()); + + if ( getEnderecoReferencia() != null && getEnderecoReferencia().getId() != null) { + values.put(ImovelAtlzCadastralColunas.ENDERECOREFERENCIA_ID, getEnderecoReferencia().getId()); + } + + values.put(ImovelAtlzCadastralColunas.PAVIMENTORUA_ID, getPavimentoRua().getId()); + values.put(ImovelAtlzCadastralColunas.IMOVEL_ID, getImovelId()); + values.put(ImovelAtlzCadastralColunas.MUNICIPIO_ID, getMunicipioId()); + values.put(ImovelAtlzCadastralColunas.NOMEMUNICIPIO, getNomeMunicipio()); + values.put(ImovelAtlzCadastralColunas.LOCALIDADE_ID, getLocalidadeId()); + values.put(ImovelAtlzCadastralColunas.NOMELOCALIDADE, getNomeLocalidade()); + values.put(ImovelAtlzCadastralColunas.CODIGOSETORCOMERCIAL, getCodigoSetorComercial()); + values.put(ImovelAtlzCadastralColunas.NUMQUADRA, getNumeroQuadra()); + values.put(ImovelAtlzCadastralColunas.NUMLOTE, getNumeroLote()); + values.put(ImovelAtlzCadastralColunas.NUMSUBLOTE, getNumeroSubLote()); + values.put(ImovelAtlzCadastralColunas.NUMIMOVEL, getNumeroImovel()); + + if ( getComplementoEndereco() != null && !getComplementoEndereco().equals("") ) { + values.put(ImovelAtlzCadastralColunas.COMPLENDERECO, getComplementoEndereco()); + }else{ + values.putNull(ImovelAtlzCadastralColunas.COMPLENDERECO); + } + + values.put(ImovelAtlzCadastralColunas.LOGRADOUROBAIRRO_ID, getLogradouroBairroId()); + values.put(ImovelAtlzCadastralColunas.LOGRADOUROCEP_ID, getLogradouroCEPId()); + values.put(ImovelAtlzCadastralColunas.IMOVELPERFIL_ID, getImovelPerfil().getId()); + + if ( getNumeroMedidorEnergia() != null && !getNumeroMedidorEnergia().equals("") ) { + values.put(ImovelAtlzCadastralColunas.NUMMEDIDORENERGIA, getNumeroMedidorEnergia()); + }else{ + values.putNull(ImovelAtlzCadastralColunas.NUMMEDIDORENERGIA); + } + + values.put(ImovelAtlzCadastralColunas.NUMMORADOR, getNumeroMorador()); + values.put(ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO, getIndicadorFinalizado()); + values.put(ImovelAtlzCadastralColunas.OBSERVACAO, getObservacao()); + values.put(ImovelAtlzCadastralColunas.INDICADOR_TARIFA_SOCIAL, getIndicadorTarifaSocial()); + values.put(ImovelAtlzCadastralColunas.POSICAO, getPosicao()); + values.put(ImovelAtlzCadastralColunas.INDICADOR_TRANSMITIDO, getIndicadorTransmitido()); + + values.put(ImovelAtlzCadastralColunas.INTEGRACAO, getIntegracaoID()); + + if(getDataVisita() != null){ + values.put(ImovelAtlzCadastralColunas.DATA_VISITA, Util.dateFormatDB.format(getDataVisita())); + }else{ + values.putNull(ImovelAtlzCadastralColunas.DATA_VISITA); + } + + + values.put(ImovelAtlzCadastralColunas.ID_BAIRRO, getIdBairro()); + values.put(ImovelAtlzCadastralColunas.CODIGO_CEP, getCodigoCep()); + values.put(ImovelAtlzCadastralColunas.CODIGO_LOGRADOURO, getCodigoUnicoLogradouro()); + values.put(ImovelAtlzCadastralColunas.LOGIN, getLogin()); + + values.put(ImovelAtlzCadastralColunas.DESCRICAOSETORCOMERCIAL, getDescricaoSetorComercial()); + + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaImovelAtlzCadastral = new ArrayList(); + + if ( cursor.moveToFirst() ) { + + do{ + int _codigo = cursor.getColumnIndex(ImovelAtlzCadastralColunas.ID); + int _logradouroId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGRADOURO_ID); + int _ligAguaSituacaoId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LIGAGUASITUACAO_ID); + int _ligEsgotoSituacaoId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LIGESGOTOSITUACAO_ID); + int _fonteAbastecimentoId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.FONTEABASTECIMENTO_ID); + int _pavimentoCalcadaId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.PAVIMENTOCALCADA_ID); + int _enderecoReferenciaId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.ENDERECOREFERENCIA_ID); + int _pavimentoRuaId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.PAVIMENTORUA_ID); + int _imovelId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.IMOVEL_ID); + int _municipioId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.MUNICIPIO_ID); + int _nomeMunicipio = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NOMEMUNICIPIO); + int _localidadeId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOCALIDADE_ID); + int _nomeLocalidade = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NOMELOCALIDADE); + int _codigoSetorComercial = cursor.getColumnIndex(ImovelAtlzCadastralColunas.CODIGOSETORCOMERCIAL); + int _numeroQuadra = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMQUADRA); + int _numeroLote = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMLOTE); + int _numeroSubLote = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMSUBLOTE); + int _numeroImovel = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMIMOVEL); + int _complementoEndereco = cursor.getColumnIndex(ImovelAtlzCadastralColunas.COMPLENDERECO); + int _logradouroBairroId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGRADOUROBAIRRO_ID); + int _logradouroCEPId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGRADOUROCEP_ID); + int _imovelPerfilId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.IMOVELPERFIL_ID); + int _numeroMedidorEnergia = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMMEDIDORENERGIA); + int _numeroMorador = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMMORADOR); + int _observacao = cursor.getColumnIndex(ImovelAtlzCadastralColunas.OBSERVACAO); + int _icTarifaSocial = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INDICADOR_TARIFA_SOCIAL); + int _posicao = cursor.getColumnIndex(ImovelAtlzCadastralColunas.POSICAO); + int _indicadorFinalizado = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO); + int _indicadorTransmitido = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INDICADOR_TRANSMITIDO); + int _integracao = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INTEGRACAO); + int _dataVisita = cursor.getColumnIndex(ImovelAtlzCadastralColunas.DATA_VISITA); + int _bairro = cursor.getColumnIndex(ImovelAtlzCadastralColunas.ID_BAIRRO); + int cep = cursor.getColumnIndex(ImovelAtlzCadastralColunas.CODIGO_CEP); + int cdLogradouroUnico = cursor.getColumnIndex(ImovelAtlzCadastralColunas.CODIGO_LOGRADOURO); + int login = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGIN); + int descricaoSetorComercial = cursor.getColumnIndex(ImovelAtlzCadastralColunas.DESCRICAOSETORCOMERCIAL); + + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + + imovelAtlzCadastral.setId(cursor.getInt(_codigo)); + + Logradouro _logradouro = new Logradouro(); + _logradouro.setId(cursor.getInt(_logradouroId)); + imovelAtlzCadastral.setLogradouro(_logradouro); + + LigacaoAguaSituacao _ligAguaSituacao = new LigacaoAguaSituacao(); + _ligAguaSituacao.setId(cursor.getInt(_ligAguaSituacaoId)); + imovelAtlzCadastral.setLigAguaSituacao(_ligAguaSituacao); + + LigacaoEsgotoSituacao _ligEsgotoSituacao = new LigacaoEsgotoSituacao(); + _ligEsgotoSituacao.setId(cursor.getInt(_ligEsgotoSituacaoId)); + imovelAtlzCadastral.setLigEsgotoSituacao(_ligEsgotoSituacao); + + FonteAbastecimento _fonteAbastecimento = new FonteAbastecimento(); + _fonteAbastecimento.setId(cursor.getInt(_fonteAbastecimentoId)); + imovelAtlzCadastral.setFonteAbastecimento(_fonteAbastecimento); + + PavimentoCalcada _pavimentoCalcada = new PavimentoCalcada(); + _pavimentoCalcada.setId(cursor.getInt(_pavimentoCalcadaId)); + imovelAtlzCadastral.setPavimentoCalcada(_pavimentoCalcada); + + EnderecoReferencia _enderecoReferencia = new EnderecoReferencia(); + _enderecoReferencia.setId(cursor.getInt(_enderecoReferenciaId)); + imovelAtlzCadastral.setEnderecoReferencia(_enderecoReferencia); + + PavimentoRua _pavimentoRua = new PavimentoRua(); + _pavimentoRua.setId(cursor.getInt(_pavimentoRuaId)); + imovelAtlzCadastral.setPavimentoRua(_pavimentoRua); + + ImovelPerfil _imovelPerfil = new ImovelPerfil(); + _imovelPerfil.setId(cursor.getInt(_imovelPerfilId)); + imovelAtlzCadastral.setImovelPerfil(_imovelPerfil); + + imovelAtlzCadastral.setImovelId(cursor.getInt(_imovelId)); + imovelAtlzCadastral.setMunicipioId(cursor.getInt(_municipioId)); + imovelAtlzCadastral.setNomeMunicipio(cursor.getString(_nomeMunicipio)); + imovelAtlzCadastral.setLocalidadeId(cursor.getInt(_localidadeId)); + imovelAtlzCadastral.setNomeLocalidade(cursor.getString(_nomeLocalidade)); + imovelAtlzCadastral.setCodigoSetorComercial(cursor.getInt(_codigoSetorComercial)); + imovelAtlzCadastral.setNumeroQuadra(cursor.getInt(_numeroQuadra)); + imovelAtlzCadastral.setNumeroLote(cursor.getInt(_numeroLote)); + imovelAtlzCadastral.setNumeroSubLote(cursor.getInt(_numeroSubLote)); + imovelAtlzCadastral.setNumeroImovel(cursor.getString(_numeroImovel)); + imovelAtlzCadastral.setComplementoEndereco(cursor.getString(_complementoEndereco)); + imovelAtlzCadastral.setLogradouroBairroId(cursor.getInt(_logradouroBairroId)); + imovelAtlzCadastral.setLogradouroCEPId(cursor.getInt(_logradouroCEPId)); + imovelAtlzCadastral.setNumeroMedidorEnergia(cursor.getString(_numeroMedidorEnergia)); + imovelAtlzCadastral.setNumeroMorador(cursor.getInt(_numeroMorador)); + imovelAtlzCadastral.setObservacao(cursor.getString(_observacao)); + imovelAtlzCadastral.setIndicadorTarifaSocial(cursor.getInt(_icTarifaSocial)); + imovelAtlzCadastral.setPosicao(cursor.getInt(_posicao)); + imovelAtlzCadastral.setIndicadorFinalizado(cursor.getInt(_indicadorFinalizado)); + imovelAtlzCadastral.setIndicadorTransmitido(cursor.getInt(_indicadorTransmitido)); + imovelAtlzCadastral.setIntegracaoID(cursor.getString(_integracao)); + imovelAtlzCadastral.setIdBairro(cursor.getInt(_bairro)); + imovelAtlzCadastral.setCodigoCep(cursor.getInt(cep)); + imovelAtlzCadastral.setCodigoUnicoLogradouro(cursor.getString(cdLogradouroUnico)); + imovelAtlzCadastral.setLogin(cursor.getString(login)); + + if(cursor.getString(_dataVisita) != null && !cursor.getString(_dataVisita).equals("")){ + imovelAtlzCadastral.setDataVisita(Util.convertStringToDate(cursor.getString(_dataVisita))); + } + + imovelAtlzCadastral.setDescricaoSetorComercial(cursor.getString(descricaoSetorComercial)); + + listaImovelAtlzCadastral.add(imovelAtlzCadastral); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaImovelAtlzCadastral; + } + + public ImovelAtlzCadastral carregarEntidade(Cursor cursor) { + + int _codigo = cursor.getColumnIndex(ImovelAtlzCadastralColunas.ID); + int _logradouroId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGRADOURO_ID); + int _ligAguaSituacaoId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LIGAGUASITUACAO_ID); + int _ligEsgotoSituacaoId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LIGESGOTOSITUACAO_ID); + int _fonteAbastecimentoId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.FONTEABASTECIMENTO_ID); + int _pavimentoCalcadaId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.PAVIMENTOCALCADA_ID); + int _enderecoReferenciaId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.ENDERECOREFERENCIA_ID); + int _pavimentoRuaId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.PAVIMENTORUA_ID); + int _imovelId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.IMOVEL_ID); + int _municipioId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.MUNICIPIO_ID); + int _nomeMunicipio = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NOMEMUNICIPIO); + int _localidadeId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOCALIDADE_ID); + int _nomeLocalidade = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NOMELOCALIDADE); + int _codigoSetorComercial = cursor.getColumnIndex(ImovelAtlzCadastralColunas.CODIGOSETORCOMERCIAL); + int _numeroQuadra = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMQUADRA); + int _numeroLote = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMLOTE); + int _numeroSubLote = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMSUBLOTE); + int _numeroImovel = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMIMOVEL); + int _complementoEndereco = cursor.getColumnIndex(ImovelAtlzCadastralColunas.COMPLENDERECO); + int _logradouroBairroId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGRADOUROBAIRRO_ID); + int _logradouroCEPId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGRADOUROCEP_ID); + int _imovelPerfilId = cursor.getColumnIndex(ImovelAtlzCadastralColunas.IMOVELPERFIL_ID); + int _numeroMedidorEnergia = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMMEDIDORENERGIA); + int _numeroMorador = cursor.getColumnIndex(ImovelAtlzCadastralColunas.NUMMORADOR); + int _indicadorFinalizado = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO); + int _observacao = cursor.getColumnIndex(ImovelAtlzCadastralColunas.OBSERVACAO); + int _icTarifaSocial = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INDICADOR_TARIFA_SOCIAL); + int _posicao = cursor.getColumnIndex(ImovelAtlzCadastralColunas.POSICAO); + int _indicadorTransmitido = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INDICADOR_TRANSMITIDO); + int _integracao = cursor.getColumnIndex(ImovelAtlzCadastralColunas.INTEGRACAO); + int _dataVisita = cursor.getColumnIndex(ImovelAtlzCadastralColunas.DATA_VISITA); + int _bairro = cursor.getColumnIndex(ImovelAtlzCadastralColunas.ID_BAIRRO); + int cep = cursor.getColumnIndex(ImovelAtlzCadastralColunas.CODIGO_CEP); + int cdLogradouroUnico = cursor.getColumnIndex(ImovelAtlzCadastralColunas.CODIGO_LOGRADOURO); + int login = cursor.getColumnIndex(ImovelAtlzCadastralColunas.LOGIN); + int descricaoSetorComercial = cursor.getColumnIndex(ImovelAtlzCadastralColunas.DESCRICAOSETORCOMERCIAL); + + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + + if ( cursor.moveToFirst() ) { + + imovelAtlzCadastral.setId(cursor.getInt(_codigo)); + + Logradouro _logradouro = new Logradouro(); + _logradouro.setId(cursor.getInt(_logradouroId)); + imovelAtlzCadastral.setLogradouro(_logradouro); + + LigacaoAguaSituacao _ligAguaSituacao = new LigacaoAguaSituacao(); + _ligAguaSituacao.setId(cursor.getInt(_ligAguaSituacaoId)); + imovelAtlzCadastral.setLigAguaSituacao(_ligAguaSituacao); + + LigacaoEsgotoSituacao _ligEsgotoSituacao = new LigacaoEsgotoSituacao(); + _ligEsgotoSituacao.setId(cursor.getInt(_ligEsgotoSituacaoId)); + imovelAtlzCadastral.setLigEsgotoSituacao(_ligEsgotoSituacao); + + FonteAbastecimento _fonteAbastecimento = new FonteAbastecimento(); + _fonteAbastecimento.setId(cursor.getInt(_fonteAbastecimentoId)); + imovelAtlzCadastral.setFonteAbastecimento(_fonteAbastecimento); + + PavimentoCalcada _pavimentoCalcada = new PavimentoCalcada(); + _pavimentoCalcada.setId(cursor.getInt(_pavimentoCalcadaId)); + imovelAtlzCadastral.setPavimentoCalcada(_pavimentoCalcada); + + EnderecoReferencia _enderecoReferencia = new EnderecoReferencia(); + _enderecoReferencia.setId(cursor.getInt(_enderecoReferenciaId)); + imovelAtlzCadastral.setEnderecoReferencia(_enderecoReferencia); + + PavimentoRua _pavimentoRua = new PavimentoRua(); + _pavimentoRua.setId(cursor.getInt(_pavimentoRuaId)); + imovelAtlzCadastral.setPavimentoRua(_pavimentoRua); + + ImovelPerfil _imovelPerfil = new ImovelPerfil(); + _imovelPerfil.setId(cursor.getInt(_imovelPerfilId)); + imovelAtlzCadastral.setImovelPerfil(_imovelPerfil); + + imovelAtlzCadastral.setImovelId(cursor.getInt(_imovelId)); + imovelAtlzCadastral.setMunicipioId(cursor.getInt(_municipioId)); + imovelAtlzCadastral.setNomeMunicipio(cursor.getString(_nomeMunicipio)); + imovelAtlzCadastral.setLocalidadeId(cursor.getInt(_localidadeId)); + imovelAtlzCadastral.setNomeLocalidade(cursor.getString(_nomeLocalidade)); + imovelAtlzCadastral.setCodigoSetorComercial(cursor.getInt(_codigoSetorComercial)); + imovelAtlzCadastral.setNumeroQuadra(cursor.getInt(_numeroQuadra)); + imovelAtlzCadastral.setNumeroLote(cursor.getInt(_numeroLote)); + imovelAtlzCadastral.setNumeroSubLote(cursor.getInt(_numeroSubLote)); + imovelAtlzCadastral.setNumeroImovel(cursor.getString(_numeroImovel)); + imovelAtlzCadastral.setComplementoEndereco(cursor.getString(_complementoEndereco)); + imovelAtlzCadastral.setLogradouroBairroId(cursor.getInt(_logradouroBairroId)); + imovelAtlzCadastral.setLogradouroCEPId(cursor.getInt(_logradouroCEPId)); + imovelAtlzCadastral.setNumeroMedidorEnergia(cursor.getString(_numeroMedidorEnergia)); + imovelAtlzCadastral.setNumeroMorador(cursor.getInt(_numeroMorador)); + imovelAtlzCadastral.setIndicadorFinalizado(cursor.getInt(_indicadorFinalizado)); + imovelAtlzCadastral.setObservacao(cursor.getString(_observacao)); + imovelAtlzCadastral.setIndicadorTarifaSocial(cursor.getInt(_icTarifaSocial)); + imovelAtlzCadastral.setPosicao(cursor.getInt(_posicao)); + imovelAtlzCadastral.setIndicadorTransmitido(cursor.getInt(_indicadorTransmitido)); + imovelAtlzCadastral.setIntegracaoID(cursor.getString(_integracao)); + imovelAtlzCadastral.setIdBairro(cursor.getInt(_bairro)); + imovelAtlzCadastral.setCodigoCep(cursor.getInt(cep)); + imovelAtlzCadastral.setCodigoUnicoLogradouro(cursor.getString(cdLogradouroUnico)); + imovelAtlzCadastral.setLogin(cursor.getString(login)); + + if ( cursor.getString(_dataVisita) != null && !cursor.getString(_dataVisita).equals("") ) { + imovelAtlzCadastral.setDataVisita(Util.convertStringToDate(cursor.getString(_dataVisita))); + } + + imovelAtlzCadastral.setDescricaoSetorComercial(cursor.getString(descricaoSetorComercial)); + } + + cursor.close(); + return imovelAtlzCadastral; + } + + public Logradouro getLogradouro() { + return logradouro; + } + + public void setLogradouro(Logradouro logradouro) { + this.logradouro = logradouro; + } + + public LigacaoAguaSituacao getLigAguaSituacao() { + return ligAguaSituacao; + } + + public void setLigAguaSituacao(LigacaoAguaSituacao ligAguaSituacao) { + this.ligAguaSituacao = ligAguaSituacao; + } + + public LigacaoEsgotoSituacao getLigEsgotoSituacao() { + return ligEsgotoSituacao; + } + + public void setLigEsgotoSituacao(LigacaoEsgotoSituacao ligEsgotoSituacao) { + this.ligEsgotoSituacao = ligEsgotoSituacao; + } + + public FonteAbastecimento getFonteAbastecimento() { + return fonteAbastecimento; + } + + public void setFonteAbastecimento(FonteAbastecimento fonteAbastecimento) { + this.fonteAbastecimento = fonteAbastecimento; + } + + public PavimentoCalcada getPavimentoCalcada() { + return pavimentoCalcada; + } + + public void setPavimentoCalcada(PavimentoCalcada pavimentoCalcada) { + this.pavimentoCalcada = pavimentoCalcada; + } + + public EnderecoReferencia getEnderecoReferencia() { + return enderecoReferencia; + } + + public void setEnderecoReferencia(EnderecoReferencia enderecoReferencia) { + this.enderecoReferencia = enderecoReferencia; + } + + public PavimentoRua getPavimentoRua() { + return pavimentoRua; + } + + public void setPavimentoRua(PavimentoRua pavimentoRua) { + this.pavimentoRua = pavimentoRua; + } + + public Integer getImovelId() { + return imovelId; + } + + public void setImovelId(Integer imovelId) { + this.imovelId = imovelId; + } + + public Integer getMunicipioId() { + return municipioId; + } + + public void setMunicipioId(Integer municipioId) { + this.municipioId = municipioId; + } + + public String getNomeMunicipio() { + return nomeMunicipio; + } + + public void setNomeMunicipio(String nomeMunicipio) { + this.nomeMunicipio = nomeMunicipio; + } + + public Integer getLocalidadeId() { + return localidadeId; + } + + public void setLocalidadeId(Integer localidadeId) { + this.localidadeId = localidadeId; + } + + public String getNomeLocalidade() { + return nomeLocalidade; + } + + public void setNomeLocalidade(String nomeLocalidade) { + this.nomeLocalidade = nomeLocalidade; + } + + public Integer getCodigoSetorComercial() { + return codigoSetorComercial; + } + + public void setCodigoSetorComercial(Integer codigoSetorComercial) { + this.codigoSetorComercial = codigoSetorComercial; + } + + public Integer getNumeroQuadra() { + return numeroQuadra; + } + + public void setNumeroQuadra(Integer numeroQuadra) { + this.numeroQuadra = numeroQuadra; + } + + public Integer getNumeroLote() { + return numeroLote; + } + + public void setNumeroLote(Integer numeroLote) { + this.numeroLote = numeroLote; + } + + public Integer getNumeroSubLote() { + return numeroSubLote; + } + + public void setNumeroSubLote(Integer numeroSubLote) { + this.numeroSubLote = numeroSubLote; + } + + public String getNumeroImovel() { + return numeroImovel; + } + + public void setNumeroImovel(String numeroImovel) { + this.numeroImovel = numeroImovel; + } + + public String getComplementoEndereco() { + return complementoEndereco; + } + + public void setComplementoEndereco(String complementoEndereco) { + this.complementoEndereco = complementoEndereco; + } + + public Integer getLogradouroBairroId() { + return logradouroBairroId; + } + + public void setLogradouroBairroId(Integer logradouroBairroId) { + this.logradouroBairroId = logradouroBairroId; + } + + public Integer getLogradouroCEPId() { + return logradouroCEPId; + } + + public void setLogradouroCEPId(Integer logradouroCEPId) { + this.logradouroCEPId = logradouroCEPId; + } + + public ImovelPerfil getImovelPerfil() { + return imovelPerfil; + } + + public void setImovelPerfil(ImovelPerfil imovelPerfil) { + this.imovelPerfil = imovelPerfil; + } + + public String getNumeroMedidorEnergia() { + return numeroMedidorEnergia; + } + + public void setNumeroMedidorEnergia(String numeroMedidorEnergia) { + this.numeroMedidorEnergia = numeroMedidorEnergia; + } + + public Integer getNumeroMorador() { + return numeroMorador; + } + + public void setNumeroMorador(Integer numeroMorador) { + this.numeroMorador = numeroMorador; + } + + public Integer getIndicadorFinalizado() { + return indicadorFinalizado; + } + + public void setIndicadorFinalizado(Integer indicadorFinalizado) { + this.indicadorFinalizado = indicadorFinalizado; + } + + public String getObservacao() { + return observacao; + } + + public void setObservacao(String observacao) { + this.observacao = observacao; + } + + public Integer getIndicadorTarifaSocial() { + return indicadorTarifaSocial; + } + + public void setIndicadorTarifaSocial(Integer indicadorTarifaSocial) { + this.indicadorTarifaSocial = indicadorTarifaSocial; + } + + public Integer getPosicao() { + return posicao; + } + + public void setPosicao(Integer posicao) { + this.posicao = posicao; + } + + public Integer getIndicadorTransmitido() { + return indicadorTransmitido; + } + + public void setIndicadorTransmitido(Integer indicadorTransmitido) { + this.indicadorTransmitido = indicadorTransmitido; + } + + public String getIntegracaoID() { + return integracaoID; + } + + public void setIntegracaoID(String integracaoID) { + this.integracaoID = integracaoID; + } + + public Date getDataVisita() { + return dataVisita; + } + + public void setDataVisita(Date dataVisita) { + this.dataVisita = dataVisita; + } + + public Integer getIdBairro() { + return idBairro; + } + + public void setIdBairro(Integer idBairro) { + this.idBairro = idBairro; + } + + public Integer getCodigoCep() { + return codigoCep; + } + + public void setCodigoCep(Integer codigoCep) { + this.codigoCep = codigoCep; + } + + public String getCodigoUnicoLogradouro() { + return codigoUnicoLogradouro; + } + + public void setCodigoUnicoLogradouro(String codigoUnicoLogradouro) { + this.codigoUnicoLogradouro = codigoUnicoLogradouro; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "IMOVEL_ATLZ_CADASTRAL"; + } + + public String getLogin() { + return login; + } + + public void setLogin(String login) { + this.login = login; + } + + public Integer getIndicadorImovelNovoComMatricula() { + return indicadorImovelNovoComMatricula; + } + + public void setIndicadorImovelNovoComMatricula( + Integer indicadorImovelNovoComMatricula) { + this.indicadorImovelNovoComMatricula = indicadorImovelNovoComMatricula; + } + + public String getDescricaoSetorComercial() { + return descricaoSetorComercial; + } + + public void setDescricaoSetorComercial(String descricaoSetorComercial) { + this.descricaoSetorComercial = descricaoSetorComercial; + } + + public ImovelAtlzCadastral clone() throws CloneNotSupportedException { + return (ImovelAtlzCadastral) super.clone(); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelOcorrencia.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelOcorrencia.java new file mode 100644 index 0000000..628c0d7 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelOcorrencia.java @@ -0,0 +1,202 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto ImovelOcorrencia + *

+ * + * @author Anderson Cabral + * @since 08/01/2013 + */ +public class ImovelOcorrencia extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + //arquivo dividido + private static final int AD_COCR_ID_INDEX = 1; + private static final int AD_IMAC_ID_INDEX = 2; + + private ImovelAtlzCadastral imovelAtlzCadastral; + private CadastroOcorrencia cadastroOcorrencia; + + public static final String[] columns = new String[]{ + ImovelOcorrenciaColunas.ID, + ImovelOcorrenciaColunas.IMOVELATLZCAD_ID, + ImovelOcorrenciaColunas.CADOCORRENCIA_ID + }; + + public static final class ImovelOcorrenciaColunas implements BaseColumns{ + public static final String ID = "IMOC_ID"; + public static final String IMOVELATLZCAD_ID = "IMAC_ID"; + public static final String CADOCORRENCIA_ID = "COCR_ID"; + } + + public final class ImovelOcorrenciaColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String IMOVELATLZCAD_ID = " INTEGER NOT NULL"; + public final String CADOCORRENCIA_ID = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, IMOVELATLZCAD_ID, CADOCORRENCIA_ID}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ImovelOcorrencia inserirAtualizarDoArquivoDividido(List c, ImovelAtlzCadastral imovelAtlzCadastral) { + + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + cadastroOcorrencia.setId(c.get(AD_COCR_ID_INDEX)); + imovelOcorrencia.setCadastroOcorrencia(cadastroOcorrencia); + +// ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); +// _imovelAtlzCadastral.setId(idImovelAtlzCad.intValue()); + imovelOcorrencia.setImovelAtlzCadastral(imovelAtlzCadastral); + + return imovelOcorrencia; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ImovelOcorrenciaColunas.ID, getId()); + values.put(ImovelOcorrenciaColunas.IMOVELATLZCAD_ID, getImovelAtlzCadastral().getId()); + values.put(ImovelOcorrenciaColunas.CADOCORRENCIA_ID, getCadastroOcorrencia().getId()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaImovelOcorrencia = new ArrayList(); + + if ( cursor.moveToFirst() ) { + do{ + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + + int id = cursor.getColumnIndex(ImovelOcorrenciaColunas.ID); + int imovelAtlzCadId = cursor.getColumnIndex(ImovelOcorrenciaColunas.IMOVELATLZCAD_ID); + int cadastroOcorrenciaId = cursor.getColumnIndex(ImovelOcorrenciaColunas.CADOCORRENCIA_ID); + + imovelOcorrencia.setId(cursor.getInt(id)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(imovelAtlzCadId)); + imovelOcorrencia.setImovelAtlzCadastral(_imovelAtlzCadastral); + + CadastroOcorrencia _cadastroOcorrencia = new CadastroOcorrencia(); + _cadastroOcorrencia.setId(cursor.getInt(cadastroOcorrenciaId)); + imovelOcorrencia.setCadastroOcorrencia(_cadastroOcorrencia); + + listaImovelOcorrencia.add(imovelOcorrencia); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaImovelOcorrencia; + } + + public ImovelOcorrencia carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(ImovelOcorrenciaColunas.ID); + int imovelAtlzCadId = cursor.getColumnIndex(ImovelOcorrenciaColunas.IMOVELATLZCAD_ID); + int cadastroOcorrenciaId = cursor.getColumnIndex(ImovelOcorrenciaColunas.CADOCORRENCIA_ID); + + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + + if ( cursor.moveToFirst() ) { + + imovelOcorrencia.setId(cursor.getInt(id)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(imovelAtlzCadId)); + imovelOcorrencia.setImovelAtlzCadastral(_imovelAtlzCadastral); + + CadastroOcorrencia _cadastroOcorrencia = new CadastroOcorrencia(); + _cadastroOcorrencia.setId(cursor.getInt(cadastroOcorrenciaId)); + imovelOcorrencia.setCadastroOcorrencia(_cadastroOcorrencia); + } + + cursor.close(); + return imovelOcorrencia; + } + + public ImovelAtlzCadastral getImovelAtlzCadastral() { + return imovelAtlzCadastral; + } + + public void setImovelAtlzCadastral(ImovelAtlzCadastral imovelAtlzCadastral) { + this.imovelAtlzCadastral = imovelAtlzCadastral; + } + + public CadastroOcorrencia getCadastroOcorrencia() { + return cadastroOcorrencia; + } + + public void setCadastroOcorrencia(CadastroOcorrencia cadastroOcorrencia) { + this.cadastroOcorrencia = cadastroOcorrencia; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "IMOVEL_OCORRENCIA"; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime + * result + + ((cadastroOcorrencia == null) ? 0 : cadastroOcorrencia + .hashCode()); + result = prime + * result + + ((imovelAtlzCadastral == null) ? 0 : imovelAtlzCadastral + .hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + ImovelOcorrencia other = (ImovelOcorrencia) obj; + if (cadastroOcorrencia == null) { + if (other.cadastroOcorrencia != null) + return false; + } else if (!cadastroOcorrencia.getId().equals(other.cadastroOcorrencia.getId())) + return false; + if (imovelAtlzCadastral == null) { + if (other.imovelAtlzCadastral != null) + return false; + }else if (imovelAtlzCadastral.getId() == null) { + if (other.imovelAtlzCadastral.getId() != null) + return false; + } else if (!imovelAtlzCadastral.getId().equals(other.imovelAtlzCadastral.getId())) + return false; + return true; + } + + + + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelPerfil.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelPerfil.java new file mode 100644 index 0000000..190a8d3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelPerfil.java @@ -0,0 +1,124 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto ImovelPerfil + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class ImovelPerfil extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + public static final long NORMAL = 5; + + private static final int IPER_ID_INDEX = 1; + private static final int IPER_DSIMOVELPERFIL_INDEX = 2; + + private String descricao; + + public static final String[] columns = new String[]{ + ImovelPerfilColunas.ID, + ImovelPerfilColunas.DESCRICAO + }; + + public static final class ImovelPerfilColunas implements BaseColumns{ + public static final String ID = "IPER_ID"; + public static final String DESCRICAO = "IPER_DSIMOVELPERFIL"; + } + + public final class ImovelPerfilColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(30) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ImovelPerfil inserirDoArquivo(List c) { + + ImovelPerfil imovelPerfil = new ImovelPerfil(); + + imovelPerfil.setId(c.get(IPER_ID_INDEX)); + imovelPerfil.setDescricao(c.get(IPER_DSIMOVELPERFIL_INDEX)); + + return imovelPerfil; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ImovelPerfilColunas.ID, getId()); + values.put(ImovelPerfilColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaImovelPerfil = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + int codigo = cursor.getColumnIndex(ImovelPerfilColunas.ID); + int descricao = cursor.getColumnIndex(ImovelPerfilColunas.DESCRICAO); + + ImovelPerfil imovelPerfil = new ImovelPerfil(); + + imovelPerfil.setId(cursor.getInt(codigo)); + imovelPerfil.setDescricao(cursor.getString(descricao)); + + listaImovelPerfil.add(imovelPerfil); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaImovelPerfil; + } + + public ImovelPerfil carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(ImovelPerfilColunas.ID); + int descricao = cursor.getColumnIndex(ImovelPerfilColunas.DESCRICAO); + + ImovelPerfil imovelPerfil = new ImovelPerfil(); + + if ( cursor.moveToFirst() ) { + + imovelPerfil.setId(cursor.getInt(codigo)); + imovelPerfil.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return imovelPerfil; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "IMOVEL_PERFIL"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelSubCategAtlzCad.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelSubCategAtlzCad.java new file mode 100644 index 0000000..5a5837b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/ImovelSubCategAtlzCad.java @@ -0,0 +1,285 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto ImovelSubCategAtlzCad + *

+ * + * @author Anderson Cabral + * @since 10/12/2012 + */ +public class ImovelSubCategAtlzCad extends EntidadeBase { + + private static final long serialVersionUID = 1L; + +// private static final int ISAC_ID_INDEX = 1; + private static final int IMAC_ID_INDEX = 1; + private static final int IMOV_ID_INDEX = 2; + private static final int CATG_ID_INDEX = 3; + private static final int SCAT_ID_INDEX = 4; + private static final int ISAC_QTECONOMIA_INDEX = 5; + + private static final int AD_IMAC_ID_INDEX = 1; + private static final int AD_CATG_ID_INDEX = 2; + private static final int AD_SCAT_ID_INDEX = 3; + private static final int AD_ISAC_QTECONOMIA_INDEX = 4; + + private ImovelAtlzCadastral imovelAtlzCadastral; + private Categoria categoria; + private SubCategoria subCategoria; + private Integer imovelId; + private Integer quantidadeEconomia; + + public static final String[] columns = new String[]{ + ImovelSubCategAtlzCadColunas.ID, + ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID, + ImovelSubCategAtlzCadColunas.CATEGORIA_ID, + ImovelSubCategAtlzCadColunas.SUBCATEGORIA_ID, + ImovelSubCategAtlzCadColunas.IMOVEL_ID, + ImovelSubCategAtlzCadColunas.QTECONOMIA + }; + + public static final class ImovelSubCategAtlzCadColunas implements BaseColumns{ + public static final String ID = "ISAC_ID"; + public static final String IMOVELATLZCAD_ID = "IMAC_ID"; + public static final String CATEGORIA_ID = "CATG_ID"; + public static final String SUBCATEGORIA_ID = "SCAT_ID"; + public static final String IMOVEL_ID = "IMOV_ID"; + public static final String QTECONOMIA = "ISAC_QTECONOMIA"; + } + + public final class ImovelSubCategAtlzCadColunasTipo { + public final String ID = " INTEGER PRIMARY KEY AUTOINCREMENT"; + public final String IMOVELATLZCAD_ID = " INTEGER NOT NULL"; + public final String CATEGORIA_ID = " INTEGER"; + public final String SUBCATEGORIA_ID = " INTEGER NOT NULL"; + public final String IMOVEL_ID = " INTEGER"; + public final String QTECONOMIA = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, IMOVELATLZCAD_ID, CATEGORIA_ID, + SUBCATEGORIA_ID, IMOVEL_ID, QTECONOMIA}; + + public String[] getTipos(){ + return tipos; + } + } + + public static ImovelSubCategAtlzCad inserirDoArquivo(List c) { + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); +// imovelSubCategAtlzCad.setId(c.get(ISAC_ID_INDEX)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(c.get(IMAC_ID_INDEX)); + imovelSubCategAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + Categoria _categoria = new Categoria(); + _categoria.setId(c.get(CATG_ID_INDEX)); + imovelSubCategAtlzCad.setCategoria(_categoria); + + SubCategoria _subCategoria = new SubCategoria(); + _subCategoria.setId(c.get(SCAT_ID_INDEX)); + imovelSubCategAtlzCad.setSubCategoria(_subCategoria); + + imovelSubCategAtlzCad.setImovelId(Integer.valueOf(c.get(IMOV_ID_INDEX))); + + imovelSubCategAtlzCad.setQuantidadeEconomia(Integer.valueOf(c.get(ISAC_QTECONOMIA_INDEX))); + + return imovelSubCategAtlzCad; + } + + public static ImovelSubCategAtlzCad inserirAtualizarDoArquivoDividido(List c, Long idImovelAtlzCad) { + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(idImovelAtlzCad.intValue()); + imovelSubCategAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + Categoria _categoria = new Categoria(); + _categoria.setId(c.get(AD_CATG_ID_INDEX)); + imovelSubCategAtlzCad.setCategoria(_categoria); + + SubCategoria _subCategoria = new SubCategoria(); + _subCategoria.setId(c.get(AD_SCAT_ID_INDEX)); + imovelSubCategAtlzCad.setSubCategoria(_subCategoria); + + imovelSubCategAtlzCad.setQuantidadeEconomia(Integer.valueOf(c.get(AD_ISAC_QTECONOMIA_INDEX))); + + return imovelSubCategAtlzCad; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(ImovelSubCategAtlzCadColunas.ID, getId()); + values.put(ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID, getImovelAtlzCadastral().getId()); + values.put(ImovelSubCategAtlzCadColunas.CATEGORIA_ID, getCategoria().getId()); + values.put(ImovelSubCategAtlzCadColunas.SUBCATEGORIA_ID, getSubCategoria().getId()); + values.put(ImovelSubCategAtlzCadColunas.IMOVEL_ID, getImovelId()); + values.put(ImovelSubCategAtlzCadColunas.QTECONOMIA, getQuantidadeEconomia()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaImovelSubCategAtlzCad = new ArrayList(); + + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.ID); + int imovelAtlzCadastralId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID); + int categoriaId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.CATEGORIA_ID); + int subCategoriaId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.SUBCATEGORIA_ID); + int imovelId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.IMOVEL_ID); + int qtEconomia = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.QTECONOMIA); + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + + imovelSubCategAtlzCad.setId(cursor.getInt(codigo)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(imovelAtlzCadastralId)); + imovelSubCategAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + Categoria _categoria = new Categoria(); + _categoria.setId(cursor.getInt(categoriaId)); + imovelSubCategAtlzCad.setCategoria(_categoria); + + SubCategoria _subCategoria = new SubCategoria(); + _subCategoria.setId(cursor.getInt(subCategoriaId)); + imovelSubCategAtlzCad.setSubCategoria(_subCategoria); + + imovelSubCategAtlzCad.setImovelId(cursor.getInt(imovelId)); + + imovelSubCategAtlzCad.setQuantidadeEconomia(cursor.getInt(qtEconomia)); + + listaImovelSubCategAtlzCad.add(imovelSubCategAtlzCad); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaImovelSubCategAtlzCad; + } + + public ImovelSubCategAtlzCad carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.ID); + int imovelAtlzCadastralId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID); + int categoriaId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.CATEGORIA_ID); + int subCategoriaId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.SUBCATEGORIA_ID); + int imovelId = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.IMOVEL_ID); + int qtEconomia = cursor.getColumnIndex(ImovelSubCategAtlzCadColunas.QTECONOMIA); + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + + if ( cursor.moveToFirst() ) { + + imovelSubCategAtlzCad.setId(cursor.getInt(codigo)); + + ImovelAtlzCadastral _imovelAtlzCadastral = new ImovelAtlzCadastral(); + _imovelAtlzCadastral.setId(cursor.getInt(imovelAtlzCadastralId)); + imovelSubCategAtlzCad.setImovelAtlzCadastral(_imovelAtlzCadastral); + + Categoria _categoria = new Categoria(); + _categoria.setId(cursor.getInt(categoriaId)); + imovelSubCategAtlzCad.setCategoria(_categoria); + + SubCategoria _subCategoria = new SubCategoria(); + _subCategoria.setId(cursor.getInt(subCategoriaId)); + imovelSubCategAtlzCad.setSubCategoria(_subCategoria); + + imovelSubCategAtlzCad.setImovelId(cursor.getInt(imovelId)); + + imovelSubCategAtlzCad.setQuantidadeEconomia(cursor.getInt(qtEconomia)); + + } + + cursor.close(); + return imovelSubCategAtlzCad; + } + + public ImovelAtlzCadastral getImovelAtlzCadastral() { + return imovelAtlzCadastral; + } + + public void setImovelAtlzCadastral(ImovelAtlzCadastral imovelAtlzCadastral) { + this.imovelAtlzCadastral = imovelAtlzCadastral; + } + + public Categoria getCategoria() { + return categoria; + } + + public void setCategoria(Categoria categoria) { + this.categoria = categoria; + } + + public SubCategoria getSubCategoria() { + return subCategoria; + } + + public void setSubCategoria(SubCategoria subCategoria) { + this.subCategoria = subCategoria; + } + + public Integer getQuantidadeEconomia() { + return quantidadeEconomia; + } + + public void setQuantidadeEconomia(Integer quantidadeEconomia) { + this.quantidadeEconomia = quantidadeEconomia; + } + + public Integer getImovelId() { + return imovelId; + } + + public void setImovelId(Integer imovelId) { + this.imovelId = imovelId; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "IMOVEL_SUBCATG_ATLZ_CAD"; + } + + @Override + public boolean equals(Object other) { + if ((this == other)) { + return true; + } + + if (!(other instanceof ImovelSubCategAtlzCad)) { + return false; + } + ImovelSubCategAtlzCad castOther = (ImovelSubCategAtlzCad) other; + + boolean ehIgual = + + ((this.getCategoria() == null && castOther.getCategoria() == null) || + (this.getCategoria().getId() != null && this.getCategoria().getId().equals(castOther.getCategoria().getId()))) && + + ((this.getSubCategoria() == null && castOther.getSubCategoria() == null) || + (this.getSubCategoria().getId() != null && this.getSubCategoria().getId().equals(castOther.getSubCategoria().getId()))) && + + ((this.getQuantidadeEconomia() == null && castOther.getQuantidadeEconomia() == null) || + (this.getQuantidadeEconomia() != null && this.getQuantidadeEconomia().equals(castOther.getQuantidadeEconomia()))); + + return ehIgual; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoAguaSituacao.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoAguaSituacao.java new file mode 100644 index 0000000..4f2a915 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoAguaSituacao.java @@ -0,0 +1,145 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsável pelo objeto LigacaoAguaSituacao + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class LigacaoAguaSituacao extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int LAST_ID_INDEX = 1; + private static final int LAST_DESCRICAO_INDEX = 2; + + // --CONSTANTES + + public static final int POTENCIAL = 1; + + public static final int FACTIVEL = 2; + + public static final int LIGADO = 3; + + public static final int EM_FISCALIZACAO = 4; + + public static final int CORTADO = 5; + + public static final int SUPRIMIDO = 6; + + public static final int SUPR_PARC = 7; + + public static final int SUPR_PARC_PEDIDO = 8; + + public static final int EM_CANCELAMENTO = 9; + + private String descricao; + + public static final String[] colunas = new String[] { + LigacaoAguaSituacaos.ID, + LigacaoAguaSituacaos.DESCRICAO + }; + + public static final class LigacaoAguaSituacaos implements BaseColumns { + public static final String ID = "LAST_ID"; + public static final String DESCRICAO = "LAST_DSLIGACAOAGUA"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "LIGACAO_AGUA_SITUACAO"; + } + + public final class LigacaoAguaSituacaoTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static LigacaoAguaSituacao inserirDoArquivo(List c) { + + LigacaoAguaSituacao ligacao = new LigacaoAguaSituacao(); + + ligacao.setId(c.get(LAST_ID_INDEX)); + ligacao.setDescricao(c.get(LAST_DESCRICAO_INDEX)); + + return ligacao; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(LigacaoAguaSituacaos.ID, getId()); + values.put(LigacaoAguaSituacaos.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList ligacoes = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(LigacaoAguaSituacaos.ID); + int descricao = cursor.getColumnIndex(LigacaoAguaSituacaos.DESCRICAO); + + LigacaoAguaSituacao ligacao = new LigacaoAguaSituacao(); + + ligacao.setId(cursor.getInt(codigo)); + ligacao.setDescricao(cursor.getString(descricao)); + + ligacoes.add(ligacao); + + } while (cursor.moveToNext()); + + cursor.close(); + return ligacoes; + } + + public LigacaoAguaSituacao carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(LigacaoAguaSituacaos.ID); + int descricao = cursor.getColumnIndex(LigacaoAguaSituacaos.DESCRICAO); + + LigacaoAguaSituacao ligacao = new LigacaoAguaSituacao(); + + if ( cursor.moveToFirst() ) { + + ligacao.setId(cursor.getInt(codigo)); + ligacao.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return ligacao; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoEsgotoSituacao.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoEsgotoSituacao.java new file mode 100644 index 0000000..8d95ba3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LigacaoEsgotoSituacao.java @@ -0,0 +1,126 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsável pelo objeto LigacaoEsgotoSituacao + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class LigacaoEsgotoSituacao extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int LEST_ID_INDEX = 1; + private static final int LEST_DESCRICAO_INDEX = 2; + + + private String descricao; + + public static final String[] colunas = new String[] { + LigacaoEsgotoSituacaos.ID, + LigacaoEsgotoSituacaos.DESCRICAO + }; + + public static final class LigacaoEsgotoSituacaos implements BaseColumns { + public static final String ID = "LEST_ID"; + public static final String DESCRICAO = "LEST_DSLIGACAOESGOTO"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "LIGACAO_ESGOTO_SITUACAO"; + } + + public final class LigacaoEsgotoSituacaoTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static LigacaoEsgotoSituacao inserirDoArquivo(List c) { + + LigacaoEsgotoSituacao ligacao = new LigacaoEsgotoSituacao(); + + ligacao.setId(c.get(LEST_ID_INDEX)); + ligacao.setDescricao(c.get(LEST_DESCRICAO_INDEX)); + + return ligacao; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(LigacaoEsgotoSituacaos.ID, getId()); + values.put(LigacaoEsgotoSituacaos.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList ligacoes = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(LigacaoEsgotoSituacaos.ID); + int descricao = cursor.getColumnIndex(LigacaoEsgotoSituacaos.DESCRICAO); + + LigacaoEsgotoSituacao ligacao = new LigacaoEsgotoSituacao(); + + ligacao.setId(cursor.getInt(codigo)); + ligacao.setDescricao(cursor.getString(descricao)); + + ligacoes.add(ligacao); + + } while (cursor.moveToNext()); + + cursor.close(); + return ligacoes; + } + + public LigacaoEsgotoSituacao carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(LigacaoEsgotoSituacaos.ID); + int descricao = cursor.getColumnIndex(LigacaoEsgotoSituacaos.DESCRICAO); + + LigacaoEsgotoSituacao ligacao = new LigacaoEsgotoSituacao(); + + if ( cursor.moveToFirst() ) { + + ligacao.setId(cursor.getInt(codigo)); + ligacao.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return ligacao; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Logradouro.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Logradouro.java new file mode 100644 index 0000000..1b662f9 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Logradouro.java @@ -0,0 +1,342 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsavel pelo objeto Logradouro + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class Logradouro extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int LOGR_ID_INDEX = 1; + private static final int MUNI_ID_INDEX = 5; + private static final int LGTP_ID_INDEX = 6; + private static final int LGTT_ID_INDEX = 7; + private static final int LOGR_NMLOGRADOURO_INDEX = 2; + private static final int LOGR_NMPOPULAR_INDEX = 3; + private static final int LOGR_NMLOTEAMENTO_INDEX = 4; + + private Municipio municipio; + private LogradouroTipo logradouroTipo; + private LogradouroTitulo logradouroTitulo; + private String nomeLogradouro; + private String nomePopularLogradouro; + private String nomeLoteamento; + private Integer indicadorNovo; + private Integer indicadorTransmitido; + private String codigoUnico; + + public static final String[] colunas = new String[] { + Logradouros.ID, + Logradouros.MUNICIPIO_ID, + Logradouros.LOGRADOUROTIPO_ID, + Logradouros.LOGRADOUROTITULO_ID, + Logradouros.NOMELOGRADOURO, + Logradouros.NOMEPOPULARLOGRA, + Logradouros.NOMELOTEAMENTO, + Logradouros.INDICADORNOVO, + Logradouros.INDICADOR_TRANSMITIDO, + Logradouros.CODIGO_UNICO + + }; + + public static final class Logradouros implements BaseColumns { + public static final String ID = "LOGR_ID"; + public static final String MUNICIPIO_ID = "MUNI_ID"; + public static final String LOGRADOUROTIPO_ID = "LGTP_ID"; + public static final String LOGRADOUROTITULO_ID = "LGTT_ID"; + public static final String NOMELOGRADOURO = "LOGR_NMLOGRADOURO"; + public static final String NOMEPOPULARLOGRA = "LOGR_NMPOPULAR"; + public static final String NOMELOTEAMENTO = "LOGR_NMLOTEAMENTO"; + public static final String INDICADORNOVO = "LOGR_ICNOVO"; + public static final String INDICADOR_TRANSMITIDO= "LOGR_ICTRANSMITIDO"; + public static final String CODIGO_UNICO= "LOGR_CDUNICO"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "LOGRADOURO"; + } + + public final class LogradouroTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String MUNICIPIO_ID = " INTEGER"; + public final String LOGRADOUROTIPO_ID = " INTEGER"; + public final String LOGRADOUROTITULO_ID = " INTEGER"; + public final String NOMELOGRADOURO = " VARCHAR(40)"; + public final String NOMEPOPULARLOGRA = " VARCHAR(30)"; + public final String NOMELOTEAMENTO = " VARCHAR(30)"; + public final String INDICADORNOVO = " INTEGER"; + public final String INDICADOR_TRANSMITIDO= " INTEGER"; + public final String CODIGO_UNICO = " VARCHAR(20) "; + + private String[] tipos = new String[] {ID, MUNICIPIO_ID, LOGRADOUROTIPO_ID, LOGRADOUROTITULO_ID, + NOMELOGRADOURO, NOMEPOPULARLOGRA, NOMELOTEAMENTO, INDICADORNOVO, + INDICADOR_TRANSMITIDO, CODIGO_UNICO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static Logradouro inserirDoArquivo(List c) { + + Logradouro logradouro = new Logradouro(); + + logradouro.setId(Util.verificarNuloInt(c.get(LOGR_ID_INDEX))); + + Municipio _municipio = new Municipio(); + _municipio.setId(c.get(MUNI_ID_INDEX)); + logradouro.setMunicipio(_municipio); + + LogradouroTipo _logradouroTipo = new LogradouroTipo(); + _logradouroTipo.setId(c.get(LGTP_ID_INDEX)); + logradouro.setLogradouroTipo(_logradouroTipo); + + LogradouroTitulo _logradouroTitulo = new LogradouroTitulo(); + _logradouroTitulo.setId(Util.verificarNuloInt(c.get(LGTT_ID_INDEX))); + logradouro.setLogradouroTitulo(_logradouroTitulo); + logradouro.setNomeLogradouro(c.get(LOGR_NMLOGRADOURO_INDEX)); + logradouro.setNomePopularLogradouro(c.get(LOGR_NMPOPULAR_INDEX)); + logradouro.setNomeLoteamento(c.get(LOGR_NMLOTEAMENTO_INDEX)); + logradouro.setIndicadorNovo(ConstantesSistema.NAO); + logradouro.setIndicadorTransmitido(ConstantesSistema.NAO); + logradouro.setCodigoUnico(""); + + return logradouro; + } + + + public static Logradouro inserirAtualizarDoArquivoDividido(List c) { + + Logradouro logradouro = new Logradouro(); + +// logradouro.setId() + logradouro.setCodigoUnico(c.get(LOGR_ID_INDEX)); + logradouro.setNomeLogradouro(c.get(LOGR_NMLOGRADOURO_INDEX)); + logradouro.setNomePopularLogradouro(c.get(LOGR_NMPOPULAR_INDEX)); + logradouro.setNomeLoteamento(c.get(LOGR_NMLOTEAMENTO_INDEX)); + + Municipio _municipio = new Municipio(); + _municipio.setId(c.get(MUNI_ID_INDEX)); + logradouro.setMunicipio(_municipio); + + LogradouroTipo _logradouroTipo = new LogradouroTipo(); + _logradouroTipo.setId(c.get(LGTP_ID_INDEX)); + logradouro.setLogradouroTipo(_logradouroTipo); + + LogradouroTitulo _logradouroTitulo = new LogradouroTitulo(); + _logradouroTitulo.setId(Util.verificarNuloInt(c.get(LGTT_ID_INDEX))); + logradouro.setLogradouroTitulo(_logradouroTitulo); + + logradouro.setIndicadorNovo(ConstantesSistema.SIM); + logradouro.setIndicadorTransmitido(ConstantesSistema.NAO); + + + return logradouro; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(Logradouros.ID, getId()); + values.put(Logradouros.MUNICIPIO_ID, getMunicipio().getId()); + values.put(Logradouros.LOGRADOUROTIPO_ID, getLogradouroTipo().getId()); + + if ( getLogradouroTitulo() != null && getLogradouroTitulo().getId() != null ) { + values.put(Logradouros.LOGRADOUROTITULO_ID, getLogradouroTitulo().getId()); + } + values.put(Logradouros.NOMELOGRADOURO, getNomeLogradouro()); + values.put(Logradouros.NOMEPOPULARLOGRA, getNomePopularLogradouro()); + values.put(Logradouros.NOMELOTEAMENTO, getNomeLoteamento()); + values.put(Logradouros.INDICADORNOVO, getIndicadorNovo()); + values.put(Logradouros.INDICADOR_TRANSMITIDO, getIndicadorTransmitido()); + values.put(Logradouros.CODIGO_UNICO, getCodigoUnico()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList logradouros = new ArrayList(); + + if ( cursor.moveToFirst() ) { + + do{ + int codigo = cursor.getColumnIndex(Logradouros.ID); + int municipioId = cursor.getColumnIndex(Logradouros.MUNICIPIO_ID); + int logradouroTipoId = cursor.getColumnIndex(Logradouros.LOGRADOUROTIPO_ID); + int logradouroTituloId = cursor.getColumnIndex(Logradouros.LOGRADOUROTITULO_ID); + int nomeLogradouro = cursor.getColumnIndex(Logradouros.NOMELOGRADOURO); + int nomePopularLogradouro = cursor.getColumnIndex(Logradouros.NOMEPOPULARLOGRA); + int nomeLoteamento = cursor.getColumnIndex(Logradouros.NOMELOTEAMENTO); + int indicadorNovo = cursor.getColumnIndex(Logradouros.INDICADORNOVO); + int indicadorTransmitido = cursor.getColumnIndex(Logradouros.INDICADOR_TRANSMITIDO); + int codigoUnico = cursor.getColumnIndex(Logradouros.CODIGO_UNICO); + + Logradouro logradouro = new Logradouro(); + + logradouro.setId(cursor.getInt(codigo)); + + Municipio _municipio = new Municipio(); + _municipio.setId(cursor.getInt(municipioId)); + logradouro.setMunicipio(_municipio); + + LogradouroTipo _logradouroTipo = new LogradouroTipo(); + _logradouroTipo.setId(cursor.getInt(logradouroTipoId)); + logradouro.setLogradouroTipo(_logradouroTipo); + + LogradouroTitulo _logradouroTitulo = new LogradouroTitulo(); + _logradouroTitulo.setId(cursor.getInt(logradouroTituloId)); + logradouro.setLogradouroTitulo(_logradouroTitulo); + + logradouro.setNomeLogradouro(cursor.getString(nomeLogradouro)); + logradouro.setNomePopularLogradouro(cursor.getString(nomePopularLogradouro)); + logradouro.setNomeLoteamento(cursor.getString(nomeLoteamento)); + logradouro.setIndicadorNovo(cursor.getInt(indicadorNovo)); + logradouro.setIndicadorTransmitido(cursor.getInt(indicadorTransmitido)); + logradouro.setCodigoUnico(cursor.getString(codigoUnico)); + + logradouros.add(logradouro); + + } while (cursor.moveToNext()); + } + cursor.close(); + return logradouros; + } + + public Logradouro carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(Logradouros.ID); + int municipioId = cursor.getColumnIndex(Logradouros.MUNICIPIO_ID); + int logradouroTipoId = cursor.getColumnIndex(Logradouros.LOGRADOUROTIPO_ID); + int logradouroTituloId = cursor.getColumnIndex(Logradouros.LOGRADOUROTITULO_ID); + int nomeLogradouro = cursor.getColumnIndex(Logradouros.NOMELOGRADOURO); + int nomePopularLogradouro = cursor.getColumnIndex(Logradouros.NOMEPOPULARLOGRA); + int nomeLoteamento = cursor.getColumnIndex(Logradouros.NOMELOTEAMENTO); + int indicadorNovo = cursor.getColumnIndex(Logradouros.INDICADORNOVO); + int indicadorTransmitido = cursor.getColumnIndex(Logradouros.INDICADOR_TRANSMITIDO); + int codigoUnico = cursor.getColumnIndex(Logradouros.CODIGO_UNICO); + + Logradouro logradouro = new Logradouro(); + + if ( cursor.moveToFirst() ) { + + logradouro.setId(cursor.getInt(codigo)); + + Municipio _municipio = new Municipio(); + _municipio.setId(cursor.getInt(municipioId)); + logradouro.setMunicipio(_municipio); + + LogradouroTipo _logradouroTipo = new LogradouroTipo(); + _logradouroTipo.setId(cursor.getInt(logradouroTipoId)); + logradouro.setLogradouroTipo(_logradouroTipo); + + LogradouroTitulo _logradouroTitulo = new LogradouroTitulo(); + _logradouroTitulo.setId(cursor.getInt(logradouroTituloId)); + logradouro.setLogradouroTitulo(_logradouroTitulo); + + logradouro.setNomeLogradouro(cursor.getString(nomeLogradouro)); + logradouro.setNomePopularLogradouro(cursor.getString(nomePopularLogradouro)); + logradouro.setNomeLoteamento(cursor.getString(nomeLoteamento)); + logradouro.setIndicadorNovo(cursor.getInt(indicadorNovo)); + logradouro.setIndicadorTransmitido(cursor.getInt(indicadorTransmitido)); + logradouro.setCodigoUnico(cursor.getString(codigoUnico)); + } + cursor.close(); + return logradouro; + } + + public Municipio getMunicipio() { + return municipio; + } + + public void setMunicipio(Municipio municipio) { + this.municipio = municipio; + } + + public LogradouroTipo getLogradouroTipo() { + return logradouroTipo; + } + + public void setLogradouroTipo(LogradouroTipo logradouroTipo) { + this.logradouroTipo = logradouroTipo; + } + + public LogradouroTitulo getLogradouroTitulo() { + return logradouroTitulo; + } + + public void setLogradouroTitulo(LogradouroTitulo logradouroTitulo) { + this.logradouroTitulo = logradouroTitulo; + } + + public String getNomeLogradouro() { + return nomeLogradouro; + } + + public void setNomeLogradouro(String nomeLogradouro) { + this.nomeLogradouro = nomeLogradouro; + } + + public String getNomePopularLogradouro() { + return nomePopularLogradouro; + } + + public void setNomePopularLogradouro(String nomePopularLogradouro) { + this.nomePopularLogradouro = nomePopularLogradouro; + } + + public String getNomeLoteamento() { + return nomeLoteamento; + } + + public void setNomeLoteamento(String nomeLoteamento) { + this.nomeLoteamento = nomeLoteamento; + } + + public Integer getIndicadorNovo() { + return indicadorNovo; + } + + public void setIndicadorNovo(Integer indicadorNovo) { + this.indicadorNovo = indicadorNovo; + } + + public Integer getIndicadorTransmitido() { + return indicadorTransmitido; + } + + public void setIndicadorTransmitido(Integer indicadorTransmitido) { + this.indicadorTransmitido = indicadorTransmitido; + } + + public String getCodigoUnico() { + return codigoUnico; + } + + public void setCodigoUnico(String codigoUnico) { + this.codigoUnico = codigoUnico; + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroBairro.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroBairro.java new file mode 100644 index 0000000..2bb1c33 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroBairro.java @@ -0,0 +1,183 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsavel pelo objeto LogradouroBairro + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class LogradouroBairro extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int LGBR_ID_INDEX = 1; + private static final int BAIRRO_INDEX = 2; + private static final int LOGRADOURO_INDEX = 3; + + + + private Bairro bairro; + + private Logradouro logradouro; + + public static final String[] colunas = new String[] { + LogradouroBairros.ID, + LogradouroBairros.BAIRRO, + LogradouroBairros.LOGRADOURO + }; + + public static final class LogradouroBairros implements BaseColumns { + public static final String ID = "LGBR_ID"; + public static final String BAIRRO = "BAIR_ID"; + public static final String LOGRADOURO = "LOGR_ID"; + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "LOGRADOURO_BAIRRO"; + } + + public final class LogradouroBairroTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String BAIRRO = " INTEGER NOT NULL"; + public final String LOGRADOURO = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, BAIRRO, LOGRADOURO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static LogradouroBairro inserirDoArquivo(List c) { + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + + logradouroBairro.setId(c.get(LGBR_ID_INDEX)); + + Bairro bairro = new Bairro(); + bairro.setId(c.get(BAIRRO_INDEX)); + logradouroBairro.setBairro(bairro); + + Logradouro logradouro = new Logradouro(); + logradouro.setId(c.get(LOGRADOURO_INDEX)); + logradouroBairro.setLogradouro(logradouro); + + return logradouroBairro; + } + + + public static LogradouroBairro inserirAtualizarDoArquivoDividido(List c, Logradouro logradouro) { + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + +// Logradouro logradouro = new Logradouro(); +// logradouro.setId(c.get(AD_LOGRADOURO_INDEX)); + logradouroBairro.setLogradouro(logradouro); + + Bairro bairro = new Bairro(); + bairro.setId(c.get(BAIRRO_INDEX)); + logradouroBairro.setBairro(bairro); + + return logradouroBairro; + } + + + public Bairro getBairro() { + return bairro; + } + + public void setBairro(Bairro bairro) { + this.bairro = bairro; + } + + public Logradouro getLogradouro() { + return logradouro; + } + + public void setLogradouro(Logradouro logradouro) { + this.logradouro = logradouro; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(LogradouroBairros.ID, getId()); + values.put(LogradouroBairros.BAIRRO, getBairro().getId()); + values.put(LogradouroBairros.LOGRADOURO, getLogradouro().getId()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList logradouros = new ArrayList(); + + if ( cursor.moveToFirst() ) { + + do{ + int codigo = cursor.getColumnIndex(LogradouroBairros.ID); + int bairroIndex = cursor.getColumnIndex(LogradouroBairros.BAIRRO); + int logradouroIndex = cursor.getColumnIndex(LogradouroBairros.LOGRADOURO); + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + + logradouroBairro.setId(cursor.getInt(codigo)); + + Bairro bairro = new Bairro(); + bairro.setId(cursor.getInt(bairroIndex)); + logradouroBairro.setBairro(bairro); + + Logradouro logradouro = new Logradouro(); + logradouro.setId(cursor.getInt(logradouroIndex)); + logradouroBairro.setLogradouro(logradouro); + + logradouros.add(logradouroBairro); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return logradouros; + } + + public LogradouroBairro carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(LogradouroBairros.ID); + int bairroIndex = cursor.getColumnIndex(LogradouroBairros.BAIRRO); + int logradouroIndex = cursor.getColumnIndex(LogradouroBairros.LOGRADOURO); + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + + if ( cursor.moveToFirst() ) { + + logradouroBairro.setId(cursor.getInt(codigo)); + + Bairro bairro = new Bairro(); + bairro.setId(cursor.getInt(bairroIndex)); + logradouroBairro.setBairro(bairro); + + Logradouro logradouro = new Logradouro(); + logradouro.setId(cursor.getInt(logradouroIndex)); + logradouroBairro.setLogradouro(logradouro); + + } + + cursor.close(); + return logradouroBairro; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroCep.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroCep.java new file mode 100644 index 0000000..a7657b1 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroCep.java @@ -0,0 +1,216 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +import com.br.gsanac.util.ConstantesSistema; + + +/** + *

+ * Classe responsvel pelo objeto LogradouroCep + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class LogradouroCep extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int LGCP_ID_INDEX = 1; + private static final int CEP_INDEX = 2; + private static final int LOGRADOURO_INDEX = 3; + + private Cep cep; + private Logradouro logradouro; + private Integer indicadorNovo; + private Integer indicadorTransmitido; + + public static final String[] colunas = new String[] { + LogradouroCeps.ID, + LogradouroCeps.CEP, + LogradouroCeps.LOGRADOURO, + LogradouroCeps.INDICADORNOVO, + LogradouroCeps.INDICADOR_TRANSMITIDO + }; + + public static final class LogradouroCeps implements BaseColumns { + public static final String ID = "LGCP_ID"; + public static final String CEP = "CEP_ID"; + public static final String LOGRADOURO = "LOGR_ID"; + public static final String INDICADORNOVO = "LGCP_ICNOVO"; + public static final String INDICADOR_TRANSMITIDO = "LGCP_ICTRANSMITIDO"; + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "LOGRADOURO_CEP"; + } + + public final class LogradouroCepTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CEP = " INTEGER NOT NULL"; + public final String LOGRADOURO = " INTEGER NOT NULL"; + public final String INDICADORNOVO = " INTEGER NOT NULL"; + public final String INDICADOR_TRANSMITIDO = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, CEP, LOGRADOURO, INDICADORNOVO, INDICADOR_TRANSMITIDO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static LogradouroCep inserirDoArquivo(List c) { + + LogradouroCep logradouroCep = new LogradouroCep(); + + logradouroCep.setId(c.get(LGCP_ID_INDEX)); + + Cep cep = new Cep(); + cep.setId(c.get(CEP_INDEX)); + logradouroCep.setCep(cep); + Logradouro logradouro = new Logradouro(); + logradouro.setId(c.get(LOGRADOURO_INDEX)); + logradouroCep.setLogradouro(logradouro); + logradouroCep.setIndicadorNovo(ConstantesSistema.NAO); + logradouroCep.setIndicadorTransmitido(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO); + + return logradouroCep; + } + + + public static LogradouroCep inserirAtualizarDoArquivoDividido(List c, Logradouro logradouro, Cep cep) { + + LogradouroCep logradouroCep = new LogradouroCep(); + + logradouroCep.setCep(cep); + + logradouroCep.setLogradouro(logradouro); + + logradouroCep.setIndicadorNovo(ConstantesSistema.SIM); + logradouroCep.setIndicadorTransmitido(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO); + + return logradouroCep; + } + + + + public Integer getIndicadorTransmitido() { + return indicadorTransmitido; + } + + public void setIndicadorTransmitido(Integer indicadorTransmitido) { + this.indicadorTransmitido = indicadorTransmitido; + } + + public Cep getCep() { + return cep; + } + + public void setCep(Cep cep) { + this.cep = cep; + } + + public Logradouro getLogradouro() { + return logradouro; + } + + public void setLogradouro(Logradouro logradouro) { + this.logradouro = logradouro; + } + + public Integer getIndicadorNovo() { + return indicadorNovo; + } + + public void setIndicadorNovo(Integer indicadorNovo) { + this.indicadorNovo = indicadorNovo; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(LogradouroCeps.ID, getId()); + values.put(LogradouroCeps.CEP, getCep().getId()); + values.put(LogradouroCeps.LOGRADOURO, getLogradouro().getId()); + values.put(LogradouroCeps.INDICADORNOVO, getIndicadorNovo()); + values.put(LogradouroCeps.INDICADOR_TRANSMITIDO, getIndicadorTransmitido()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList logradouros = new ArrayList(); + if ( cursor.moveToFirst() ) { + + do{ + int codigo = cursor.getColumnIndex(LogradouroCeps.ID); + int cepIndex = cursor.getColumnIndex(LogradouroCeps.CEP); + int logradouroIndex = cursor.getColumnIndex(LogradouroCeps.LOGRADOURO); + int indicadorNovoIndex = cursor.getColumnIndex(LogradouroCeps.INDICADORNOVO); + int indicadorTransmitidoIndex = cursor.getColumnIndex(LogradouroCeps.INDICADOR_TRANSMITIDO); + + LogradouroCep logradouroCep = new LogradouroCep(); + + logradouroCep.setId(cursor.getInt(codigo)); + + Cep cep = new Cep(); + cep.setId(cursor.getInt(cepIndex)); + logradouroCep.setCep(cep); + + Logradouro logradouro = new Logradouro(); + logradouro.setId(cursor.getInt(logradouroIndex)); + logradouroCep.setLogradouro(logradouro); + logradouroCep.setIndicadorNovo(cursor.getInt(indicadorNovoIndex)); + logradouroCep.setIndicadorTransmitido(cursor.getInt(indicadorTransmitidoIndex)); + + logradouros.add(logradouroCep); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return logradouros; + } + + public LogradouroCep carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(LogradouroCeps.ID); + int cepIndex = cursor.getColumnIndex(LogradouroCeps.CEP); + int logradouroIndex = cursor.getColumnIndex(LogradouroCeps.LOGRADOURO); + int indicadorNovoIndex = cursor.getColumnIndex(LogradouroCeps.INDICADORNOVO); + int indicadorTransmitidoIndex = cursor.getColumnIndex(LogradouroCeps.INDICADOR_TRANSMITIDO); + + LogradouroCep logradouroCep = new LogradouroCep(); + + if ( cursor.moveToFirst() ) { + + logradouroCep.setId(cursor.getInt(codigo)); + + Cep cep = new Cep(); + cep.setId(cursor.getInt(cepIndex)); + logradouroCep.setCep(cep); + + Logradouro logradouro = new Logradouro(); + logradouro.setId(cursor.getInt(logradouroIndex)); + logradouroCep.setLogradouro(logradouro); + logradouroCep.setIndicadorNovo(cursor.getInt(indicadorNovoIndex)); + logradouroCep.setIndicadorTransmitido(cursor.getInt(indicadorTransmitidoIndex)); + + } + + cursor.close(); + return logradouroCep; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTipo.java new file mode 100644 index 0000000..0cdd740 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTipo.java @@ -0,0 +1,142 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto LogradouroTipo + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class LogradouroTipo extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int LGTP_ID_INDEX = 1; + private static final int LGTP_DSLOGRADOUROTIPO_INDEX = 2; + private static final int LGTP_DSABREVIADO_INDEX = 3; + + private String descricao; + private String descricaoAbreviada; + + public static final String[] columns = new String[]{ + LogradouroTipoColunas.ID, + LogradouroTipoColunas.DESCRICAO, + LogradouroTipoColunas.DESCRICAOABREV + }; + + public static final class LogradouroTipoColunas implements BaseColumns{ + public static final String ID = "LGTP_ID"; + public static final String DESCRICAO = "LGTP_DSLOGRADOUROTIPO"; + public static final String DESCRICAOABREV = "LGTP_DSABREVIADO"; + } + + public final class LogradouroTipoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + public final String DESCRICAOABREV = " VARCHAR(3)"; + + private String[] tipos = new String[] {ID, DESCRICAO, DESCRICAOABREV}; + + public String[] getTipos(){ + return tipos; + } + } + + public static LogradouroTipo inserirDoArquivo(List c) { + + LogradouroTipo logradouroTipo = new LogradouroTipo(); + + logradouroTipo.setId(c.get(LGTP_ID_INDEX)); + logradouroTipo.setDescricao(c.get(LGTP_DSLOGRADOUROTIPO_INDEX)); + logradouroTipo.setDescricaoAbreviada(c.get(LGTP_DSABREVIADO_INDEX)); + + return logradouroTipo; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(LogradouroTipoColunas.ID, getId()); + values.put(LogradouroTipoColunas.DESCRICAO, getDescricao()); + values.put(LogradouroTipoColunas.DESCRICAOABREV, getDescricaoAbreviada()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaLogradouroTipo = new ArrayList(); + if ( cursor.moveToFirst() ) { + + do{ + int _codigo = cursor.getColumnIndex(LogradouroTipoColunas.ID); + int _descricao = cursor.getColumnIndex(LogradouroTipoColunas.DESCRICAO); + int _descricaoAbreviada = cursor.getColumnIndex(LogradouroTipoColunas.DESCRICAOABREV); + + LogradouroTipo logradouroTipo = new LogradouroTipo(); + + logradouroTipo.setId(cursor.getInt(_codigo)); + logradouroTipo.setDescricao(cursor.getString(_descricao)); + logradouroTipo.setDescricaoAbreviada(cursor.getString(_descricaoAbreviada)); + + listaLogradouroTipo.add(logradouroTipo); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaLogradouroTipo; + } + + public LogradouroTipo carregarEntidade(Cursor cursor) { + + int _codigo = cursor.getColumnIndex(LogradouroTipoColunas.ID); + int _descricao = cursor.getColumnIndex(LogradouroTipoColunas.DESCRICAO); + int _descricaoAbreviada = cursor.getColumnIndex(LogradouroTipoColunas.DESCRICAOABREV); + + LogradouroTipo logradouroTipo = new LogradouroTipo(); + + if ( cursor.moveToFirst() ) { + + logradouroTipo.setId(cursor.getInt(_codigo)); + logradouroTipo.setDescricao(cursor.getString(_descricao)); + logradouroTipo.setDescricaoAbreviada(cursor.getString(_descricaoAbreviada)); + } + + cursor.close(); + return logradouroTipo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String getDescricaoAbreviada() { + return descricaoAbreviada; + } + + public void setDescricaoAbreviada(String descricaoAbreviada) { + this.descricaoAbreviada = descricaoAbreviada; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "LOGRADOURO_TIPO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTitulo.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTitulo.java new file mode 100644 index 0000000..bed879b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/LogradouroTitulo.java @@ -0,0 +1,142 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto LogradouroTitulo + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class LogradouroTitulo extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int LGTP_ID_INDEX = 1; + private static final int LGTP_DSLOGRADOUROTIPO_INDEX = 2; + private static final int LGTP_DSABREVIADO_INDEX = 3; + + private String descricao; + private String descricaoAbreviada; + + public static final String[] columns = new String[]{ + LogradouroTituloColunas.ID, + LogradouroTituloColunas.DESCRICAO, + LogradouroTituloColunas.DESCRICAOABREV + }; + + public static final class LogradouroTituloColunas implements BaseColumns{ + public static final String ID = "LGTT_ID"; + public static final String DESCRICAO = "LGTT_DSLOGRADOUROTITULO"; + public static final String DESCRICAOABREV = "LGTT_DSABREVIADO"; + } + + public final class LogradouroTituloColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(25) NOT NULL"; + public final String DESCRICAOABREV = " VARCHAR(5)"; + + private String[] tipos = new String[] {ID, DESCRICAO, DESCRICAOABREV}; + + public String[] getTipos(){ + return tipos; + } + } + + public static LogradouroTitulo inserirDoArquivo(List c) { + + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + + logradouroTitulo.setId(c.get(LGTP_ID_INDEX)); + logradouroTitulo.setDescricao(c.get(LGTP_DSLOGRADOUROTIPO_INDEX)); + logradouroTitulo.setDescricaoAbreviada(c.get(LGTP_DSABREVIADO_INDEX)); + + return logradouroTitulo; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(LogradouroTituloColunas.ID, getId()); + values.put(LogradouroTituloColunas.DESCRICAO, getDescricao()); + values.put(LogradouroTituloColunas.DESCRICAOABREV, getDescricaoAbreviada()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaLogradouroTitulo = new ArrayList(); + if ( cursor.moveToFirst() ){ + + do{ + int _codigo = cursor.getColumnIndex(LogradouroTituloColunas.ID); + int _descricao = cursor.getColumnIndex(LogradouroTituloColunas.DESCRICAO); + int _descricaoAbreviada = cursor.getColumnIndex(LogradouroTituloColunas.DESCRICAOABREV); + + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + + logradouroTitulo.setId(cursor.getInt(_codigo)); + logradouroTitulo.setDescricao(cursor.getString(_descricao)); + logradouroTitulo.setDescricaoAbreviada(cursor.getString(_descricaoAbreviada)); + + listaLogradouroTitulo.add(logradouroTitulo); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaLogradouroTitulo; + } + + public LogradouroTitulo carregarEntidade(Cursor cursor) { + + int _codigo = cursor.getColumnIndex(LogradouroTituloColunas.ID); + int _descricao = cursor.getColumnIndex(LogradouroTituloColunas.DESCRICAO); + int _descricaoAbreviada = cursor.getColumnIndex(LogradouroTituloColunas.DESCRICAOABREV); + + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + + if ( cursor.moveToFirst() ) { + + logradouroTitulo.setId(cursor.getInt(_codigo)); + logradouroTitulo.setDescricao(cursor.getString(_descricao)); + logradouroTitulo.setDescricaoAbreviada(cursor.getString(_descricaoAbreviada)); + } + + cursor.close(); + return logradouroTitulo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String getDescricaoAbreviada() { + return descricaoAbreviada; + } + + public void setDescricaoAbreviada(String descricaoAbreviada) { + this.descricaoAbreviada = descricaoAbreviada; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "LOGRADOURO_TITULO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/MedicaoTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/MedicaoTipo.java new file mode 100644 index 0000000..8a672a5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/MedicaoTipo.java @@ -0,0 +1,121 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto MedicaoTipo + *

+ * + * @author Anderson Cabral + * @since 02/01/2013 + */ +public class MedicaoTipo extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int MEDT_ID_INDEX = 1; + private static final int MEDT_DSMEDICAOTIPO_INDEX = 2; + + private String descricao; + + public static final String[] columns = new String[]{ + MedicaoTipoColunas.ID, + MedicaoTipoColunas.DESCRICAO + }; + + public static final class MedicaoTipoColunas implements BaseColumns{ + public static final String ID = "MEDT_ID"; + public static final String DESCRICAO = "MEDT_DSMEDICAOTIPO"; + } + + public final class MedicaoTipoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static MedicaoTipo inserirDoArquivo(List c) { + + MedicaoTipo medicaoTipo = new MedicaoTipo(); + + medicaoTipo.setId(c.get(MEDT_ID_INDEX)); + medicaoTipo.setDescricao(c.get(MEDT_DSMEDICAOTIPO_INDEX)); + + return medicaoTipo; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(MedicaoTipoColunas.ID, getId()); + values.put(MedicaoTipoColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaMedicaoTipo = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + MedicaoTipo medicaoTipo = new MedicaoTipo(); + int codigo = cursor.getColumnIndex(MedicaoTipoColunas.ID); + int descricao = cursor.getColumnIndex(MedicaoTipoColunas.DESCRICAO); + + medicaoTipo.setId(cursor.getInt(codigo)); + medicaoTipo.setDescricao(cursor.getString(descricao)); + + listaMedicaoTipo.add(medicaoTipo); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaMedicaoTipo; + } + + public MedicaoTipo carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(MedicaoTipoColunas.ID); + int descricao = cursor.getColumnIndex(MedicaoTipoColunas.DESCRICAO); + + MedicaoTipo medicaoTipo = new MedicaoTipo(); + + if ( cursor.moveToFirst() ) { + + medicaoTipo.setId(cursor.getInt(codigo)); + medicaoTipo.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return medicaoTipo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "MEDICAO_TIPO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Municipio.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Municipio.java new file mode 100644 index 0000000..b37b4ad --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Municipio.java @@ -0,0 +1,143 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import com.br.gsanac.util.Util; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto Municipio + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class Municipio extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int MUNI_ID_INDEX = 1; + private static final int MUNI_NMMUNICIPIO_INDEX = 2; + private static final int MUNI_CDCEPUNICO_INDEX = 3; + + private String nome; + private Integer codigoCepUnico; + + public static final String[] columns = new String[]{ + MunicipioColunas.ID, + MunicipioColunas.NOME, + MunicipioColunas.CEPUNICO + }; + + public static final class MunicipioColunas implements BaseColumns{ + public static final String ID = "MUNI_ID"; + public static final String NOME = "MUNI_NMMUNICIPIO"; + public static final String CEPUNICO = "MUNI_CDCEPUNICO"; + } + + public final class MunicipioColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String NOME = " VARCHAR(30) NOT NULL"; + public final String CEPUNICO = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, NOME, CEPUNICO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static Municipio inserirDoArquivo(List c) { + + Municipio municipio = new Municipio(); + + municipio.setId(c.get(MUNI_ID_INDEX)); + municipio.setNome(c.get(MUNI_NMMUNICIPIO_INDEX)); + municipio.setCodigoCepUnico(Util.verificarNuloInt(c.get(MUNI_CDCEPUNICO_INDEX))); + + return municipio; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(MunicipioColunas.ID, getId()); + values.put(MunicipioColunas.NOME, getNome()); + values.put(MunicipioColunas.CEPUNICO, getCodigoCepUnico()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaMunicipio = new ArrayList(); + cursor.moveToFirst(); + + do{ + int _codigo = cursor.getColumnIndex(MunicipioColunas.ID); + int _nome = cursor.getColumnIndex(MunicipioColunas.NOME); + int _cepUnico = cursor.getColumnIndex(MunicipioColunas.CEPUNICO); + + Municipio municipio = new Municipio(); + + municipio.setId(cursor.getInt(_codigo)); + municipio.setNome(cursor.getString(_nome)); + municipio.setCodigoCepUnico(cursor.getInt(_cepUnico)); + + listaMunicipio.add(municipio); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaMunicipio; + } + + public Municipio carregarEntidade(Cursor cursor) { + + int _codigo = cursor.getColumnIndex(MunicipioColunas.ID); + int _nome = cursor.getColumnIndex(MunicipioColunas.NOME); + int _cepUnico = cursor.getColumnIndex(MunicipioColunas.CEPUNICO); + + Municipio municipio = new Municipio(); + + if ( cursor.moveToFirst() ) { + + municipio.setId(cursor.getInt(_codigo)); + municipio.setNome(cursor.getString(_nome)); + municipio.setCodigoCepUnico(cursor.getInt(_cepUnico)); + } + + cursor.close(); + return municipio; + } + + public String getNome() { + return nome; + } + + public void setNome(String nome) { + this.nome = nome; + } + + public Integer getCodigoCepUnico() { + return codigoCepUnico; + } + + public void setCodigoCepUnico(Integer codigoCepUnico) { + this.codigoCepUnico = codigoCepUnico; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "MUNICIPIO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/OrgaoExpedidorRg.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/OrgaoExpedidorRg.java new file mode 100644 index 0000000..abb437e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/OrgaoExpedidorRg.java @@ -0,0 +1,141 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto OrgaoExpedidorRg + *

+ * + * @author Anderson Cabral + * @since 10/12/2012 + */ +public class OrgaoExpedidorRg extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int OERG_ID_INDEX = 1; + private static final int OERG_DSORGAOEXPEDIDORRG_INDEX = 2; + private static final int OERG_DSABREVIADO_INDEX = 3; + + private String descricao; + private String descricaoAbreviada; + + public static final String[] columns = new String[]{ + OrgaoExpedidorRgColunas.ID, + OrgaoExpedidorRgColunas.DESCRICAO, + OrgaoExpedidorRgColunas.DESCRICAOABREV + }; + + public static final class OrgaoExpedidorRgColunas implements BaseColumns{ + public static final String ID = "OERG_ID"; + public static final String DESCRICAO = "OERG_DSORGAOEXPEDIDORRG"; + public static final String DESCRICAOABREV = "OERG_DSABREVIADO"; + } + + public final class OrgaoExpedidorRgColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(50) NOT NULL"; + public final String DESCRICAOABREV = " VARCHAR(6) "; + + private String[] tipos = new String[] {ID, DESCRICAO, DESCRICAOABREV}; + + public String[] getTipos(){ + return tipos; + } + } + + public static OrgaoExpedidorRg inserirDoArquivo(List c) { + + OrgaoExpedidorRg orgaoExpedidorRg = new OrgaoExpedidorRg(); + + orgaoExpedidorRg.setId(c.get(OERG_ID_INDEX)); + orgaoExpedidorRg.setDescricao(c.get(OERG_DSORGAOEXPEDIDORRG_INDEX)); + orgaoExpedidorRg.setDescricaoAbreviada(c.get(OERG_DSABREVIADO_INDEX)); + + return orgaoExpedidorRg; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(OrgaoExpedidorRgColunas.ID, getId()); + values.put(OrgaoExpedidorRgColunas.DESCRICAO, getDescricao()); + values.put(OrgaoExpedidorRgColunas.DESCRICAOABREV, getDescricaoAbreviada()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaOrgaoExpedidorRg = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(OrgaoExpedidorRgColunas.ID); + int descricao = cursor.getColumnIndex(OrgaoExpedidorRgColunas.DESCRICAO); + int descricaoAbreviada = cursor.getColumnIndex(OrgaoExpedidorRgColunas.DESCRICAOABREV); + + OrgaoExpedidorRg orgaoExpedidorRg = new OrgaoExpedidorRg(); + + orgaoExpedidorRg.setId(cursor.getInt(codigo)); + orgaoExpedidorRg.setDescricao(cursor.getString(descricao)); + orgaoExpedidorRg.setDescricaoAbreviada(cursor.getString(descricaoAbreviada)); + + listaOrgaoExpedidorRg.add(orgaoExpedidorRg); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaOrgaoExpedidorRg; + } + + public OrgaoExpedidorRg carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(OrgaoExpedidorRgColunas.ID); + int descricao = cursor.getColumnIndex(OrgaoExpedidorRgColunas.DESCRICAO); + int descricaoAbreviada = cursor.getColumnIndex(OrgaoExpedidorRgColunas.DESCRICAOABREV); + + OrgaoExpedidorRg orgaoExpedidorRg = new OrgaoExpedidorRg(); + + if ( cursor.moveToFirst() ) { + + orgaoExpedidorRg.setId(cursor.getInt(codigo)); + orgaoExpedidorRg.setDescricao(cursor.getString(descricao)); + orgaoExpedidorRg.setDescricaoAbreviada(cursor.getString(descricaoAbreviada)); + } + + cursor.close(); + return orgaoExpedidorRg; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String getDescricaoAbreviada() { + return descricaoAbreviada; + } + + public void setDescricaoAbreviada(String descricaoAbreviada) { + this.descricaoAbreviada = descricaoAbreviada; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "ORGAO_EXPEDIDOR_RG"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoCalcada.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoCalcada.java new file mode 100644 index 0000000..397855b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoCalcada.java @@ -0,0 +1,126 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsável pelo objeto PavimentoCalcada + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class PavimentoCalcada extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int PCAL_ID_INDEX = 1; + private static final int PCAL_DESCRICAO_INDEX = 2; + + + private String descricao; + + public static final String[] colunas = new String[] { + PavimentoCalcadas.ID, + PavimentoCalcadas.DESCRICAO + }; + + public static final class PavimentoCalcadas implements BaseColumns { + public static final String ID = "PRUA_ID"; + public static final String DESCRICAO = "PRUA_DSPAVIMENTORUA"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "PAVIMENTO_CALCADA"; + } + + public final class PavimentoCalcadaTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(25) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static PavimentoCalcada inserirDoArquivo(List c) { + + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + + pavimentoCalcada.setId(c.get(PCAL_ID_INDEX)); + pavimentoCalcada.setDescricao(c.get(PCAL_DESCRICAO_INDEX)); + + return pavimentoCalcada; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(PavimentoCalcadas.ID, getId()); + values.put(PavimentoCalcadas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList pavimentoCalcadas = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(PavimentoCalcadas.ID); + int descricao = cursor.getColumnIndex(PavimentoCalcadas.DESCRICAO); + + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + + pavimentoCalcada.setId(cursor.getInt(codigo)); + pavimentoCalcada.setDescricao(cursor.getString(descricao)); + + pavimentoCalcadas.add(pavimentoCalcada); + + } while (cursor.moveToNext()); + + cursor.close(); + return pavimentoCalcadas; + } + + public PavimentoCalcada carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(PavimentoCalcadas.ID); + int descricao = cursor.getColumnIndex(PavimentoCalcadas.DESCRICAO); + + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + + if ( cursor.moveToFirst() ) { + + pavimentoCalcada.setId(cursor.getInt(codigo)); + pavimentoCalcada.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return pavimentoCalcada; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoRua.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoRua.java new file mode 100644 index 0000000..d9c1d52 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PavimentoRua.java @@ -0,0 +1,125 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsável pelo objeto PavimentoRua + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class PavimentoRua extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int PRUA_ID_INDEX = 1; + private static final int PRUA_DESCRICAO_INDEX = 2; + + + private String descricao; + + public static final String[] colunas = new String[] { + PavimentoRuas.ID, + PavimentoRuas.DESCRICAO + }; + + public static final class PavimentoRuas implements BaseColumns { + public static final String ID = "PRUA_ID"; + public static final String DESCRICAO = "PRUA_DSPAVIMENTORUA"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "PAVIMENTO_RUA"; + } + + public final class PavimentoRuaTipos { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(25) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static PavimentoRua inserirDoArquivo(List c) { + + PavimentoRua pavimentoRua = new PavimentoRua(); + + pavimentoRua.setId(c.get(PRUA_ID_INDEX)); + pavimentoRua.setDescricao(c.get(PRUA_DESCRICAO_INDEX)); + + return pavimentoRua; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(PavimentoRuas.ID, getId()); + values.put(PavimentoRuas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList pavimentoRuas = new ArrayList(); + + do{ + int codigo = cursor.getColumnIndex(PavimentoRuas.ID); + int descricao = cursor.getColumnIndex(PavimentoRuas.DESCRICAO); + + PavimentoRua pavimentoRua = new PavimentoRua(); + + pavimentoRua.setId(cursor.getInt(codigo)); + pavimentoRua.setDescricao(cursor.getString(descricao)); + + pavimentoRuas.add(pavimentoRua); + + } while (cursor.moveToNext()); + + cursor.close(); + return pavimentoRuas; + } + + public PavimentoRua carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(PavimentoRuas.ID); + int descricao = cursor.getColumnIndex(PavimentoRuas.DESCRICAO); + + PavimentoRua pavimentoRua = new PavimentoRua(); + + if ( cursor.moveToFirst() ) { + + pavimentoRua.setId(cursor.getInt(codigo)); + pavimentoRua.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return pavimentoRua; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PessoaSexo.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PessoaSexo.java new file mode 100644 index 0000000..42b161d --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/PessoaSexo.java @@ -0,0 +1,128 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + + +/** + *

+ * Classe responsavel pelo objeto PessoaSexo + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class PessoaSexo extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int PSEX_ID_INDEX = 1; + private static final int PSEX_DESCRICAO_INDEX = 2; + + public static final int MASCULINO = 1; + public static final int FEMININO = 2; + + private String descricao; + + public static final String[] columns = new String[] { + PessoaSexoColunas.ID, + PessoaSexoColunas.DESCRICAO + }; + + public static final class PessoaSexoColunas implements BaseColumns { + public static final String ID = "PSEX_ID"; + public static final String DESCRICAO = "PSEX_DESCRICAO"; + + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "PESSOA_SEXO"; + } + + public final class PessoaSexoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(20) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static PessoaSexo inserirDoArquivo(List c) { + + PessoaSexo pessoaSexo = new PessoaSexo(); + + pessoaSexo.setId(c.get(PSEX_ID_INDEX)); + pessoaSexo.setDescricao(c.get(PSEX_DESCRICAO_INDEX)); + + return pessoaSexo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(PessoaSexoColunas.ID, getId()); + values.put(PessoaSexoColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList pessoaSexos = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(PessoaSexoColunas.ID); + int descricao = cursor.getColumnIndex(PessoaSexoColunas.DESCRICAO); + + PessoaSexo pessoaSexo = new PessoaSexo(); + + pessoaSexo.setId(cursor.getInt(codigo)); + pessoaSexo.setDescricao(cursor.getString(descricao)); + + pessoaSexos.add(pessoaSexo); + + } while (cursor.moveToNext()); + + cursor.close(); + return pessoaSexos; + } + + public PessoaSexo carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(PessoaSexoColunas.ID); + int descricao = cursor.getColumnIndex(PessoaSexoColunas.DESCRICAO); + + PessoaSexo pessoaSexo = new PessoaSexo(); + + if ( cursor.moveToFirst() ) { + + pessoaSexo.setId(cursor.getInt(codigo)); + pessoaSexo.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return pessoaSexo; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Quadra.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Quadra.java new file mode 100644 index 0000000..64fbcf0 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Quadra.java @@ -0,0 +1,159 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto Quadra + *

+ * + * @author Anderson Cabral + * @since 12/12/2012 + */ +public class Quadra extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int QDRA_ID_INDEX = 1; + private static final int QDRA_NNQUADRA_INDEX = 2; + private static final int STCM_CDSETORCOMERCIAL_INDEX = 3; + + private Integer numeroQuadra; + private Integer ordenacao; + private Integer codigoSetorComercial; + + public static final String[] columns = new String[]{ + QuadraColunas.ID, + QuadraColunas.NUMQUADRA, + QuadraColunas.ORDENACAO, + QuadraColunas.CDSETORCOMERCIAL + }; + + public static final class QuadraColunas implements BaseColumns{ + public static final String ID = "QDRA_ID"; + public static final String NUMQUADRA = "QDRA_NNQUADRA"; + public static final String ORDENACAO = "QDRA_ORDENACAO"; + public static final String CDSETORCOMERCIAL = "STCM_CDSETORCOMERCIAL"; + } + + public final class QuadraColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String NUMQUADRA = " INTEGER NOT NULL"; + public final String ORDENACAO = " INTEGER "; + public final String CDSETORCOMERCIAL = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, NUMQUADRA, ORDENACAO, CDSETORCOMERCIAL}; + + public String[] getTipos(){ + return tipos; + } + } + + public static Quadra inserirDoArquivo(List c) { + + Quadra quadra = new Quadra(); + + quadra.setId(c.get(QDRA_ID_INDEX)); + quadra.setNumeroQuadra(Integer.valueOf(c.get(QDRA_NNQUADRA_INDEX))); + quadra.setOrdenacao(quadra.getNumeroQuadra()); + quadra.setCodigoSetorComercial(Integer.valueOf(c.get(STCM_CDSETORCOMERCIAL_INDEX))); + + return quadra; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(QuadraColunas.ID, getId()); + values.put(QuadraColunas.NUMQUADRA, getNumeroQuadra()); + values.put(QuadraColunas.ORDENACAO, getOrdenacao()); + values.put(QuadraColunas.CDSETORCOMERCIAL, getCodigoSetorComercial()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaQuadra = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(QuadraColunas.ID); + int numeroQuadra = cursor.getColumnIndex(QuadraColunas.NUMQUADRA); + int ordenacao = cursor.getColumnIndex(QuadraColunas.ORDENACAO); + int codigoSetorComercial = cursor.getColumnIndex(QuadraColunas.CDSETORCOMERCIAL); + + Quadra quadra = new Quadra(); + + quadra.setId(cursor.getInt(codigo)); + quadra.setNumeroQuadra(cursor.getInt(numeroQuadra)); + quadra.setOrdenacao(cursor.getInt(ordenacao)); + quadra.setCodigoSetorComercial(cursor.getInt(codigoSetorComercial)); + + listaQuadra.add(quadra); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaQuadra; + } + + public Quadra carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(QuadraColunas.ID); + int numeroQuadra = cursor.getColumnIndex(QuadraColunas.NUMQUADRA); + int ordenacao = cursor.getColumnIndex(QuadraColunas.ORDENACAO); + int codigoSetorComercial = cursor.getColumnIndex(QuadraColunas.CDSETORCOMERCIAL); + + Quadra quadra = new Quadra(); + + if ( cursor.moveToFirst() ) { + + quadra.setId(cursor.getInt(codigo)); + quadra.setNumeroQuadra(cursor.getInt(numeroQuadra)); + quadra.setOrdenacao(cursor.getInt(ordenacao)); + quadra.setCodigoSetorComercial(cursor.getInt(codigoSetorComercial)); + } + + cursor.close(); + return quadra; + } + + public Integer getNumeroQuadra() { + return numeroQuadra; + } + + public void setNumeroQuadra(Integer numeroQuadra) { + this.numeroQuadra = numeroQuadra; + } + + public Integer getOrdenacao() { + return ordenacao; + } + + public void setOrdenacao(Integer ordenacao) { + this.ordenacao = ordenacao; + } + + public Integer getCodigoSetorComercial() { + return codigoSetorComercial; + } + + public void setCodigoSetorComercial(Integer codigoSetorComercial) { + this.codigoSetorComercial = codigoSetorComercial; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "QUADRA"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Roteiro.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Roteiro.java new file mode 100644 index 0000000..32a28b9 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/Roteiro.java @@ -0,0 +1,178 @@ +package com.br.gsanac.entidades; + +/** + * Classe que monta os dados da tela de roteiro. + * + * @author Arthur Carvalho + * + */ +public class Roteiro extends EntidadeBase { + + + /** + * + */ + private static final long serialVersionUID = 1L; + + private String nomeCliente; + + private Integer matriculaImovel; + + private String descricaoLogradouro; + + private String descricaoLogradouroTipo; + + private String descricaoLogradouroTitulo; + + private String numeroImovel; + + private String descricaoBairro; + + private Integer idLocalidade; + + private Integer codigoSetorComercial; + + private Integer numeroQuadra; + + private Integer numeroLote; + + private Integer numeroSublote; + + private Integer codigoCep; + + private String descricaoMunicipio; + + private Integer indicadorFinalizado; + + private Integer posicao; + + public String getNomeCliente() { + return nomeCliente; + } + + public void setNomeCliente(String nomeCliente) { + this.nomeCliente = nomeCliente; + } + + public Integer getMatriculaImovel() { + return matriculaImovel; + } + + public void setMatriculaImovel(Integer matriculaImovel) { + this.matriculaImovel = matriculaImovel; + } + + public String getDescricaoLogradouro() { + return descricaoLogradouro; + } + + public void setDescricaoLogradouro(String descricaoLogradouro) { + this.descricaoLogradouro = descricaoLogradouro; + } + + public String getDescricaoLogradouroTipo() { + return descricaoLogradouroTipo; + } + + public void setDescricaoLogradouroTipo(String descricaoLogradouroTipo) { + this.descricaoLogradouroTipo = descricaoLogradouroTipo; + } + + public String getDescricaoLogradouroTitulo() { + return descricaoLogradouroTitulo; + } + + public void setDescricaoLogradouroTitulo(String descricaoLogradouroTitulo) { + this.descricaoLogradouroTitulo = descricaoLogradouroTitulo; + } + + public String getNumeroImovel() { + return numeroImovel; + } + + public void setNumeroImovel(String numeroImovel) { + this.numeroImovel = numeroImovel; + } + + public String getDescricaoBairro() { + return descricaoBairro; + } + + public void setDescricaoBairro(String descricaoBairro) { + this.descricaoBairro = descricaoBairro; + } + + public Integer getIdLocalidade() { + return idLocalidade; + } + + public void setIdLocalidade(Integer idLocalidade) { + this.idLocalidade = idLocalidade; + } + + public Integer getCodigoSetorComercial() { + return codigoSetorComercial; + } + + public void setCodigoSetorComercial(Integer codigoSetorComercial) { + this.codigoSetorComercial = codigoSetorComercial; + } + + public Integer getNumeroQuadra() { + return numeroQuadra; + } + + public void setNumeroQuadra(Integer numeroQuadra) { + this.numeroQuadra = numeroQuadra; + } + + public Integer getNumeroLote() { + return numeroLote; + } + + public void setNumeroLote(Integer numeroLote) { + this.numeroLote = numeroLote; + } + + public Integer getNumeroSublote() { + return numeroSublote; + } + + public void setNumeroSublote(Integer numeroSublote) { + this.numeroSublote = numeroSublote; + } + + public Integer getCodigoCep() { + return codigoCep; + } + + public void setCodigoCep(Integer codigoCep) { + this.codigoCep = codigoCep; + } + + public String getDescricaoMunicipio() { + return descricaoMunicipio; + } + + public void setDescricaoMunicipio(String descricaoMunicipio) { + this.descricaoMunicipio = descricaoMunicipio; + } + + public Integer getIndicadorFinalizado() { + return indicadorFinalizado; + } + + public void setIndicadorFinalizado(Integer indicadorFinalizado) { + this.indicadorFinalizado = indicadorFinalizado; + } + + public Integer getPosicao() { + return posicao; + } + + public void setPosicao(Integer posicao) { + this.posicao = posicao; + } + + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SetorComercial.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SetorComercial.java new file mode 100644 index 0000000..1441120 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SetorComercial.java @@ -0,0 +1,170 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import com.br.gsanac.entidades.Quadra.QuadraColunas; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto SetorComercial + *

+ * + * @author Anderson Cabral + * @since 25/06/2013 + */ +public class SetorComercial extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int STCM_ID_INDEX = 1; + private static final int STCM_CDSETORCOMERCIAL_INDEX = 2; + private static final int STCM_DSSETORCOMERCIAL_INDEX = 3; + + private Integer id; + private Integer codigo; + private String descricao; + private Integer ordenacao; + + public static final String[] columns = new String[]{ + SetorComercialColunas.ID, + SetorComercialColunas.CODIGO, + SetorComercialColunas.DESCRICAO, + SetorComercialColunas.ORDENACAO + }; + + public static final class SetorComercialColunas implements BaseColumns{ + public static final String ID = "STCM_ID"; + public static final String CODIGO = "STCM_CDSETORCOMERCIAL"; + public static final String DESCRICAO = "STCM_DSSETORCOMERCIAL"; + public static final String ORDENACAO = "STCM_ORDENACAO"; + } + + public final class SetorColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CODIGO = " INTEGER NOT NULL"; + public final String DESCRICAO = " VARCHAR(50)"; + public final String ORDENACAO = " INTEGER NOT NULL"; + + private String[] tipos = new String[] {ID, CODIGO, DESCRICAO, ORDENACAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static SetorComercial inserirDoArquivo(List c) { + + SetorComercial setorComercial = new SetorComercial(); + + setorComercial.setId(c.get(STCM_ID_INDEX)); + setorComercial.setCodigo(Integer.valueOf(c.get(STCM_CDSETORCOMERCIAL_INDEX))); + setorComercial.setDescricao(String.valueOf(c.get(STCM_DSSETORCOMERCIAL_INDEX))); + setorComercial.setOrdenacao(setorComercial.getCodigo()); + + return setorComercial; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(SetorComercialColunas.ID, getId()); + values.put(SetorComercialColunas.CODIGO, getCodigo()); + values.put(SetorComercialColunas.DESCRICAO, getDescricao()); + values.put(SetorComercialColunas.ORDENACAO, getOrdenacao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaSetorComercial = new ArrayList(); + cursor.moveToFirst(); + + do{ + int id = cursor.getColumnIndex(SetorComercialColunas.ID); + int codigo = cursor.getColumnIndex(SetorComercialColunas.CODIGO); + int descricao = cursor.getColumnIndex(SetorComercialColunas.DESCRICAO); + int ordenacao = cursor.getColumnIndex(SetorComercialColunas.ORDENACAO); + + SetorComercial setorComercial = new SetorComercial(); + + setorComercial.setId(cursor.getInt(id)); + setorComercial.setCodigo(cursor.getInt(codigo)); + setorComercial.setDescricao(cursor.getString(descricao)); + setorComercial.setOrdenacao(cursor.getInt(ordenacao)); + + listaSetorComercial.add(setorComercial); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaSetorComercial; + } + + public SetorComercial carregarEntidade(Cursor cursor) { + + int id = cursor.getColumnIndex(SetorComercialColunas.ID); + int codigo = cursor.getColumnIndex(SetorComercialColunas.CODIGO); + int descricao = cursor.getColumnIndex(SetorComercialColunas.DESCRICAO); + int ordenacao = cursor.getColumnIndex(SetorComercialColunas.ORDENACAO); + + SetorComercial setorComercial = new SetorComercial(); + + if ( cursor.moveToFirst() ) { + + setorComercial.setId(cursor.getInt(id)); + setorComercial.setCodigo(cursor.getInt(codigo)); + setorComercial.setDescricao(cursor.getString(descricao)); + setorComercial.setOrdenacao(cursor.getInt(ordenacao)); + } + + cursor.close(); + return setorComercial; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getCodigo() { + return codigo; + } + + public void setCodigo(Integer codigo) { + this.codigo = codigo; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public Integer getOrdenacao() { + return ordenacao; + } + + public void setOrdenacao(Integer ordenacao) { + this.ordenacao = ordenacao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "SETOR_COMERCIAL"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SistemaParametros.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SistemaParametros.java new file mode 100644 index 0000000..9556749 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SistemaParametros.java @@ -0,0 +1,403 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + + +/** + *

+ * Classe responsvel pelo objeto Sistema Parametro + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class SistemaParametros extends EntidadeBase { + + private static final long serialVersionUID = 4327285475536305741L; + + private static final int PARM_NMLOGIN_INDEX = 1; + private static final int PARM_SENHA_INDEX = 2; + private static final int PARM_NNIMEI_INDEX = 3; + private static final int PARM_NNVERSAO_INDEX = 4; + private static final int LOCA_ID_INDEX = 5; + private static final int LOCA_DSLOCALIDADE_INDEX = 6; + private static final int STCM_CDSETORCOMERCIAL_INDEX = 7; + private static final int STCM_DSSETORCOMERCIAL_INDEX = 8; + private static final int PARM_COMANDO_INDEX = 9; + private static final int PARM_QTDIMOVEL_INDEX = 10; + private static final int PARM_DESCRICAOARQUIVO_INDEX = 11; + private static final int PARM_IDEMPRESA_INDEX = 12; + + + private String login; + private String senha; + private String imei; + private String numeroVersao; + private String idLocalidade; + private String descricaoLocalidade; + private String idCodigoSetorComercial; + private String descricaoSetorComercial; + private Integer idComando; + private String quantidadeImovel; + private String descricaoArquivo; + private Integer indicadorRoteiroFinalizado; + private Integer indicadorMapa; + private Integer idEmpresa; + private Integer indicadorArquivoCarregado; + + + public static final String[] colunas = new String[] { + SistemaParametrosColunas.ID, + SistemaParametrosColunas.LOGIN, + SistemaParametrosColunas.SENHA, + SistemaParametrosColunas.IMEI, + SistemaParametrosColunas.NUMERO_VERSAO, + SistemaParametrosColunas.LOCALIDADE, + SistemaParametrosColunas.LOCALIDADE_DESCRICAO, + SistemaParametrosColunas.SETOR_COMERCIAL, + SistemaParametrosColunas.SETOR_COMERCIAL_DESCRICAO, + SistemaParametrosColunas.COMANDO, + SistemaParametrosColunas.QUANTIDADE_IMOVEL, + SistemaParametrosColunas.INDICADOR_FINALIZADO, + SistemaParametrosColunas.INDICADOR_MAPA, + SistemaParametrosColunas.DESCRICAO_ARQUIVO, + SistemaParametrosColunas.ID_EMPRESA, + SistemaParametrosColunas.INDICADOR_ARQUIVO_CARREGADO + }; + + public static final class SistemaParametrosColunas implements BaseColumns { + public static final String ID = "PARM_ID"; + public static final String LOGIN = "PARM_NMLOGIN"; + public static final String SENHA = "PARM_SENHA"; + public static final String IMEI = "PARM_NNIMEI"; + public static final String NUMERO_VERSAO = "PARM_NNVERSAO"; + public static final String LOCALIDADE = "LOCA_ID"; + public static final String LOCALIDADE_DESCRICAO = "LOCA_DSLOCALIDADE"; + public static final String SETOR_COMERCIAL = "STCM_CDSETORCOMERCIAL"; + public static final String SETOR_COMERCIAL_DESCRICAO = "STCM_DSSETORCOMERCIAL"; + public static final String COMANDO = "PARM_COMANDO"; + public static final String QUANTIDADE_IMOVEL = "PARM_QTDIMOVEL"; + public static final String INDICADOR_FINALIZADO = "PARM_INDICADORFINALIZADO"; + public static final String INDICADOR_MAPA = "PARM_INDICADORMAPA"; + public static final String DESCRICAO_ARQUIVO = "PARM_DESCRICAOARQUIVO"; + public static final String ID_EMPRESA = "PARM_IDEMPRESA"; + public static final String INDICADOR_ARQUIVO_CARREGADO = "PARM_ICARQUIVOCARREGADO"; + + } + + public String[] getColunas(){ + return colunas; + } + + public String getNomeTabela(){ + return "SISTEMA_PARAMETROS"; + } + + public final class SistemaParametrosColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String LOGIN = " VARCHAR(11) NOT NULL"; + public final String SENHA = " VARCHAR(40) "; + public final String IMEI = " VARCHAR(15) NOT NULL"; + public final String NUMERO_VERSAO = " VARCHAR(10) NOT NULL"; + public final String LOCALIDADE = " INTEGER "; + public final String LOCALIDADE_DESCRICAO = " VARCHAR(25) NOT NULL "; + public final String SETOR_COMERCIAL = " INTEGER "; + public final String SETOR_COMERCIAL_DESCRICAO = " VARCHAR(25) NOT NULL "; + public final String COMANDO = " INTEGER "; + public final String QUANTIDADE_IMOVEL = " VARCHAR(15) NOT NULL"; + public final String INDICADOR_FINALIZADO = " INTEGER "; + public final String INDICADOR_MAPA = " INTEGER "; + public final String DESCRICAO_ARQUIVO = " VARCHAR(30) "; + public final String ID_EMPRESA = " INTEGER "; + public final String INDICADOR_ARQUIVO_CARREGADO = " INTEGER "; + + + private String[] tipos = new String[] {ID, LOGIN, SENHA, IMEI, NUMERO_VERSAO,LOCALIDADE, LOCALIDADE_DESCRICAO, + SETOR_COMERCIAL, SETOR_COMERCIAL_DESCRICAO, COMANDO, QUANTIDADE_IMOVEL, INDICADOR_FINALIZADO, INDICADOR_MAPA, + DESCRICAO_ARQUIVO, ID_EMPRESA, INDICADOR_ARQUIVO_CARREGADO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static SistemaParametros inserirDoArquivo(List c, String cpfLogin) { + + SistemaParametros sistemaParametros = new SistemaParametros(); + + sistemaParametros.setId(1); + if ( cpfLogin != null && !cpfLogin.equals("") ) { + sistemaParametros.setLogin(cpfLogin); + } else { + sistemaParametros.setLogin(c.get(PARM_NMLOGIN_INDEX)); + sistemaParametros.setSenha(c.get(PARM_SENHA_INDEX)); + } + + sistemaParametros.setImei(c.get(PARM_NNIMEI_INDEX)); + sistemaParametros.setNumeroVersao(c.get(PARM_NNVERSAO_INDEX)); + sistemaParametros.setIdLocalidade(c.get(LOCA_ID_INDEX)); + sistemaParametros.setDescricaoLocalidade(c.get(LOCA_DSLOCALIDADE_INDEX)); + sistemaParametros.setIdCodigoSetorComercial(c.get(STCM_CDSETORCOMERCIAL_INDEX)); + sistemaParametros.setDescricaoSetorComercial(c.get(STCM_DSSETORCOMERCIAL_INDEX)); + sistemaParametros.setIdComando(Util.verificarNuloInt(c.get(PARM_COMANDO_INDEX))); + sistemaParametros.setQuantidadeImovel(c.get(PARM_QTDIMOVEL_INDEX)); + sistemaParametros.setIndicadorRoteiroFinalizado(ConstantesSistema.PENDENTE); + sistemaParametros.setIndicadorMapa(ConstantesSistema.SIM); + sistemaParametros.setDescricaoArquivo(c.get(PARM_DESCRICAOARQUIVO_INDEX)); + sistemaParametros.setIdEmpresa(Util.verificarNuloInt(c.get(PARM_IDEMPRESA_INDEX))); + + //aarquivo carregado incompleto. + sistemaParametros.setIndicadorArquivoCarregado(Integer.valueOf(2)); + + + return sistemaParametros; + } + + + public String getLogin() { + return login; + } + + public void setLogin(String login) { + this.login = login; + } + + public String getSenha() { + return senha; + } + + public void setSenha(String senha) { + this.senha = senha; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei; + } + + public String getNumeroVersao() { + return numeroVersao; + } + + public void setNumeroVersao(String numeroVersao) { + this.numeroVersao = numeroVersao; + } + + public String getIdLocalidade() { + return idLocalidade; + } + + public void setIdLocalidade(String idLocalidade) { + this.idLocalidade = idLocalidade; + } + + public String getDescricaoLocalidade() { + return descricaoLocalidade; + } + + public void setDescricaoLocalidade(String descricaoLocalidade) { + this.descricaoLocalidade = descricaoLocalidade; + } + + public String getIdCodigoSetorComercial() { + return idCodigoSetorComercial; + } + + public void setIdCodigoSetorComercial(String idCodigoSetorComercial) { + this.idCodigoSetorComercial = idCodigoSetorComercial; + } + + public String getDescricaoSetorComercial() { + return descricaoSetorComercial; + } + + public void setDescricaoSetorComercial(String descricaoSetorComercial) { + this.descricaoSetorComercial = descricaoSetorComercial; + } + + public String getQuantidadeImovel() { + return quantidadeImovel; + } + + public void setQuantidadeImovel(String quantidadeImovel) { + this.quantidadeImovel = quantidadeImovel; + } + + public Integer getIdComando() { + return idComando; + } + + public void setIdComando(Integer idComando) { + this.idComando = idComando; + } + + public Integer getIndicadorRoteiroFinalizado() { + return indicadorRoteiroFinalizado; + } + + public void setIndicadorRoteiroFinalizado(Integer indicadorRoteiroFinalizado) { + this.indicadorRoteiroFinalizado = indicadorRoteiroFinalizado; + } + + public Integer getIndicadorMapa() { + return indicadorMapa; + } + + public void setIndicadorMapa(Integer indicadorMapa) { + this.indicadorMapa = indicadorMapa; + } + + public String getDescricaoArquivo() { + return descricaoArquivo; + } + + public void setDescricaoArquivo(String descricaoArquivo) { + this.descricaoArquivo = descricaoArquivo; + } + + public Integer getIdEmpresa() { + return idEmpresa; + } + + public void setIdEmpresa(Integer idEmpresa) { + this.idEmpresa = idEmpresa; + } + + public Integer getIndicadorArquivoCarregado() { + return indicadorArquivoCarregado; + } + + public void setIndicadorArquivoCarregado(Integer indicadorArquivoCarregado) { + this.indicadorArquivoCarregado = indicadorArquivoCarregado; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(SistemaParametrosColunas.ID, getId()); + values.put(SistemaParametrosColunas.LOGIN, getLogin()); + values.put(SistemaParametrosColunas.SENHA, getSenha()); + values.put(SistemaParametrosColunas.IMEI, getImei()); + values.put(SistemaParametrosColunas.NUMERO_VERSAO, getNumeroVersao()); + values.put(SistemaParametrosColunas.LOCALIDADE, getIdLocalidade()); + values.put(SistemaParametrosColunas.LOCALIDADE_DESCRICAO, getDescricaoLocalidade()); + values.put(SistemaParametrosColunas.SETOR_COMERCIAL, getIdCodigoSetorComercial()); + values.put(SistemaParametrosColunas.SETOR_COMERCIAL_DESCRICAO, getDescricaoSetorComercial()); + values.put(SistemaParametrosColunas.COMANDO, getIdComando()); + values.put(SistemaParametrosColunas.QUANTIDADE_IMOVEL, getQuantidadeImovel()); + values.put(SistemaParametrosColunas.INDICADOR_FINALIZADO, getIndicadorRoteiroFinalizado()); + values.put(SistemaParametrosColunas.INDICADOR_MAPA, getIndicadorMapa()); + values.put(SistemaParametrosColunas.DESCRICAO_ARQUIVO, getDescricaoArquivo()); + values.put(SistemaParametrosColunas.ID_EMPRESA, getIdEmpresa()); + values.put(SistemaParametrosColunas.INDICADOR_ARQUIVO_CARREGADO, getIndicadorArquivoCarregado()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaSistemaParametros = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(SistemaParametrosColunas.ID); + int login = cursor.getColumnIndex(SistemaParametrosColunas.LOGIN); + int senha = cursor.getColumnIndex(SistemaParametrosColunas.SENHA); + int imei = cursor.getColumnIndex(SistemaParametrosColunas.IMEI); + int versao = cursor.getColumnIndex(SistemaParametrosColunas.NUMERO_VERSAO); + int loca = cursor.getColumnIndex(SistemaParametrosColunas.LOCALIDADE); + int dsloca = cursor.getColumnIndex(SistemaParametrosColunas.LOCALIDADE_DESCRICAO); + int setor = cursor.getColumnIndex(SistemaParametrosColunas.SETOR_COMERCIAL); + int dsSetor = cursor.getColumnIndex(SistemaParametrosColunas.SETOR_COMERCIAL_DESCRICAO); + int comando = cursor.getColumnIndex(SistemaParametrosColunas.COMANDO); + int quantidade = cursor.getColumnIndex(SistemaParametrosColunas.QUANTIDADE_IMOVEL); + int indicadorFinalizado = cursor.getColumnIndex(SistemaParametrosColunas.INDICADOR_FINALIZADO); + int indicadorMapa = cursor.getColumnIndex(SistemaParametrosColunas.INDICADOR_MAPA); + int descricaoArquivo = cursor.getColumnIndex(SistemaParametrosColunas.DESCRICAO_ARQUIVO); + int idEmpresa = cursor.getColumnIndex(SistemaParametrosColunas.ID_EMPRESA); + int indicadorArquivoCarregado = cursor.getColumnIndex(SistemaParametrosColunas.INDICADOR_ARQUIVO_CARREGADO); + + SistemaParametros sistemaParametros = new SistemaParametros(); + + sistemaParametros.setId(cursor.getInt(codigo)); + sistemaParametros.setLogin(cursor.getString(login)); + sistemaParametros.setSenha(cursor.getString(senha)); + sistemaParametros.setImei(cursor.getString(imei)); + sistemaParametros.setNumeroVersao(cursor.getString(versao)); + sistemaParametros.setIdLocalidade(cursor.getString(loca)); + sistemaParametros.setDescricaoLocalidade(cursor.getString(dsloca)); + sistemaParametros.setIdCodigoSetorComercial(cursor.getString(setor)); + sistemaParametros.setDescricaoSetorComercial(cursor.getString(dsSetor)); + sistemaParametros.setIdComando(cursor.getInt(comando)); + sistemaParametros.setQuantidadeImovel(cursor.getString(quantidade)); + sistemaParametros.setIndicadorRoteiroFinalizado(cursor.getInt(indicadorFinalizado)); + sistemaParametros.setIndicadorMapa(cursor.getInt(indicadorMapa)); + sistemaParametros.setDescricaoArquivo(cursor.getString(descricaoArquivo)); + sistemaParametros.setIdEmpresa(cursor.getInt(idEmpresa)); + sistemaParametros.setIndicadorArquivoCarregado(cursor.getInt(indicadorArquivoCarregado)); + + listaSistemaParametros.add(sistemaParametros); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaSistemaParametros; + } + + public SistemaParametros carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(SistemaParametrosColunas.ID); + int login = cursor.getColumnIndex(SistemaParametrosColunas.LOGIN); + int senha = cursor.getColumnIndex(SistemaParametrosColunas.SENHA); + int imei = cursor.getColumnIndex(SistemaParametrosColunas.IMEI); + int versao = cursor.getColumnIndex(SistemaParametrosColunas.NUMERO_VERSAO); + int loca = cursor.getColumnIndex(SistemaParametrosColunas.LOCALIDADE); + int dsloca = cursor.getColumnIndex(SistemaParametrosColunas.LOCALIDADE_DESCRICAO); + int setor = cursor.getColumnIndex(SistemaParametrosColunas.SETOR_COMERCIAL); + int dsSetor = cursor.getColumnIndex(SistemaParametrosColunas.SETOR_COMERCIAL_DESCRICAO); + int quantidade = cursor.getColumnIndex(SistemaParametrosColunas.QUANTIDADE_IMOVEL); + int comando = cursor.getColumnIndex(SistemaParametrosColunas.COMANDO); + int indicadorFinalizado = cursor.getColumnIndex(SistemaParametrosColunas.INDICADOR_FINALIZADO); + int indicadorMapa = cursor.getColumnIndex(SistemaParametrosColunas.INDICADOR_MAPA); + int descricaoArquivo = cursor.getColumnIndex(SistemaParametrosColunas.DESCRICAO_ARQUIVO); + int idEmpresa = cursor.getColumnIndex(SistemaParametrosColunas.ID_EMPRESA); + int indicadorArquivoCarregado = cursor.getColumnIndex(SistemaParametrosColunas.INDICADOR_ARQUIVO_CARREGADO); + + SistemaParametros sistemaParametros = new SistemaParametros(); + + if ( cursor.moveToFirst() ) { + + sistemaParametros.setId(cursor.getInt(codigo)); + sistemaParametros.setLogin(cursor.getString(login)); + sistemaParametros.setSenha(cursor.getString(senha)); + sistemaParametros.setImei(cursor.getString(imei)); + sistemaParametros.setNumeroVersao(cursor.getString(versao)); + sistemaParametros.setIdLocalidade(cursor.getString(loca)); + sistemaParametros.setDescricaoLocalidade(cursor.getString(dsloca)); + sistemaParametros.setIdCodigoSetorComercial(cursor.getString(setor)); + sistemaParametros.setDescricaoSetorComercial(cursor.getString(dsSetor)); + sistemaParametros.setQuantidadeImovel(cursor.getString(quantidade)); + sistemaParametros.setIdComando(cursor.getInt(comando)); + sistemaParametros.setIndicadorRoteiroFinalizado(cursor.getInt(indicadorFinalizado)); + sistemaParametros.setIndicadorMapa(cursor.getInt(indicadorMapa)); + sistemaParametros.setDescricaoArquivo(cursor.getString(descricaoArquivo)); + sistemaParametros.setIdEmpresa(cursor.getInt(idEmpresa)); + sistemaParametros.setIndicadorArquivoCarregado(cursor.getInt(indicadorArquivoCarregado)); + } + + cursor.close(); + return sistemaParametros; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SubCategoria.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SubCategoria.java new file mode 100644 index 0000000..3bbdff2 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/SubCategoria.java @@ -0,0 +1,152 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto SubCategoria + *

+ * + * @author Anderson Cabral + * @since 10/12/2012 + */ +public class SubCategoria extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int SCAT_ID_INDEX = 1; + private static final int CATG_ID_INDEX = 2; + private static final int SCAT_DSSUBCATEGORIA_INDEX = 3; + + private String descricao; + private Categoria categoria; + + public static final String[] columns = new String[]{ + SubCategoriaColunas.ID, + SubCategoriaColunas.CATEGORIA_ID, + SubCategoriaColunas.DESCRICAO + }; + + public static final class SubCategoriaColunas implements BaseColumns{ + public static final String ID = "SCAT_ID"; + public static final String CATEGORIA_ID = "CATG_ID"; + public static final String DESCRICAO = "SCAT_DSSUBCATEGORIA"; + } + + public final class SubCategoriaColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String CATEGORIA_ID = " INTEGER NOT NULL"; + public final String DESCRICAO = " VARCHAR(16) NOT NULL"; + + private String[] tipos = new String[] {ID, CATEGORIA_ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static SubCategoria inserirDoArquivo(List c) { + + SubCategoria subCategoria = new SubCategoria(); + Categoria _categoria = new Categoria(); + + subCategoria.setId(c.get(SCAT_ID_INDEX)); + _categoria.setId(c.get(CATG_ID_INDEX)); + subCategoria.setCategoria(_categoria); + subCategoria.setDescricao(c.get(SCAT_DSSUBCATEGORIA_INDEX)); + + return subCategoria; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(SubCategoriaColunas.ID, getId()); + values.put(SubCategoriaColunas.CATEGORIA_ID, getCategoria().getId()); + values.put(SubCategoriaColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaSubCategoria = new ArrayList(); + cursor.moveToFirst(); + + do{ + int codigo = cursor.getColumnIndex(SubCategoriaColunas.ID); + int categoriaId = cursor.getColumnIndex(SubCategoriaColunas.CATEGORIA_ID); + int descricao = cursor.getColumnIndex(SubCategoriaColunas.DESCRICAO); + + SubCategoria subCategoria = new SubCategoria(); + + Categoria _categoria = new Categoria(); + + subCategoria.setId(cursor.getInt(codigo)); + + _categoria.setId(cursor.getInt(categoriaId)); + subCategoria.setCategoria(_categoria); + + subCategoria.setDescricao(cursor.getString(descricao)); + + listaSubCategoria.add(subCategoria); + + } while (cursor.moveToNext()); + + cursor.close(); + return listaSubCategoria; + } + + public SubCategoria carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(SubCategoriaColunas.ID); + int categoriaId = cursor.getColumnIndex(SubCategoriaColunas.CATEGORIA_ID); + int descricao = cursor.getColumnIndex(SubCategoriaColunas.DESCRICAO); + + SubCategoria subCategoria = new SubCategoria(); + + if ( cursor.moveToFirst() ) { + Categoria _categoria = new Categoria(); + + subCategoria.setId(cursor.getInt(codigo)); + + _categoria.setId(cursor.getInt(categoriaId)); + subCategoria.setCategoria(_categoria); + + subCategoria.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return subCategoria; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public Categoria getCategoria() { + return categoria; + } + + public void setCategoria(Categoria categoria) { + this.categoria = categoria; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "SUBCATEGORIA"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/UnidadeFederacao.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/UnidadeFederacao.java new file mode 100644 index 0000000..388b272 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/UnidadeFederacao.java @@ -0,0 +1,122 @@ +package com.br.gsanac.entidades; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.provider.BaseColumns; + +/** + *

+ * Classe responsavel pelo objeto UnidadeFederacao + *

+ * + * @author Davi Menezes + * @since 27/12/2012 + */ +public class UnidadeFederacao extends EntidadeBase { + + private static final long serialVersionUID = 1L; + + private static final int UNFE_ID_INDEX = 1; + private static final int UNFE_DSUFSIGLA_INDEX = 2; + + private String descricao; + + public static final String[] columns = new String[]{ + UnidadeFederacaoColunas.ID, + UnidadeFederacaoColunas.DESCRICAO + }; + + public static final class UnidadeFederacaoColunas implements BaseColumns{ + public static final String ID = "UNFE_ID"; + public static final String DESCRICAO = "UNFE_DSUFSIGLA"; + } + + public final class UnidadeFederacaoColunasTipo { + public final String ID = " INTEGER PRIMARY KEY"; + public final String DESCRICAO = " VARCHAR(2) NOT NULL"; + + private String[] tipos = new String[] {ID, DESCRICAO}; + + public String[] getTipos(){ + return tipos; + } + } + + public static UnidadeFederacao inserirDoArquivo(List c) { + + UnidadeFederacao unidadeFederacao = new UnidadeFederacao(); + + unidadeFederacao.setId(c.get(UNFE_ID_INDEX)); + unidadeFederacao.setDescricao(c.get(UNFE_DSUFSIGLA_INDEX)); + + return unidadeFederacao; + } + + public ContentValues carregarValues() { + + ContentValues values = new ContentValues(); + + values.put(UnidadeFederacaoColunas.ID , getId()); + values.put(UnidadeFederacaoColunas.DESCRICAO, getDescricao()); + + return values; + } + + public ArrayList carregarListaEntidade(Cursor cursor) { + + ArrayList listaUnidadeFederacao = new ArrayList(); + if ( cursor.moveToFirst() ) { + do{ + int codigo = cursor.getColumnIndex(UnidadeFederacaoColunas.ID); + int descricao = cursor.getColumnIndex(UnidadeFederacaoColunas.DESCRICAO); + + UnidadeFederacao unidadeFederacao = new UnidadeFederacao(); + + unidadeFederacao.setId(cursor.getInt(codigo)); + unidadeFederacao.setDescricao(cursor.getString(descricao)); + + listaUnidadeFederacao.add(unidadeFederacao); + + } while (cursor.moveToNext()); + } + + cursor.close(); + return listaUnidadeFederacao; + } + + public UnidadeFederacao carregarEntidade(Cursor cursor) { + + int codigo = cursor.getColumnIndex(UnidadeFederacaoColunas.ID); + int descricao = cursor.getColumnIndex(UnidadeFederacaoColunas.DESCRICAO); + + UnidadeFederacao unidadeFederacao = new UnidadeFederacao(); + + if ( cursor.moveToFirst() ) { + + unidadeFederacao.setId(cursor.getInt(codigo)); + unidadeFederacao.setDescricao(cursor.getString(descricao)); + } + + cursor.close(); + return unidadeFederacao; + } + + public String getDescricao() { + return descricao; + } + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + public String[] getColunas(){ + return columns; + } + + public String getNomeTabela(){ + return "UNIDADE_FEDERACAO"; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/ClienteFoneHelper.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/ClienteFoneHelper.java new file mode 100644 index 0000000..ae79bac --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/ClienteFoneHelper.java @@ -0,0 +1,84 @@ +package com.br.gsanac.entidades.bean; + +/** + * + * @author Davi Menezes + * @date 03/01/2012 + * + */ +public class ClienteFoneHelper { + + private int idFoneTipo; + + private String descricaoFoneTipo; + + private String codigoDDD; + + private String numeroTelefone; + + public int getIdFoneTipo() { + return idFoneTipo; + } + + public void setIdFoneTipo(int idFoneTipo) { + this.idFoneTipo = idFoneTipo; + } + + public String getDescricaoFoneTipo() { + return descricaoFoneTipo; + } + + public void setDescricaoFoneTipo(String descricaoFoneTipo) { + this.descricaoFoneTipo = descricaoFoneTipo; + } + + public String getCodigoDDD() { + return codigoDDD; + } + + public void setCodigoDDD(String codigoDDD) { + this.codigoDDD = codigoDDD; + } + + public String getNumeroTelefone() { + return numeroTelefone; + } + + public void setNumeroTelefone(String numeroTelefone) { + this.numeroTelefone = numeroTelefone; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + + ((codigoDDD == null) ? 0 : codigoDDD.hashCode()); + result = prime * result + + ((numeroTelefone == null) ? 0 : numeroTelefone.hashCode()); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + ClienteFoneHelper other = (ClienteFoneHelper) obj; + if (codigoDDD == null) { + if (other.codigoDDD != null) + return false; + } else if (!codigoDDD.equals(other.codigoDDD)) + return false; + if (numeroTelefone == null) { + if (other.numeroTelefone != null) + return false; + } else if (!numeroTelefone.equals(other.numeroTelefone)) + return false; + return true; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioOcorrenciaCadastro.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioOcorrenciaCadastro.java new file mode 100644 index 0000000..1792bc7 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioOcorrenciaCadastro.java @@ -0,0 +1,73 @@ +package com.br.gsanac.entidades.bean; + +import java.io.Serializable; + +public class RelatorioOcorrenciaCadastro implements Serializable{ + private static final long serialVersionUID = 1L; + + private Integer totalImoveis; + private Integer totalImoveisAtualizados; + private Integer totalImoveisIncluidos; + private Integer totalImoveisVisitados; + private String descricao; + + public RelatorioOcorrenciaCadastro(Integer totalImoveis, Integer totalImoveisAtualizados, Integer totalImoveisIncluidos, Integer totalImoveisVisitados, String descricao){ + super(); + this.totalImoveis = totalImoveis; + this.totalImoveisAtualizados = totalImoveisAtualizados; + this.totalImoveisIncluidos = totalImoveisIncluidos; + this.totalImoveisVisitados = totalImoveisVisitados; + this.descricao = descricao; + } + + + + public Integer getTotalImoveis() { + return totalImoveis; + } + + + public void setTotalImoveis(Integer totalImoveis) { + this.totalImoveis = totalImoveis; + } + + + public Integer getTotalImoveisAtualizados() { + return totalImoveisAtualizados; + } + + public void setTotalImoveisAtualizados(Integer totalImoveisAtualizados) { + this.totalImoveisAtualizados = totalImoveisAtualizados; + } + + public Integer getTotalImoveisIncluidos() { + return totalImoveisIncluidos; + } + + public void setTotalImoveisIncluidos(Integer totalImoveisIncluidos) { + this.totalImoveisIncluidos = totalImoveisIncluidos; + } + + public Integer getTotalImoveisVisitados() { + return totalImoveisVisitados; + } + + public void setTotalImoveisVisitados(Integer totalImoveisVisitados) { + this.totalImoveisVisitados = totalImoveisVisitados; + } + + + + public String getDescricao() { + return descricao; + } + + + + public void setDescricao(String descricao) { + this.descricao = descricao; + } + + + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioPorCadastrador.java b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioPorCadastrador.java new file mode 100644 index 0000000..bca3b46 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/entidades/bean/RelatorioPorCadastrador.java @@ -0,0 +1,66 @@ +package com.br.gsanac.entidades.bean; + +import java.io.Serializable; + +public class RelatorioPorCadastrador implements Serializable{ + private static final long serialVersionUID = 1L; + + private Integer totalImoveis; + private Integer totalImoveisAtualizados; + private Integer totalImoveisIncluidos; + private Integer totalImoveisVisitados; + private String login; + + public RelatorioPorCadastrador(Integer totalImoveis, Integer totalImoveisAtualizados, Integer totalImoveisIncluidos, Integer totalImoveisVisitados, String login){ + super(); + this.totalImoveis = totalImoveis; + this.totalImoveisAtualizados = totalImoveisAtualizados; + this.totalImoveisIncluidos = totalImoveisIncluidos; + this.totalImoveisVisitados = totalImoveisVisitados; + this.login = login; + } + + public Integer getTotalImoveis() { + return totalImoveis; + } + + public void setTotalImoveis(Integer totalImoveis) { + this.totalImoveis = totalImoveis; + } + + public Integer getTotalImoveisAtualizados() { + return totalImoveisAtualizados; + } + + public void setTotalImoveisAtualizados(Integer totalImoveisAtualizados) { + this.totalImoveisAtualizados = totalImoveisAtualizados; + } + + public Integer getTotalImoveisIncluidos() { + return totalImoveisIncluidos; + } + + public void setTotalImoveisIncluidos(Integer totalImoveisIncluidos) { + this.totalImoveisIncluidos = totalImoveisIncluidos; + } + + public Integer getTotalImoveisVisitados() { + return totalImoveisVisitados; + } + + public void setTotalImoveisVisitados(Integer totalImoveisVisitados) { + this.totalImoveisVisitados = totalImoveisVisitados; + } + + public String getLogin() { + return login; + } + + public void setLogin(String login) { + this.login = login; + } + + + + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/exception/ControladorException.java b/atualizacao-cadastral-master/src/com/br/gsanac/exception/ControladorException.java new file mode 100644 index 0000000..f7bd0b1 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/exception/ControladorException.java @@ -0,0 +1,17 @@ +package com.br.gsanac.exception; + +public class ControladorException extends Exception { + + /** + * + */ + private static final long serialVersionUID = 5284572905984504356L; + + public ControladorException() { + super(); + } + + public ControladorException(String message) { + super(message); + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/exception/FachadaException.java b/atualizacao-cadastral-master/src/com/br/gsanac/exception/FachadaException.java new file mode 100644 index 0000000..8cdeffb --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/exception/FachadaException.java @@ -0,0 +1,22 @@ +package com.br.gsanac.exception; + +import android.util.Log; + +import com.br.gsanac.util.ConstantesSistema; + +public class FachadaException extends Exception { + + /** + * + */ + private static final long serialVersionUID = -5627298278947792277L; + + public FachadaException(String message) { + super(message); + Log.e(ConstantesSistema.LOG_TAG, message); + } + + public FachadaException() { + super(); + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/exception/RepositorioException.java b/atualizacao-cadastral-master/src/com/br/gsanac/exception/RepositorioException.java new file mode 100644 index 0000000..32fa29e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/exception/RepositorioException.java @@ -0,0 +1,22 @@ +package com.br.gsanac.exception; + +import android.util.Log; + +import com.br.gsanac.util.ConstantesSistema; + +public class RepositorioException extends Exception { + + /** + * + */ + private static final long serialVersionUID = -6282470126821833043L; + + public RepositorioException() { + super(); + } + + public RepositorioException(String message) { + super(message); + Log.e(ConstantesSistema.LOG_TAG, message); + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/fachada/Fachada.java b/atualizacao-cadastral-master/src/com/br/gsanac/fachada/Fachada.java new file mode 100644 index 0000000..e18dc59 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/fachada/Fachada.java @@ -0,0 +1,786 @@ +package com.br.gsanac.fachada; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import android.content.Context; +import android.database.Cursor; +import android.view.Display; +import android.view.WindowManager; + +import com.br.gsanac.controlador.ControladorBase; +import com.br.gsanac.controlador.ControladorUtil; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.Roteiro; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.ControladorException; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.repositorio.RepositorioImovelAtlzCadastral; + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + */ +@SuppressWarnings({ + "rawtypes", + "unchecked" +}) +public class Fachada { + + private static Fachada instance; + + @SuppressWarnings("unused") + private ControladorBase controladorBase; + + + private ControladorUtil controladorUtil; + + + public Fachada() { + this.controladorBase = ControladorBase.getInstance(); + this.controladorUtil = ControladorUtil.getInstance(); + } + + public static Fachada getInstance() { + if (instance == null) { + instance = new Fachada(); + } + return instance; + } + + public static void setContext(Context c) { + ControladorBase.getInstance().setContext(c); + } + + public static Context getContext() { + return ControladorBase.getContext(); + } + + /** + * @author Erivan Sousa + * @since 06/09/2011 + * @param login + * @param password + * @return + */ + public SistemaParametros validateLogin(String login, String password) throws FachadaException { + try { + return controladorUtil.validarLogin(login, password); + } catch (ControladorException e) { + e.printStackTrace(); + throw new FachadaException(e.getMessage()); + } + } + + + + /** + * @author Arthur Carvalho + * @since 12/09/2011 + * @param clazz + * @param orderBy + * @return um array de objetos do tipo t + * @throws FachadaException + */ + public List pesquisarLista(Class clazz, String selection, String selectionArgs[], + String orderBy) throws FachadaException { + try { + return ControladorBase.getInstance().pesquisarLista(clazz, selection, selectionArgs, orderBy); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public Object pesquisar(EntidadeBase entity, String selection, String[] selectionArgs) throws FachadaException { + try { + return ControladorBase.getInstance().pesquisar(entity, selection, selectionArgs); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public long inserir(EntidadeBase entity) throws FachadaException { + try { + return ControladorBase.getInstance().inserir(entity); + } catch (ControladorException e) { + throw new FachadaException(e.getMessage()); + } + } + + public void update(EntidadeBase entity) throws FachadaException { + try { + ControladorBase.getInstance().atualizar(entity); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public void remover(EntidadeBase entity) throws FachadaException { + try { + ControladorBase.getInstance().remover(entity); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public Cursor getCursor(Class clazz, String idField, String descriptionField, String tablename) + throws FachadaException { + try { + return ControladorBase.getInstance().getCursor(clazz, idField, descriptionField, tablename); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public Cursor getCursor(Class clazz, String idField, String descriptionField, String tablename, String where) + throws FachadaException { + try { + return ControladorBase.getInstance().getCursor(clazz, idField, descriptionField, tablename, where); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public Cursor getCursorOrderBy(Class clazz, String idField, String descriptionField, String tablename, String where, String orderBy) + throws FachadaException { + try { + return ControladorBase.getInstance().getCursorOrderBy(clazz, idField, descriptionField, tablename, where, orderBy); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Metodo responsavel por validar os campos da aba localidade + * + * @author Arthur Carvalho + * @date 21/12/2012 + * + * @param imovelAtlzCadastral + * @return + * @throws FachadaException + */ + public String validarAbaLocalidade(ImovelAtlzCadastral imovelAtlzCadastral ) throws FachadaException { + + try{ + return controladorUtil.validarAbaLocalidade(imovelAtlzCadastral); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Metodo responsavel por validar os campos da aba endereco + * + * @author Anderson Cabral + * @date 26/12/2012 + * + * @param imovelAtlzCadastral + * @return Mensagem de Erro + * @throws FachadaException + */ + public String validarAbaEndereco(ImovelAtlzCadastral imovelAtlzCadastral ) throws FachadaException { + + try{ + return controladorUtil.validarAbaEndereco(imovelAtlzCadastral); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Mtodo responsvel por validar os campos da aba cliente + * + * @author Davi Menezes + * @date 28/12/2012 + * + * @param clienteAtlzCadastral + * @return Mensagem de Erro + * @throws FachadaException + */ + public String validarAbaCliente(ClienteAtlzCadastral clienteAtlzCadastral, Integer idLigacaoAguaSituacao) throws FachadaException { + try{ + return controladorUtil.validarAbaCliente(clienteAtlzCadastral, idLigacaoAguaSituacao); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Retorna true se a orientacao default do celular dor LANDSCAPE + * @author Amelia Pessoa + * @param Contexto + * @return + */ + @SuppressWarnings("deprecation") + public boolean isOrientacaoLandscape(Context ctx){ + Display display = ((WindowManager) ctx.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay(); + if(display.getOrientation()==1){ + return true; + } else { + return false; + } + } + + /** + * Metodo responsavel por validar os campos da aba ligacao + * + * @author Anderson Cabral + * @date 03/01/2013 + * + * @param imovelAtlzCadastral + * @param hidrometroInstHistAtlzCad + * @return Mensagem de Erro + * @throws FachadaException + */ + public String validarAbaLigacao(ImovelAtlzCadastral imovelAtlzCadastral, HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws FachadaException { + try{ + return controladorUtil.validarAbaLigacao(imovelAtlzCadastral, hidrometroInstHistAtlzCad); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Metodo responsavel por validar os campos da aba imovel + * + * @author Davi Menezes + * @date 07/01/2013 + * + * @param imovelAtlzCadastral + * @return Mensagem de Erro + * @throws FachadaException + */ + public String validarAbaImovel(ImovelAtlzCadastral imovelAtlzCadastral) throws FachadaException{ + try{ + return controladorUtil.validarAbaImovel(imovelAtlzCadastral); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Metodo que pesquisa o imovel de acordo com a posicao dele no roteiro. + * + * @author Arthur Carvalho + * @date 08/01/2013 + * + * @param posicao + * @return + * @throws ControladorException + */ + public ImovelAtlzCadastral buscarImovelPosicao(Integer posicao) throws FachadaException{ + try{ + return controladorUtil.buscarImovelPosicao(posicao); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * Metodo responsavel por validar os campos da aba Fotos + * + * @author Anderson Cabral + * @date 08/01/2013 + * + * @param idImovel + * @return Mensagem de Erro + * @throws FachadaException + */ + public String validarAbaFotos(Integer idImovel) throws FachadaException { + try{ + return controladorUtil.validarAbaFotos(idImovel); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /**** + * Retorna o maior id da tabela Imovel + * + *@author Anderson Cabral + *@since 11/01/2013 + ****/ + public Integer pesquisarMaiorIdImovel() throws FachadaException{ + try{ + return controladorUtil.pesquisarMaiorIdImovel(); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + + public String gerarArquivoRetornoImovel(ImovelAtlzCadastral imovelAtlzCadastral) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoImovel(imovelAtlzCadastral); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public String gerarArquivoRetornoCep(Cep cep) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoCep(cep); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public String gerarArquivoRetornoLogradouro(Logradouro logradouro, SistemaParametros sistemaParametros) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoLogradouroBairro(logradouro, sistemaParametros); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + public String gerarArquivoRetornoLogradouroCep(LogradouroCep logradouroCep) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoLogradouroCep(logradouroCep); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public Roteiro pesquisarRoteiro(Integer idImovelAtlzCadastral) throws FachadaException{ + try{ + return controladorUtil.pesquisarRoteiro(idImovelAtlzCadastral); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + /** + * + * @author Arthur Carvalho + * @date 25/01/2013 + * + * @param clazz + * @param idField + * @param descriptionField + * @param tablename + * @param orderBy + * @return + * @throws FachadaException + */ + public Cursor getCursorOrderBy(Class clazz, String idField, String descriptionField, String tablename, String orderBy) + throws FachadaException { + + try { + return ControladorBase.getInstance().getCursorOrderBy(clazz, idField, descriptionField, tablename, orderBy); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * + * @author Arthur Carvalho + * @date 25/01/2013 + * + * @param clazz + * @return + * @throws FachadaException + */ + public Cursor getCursorLogradouro(Class clazz, String where) throws FachadaException { + + try { + return ControladorBase.getInstance().getCursorLogradouro(clazz, where); + } catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + public Cursor getCursorListaLogradouro(Class t) throws FachadaException{ + + try{ + return ControladorBase.getInstance().getCursorListaLogradouro(t); + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + } + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + + public Cursor getCursorListaLogradouroCep(Class t) throws FachadaException{ + + try{ + return ControladorBase.getInstance().getCursorListaLogradouroCep(t); + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + } + + /** + * Metodo responsavel por pesquisar todos os imveis cadastrados no gsan. + * + * @author Arthur Carvalho + * @return FileReturn + * @param idServiceOrder + * @throws RepositoryException + */ + public ArrayList pesquisarMatriculas() throws FachadaException { + + ArrayList lista = null; + + try { + lista = controladorUtil.pesquisarMatriculas(); + + } catch (ControladorException e) { + throw new FachadaException(e.getMessage()); + } + return lista; + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param cliente + * @return + * @throws FachadaException + */ + public String gerarArquivoRetornoCliente(ClienteAtlzCadastral cliente, List listaClienteFoneAtlzCadastral, String codigoImovelAtlzCadastral) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoCliente(cliente, listaClienteFoneAtlzCadastral, codigoImovelAtlzCadastral); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param cliente + * @return + * @throws FachadaException + */ + public String gerarArquivoRetornoHidrometro(List listaHidrometroInstHistAtlzCad, String codigoImovelAtlzCadastral, Integer idImovel) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoHidrometro(listaHidrometroInstHistAtlzCad, codigoImovelAtlzCadastral, idImovel); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param cliente + * @return + * @throws FachadaException + */ + public String gerarArquivoRetornoSubategoria(List listaImovelSubCategAtlzCad, String codigoImovelAtlzCadastral) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoSubcategoria(listaImovelSubCategAtlzCad, codigoImovelAtlzCadastral); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + + /** + * + * @author Arthur Carvalho + * @date 31/01/2013 + * + * @param cliente + * @return + * @throws FachadaException + */ + public String gerarArquivoRetornoOcorrencia(List listaImovelOcorrencia, String codigoImovelAtlzCadastral) throws FachadaException{ + try{ + return controladorUtil.gerarArquivoRetornoOcorrencia(listaImovelOcorrencia, codigoImovelAtlzCadastral); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * @author Erivan Sousa + * @since 06/09/2011 + * @param login + * @param password + * @return + */ + public SistemaParametros validarLoginCpf(String login) throws FachadaException { + try { + return controladorUtil.validarLoginCpf(login); + } catch (ControladorException e) { + e.printStackTrace(); + throw new FachadaException(e.getMessage()); + } + } + + /**** + * Retorna imovel atraves do numero do hidrometro + * + *@author Anderson Cabral + *@since 17/07/2013 + ****/ + public List pesquisarImovelPeloHidrometro(String numeroHidrometro) throws FachadaException { + + List listaImovelAtlzCadastral = null; + + try { + listaImovelAtlzCadastral = controladorUtil.pesquisarImovelPeloHidrometro(numeroHidrometro); + + } catch (ControladorException e) { + throw new FachadaException(e.getMessage()); + } + return listaImovelAtlzCadastral; + } + + /**** + * Retorna colecao de imoveis pelo cpf + * + *@author Anderson Cabral + *@since 17/07/2013 + ****/ + public List pesquisarImovelPeloCPFCNPJ(String numeroCpfCnpj) throws FachadaException{ + List listaImovelAtlzCadastral = null; + + try { + listaImovelAtlzCadastral = controladorUtil.pesquisarImovelPeloCPFCNPJ(numeroCpfCnpj); + + } catch (ControladorException e) { + throw new FachadaException(e.getMessage()); + } + return listaImovelAtlzCadastral; + } + + /** + * + * @author Arthur Carvalho + * @date 26/06/2013 + * + * @return + * @throws FachadaException + */ + public Integer pesquisarSetorComercialPrincipal() throws FachadaException { + + Integer codigo = null; + + try { + codigo = controladorUtil.pesquisarSetorComercialPrincipal(); + + } catch (ControladorException e) { + throw new FachadaException(e.getMessage()); + } + return codigo; + } + + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public Date pesquisarArquivoDivididoCarregado(String nomeArquivo) throws FachadaException{ + try{ + return controladorUtil.pesquisarArquivoDivididoCarregado(nomeArquivo); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * + * @author Arthur Carvalho + * @date 18/01/2013 + * + * @return + * @throws ControladorException + */ + public void inserirArquivoDividido(String nomeArquivo) throws FachadaException{ + try{ + controladorUtil.inserirArquivoDividido(nomeArquivo); + }catch (ControladorException ce) { + throw new FachadaException(ce.getMessage()); + } + } + + /** + * + * @author Flvio Ferreira + * @date 11/10/2013 + * @return + * @throws ControladorException + */ + + public Integer obterQuantidadeImoveis() throws FachadaException{ + + Integer quantidade = null; + try{ + quantidade = controladorUtil.obterQuantidadeImoveis(); + + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return quantidade; + } + + /** + * + * @author Flvio Ferreira + * @date 11/10/2013 + * + * @return + * @throws ControladorException + */ + + public Integer obterQuantidadeImoveisAtualizadosPorOcorrencia(Integer numeroOcorrencia) throws FachadaException{ + + Integer quantidade = 0; + try{ + quantidade = controladorUtil.obterQuantidadeImoveisAtualizadosPorOcorrencia(numeroOcorrencia); + + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return quantidade; + } + + /** + * + * @author Flvio Ferreira + * @date 11/10/2013 + * + * @return + * @throws ControladorException + */ + + public Integer obterQuantidadeImoveisIncluidosComPorOcorrencia(Integer numeroOcorrencia) throws FachadaException{ + + Integer quantidade = 0; + try{ + quantidade = controladorUtil.obterQuantidadeImoveisIncluidosComPorOcorrencia(numeroOcorrencia); + + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return quantidade; + } + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @return + * @throws RepositorioException + */ + public String buscarDescricaoOcorrencias(Integer idCadastroOcorrencia) throws FachadaException{ + + String dsOcorrecias = null; + + try{ + + dsOcorrecias = controladorUtil.buscarDescricaoOcorrencias(idCadastroOcorrencia); + + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return dsOcorrecias; + + } + + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @return + * @throws RepositorioException + */ + public Integer obterTotalImoveisAtualizados(String login) throws FachadaException{ + Integer quantidade = 0; + + try{ + quantidade = controladorUtil.obterTotalImoveisAtualizados(login); + + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return quantidade; + + } + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @return + * @throws RepositorioException + */ + public Integer obterTotalImoveisIncluidos(String login) throws FachadaException{ + Integer quantidade = 0; + + try{ + quantidade = controladorUtil.obterTotalImoveisIncluidos(login); + + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return quantidade; + } + + /** + * @author Flavio Ferreira + * @date 15/10/2013 + * @return + * @throws FachadaException + * @throws RepositorioException + */ + + public List pesquisarListaLogin() throws FachadaException{ + List listaLogin = null; + + try{ + + listaLogin = controladorUtil.pesquisarListaLogin(); + }catch(ControladorException ex){ + throw new FachadaException(ex.getMessage()); + } + + return listaLogin; + + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/fachada/FachadaWebServer.java b/atualizacao-cadastral-master/src/com/br/gsanac/fachada/FachadaWebServer.java new file mode 100644 index 0000000..d50ddc2 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/fachada/FachadaWebServer.java @@ -0,0 +1,208 @@ +/* + * Copyright (C) 2007-2009 the GSAN - Sistema Integrado de Gestão de Serviços de Saneamento + * + * This file is part of GSAN, an integrated service management system for Sanitation + * + * GSAN is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License. + * + * GSAN is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + */ +/* + * GSAN - Sistema Integrado de Gestão de Serviços de Saneamento + * Copyright (C) <2007> + * Adriano Britto Siqueira + * Alexandre Santos Cabral + * Ana Carolina Alves Breda + * Ana Maria Andrade Cavalcante + * Aryed Lins de Araújo + * Bruno Leonardo Rodrigues Barros + * Carlos Elmano Rodrigues Ferreira + * Clêudio de Andrade Lira + * Denys Guimarães Guenes Tavares + * Eduardo Breckenfeld da Rosa Borges + * Fabíola Gomes de Araújo + * Flêvio Leonardo Cavalcanti Cordeiro + * Francisco do Nascimento Júnior + * Homero Sampaio Cavalcanti + * Ivan Sérgio da Silva Júnior + * José Edmar de Siqueira + * José Thiago Tenório Lopes + * Kássia Regina Silvestre de Albuquerque + * Leonardo Luiz Vieira da Silva + * Márcio Roberto Batista da Silva + * Maria de Fátima Sampaio Leite + * Micaela Maria Coelho de Araújo + * Nelson Mendonça de Carvalho + * Newton Morais e Silva + * Pedro Alexandre Santos da Silva Filho + * Rafael Corrêa Lima e Silva + * Rafael Francisco Pinto + * Rafael Koury Monteiro + * Rafael Palermo de Araújo + * Raphael Veras Rossiter + * Roberto Sobreira Barbalho + * Roberto Souza + * Rodrigo Avellar Silveira + * Rosana Carvalho Barbosa + * Sávio Luiz de Andrade Cavalcante + * Tai Mu Shih + * Thiago Augusto Souza do Nascimento + * Tiago Moreno Rodrigues + * Vivianne Barbosa Sousa + * Fernanda Almeida + * + * Este programa é software livre; você pode redistribuí-lo e/ou + * modificá-lo sob os termos de Licença Pública Geral GNU, conforme + * publicada pela Free Software Foundation; versão 2 da + * Licença. + * Este programa é distribuído na expectativa de ser útil, mas SEM + * QUALQUER GARANTIA; sem mesmo a garantia implêcita de + * COMERCIALIZAÇÃO ou de ADEQUAÇÃO A QUALQUER PROPÓSITO EM + * PARTICULAR. Consulte a Licença Pública Geral GNU para obter mais + * detalhes. + * Você deve ter recebido uma cópia da Licença Pública Geral GNU + * junto com este programa; se não, escreva para Free Software + * Foundation, Inc., 59 Temple Place, Suite 330com.br.gsanac.conexao1307, USA. + */ +package com.br.gsanac.fachada; + +import java.io.IOException; +import java.io.InputStream; +import java.net.MalformedURLException; +import java.util.Vector; + +import android.content.Context; + +import com.br.gsanac.conexao.ConexaoWebServer; + +/** + * A classe FachadaWebServer agrupa serviços que precisam da rede. Ela conecta quando + * necessário, envia os dados para o servidor, recebe a resposta do servidor e + * repassa para o listener. + * + * @author Rafael Palermo de Araújo + */ +public class FachadaWebServer { + + public static boolean indcConfirmacaRecebimento = false; + + /** + * Identificador da requisição Cliente->Servidor de confirmar recebimento do + * roteiro. + */ + public static final byte CS_CONFIRMAR_RECEBIMENTO = 3; + + private boolean requestOK = false; + + private ConexaoWebServer conexaoWebServer; + + /** + * Com base no padrão de Projeto chamado Singleton, FachadaWebServer tem apenas + * uma única instância em todo o contexto da aplicação. + */ + private static FachadaWebServer instance; + + + /** + * Retorna a instância da fachada de rede. + * + * @return A instância da fachada de rede. + */ + public static FachadaWebServer getInstancia() { + if (FachadaWebServer.instance == null) { + FachadaWebServer.instance = new FachadaWebServer(); + } + return FachadaWebServer.instance; + } + + /** + * Repassa as requisições ao servidor. + * + * @param parametros + * Vetor de parâmetros da operação. + * @param recebeResposta + * Boolean que diz se recebe ou não um InputStream do servidor + */ +// public boolean iniciarServicoRede(ArrayList parametros, boolean enviarIMEI,Context context) { +// return ConexaoWebServer.getInstancia().iniciarServicoRede(parametros, enviarIMEI, context); +// } + +// /** +// * Envia o arquivo gerado do imovel para o servidor +// * +// * @param Array +// * de bytes com o arquivo +// * @return +// */ +// public boolean enviarImovel(byte[] imovel,Context context) throws IOException { +// return ConexaoWebServer.getInstancia().enviarImovel(imovel, context); +// } +// +// /** +// * Envia o arquivo gerado do imovel para o servidor +// * +// * @param Array +// * de bytes com o arquivo +// */ +// public void finalizarLeitura(byte[] arquivoRetorno,Context context) throws IOException { +// requestOK = ConexaoWebServer.getInstancia().finalizarLeitura(arquivoRetorno, context); +// } + + public boolean isRequestOK() { + return requestOK; + } + + public void iniciarConexaoWebServer(Context ctx){ + conexaoWebServer = new ConexaoWebServer(ctx); + } + + public InputStream comunicar( String url, Vector parametros ) throws IOException, MalformedURLException{ + return this.conexaoWebServer.comunicar(url, parametros); + } + + public int getFileLength() { + return this.conexaoWebServer.getFileLength(); + } + + public boolean serverOnline(){ + return this.conexaoWebServer.serverOnline(); + } + +// /** +// * +// * Manda um sinal para GSAN informando que +// * a rota foi inicializada com sucessoo. +// * +// */ +// public boolean routeInitializationSignal(){ +// return this.conexaoWebServer.routeInitializationSignal(); +// } + + // Só podemos pegar a mensagem de error uma vez +// public static String getMensagemError() { +// return ConexaoWebServer.getMensagemError(); +// } + +// public void setContextComunicacaoWebServer(Context ctx){ +// ComunicacaoWebServer.getInstancia().setContext(ctx); +// } + +// public Object[] comunicacao(short tipoFinalizacao, ArquivoRetorno arquivoRetorno, int posicao, boolean continua){ +// return ComunicacaoWebServer.getInstancia() +// .comunicacao(tipoFinalizacao, arquivoRetorno, posicao, continua); +// } + +// public int enviarDados(String nomeArquivo, short tipoFinalizacao,Context contexto, StringBuilder montaArquivo) { +// return ComunicacaoWebServer.getInstancia() +// .enviarDados(nomeArquivo, tipoFinalizacao, contexto, montaArquivo); +// } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/ApkActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ApkActivity.java new file mode 100644 index 0000000..c795c2c --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ApkActivity.java @@ -0,0 +1,215 @@ +package com.br.gsanac.gui; + +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.KeyEvent; +import android.view.View; +import android.view.View.OnClickListener; + +import com.br.gsanac.R; +import com.br.gsanac.conexao.ComunicacaoWebServer; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; + +public class ApkActivity extends BaseActivity implements OnClickListener { + + ProgressDialog mProgressDialog; + AlertDialog alertDialog ; + final KeyEvent event = new KeyEvent(KeyEvent.KEYCODE_BACK, + KeyEvent.KEYCODE_BACK); + + public static final int ERRO_VERSAO_INDISPONIVEL = 98; + public static final int IGNORE_DOWNLOAD_VERSION = 90; + + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Fachada.setContext(this); + + + if ( enviarTelaLogin() ) { + + + + if (!DBConnection.checkDatabase() ) { + + mProgressDialog = new ProgressDialog(ApkActivity.this) { + + @Override + public void onBackPressed() { + } + + @Override + public boolean onSearchRequested() { + return false; + } + + }; + mProgressDialog.setIndeterminate(false); + mProgressDialog.setTitle(getString(R.string.conexao_servidor_gsan)); + mProgressDialog.setMessage(getString(R.string.validando_versao)); + mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mProgressDialog.setMax(100); + mProgressDialog.setCancelable(false); + mProgressDialog.setIcon(R.drawable.transfer); + mProgressDialog.show(); + + AsyncTask taskDownloadFile = new AsyncTask() { + @Override + protected Object doInBackground(Object... params) { + + ComunicacaoWebServer downloadFile = new ComunicacaoWebServer(ApkActivity.this); + + if (downloadFile.apkOperation(ConstantesSistema.VERIFICAR_VERSAO, mProgressDialog, getApplicationContext())) { + + Intent i = new Intent(ApkActivity.this, DownloadApkActivity.class); + mProgressDialog.dismiss(); + startActivity(i); + finish(); + + }else{ + + if ( getIntent().getSerializableExtra(ConstantesSistema.LOGIN) != null ) { + // Caso contrario, encaminhamos para a tela de carregamento de arquivo online + Intent i = new Intent(ApkActivity.this, DownloadArquivoActivity.class); + i.putExtra(ConstantesSistema.LOGIN, getIntent().getSerializableExtra(ConstantesSistema.LOGIN)); + i.putExtra(ConstantesSistema.SENHA, getIntent().getSerializableExtra(ConstantesSistema.SENHA)); + ApkActivity.this.startActivity(i); + finish(); + } else { + Intent i = new Intent(ApkActivity.this,SelecionarArquivoActivity.class); + i.putExtra(ConstantesSistema.CPF_LOGIN, getIntent().getSerializableExtra(ConstantesSistema.CPF_LOGIN)); + ApkActivity.this.startActivityForResult(i,1); + finish(); + } + } + + return true; + } + + @Override + protected void onPostExecute(Object result) { + mProgressDialog.dismiss(); + + alertDialog = new AlertDialog.Builder(ApkActivity.this).setTitle(getString(R.string.error_ao_carregar_arquivo)) + .setMessage(R.string.conexao_falhou) + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton(getString(R.string.sim), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + Intent i = new Intent(ApkActivity.this,SelecionarArquivoActivity.class); + + ApkActivity.this.startActivityForResult(i,1); + finish(); + } + }).show(); + + alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { + + @Override + public void onDismiss(DialogInterface dialog) { + Intent i = new Intent(ApkActivity.this, + SelecionarArquivoActivity.class); + + ApkActivity.this.startActivityForResult(i, 1); + finish(); + } + }); + + } + }; + + taskDownloadFile.execute(); + + } else { + + Intent intent = new Intent(this, DownloadArquivoActivity.class); + startActivity(intent); + finish(); + } + } + + } + + @Override + public void onClick(View view) { + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + // TODO Auto-generated method stub + super.onActivityResult(requestCode, resultCode, data); + finish(); + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } + + public void onBackPressed() { + return; + } + + + @Override + protected void onRestart() { + super.onRestart(); + + // Caso o usurio tenha apertado em cancelar ao baixar a verso + new AlertDialog.Builder(ApkActivity.this) + .setTitle(getString(R.string.str_download_alert_file)) + .setMessage( getString(R.string.str_error_aborted) ) + .setNeutralButton(getString(android.R.string.ok), + new DialogInterface.OnClickListener() { + public void onClick( + DialogInterface dialog, + int which) { + + Intent i = new Intent(ApkActivity.this, DownloadApkActivity.class); + startActivity(i); + finish(); + + } + }).show(); + } + + private boolean enviarTelaLogin(){ + boolean retorno = true; + + + try { + if ( DBConnection.checkDatabase() ) { + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + if ( sistemaParametros != null && sistemaParametros.getId() != null ) { + + Intent i = new Intent(ApkActivity.this, LoginActivity.class); + startActivity(i); + finish(); + retorno = false; + } + } + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + return retorno; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/ArquivoFinalizadoActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ArquivoFinalizadoActivity.java new file mode 100644 index 0000000..fa5d2df --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ArquivoFinalizadoActivity.java @@ -0,0 +1,67 @@ +package com.br.gsanac.gui; + +import java.io.File; + +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; + +import com.br.gsanac.R; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +public class ArquivoFinalizadoActivity extends BaseActivity { + + + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Fachada.setContext(this); + + // Em caso de sucesso, apagamos o banco e a pasta das fotos/Arquivo/Arquivo Dividido + File diretorioFoto = new File(ConstantesSistema.SDCARD_GSANAC_PHOTOS_PATH); + File diretorioArquivoDividido = new File(ConstantesSistema.SDCARD_GSANAC_ARQUIVO_DIVIDIDO_PATH); + File diretorioArquivo = new File(ConstantesSistema.SDCARD_GSANAC_FILES_PATH); + + Util.deletarPastas(diretorioFoto); + Util.deletarPastas(diretorioArquivo); + Util.deletarPastas(diretorioArquivoDividido); + + DBConnection.getInstance(ArquivoFinalizadoActivity.this).deleteDatabase(); + Util.removeInstanceRepository(); + + // Informamos ao usurio que a transmisso foi concluida com sucesso. + new AlertDialog.Builder(ArquivoFinalizadoActivity.this).setTitle(getString(R.string.title_route_completed)) + .setMessage(getString(R.string.message_route_completed)) + .setIcon(R.drawable.ok) + .setCancelable(false) + .setPositiveButton(getString(R.string.carregar), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + Intent i = new Intent(ArquivoFinalizadoActivity.this, + ApkActivity.class); + startActivity(i); + finish(); + } + }) + .setNegativeButton(getString(R.string.fechar), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + finish(); + } + }) + .show(); + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseActivity.java new file mode 100644 index 0000000..a9e35fb --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseActivity.java @@ -0,0 +1,44 @@ +package com.br.gsanac.gui; + +import android.app.Activity; +import android.content.pm.ActivityInfo; +import android.os.Bundle; + +import com.br.gsanac.fachada.Fachada; + +/** + * Activity Base identificara o device usado + * Se a orientacao default do celular dor LANDSCAPE + * Todas as telas do ISC ficarao com Screen LANDSCAPE + * + * @author Amelia Pessoa + */ +public class BaseActivity extends Activity { + + protected boolean execute = true; + + @Override + public void onSaveInstanceState(Bundle savedInstanceState) { + savedInstanceState.putBoolean("execute", true); + super.onSaveInstanceState(savedInstanceState); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + if(Fachada.getInstance().isOrientacaoLandscape(this)){ + + if (savedInstanceState != null) { + super.onRestoreInstanceState(savedInstanceState); + + boolean resultCode = savedInstanceState.getBoolean("execute"); + savedInstanceState.remove("execute"); + this.execute = resultCode; + } else { + execute = false; + setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); + } + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseTabsActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseTabsActivity.java new file mode 100644 index 0000000..510ed2e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/BaseTabsActivity.java @@ -0,0 +1,36 @@ +package com.br.gsanac.gui; + +import android.app.Activity; +import android.database.Cursor; + +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.exception.RepositorioException; + +public abstract class BaseTabsActivity extends Activity { + + @Override + public void onBackPressed() { + + TabsActivity.indicadorExibirMensagemErro = false; +// Intent intent = new Intent(BaseTabsActivity.this, RoteiroActivity.class); +// startActivity(intent); +// finish(); + + } + + @Override + protected void onDestroy() { + super.onDestroy(); + try { + new DBConnection(this).closeDatabase(); + } catch (RepositorioException e) { + e.printStackTrace(); + } + } + + public void fecharCursor(Cursor cursor){ + if(cursor != null){ + cursor.close(); + } + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/CategoriaImovelInserirActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/CategoriaImovelInserirActivity.java new file mode 100644 index 0000000..6e96c4b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/CategoriaImovelInserirActivity.java @@ -0,0 +1,210 @@ +package com.br.gsanac.gui; + +import android.app.Activity; +import android.content.Intent; +import android.database.Cursor; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemSelectedListener; +import android.widget.Button; +import android.widget.EditText; +import android.widget.Spinner; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Categoria; +import com.br.gsanac.entidades.Categoria.CategoriaColunas; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.SubCategoria; +import com.br.gsanac.entidades.SubCategoria.SubCategoriaColunas; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + * [UC 1412] - Manter Dados da Aba do Imvel do Tablet + * + * @author Davi Menezes + * @date 07/01/2013 + * + */ +public class CategoriaImovelInserirActivity extends Activity { + + private static Fachada fachada = Fachada.getInstance(); + private Cursor cursor; + private Intent intent; + + /** Compontentes da tela */ + private Spinner spnCategoriaImovel; + private Spinner spnSubCategoriaImovel; + private EditText edtQtdEconomias; + + private Button btCancelar; + private Button btInserir; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.categoria_imovel_inserir); + + TabsActivity.indicadorExibirMensagemErro = false; + + try{ + + /** Categoria Imovel **/ + spnCategoriaImovel = (Spinner) findViewById(R.id.spnCategoriaImovel); + cursor = fachada.getCursor(Categoria.class, + CategoriaColunas.ID, + CategoriaColunas.DESCRICAO, + new Categoria().getNomeTabela()); + + startManagingCursor(cursor); + + spnCategoriaImovel.setAdapter(Util.getAdapter(cursor)); + + spnCategoriaImovel.setOnItemSelectedListener(new OnItemSelectedListener() { + + public void onItemSelected(AdapterView parent, View view, int position, long id) { + listarSubCategoria(id); + } + + public void onNothingSelected(AdapterView arg0) { + + } + + }); + + /** SubCategoria Imovel **/ + spnSubCategoriaImovel = (Spinner) findViewById(R.id.spnSubCategoriaImovel); + + /** Quantidade de Economias **/ + edtQtdEconomias = (EditText) findViewById(R.id.edtQtdEconomias); + + /** Boto Inserir **/ + btInserir = (Button) findViewById(R.id.btInserir); + + btInserir.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + if(validaCamposObrigatorios()){ + ImovelSubCategAtlzCad imovelSubCategoriaAtlzCadastral = new ImovelSubCategAtlzCad(); + + int idCategoria = (int) spnCategoriaImovel.getSelectedItemId(); + int idSubCategoria = (int) spnSubCategoriaImovel.getSelectedItemId(); + String qtdEconomias = edtQtdEconomias.getText().toString(); + + Categoria categoria = new Categoria(); + categoria.setId(idCategoria); + + SubCategoria subCategoria = new SubCategoria(); + subCategoria.setCategoria(categoria); + subCategoria.setId(idSubCategoria); + + imovelSubCategoriaAtlzCadastral.setCategoria(categoria); + imovelSubCategoriaAtlzCadastral.setSubCategoria(subCategoria); + imovelSubCategoriaAtlzCadastral.setQuantidadeEconomia(Integer.parseInt(qtdEconomias)); + + //Volta para tela de Imovel + intent = new Intent(CategoriaImovelInserirActivity.this, ImovelAbaActivity.class); + + intent.putExtra(ConstantesSistema.IMOVEL_SUBCATEGORIA_ATLZ_CADASTRAL, imovelSubCategoriaAtlzCadastral); + + + setResult(Activity.RESULT_OK, intent); + finish(); + } + } + }); + + /** Boto Cancelar **/ + btCancelar = (Button) findViewById(R.id.btCancelar); + + btCancelar.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + //Volta para a aba de Imvel + setResult(Activity.RESULT_CANCELED); + finish(); + + TabsActivity.indicadorExibirMensagemErro = true; + } + }); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + /** + * Valida os Campos Obrigatrios + * + * @author Davi Menezes + * @date 07/01/2013 + */ + private boolean validaCamposObrigatorios(){ + long idCategoria = spnCategoriaImovel.getSelectedItemId(); + long idSubCategoria = spnSubCategoriaImovel.getSelectedItemId(); + String qtdEconomias = edtQtdEconomias.getText().toString(); + + String campos = ""; + + if(idCategoria == ConstantesSistema.ITEM_INVALIDO ){ + campos += "Informe Categoria \n"; + } + + if(idSubCategoria == ConstantesSistema.ITEM_INVALIDO ){ + campos += "Informe Subcategoria \n"; + } + + if(qtdEconomias == null || qtdEconomias.equals("")){ + campos += "Informe Quantidade de Economias \n"; + }else if(qtdEconomias.equals("0") || (Integer.parseInt(qtdEconomias) == 0)){ + campos += "Quantidade de Economias deve somente conter nmeros positivos \n"; + } + + if(campos.length() > 0){ + campos = campos.substring(0, campos.length() - 2); + + Util.exibirMensagemErro(CategoriaImovelInserirActivity.this, campos); + + return false; + }else{ + return true; + } + } + + /** + * Lista as Subcategorias de acordo com a Categoria Selecionada + * @author Anderson + * @since 19/01/2013 + *****/ + private void listarSubCategoria(long categoriaId){ + String where = SubCategoriaColunas.CATEGORIA_ID +" = " + categoriaId + " OR " + SubCategoriaColunas.ID + " = " + ConstantesSistema.ITEM_INVALIDO ; + + try { + cursor = fachada.getCursor(SubCategoria.class, + SubCategoriaColunas.ID, + SubCategoriaColunas.DESCRICAO, + new SubCategoria().getNomeTabela(), + where); + + startManagingCursor(cursor); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + spnSubCategoriaImovel.setAdapter(Util.getAdapter(cursor)); + } + + public void fecharCursor(Cursor cursor){ + if(cursor != null){ + cursor.close(); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/ClienteAbaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ClienteAbaActivity.java new file mode 100644 index 0000000..a2860b3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ClienteAbaActivity.java @@ -0,0 +1,1004 @@ +package com.br.gsanac.gui; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import android.database.Cursor; +import android.graphics.Color; +import android.os.Bundle; +import android.text.Editable; +import android.text.InputFilter; +import android.text.TextWatcher; +import android.util.Log; +import android.view.Gravity; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.View.OnLongClickListener; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.RadioButton; +import android.widget.RadioGroup; +import android.widget.Spinner; +import android.widget.TableLayout; +import android.widget.TableRow; +import android.widget.TextView; +import android.widget.Toast; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteTipo; +import com.br.gsanac.entidades.ClienteTipo.ClienteTipoColunas; +import com.br.gsanac.entidades.FoneTipo; +import com.br.gsanac.entidades.FoneTipo.FoneTipoColunas; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.OrgaoExpedidorRg; +import com.br.gsanac.entidades.OrgaoExpedidorRg.OrgaoExpedidorRgColunas; +import com.br.gsanac.entidades.PessoaSexo; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.entidades.UnidadeFederacao; +import com.br.gsanac.entidades.UnidadeFederacao.UnidadeFederacaoColunas; +import com.br.gsanac.entidades.bean.ClienteFoneHelper; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Mascara; +import com.br.gsanac.util.Util; + +/** + * [UC 1411] - Manter Dados Aba Cliente Tablet + * + * @author Davi Menezes + * @date 27/12/2012 + * + */ +public class ClienteAbaActivity extends BaseTabsActivity implements OnLongClickListener { + + private static Fachada fachada = Fachada.getInstance(); + private Cursor cursor; + + private Spinner spnTipoCliente; + + private RadioGroup radioGroupPessoaTipo; + private RadioButton radioPessoaFisica; + private RadioButton radioPessoaJuridica; + + private EditText edtCpfCnpj; + private EditText edtNomeCliente; + private EditText edtDataNascimento; + + private RadioGroup rgOpcoesPessoaSexo; + private RadioButton radioMasculino; + private RadioButton radioFeminino; + + private EditText edtRg; + + private Spinner spnOrgaoExpedidor; + private Spinner spnUF; + + private EditText edtDataEmissaoRg; + + private Spinner spnFoneTipo; + private EditText edtTelefone; + private Button btAdicionarTelefone; + + /*** Armazena as linhas do TableLayout Telefone ***/ + private Map tableRowsTelefone; + + /*** Tabela com os Telefones selecionados ***/ + private TableLayout tableLayoutTelefone; + + private ClienteAtlzCadastral clienteAtualizacaoCadastral; + private ImovelAtlzCadastral imovelAtlzCadastral; + + private Collection colecaoClienteFoneHelper = new ArrayList(); + + /** Called when the activity is first created. */ + int mStackLevel = 1; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.cliente_aba); + + try{ + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) fachada.pesquisar(sistemaParametros, null, null); + + //Tipo Pessoa + radioGroupPessoaTipo = (RadioGroup) findViewById(R.id.radioGroupPessoaTipo); + radioPessoaFisica = (RadioButton) findViewById(R.id.radioPessoaFisica); + radioPessoaJuridica = (RadioButton) findViewById(R.id.radioPessoaJuridica); + radioPessoaFisica.setChecked(true); + + radioGroupPessoaTipo.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { + @Override + public void onCheckedChanged(RadioGroup group, int checkedId) { + if(checkedId == R.id.radioPessoaFisica){ + carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_FISICA); + }else if(checkedId == R.id.radioPessoaJuridica){ + carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_JURIDICA); + } + } + }); + + //Tipo Cliente + spnTipoCliente = (Spinner) findViewById(R.id.spnTipoCliente); + + //CPF-CNPJ + edtCpfCnpj = (EditText) findViewById(R.id.edtCpfCnpj); + + edtCpfCnpj.addTextChangedListener(new TextWatcher() { + boolean isUpdating; + String old = ""; + String mask; + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + String str = Mascara.unmask(s.toString()); + String mascara = ""; + if (isUpdating) { + old = str; + isUpdating = false; + return; + } + int i = 0; + + if(radioGroupPessoaTipo.getCheckedRadioButtonId() == R.id.radioPessoaJuridica){ + mask = "##.###.###/####-##"; + }else{ + mask = "###.###.###-##"; + } + + for (char m : mask.toCharArray()) { + if (m != '#' && str.length() >= old.length()) { + mascara += m; + continue; + } + try { + mascara += str.charAt(i); + } catch (Exception e) { + break; + } + i++; + } + isUpdating = true; + edtCpfCnpj.setText(mascara); + edtCpfCnpj.setSelection(mascara.length()); + } + + @Override + public void beforeTextChanged(CharSequence s, int start, int count, + int after) { + + + } + + @Override + public void afterTextChanged(Editable s) { + // TODO Auto-generated method stub + + } + }); + + //Nome Cliente + edtNomeCliente = (EditText) findViewById(R.id.edtNomeCliente); + edtNomeCliente.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(100), Util.filterReplaceCaracteresEspeciais()}); + + //Data de Nascimento + edtDataNascimento = (EditText) findViewById(R.id.edtDataNascimento); +// edtDataNascimento.addTextChangedListener(Mascara.insert("", edtDataNascimento)); + + edtDataNascimento.addTextChangedListener(new TextWatcher() { + boolean isUpdating; + String old = ""; + String mask; + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + String str = Mascara.unmask(s.toString()); + String mascara = ""; + if (isUpdating) { + old = str; + isUpdating = false; + return; + } + int i = 0; + + mask = "##/##/####"; + + for (char m : mask.toCharArray()) { + if (m != '#' && str.length() >= old.length()) { + mascara += m; + continue; + } + try { + mascara += str.charAt(i); + } catch (Exception e) { + break; + } + i++; + } + isUpdating = true; + + edtDataNascimento.setText(mascara); + edtDataNascimento.setSelection(mascara.length()); + } + + @Override + public void beforeTextChanged(CharSequence s, int start, int count, + int after) { + + + } + + @Override + public void afterTextChanged(Editable s) { + // TODO Auto-generated method stub + + } + }); + + + //Sexo + rgOpcoesPessoaSexo = (RadioGroup) findViewById(R.id.rgOpcoesPessoaSexo); + radioMasculino = (RadioButton) findViewById(R.id.radioMasculino); + radioFeminino = (RadioButton) findViewById(R.id.radioFeminino); + + //RG + edtRg = (EditText) findViewById(R.id.edtRg); + + //rgo Expedidor + spnOrgaoExpedidor = (Spinner) findViewById(R.id.spnOrgaoExpedidor); + cursor = fachada.getCursor(OrgaoExpedidorRg.class, + OrgaoExpedidorRgColunas.ID, + OrgaoExpedidorRgColunas.DESCRICAOABREV, + new OrgaoExpedidorRg().getNomeTabela()); + + spnOrgaoExpedidor.setAdapter(Util.getAdapter(cursor)); + + //UF + spnUF = (Spinner) findViewById(R.id.spnUF); + cursor = fachada.getCursor(UnidadeFederacao.class, + UnidadeFederacaoColunas.ID, + UnidadeFederacaoColunas.DESCRICAO, + new UnidadeFederacao().getNomeTabela()); + + spnUF.setAdapter(Util.getAdapter(cursor)); + + //Data Emissao + edtDataEmissaoRg = (EditText) findViewById(R.id.edtDataEmissaoRg); +// edtDataEmissaoRg.addTextChangedListener(Mascara.insert("##/##/####", edtDataEmissaoRg)); + edtDataEmissaoRg.addTextChangedListener(new TextWatcher() { + boolean isUpdating; + String old = ""; + String mask; + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + String str = Mascara.unmask(s.toString()); + String mascara = ""; + if (isUpdating) { + old = str; + isUpdating = false; + return; + } + int i = 0; + + mask = "##/##/####"; + + for (char m : mask.toCharArray()) { + if (m != '#' && str.length() >= old.length()) { + mascara += m; + continue; + } + try { + mascara += str.charAt(i); + } catch (Exception e) { + break; + } + i++; + } + isUpdating = true; + + edtDataEmissaoRg.setText(mascara); + edtDataEmissaoRg.setSelection(mascara.length()); + } + + @Override + public void beforeTextChanged(CharSequence s, int start, int count, + int after) { + + + } + + @Override + public void afterTextChanged(Editable s) { + // TODO Auto-generated method stub + + } + }); + + + + + //Tipo de Telefone + spnFoneTipo = (Spinner) findViewById(R.id.spnFoneTipo); + cursor = fachada.getCursor(FoneTipo.class, + FoneTipoColunas.ID, + FoneTipoColunas.DESCRICAO, + new FoneTipo().getNomeTabela()); + + spnFoneTipo.setAdapter(Util.getAdapter(cursor)); + + //Telefone + edtTelefone = (EditText) findViewById(R.id.edtTelefone); + edtTelefone.addTextChangedListener(Mascara.insert("(##)####-####", edtTelefone)); + + //Botao Adicionar Telefone + btAdicionarTelefone = (Button) findViewById(R.id.btAdicionarTelefone); + + btAdicionarTelefone.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View arg0) { + if(validaCamposObrigatoriosTelefone()){ + inserirLinhaTabelaTelefone(); + } + } + }); + + // Tabela Telefone + tableLayoutTelefone = (TableLayout) findViewById(R.id.tableLayoutTelefones); + tableLayoutTelefone.setVisibility(View.VISIBLE); + + tableRowsTelefone = new HashMap(); + + /*** Carrega dados do imovel ****/ + imovelAtlzCadastral = TabsActivity.imovel; + if(TabsActivity.cliente == null){ + clienteAtualizacaoCadastral = new ClienteAtlzCadastral(); + + if(radioGroupPessoaTipo.getCheckedRadioButtonId() == R.id.radioPessoaFisica){ + carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_FISICA); + }else if(radioGroupPessoaTipo.getCheckedRadioButtonId() == R.id.radioPessoaJuridica){ + carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_JURIDICA); + } + }else{ + clienteAtualizacaoCadastral = TabsActivity.cliente; + } + + if(clienteAtualizacaoCadastral.getClienteTipo() != null && clienteAtualizacaoCadastral.getClienteTipo().getId() != null){ + + //Pesquisar Cliente Tipo + String selection = ClienteTipoColunas.ID + "=?"; + String[] selectionArgs = new String[] { String.valueOf(clienteAtualizacaoCadastral.getClienteTipo().getId()) }; + + ClienteTipo clienteTipo = new ClienteTipo(); + clienteTipo = (ClienteTipo) Fachada.getInstance().pesquisar(clienteTipo, selection, selectionArgs); + + if(clienteTipo.getIndicadorPessoa().equals(ConstantesSistema.PESSOA_FISICA)){ + radioPessoaFisica.setChecked(true); + radioPessoaJuridica.setChecked(false); + + if(clienteAtualizacaoCadastral.getPessoaSexo() != null){ + if(clienteAtualizacaoCadastral.getPessoaSexo().getId().equals(PessoaSexo.MASCULINO)){ + radioMasculino.setChecked(true); + radioFeminino.setChecked(false); + }else{ + radioMasculino.setChecked(false); + radioFeminino.setChecked(true); + } + } + + this.carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_FISICA); + + + }else{ + radioPessoaFisica.setChecked(false); + radioPessoaJuridica.setChecked(true); + radioMasculino.setChecked(false); + radioFeminino.setChecked(false); + + this.carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_JURIDICA); + + } + + //Carrega na combobox o valor do Cliente Tipo + Util.selecionarItemCombo(spnTipoCliente, clienteAtualizacaoCadastral.getClienteTipo().getId()); + }else { + radioPessoaFisica.setChecked(true); + radioPessoaJuridica.setChecked(false); + this.carregarTelaParaTipoPessoa(ConstantesSistema.PESSOA_FISICA); +// Util.selecionarItemCombo(spnTipoCliente, ConstantesSistema.ITEM_INVALIDO); + + if(clienteAtualizacaoCadastral.getPessoaSexo() != null){ + if(clienteAtualizacaoCadastral.getPessoaSexo().getId().equals(PessoaSexo.MASCULINO)){ + radioMasculino.setChecked(true); + radioFeminino.setChecked(false); + }else{ + radioMasculino.setChecked(false); + radioFeminino.setChecked(true); + } + } + } + + if(clienteAtualizacaoCadastral.getNumeroCPFCNPPJ() != null && !clienteAtualizacaoCadastral.getNumeroCPFCNPPJ().equals("")){ + edtCpfCnpj.setText(clienteAtualizacaoCadastral.getNumeroCPFCNPPJ()); + } + + //Nome + edtNomeCliente.setText(clienteAtualizacaoCadastral.getNomeCliente()); + + //Data Nascimento + if(clienteAtualizacaoCadastral.getDataNascimento() != null){ + edtDataNascimento.setText(Util.convertDateToString(clienteAtualizacaoCadastral.getDataNascimento())); + } + + //RG + if(clienteAtualizacaoCadastral.getNumeroRG() != null && !clienteAtualizacaoCadastral.getNumeroRG().equals("")){ + edtRg.setText(clienteAtualizacaoCadastral.getNumeroRG()); + } + + //Carrega na combobox o valor do rgo expedidor RG + if (clienteAtualizacaoCadastral.getOrgaoExpedidorRg() != null && !clienteAtualizacaoCadastral.getOrgaoExpedidorRg().getId().equals(0)) { + Util.selecionarItemCombo(spnOrgaoExpedidor, clienteAtualizacaoCadastral.getOrgaoExpedidorRg().getId()); + } + + //Carrega na combobox o valor da UF do RG + if (clienteAtualizacaoCadastral.getUnidadeFederacao() != null && !clienteAtualizacaoCadastral.getUnidadeFederacao().getId().equals(0)){ + Util.selecionarItemCombo(spnUF, clienteAtualizacaoCadastral.getUnidadeFederacao().getId()); + } + + if(clienteAtualizacaoCadastral.getDataEmissaoRg() != null){ + edtDataEmissaoRg.setText(Util.convertDateToString(clienteAtualizacaoCadastral.getDataEmissaoRg())); + } + + Collection colecaoClienteFone = TabsActivity.colecaoClienteFone; + this.carregarTelefones(colecaoClienteFone); + + + + }catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + private void carregarTelaParaTipoPessoa(int tipoPessoa){ + + try { + String where = null; + InputFilter[] filterArray = new InputFilter[1]; + + if(tipoPessoa == ConstantesSistema.PESSOA_FISICA){ + where = ClienteTipoColunas.INDICADOR_PESSOA +" != " + ConstantesSistema.PESSOA_JURIDICA; + filterArray[0] = new InputFilter.LengthFilter(14); + + edtDataNascimento.setEnabled(true); + radioMasculino.setEnabled(true); + radioFeminino.setEnabled(true); + edtRg.setEnabled(true); + spnOrgaoExpedidor.setEnabled(true); + spnUF.setEnabled(true); + edtDataEmissaoRg.setEnabled(true); + + edtCpfCnpj.setText(""); + + }else if(tipoPessoa == ConstantesSistema.PESSOA_JURIDICA){ + where = ClienteTipoColunas.INDICADOR_PESSOA +" != " + ConstantesSistema.PESSOA_FISICA; + filterArray[0] = new InputFilter.LengthFilter(18); + + edtCpfCnpj.setText(""); + edtDataNascimento.setText(""); + radioMasculino.setChecked(false); + radioFeminino.setChecked(false); + edtRg.setText(""); + spnOrgaoExpedidor.setSelection(0); + spnUF.setSelection(0); + edtDataEmissaoRg.setText(""); + + edtDataNascimento.setEnabled(false); + radioMasculino.setEnabled(false); + radioFeminino.setEnabled(false); + edtRg.setEnabled(false); + spnOrgaoExpedidor.setEnabled(false); + spnUF.setEnabled(false); + edtDataEmissaoRg.setEnabled(false); + + rgOpcoesPessoaSexo.clearCheck(); + } + + edtCpfCnpj.setFilters(filterArray); + + cursor = fachada.getCursor(ClienteTipo.class, + ClienteTipoColunas.ID, + ClienteTipoColunas.DESCRICAO, + new ClienteTipo().getNomeTabela(), + where); + + spnTipoCliente.setAdapter(Util.getAdapter(cursor)); + + if(tipoPessoa == ConstantesSistema.PESSOA_FISICA){ + Util.selecionarItemCombo(spnTipoCliente, ClienteTipo.PARTICULARES.longValue()); + spnTipoCliente.setEnabled(false); + }else{ + spnTipoCliente.setEnabled(true); + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + } + + @Override + protected void onPause() { + super.onPause(); + + radioPessoaFisica = (RadioButton) findViewById(R.id.radioPessoaFisica); + radioPessoaJuridica = (RadioButton) findViewById(R.id.radioPessoaJuridica); + radioMasculino = (RadioButton) findViewById(R.id.radioMasculino); + radioFeminino = (RadioButton) findViewById(R.id.radioFeminino); + + edtCpfCnpj = (EditText) findViewById(R.id.edtCpfCnpj); + edtNomeCliente = (EditText) findViewById(R.id.edtNomeCliente); + edtDataNascimento = (EditText) findViewById(R.id.edtDataNascimento); + edtRg = (EditText) findViewById(R.id.edtRg); + edtDataEmissaoRg = (EditText) findViewById(R.id.edtDataEmissaoRg); + spnOrgaoExpedidor = (Spinner) findViewById(R.id.spnOrgaoExpedidor); + spnUF = (Spinner) findViewById(R.id.spnUF); + + //ImovelAtlzCadastral + clienteAtualizacaoCadastral.setImovelAtlzCadastral(imovelAtlzCadastral); + + //Orgao Expedidor + OrgaoExpedidorRg orgaoExpedidor = new OrgaoExpedidorRg(); + orgaoExpedidor.setId((int) spnOrgaoExpedidor.getSelectedItemId()); + + if(orgaoExpedidor.getId() != ConstantesSistema.ITEM_INVALIDO && !orgaoExpedidor.getId().equals(Integer.valueOf(0))){ + clienteAtualizacaoCadastral.setOrgaoExpedidorRg(orgaoExpedidor); + }else{ + clienteAtualizacaoCadastral.setOrgaoExpedidorRg(null); + } + + //UF + UnidadeFederacao uf = new UnidadeFederacao(); + uf.setId((int) spnUF.getSelectedItemId()); + + if(uf.getId() != ConstantesSistema.ITEM_INVALIDO && !uf.getId().equals(Integer.valueOf(0))){ + clienteAtualizacaoCadastral.setUnidadeFederacao(uf); + }else{ + clienteAtualizacaoCadastral.setUnidadeFederacao(null); + } + + //Setar CPF/CNPJ + if(edtCpfCnpj.getText() != null && !edtCpfCnpj.getText().toString().equals("")){ + String cpfcnpj = edtCpfCnpj.getText().toString().replace(".", "").replace("-", "").replace("/", ""); + clienteAtualizacaoCadastral.setNumeroCPFCNPPJ(cpfcnpj); + }else{ + clienteAtualizacaoCadastral.setNumeroCPFCNPPJ(null); + } + + //Setar Nome Cliente + if(edtNomeCliente.getText() != null && !edtNomeCliente.getText().toString().equals("")){ + clienteAtualizacaoCadastral.setNomeCliente(edtNomeCliente.getText().toString()); + }else{ + clienteAtualizacaoCadastral.setNomeCliente(null); + } + + //Setar Data Nascimento + if(edtDataNascimento.getText() != null && !edtDataNascimento.getText().toString().equals("")){ + if(!Util.validarData(edtDataNascimento.getText().toString(), "dd/MM/yyyy")){ + TabsActivity.dataNascimentoValida = true; + clienteAtualizacaoCadastral.setDataNascimento(Util.converteStringParaDate(edtDataNascimento.getText().toString())); + }else{ + TabsActivity.dataNascimentoValida = false; + clienteAtualizacaoCadastral.setDataNascimento(null); + } + }else{ + TabsActivity.dataNascimentoValida = true; + clienteAtualizacaoCadastral.setDataNascimento(null); + } + + //Setar RG + if(edtRg.getText() != null && !edtRg.getText().toString().equals("")){ + clienteAtualizacaoCadastral.setNumeroRG(edtRg.getText().toString()); + }else{ + clienteAtualizacaoCadastral.setNumeroRG(null); + } + + //Setar Data Emisso RG + if(edtDataEmissaoRg.getText() != null && !edtDataEmissaoRg.getText().toString().equals("")){ + if(!Util.validarData(edtDataEmissaoRg.getText().toString(), "dd/MM/yyyy")){ + TabsActivity.dataEmissaoValida = true; + clienteAtualizacaoCadastral.setDataEmissaoRg(Util.converteStringParaDate(edtDataEmissaoRg.getText().toString())); + }else{ + TabsActivity.dataEmissaoValida = false; + clienteAtualizacaoCadastral.setDataEmissaoRg(null); + } + }else{ + TabsActivity.dataEmissaoValida = true; + clienteAtualizacaoCadastral.setDataEmissaoRg(null); + } + + ClienteTipo clienteTipo = new ClienteTipo(); + clienteTipo.setId((int) spnTipoCliente.getSelectedItemId()); + + //Verificar se Pessoa Fsica ou Jurdica + if(radioPessoaFisica.isChecked()){ + + clienteTipo.setIndicadorPessoa(ConstantesSistema.PESSOA_FISICA); + + if ( clienteTipo.getId() != null && !clienteTipo.getId().equals(Integer.valueOf(0)) && clienteTipo.getId() != ConstantesSistema.ITEM_INVALIDO ) { + clienteAtualizacaoCadastral.setClienteTipo(clienteTipo); + }else{ + clienteAtualizacaoCadastral.setClienteTipo(null); + } + + PessoaSexo pessoaSexo = new PessoaSexo(); + if(radioMasculino.isChecked()){ + pessoaSexo.setId(PessoaSexo.MASCULINO); + clienteAtualizacaoCadastral.setPessoaSexo(pessoaSexo); + }else if(radioFeminino.isChecked()){ + pessoaSexo.setId(PessoaSexo.FEMININO); + clienteAtualizacaoCadastral.setPessoaSexo(pessoaSexo); + }else{ + clienteAtualizacaoCadastral.setPessoaSexo(null); + } + + }else if(radioPessoaJuridica.isChecked()){ + clienteTipo.setIndicadorPessoa(ConstantesSistema.PESSOA_JURIDICA); + clienteAtualizacaoCadastral.setClienteTipo(clienteTipo); + clienteAtualizacaoCadastral.setDataNascimento(null); + clienteAtualizacaoCadastral.setPessoaSexo(null); + clienteAtualizacaoCadastral.setNumeroRG(null); + clienteAtualizacaoCadastral.setOrgaoExpedidorRg(null); + clienteAtualizacaoCadastral.setUnidadeFederacao(null); + clienteAtualizacaoCadastral.setDataEmissaoRg(null); + } + + if(colecaoClienteFoneHelper != null && !colecaoClienteFoneHelper.isEmpty()){ + ArrayList colecaoClienteFone = new ArrayList(); + ClienteFoneAtlzCad clienteFone = null; + FoneTipo foneTipo = null; + + for(ClienteFoneHelper helper : colecaoClienteFoneHelper){ + foneTipo = new FoneTipo(); + + clienteFone = new ClienteFoneAtlzCad(); + clienteFone.setCodigoDDD(Integer.parseInt(helper.getCodigoDDD())); + clienteFone.setNumeroFone(Integer.parseInt(helper.getNumeroTelefone())); + clienteFone.setClienteAtlzCadastral(clienteAtualizacaoCadastral); + + if(helper.getIdFoneTipo() == FoneTipo.CELULAR){ + foneTipo.setId(FoneTipo.CELULAR); + }else if(helper.getIdFoneTipo() == FoneTipo.COMERCIAL){ + foneTipo.setId(FoneTipo.COMERCIAL); + }else if(helper.getIdFoneTipo() == FoneTipo.FAX){ + foneTipo.setId(FoneTipo.FAX); + }else if(helper.getIdFoneTipo() == FoneTipo.RESIDENCIAL){ + foneTipo.setId(FoneTipo.RESIDENCIAL); + } + + clienteFone.setFoneTipo(foneTipo); + + colecaoClienteFone.add(clienteFone); + } + + TabsActivity.colecaoClienteFone = colecaoClienteFone; + } + + TabsActivity.cliente = clienteAtualizacaoCadastral; + + Integer idLigacaoAguaSituacao = null; + + if(imovelAtlzCadastral.getLigAguaSituacao() != null){ + idLigacaoAguaSituacao = imovelAtlzCadastral.getLigAguaSituacao().getId(); + } + + if ( TabsActivity.indicadorExibirMensagemErro ) { + try{ + String mensagemErro = fachada.validarAbaCliente(clienteAtualizacaoCadastral, idLigacaoAguaSituacao); + + if(mensagemErro != null && !mensagemErro.equals("")){ + Util.exibirMensagemErro(ClienteAbaActivity.this, mensagemErro); + } + + }catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + } + + /** + * Valida os Campos obrigatrios de adicionar telefone + * + * @author Davi Menezes + * @date 03/01/20313 + */ + private boolean validaCamposObrigatoriosTelefone(){ + long idTipoTelefone = spnFoneTipo.getSelectedItemId(); + String campos = ""; + + if(edtTelefone.getText().toString().length() == 13){ + String codigoDDD = edtTelefone.getText().toString().substring(0, 4); + String numTelefone = edtTelefone.getText().toString().substring(4, 13); + String primeiroNum = edtTelefone.getText().toString().substring(4,5); + + if(idTipoTelefone == ConstantesSistema.ITEM_INVALIDO){ + campos = campos + "Informe Tipo Telefone \n"; + } + + if(codigoDDD == null || codigoDDD.equals("")){ + campos = campos + "Informe Cdigo DDD \n"; + }else if(!codigoDDD.equals("(81)") && !codigoDDD.equals("(87)")){ + campos = campos + "DDD Invlido \n"; + } + + if(numTelefone == null || numTelefone.equals("")){ + campos = campos + "Informe Nmero Telefone \n"; + }else if(primeiroNum.equals("0")){ + campos = campos + "Telefone Invlido \n"; + } + }else{ + campos = "Telefone Invlido \n"; + + } + + if(campos.length() > 0){ + campos = campos.substring(0, campos.length() - 2); + + Util.exibirMensagemErro(ClienteAbaActivity.this, campos); + + return false; + }else{ + return true; + } + } + + /** + * Carrega os telefones do Imovel na tabela de Telefone + * + * @author Anderson Cabral + * @date 17/01/2012 + */ + private void carregarTelefones(Collection colecaoClienteFone){ + if(colecaoClienteFone != null){ + for(ClienteFoneAtlzCad clienteFone : colecaoClienteFone){ + + ClienteFoneHelper helper = new ClienteFoneHelper(); + + int idFoneTipo = (int) clienteFone.getFoneTipo().getId(); + helper.setIdFoneTipo(idFoneTipo); + + if(idFoneTipo == FoneTipo.RESIDENCIAL){ + helper.setDescricaoFoneTipo("RESIDENCIAL"); + }else if(idFoneTipo == FoneTipo.COMERCIAL){ + helper.setDescricaoFoneTipo("COMERCIAL"); + }else if(idFoneTipo == FoneTipo.CELULAR){ + helper.setDescricaoFoneTipo("CELULAR"); + }else if(idFoneTipo == FoneTipo.FAX){ + helper.setDescricaoFoneTipo("FAX"); + } + + String codigoDDD = clienteFone.getCodigoDDD().toString(); + helper.setCodigoDDD(codigoDDD); + + String numeroTelefone = clienteFone.getNumeroFone().toString(); + helper.setNumeroTelefone(numeroTelefone); + + if(!tableRowsTelefone.containsKey(helper)){ + tableLayoutTelefone = (TableLayout) findViewById(R.id.tabelaTelefones); + + // String codigoTelefone = codigoDDD + "" + numeroTelefone; + + TableRow tr = new TableRow(this); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setId(Integer.valueOf(numeroTelefone)); + tr.setLayoutParams(new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID); + tr.setOnLongClickListener(this); + + TextView tvActionSelected = new TextView(this); + tvActionSelected.setId(Integer.valueOf(numeroTelefone)); + tvActionSelected.setGravity(Gravity.CENTER_VERTICAL); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setPadding(3, 0, 0, 0); + tvActionSelected.setMaxWidth(10); + + + + String numeroTelefoneFormatado = ""; + if ( numeroTelefone.length() > 7 ) { + numeroTelefoneFormatado = numeroTelefone.substring(0, 4) + "-" + numeroTelefone.substring(4, 8); + } else { + numeroTelefoneFormatado = numeroTelefone; + } + + + String telefone = "(" + codigoDDD + ")" + " " + numeroTelefoneFormatado + " " + "(" + helper.getDescricaoFoneTipo() + ")"; + + tvActionSelected.setText(telefone); + tvActionSelected.setTextSize(18); + tvActionSelected.setTag(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID); + tvActionSelected.setOnLongClickListener(this); + + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(Integer.valueOf(numeroTelefone)); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID); + imgRemoveAction.setBackgroundResource(R.drawable.btnremover); + imgRemoveAction.setPadding(0, 20, 30, 10); + imgRemoveAction.setOnLongClickListener(this); + + spnFoneTipo.setSelection(0); + // edtFoneDDD.getText().clear(); + edtTelefone.getText().clear(); + + tr.addView(tvActionSelected); + tr.addView(imgRemoveAction); + + tableRowsTelefone.put(helper, tr); + colecaoClienteFoneHelper.add(helper); + + populaTabelaTelefone(); + } + } + } + } + + /** + * Inserir uma linha na tabela de Telefone + * + * @author Davi Menezes + * @date 03/01/2012 + */ + private void inserirLinhaTabelaTelefone(){ + ClienteFoneHelper helper = new ClienteFoneHelper(); + + int idFoneTipo = (int) spnFoneTipo.getSelectedItemId(); + helper.setIdFoneTipo(idFoneTipo); + + if(idFoneTipo == FoneTipo.RESIDENCIAL){ + helper.setDescricaoFoneTipo("RESIDENCIAL"); + }else if(idFoneTipo == FoneTipo.COMERCIAL){ + helper.setDescricaoFoneTipo("COMERCIAL"); + }else if(idFoneTipo == FoneTipo.CELULAR){ + helper.setDescricaoFoneTipo("CELULAR"); + }else if(idFoneTipo == FoneTipo.FAX){ + helper.setDescricaoFoneTipo("FAX"); + } + + String codigoDDD = edtTelefone.getText().toString().substring(0, 4); + codigoDDD = codigoDDD.replace("(", "").replace(")", ""); + helper.setCodigoDDD(codigoDDD); + + String numeroTelefoneFormatado = edtTelefone.getText().toString().substring(4, 13); + String numeroTelefone = numeroTelefoneFormatado.replace("-", ""); + helper.setNumeroTelefone(numeroTelefone); + + if(!tableRowsTelefone.containsKey(helper)){ + tableLayoutTelefone = (TableLayout) findViewById(R.id.tabelaTelefones); + +// String codigoTelefone = codigoDDD + "" + numeroTelefone; + + TableRow tr = new TableRow(this); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setId(Integer.valueOf(numeroTelefone)); + tr.setLayoutParams(new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID); + tr.setOnLongClickListener(this); + + TextView tvActionSelected = new TextView(this); + tvActionSelected.setId(Integer.valueOf(numeroTelefone)); + tvActionSelected.setGravity(Gravity.CENTER_VERTICAL); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setPadding(3, 0, 0, 0); + tvActionSelected.setMaxWidth(10); + + String telefone = "(" + codigoDDD + ")" + " " + numeroTelefoneFormatado + " " + "(" + helper.getDescricaoFoneTipo() + ")"; + + tvActionSelected.setText(telefone); + tvActionSelected.setTextSize(18); + tvActionSelected.setTag(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID); + tvActionSelected.setOnLongClickListener(this); + + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(Integer.valueOf(numeroTelefone)); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID); + imgRemoveAction.setBackgroundResource(R.drawable.btnremover); + imgRemoveAction.setPadding(0, 20, 30, 10); + imgRemoveAction.setOnLongClickListener(this); + + spnFoneTipo.setSelection(0); +// edtFoneDDD.getText().clear(); + edtTelefone.getText().clear(); + + tr.addView(tvActionSelected); + tr.addView(imgRemoveAction); + + tableRowsTelefone.put(helper, tr); + colecaoClienteFoneHelper.add(helper); + + populaTabelaTelefone(); + }else{ + Util.showMessage(this, getString(R.string.error_tel_ja_selecionado), Toast.LENGTH_SHORT); + } + } + + /** + * Remove da tabela o Telefone Selecionado + * + * @author Davi Menezes + * @date 03/01/2012 + */ + private void removerLinhaTabelaTelefone(View v){ + Integer id = v.getId(); + + ClienteFoneHelper helper = new ClienteFoneHelper(); + if(colecaoClienteFoneHelper != null && !colecaoClienteFoneHelper.isEmpty()){ + for(ClienteFoneHelper aux : colecaoClienteFoneHelper){ + if(aux.getNumeroTelefone().equals(String.valueOf(id))){ + helper = aux; + } + } + } + + if(tableRowsTelefone.containsKey(helper)){ + tableRowsTelefone.remove(helper); + colecaoClienteFoneHelper.remove(helper); + + Util.showMessage(this, getString(R.string.msg_tel_removido_sucesso), Toast.LENGTH_SHORT); + + populaTabelaTelefone(); + } + } + + /** + * Popula a tabela de Telefone + * + * @author Davi Menezes + * @date 03/01/2012 + */ + @SuppressWarnings("deprecation") + private void populaTabelaTelefone(){ + //Limpa + if(tableLayoutTelefone.getChildCount() > 0){ + tableLayoutTelefone.removeAllViews(); + } + + Set keys = tableRowsTelefone.keySet(); + + TableRow tr = null; + + for(ClienteFoneHelper key : keys){ + tr = tableRowsTelefone.get(key); + tr.setBackgroundColor((tableLayoutTelefone.getChildCount() % 2 == 0) ? Color.TRANSPARENT : Color.parseColor("#5D5F5F")); + tableLayoutTelefone.addView(tr, new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + } + } + + @Override + public boolean onLongClick(View v) { + if(v.getTag().equals(ConstantesSistema.BOTAO_REMOVER_TELEFONE_ID)){ + this.removerLinhaTabelaTelefone(v); + } + + return false; + } + + @Override + protected void onDestroy() { + super.onDestroy(); + this.fecharCursor(cursor); + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadApkActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadApkActivity.java new file mode 100644 index 0000000..0634f9c --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadApkActivity.java @@ -0,0 +1,327 @@ +package com.br.gsanac.gui; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.MalformedURLException; +import java.util.Vector; + +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.net.Uri; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.widget.ProgressBar; +import android.widget.TextView; + +import com.br.gsanac.R; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.fachada.FachadaWebServer; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + + + +public class DownloadApkActivity extends BaseActivity { + + //private static String VERSAO_BAIXADA = ""; + + private static final int ERROR_ABORT_REQUESTED = 99; + public static final int ERRO_VERSAO_INDISPONIVEL = 98; + public static final int IGNORE_DOWNLOAD_VERSION = 90; + private static final int ERRO_VERIFICANDO_VERSAO = 97; + private static final int ERRO_DOWNLOAD_APK = 96; + + private class DownloadApkControl extends AsyncTask{ + + private ProgressBar prbRoute; + protected boolean abort = false; + + /** + * Prepare activity before upload + */ + @Override + protected void onPreExecute() { + super.onPreExecute(); +// File diretorioRaiz = new File( ConstantesSistema.SDCARD_PATH ); +// if(!diretorioRaiz.exists()){ +// diretorioRaiz.mkdirs(); +// } + +// File caminhoPastaIsc = new File( ConstantesSistema.SDCARD_GSANAC_VERSION_PATH ); +// if(!caminhoPastaIsc.exists()){ +// caminhoPastaIsc.mkdirs(); +// } + } + + @Override + protected void onPostExecute(Integer sucess) { + if(rdc.abort == false){ + String errorMsg = DownloadApkActivity.this.verificaErros(sucess); + if (sairSistema){ + finish(); + } + else if ( errorMsg != null ){ + + new AlertDialog.Builder(DownloadApkActivity.this) + .setTitle(getString(R.string.str_alert_download_title)) + .setMessage( errorMsg ) + .setNeutralButton(getString(android.R.string.ok), + new DialogInterface.OnClickListener() { + public void onClick( + DialogInterface dialog, + int which) { + Intent i = new Intent(DownloadApkActivity.this, DownloadArquivoActivity.class); + DownloadApkActivity.this.startActivity(i); + finish(); + } + }).show(); + } else { + String appName = ConstantesSistema.SDCARD_GSANAC_VERSION_PATH + "/"+ ConstantesSistema.NOME_APK; + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + intent.setDataAndType(Uri.fromFile(new File(appName)), + "application/vnd.android.package-archive"); + //intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + DownloadApkActivity.this.startActivityForResult(intent, ConstantesSistema.INSTALL_APK); + finish(); + + } + } + } + + @Override + protected void onProgressUpdate(Integer... values) { + prbRoute.setProgress( values[0] ); + } + + private int baixarApk(InputStream in, int fileSize){ + + File file = new File(ConstantesSistema.SDCARD_GSANAC_VERSION_PATH+"/"+ConstantesSistema.NOME_APK); + + try{ + + prbRoute.setMax( fileSize ); + + FileOutputStream fos = new FileOutputStream(file); + + // Guarda o valor do primeiro byte de resposta + // para depois verificar se o download foi feito + String valor = Util.getValorRespostaInputStream(in); + + int progress = 0; + + byte[] buffer = new byte[in.available()]; + int len; + if( valor.equals("*")){ + while ((len = in.read(buffer)) != -1) { + progress += len; + publishProgress( progress ); + fos.write(buffer,0,len); + // Por último, escreve o valor do byte resposta + + } + fos.write((byte)ConstantesSistema.RESPOSTA_OK_CHAR); + fos.flush(); + fos.close(); + + }else{ + return ERROR_ABORT_REQUESTED; + } + } catch (FileNotFoundException e) { + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + e.printStackTrace(); + } catch (IOException e) { + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + e.printStackTrace(); + } + return ConstantesSistema.OK; + } + + @Override + protected Integer doInBackground(ProgressBar... params) { + prbRoute = params[0]; + + try{ + + + Vector parametros = new Vector(2); + parametros.add( new Byte( ConstantesSistema.DOWNLOAD_APK ) ); + parametros.add( Util.getEnderecoMac( DownloadApkActivity.this) ); + + FachadaWebServer.getInstancia().iniciarConexaoWebServer(DownloadApkActivity.this); + InputStream in = FachadaWebServer.getInstancia().comunicar( ConstantesSistema.ACTION, parametros ); + baixarApk(in, FachadaWebServer.getInstancia().getFileLength()); + + } catch (MalformedURLException e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + return ConstantesSistema.ERRO_GENERICO; + } catch (IOException e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + return ConstantesSistema.ERRO_CARREGANDO_ARQUIVO; + } catch ( Exception e ){ + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + return ConstantesSistema.ERRO_CARREGANDO_ARQUIVO; + } + + return ConstantesSistema.OK; + } + + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + + super.onActivityResult(requestCode, resultCode, data); + + if (requestCode == ConstantesSistema.INSTALL_APK) { + + if (resultCode != RESULT_OK) { + new AlertDialog.Builder(DownloadApkActivity.this) + .setTitle(getString(R.string.str_download_alert_file)) + .setCancelable(false) + .setMessage(getString(R.string.str_error_aborted) ) + .setNeutralButton(getString(android.R.string.ok), + new DialogInterface.OnClickListener() { + public void onClick( + DialogInterface dialog, + int which) { + + Intent i = new Intent(DownloadApkActivity.this, DownloadApkActivity.class); + DownloadApkActivity.this.startActivity(i); + finish(); + } + }).show(); + }else{ + Intent i = new Intent(DownloadApkActivity.this, DownloadArquivoActivity.class); + DownloadApkActivity.this.startActivity(i); + finish(); + + } + + } + } + + private boolean sairSistema; + private DownloadApkControl rdc; + + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + + new AlertDialog.Builder(DownloadApkActivity.this).setTitle("Verso desatualizada") + .setMessage("O sistema vai iniciar o processo de atualizao da verso.") + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + if (execute){ + setContentView(R.layout.download_arquivo_activity); + Fachada.setContext( Fachada.getContext() ); + + TextView text = (TextView) findViewById(R.id.textViewProgress); + text.setText("Baixando nova verso. Por favor, aguarde..."); + + ProgressBar progress = (ProgressBar) findViewById( R.id.progressPorLinha ); + progress.setIndeterminate( false ); + rdc = new DownloadApkControl(); + rdc.execute( progress ); + + } + } + }) + .show(); + + + } + + + private String verificaErros(Integer sucess) { + String errorMsg = null; + + switch (sucess){ + + case ConstantesSistema.ERRO_GENERICO: + errorMsg = getString(R.string.str_download_erro_problema_desconhecido); + break; + + case ConstantesSistema.ERRO_DOWNLOAD_ARQUIVO: + errorMsg = getString(R.string.str_error_download); + break; + + case ConstantesSistema.ERRO_CARREGANDO_ARQUIVO: + errorMsg = getString(R.string.str_error_laoding); + break; + + case ConstantesSistema.ERRO_SERVIDOR_OFF_LINE: + errorMsg = getString(R.string.str_error_off); + break; + + case ERRO_DOWNLOAD_APK: + errorMsg = getString(R.string.str_alert_download_apk_erro); + break; + + case ERRO_VERIFICANDO_VERSAO: + errorMsg = getString(R.string.str_alert_verificar_versao_erro); + break; + + case ERRO_VERSAO_INDISPONIVEL: + errorMsg = getString(R.string.str_alert_download_download_error); + break; + + case ERROR_ABORT_REQUESTED: + errorMsg = getString(R.string.str_error_aborted); + break; + } + + if(errorMsg != null){ + return errorMsg; + } + + return null; + + } + + public void onBackPressed() { +// Intent i = new Intent(DownloadApkActivity.this, DownloadApkActivity.class); +// startActivity(i); + finish(); + } + + + @Override + protected void onRestart() { + super.onRestart(); + + // Caso o usurio tenha apertado em cancelar ao baixar a verso + new AlertDialog.Builder(DownloadApkActivity.this) + .setTitle(getString(R.string.str_download_alert_file)) + .setMessage( getString(R.string.str_error_aborted) ) + .setNeutralButton(getString(android.R.string.ok), + new DialogInterface.OnClickListener() { + public void onClick( + DialogInterface dialog, + int which) { + + Intent i = new Intent(DownloadApkActivity.this, ApkActivity.class); + startActivity(i); + finish(); + + } + }).show(); + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadArquivoActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadArquivoActivity.java new file mode 100644 index 0000000..75d814e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/DownloadArquivoActivity.java @@ -0,0 +1,236 @@ +package com.br.gsanac.gui; + +import java.io.File; + + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.KeyEvent; +import android.view.View; +import android.view.View.OnClickListener; + +import com.br.gsanac.R; +import com.br.gsanac.conexao.ComunicacaoWebServer; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +public class DownloadArquivoActivity extends Activity implements OnClickListener { + + ProgressDialog mProgressDialog; + final KeyEvent event = new KeyEvent(KeyEvent.KEYCODE_BACK, + KeyEvent.KEYCODE_BACK); + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Fachada.setContext(this); + + //verifica se existe banco de dados cadastrado no sistema e nao existe nenhum registro de sistema parametro + //caso isso aconteca, remove o banco de dados + if (DBConnection.checkDatabase() && !existeSistemaParametros() ) { + + //remove banco de dados do sistema, preparando o sistema para carregar um novo arquivo. + DBConnection.getInstance(DownloadArquivoActivity.this).deleteDatabase(); + } + + //Caso nao exista banco de dados no sistema + if (!DBConnection.checkDatabase()) { + + mProgressDialog = new ProgressDialog(DownloadArquivoActivity.this) { + //desabilita os botoes + @Override + public void onBackPressed() { + } + + @Override + public boolean onSearchRequested() { + return false; + } + }; + + //monta a barra de progresso para ser exibida enquanto o arquivo carregado. + mProgressDialog.setIndeterminate(false); + mProgressDialog.setTitle(getString(R.string.titulo_carregando_arquivo)); + mProgressDialog.setMessage(getString(R.string.carregando)); + mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mProgressDialog.setMax(100); + mProgressDialog.setCancelable(false); + mProgressDialog.setIcon(R.drawable.transfer); + mProgressDialog.show(); + + AsyncTask taskDownloadFile = new AsyncTask() { + @Override + protected Object doInBackground(Object... params) { + + //verifica se o servidor esta online + ComunicacaoWebServer downloadFile = new ComunicacaoWebServer(DownloadArquivoActivity.this); + if ( downloadFile.isServerOnline() ) { + + //recebe o login como parametro - para pesquisar o arquivo para o login informado + String login = (String) getIntent().getSerializableExtra(ConstantesSistema.LOGIN); + String senha = (String) getIntent().getSerializableExtra(ConstantesSistema.SENHA); + + //carrega o arquivo, caso seja carregado com sucesso + if (downloadFile.fileOperation(ConstantesSistema.DOWNLOAD_FILE, mProgressDialog, login, senha)) { + + //recupera a versao do sistema - tablet + String strVersaoAtual = Util.getVersaoSistema(DownloadArquivoActivity.this); + + + //recupera a versao do sistema - arquivo carregado + SistemaParametros sistemaParametros = new SistemaParametros(); + try{ + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + + Integer intVersaoAtual = Integer.valueOf(strVersaoAtual.replace(".", "")); + Integer intNovaVersao = Integer.valueOf(sistemaParametros.getNumeroVersao().replace(".", "")); + + //verifica se a versao do arquivo carregado maior que a do tablet + //caso seja remove o arquivo carregado e solicita o usario atualizar a versao + if(intNovaVersao > intVersaoAtual){ + mProgressDialog.dismiss(); + //remove o arquivo carregado. + DBConnection.getInstance(Fachada.getContext()).deleteDatabase(); + Util.removeInstanceRepository(); + + //caso o arquivo tenha sido carregado - envia o usuario para a tela de login + Intent i = new Intent(DownloadArquivoActivity.this, VersaoArquivoErradaActivity.class); + startActivity(i); + finish(); + } else { + + mProgressDialog.dismiss(); + + //caso o arquivo tenha sido carregado - envia o usuario para a tela de login + Intent i = new Intent(DownloadArquivoActivity.this, LoginActivity.class); + startActivity(i); + finish(); + } + + } else { + //Falha no carregamento do arquivo. + try{ + //Caso tenha criado um arquivo incompleto + //Remove o arquivo. + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + if ( sistemaParametros != null && sistemaParametros.getDescricaoArquivo() != null ) { + + File fileInconsistence = new File(ConstantesSistema.SDCARD_GSANAC_FILES_PATH + "/" + sistemaParametros.getDescricaoArquivo() ); + fileInconsistence.delete(); + } + } catch (FachadaException e) { + e.printStackTrace(); + } + + //Erro no carregamento do arquivo. + DBConnection.getInstance(DownloadArquivoActivity.this).deleteDatabase(); + Util.removeInstanceRepository(); + mProgressDialog.dismiss(); + } + } + return true; + } + + @Override + protected void onPostExecute(Object result) { + mProgressDialog.dismiss(); + + // Informamos ao usurio que ocorreu erro na transmissao do arquivo. + new AlertDialog.Builder(DownloadArquivoActivity.this) + .setTitle(getString(R.string.error_ao_carregar_arquivo)) + .setMessage(R.string.conexao_falhou) + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton(getString(R.string.sim), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + if (DBConnection.checkDatabase()) { + //Erro no carregamento do arquivo. + DBConnection.getInstance(DownloadArquivoActivity.this).deleteDatabase(); + Util.removeInstanceRepository(); + } + + //enviamos o usuario para tela de carregar o arquivo offline + Intent i = new Intent(DownloadArquivoActivity.this,SelecionarArquivoActivity.class); + DownloadArquivoActivity.this.startActivityForResult(i,1); + finish(); + } + }) + .show(); + + } + }; + + taskDownloadFile.execute(); + + } else { + + //usuario sem conexao - enviado para tela de carregar arquivo offline + Intent intent = new Intent(this, SelecionarArquivoActivity.class); + startActivity(intent); + finish(); + + } + + } + + @Override + public void onClick(View view) { + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + // TODO Auto-generated method stub + super.onActivityResult(requestCode, resultCode, data); + finish(); + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } + + /** + * Verifica se existe o registro de sistema parametros - primeiro registro a ser criado no banco de dados - no carregamento do arquivo. + * + * @author Arthur Carvalho + * @date 03/10/2013 + * + * @return + */ + private boolean existeSistemaParametros(){ + boolean existe = false; + try { + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + if ( sistemaParametros != null && sistemaParametros.getId() != null ) { + existe = true; + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + return existe; + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/EnderecoAbaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/EnderecoAbaActivity.java new file mode 100644 index 0000000..5a7ff54 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/EnderecoAbaActivity.java @@ -0,0 +1,656 @@ +package com.br.gsanac.gui; + +import java.awt.font.NumericShaper; +import java.util.ArrayList; + +import android.app.Activity; +import android.content.Intent; +import android.database.Cursor; +import android.os.Bundle; +import android.text.InputFilter; +import android.util.Log; +import android.view.Menu; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.View.OnFocusChangeListener; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AutoCompleteTextView; +import android.widget.Button; +import android.widget.EditText; +import android.widget.FilterQueryProvider; +import android.widget.SimpleCursorAdapter; +import android.widget.Spinner; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Bairro; +import com.br.gsanac.entidades.Bairro.Bairros; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.EnderecoReferencia; +import com.br.gsanac.entidades.EnderecoReferencia.EnderecoReferencias; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroBairro.LogradouroBairros; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroCep.LogradouroCeps; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTipo.LogradouroTipoColunas; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.LogradouroTitulo.LogradouroTituloColunas; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +public class EnderecoAbaActivity extends BaseTabsActivity { + + private static Fachada fachada = Fachada.getInstance(); + private Cursor cursor; + private Intent intent; + + private ImovelAtlzCadastral imovelAtlzCadastral; + private LogradouroBairro logradouroBairro; + private LogradouroCep logradouroCep; + + AutoCompleteTextView autoComplete; + Spinner spnReferenciaNum; + EditText edtReferenciaNum; + EditText edtComplemento; + Spinner spnBairro; + Spinner spnCep; + Button btnInserirLogra; + EditText edtEndereco; + + long idLogradouroSelecionado = ConstantesSistema.ITEM_INVALIDO; + private ArrayList logradouros = null; + + private boolean novoLogra = false; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.endereco_aba); + try { + + /** Logradouro **/ + cursor = fachada.getCursorLogradouro(Logradouro.class, null); +// startManagingCursor(cursor); + SimpleCursorAdapter simple = Util.getAdapterAutoCompleteLogradouro(cursor); + + simple.setFilterQueryProvider(new FilterQueryProvider() { + + @Override + public Cursor runQuery(CharSequence description) { + Cursor cursor = getDescriptions(description); + return cursor; + } + }); + + autoComplete = (AutoCompleteTextView) findViewById(R.id.autoComplete); + autoComplete.setAdapter(simple); + autoComplete.setFilters(new InputFilter[]{new InputFilter.AllCaps()}); + + autoComplete.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + AutoCompleteTextView autoCom = (AutoCompleteTextView) v; + if(autoCom.getText() == null || autoCom.getText().toString().equals("")){ + autoCom.showDropDown(); + } + } + }); + + autoComplete.setOnItemClickListener(new OnItemClickListener() { + + @Override + public void onItemClick(AdapterView arg0, View arg1, + int arg2, long id) { + idLogradouroSelecionado = id; + + carregarBairro(id); + carregarCEP(id); + + } + }); + + /** Referencia/Numero **/ + spnReferenciaNum = (Spinner) findViewById(R.id.spnReferenciaNum); + + cursor = fachada.getCursor(EnderecoReferencia.class, + EnderecoReferencias.ID, + EnderecoReferencias.DESCRICAO, + new EnderecoReferencia().getNomeTabela()); +// startManagingCursor(cursor); + spnReferenciaNum.setAdapter(Util.getAdapter(cursor)); + + edtReferenciaNum = (EditText) findViewById(R.id.edtReferenciaNum); + edtReferenciaNum.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(5), Util.filtervalidarFiltroNumeroComplemento()}); + + edtReferenciaNum.setOnFocusChangeListener(new OnFocusChangeListener() { + + @Override + public void onFocusChange(View v, boolean hasFocus) { + if (!hasFocus) { + + String texto = edtReferenciaNum.getText().toString(); + + if ( texto != null && !texto.equals( "" ) ){ + if ( Util.ehNumero( texto ) && texto.length() < 5 ){ + if ( texto != null && !texto.equals( "" ) ) + edtReferenciaNum.setText( Util.completarComZeros(5, texto ) ); + } + } + } + } + }); + + + /** + * Correo referente a RM10115 - Ajuste no campo nmero - atualizao cadastral (tablet) + * + * @author Diogo Luiz + * @data 06/03/2014 + */ + spnReferenciaNum.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { + + public void onItemSelected(AdapterView parent, View view, int position, long id) { + if(spnReferenciaNum.getSelectedItemId() == ConstantesSistema.SEM_NUMERO){ + edtReferenciaNum.setText(""); + edtReferenciaNum.setEnabled(false); + }else{ + edtReferenciaNum.setEnabled(true); + } + } + + public void onNothingSelected(AdapterView arg0) { + + } + + }); + + edtComplemento = (EditText) findViewById(R.id.edtComplemento); + edtComplemento.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(25), Util.filterReplaceCaracteresEspeciaisEEspaco()}); + + /** Bairro **/ + spnBairro = (Spinner) findViewById(R.id.spnBairro); + +// carregarBairro(autoComplete.getSelectedItemId()); + + /** CEP **/ + spnCep = (Spinner) findViewById(R.id.spnCep); + +// carregarCEP(spnLogradouro.getSelectedItemId()); + + /** Exibe os dados do Imvel ***/ + imovelAtlzCadastral = TabsActivity.imovel; + + + //Carrega na combobox o Logradouro do imovel + if (imovelAtlzCadastral.getLogradouro() != null + && imovelAtlzCadastral.getLogradouro().getId() != null) { + logradouros = (ArrayList) fachada.pesquisarLista(Logradouro.class, null, null, Logradouros.NOMELOGRADOURO); + Util.selecionarItemAutoComplete(autoComplete, imovelAtlzCadastral.getLogradouro().getId().longValue(), logradouros); + + idLogradouroSelecionado = imovelAtlzCadastral.getLogradouro().getId().longValue(); + + carregarBairro(idLogradouroSelecionado); + carregarCEP(idLogradouroSelecionado); + } + + //Carrega na combobox o Referencia Numero do imovel + if (imovelAtlzCadastral.getEnderecoReferencia() != null + && imovelAtlzCadastral.getEnderecoReferencia().getId() != null) { + Util.selecionarItemCombo(spnReferenciaNum, imovelAtlzCadastral.getEnderecoReferencia().getId().longValue()); + } + + //Carrega o Numero do imovel + if ( imovelAtlzCadastral.getNumeroImovel() != null && !imovelAtlzCadastral.getNumeroImovel().equals("") ){ + if ( Util.ehNumero( imovelAtlzCadastral.getNumeroImovel() ) ) + edtReferenciaNum.setText( Util.completarComZeros( 5, imovelAtlzCadastral.getNumeroImovel() ) ); + else{ + edtReferenciaNum.setText( imovelAtlzCadastral.getNumeroImovel() ); + Util.selecionarItemCombo(spnReferenciaNum, ConstantesSistema.SEM_NUMERO ); + } + } + + //Carrega o complemento do endereco + edtComplemento.setText(imovelAtlzCadastral.getComplementoEndereco()); + + //Pesquisa Logradouro Bairro + if ( imovelAtlzCadastral.getLogradouroBairroId() != null ) { + logradouroBairro = new LogradouroBairro(); + String selection = LogradouroBairros.ID + "=?"; + int logradouroBairroId = imovelAtlzCadastral.getLogradouroBairroId().intValue(); + + String[] selectionArgs = new String[] { + String.valueOf(logradouroBairroId) + }; + + logradouroBairro = (LogradouroBairro) fachada.pesquisar(logradouroBairro, selection, selectionArgs); + + //Carrega na combobox o Bairro do imovel + if (logradouroBairro != null + && logradouroBairro.getBairro() != null) { + Util.selecionarItemCombo(spnBairro, logradouroBairro.getBairro().getId().longValue()); + } + } + //Pesquisa Logradouro Cep + logradouroCep = new LogradouroCep(); + if ( imovelAtlzCadastral.getLogradouroCEPId() != null ) { + String selectionLograCep = LogradouroCeps.ID + "=?"; + int logradouroCepId = imovelAtlzCadastral.getLogradouroCEPId().intValue(); + + String[] selectionArgsLograCep = new String[] { + String.valueOf(logradouroCepId) + }; + + logradouroCep = (LogradouroCep) fachada.pesquisar(logradouroCep, selectionLograCep, selectionArgsLograCep); + + //Carrega na combobox o CEP do imovel + if (logradouroCep != null + && logradouroCep.getCep() != null) { + Util.selecionarItemCombo(spnCep, logradouroCep.getCep().getId().longValue()); + } + } + + + /** Chama a tela de Inserir Logradouro **/ + btnInserirLogra = (Button) findViewById(R.id.btnInserirLogra); + + btnInserirLogra.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { + TabsActivity.indicadorExibirMensagemErro = false; + intent = new Intent(EnderecoAbaActivity.this, LogradouroInserirActivity.class); + + startActivityForResult(intent, ConstantesSistema.ENDERECO_ABA_REQUEST_CODE); + } + }); + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + + @Override + protected void onPause() { + super.onPause(); + + try { + //Logradouro + if(idLogradouroSelecionado != ConstantesSistema.ITEM_INVALIDO){ + Logradouro logradouro = new Logradouro(); + String selectionLogra = Logradouros.ID + "=?"; + + String[] selectionArgsLogra = new String[] { + String.valueOf(idLogradouroSelecionado) + }; + + logradouro = (Logradouro) fachada.pesquisar(logradouro, selectionLogra, selectionArgsLogra); + + String endereco = ""; + LogradouroTipo logradouroTipo = new LogradouroTipo(); + + String selectionTipo = LogradouroTipoColunas.ID + "=?"; + + String[] selectionArgsTipo = new String[] { + String.valueOf(logradouro.getLogradouroTipo().getId()) + }; + + logradouroTipo = (LogradouroTipo) Fachada.getInstance().pesquisar(logradouroTipo, selectionTipo, selectionArgsTipo); + + if ( logradouroTipo != null ) { + endereco = logradouroTipo.getDescricao() + " "; + } + + + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + + String selectionTitulo = LogradouroTituloColunas.ID + "=?"; + + String[] selectionArgsTitulo = new String[] { + String.valueOf(logradouro.getLogradouroTitulo().getId()) + }; + + logradouroTitulo = (LogradouroTitulo) Fachada.getInstance().pesquisar(logradouroTitulo, selectionTitulo, selectionArgsTitulo); + + if ( logradouroTitulo != null && logradouroTitulo.getDescricao() != null ) { + endereco += logradouroTitulo.getDescricao() + " "; + } + + endereco += logradouro.getNomeLogradouro(); + + if(logradouro != null && autoComplete.getText().toString().equalsIgnoreCase(endereco)){ +// long _idLogradouro = idLogradouroSelecionado; + logradouro.setId(String.valueOf(idLogradouroSelecionado)); + + imovelAtlzCadastral.setLogradouro(logradouro); + + if ( logradouro.getCodigoUnico() != null ) { + imovelAtlzCadastral.setCodigoUnicoLogradouro(logradouro.getCodigoUnico()); + } + }else{ + imovelAtlzCadastral.setLogradouro(null); + } + }else{ + imovelAtlzCadastral.setLogradouro(null); + } + + //Referencia + if(spnReferenciaNum.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + long _idEnderecoReferencia = spnReferenciaNum.getSelectedItemId(); + enderecoReferencia.setId(String.valueOf(_idEnderecoReferencia)); + + imovelAtlzCadastral.setEnderecoReferencia(enderecoReferencia); + }else{ + imovelAtlzCadastral.setEnderecoReferencia(null); + } + + //Numero + if(imovelAtlzCadastral.getEnderecoReferencia() != null + && imovelAtlzCadastral.getEnderecoReferencia().getId() == ConstantesSistema.SEM_NUMERO){ + imovelAtlzCadastral.setNumeroImovel("S/N"); + }else{ + imovelAtlzCadastral.setNumeroImovel(edtReferenciaNum.getText().toString()); + } + + //Complemento + imovelAtlzCadastral.setComplementoEndereco(edtComplemento.getText().toString()); + + //Logradouro Bairro + if(spnBairro.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + long _idBairro = spnBairro.getSelectedItemId(); + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + String selection = LogradouroBairros.BAIRRO + "=?"; + selection = selection + " AND " + LogradouroBairros.LOGRADOURO + "=?"; + + String[] selectionArgs = new String[] { + String.valueOf(_idBairro), + String.valueOf(idLogradouroSelecionado) + }; + + logradouroBairro = (LogradouroBairro) fachada.pesquisar(logradouroBairro, selection, selectionArgs); + + if(logradouroBairro == null || logradouroBairro.getId() == null){ + selection = LogradouroBairros.BAIRRO + "=?"; + + selectionArgs = new String[] { + String.valueOf(_idBairro) + }; + + logradouroBairro = (LogradouroBairro) fachada.pesquisar(logradouroBairro, selection, selectionArgs); + } + + imovelAtlzCadastral.setLogradouroBairroId(logradouroBairro.getId()); + if ( logradouroBairro.getBairro() != null && logradouroBairro.getBairro().getId() != null ) { + imovelAtlzCadastral.setIdBairro(logradouroBairro.getBairro().getId()); + } + }else{ + imovelAtlzCadastral.setLogradouroBairroId(null); + } + + //Logradouro CEP + if(spnCep.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + long _idCep= spnCep.getSelectedItemId(); + + LogradouroCep logradouroCep = new LogradouroCep(); + String selectionLogrCep = LogradouroCeps.CEP + "=?"; + selectionLogrCep = selectionLogrCep + " AND " + LogradouroBairros.LOGRADOURO + "=?"; + + String[] selectionArgsLogrCep = new String[] { + String.valueOf(_idCep), + String.valueOf(idLogradouroSelecionado) + }; + + logradouroCep = (LogradouroCep) fachada.pesquisar(logradouroCep, selectionLogrCep, selectionArgsLogrCep); + + if(logradouroCep == null || logradouroCep.getId() == null){ + selectionLogrCep = LogradouroCeps.CEP + "=?"; + + selectionArgsLogrCep = new String[] { + String.valueOf(_idCep) + }; + + logradouroCep = (LogradouroCep) fachada.pesquisar(logradouroCep, selectionLogrCep, selectionArgsLogrCep); + } + + imovelAtlzCadastral.setLogradouroCEPId(logradouroCep.getId()); + + if(logradouroCep.getCep() != null){ + imovelAtlzCadastral.setCodigoCep(logradouroCep.getCep().getCodigo()); + } + + Cep cep = new Cep(); + String selectionCep = Ceps.ID+ "=?"; + + String[] selectionArgsCep = new String[] { + String.valueOf(_idCep) + }; + + cep = (Cep) fachada.pesquisar(cep, selectionCep, selectionArgsCep); + + imovelAtlzCadastral.setCodigoCep(cep.getCodigo()); + }else{ + imovelAtlzCadastral.setLogradouroCEPId(null); + } + + TabsActivity.imovel = imovelAtlzCadastral; + + if ( TabsActivity.indicadorExibirMensagemErro ) { + //Validacao + String mensagemErro = fachada.validarAbaEndereco(imovelAtlzCadastral); + + if ( mensagemErro != null && !mensagemErro.equals("") ) { + Util.exibirMensagemErro(EnderecoAbaActivity.this, mensagemErro); + } + } + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.endereco_aba, menu); + return true; + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent intent){ + if(resultCode == Activity.RESULT_OK){ + + TabsActivity.indicadorExibirMensagemErro = true; + try { + + cursor = fachada.getCursorLogradouro(Logradouro.class,null); +// startManagingCursor(cursor); + SimpleCursorAdapter simple = Util.getAdapterAutoCompleteLogradouro(cursor); + + simple.setFilterQueryProvider(new FilterQueryProvider() { + + @Override + public Cursor runQuery(CharSequence description) { + Cursor cursor = getDescriptions(description); + if(!cursor.moveToFirst()){ + idLogradouroSelecionado = ConstantesSistema.ITEM_INVALIDO; + } + return cursor; + } + }); + + autoComplete.setAdapter(simple); + + Logradouro logradouro = (Logradouro) intent.getSerializableExtra(ConstantesSistema.LOGRADOURO); + if ( logradouro != null ) { + TabsActivity.imovel.setLogradouro(logradouro); + } + + idLogradouroSelecionado = logradouro.getId().longValue(); + + logradouros = (ArrayList) fachada.pesquisarLista(Logradouro.class, null, null, Logradouros.NOMELOGRADOURO); + + Util.selecionarItemAutoComplete(autoComplete, logradouro.getId().longValue(), logradouros); + + novoLogra = true; + + carregarBairro(idLogradouroSelecionado); + carregarCEP(idLogradouroSelecionado); + + novoLogra = false; + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + } + + private void carregarBairro(long logradoiroId){ + try { + + String where = ""; + String ids = ""; + String selection = LogradouroBairros.LOGRADOURO + "=?"; + + String[] selectionArgs = new String[] { + String.valueOf(logradoiroId) + }; + + ArrayList listaLogradouroBairro = (ArrayList) fachada.pesquisarLista(LogradouroBairro.class, selection, selectionArgs, null); + + if(listaLogradouroBairro != null && !listaLogradouroBairro.isEmpty() ){ + where = Bairros.ID + " IN ("; + + for(LogradouroBairro logradouroBairro : listaLogradouroBairro){ + ids += logradouroBairro.getBairro().getId() + ","; + } + + ids += ConstantesSistema.ITEM_INVALIDO; + where += ids + ")"; + cursor = fachada.getCursor(Bairro.class, + Bairros.ID, + Bairros.DESCRICAO, + new Bairro().getNomeTabela(), + where); +// startManagingCursor(cursor); + spnBairro.setAdapter(Util.getAdapter(cursor)); + + if(novoLogra){ + String idBairroSelecionar = String.valueOf(ConstantesSistema.ITEM_INVALIDO); + + if(ids.split(",").length <= 2){ + idBairroSelecionar = ids.split(",")[0]; + } + + Util.selecionarItemCombo(spnBairro, Long.parseLong(idBairroSelecionar)); + }else if(logradouroBairro != null && logradouroBairro.getBairro() != null){ + Util.selecionarItemCombo(spnBairro, logradouroBairro.getBairro().getId().longValue()); + } + + } else { + where = null; + spnBairro.setAdapter(null); + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + private void carregarCEP(long logradoiroId){ + try { + String where = ""; + String ids = ""; + String selection = LogradouroCeps.LOGRADOURO + "=?"; + + String[] selectionArgs = new String[] { + String.valueOf(logradoiroId) + }; + + ArrayList listaLogradouroCep = (ArrayList) fachada.pesquisarLista(LogradouroCep.class, selection, selectionArgs, null); + + if(listaLogradouroCep != null && !listaLogradouroCep.isEmpty() ){ + where = Ceps.ID + " IN ("; + + for(LogradouroCep logradouroCep : listaLogradouroCep){ + ids += logradouroCep.getCep().getId() + ","; + } + ids += ConstantesSistema.ITEM_INVALIDO; + where += ids + ")"; + + cursor = fachada.getCursor(Cep.class, + Ceps.ID, + Ceps.CODIGO, + new Cep().getNomeTabela(), + where); +// startManagingCursor(cursor); + spnCep.setAdapter(Util.getAdapter(cursor)); + + if(novoLogra){ + String idCepSelecionar = String.valueOf(ConstantesSistema.ITEM_INVALIDO); + + if(ids.split(",").length <= 2){ + idCepSelecionar = ids.split(",")[0]; + } + + Util.selecionarItemCombo(spnCep, Long.parseLong(idCepSelecionar)); + }else if(logradouroCep != null && logradouroCep.getCep() != null){ + Util.selecionarItemCombo(spnCep, logradouroCep.getCep().getId().longValue()); + } + } else { + where = null; + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + /********** + *Filtra os logadouros + *@author Anderson Cabral + *@since 23/01/2013 + * + *************/ + public Cursor getDescriptions(CharSequence descriptionFragment) { + Cursor cursor = null; + String where = null; + + if(descriptionFragment == null || descriptionFragment == ""){ + where = null; + }else{ + + String [] array = descriptionFragment.toString().split(" "); + String pesquisa = ""; + for (int i = 0; i < array.length; i++) { + pesquisa += array[i] + "%"; + } + + where = " where " + LogradouroTipoColunas.DESCRICAO + "||" + LogradouroTituloColunas.DESCRICAO + "||" +Logradouros.NOMELOGRADOURO + " LIKE '%" + pesquisa + "'" + +" or " + LogradouroTipoColunas.DESCRICAO + "||" +Logradouros.NOMELOGRADOURO + " LIKE '%" + pesquisa + "'"; + } + + try { + cursor = fachada.getCursorLogradouro(Logradouro.class, where); +// startManagingCursor(cursor); + } catch (FachadaException e) { + e.printStackTrace(); + } + return cursor; + } + + @Override + protected void onDestroy() { + super.onDestroy(); + this.fecharCursor(cursor); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/FinalizarRoteiroActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/FinalizarRoteiroActivity.java new file mode 100644 index 0000000..39e89f4 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/FinalizarRoteiroActivity.java @@ -0,0 +1,744 @@ +package com.br.gsanac.gui; + +import java.io.File; +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.database.Cursor; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; +import android.widget.ProgressBar; + +import com.br.gsanac.R; +import com.br.gsanac.conexao.ComunicacaoWebServer; +import com.br.gsanac.conexao.ConexaoWebServer; +import com.br.gsanac.conexao.PhotoConnection; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteAtlzCadastral.ClienteAtlzCadastralColunas; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteFoneAtlzCad.ClienteFoneAtlzCadColunas; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.Foto.FotoColunas; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad.HidrometroInstHistAtlzCadColunas; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelOcorrencia.ImovelOcorrenciaColunas; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad.ImovelSubCategAtlzCadColunas; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroCep.LogradouroCeps; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + + +/** + *

+ * Activity que gerencia o processo de finalizao de um arquivo + *

+ * + * @author Arthur Carvalho + * @date 14/01/2013 + */ +public class FinalizarRoteiroActivity extends Activity implements OnClickListener { + + private Button btnCancel; + + private ProgressBar prbImovel; + + private ProgressBar prbFoto; + + private ProgressBar prbCep; + + private ProgressBar prbLogradouro; + + private ProgressBar prbLogradouroCep; + + private FinalizarRoteiroControl rfc; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.route_finalization_activity); + Fachada.setContext(this); + + prbCep = (ProgressBar) findViewById(R.id.progressByCep); + prbLogradouro = (ProgressBar) findViewById(R.id.progressByLogradouro); + prbLogradouroCep = (ProgressBar) findViewById(R.id.progressByLogradouroCep); + prbImovel = (ProgressBar) findViewById(R.id.progressByImovel); + prbFoto = (ProgressBar) findViewById(R.id.progressByFoto); + + rfc = new FinalizarRoteiroControl(); + rfc.execute(prbImovel, prbFoto, prbCep, prbLogradouro, prbLogradouroCep); + } + + @Override + public void onClick(View arg0) { + + if (arg0 == btnCancel) { + // Cancelamos a operação + rfc.abort = true; + } + + } + + @Override + public void onBackPressed() { + finish(); + return; + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } + + // Classe responsavel por controlar o processo de envio dos imveis pra base do GSAN. + private class FinalizarRoteiroControl extends AsyncTask { + + private ProgressBar prbImovel; + private ProgressBar prbFoto; + private ProgressBar prbCep; + private ProgressBar prbLogradouro; + private ProgressBar prbLogradouroCep; + protected boolean abort = false; + + private static final int ERROR_GENERIC = 0; + private static final int ERROR_ABORT_REQUESTED = 2; + private static final int ERROR_GENERATING_RETURN_FILE = 3; + private static final int ERROR_SEDING_SO_INFORMATION = 4; + private static final int ERROR_SERVER_OFFLINE = 5; + private static final int ERROR_FILE_FINISHED = 6; + private static final int ERROR_SENDIG_PHOTO = 7; + private static final int ARQUIVO_FINALIZADO = 8; + + + private static final int SUCESS = 1000; + + /** + * Prepare activity before upload + */ + @Override + protected void onPreExecute() { + super.onPreExecute(); + } + + @Override + protected Integer doInBackground(ProgressBar... params) { + ConexaoWebServer web = new ConexaoWebServer(FinalizarRoteiroActivity.this); + + prbImovel = params[0]; + prbFoto = params[1]; + prbCep = params[2]; + prbLogradouro = params[3]; + prbLogradouroCep = params[4]; + + int myCepProgress = 0; + int myLogradouroProgress = 0; + int myLogradouroCepProgress = 0; + int myImovelProgress = 0; + int myFotoProgress = 0; + + // Casp esteja off line + if (!web.serverOnline()) { + return ERROR_SERVER_OFFLINE; + } + + + try { + + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + //Verifica se o arquivo no est finalizado para transmitir os dados + Integer verificador = web.arquivoLiberadoParaTransmissao(sistemaParametros.getIdComando()); + + //caso o verificador seja igual 1 - arquivo nao finalizado + //caso o verificador seja igual 2 - arquivo finalizado + //caso o verificador seja igual 3 - sem conexao + + if ( verificador.equals(Integer.valueOf(1)) ) { + + /** + * Montando o arquivo Registro tipo CEP + */ + String selectionLogCep = LogradouroCeps.INDICADORNOVO+ "=? "; + + String[] selectionArgsLogCep = new String[] { + String.valueOf(ConstantesSistema.SIM) + }; + + List listaLogrCep = Fachada.getInstance().pesquisarLista(LogradouroCep.class, selectionLogCep, selectionArgsLogCep, null); + + if ( listaLogrCep != null ) { + + Iterator iteratorLogradouroCep = listaLogrCep.iterator(); + + while( iteratorLogradouroCep.hasNext() ) { + + LogradouroCep logradouroCep = (LogradouroCep) iteratorLogradouroCep.next(); + + + String selectionCep = Ceps.ID + "=? AND " + Ceps.INDICADOR_TRANSMITIDO + "=?"; + + String[] selectionArgsCep = new String[] { + String.valueOf(logradouroCep.getCep().getId()), + String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) + }; + + List listaCep = Fachada.getInstance().pesquisarLista(Cep.class,selectionCep, selectionArgsCep, null); + + //Valida se os ceps ja foram enviados. + if (listaCep == null || listaCep.size() == 0) { + //Atualiza a barra de progresso do CEP + + myCepProgress = 100; + myLogradouroProgress = 0; + myLogradouroCepProgress = 0; + myImovelProgress = 0; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } else { + + int c = 0; + Iterator iteratorCep = listaCep.iterator(); + + while( iteratorCep.hasNext() ) { + c++; + Cep cep = (Cep) iteratorCep.next(); + + + if ( cep.getCodigoUnico() == null || cep.getCodigoUnico().equals("") ) { + Long dateTime = new Date().getTime(); + cep.setCodigoUnico(dateTime.toString()); + Fachada.getInstance().update(cep); + } + try { + //Tentativa de transmisso do cep pra base do GSAN + boolean sucess = web.enviarDadosCep(cep); + + if (!sucess) { + return ERROR_SEDING_SO_INFORMATION; + } else { + //Caso o cep seja transmitido com sucesso atualizada o indicador que ja foi transmitido. + cep.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + try { + Fachada.getInstance().update(cep); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + } + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + return ERROR_GENERATING_RETURN_FILE; + } + } + + myCepProgress = (int) (((double) c / (double) listaCep.size()) * 100); + + myLogradouroProgress = 0; + myLogradouroCepProgress = 0; + myImovelProgress = 0; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } + } + } + + + + /** + * Fim da transmisso de CEP + */ + + /** + * Inicio da transmissao de LOGRADOURO +// */ +// String selectionLogradouro = Logradouros.INDICADORNOVO+ "=? AND " + Logradouros.INDICADOR_TRANSMITIDO + "=?"; +// +// String[] selectionArgsLogradouro = new String[] { +// String.valueOf(ConstantesSistema.SIM), +// String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) +// }; + + Cursor cursor = Fachada.getInstance().getCursorListaLogradouro(Logradouro.class); + Logradouro logr = new Logradouro(); + List listaLogradouro = logr.carregarListaEntidade(cursor); + + //Valida se os logradouros ja foram enviados. + if (listaLogradouro == null || listaLogradouro.size() == 0) { + + //Atualiza a barra de progresso de logradouro + myCepProgress = 100; + myLogradouroProgress = 100; + myLogradouroCepProgress = 0; + myImovelProgress = 0; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + + } else { + + int l = 0; + Iterator iteratorLogradouro = listaLogradouro.iterator(); + + while( iteratorLogradouro.hasNext() ) { + l++; + Logradouro logradouro = (Logradouro) iteratorLogradouro.next(); + + try { + + //Tentativa de transmisso do cep pra base do GSAN + boolean sucess = web.enviarDadosLogradouro(logradouro, sistemaParametros); + + if (!sucess) { + return ERROR_SEDING_SO_INFORMATION; + } else { + //Caso o cep seja transmitido com sucesso atualizada o indicador que ja foi transmitido. + logradouro.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + try { + Fachada.getInstance().update(logradouro); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + } + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + return ERROR_GENERATING_RETURN_FILE; + } + } + + myLogradouroProgress = (int) (((double) l / (double) listaLogradouro.size()) * 100); + myCepProgress = 100; + myLogradouroCepProgress = 0; + myImovelProgress = 0; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } + + /** + * Fim da transmisso de LOGRADOURO + */ + + /** + * Inicio da transmissao de LOGRADOURO CEP +// */ +// String selectionLogradouroCep = LogradouroCeps.INDICADORNOVO+ "=? AND " + LogradouroCeps.INDICADOR_TRANSMITIDO + "=?"; +// +// String[] selectionArgsLogradouroCep = new String[] { +// String.valueOf(ConstantesSistema.SIM), +// String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) +// }; + + Cursor cursor1 = Fachada.getInstance().getCursorListaLogradouroCep(LogradouroCep.class); + LogradouroCep logrCep = new LogradouroCep(); + List listaLogradouroCep = logrCep.carregarListaEntidade(cursor1); + + //Valida se os logradouros ja foram enviados. + if (listaLogradouroCep == null || listaLogradouroCep.size() == 0) { + //Atualiza a barra de progresso de logradouro + myCepProgress = 100; + myLogradouroProgress = 100; + myLogradouroCepProgress = 100; + myImovelProgress = 0; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } else { + + int lc = 0; + Iterator iteratorLogradouroCep = listaLogradouroCep.iterator(); + + while( iteratorLogradouroCep.hasNext() ) { + lc++; + LogradouroCep logradouroCep = (LogradouroCep) iteratorLogradouroCep.next(); + + try { + //Tentativa de transmisso do cep pra base do GSAN + boolean sucess = web.enviarDadosLogradouroCep(logradouroCep); + + if (!sucess) { + return ERROR_SEDING_SO_INFORMATION; + } else { + //Caso o cep seja transmitido com sucesso atualizada o indicador que ja foi transmitido. + logradouroCep.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + try { + Fachada.getInstance().update(logradouroCep); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + } + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + return ERROR_GENERATING_RETURN_FILE; + } + } + + myLogradouroCepProgress = (int) (((double) lc / (double) listaLogradouroCep.size()) * 100); + myCepProgress = 100; + myLogradouroProgress = 100; + myImovelProgress = 0; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } + /** + * Fim da transmissao de Logradouro CEP + */ + + + /** + * Inicio da transmissao de Imovel + */ + String selectionImovel = ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO+ "=? AND " + ImovelAtlzCadastralColunas.INDICADOR_TRANSMITIDO + "=?"; + + String[] selectionArgsImovel = new String[] { + String.valueOf(ConstantesSistema.FINALIZADO), + String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) + }; + + List listaImovel = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, + selectionImovel, + selectionArgsImovel, + ImovelAtlzCadastralColunas.ID); + + if (listaImovel.size() == 0) { + + myCepProgress = 100; + myLogradouroProgress = 100; + myLogradouroCepProgress = 100; + myImovelProgress = 100; + myFotoProgress = 0; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } + + int i = 0; + Iterator iteratorListaImovel = listaImovel.iterator(); + while (iteratorListaImovel.hasNext()) { + i++; + ImovelAtlzCadastral imovelAtlzCadastral = (ImovelAtlzCadastral) iteratorListaImovel.next(); + + try { + + //Pesquisa Cliente + String selection = ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgs = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + clienteAtlzCadastral = (ClienteAtlzCadastral) Fachada.getInstance().pesquisar(clienteAtlzCadastral, selection, selectionArgs); + + //CLIENTE FONE + List listaClienteFoneAtlzCadastral = null; + if ( clienteAtlzCadastral != null && clienteAtlzCadastral.getId() != null ) { + + //Pesquisa Logradouro + String selectionFone = ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID + "=?"; + + String[] selectionArgsFone = new String[] { + clienteAtlzCadastral.getId().toString() + }; + + listaClienteFoneAtlzCadastral = (List) Fachada.getInstance().pesquisarLista(ClienteFoneAtlzCad.class, selectionFone, selectionArgsFone, null); + } + + //Registro do tipo 08 - Hidrometro Atlz Cadastral + String selectionHidrometro = HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsHidrometro = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + List listaHidrometroInstHistAtlzCad = (List) Fachada.getInstance(). + pesquisarLista(HidrometroInstHistAtlzCad.class, selectionHidrometro, selectionArgsHidrometro, null); + + //Registro do tipo 09 - Subcategoria Atlz Cadastral + String selectionSub = ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsSub = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + + List listaImovelSubCategAtlzCad = (List) Fachada.getInstance() + .pesquisarLista(ImovelSubCategAtlzCad.class, selectionSub, selectionArgsSub, null); + + //Registro do tipo 10 - Imovel ocorrencia + String selectionOcorrencia = ImovelOcorrenciaColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsOcorrencia = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + List listaImovelOcorrencia = (List) Fachada.getInstance() + .pesquisarLista(ImovelOcorrencia.class, selectionOcorrencia, selectionArgsOcorrencia, null); + + boolean sucess = web.enviarDadosImovel(imovelAtlzCadastral, clienteAtlzCadastral, listaClienteFoneAtlzCadastral, listaHidrometroInstHistAtlzCad, + listaImovelSubCategAtlzCad, listaImovelOcorrencia); + + if (!sucess) { + return ERROR_SEDING_SO_INFORMATION; + } else { + imovelAtlzCadastral.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + try { + Fachada.getInstance().update(imovelAtlzCadastral); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + } + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + return ERROR_GENERATING_RETURN_FILE; + } + + myImovelProgress = (int) (((double) i / (double) listaImovel.size()) * 100); + + + myCepProgress = 100; + myLogradouroProgress = 100; + myLogradouroCepProgress = 100; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } + + + //Fotos + List listaFoto = null; + + String selectionPhoto = FotoColunas.INDICADORTRANSMITIDO + "=?"; + + String[] selectionPhotoArgs = new String[] { + String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) + }; + + listaFoto = Fachada.getInstance().pesquisarLista(Foto.class, selectionPhoto, selectionPhotoArgs, FotoColunas.ID); + + int j = 0; + Iterator iteratorListaFoto = listaFoto.iterator(); + while (iteratorListaFoto.hasNext()) { + j++; + myFotoProgress = (int) (((double) j / (double) listaFoto.size()) * 100); + + Foto foto = (Foto) iteratorListaFoto.next(); + + File imageFile = new File(foto.getFotoPath()); + String nomeFoto = imageFile.getName(); + ArrayList dados = Util.split_(nomeFoto); + + PhotoConnection connection = new PhotoConnection(); + boolean sucesso = connection.doFileUpload(imageFile, dados.get(0), foto.getFotoTipo(), ConstantesSistema.ACTION, foto); + // connection.execute(imageFile, dados.get(0), foto.getFotoTipo(), foto); + + if (!sucesso) { + System.out.println("Erro ao enviar foto: " + nomeFoto); +// return ERROR_ABORT_REQUESTED; + }else{ + foto.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + try { + Fachada.getInstance().update(foto); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + } + + myCepProgress = 100; + myLogradouroProgress = 100; + myLogradouroCepProgress = 100; + + publishProgress(myImovelProgress,myFotoProgress, myCepProgress, myLogradouroProgress, myLogradouroCepProgress); + Thread.sleep(500); + } + + Bundle b = new Bundle(); + b = getIntent().getExtras(); + String imoveisPendentes = null; + + if(b != null){ + imoveisPendentes = b.getString("imoveisPendentes"); + } + + if(imoveisPendentes == null || !imoveisPendentes.equals("SIM")){ + + //verifica se o usuario que ta finalizando o supervisor. + if ( sistemaParametros.getSenha() != null && !sistemaParametros.getSenha().equals("") ) { + ComunicacaoWebServer finalizarFile = new ComunicacaoWebServer(FinalizarRoteiroActivity.this); + //verifica se o supervisor esta online + if ( finalizarFile.isServerOnline() ) { + + boolean arquivofinalizado = finalizarFile.routeInitializationSignal(ConstantesSistema.ARQUIVO_FINALIZADO); + //verifica se o arquivo foi finalizado no gsan + if ( arquivofinalizado ) { + return SUCESS; + } else { + return ERROR_SERVER_OFFLINE; + } + } else { + return ERROR_SERVER_OFFLINE; + } + } + } + + } else { + if ( verificador.equals(Integer.valueOf(2)) ){ + return ARQUIVO_FINALIZADO; + } else { + return ERROR_SERVER_OFFLINE; + } + } + + } catch (Exception e) { + //Qualquer exception, informamos que no conseguimos executar + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + return ERROR_GENERIC; + } + + return SUCESS; + } + + @Override + protected void onPostExecute(Integer result) { + + String errorMsg = null; + + switch (result) { + + case ERROR_GENERIC: + errorMsg = "Houve um problema desconhecido ao enviar os dados. Favor realizar finalizao OFFLINE"; + break; + case ERROR_ABORT_REQUESTED: + errorMsg = "Operao Cancelada"; + break; + case ERROR_GENERATING_RETURN_FILE: + errorMsg = "Houve um erro na gerao do arquivo de retorno"; + break; + case ERROR_SEDING_SO_INFORMATION: + errorMsg = "Houve um erro no envio das informaes dos Imveis para o GSAN. Favor repetir a operao."; + break; + case ERROR_SERVER_OFFLINE: + errorMsg = "Erro de conexo. Sem acesso ao servidor GSAN."; + break; + case ERROR_FILE_FINISHED: + errorMsg = "Erro ao transmitir a finalizao do arquivo."; + break; + case ERROR_SENDIG_PHOTO: + errorMsg = "Erro no envio das photos ao transmitir a finalizao do arquivo."; + break; + case ARQUIVO_FINALIZADO: + errorMsg = "O arquivo j foi finalizado."; + break; + case SUCESS: + + Bundle b = new Bundle(); + b = getIntent().getExtras(); + String imoveisPendentes = null; + + if(b != null){ + imoveisPendentes = b.getString("imoveisPendentes"); + } + + if(imoveisPendentes == null || !imoveisPendentes.equals("SIM")){ + Intent i = new Intent(FinalizarRoteiroActivity.this, ArquivoFinalizadoActivity.class); + startActivity(i); + finish(); + }else{ + new AlertDialog.Builder(FinalizarRoteiroActivity.this) + .setMessage("Imvel Transmitido com Sucesso!") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton(ConstantesSistema.ALERT_OK, + new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent i = new Intent(FinalizarRoteiroActivity.this, RoteiroActivity.class); + startActivity(i); + finish(); + } + }) + .show(); + + } + + } + + if (errorMsg != null) { + AlertDialog alertDialog = new AlertDialog.Builder(FinalizarRoteiroActivity.this).setTitle(getString(R.string.problem_complet)) + .setMessage(errorMsg) + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton(ConstantesSistema.ALERT_OK, + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + } + }) + .show(); + alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { + + @Override + public void onDismiss(DialogInterface dialog) { + Intent i = new Intent(FinalizarRoteiroActivity.this, + RoteiroActivity.class); + FinalizarRoteiroActivity.this.startActivity(i); + finish(); + } + }); + } + } + + + @Override + protected void onProgressUpdate(Integer... values) { + super.onProgressUpdate(values); + + int myImovelProgress = values[0]; + int myfotoProgress = values[1]; + int myCepProgress = values[2]; + int myLogradouroProgress= values[3]; + int myLogradouroCep= values[4]; + + prbImovel.setProgress(myImovelProgress); + prbFoto.setProgress(myfotoProgress); + prbCep.setProgress(myCepProgress); + prbLogradouro.setProgress(myLogradouroProgress); + prbLogradouroCep.setProgress(myLogradouroCep); + } + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/FotosAbaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/FotosAbaActivity.java new file mode 100644 index 0000000..c9ffb0c --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/FotosAbaActivity.java @@ -0,0 +1,606 @@ +package com.br.gsanac.gui; + +import java.io.File; +import java.io.FileOutputStream; +import java.util.ArrayList; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import android.content.Intent; +import android.content.pm.ActivityInfo; +import android.database.Cursor; +import android.graphics.Bitmap; +import android.graphics.Color; +import android.os.Bundle; +import android.provider.MediaStore; +import android.util.Log; +import android.view.Gravity; +import android.view.Menu; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.View.OnLongClickListener; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemSelectedListener; +import android.widget.Button; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.Spinner; +import android.widget.TableLayout; +import android.widget.TableRow; +import android.widget.TextView; +import android.widget.Toast; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunas; +import com.br.gsanac.entidades.ClienteAtlzCadastral.ClienteAtlzCadastralColunas; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + + +public class FotosAbaActivity extends BaseTabsActivity implements OnClickListener, OnLongClickListener { + + private static Fachada fachada = Fachada.getInstance(); + private Cursor cursor; + private ImovelAtlzCadastral imovelAtlzCadastral; + private LinearLayout.LayoutParams llParams; + private Integer fotoTipoId = 0; + + private TextView tvData; + + private LinearLayout llFrenteCasa; + private ImageView imgFrenteCasa; + + private LinearLayout llHidrometro; + private ImageView imgHidrometro; + + private Button btnExcluirFrenteCasa; + private Button btnExcluirHidrometro; + private Spinner spnOcorrencias; + + private boolean primeiraVez = true; + + private Integer idFotoFrenteCasa = null; + private Integer idFotoHidrometro = null; + + /*** Armazena as linhas da TableLayout Ocorrencias***/ + private Map tableRowsOcorrencias; + + /*** Tabela com os ocorrencias selecionadas ***/ + private TableLayout tableLayoutOcorrencias; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.fotos_aba); + + try { + + llParams = new LinearLayout.LayoutParams(100, 100); + + imovelAtlzCadastral = TabsActivity.imovel; + + //Data + tvData = (TextView) findViewById(R.id.tvData); + String data = Util.convertDateToString(new Date()); + tvData.setText(data); + + //Fotos + llFrenteCasa = (LinearLayout) findViewById(R.id.llFrenteCasa); + llFrenteCasa.setOnClickListener(this); + imgFrenteCasa = (ImageView) findViewById(R.id.imgFrenteCasa); + + llHidrometro = (LinearLayout) findViewById(R.id.llHidrometro); + llHidrometro.setOnClickListener(this); + imgHidrometro = (ImageView) findViewById(R.id.imgHidrometro); + + //Botoes + btnExcluirFrenteCasa = (Button) findViewById(R.id.btnExcluirFrenteCasa); + btnExcluirFrenteCasa.setOnLongClickListener(this); + btnExcluirHidrometro = (Button) findViewById(R.id.btnExcluirHidrometro); + btnExcluirHidrometro.setOnLongClickListener(this); + + //Fotos + carregarFoto(TabsActivity.fotoFrenteDaCasa, ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA); + carregarFoto(TabsActivity.fotoHidrometro, ConstantesSistema.FOTO_TIPO_HIDROMETRO); + + if(TabsActivity.fotoFrenteDaCasa != null){ + if(TabsActivity.fotoFrenteDaCasa.getId() != null){ + idFotoFrenteCasa = TabsActivity.fotoFrenteDaCasa.getId(); + } + } + + if(TabsActivity.fotoHidrometro != null){ + if(TabsActivity.fotoHidrometro.getId() != null){ + idFotoHidrometro = TabsActivity.fotoHidrometro.getId(); + } + } + + //Ocorrencias + spnOcorrencias = (Spinner) findViewById(R.id.spnOcorrencias); + + cursor = fachada.getCursor(CadastroOcorrencia.class, + CadastroOcorrenciaColunas.ID, + CadastroOcorrenciaColunas.DESCRICAO, + new CadastroOcorrencia().getNomeTabela()); + + spnOcorrencias.setAdapter(Util.getAdapter(cursor)); + + spnOcorrencias.setOnItemSelectedListener(new OnItemSelectedListener() { + + public void onItemSelected(AdapterView parent, View view, int position, long id) { + + if (!primeiraVez) { + inserirLinhaTabelaOcorrencias(); + } else { + primeiraVez = false; + } + } + + public void onNothingSelected(AdapterView arg0) { + + } + + }); + + tableRowsOcorrencias = new HashMap(); + + if(TabsActivity.colecaoImovelOcorrencia == null){ + TabsActivity.colecaoImovelOcorrencia = new ArrayList(); + }else{ + carregarTabelaOcorrencias(); + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + } + + private void carregarFoto(Foto foto, int tipo){ + + if(foto != null){ + if(tipo == ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA){ + imgFrenteCasa.setImageBitmap(Util.getBitmapByPath(foto.getFotoPath())); + imgFrenteCasa.setLayoutParams(llParams); + } + + if(tipo == ConstantesSistema.FOTO_TIPO_HIDROMETRO){ + imgHidrometro.setImageBitmap(Util.getBitmapByPath(foto.getFotoPath())); + imgHidrometro.setLayoutParams(llParams); + } + }else{ + if(tipo == ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA){ + imgFrenteCasa.setImageResource(R.drawable.camera); + }else if(tipo == ConstantesSistema.FOTO_TIPO_HIDROMETRO){ + imgHidrometro.setImageResource(R.drawable.camera); + } + } + } + + //Chama a itent da camera, para tirar a foto + @Override + public void onClick(View v) { + TabsActivity.indicadorExibirMensagemErro = false; + + v.setBackgroundResource(android.R.drawable.list_selector_background); + + switch (v.getId()) { + case R.id.llFrenteCasa: + fotoTipoId = ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA; + break; + case R.id.llHidrometro: + fotoTipoId = ConstantesSistema.FOTO_TIPO_HIDROMETRO; + break; + default: + Log.e(ConstantesSistema.LOG_TAG, "FOTO onClick " + getClass().getName() + " " + v.getId()); + } + + if (fotoTipoId != null && (fotoTipoId.equals(ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA) || fotoTipoId.equals(ConstantesSistema.FOTO_TIPO_HIDROMETRO))) { + TabsActivity.indicadorExibirMensagemErro = false; + Intent intent; + intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); + intent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION, ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); + + startActivityForResult(intent, fotoTipoId); + } + } + + //Metodo executado, pelos botoes de excluir (foto e ocorrencia) + @Override + public boolean onLongClick(View v) { + + switch (v.getId()) { + case R.id.btnExcluirFrenteCasa: + fotoTipoId = ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA; + break; + case R.id.btnExcluirHidrometro: + fotoTipoId = ConstantesSistema.FOTO_TIPO_HIDROMETRO; + break; + default: + fotoTipoId = 0; + } + + if (fotoTipoId != 0) { + //Exclui Foto + + if(fotoTipoId == ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA){ + if(TabsActivity.fotoFrenteDaCasa != null && Util.photoExistsByPath(TabsActivity.fotoFrenteDaCasa.getFotoPath())){ + Util.deletePhotoFileByPath(TabsActivity.fotoFrenteDaCasa.getFotoPath()); + this.carregarFoto(null, TabsActivity.fotoFrenteDaCasa.getFotoTipo()); + TabsActivity.fotoFrenteDaCasa = null; + } + }else{ + if(TabsActivity.fotoHidrometro != null && Util.photoExistsByPath(TabsActivity.fotoHidrometro.getFotoPath())){ + Util.deletePhotoFileByPath(TabsActivity.fotoHidrometro.getFotoPath()); + this.carregarFoto(null, TabsActivity.fotoHidrometro.getFotoTipo()); + TabsActivity.fotoHidrometro = null; + } + } + +// Foto foto = Util.pesquisarFotoBanco(imovelAtlzCadastral.getId(), fotoTipoId); +// +// if (foto != null && Util.photoExistsByPath(foto.getFotoPath())) { +// +// /** Remove o arquivo da foto **/ +// if (Util.deletePhotoFileByPath(foto.getFotoPath())) { +// try { +// fachada.remover(foto); +// this.carregarFoto(null, foto.getFotoTipo()); +// } catch (FachadaException e) { +// Log.e(ConstantesSistema.LOG_TAG, "onClick " + getClass().getName() + " " + v.getId()); +// } +// } +// } + }else{ + //Exclui Ocorrencia + this.removeLinhaTabelaOcorrencia(v); + } + + return true; + } + + + //Metodo executado, depois de tirada a foto + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + super.onActivityResult(requestCode, resultCode, data); + + // verifica se o cdigo de foto + if (requestCode == ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA || requestCode == ConstantesSistema.FOTO_TIPO_HIDROMETRO) { + fotoTipoId = requestCode; + TabsActivity.indicadorExibirMensagemErro = true; + // verifica se a foto foi salva + if (resultCode == RESULT_OK) { + try { + // pega a foto + Bundle bundle = data.getExtras(); + + //inseri o id do imovel, caso ele seja novo + if(imovelAtlzCadastral.getId() == null || imovelAtlzCadastral.getId().equals("")){ + imovelAtlzCadastral.setId(fachada.pesquisarMaiorIdImovel() + 1); + } + + File fotoFile = Util.getPhotoFile(imovelAtlzCadastral.getId(), fotoTipoId); + + FileOutputStream out = new FileOutputStream(fotoFile); + Bitmap bmp = (Bitmap) bundle.get("data"); + + // transforma o arquivo na foto tirada e grava o bmp + bmp.compress(Bitmap.CompressFormat.JPEG, 100, out); + + //Caso a foto tenha sido salva no Tablet, salva os meta dados dela, no banco. + if(Util.photoExistsByPath(fotoFile.getAbsolutePath())){ + + Foto foto = new Foto(); + + if(fotoTipoId == ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA){ + foto.setId(idFotoFrenteCasa); + }else{ + foto.setId(idFotoHidrometro); + } + + foto.setFotoTipo(fotoTipoId); + foto.setImovelAtlzCadastral(imovelAtlzCadastral); + foto.setUltimaAlteracao(new Date()); + foto.setFotoPath(fotoFile.getAbsolutePath()); + foto.setIndicadorTransmitido(2); + + if(foto.getFotoTipo() == ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA){ + TabsActivity.fotoFrenteDaCasa = foto; + }else{ + TabsActivity.fotoHidrometro = foto; + } + + this.carregarFoto(foto, foto.getFotoTipo()); + } + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + + } + TabsActivity.indicadorExibirMensagemErro = true; + } + + /** + * Carregar Tabela + * + * @author Anderson Cabral + * @since 07/01/2013 + */ + private void carregarTabelaOcorrencias() { + for(ImovelOcorrencia imovelOcorrencia : TabsActivity.colecaoImovelOcorrencia){ + + if (!tableRowsOcorrencias.containsKey(imovelOcorrencia.getCadastroOcorrencia().getId())) { + + tableLayoutOcorrencias= (TableLayout) findViewById(R.id.tabelaOcorrencias); + + int id = (int) imovelOcorrencia.getCadastroOcorrencia().getId(); + + /* + * + */ + TableRow tr = new TableRow(this); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setId(id); + tr.setLayoutParams(new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_OCORRENCIA_ID); + tr.setOnLongClickListener(this); + + /* + * + */ + TextView tvActionSelected = new TextView(this); + tvActionSelected.setId(id); + tvActionSelected.setGravity(Gravity.CENTER_VERTICAL); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setPadding(3, 0, 0, 0); + tvActionSelected.setMaxWidth(10); + + //Pesquisar Cadastro Ocorrencia + String selection = CadastroOcorrenciaColunas.ID + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(imovelOcorrencia.getCadastroOcorrencia().getId()) + }; + + CadastroOcorrencia cadOcorrencia = new CadastroOcorrencia(); + + try { + cadOcorrencia = (CadastroOcorrencia) fachada.pesquisar(cadOcorrencia, selection, selectionArgs); + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + imovelOcorrencia.setCadastroOcorrencia(cadOcorrencia); + + tvActionSelected.setText(cadOcorrencia.getDescricao()); + tvActionSelected.setTextSize(18); + tvActionSelected.setTag(ConstantesSistema.BOTAO_REMOVER_OCORRENCIA_ID); + tvActionSelected.setOnLongClickListener(this); + + /* + * + */ + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(id); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_OCORRENCIA_ID); + imgRemoveAction.setImageResource(R.drawable.btnremover); + imgRemoveAction.setPadding(0, 20, 30, 10); +// imgRemoveAction.setOnLongClickListener(this); + + /* + * + */ + tr.addView(tvActionSelected); + tr.addView(imgRemoveAction); + + tableRowsOcorrencias.put((long) id, tr); + + this.populaTabelaOcorrencias(); + + } else { + primeiraVez = true; + } + } + } + + /** + * Inseri uma linha na lista de Ocorrencias + * + * @author Anderson Cabral + * @since 07/01/2013 + */ + private void inserirLinhaTabelaOcorrencias() { + + if (!tableRowsOcorrencias.containsKey(spnOcorrencias.getSelectedItemId())) { + + tableLayoutOcorrencias= (TableLayout) findViewById(R.id.tabelaOcorrencias); + + int id = (int) spnOcorrencias.getSelectedItemId(); + + /* + * + */ + TableRow tr = new TableRow(this); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setId(id); + tr.setLayoutParams(new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_OCORRENCIA_ID); + tr.setOnLongClickListener(this); + + /* + * + */ + TextView tvActionSelected = new TextView(this); + tvActionSelected.setId(id); + tvActionSelected.setGravity(Gravity.CENTER_VERTICAL); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setPadding(3, 0, 0, 0); + tvActionSelected.setMaxWidth(10); + + Cursor c = (Cursor) spnOcorrencias.getSelectedItem(); + String descricao = c.getString(c.getColumnIndex(ConstantesSistema.COLUMN_DESCRIPTION_ALIAS)); + tvActionSelected.setText(descricao); + tvActionSelected.setTextSize(18); + tvActionSelected.setTag(ConstantesSistema.BOTAO_REMOVER_OCORRENCIA_ID); + tvActionSelected.setOnLongClickListener(this); + + /* + * + */ + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(id); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_OCORRENCIA_ID); + imgRemoveAction.setImageResource(R.drawable.btnremover); + imgRemoveAction.setPadding(0, 20, 30, 10); +// imgRemoveAction.setOnLongClickListener(this); + + spnOcorrencias.setSelection(0); + primeiraVez = true; + + /* + * + */ + tr.addView(tvActionSelected); + tr.addView(imgRemoveAction); + + tableRowsOcorrencias.put((long) id, tr); + + this.populaTabelaOcorrencias(); + + //Adiciona o imovelOcorrencia na lista + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + imovelOcorrencia.setImovelAtlzCadastral(imovelAtlzCadastral); + + + String selection = CadastroOcorrenciaColunas.ID + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(id) + }; + + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + try { + cadastroOcorrencia = (CadastroOcorrencia) Fachada.getInstance().pesquisar(cadastroOcorrencia,selection, selectionArgs ); + } catch (FachadaException e) { + e.printStackTrace(); + } + + imovelOcorrencia.setCadastroOcorrencia(cadastroOcorrencia); + + TabsActivity.colecaoImovelOcorrencia.add(imovelOcorrencia); + + } else { + Util.showMessage(this, getString(R.string.error_ocorrencia_ja_selecionado), Toast.LENGTH_SHORT); + spnOcorrencias.requestFocus(); + spnOcorrencias.setSelection(0); + primeiraVez = true; + } + } + + /** + *

+ * Popula a tabela Ocorrencias + *

+ * + * @author Anderson Cabral + * @since 07/01/2013 + */ + @SuppressWarnings("deprecation") + private void populaTabelaOcorrencias() { + // Limpa + if (tableLayoutOcorrencias.getChildCount() > 0) { + tableLayoutOcorrencias.removeAllViews(); + } + + Set keys = tableRowsOcorrencias.keySet(); + + TableRow tr = null; + + for (Long key : keys) { + tr = tableRowsOcorrencias.get(key); + tr.setBackgroundColor((tableLayoutOcorrencias.getChildCount() % 2 == 0) ? Color.TRANSPARENT : Color.parseColor("#5D5F5F")); + tableLayoutOcorrencias.addView(tr, new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + } + } + + /** + * Remove da tabela o Ocorrencia selecionado + * + * @author Anderson Cabral + * @since 07/01/2013 + */ + private void removeLinhaTabelaOcorrencia(View v) { + + long id = v.getId(); + + if (tableRowsOcorrencias.containsKey(id)) { + + tableRowsOcorrencias.remove(id); + + Util.showMessage(this, getString(R.string.msg_ocorrencia_removida_sucesso), Toast.LENGTH_SHORT); + + this.populaTabelaOcorrencias(); + + //Remove o ImovelOcorrencia da Lista + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + imovelOcorrencia.setImovelAtlzCadastral(imovelAtlzCadastral); + + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + cadastroOcorrencia.setId(String.valueOf(id)); + + imovelOcorrencia.setCadastroOcorrencia(cadastroOcorrencia); + + TabsActivity.colecaoImovelOcorrencia.remove(imovelOcorrencia); + } + } + + @Override + protected void onPause() { + super.onPause(); + try{ + + if ( TabsActivity.indicadorExibirMensagemErro ) { + + //Validacao + String mensagemErro = fachada.validarAbaFotos(imovelAtlzCadastral.getId()); + + if ( mensagemErro != null && !mensagemErro.equals("") ) { + Util.exibirMensagemErro(FotosAbaActivity.this, mensagemErro); + } + } + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.fotos_aba, menu); + return true; + } + + @Override + protected void onDestroy() { + super.onDestroy(); + this.fecharCursor(cursor); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/ImovelAbaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ImovelAbaActivity.java new file mode 100644 index 0000000..07d73c3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/ImovelAbaActivity.java @@ -0,0 +1,536 @@ +package com.br.gsanac.gui; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; + +import android.app.Activity; +import android.content.Intent; +import android.database.Cursor; +import android.graphics.Color; +import android.os.Bundle; +import android.text.InputFilter; +import android.util.Log; +import android.view.Gravity; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.View.OnLongClickListener; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.RadioButton; +import android.widget.RadioGroup; +import android.widget.Spinner; +import android.widget.TableLayout; +import android.widget.TableRow; +import android.widget.TextView; +import android.widget.Toast; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Categoria; +import com.br.gsanac.entidades.Categoria.CategoriaColunas; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.FonteAbastecimento.FonteAbastecimentos; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelPerfil; +import com.br.gsanac.entidades.ImovelPerfil.ImovelPerfilColunas; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.PavimentoCalcada; +import com.br.gsanac.entidades.PavimentoCalcada.PavimentoCalcadas; +import com.br.gsanac.entidades.PavimentoRua; +import com.br.gsanac.entidades.PavimentoRua.PavimentoRuas; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.entidades.SubCategoria; +import com.br.gsanac.entidades.SubCategoria.SubCategoriaColunas; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + * [UC 1412] - Manter Dados da Aba Imvel do Tablet + * + * @author Davi Menezes + * @date 07/01/2013 + * + */ +public class ImovelAbaActivity extends BaseTabsActivity implements OnLongClickListener { + + private static Fachada fachada = Fachada.getInstance(); + + private Cursor cursor; + private Intent intent; + + private Spinner spnPerfilImovel; + + private RadioGroup radioGroupTarifaSocial; + private RadioButton radioTarifaSocialSim; + private RadioButton radioTarifaSocialNao; + + private EditText edtNumMedidorEnergia; + private EditText edtNumMoradores; + + private Spinner spnPavimentoRua; + private Spinner spnPavimentoCalcada; + private Spinner spnFonteAbastecimento; + + private Button btAdicionarCategoria; + + /*** Armazena as linhas do TableLayout Categoria ***/ + private Map tableRowsCategoria; + + /*** Tabela com as Categorias selecionados ***/ + private TableLayout tableLayoutCategoria; + + private ImovelAtlzCadastral imovelAtlzCadastral; + + private ArrayList colImoveisSubCategoria = new ArrayList(); + + /** Called when the activity is first created. */ + int mStackLevel = 1; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.imovel_aba); + + try { + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) fachada.pesquisar(sistemaParametros, null, null); + + //Perfil Imvel + spnPerfilImovel = (Spinner) findViewById(R.id.spnPerfilImovel); + cursor = fachada.getCursor(ImovelPerfil.class, + ImovelPerfilColunas.ID, + ImovelPerfilColunas.DESCRICAO, + new ImovelPerfil().getNomeTabela()); + + spnPerfilImovel.setAdapter(Util.getAdapter(cursor)); + + Util.selecionarItemCombo(spnPerfilImovel, ImovelPerfil.NORMAL); + spnPerfilImovel.setEnabled(false); + + //Numero Medidor + edtNumMedidorEnergia = (EditText) findViewById(R.id.edtNumMedidorEnergia); + edtNumMedidorEnergia.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(10), Util.filterReplaceCaracteresEspeciaisEEspaco()}); + + //Pavimento Rua + spnPavimentoRua = (Spinner) findViewById(R.id.spnPavimentoRua); + cursor = fachada.getCursor(PavimentoRua.class, + PavimentoRuas.ID, + PavimentoRuas.DESCRICAO, + new PavimentoRua().getNomeTabela()); + + spnPavimentoRua.setAdapter(Util.getAdapter(cursor)); + + //Pavimento Calada + spnPavimentoCalcada = (Spinner) findViewById(R.id.spnPavimentoCalcada); + cursor = fachada.getCursor(PavimentoCalcada.class, + PavimentoCalcadas.ID, + PavimentoCalcadas.DESCRICAO, + new PavimentoCalcada().getNomeTabela()); + + spnPavimentoCalcada.setAdapter(Util.getAdapter(cursor)); + + //Fonte de Abastecimento + spnFonteAbastecimento = (Spinner) findViewById(R.id.spnFonteAbastecimento); + cursor = fachada.getCursor(FonteAbastecimento.class, + FonteAbastecimentos.ID, + FonteAbastecimentos.DESCRICAO, + new FonteAbastecimento().getNomeTabela()); + + //Tarifa Social + radioTarifaSocialSim = (RadioButton) findViewById(R.id.radioTarifaSocialSim); + radioTarifaSocialNao = (RadioButton) findViewById(R.id.radioTarifaSocialNao); + radioGroupTarifaSocial = (RadioGroup) findViewById(R.id.radioGroupTarifaSocial); + + spnFonteAbastecimento.setAdapter(Util.getAdapter(cursor)); + + /** Chama a tela de Inserir Categoria **/ + btAdicionarCategoria = (Button) findViewById(R.id.btAdicionarCategoria); + + btAdicionarCategoria.setOnClickListener(new OnClickListener() { + @Override + public void onClick(View v) { + TabsActivity.indicadorExibirMensagemErro = false; + + intent = new Intent(ImovelAbaActivity.this, CategoriaImovelInserirActivity.class); + + startActivityForResult(intent, ConstantesSistema.IMOVEL_ABA_REQUEST_CODE); + } + }); + + /*** HashMap de Categoria ***/ + tableRowsCategoria = new HashMap(); + + /** Table Layout Categoria **/ + tableLayoutCategoria = (TableLayout) findViewById(R.id.tableLayoutCategorias); + tableLayoutCategoria.setVisibility(View.VISIBLE); + + imovelAtlzCadastral = TabsActivity.imovel; + + if(TabsActivity.primeiraVezAbaImovel){ + + radioTarifaSocialSim = (RadioButton) findViewById(R.id.radioTarifaSocialSim); + radioTarifaSocialNao = (RadioButton) findViewById(R.id.radioTarifaSocialNao); + + if(imovelAtlzCadastral == null || imovelAtlzCadastral.getImovelId() == null){ + radioTarifaSocialSim.setChecked(false); + radioTarifaSocialNao.setChecked(true); + imovelAtlzCadastral.setIndicadorTarifaSocial(2); + } + + TabsActivity.primeiraVezAbaImovel = false; + } + + if(imovelAtlzCadastral.getImovelPerfil() != null){ + //Carrega na combobox o valor do Imvel Perfil + Util.selecionarItemCombo(spnPerfilImovel, imovelAtlzCadastral.getImovelPerfil().getId()); + spnPerfilImovel.setEnabled(false); + } + + if(imovelAtlzCadastral.getIndicadorTarifaSocial() != null){ + if(imovelAtlzCadastral.getIndicadorTarifaSocial().equals(ConstantesSistema.SIM)){ + radioTarifaSocialSim.setChecked(true); + radioTarifaSocialNao.setChecked(false); + imovelAtlzCadastral.setIndicadorTarifaSocial(1); + }else{ + radioTarifaSocialSim.setChecked(false); + radioTarifaSocialNao.setChecked(true); + imovelAtlzCadastral.setIndicadorTarifaSocial(2); + } + } + + if(imovelAtlzCadastral.getNumeroMedidorEnergia() != null && !imovelAtlzCadastral.getNumeroMedidorEnergia().equals("")){ + edtNumMedidorEnergia.setText(imovelAtlzCadastral.getNumeroMedidorEnergia().toString()); + } + + edtNumMoradores = (EditText) findViewById(R.id.edtNumMoradores); + if(imovelAtlzCadastral.getNumeroMorador() != null && !imovelAtlzCadastral.getNumeroMorador().equals("")){ + edtNumMoradores.setText(imovelAtlzCadastral.getNumeroMorador().toString()); + } + + if(imovelAtlzCadastral.getPavimentoRua() != null){ + //Carrega na combobox o valor de Pavimento Rua + for(int i = 0 ; i < spnPavimentoRua.getCount(); i++){ + long itemIdAtPosition2 = spnPavimentoRua.getItemIdAtPosition(i); + if(itemIdAtPosition2 == imovelAtlzCadastral.getPavimentoRua().getId() && (itemIdAtPosition2 != 0)){ + spnPavimentoRua.setSelection(i); + break; + } + } + } + + if(imovelAtlzCadastral.getPavimentoCalcada() != null){ + //Carrega na combobox o valor de Pavimento Calada + for(int i = 0; i < spnPavimentoCalcada.getCount(); i++){ + long itemIdAtPosition2 = spnPavimentoCalcada.getItemIdAtPosition(i); + if(itemIdAtPosition2 == imovelAtlzCadastral.getPavimentoCalcada().getId() && (itemIdAtPosition2 != 0)){ + spnPavimentoCalcada.setSelection(i); + break; + } + } + } + + if(imovelAtlzCadastral.getFonteAbastecimento() != null){ + //Carrega na combobox o valor de Fonte de Abastecimento + for(int i = 0; i < spnFonteAbastecimento.getCount(); i++){ + long itemIdAtPosition2 = spnFonteAbastecimento.getItemIdAtPosition(i); + if(itemIdAtPosition2 == imovelAtlzCadastral.getFonteAbastecimento().getId() && (itemIdAtPosition2 != 0)){ + spnFonteAbastecimento.setSelection(i); + break; + } + } + } + + //carrega as subCategorias do imovel na tabela de subcategorias + if(TabsActivity.colImoveisSubCategoria != null){ + //Adicionar uma Linha de Categoria + for(ImovelSubCategAtlzCad imovelSubCatAtlzCadastral : TabsActivity.colImoveisSubCategoria) + this.inserirLinhaTabelaCategorias(imovelSubCatAtlzCadastral); + } + + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + @Override + protected void onPause(){ + super.onPause(); + + radioTarifaSocialSim = (RadioButton) findViewById(R.id.radioTarifaSocialSim); + radioTarifaSocialNao = (RadioButton) findViewById(R.id.radioTarifaSocialNao); + + edtNumMedidorEnergia = (EditText) findViewById(R.id.edtNumMedidorEnergia); + edtNumMedidorEnergia.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(10), Util.filterReplaceCaracteresEspeciaisEEspaco()}); + edtNumMoradores = (EditText) findViewById(R.id.edtNumMoradores); + + ImovelPerfil imovelPerfil = new ImovelPerfil(); + if(spnPerfilImovel.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + imovelPerfil.setId((int) spnPerfilImovel.getSelectedItemId()); + }else{ + imovelPerfil = null; + } + PavimentoRua pavimentoRua = new PavimentoRua(); + + if(spnPavimentoRua.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + pavimentoRua.setId((int) spnPavimentoRua.getSelectedItemId()); + }else{ + pavimentoRua = null; + } + + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + if(spnPavimentoCalcada.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + pavimentoCalcada.setId((int) spnPavimentoCalcada.getSelectedItemId()); + }else{ + pavimentoCalcada = null; + } + + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + if(spnFonteAbastecimento.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + fonteAbastecimento.setId((int) spnFonteAbastecimento.getSelectedItemId()); + }else{ + fonteAbastecimento = null; + } + + String numMedidorEnergia = null; + if(edtNumMedidorEnergia.getText() != null && !edtNumMedidorEnergia.getText().toString().equals("")){ + numMedidorEnergia = edtNumMedidorEnergia.getText().toString(); + } + + Integer numMoradores = null; + if(edtNumMoradores.getText() != null && !edtNumMoradores.getText().toString().equals("")){ + numMoradores = Integer.parseInt(edtNumMoradores.getText().toString()); + } + + imovelAtlzCadastral = TabsActivity.imovel; + + imovelAtlzCadastral.setImovelPerfil(imovelPerfil); + imovelAtlzCadastral.setNumeroMedidorEnergia(numMedidorEnergia); + imovelAtlzCadastral.setNumeroMorador(numMoradores); + imovelAtlzCadastral.setPavimentoRua(pavimentoRua); + imovelAtlzCadastral.setPavimentoCalcada(pavimentoCalcada); + imovelAtlzCadastral.setFonteAbastecimento(fonteAbastecimento); + + if(radioGroupTarifaSocial.getCheckedRadioButtonId() == R.id.radioTarifaSocialSim){ + imovelAtlzCadastral.setIndicadorTarifaSocial(1); + }else{ + imovelAtlzCadastral.setIndicadorTarifaSocial(2); + } + + TabsActivity.imovel = imovelAtlzCadastral; + TabsActivity.colImoveisSubCategoria = colImoveisSubCategoria; + + if ( TabsActivity.indicadorExibirMensagemErro ) { + try { + String mensagemErro = fachada.validarAbaImovel(imovelAtlzCadastral); + + if(mensagemErro != null && !mensagemErro.equals("")){ + Util.exibirMensagemErro(ImovelAbaActivity.this, mensagemErro); + } + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + } + + /** + * Inserir uma linha na tabela de Categorias + * + * @author Davi Menezes + * @date 07/01/2013 + */ + private void inserirLinhaTabelaCategorias(ImovelSubCategAtlzCad imovelSubCategoria){ + + if(!colImoveisSubCategoria.contains(imovelSubCategoria)){ + tableLayoutCategoria = (TableLayout) findViewById(R.id.tableLayoutCategorias); + + Integer idCategoria = imovelSubCategoria.getCategoria().getId(); + Integer idSubCategoria = imovelSubCategoria.getSubCategoria().getId(); + + String aux = String.valueOf(idCategoria) + "" + String.valueOf(idSubCategoria); + Integer id = Integer.parseInt(aux); + + //Pesquisar Categoria + String selection = CategoriaColunas.ID + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(idCategoria) + }; + + //Pesquisar SubCategoria + String selection2 = SubCategoriaColunas.ID + "=?" + " AND " + SubCategoriaColunas.CATEGORIA_ID + "=?"; + String[] selectionArgs2 = new String[] { + String.valueOf(idSubCategoria), + String.valueOf(idCategoria) + }; + + Categoria categoria = new Categoria(); + SubCategoria subCategoria = new SubCategoria(); + try { + categoria = (Categoria) fachada.pesquisar(categoria, selection, selectionArgs); + subCategoria = (SubCategoria) fachada.pesquisar(subCategoria, selection2, selectionArgs2); + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + + TableRow tr = new TableRow(this); + tr.setId(id); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_CATEGORIA_ID); + tr.setOnLongClickListener(this); + + tableLayoutCategoria.addView(tr); + + TextView tvActionSelected = new TextView(this); + tvActionSelected.setGravity(Gravity.CENTER); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setText(categoria.getDescricao()); + tvActionSelected.setTextSize(18); + + TextView tvActionSelected2 = new TextView(this); + tvActionSelected2.setId(idSubCategoria); + tvActionSelected2.setGravity(Gravity.CENTER); + tvActionSelected2.setTextColor(Color.BLACK); + tvActionSelected2.setHeight(50); + tvActionSelected2.setMaxWidth(300); + tvActionSelected2.setText(subCategoria.getDescricao()); + tvActionSelected2.setTextSize(18); + + TextView tvActionSelected3 = new TextView(this); + tvActionSelected3.setId(idSubCategoria); + tvActionSelected3.setGravity(Gravity.CENTER); + tvActionSelected3.setTextColor(Color.BLACK); + tvActionSelected3.setHeight(50); + tvActionSelected3.setText(imovelSubCategoria.getQuantidadeEconomia().toString()); + tvActionSelected3.setTextSize(18); + + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(id); + imgRemoveAction.setImageDrawable(getResources().getDrawable(R.drawable.btnremover)); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_CATEGORIA_ID); + + tr.addView(tvActionSelected); + tr.addView(tvActionSelected2); + tr.addView(tvActionSelected3); + tr.addView(imgRemoveAction); + + tr.setBackgroundColor((tableRowsCategoria.size() % 2 == 0) ? Color.TRANSPARENT : Color.parseColor("#5D5F5F")); + + tableRowsCategoria.put(imovelSubCategoria, tr); + colImoveisSubCategoria.add(imovelSubCategoria); + tableLayoutCategoria.invalidate(); + + }else{ + Util.showMessage(this, getString(R.string.error_categoria_ja_selecionada), Toast.LENGTH_SHORT); + } + } + + /** + * Remove da tabela a Categoria Selecionada + * + * @author Davi Menezes + * @date 07/01/2013 + */ + private void removerLinhaTabelaCategoria(View v){ + Integer id = v.getId(); + + Integer idCategoria = Integer.parseInt(id.toString().substring(0, 1)); + Integer idSubcategoria = Integer.parseInt(id.toString().substring(1)); + + int pos = 3; + + ImovelSubCategAtlzCad imovelSubCategoria = new ImovelSubCategAtlzCad(); + if(colImoveisSubCategoria != null && !colImoveisSubCategoria.isEmpty()){ + for(ImovelSubCategAtlzCad aux : colImoveisSubCategoria){ + if(aux.getCategoria().getId().equals(idCategoria) && + aux.getSubCategoria().getId().equals(idSubcategoria)){ + imovelSubCategoria = aux; + break; + } + pos++; + } + + tableRowsCategoria.remove(imovelSubCategoria); + colImoveisSubCategoria.remove(imovelSubCategoria); + + //Verificar Uma forma melhor de fazer + for(int i = pos; i <= tableLayoutCategoria.getChildCount(); i++){ + TableRow tableRow = (TableRow) tableLayoutCategoria.getChildAt(i); + + if(tableRow.isPressed()){ + tableRow.setVisibility(View.GONE); + break; + } + } + + tableLayoutCategoria.invalidate(); + + coloreLinha(); + + Util.showMessage(this, getString(R.string.msg_categoria_removida_sucesso), Toast.LENGTH_SHORT); + } + + /* + if(tableRowsCategoria.containsKey(imovelSubCategoria)){ + tableRowsCategoria.remove(imovelSubCategoria); + colImoveisSubCategoria.remove(imovelSubCategoria); + + Util.showMessage(this, getString(R.string.msg_categoria_removida_sucesso), Toast.LENGTH_SHORT); + + this.populaTabelaCategorias(); + } + */ + } + + /** + * Colore as linhas da tabela categoria + * + * @author Anderson Cabral + * @date 21/01/2013 + */ + private void coloreLinha(){ + int cont = 1; + + for(int i = 3; i <= tableLayoutCategoria.getChildCount(); i++){ + TableRow tableRow = (TableRow) tableLayoutCategoria.getChildAt(i); + + if(tableRow != null && tableRow.getVisibility() != View.GONE){ + cont = cont + 1; + tableRow.setBackgroundColor((cont % 2 == 0) ? Color.TRANSPARENT : Color.parseColor("#5D5F5F")); + } + } + } + + @Override + public boolean onLongClick(View v) { + if(v != null && v.getTag() != null && v.getTag().equals(ConstantesSistema.BOTAO_REMOVER_CATEGORIA_ID)){ + this.removerLinhaTabelaCategoria(v); + } + + return false; + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent intent){ + if(resultCode == Activity.RESULT_OK){ + ImovelSubCategAtlzCad imovelSubCategoriaAtlzCadastral = (ImovelSubCategAtlzCad) + intent.getSerializableExtra(ConstantesSistema.IMOVEL_SUBCATEGORIA_ATLZ_CADASTRAL); + + this.inserirLinhaTabelaCategorias(imovelSubCategoriaAtlzCadastral); + } + + TabsActivity.indicadorExibirMensagemErro = true; + } + + @Override + protected void onDestroy() { + super.onDestroy(); + this.fecharCursor(cursor); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/LigacaoAbaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LigacaoAbaActivity.java new file mode 100644 index 0000000..c9de564 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LigacaoAbaActivity.java @@ -0,0 +1,361 @@ +package com.br.gsanac.gui; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroLocalInst; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.HidrometroLocalInst.HidrometroLocalInstColunas; +import com.br.gsanac.entidades.HidrometroProtecao; +import com.br.gsanac.entidades.HidrometroProtecao.HidrometroProtecaoColunas; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoAguaSituacao.LigacaoAguaSituacaos; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao.LigacaoEsgotoSituacaos; +import com.br.gsanac.entidades.MedicaoTipo; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +import android.os.Bundle; +import android.database.Cursor; +import android.text.InputFilter; +import android.util.Log; +import android.view.Menu; +import android.widget.EditText; +import android.widget.RadioButton; +import android.widget.RadioGroup; +import android.widget.Spinner; + +public class LigacaoAbaActivity extends BaseTabsActivity { + + private static Fachada fachada = Fachada.getInstance(); + private Cursor cursor; + + private ImovelAtlzCadastral imovelAtlzCadastral; + private HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad; + + /**Componentes da tela**/ + private Spinner spnSituacaoAgua; + private Spinner spnSituacaoEsgoto; + private RadioGroup radioGroupHidrAgua; + private EditText edtNumeroHidrometro; + private Spinner spnLocalInstalacao; + private Spinner spnTipoProtecao; + private RadioGroup radioGroupCavalete; + private RadioButton radioCavaleteSim; + private RadioButton radioCavaleteNao; + private EditText edtLeitura; + private EditText edtObservacao; + + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.ligacao_aba); + + try { + /** Situacao Agua **/ + spnSituacaoAgua = (Spinner) findViewById(R.id.spnSituacaoAgua); + + cursor = fachada.getCursor(LigacaoAguaSituacao.class, + LigacaoAguaSituacaos.ID, + LigacaoAguaSituacaos.DESCRICAO, + new LigacaoAguaSituacao().getNomeTabela()); + + spnSituacaoAgua.setAdapter(Util.getAdapter(cursor)); + + /** Situacao Esgoto **/ + spnSituacaoEsgoto = (Spinner) findViewById(R.id.spnSituacaoEsgoto); + + cursor = fachada.getCursor(LigacaoEsgotoSituacao.class, + LigacaoEsgotoSituacaos.ID, + LigacaoEsgotoSituacaos.DESCRICAO, + new LigacaoEsgotoSituacao().getNomeTabela()); + + spnSituacaoEsgoto.setAdapter(Util.getAdapter(cursor)); + + /** Hidrometro Agua **/ + radioGroupHidrAgua = (RadioGroup) findViewById(R.id.radioGroupHidrAgua); + + radioGroupHidrAgua.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { + + @Override + public void onCheckedChanged(RadioGroup group, int checkedId) { + + if(checkedId == R.id.radioHidrometroAguaSim){ + habilitarTodosCampos(true); + }else{ + limparCamposHidrometro(); + habilitarTodosCampos(false); + } + } + }); + + /** Numero Hidrometro **/ + edtNumeroHidrometro = (EditText) findViewById(R.id.edtNumeroHidrometro); + edtNumeroHidrometro.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(10), Util.filterReplaceCaracteresEspeciaisEEspaco()}); + + /** Local de Instalacao **/ + spnLocalInstalacao = (Spinner) findViewById(R.id.spnLocalInstalacao); + + cursor = fachada.getCursor(HidrometroLocalInst.class, + HidrometroLocalInstColunas.ID, + HidrometroLocalInstColunas.DESCRICAO, + new HidrometroLocalInst().getNomeTabela()); + + spnLocalInstalacao.setAdapter(Util.getAdapter(cursor)); + + /** Tipo de Protecao **/ + spnTipoProtecao = (Spinner) findViewById(R.id.spnTipoProtecao); + + cursor = fachada.getCursor(HidrometroProtecao.class, + HidrometroProtecaoColunas.ID, + HidrometroProtecaoColunas.DESCRICAO, + new HidrometroProtecao().getNomeTabela()); + + spnTipoProtecao.setAdapter(Util.getAdapter(cursor)); + + /** Cavalete **/ + radioGroupCavalete = (RadioGroup) findViewById(R.id.radioGroupCavalete); + radioCavaleteSim = (RadioButton) findViewById(R.id.radioCavaleteSim); + radioCavaleteNao = (RadioButton) findViewById(R.id.radioCavaleteNao); + + /** Leitura **/ + edtLeitura = (EditText) findViewById(R.id.edtLeitura); + + /** Leitura **/ + edtLeitura = (EditText) findViewById(R.id.edtLeitura); + + /** Observacao **/ + edtObservacao = (EditText) findViewById(R.id.edtObservacao); + edtObservacao.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(400), Util.filterReplaceCaracteresEspeciais()}); + + this.habilitarTodosCampos(false); + + /** Exibe os dados do Imvel ***/ + imovelAtlzCadastral = TabsActivity.imovel; + + if ( TabsActivity.primeiraVezAbaLigacao ) { + hidrometroInstHistAtlzCad = null; + + //Hidrometro Agua + radioGroupHidrAgua.check(R.id.radioHidrometroAguaNao); + + limparCamposHidrometro(); + habilitarTodosCampos(false); + TabsActivity.primeiraVezAbaLigacao = false; + } + + + + //Carrega na combobox a Situacao de Agua do Imovel + if (imovelAtlzCadastral.getLigAguaSituacao() != null + && imovelAtlzCadastral.getLigAguaSituacao().getId() != null) { + Util.selecionarItemCombo(spnSituacaoAgua, imovelAtlzCadastral.getLigAguaSituacao().getId().longValue()); + } + + //Carrega na combobox a Situacao de Esgoto do Imovel + if (imovelAtlzCadastral.getLigEsgotoSituacao() != null + && imovelAtlzCadastral.getLigEsgotoSituacao().getId() != null) { + Util.selecionarItemCombo(spnSituacaoEsgoto, imovelAtlzCadastral.getLigEsgotoSituacao().getId().longValue()); + } + + hidrometroInstHistAtlzCad = TabsActivity.hidrometroInstalacaoHist; + + if ( hidrometroInstHistAtlzCad == null ) { + hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + } + + //Caso alguma informacao de hidrometro seja preenchida mantem o indicador de hidrometro ativo. + if ( hidrometroInstHistAtlzCad != null && (hidrometroInstHistAtlzCad.getNumeroHidrometro() != null || + hidrometroInstHistAtlzCad.getNumeroInstHidrometro() != null || + ( hidrometroInstHistAtlzCad.getHidrometroLocalInst() != null && hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId() != null ) || + ( hidrometroInstHistAtlzCad.getHidrometroProtecao() != null && hidrometroInstHistAtlzCad.getHidrometroProtecao().getId() != null) + )) { + //Hidrometro Agua + radioGroupHidrAgua.check(R.id.radioHidrometroAguaSim); + this.habilitarTodosCampos(true); + }else{ + //Hidrometro Agua + radioGroupHidrAgua.check(R.id.radioHidrometroAguaNao); + } + + //Numero Hidrometro + if ( hidrometroInstHistAtlzCad.getNumeroHidrometro() != null ) { + edtNumeroHidrometro.setText(hidrometroInstHistAtlzCad.getNumeroHidrometro()); + } + //Local Instalacao + if(hidrometroInstHistAtlzCad.getHidrometroLocalInst() != null){ + Util.selecionarItemCombo(spnLocalInstalacao, hidrometroInstHistAtlzCad.getHidrometroLocalInst().getId().longValue()); + } + + //Tipo Protecao + if(hidrometroInstHistAtlzCad.getHidrometroProtecao() != null){ + Util.selecionarItemCombo(spnTipoProtecao, hidrometroInstHistAtlzCad.getHidrometroProtecao().getId().longValue()); + } + + //Cavalete + Integer indicadorCavalete = hidrometroInstHistAtlzCad.getIndicadorCavalete(); + + if(indicadorCavalete != null && indicadorCavalete.equals(1)){ + radioGroupCavalete.check(R.id.radioCavaleteSim); + }else{ + radioGroupCavalete.check(R.id.radioCavaleteNao); + } + + //Leitura + if ( hidrometroInstHistAtlzCad.getNumeroInstHidrometro() != null ) { + edtLeitura.setText(hidrometroInstHistAtlzCad.getNumeroInstHidrometro().toString()); + } + + //Carrega a observacao do imovel. + if (imovelAtlzCadastral.getObservacao() != null && !imovelAtlzCadastral.getObservacao().equals("") ) { + edtObservacao.setText(imovelAtlzCadastral.getObservacao()); + } + + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + + } + + /** + * [UC1423] - Concluir Manter Dados Imoveis + * [SB0004] - Inserir/Atualizar dados aba Ligacao + * + * **/ + @Override + protected void onPause() { + super.onPause(); + try { + //Situacao Agua + if(spnSituacaoAgua.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + LigacaoAguaSituacao ligacaoAguaSituacao = new LigacaoAguaSituacao(); + long _idSituacaoAgua = spnSituacaoAgua.getSelectedItemId(); + ligacaoAguaSituacao.setId(String.valueOf(_idSituacaoAgua)); + + imovelAtlzCadastral.setLigAguaSituacao(ligacaoAguaSituacao); + }else{ + imovelAtlzCadastral.setLigAguaSituacao(null); + } + + //Situacao Esgoto + if(spnSituacaoEsgoto.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + LigacaoEsgotoSituacao ligacaoEsgotoSituacao = new LigacaoEsgotoSituacao(); + long _idSituacaoEsgoto = spnSituacaoEsgoto.getSelectedItemId(); + ligacaoEsgotoSituacao.setId(String.valueOf(_idSituacaoEsgoto)); + + imovelAtlzCadastral.setLigEsgotoSituacao(ligacaoEsgotoSituacao); + }else{ + imovelAtlzCadastral.setLigEsgotoSituacao(null); + } + + //verifica se tem hidrometro + if(radioGroupHidrAgua.getCheckedRadioButtonId() == R.id.radioHidrometroAguaSim){ + + if(hidrometroInstHistAtlzCad == null){ + hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + } + + //Numero Hidrometro + hidrometroInstHistAtlzCad.setNumeroHidrometro(edtNumeroHidrometro.getText().toString()); + + //Medicao Tipo + MedicaoTipo medicaoTipo = new MedicaoTipo(); + medicaoTipo.setId(1); + hidrometroInstHistAtlzCad.setMedicaoTipo(medicaoTipo); + + //Local Instalacao + if(spnLocalInstalacao.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + long _idHidrometroLocalInst = spnLocalInstalacao.getSelectedItemId(); + hidrometroLocalInst.setId(String.valueOf(_idHidrometroLocalInst)); + + hidrometroInstHistAtlzCad.setHidrometroLocalInst(hidrometroLocalInst); + }else{ + hidrometroInstHistAtlzCad.setHidrometroLocalInst(null); + } + + //Tipo Protecao + if(spnTipoProtecao.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO){ + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + long _idHidrometroProtecao = spnTipoProtecao.getSelectedItemId(); + hidrometroProtecao.setId(String.valueOf(_idHidrometroProtecao)); + + hidrometroInstHistAtlzCad.setHidrometroProtecao(hidrometroProtecao); + }else{ + hidrometroInstHistAtlzCad.setHidrometroProtecao(null); + } + + //Cavalete + if(radioGroupCavalete.getCheckedRadioButtonId() == R.id.radioCavaleteSim){ + hidrometroInstHistAtlzCad.setIndicadorCavalete(1); + }else if(radioGroupCavalete.getCheckedRadioButtonId() == R.id.radioCavaleteNao){ + hidrometroInstHistAtlzCad.setIndicadorCavalete(2); + }else{ + hidrometroInstHistAtlzCad.setIndicadorCavalete(null); + } + + //Leitura + if(!edtLeitura.getText().toString().equals("")){ + hidrometroInstHistAtlzCad.setNumeroInstHidrometro(Integer.valueOf(edtLeitura.getText().toString())); + } + }else{ + hidrometroInstHistAtlzCad = null; + } + + //Observacao + imovelAtlzCadastral.setObservacao(edtObservacao.getText().toString().replace("\n", " ")); + + TabsActivity.hidrometroInstalacaoHist = hidrometroInstHistAtlzCad; + TabsActivity.imovel = imovelAtlzCadastral; + + if ( TabsActivity.indicadorExibirMensagemErro ) { + //Validacao + String mensagemErro; + mensagemErro = fachada.validarAbaLigacao(imovelAtlzCadastral, hidrometroInstHistAtlzCad); + + if ( mensagemErro != null && !mensagemErro.equals("") ) { + Util.exibirMensagemErro(LigacaoAbaActivity.this, mensagemErro); + } + } + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.ligacao_aba, menu); + return true; + } + + /** Caso nao exista hidrometro **/ + private void habilitarTodosCampos(boolean flag){ + edtNumeroHidrometro.setEnabled(flag); + spnLocalInstalacao.setEnabled(flag); + spnTipoProtecao.setEnabled(flag); + radioCavaleteSim.setEnabled(flag); + radioCavaleteNao.setEnabled(flag); + edtLeitura.setEnabled(flag); + } + + private void limparCamposHidrometro(){ + edtNumeroHidrometro.setText(""); + spnLocalInstalacao.setSelection(0); + spnTipoProtecao.setSelection(0); + radioGroupCavalete.check(-1); + edtLeitura.setText(""); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + this.fecharCursor(cursor); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/LocalidadeAbaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LocalidadeAbaActivity.java new file mode 100644 index 0000000..71919fd --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LocalidadeAbaActivity.java @@ -0,0 +1,310 @@ +package com.br.gsanac.gui; + +import android.database.Cursor; +import android.os.Bundle; +import android.text.Editable; +import android.text.TextWatcher; +import android.util.Log; +import android.view.View; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemSelectedListener; +import android.widget.EditText; +import android.widget.Spinner; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.Municipio; +import com.br.gsanac.entidades.Quadra; +import com.br.gsanac.entidades.Quadra.QuadraColunas; +import com.br.gsanac.entidades.SetorComercial; +import com.br.gsanac.entidades.SetorComercial.SetorComercialColunas; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +public class LocalidadeAbaActivity extends BaseTabsActivity { + + private static Fachada fachada = Fachada.getInstance(); + + private EditText edtMatricula; + private EditText edtMunicipio; + private EditText edtLocalidade; + private Spinner spnSetorComercial; + private Spinner spnQuadra; + private EditText edtLote; + private EditText edtSublote; + private EditText edtSetorComercial; + private EditText edtQuadra; + + private ImovelAtlzCadastral imovelAtlzCadastral; + + SistemaParametros sistemaParametros; + + boolean selecionarQuadra = false; + + /** Called when the activity is first created. */ + int mStackLevel = 1; + @Override + protected void onCreate(Bundle savedInstanceState) { + // TODO Auto-generated method stub + super.onCreate(savedInstanceState); + setContentView(R.layout.localidade_aba); + + try { + sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) fachada.pesquisar(sistemaParametros, null, null); + + imovelAtlzCadastral = TabsActivity.imovel; + + Municipio municipio = new Municipio(); + municipio = (Municipio) fachada.pesquisar(municipio, null, null); + + imovelAtlzCadastral.setMunicipioId(municipio.getId()); + imovelAtlzCadastral.setLocalidadeId(Integer.valueOf(sistemaParametros.getIdLocalidade())); + + //Matricula + edtMatricula = (EditText) findViewById(R.id.edtMatricula); + + //Municipio + edtMunicipio = (EditText) findViewById(R.id.edtMunicipio); + edtMunicipio.setText(municipio.getNome()); + edtMunicipio.setEnabled(false); + + //Localidade + String localidade = sistemaParametros.getIdLocalidade() + " - " + sistemaParametros.getDescricaoLocalidade(); + edtLocalidade = (EditText) findViewById(R.id.edtLocalidade); + edtLocalidade.setText(localidade); + edtLocalidade.setEnabled(false); + + //Setor Comercial + spnSetorComercial = (Spinner) findViewById(R.id.spnSetorComercial); + + //Setor Comercial nao encontrado na lista + edtSetorComercial = (EditText) findViewById(R.id.edtSetorComercial); + + //Quadra + spnQuadra = (Spinner) findViewById(R.id.spnQuadra); + + //Quadra nao encontrado na lista + edtQuadra = (EditText) findViewById(R.id.edtQuadra); + + + Cursor cursorSetor = fachada.getCursorOrderBy(SetorComercial.class, + SetorComercialColunas.CODIGO, + SetorComercialColunas.CODIGO, + new SetorComercial().getNomeTabela(), + SetorComercialColunas.ORDENACAO); + + spnSetorComercial.setAdapter(Util.getAdapter(cursorSetor)); + + + spnSetorComercial.setOnItemSelectedListener(new OnItemSelectedListener() { + + @Override + public void onItemSelected(AdapterView arg0, View arg1, + int arg2, long id) { + carregarQuadra(id); + } + + @Override + public void onNothingSelected(AdapterView arg0) { + + } + }); + + edtSetorComercial.addTextChangedListener(new TextWatcher() { + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + } + + @Override + public void beforeTextChanged(CharSequence s, int start, int count, + int after) {} + + @Override + public void afterTextChanged(Editable s) { + if(s.length() == 0){ + spnSetorComercial.setEnabled(true); + }else{ + Util.selecionarItemCombo(spnSetorComercial, 0); + spnSetorComercial.setEnabled(false); + } + } + }); + + edtQuadra.addTextChangedListener(new TextWatcher() { + + @Override + public void onTextChanged(CharSequence s, int start, int before, int count) { + } + + @Override + public void beforeTextChanged(CharSequence s, int start, int count, + int after) {} + + @Override + public void afterTextChanged(Editable s) { + if(s.length() == 0){ + spnQuadra.setEnabled(true); + }else{ + Util.selecionarItemCombo(spnQuadra, 0); + spnQuadra.setEnabled(false); + } + } + }); + + if (imovelAtlzCadastral != null && imovelAtlzCadastral.getImovelId() != null ) { + + //Matricula do imvel + edtMatricula.setText(imovelAtlzCadastral.getImovelId().toString()); + edtMatricula.setEnabled(false); + + } else { + edtMatricula = (EditText) findViewById(R.id.edtMatricula); + edtMatricula.setText("NOVO IMVEL"); + edtMatricula.setEnabled(false); + + } + + //Setor + if(imovelAtlzCadastral.getCodigoSetorComercial() != null){ + Util.selecionarItemCombo(spnSetorComercial, imovelAtlzCadastral.getCodigoSetorComercial()); + + if(spnSetorComercial.getSelectedItemId() == ConstantesSistema.ITEM_INVALIDO + || spnSetorComercial.getSelectedItemId() == 0){ + edtSetorComercial.setText(imovelAtlzCadastral.getCodigoSetorComercial().toString()); + } + + selecionarQuadra = true; + } + + //Lote + if ( imovelAtlzCadastral.getNumeroLote() != null ) { + edtLote = (EditText) findViewById(R.id.edtLote); + edtLote.setText(String.valueOf(imovelAtlzCadastral.getNumeroLote().toString())); + } + + + //Sublote + if ( imovelAtlzCadastral.getNumeroSubLote() != null ) { + edtSublote = (EditText) findViewById(R.id.edtSublote); + edtSublote.setText(String.valueOf(imovelAtlzCadastral.getNumeroSubLote())); + } + + + imovelAtlzCadastral.setLocalidadeId(Integer.valueOf(sistemaParametros.getIdLocalidade())); + imovelAtlzCadastral.setNomeLocalidade(sistemaParametros.getDescricaoLocalidade()); + imovelAtlzCadastral.setMunicipioId(municipio.getId()); + imovelAtlzCadastral.setNomeMunicipio(municipio.getNome()); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + + @Override + protected void onPause() { + super.onPause(); + + edtLote = (EditText) findViewById(R.id.edtLote); + edtSublote = (EditText) findViewById(R.id.edtSublote); + + //Setor + if((spnSetorComercial.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO + && spnSetorComercial.getSelectedItemId() != 0)){ + imovelAtlzCadastral.setCodigoSetorComercial((int) spnSetorComercial.getSelectedItemId()); + }else if((edtSetorComercial.getText() != null && !edtSetorComercial.getText().toString().equals(""))){ + imovelAtlzCadastral.setCodigoSetorComercial(Integer.parseInt(edtSetorComercial.getText().toString())); + }else{ + imovelAtlzCadastral.setCodigoSetorComercial(null); + } + + //Quadra + if(spnQuadra.getSelectedItemId() != ConstantesSistema.ITEM_INVALIDO + && spnQuadra.getSelectedItemId() != 0){ + imovelAtlzCadastral.setNumeroQuadra((int) spnQuadra.getSelectedItemId()); + }else if((edtQuadra.getText() != null && !edtQuadra.getText().toString().equals(""))){ + imovelAtlzCadastral.setNumeroQuadra(Integer.parseInt(edtQuadra.getText().toString())); + }else{ + imovelAtlzCadastral.setNumeroQuadra(null); + } + + //Lote + if ( edtLote.getText() != null && !edtLote.getText().toString().equals("") ) { + imovelAtlzCadastral.setNumeroLote(Integer.valueOf(edtLote.getText().toString())); + } else { + imovelAtlzCadastral.setNumeroLote(null); + } + + //Sublote + if ( edtSublote.getText() != null && !edtSublote.getText().toString().equals("") ) { + imovelAtlzCadastral.setNumeroSubLote(Integer.valueOf(edtSublote.getText().toString())); + } else { + imovelAtlzCadastral.setNumeroSubLote(null); + } + + TabsActivity.imovel = imovelAtlzCadastral; + + if ( TabsActivity.indicadorExibirMensagemErro ) { + + try { + + String mensagemErro = fachada.validarAbaLocalidade(imovelAtlzCadastral); + + if ( mensagemErro != null && !mensagemErro.equals("") ) { + + Util.exibirMensagemErro(LocalidadeAbaActivity.this, mensagemErro); + + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + } + + private void carregarQuadra(long codigoSetor){ + try { + + String where = QuadraColunas.CDSETORCOMERCIAL + " = " + codigoSetor; + where += " OR " + QuadraColunas.ID + " = " + ConstantesSistema.ITEM_INVALIDO; + + + Cursor cursorQuadra = fachada.getCursorOrderBy(Quadra.class, + QuadraColunas.NUMQUADRA, + QuadraColunas.NUMQUADRA, + new Quadra().getNomeTabela(), + where, + QuadraColunas.ORDENACAO); + + spnQuadra.setAdapter(Util.getAdapter(cursorQuadra)); + + if(selecionarQuadra){ + //Carrega na combobox o valor da quadra do imovel + if (imovelAtlzCadastral.getNumeroQuadra() != null) { + Util.selecionarItemCombo(spnQuadra, imovelAtlzCadastral.getNumeroQuadra()); + + if(spnQuadra.getSelectedItemId() == ConstantesSistema.ITEM_INVALIDO + || spnQuadra.getSelectedItemId() == 0){ + edtQuadra.setText(imovelAtlzCadastral.getNumeroQuadra().toString()); + } + } + selecionarQuadra = false; + } + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + @Override + protected void onDestroy() { + super.onDestroy(); +// this.fecharCursor(cursor); + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/LoginActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LoginActivity.java new file mode 100644 index 0000000..0d8d8e5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LoginActivity.java @@ -0,0 +1,439 @@ +package com.br.gsanac.gui; + +import java.util.Date; +import java.util.List; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.location.LocationManager; +import android.os.Bundle; +import android.provider.Settings; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.WindowManager; +import android.widget.Button; +import android.widget.TextView; + +import com.br.gsanac.R; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Cryptograph; +import com.br.gsanac.util.Util; + +public class LoginActivity extends Activity { + + private TextView tvLogin; + private TextView tvPassword; + private TextView tvCPF; + private Button btnLogin; + + Intent intent ; + LocationManager manager = null; + + private TextView numero; + + /** + * @author Flvio Ferreira + * @since 29/08/2013 + */ + @Override + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.menu_sobre, menu); + return true; + } + + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + case R.id.sobre: + menuSobre(); + } + return false; + } + + public void menuSobre(){ + SistemaParametros sistemaParametros = new SistemaParametros(); + try { + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + + } catch (FachadaException e) { + e.printStackTrace(); + } + + String versao = Util.getVersaoSistema(LoginActivity.this); + if(versao == null){ + versao = ""; + } + String login = sistemaParametros.getLogin(); + if(login == null){ + login = ""; + } + + String desLocalidade = sistemaParametros.getDescricaoLocalidade(); + if(desLocalidade == null){ + desLocalidade = ""; + } + + String idLocalidade = sistemaParametros.getIdLocalidade(); + if(idLocalidade == null){ + idLocalidade = ""; + } + + String qtdImoveis = sistemaParametros.getQuantidadeImovel(); + if(qtdImoveis == null){ + qtdImoveis = ""; + } + + String selection = ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO + "=?"; + + String[] selectionArgs = new String[]{ + String.valueOf(ConstantesSistema.SIM) + }; + + List listaImovAtualizado = null; + + try { + listaImovAtualizado = (List) Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, selection, selectionArgs, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + + int qtdImovelAtualizados = 0; + int qtdImovelNovo = 0; + for(ImovelAtlzCadastral imovel : listaImovAtualizado){ + + if(imovel.getImovelId() != 0){ + qtdImovelAtualizados++; + + }else{ + qtdImovelNovo++; + + } + } + + + new AlertDialog.Builder(LoginActivity.this).setTitle("Sobre") + .setMessage("Verso: " + versao + "\n" + "Login: " + login + "\n" + "Localidade: " + idLocalidade + " - " + + desLocalidade + "\n" + "Imoveis Novos: " + qtdImovelNovo + "\n" + "Imoveis Atualizados: " + + qtdImovelAtualizados +"\n" + "Total de Imoveis: " + qtdImoveis) + .setIcon(R.drawable.icon_info) + .setCancelable(false) + .setNeutralButton("Fechar", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }).show(); + } + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Fachada.setContext(this); + setContentView(R.layout.tela_login); + + //Atualiza o numero da versao. + String strVersaoAtual = Util.getVersaoSistema(LoginActivity.this); + numero = (TextView) findViewById(R.id.numero); + numero.setText("Verso " +strVersaoAtual); + + tvLogin = (TextView) findViewById(R.id.edtLogin); + tvPassword = (TextView) findViewById(R.id.edtPassword); + tvCPF = (TextView) findViewById(R.id.edtCPF); + btnLogin = (Button) findViewById(R.id.btLogin); + + btnLogin.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + + //remove o teclado da tela + getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); + + //valida se o campo login foi informado + //Caso o login efetuado seja pelo cadastrador. + if ( tvLogin != null && !tvLogin.getText().toString().trim().equals("") ) { + + //valida se o campo senha foi informado + if ( tvPassword != null && !tvPassword.getText().toString().trim().equals("") ) { + + //verfica se existe banco de dados - se o arquivo ja foi carregado + if (!DBConnection.checkDatabase() ) { + + //verifica se o indicador arquivo carregado completo esta atualizado + //caso contrario remove a base e solicita o usuario carregar o arquivo novamente. + Intent intent = new Intent(LoginActivity.this, ApkActivity.class); + + intent.putExtra(ConstantesSistema.LOGIN, tvLogin.getText().toString()); + intent.putExtra(ConstantesSistema.SENHA, tvPassword.getText().toString()); + + startActivity(intent); + finish(); + + } else { + + try { + + SistemaParametros sistemaParametros = Fachada.getInstance().validateLogin(tvLogin.getText().toString(), + Cryptograph.encode(tvPassword.getText().toString())); + + //senha de administrador do sistema + if ( tvLogin.getText().toString().equals("gsan") && tvPassword.getText().toString().equals("gsan") ){ + + try{ + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + } else { + + sistemaParametros = Fachada.getInstance().validateLogin(tvLogin.getText().toString(), + Cryptograph.encode(tvPassword.getText().toString())); + } + + //Valida se o login existe + if ( sistemaParametros != null && sistemaParametros.getIdComando() != null ) { + + //verifica se o arquivo foi carregado completo + if ( validaArquivoCarregadoCompleto() ) { + + String data = Util.convertDateToString(new Date()); + AlertDialog.Builder alert = new AlertDialog.Builder(LoginActivity.this); + alert.setTitle("Atualizao Cadastral"); + alert.setMessage("A data atual " + data.substring(0,10) + ". Confirma? "); + + alert.setPositiveButton(R.string.str_sim, new DialogInterface.OnClickListener(){ + + + public void onClick(DialogInterface arg0, int arg1) { + + intent = new Intent(LoginActivity.this, RoteiroActivity.class); + startActivity(intent); + finish(); + + } + + }); + + //Caso nao confirme! + alert.setNegativeButton(R.string.str_nao, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + Intent intent = new Intent(Settings.ACTION_DATE_SETTINGS); + startActivity(intent); + } + }); + + alert.show(); + } else { + //informar que o arquivo foi carregado incompleto + //remover e carregar novamente + + AlertDialog.Builder alert = new AlertDialog.Builder(LoginActivity.this); + alert.setTitle("Erro inesperado no carregamento do arquivo"); + alert.setMessage("Solicitamos que o arquivo seja carregado novamente, caso o erro persista entrar em contato com o administrador do sistema."); + alert.setPositiveButton("Ok", new DialogInterface.OnClickListener(){ + + + public void onClick(DialogInterface arg0, int arg1) { + + //Erro no carregamento do arquivo. + DBConnection.getInstance(LoginActivity.this).deleteDatabase(); + Util.removeInstanceRepository(); + + } + + }); + + alert.show(); + } + + } else { + //usuario com login invalido + new AlertDialog.Builder(LoginActivity.this).setTitle("Erro") + .setMessage("Login invlido") + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }).show(); + } + + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + } else { + //usuario nao informou a senha. + new AlertDialog.Builder(LoginActivity.this).setTitle("Erro") + .setMessage("Informe a senha") + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }).show(); + } + + //valida se o CPF foi informado + } else if ( tvCPF != null && !tvCPF.getText().toString().trim().equals("") ) { + + //valida o cpf informado. + if ( Util.validateCPF(tvCPF.getText().toString()) ) { + + //verifica se o arquivo nao ta carregado + if (!DBConnection.checkDatabase() ) { + Intent intent = new Intent(LoginActivity.this, ApkActivity.class); + intent.putExtra(ConstantesSistema.CPF_LOGIN, tvCPF.getText().toString()); + + startActivity(intent); + finish(); + + } else { + + try { + + + SistemaParametros parametros = new SistemaParametros(); + parametros = (SistemaParametros) Fachada.getInstance().pesquisar(parametros, null, null); + + //valida se o arquivo carregado ta para o cpf informado no login + SistemaParametros sistemaParametros = Fachada.getInstance().validarLoginCpf(tvCPF.getText().toString()); + + //Valida se o login existe + if ( sistemaParametros != null && sistemaParametros.getIdComando() != null ) { + + //valida se o arquivo foi carregado completo - sem erros inesperados no arquivo. + if ( validaArquivoCarregadoCompleto() ) { + + Intent intent = new Intent(LoginActivity.this, RoteiroActivity.class); + startActivity(intent); + finish(); + } else { + //informar que o arquivo foi carregado incompleto + //remover e carregar novamente + AlertDialog.Builder alert = new AlertDialog.Builder(LoginActivity.this); + alert.setTitle("Erro inesperado no carregamento do arquivo"); + alert.setMessage("Solicitamos que o arquivo seja carregado novamente, caso o erro persista entrar em contato com o administrador do sistema."); + alert.setPositiveButton("Ok", new DialogInterface.OnClickListener(){ + + public void onClick(DialogInterface arg0, int arg1) { + + //Erro no carregamento do arquivo. + DBConnection.getInstance(LoginActivity.this).deleteDatabase(); + Util.removeInstanceRepository(); + } + }); + + alert.show(); + } + + } else { + new AlertDialog.Builder(LoginActivity.this).setTitle("Erro") + .setMessage("Login invlido") + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }).show(); + } + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + } else { + new AlertDialog.Builder(LoginActivity.this).setTitle("Erro") + .setMessage("CPF invlido") + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }).show(); + } + + } else { + new AlertDialog.Builder(LoginActivity.this).setTitle("Erro") + .setMessage("Login invlido") + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }).show(); + } + } + }); + + + Util.createSystemDirs(); + + } + + /** + * Metodo responsavel por verificar se o arquivo foi carregado completo. + * + * @author Arthur Carvalho + * @date 03/10/2013 + * + * @return + */ + public boolean validaArquivoCarregadoCompleto(){ + boolean retorno = false; + SistemaParametros sistemaParametros = new SistemaParametros(); + + + try{ + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + + //valida se o arquivo foi carregado completo + if ( sistemaParametros != null && sistemaParametros.getIndicadorArquivoCarregado() != null && sistemaParametros.getIndicadorArquivoCarregado().equals(Integer.valueOf(1)) ) { + retorno = true; + } + + return retorno; + } + + + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/LogradouroInserirActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LogradouroInserirActivity.java new file mode 100644 index 0000000..782d918 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/LogradouroInserirActivity.java @@ -0,0 +1,755 @@ +package com.br.gsanac.gui; + + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +import java.util.Set; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Bairro; +import com.br.gsanac.entidades.Bairro.Bairros; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTipo.LogradouroTipoColunas; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.LogradouroTitulo.LogradouroTituloColunas; +import com.br.gsanac.entidades.Municipio; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +import android.os.Bundle; +import android.annotation.SuppressLint; +import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.database.Cursor; +import android.graphics.Color; +import android.text.InputFilter; +import android.util.Log; +import android.view.Gravity; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.View.OnLongClickListener; +import android.widget.AdapterView; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.Spinner; +import android.widget.TableLayout; +import android.widget.TableRow; +import android.widget.TextView; +import android.widget.Toast; +import android.widget.AdapterView.OnItemSelectedListener; + +public class LogradouroInserirActivity extends Activity implements OnLongClickListener { + + + private static Fachada fachada = Fachada.getInstance(); + private Cursor cursor; + private Intent intent; + + /**Componentes da tela**/ + private Spinner spnTipoLogradouro; + private Spinner spnTituloLogradouro; + private EditText edtNomeLogradouro; + private EditText edtNomePopLogradouro; + private EditText edtLoteamento; + private EditText edtMunicipio; + private Spinner spnBairro; + private EditText edtCep; + private Button btInserir; + private Button btCancelar; + private Button btAdicionarCep; + + private Municipio municipio; + private Cep cepUnico= null; + + + private boolean primeiraVez = true; + + /*** Armazena as linhas da TableLayout Bairro***/ + private Map tableRowsBairros; + + /*** Tabela com os bairros selecionados ***/ + private TableLayout tableLayoutBairros; + + + /*** Armazena as linhas do TableLayout CEP ***/ + private Map tableRowsCeps; + + /*** Tabela com os CEPs selecionados ***/ + private TableLayout tableLayoutCeps; + + @SuppressLint("UseSparseArrays") + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.logradouro_inserir); + + try { + this.fecharCursor(cursor); + + /** Tipo Logradouro **/ + spnTipoLogradouro = (Spinner) findViewById(R.id.spnTipoLogradouro); + + cursor = fachada.getCursor(LogradouroTipo.class, + LogradouroTipoColunas.ID, + LogradouroTipoColunas.DESCRICAO, + new LogradouroTipo().getNomeTabela()); + + spnTipoLogradouro.setAdapter(Util.getAdapter(cursor)); + + /** Titulo Logradouro **/ + spnTituloLogradouro = (Spinner) findViewById(R.id.spnTituloLogradouro); + + + cursor = fachada.getCursor(LogradouroTitulo.class, + LogradouroTituloColunas.ID, + LogradouroTituloColunas.DESCRICAO, + new LogradouroTitulo().getNomeTabela()); + + spnTituloLogradouro.setAdapter(Util.getAdapter(cursor)); + + /** Bairro **/ + spnBairro = (Spinner) findViewById(R.id.spnBairro); + + cursor = fachada.getCursor(Bairro.class, + Bairros.ID, + Bairros.DESCRICAO, + new Bairro().getNomeTabela()); + + spnBairro.setAdapter(Util.getAdapter(cursor)); + + spnBairro.setOnItemSelectedListener(new OnItemSelectedListener() { + + public void onItemSelected(AdapterView parent, View view, int position, long id) { + + if (!primeiraVez) { + inserirLinhaTabelaBairro(); + } else { + primeiraVez = false; + } + } + + public void onNothingSelected(AdapterView arg0) { + + } + + }); + + tableRowsBairros = new HashMap(); + tableRowsCeps = new HashMap(); + + /** Nome Logradouro **/ + edtNomeLogradouro = (EditText) findViewById(R.id.edtNomeLogradouro); + edtNomeLogradouro.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(40), Util.filterReplaceCaracteresEspeciais()}); + + /** Nome Popular **/ + edtNomePopLogradouro = (EditText) findViewById(R.id.edtnomePopLogradouro); + edtNomePopLogradouro.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(30), Util.filterReplaceCaracteresEspeciais()}); + + /** Loteamento **/ + edtLoteamento = (EditText) findViewById(R.id.edtLoteamento); + edtLoteamento.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(30), Util.filterReplaceCaracteresEspeciais()}); + + /** CEP **/ + edtCep = (EditText) findViewById(R.id.edtCep); + + /** Municipio **/ + edtMunicipio = (EditText) findViewById(R.id.edtMunicipio); + + municipio = new Municipio(); + municipio = (Municipio) fachada.pesquisar(municipio, null, null); + + edtMunicipio.setText(municipio.getNome()); + edtMunicipio.setEnabled(false); + + /**** Botao Adicionar CEP ******/ + + btAdicionarCep = (Button) findViewById(R.id.btAdicionarCep); + + btAdicionarCep.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + inserirLinhaTabelaCep(); + } + }); + + /** Verifica se o municipio selecionado tem CEP unico ou nao.**/ + tableLayoutCeps = (TableLayout) findViewById(R.id.tableLayoutCeps); + + if(municipio != null && municipio.getCodigoCepUnico() == 1){ + cepUnico = new Cep(); + cepUnico = (Cep) fachada.pesquisar(cepUnico, null, null); + + edtCep.setText(cepUnico.getCodigo().toString()); + edtCep.setEnabled(false); + btAdicionarCep.setVisibility(View.GONE); + tableLayoutCeps.setVisibility(View.GONE); + + }else{ + edtCep.setEnabled(true); + btAdicionarCep.setVisibility(View.VISIBLE); + tableLayoutCeps.setVisibility(View.VISIBLE); + } + + /** Boto Inserir **/ + btInserir = (Button) findViewById(R.id.btInserir); + + btInserir.setOnClickListener(new OnClickListener() { + + + @Override + public void onClick(View v) { + if(validarCamposObrigatorios()){ + + Long dateTime = new Date().getTime(); + + /** Inseri Logradouro***/ + Logradouro logradouro = new Logradouro(); + + long idLogradouroTipo = spnTipoLogradouro.getSelectedItemId(); + long idLogradouroTitulo = spnTituloLogradouro.getSelectedItemId(); + Integer idMunicipio = municipio.getId(); + String nomeLogradouro = edtNomeLogradouro.getText().toString(); + String nomePopularLogradouro = edtNomePopLogradouro.getText().toString(); + String loteamento = edtLoteamento.getText().toString(); + +// logradouro.setId(dateTime.toString()); + + logradouro.setLogradouroTipo(new LogradouroTipo()); + logradouro.getLogradouroTipo().setId(String.valueOf(idLogradouroTipo)); + + if(idLogradouroTitulo != ConstantesSistema.ITEM_INVALIDO){ + logradouro.setLogradouroTitulo(new LogradouroTitulo()); + logradouro.getLogradouroTitulo().setId(String.valueOf(idLogradouroTitulo)); + } + + logradouro.setMunicipio(new Municipio()); + logradouro.getMunicipio().setId(idMunicipio); + + logradouro.setNomeLogradouro(nomeLogradouro); + logradouro.setNomePopularLogradouro(nomePopularLogradouro); + logradouro.setNomeLoteamento(loteamento); + logradouro.setIndicadorNovo(1); + logradouro.setIndicadorTransmitido(2); + + try { + logradouro.setCodigoUnico(String.valueOf(new Date().getTime())); + long idLo = fachada.inserir(logradouro); + logradouro.setId(String.valueOf(idLo)); + + } catch (FachadaException e) { + e.printStackTrace(); + } + + /** Inseri Logradouros Bairro **/ + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + + Set idsBairros = tableRowsBairros.keySet(); + + for(Long idBairro : idsBairros){ +// String selection = LogradouroBairros.ID + "=?"; +// +// String[] selectionArgs = new String[] { +// String.valueOf(idBairro) +// }; +// +// try { +// //verifica se ja existe o bairro selecionado na tabela logradouro bairro +// logradouroBairro = (LogradouroBairro) fachada.pesquisar(logradouroBairro, selection, selectionArgs); +// } catch (FachadaException e) { +// e.printStackTrace(); +// } + +// if(logradouroBairro == null || logradouroBairro.getId() == null){ + dateTime = new Date().getTime(); + + logradouroBairro = new LogradouroBairro(); +// logradouroBairro.setId(dateTime.toString()); + logradouroBairro.setLogradouro(logradouro); + logradouroBairro.setBairro(new Bairro()); + logradouroBairro.getBairro().setId(String.valueOf(idBairro)); + + try { + long idLoBa = fachada.inserir(logradouroBairro); + logradouroBairro.setId(String.valueOf(idLoBa)); + } catch (FachadaException e) { + e.printStackTrace(); + } +// } + + } + + ArrayList listaCep = new ArrayList(); + + //Caso o municipio nao seja CEP unico, cria um array com os CEPs selecionados + //Se nao, adiciona o CEP unico no array + if(cepUnico == null){ + Collection listaTableRowCep = tableRowsCeps.values(); + for(TableRow tableRowCep : listaTableRowCep){ + TextView tvCep = (TextView) tableRowCep.getChildAt(0); + String codigoCepStr = tvCep.getText().toString(); + + listaCep.add(codigoCepStr); + + } + }else{ + listaCep.add(edtCep.getText().toString()); + } + + + for(String codigoCepStr : listaCep){ + + /** Inseri CEP **/ + + Integer codigoCep = null; + Cep _cep = new Cep(); + + if(!codigoCepStr.equals("")){ + codigoCep = Integer.valueOf(codigoCepStr); + + String selectionCep = Ceps.CODIGO + "=?"; + + String[] selectionArgsCep = new String[] { + codigoCepStr + }; + + try { + //verifica se ja existe o cep selecionado na tabela cep + _cep = (Cep) fachada.pesquisar(_cep, selectionCep, selectionArgsCep); + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + if(_cep == null || _cep.getId() == null){ + _cep = new Cep(); + _cep.setCodigo(codigoCep); + _cep.setIndicadorNovo(1); + _cep.setIndicadorTransmitido(2); + + try { + dateTime = new Date().getTime(); +// _cep.setId(dateTime.toString()); + + _cep.setCodigoUnico(dateTime.toString()); + + long idCEP = fachada.inserir(_cep); + _cep.setId(String.valueOf(idCEP)); + + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + /** Inseri Logradouro CEP **/ +// Integer idCep = _cep.getId(); +// + LogradouroCep logradouroCep = new LogradouroCep(); +// +// if(idCep != null){ +// String selectionLograCep = Ceps.ID + "=?"; +// +// String[] selectionArgsLograCep = new String[] { +// String.valueOf(idCep) +// }; +// +// try { +// //verifica se ja existe o cep selecionado na tabela Logradouro Cep +// logradouroCep = (LogradouroCep) fachada.pesquisar(logradouroCep, selectionLograCep, selectionArgsLograCep); +// } catch (FachadaException e) { +// e.printStackTrace(); +// } +// } + +// if(logradouroCep == null || logradouroCep.getId() == null){ + + logradouroCep = new LogradouroCep(); + + logradouroCep.setCep(_cep); + logradouroCep.setLogradouro(logradouro); + logradouroCep.setIndicadorNovo(1); + logradouroCep.setIndicadorTransmitido(2); + + try { + fachada.inserir(logradouroCep); + } catch (FachadaException e) { + e.printStackTrace(); + } +// } + } + //Volta para a tela de endereco. + intent = new Intent(LogradouroInserirActivity.this, EnderecoAbaActivity.class); + + intent.putExtra(ConstantesSistema.LOGRADOURO, logradouro); + + setResult(Activity.RESULT_OK, intent); + finish(); + + } + } + }); + + /** Boto Cancelar **/ + btCancelar = (Button) findViewById(R.id.btCancelar); + + btCancelar.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + TabsActivity.indicadorExibirMensagemErro = true; + //Volta para a tela de endereco. + setResult(Activity.RESULT_CANCELED); + finish(); + } + }); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } + } + + /** + *Valida se o CEP tem 8 dgitos + * + * @author Anderson Cabral + * @Date 20/12/2012 + ***/ + private boolean validarCEP(){ + String codigoCepStr = edtCep.getText().toString(); + + + if(codigoCepStr.length() != 8 || codigoCepStr.length() <= 1 || codigoCepStr.substring(0, 1).equals("0") ){ + new AlertDialog.Builder(LogradouroInserirActivity.this).setTitle(getString(R.string.cep_invalido)) + .setMessage(R.string.msg_cep_invalido) + .setIcon(R.drawable.erro) + .setNeutralButton(ConstantesSistema.ALERT_OK, + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }) + .show(); + + return false; + }else{ + return true; + } + } + + /** + *Valida os campos obrigatorios + * + * @author Anderson Cabral + * @Date 17/12/2012 + ***/ + private boolean validarCamposObrigatorios(){ + long idTipoLogradouro = spnTipoLogradouro.getSelectedItemId(); + String nomeLogradouro = edtNomeLogradouro.getText().toString(); +// String nomeLoteamento = edtLoteamento.getText().toString(); + String nomeMunicipio = edtMunicipio.getText().toString(); + String codigoCepUnico = edtCep.getText().toString(); + + String campos = ""; + + if(idTipoLogradouro == ConstantesSistema.ITEM_INVALIDO){ + campos = campos + "Informe Tipo Logradouro \n"; + } + + if(nomeLogradouro == null || nomeLogradouro.trim().equals("")){ + campos = campos + "Informe Nome Logradouro \n"; + } + +// if(nomeLoteamento == null || nomeLoteamento.trim().equals("")){ +// campos = campos + "Informe Loteamento \n"; +// } + + if(nomeMunicipio == null || nomeMunicipio.trim().equals("")){ + campos = campos + "Informe Municpio \n"; + } + + if(tableRowsBairros.keySet().isEmpty()){ + campos = campos + "Informe Bairro \n"; + } + + if(cepUnico != null){ + if(codigoCepUnico == null || codigoCepUnico.trim().equals("")){ + campos = campos + "Informe CEP \n"; + } + }else if(tableRowsCeps.keySet().isEmpty()){ + campos = campos + "Informe CEP \n"; + } + + if(campos.length() > 0){ + + campos = campos.substring(0, campos.length() - 2); + + Util.exibirMensagemErro(LogradouroInserirActivity.this, campos); + + return false; + }else{ + return true; + } + } + + /** + * Inseri uma linha na lista de CEPs + * + * @author Anderson Cabral + * @since 19/12/2012 + */ + private void inserirLinhaTabelaCep() { + if(validarCEP()){ + Integer cepCode = Integer.valueOf(edtCep.getText().toString()); + if (!tableRowsCeps.containsKey(cepCode)) { + + tableLayoutCeps =(TableLayout) findViewById(R.id.tabelaCeps); + + String codigoCepStr = edtCep.getText().toString(); + + TableRow tr = new TableRow(this); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setId(Integer.valueOf(codigoCepStr)); + tr.setLayoutParams(new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_CEP_ID); + tr.setOnLongClickListener(this); + + + TextView tvActionSelected = new TextView(this); + tvActionSelected.setId(Integer.valueOf(codigoCepStr)); + tvActionSelected.setGravity(Gravity.CENTER_VERTICAL); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setPadding(3, 0, 0, 0); + tvActionSelected.setMaxWidth(10); + + + tvActionSelected.setText(codigoCepStr); + tvActionSelected.setTextSize(18); + tvActionSelected.setTag(ConstantesSistema.BOTAO_REMOVER_CEP_ID); + tvActionSelected.setOnLongClickListener(this); + + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(Integer.valueOf(codigoCepStr)); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_CEP_ID); + imgRemoveAction.setBackgroundResource(R.drawable.btnremover); + imgRemoveAction.setPadding(0, 20, 30, 10); + imgRemoveAction.setOnLongClickListener(this); + + edtCep.getText().clear(); + + tr.addView(tvActionSelected); + tr.addView(imgRemoveAction); + + tableRowsCeps.put(Integer.valueOf(codigoCepStr), tr); + + this.populaTabelaCep(); + }else{ + Util.showMessage(this, getString(R.string.error_cep_ja_selecionado), Toast.LENGTH_SHORT); + } + + } + } + + /** + *

+ * Popula a tabela de CEPs + *

+ * + * @author Anderson Cabral + * @since 27/12/2012 + */ + @SuppressWarnings("deprecation") + private void populaTabelaCep() { + // Limpa + if (tableLayoutCeps.getChildCount() > 0) { + tableLayoutCeps.removeAllViews(); + } + + Set keys = tableRowsCeps.keySet(); + + TableRow tr = null; + + for (Integer key : keys) { + tr = tableRowsCeps.get(key); + tr.setBackgroundColor((tableLayoutCeps.getChildCount() % 2 == 0) ? Color.TRANSPARENT : Color.parseColor("#5D5F5F")); + tableLayoutCeps.addView(tr, new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + } + } + + /** + * Remove da tabela o CEP selecionado + * + * @author Anderson Cabral + * @since 27/12/2012 + */ + private void removeLinhaTabelaCEP(View v) { + + Integer id = v.getId(); + + if (tableRowsCeps.containsKey(id)) { + + tableRowsCeps.remove(id); + + Util.showMessage(this, getString(R.string.msg_cep_removido_sucesso), Toast.LENGTH_SHORT); + + this.populaTabelaCep(); + } + } + + + /** + * Inseri uma linha na lista de Bairros + * + * @author Anderson Cabral + * @since 19/12/2012 + */ + private void inserirLinhaTabelaBairro() { + + if (!tableRowsBairros.containsKey(spnBairro.getSelectedItemId())) { + + tableLayoutBairros = (TableLayout) findViewById(R.id.tabelaBairros); + + int id = (int) spnBairro.getSelectedItemId(); + + /* + * + */ + TableRow tr = new TableRow(this); + tr.setGravity(Gravity.CENTER_VERTICAL); + tr.setId(id); + tr.setLayoutParams(new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.MATCH_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + tr.setTag(ConstantesSistema.BOTAO_REMOVER_BAIRRO_ID); + tr.setOnLongClickListener(this); + + /* + * + */ + TextView tvActionSelected = new TextView(this); + tvActionSelected.setId(id); + tvActionSelected.setGravity(Gravity.CENTER_VERTICAL); + tvActionSelected.setTextColor(Color.BLACK); + tvActionSelected.setHeight(50); + tvActionSelected.setPadding(3, 0, 0, 0); + tvActionSelected.setMaxWidth(10); + + Cursor c = (Cursor) spnBairro.getSelectedItem(); + tvActionSelected.setText(c.getString(c.getColumnIndex(ConstantesSistema.COLUMN_DESCRIPTION_ALIAS))); + tvActionSelected.setTextSize(18); + tvActionSelected.setTag(ConstantesSistema.BOTAO_REMOVER_BAIRRO_ID); + tvActionSelected.setOnLongClickListener(this); + + /* + * + */ + ImageView imgRemoveAction = new ImageView(this); + imgRemoveAction.setId(id); + imgRemoveAction.setTag(ConstantesSistema.BOTAO_REMOVER_BAIRRO_ID); + imgRemoveAction.setBackgroundResource(R.drawable.btnremover); + imgRemoveAction.setPadding(0, 20, 30, 10); + imgRemoveAction.setOnLongClickListener(this); + + spnBairro.setSelection(0); + primeiraVez = true; + + /* + * + */ + tr.addView(tvActionSelected); + tr.addView(imgRemoveAction); + + tableRowsBairros.put((long) id, tr); + + this.populaTabelaBairro(); + + } else { + Util.showMessage(this, getString(R.string.error_bairro_ja_selecionado), Toast.LENGTH_SHORT); + spnBairro.requestFocus(); + spnBairro.setSelection(0); + primeiraVez = true; + } + } + + /** + *

+ * Popula a tabela + *

+ * + * @author Anderson Cabral + * @since 19/12/2012 + */ + @SuppressWarnings("deprecation") + private void populaTabelaBairro() { + // Limpa + if (tableLayoutBairros.getChildCount() > 0) { + tableLayoutBairros.removeAllViews(); + } + + Set keys = tableRowsBairros.keySet(); + + TableRow tr = null; + + for (Long key : keys) { + tr = tableRowsBairros.get(key); + tr.setBackgroundColor((tableLayoutBairros.getChildCount() % 2 == 0) ? Color.TRANSPARENT : Color.parseColor("#5D5F5F")); + tableLayoutBairros.addView(tr, new TableLayout.LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT, + android.view.ViewGroup.LayoutParams.WRAP_CONTENT)); + } + } + + /** + * Remove da tabela o bairro selecionado + * + * @author Anderson Cabral + * @since 19/12/2012 + */ + private void removeLinhaTabelaBairro(View v) { + + long id = v.getId(); + + if (tableRowsBairros.containsKey(id)) { + + tableRowsBairros.remove(id); + + Util.showMessage(this, getString(R.string.msg_bairro_removido_sucesso), Toast.LENGTH_SHORT); + + this.populaTabelaBairro(); + } + } + + + @Override + public boolean onLongClick(View v) { + if (v.getTag().equals(ConstantesSistema.BOTAO_REMOVER_BAIRRO_ID)) { + this.removeLinhaTabelaBairro(v); + }else if(v.getTag().equals(ConstantesSistema.BOTAO_REMOVER_CEP_ID)){ + this.removeLinhaTabelaCEP(v); + } + return false; + } + + public void fecharCursor(Cursor cursor){ + if(cursor != null){ + cursor.close(); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioActivity.java new file mode 100644 index 0000000..6f39e4b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioActivity.java @@ -0,0 +1,188 @@ +package com.br.gsanac.gui; +import java.util.List; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +import android.widget.LinearLayout.LayoutParams; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.opengl.Visibility; +import android.os.Bundle; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; +import android.widget.LinearLayout; +import android.widget.TextView; + +public class RelatorioActivity extends BaseActivity{ + + private TextView totalImoveis; + private TextView totalImoveisAtualizados; + private TextView totalImoveisIncluidos; + private TextView totalImoveisAvisitar; + private TextView totalImovelVisitados; + private TextView percentualImoveisAtualizados; + private LinearLayout percentualConcluido; + private LinearLayout percentualNaoConcluido; + private Button btRelatorioPorOcorrencia; + private Button btRelatorioPorCadastrador; + private Button btVoltar; + private LinearLayout layoutBtCadastrador; + + public void onCreate(Bundle savedInstanceState){ + super.onCreate(savedInstanceState); + setContentView(R.layout.relatorio_activity); + + // Barra de porcentagem + percentualConcluido = (LinearLayout) findViewById(R.id.concluido); + android.widget.LinearLayout.LayoutParams parametroPercentualConcluido = (LayoutParams) percentualConcluido.getLayoutParams(); + + percentualNaoConcluido = (LinearLayout) findViewById(R.id.nao_concluido); + android.widget.LinearLayout.LayoutParams parametroPercentualNaoConcluido = (LayoutParams) percentualNaoConcluido.getLayoutParams(); + + //Total de Imoveis + int qtdTotalImovel = 0; + try { + qtdTotalImovel = Fachada.getInstance().obterQuantidadeImoveis(); + } catch (FachadaException e1) { + + e1.printStackTrace(); + } + + // Pega os imoveis que foram atualizados e incluidos + String selection = ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO + "=?"; + String[] selectionArgs = new String[]{ + String.valueOf(ConstantesSistema.SIM) + }; + + List listImovelAtualizado = null; + + try{ + listImovelAtualizado = (List) Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, selection, selectionArgs, null); + }catch(FachadaException ex){ + ex.printStackTrace(); + } + + int quantidadeImovelAtualizado = 0; + int quantidadeImovelIncluido = 0; + int imovelAvisitar = 0; + + for(ImovelAtlzCadastral imovel : listImovelAtualizado){ + + if(imovel.getImovelId() != 0){ + quantidadeImovelAtualizado++; + + }else{ + quantidadeImovelIncluido++; + } + } + + // Total de Imoveis Visitados + int qtdImovelVisitado = quantidadeImovelAtualizado + quantidadeImovelIncluido; + + // Total de Imoveis a Visitar + imovelAvisitar = qtdTotalImovel - quantidadeImovelAtualizado; + + // Bara de Porcentagem + double percentual = ((float) quantidadeImovelAtualizado / (float) qtdTotalImovel) *100; + + totalImoveis = (TextView) findViewById(R.id.totalImoveis); + totalImoveis.setText(String.valueOf(qtdTotalImovel)); + totalImoveisAtualizados = (TextView) findViewById(R.id.totalImoveisAtualizados); + totalImoveisAtualizados.setText(String.valueOf(quantidadeImovelAtualizado)); + totalImoveisAvisitar = (TextView) findViewById(R.id.totalImoveisAvisitar); + totalImoveisAvisitar.setText(String.valueOf(imovelAvisitar)); + totalImoveisIncluidos = (TextView) findViewById(R.id.totalImoveisIncluidos); + totalImoveisIncluidos.setText(String.valueOf(quantidadeImovelIncluido)); + totalImovelVisitados = (TextView) findViewById(R.id.totalImoveisVisitados); + totalImovelVisitados.setText(String.valueOf(qtdImovelVisitado)); + + percentualImoveisAtualizados = (TextView) findViewById(R.id.percentualImoveisAtualizados); + + if(qtdImovelVisitado == 0){ + percentualImoveisAtualizados.setText("%0"); + parametroPercentualConcluido.weight = 1f; + parametroPercentualNaoConcluido.weight = 0f; + + }else{ + percentualImoveisAtualizados.setText(String.format("%.1f %s", percentual, "%")); + double totalConcluido = percentual / 100; + parametroPercentualConcluido.weight = (float) (1-totalConcluido); + parametroPercentualNaoConcluido.weight = (float) (totalConcluido); + } + + btRelatorioPorOcorrencia = (Button) findViewById(R.id.btRelatorioPorOcorrencia); + btRelatorioPorOcorrencia.setOnClickListener(new OnClickListener() { + + public void onClick(View arg0) { + Intent i = new Intent(RelatorioActivity.this, RelatorioPorOcorrenciaCadastroActivity.class); + startActivity(i); + } + }); + + SistemaParametros sistemaParametros = new SistemaParametros(); + try { + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + } catch (FachadaException e) { + e.printStackTrace(); + } + + btRelatorioPorCadastrador = (Button) findViewById(R.id.btRelatorioPorCadastrador); + btRelatorioPorCadastrador.setOnClickListener(new OnClickListener() { + + @Override + public void onClick(View v) { + + try { + List listaLogin = Fachada.getInstance().pesquisarListaLogin(); + + if(listaLogin == null || listaLogin.size() == 0){ + Util.exibirMensagemErro(RelatorioActivity.this, "Nenhum Imvel foi Atualizado"); + + }else{ + Intent j = new Intent(RelatorioActivity.this, RelatorioPorCadastradorActivity.class); + startActivity(j); + } + + } catch (FachadaException e) { + e.printStackTrace(); + } + + } + }); + + layoutBtCadastrador = (LinearLayout) findViewById(R.id.btCadastrador); + + if((sistemaParametros.getLogin() == null || sistemaParametros.getLogin().equals("")) + || (sistemaParametros.getSenha() == null || sistemaParametros.equals(""))){ + + layoutBtCadastrador.setVisibility(View.GONE); + + } + + btVoltar = (Button) findViewById(R.id.btVoltar); + + btVoltar.setOnClickListener(new OnClickListener() { + + public void onClick(View v) { + + Intent intent = new Intent(RelatorioActivity.this, RoteiroActivity.class); + startActivity(intent); + finish(); + } + }); + } + + @Override + public void onBackPressed() { + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorCadastradorActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorCadastradorActivity.java new file mode 100644 index 0000000..f8a4d29 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorCadastradorActivity.java @@ -0,0 +1,93 @@ +package com.br.gsanac.gui; + +import java.util.ArrayList; +import java.util.List; + +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.os.Bundle; +import android.view.View; +import android.widget.AdapterView; +import android.widget.Button; +import android.widget.ListView; +import android.widget.AdapterView.OnItemClickListener; + +import com.br.gsanac.R; +import com.br.gsanac.adapter.ListaRelatorioCadastradorAdapter; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunas; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.bean.RelatorioPorCadastrador; +import com.br.gsanac.entidades.bean.RelatorioOcorrenciaCadastro; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; + +public class RelatorioPorCadastradorActivity extends BaseActivity{ + + private ListaRelatorioCadastradorAdapter adapter; + private ListView lv; + + public void onCreate(Bundle savedInstanceState){ + super.onCreate(savedInstanceState); + + if(execute){ + setContentView(R.layout.relatorio_por_cadastrador); + + lv = (ListView) findViewById(R.id.listRelatorioPorCadastrador); + lv.setOnItemClickListener(new OnItemClickListener(){ + + @Override + public void onItemClick(AdapterView arg0, View arg1, int position, long id) { + + } + + }); + + } + + } + + public void onResume(){ + super.onResume(); + + try { + ArrayList listaRelatorioPorCadastrador = new ArrayList(); + + List listaLogin = null; + Integer totalImoveis = 0; + + listaLogin = Fachada.getInstance().pesquisarListaLogin(); + + totalImoveis = Fachada.getInstance().obterQuantidadeImoveis(); + + if ( listaLogin != null && listaLogin.size() != 0) { + + for(int i = 0; i < listaLogin.size(); i++){ + + RelatorioPorCadastrador relatorioPorCadastrador = null; + + Integer totalImoveisAtualizados = Fachada.getInstance().obterTotalImoveisAtualizados(listaLogin.get(i)); + Integer totalImoveisIncluidos = Fachada.getInstance().obterTotalImoveisIncluidos(listaLogin.get(i)); + Integer totalImoveisVisitados = totalImoveisAtualizados + totalImoveisIncluidos; + + relatorioPorCadastrador = new RelatorioPorCadastrador(totalImoveis, totalImoveisAtualizados, totalImoveisIncluidos, totalImoveisVisitados, listaLogin.get(i)); + listaRelatorioPorCadastrador.add(relatorioPorCadastrador); + + } + } + + adapter = new ListaRelatorioCadastradorAdapter(RelatorioPorCadastradorActivity.this, listaRelatorioPorCadastrador); + lv.setAdapter(adapter); + + } catch (FachadaException e1) { + e1.printStackTrace(); + } + + } + + @Override + public void onBackPressed() { + finish(); + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorOcorrenciaCadastroActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorOcorrenciaCadastroActivity.java new file mode 100644 index 0000000..49fc33e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RelatorioPorOcorrenciaCadastroActivity.java @@ -0,0 +1,87 @@ +package com.br.gsanac.gui; + +import java.util.ArrayList; +import java.util.List; + +import android.os.Bundle; +import android.view.View; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.ListView; + +import com.br.gsanac.R; +import com.br.gsanac.adapter.ListaRelatoriosOcorrenciaCadastroAdapter; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunas; +import com.br.gsanac.entidades.bean.RelatorioOcorrenciaCadastro; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; + + +public class RelatorioPorOcorrenciaCadastroActivity extends BaseActivity{ + + private ListaRelatoriosOcorrenciaCadastroAdapter adapter; + private ListView lv; + + public void onCreate(Bundle savedInstanceState){ + super.onCreate(savedInstanceState); + + if(execute){ + setContentView(R.layout.relatorio_por_ocorrencia_cadastro); + + lv = (ListView) findViewById(R.id.listRelatorioPorOcorrencia); + + lv.setOnItemClickListener(new OnItemClickListener(){ + + @Override + public void onItemClick(AdapterView arg0, View arg1, int position, + long id) { + + } + + }); + + } + } + + public void onResume(){ + super.onResume(); + + try{ + + ArrayList listaRelatorioPorOcorrencia = new ArrayList(); + ArrayList listaOcorrencia = new ArrayList(); + + listaOcorrencia = (ArrayList) Fachada.getInstance().pesquisarLista(CadastroOcorrencia.class, null, null, CadastroOcorrenciaColunas.ID); + Integer totalImoveis = Fachada.getInstance().obterQuantidadeImoveis(); + + for(int i = 0; i < listaOcorrencia.size(); i++){ + + if(listaOcorrencia.get(i).getId() != ConstantesSistema.ITEM_INVALIDO){ + RelatorioOcorrenciaCadastro relatorioOcorrenciaCadastro = null; + + Integer totalImoveisAtualizados = Fachada.getInstance().obterQuantidadeImoveisAtualizadosPorOcorrencia(listaOcorrencia.get(i).getId()); + Integer totalImoveisIncluidos = Fachada.getInstance().obterQuantidadeImoveisIncluidosComPorOcorrencia(listaOcorrencia.get(i).getId()); + Integer totalImoveisVisitados = totalImoveisAtualizados + totalImoveisIncluidos; + String descricaoOcorrencia = Fachada.getInstance().buscarDescricaoOcorrencias(listaOcorrencia.get(i).getId()); + + relatorioOcorrenciaCadastro = new RelatorioOcorrenciaCadastro( totalImoveis, totalImoveisAtualizados, totalImoveisIncluidos, totalImoveisVisitados, descricaoOcorrencia); + listaRelatorioPorOcorrencia.add(relatorioOcorrenciaCadastro); + } + } + + adapter = new ListaRelatoriosOcorrenciaCadastroAdapter(RelatorioPorOcorrenciaCadastroActivity.this, listaRelatorioPorOcorrencia); + lv.setAdapter(adapter); + + }catch(FachadaException ex){ + ex.printStackTrace(); + } + } + + @Override + public void onBackPressed() { + finish(); + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/RoteiroActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RoteiroActivity.java new file mode 100644 index 0000000..e81d2d5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/RoteiroActivity.java @@ -0,0 +1,1057 @@ +package com.br.gsanac.gui; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; +import java.util.zip.ZipOutputStream; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.ActivityNotFoundException; +import android.content.DialogInterface; +import android.content.Intent; +import android.database.Cursor; +import android.os.AsyncTask; +import android.os.Bundle; +import android.text.InputFilter; +import android.util.Log; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.WindowManager; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AdapterView.OnItemSelectedListener; +import android.widget.ArrayAdapter; +import android.widget.EditText; +import android.widget.ImageButton; +import android.widget.ListView; +import android.widget.Spinner; +import android.widget.Toast; + +import com.br.gsanac.R; +import com.br.gsanac.adapter.RoteiroAdapter; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteAtlzCadastral.ClienteAtlzCadastralColunas; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteFoneAtlzCad.ClienteFoneAtlzCadColunas; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.Foto.FotoColunas; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad.HidrometroInstHistAtlzCadColunas; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelOcorrencia.ImovelOcorrenciaColunas; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad.ImovelSubCategAtlzCadColunas; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroCep.LogradouroCeps; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.ExportaBancoDados; +import com.br.gsanac.util.Util; + +/** + * @author Arthur Carvalho + * @since 18/12/2012 + */ +public class RoteiroActivity extends Activity { + + private RoteiroAdapter adapter; + + private Intent intent; + + private ListView listView; + + private Spinner spnBuscaTipo; + + private String[] tiposBusca; + + private ImageButton procurar; + + private EditText parametroInformado; + + private String tipoBuscaSelecionado; + + private int aux; + + private SistemaParametros sistemaParametros = new SistemaParametros(); + + ProgressDialog mProgressDialog; + + @Override + protected void onCreate(Bundle savedInstanceState) { + + super.onCreate(savedInstanceState); + + setContentView(R.layout.roteiro); + + //Para o teclado no aparecer ao entrar na tela + getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); + + Fachada.setContext(this); + + try{ + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + + if ( getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_CODIGO_TIPO_FINALIZACAO) != null ) { + + Integer codigoTipoFinalizado = (Integer) getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_CODIGO_TIPO_FINALIZACAO); + //1 - online + //2 - offline + //verifica se para finalizar on line + if ( codigoTipoFinalizado != null && codigoTipoFinalizado.intValue() == 1) { + + Intent i = new Intent(RoteiroActivity.this, FinalizarRoteiroActivity.class); + startActivity(i); + finish(); + }//verifica se para finalizar off line + else if ( codigoTipoFinalizado != null && codigoTipoFinalizado.intValue() == 2) { + gerarArquivoOffLine(); + } + } else { + + listView = (ListView) findViewById(R.id.listaImoveis); + + listView.setOnItemClickListener(new OnItemClickListener() { + + @Override + public void onItemClick(AdapterView adapterView, View view, int position, long id) { + + + //Verifica se o indicador de Mapa esta desativado, caso contrario obriga o usuario selecionar a posicao do imovel no mapa. + if ( sistemaParametros.getIndicadorMapa().toString().equals( String.valueOf(ConstantesSistema.NAO) ) ) { + + if (((ImovelAtlzCadastral) view.getTag()).getIndicadorTransmitido() != ConstantesSistema.INDICADOR_TRANSMITIDO) { + view.setBackgroundResource(android.R.drawable.list_selector_background); + + + intent = new Intent(RoteiroActivity.this, TabsActivity.class); + + intent.putExtra(ConstantesSistema.IMOVEL, (ImovelAtlzCadastral) view.getTag()); + Util.removerAtributosTabsActivity(); + + startActivity(intent); + finish(); + } else { + Util.showMessage(RoteiroActivity.this, + "O imvel selecionado j foi transmitido.", + Toast.LENGTH_SHORT); + } + } else { + new AlertDialog.Builder(RoteiroActivity.this).setTitle("Mapa obrigatrio") + .setMessage(" necessario identificar a localizao do imvel atravs do mapa.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + } + }) + + .show(); + } + + + + } + }); + + tiposBusca = new String[] { getString(R.string.str_imoveis_spinner_todos), + getString(R.string.str_imoveis_spinner_matricula_imovel), + getString(R.string.str_imoveis_spinner_imoveis_pendentes), + getString(R.string.str_imoveis_spinner_posicao), + getString(R.string.str_imoveis_spinner_numero_hidrometro), + getString(R.string.str_imoveis_spinner_cpfcnpj), + getString(R.string.str_imoveis_spinner_novo_imovel) + }; + + spnBuscaTipo = (Spinner) findViewById(R.id.buscaTipo); + + ArrayAdapter tipoBuscaAdapter = new ArrayAdapter(RoteiroActivity.this, + android.R.layout.simple_spinner_item,tiposBusca); + tipoBuscaAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + + spnBuscaTipo.setAdapter(tipoBuscaAdapter); + + parametroInformado = (EditText) findViewById(R.id.parametroInformado); + parametroInformado.setFilters(new InputFilter[]{new InputFilter.AllCaps()}); + + procurar = (ImageButton) findViewById(R.id.procurar); + + + + spnBuscaTipo.setOnItemSelectedListener(new OnItemSelectedListener() { + + + public void onItemSelected(AdapterView parent, View view, + int position, long id) { + + tipoBuscaSelecionado = (String) parent.getSelectedItem(); + + //Todos imveis + if(tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_todos))){ + + List listaImoveis = new ArrayList(); + + try { + + listaImoveis = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, null, null, ImovelAtlzCadastralColunas.POSICAO); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + System.out.println("TAMANHO DA LISTA"+listaImoveis.size()); + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + + //Imveis pendentes + } else if ( tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_imoveis_pendentes) ) ) { + + List listaImoveis = new ArrayList(); + + try { + + String selection = ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(ConstantesSistema.PENDENTE) + }; + + listaImoveis = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, selection, selectionArgs, ImovelAtlzCadastralColunas.POSICAO); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + + }//pesquisa novos imoveis + else if ( tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_novo_imovel) ) ) { + + List listaImoveis = new ArrayList(); + + try { + + String selection = ImovelAtlzCadastralColunas.IMOVEL_ID + " is null or " + ImovelAtlzCadastralColunas.IMOVEL_ID + " = 0 " ; + + listaImoveis = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, selection, null, ImovelAtlzCadastralColunas.POSICAO); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + } + + } + + public void onNothingSelected(AdapterView arg0) { + + } + }); + + procurar.setOnClickListener(new OnClickListener() { + + + public void onClick(View arg0) { + + + + String valorBusca = parametroInformado.getText().toString().trim(); + + // Busca por matrcula + if(tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_matricula_imovel))){ + + List listaImoveis = new ArrayList(); + + try { + + String selection = ImovelAtlzCadastralColunas.IMOVEL_ID + "=?"; + String[] selectionArgs = new String[] { + valorBusca + }; + + listaImoveis = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, selection, selectionArgs, ImovelAtlzCadastralColunas.POSICAO); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + + }else // Busca por numero de ordem + if(tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_posicao))){ + + List listaImoveis = new ArrayList(); + + try { + + String selection = ImovelAtlzCadastralColunas.POSICAO + "=?"; + String[] selectionArgs = new String[] { + valorBusca + }; + + listaImoveis = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, selection, selectionArgs, ImovelAtlzCadastralColunas.POSICAO); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + + }else // Busca por numero do hidrometro + if(tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_numero_hidrometro))){ + List listaImoveis = new ArrayList(); + + try { + + listaImoveis = Fachada.getInstance().pesquisarImovelPeloHidrometro(valorBusca); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + }else // Busca pelo CPF/CNPJ + if(tipoBuscaSelecionado.equals(getString(R.string.str_imoveis_spinner_cpfcnpj))){ + List listaImoveis = new ArrayList(); + + try { + + + listaImoveis = Fachada.getInstance().pesquisarImovelPeloCPFCNPJ(valorBusca.replaceAll("[/.-]", "")); + + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage()); + } + + adapter = new RoteiroAdapter(RoteiroActivity.this,listaImoveis); + + listView.setAdapter(adapter); + } + + } + }); + } + } + + @Override + protected void onResume() { + super.onResume(); + } + + + @Override + public boolean onMenuItemSelected(int featureId, MenuItem item) { + return super.onMenuItemSelected(featureId, item); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.menu, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + case R.id.novo_imovel: + + //Verifica se o indicador de Mapa esta desativado, caso contrario obriga o usuario selecionar a posicao do imovel no mapa. + if ( sistemaParametros.getIndicadorMapa().toString().equals( String.valueOf(ConstantesSistema.NAO) ) ) { + + Util.removerAtributosTabsActivity(); + Intent intent = new Intent(RoteiroActivity.this , TabsActivity.class); + intent.putExtra("indicadorNovo", true); + startActivity(intent); + finish(); + + } else { + new AlertDialog.Builder(RoteiroActivity.this).setTitle("Mapa obrigatrio") + .setMessage(" necessario identificar a localizao do imvel atravs do mapa.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + } + }) + + .show(); + } + + return true; + case R.id.carregar_mapa: + + try { + ArrayList listaMatriculas = Fachada.getInstance().pesquisarMatriculas(); + Integer codigoSetorComercial = Fachada.getInstance().pesquisarSetorComercialPrincipal(); + + Intent integracaoCompesa = new Intent(Intent.ACTION_MAIN); + integracaoCompesa.setClassName("compesa.mobile.mapalocal.activities", "compesa.mobile.mapalocal.activities.MainActivity"); + integracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_ENVIO_MATRICULAS, listaMatriculas); + integracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_ENVIO_LOCALIDADE, sistemaParametros.getIdLocalidade()); + integracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_ENVIO_SETORCOMERCIAL, String.valueOf(codigoSetorComercial)); + startActivity(integracaoCompesa); + finish(); + } catch (ActivityNotFoundException e) { + //No existe o sistema de mapas + new AlertDialog.Builder(RoteiroActivity.this).setTitle("Mapa Indisponvel") + .setMessage("O sistema de mapas no est instalado.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + try{ + //desativa a obrigatoriedade de informar a localizacao do imvel, habilitando selecionar o imvel pela tela de roteiro. + sistemaParametros.setIndicadorMapa(ConstantesSistema.NAO); + + Fachada.getInstance().update(sistemaParametros); + } catch (FachadaException e) { + e.printStackTrace(); + } + + + + } + }) + + .show(); + } catch ( FachadaException fe ) { + fe.printStackTrace(); + } + return true; + case R.id.menu_finalizar: + + final CharSequence[] items = { + "Transmitir o arquivo online", + "Gerar o arquivo offline" + }; + + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setTitle("Finalizao de roteiro:"); + builder.setSingleChoiceItems(items, 0, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int item) { + aux = item; + } + }); + + builder.setPositiveButton(getString(R.string.processar), new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface arg0, int arg1) { + // Finalizar roteiro on line + if (aux == 0) { + Intent i = new Intent(RoteiroActivity.this, + FinalizarRoteiroActivity.class); + startActivity(i); + finish(); + // Finalizar roteiro off line + } + else if (aux == 1) { + gerarArquivoOffLine(); + } + } + }); + builder.setNegativeButton(getString(R.string.cancelar), new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface arg0, int arg1) { + } + }); + AlertDialog alert = builder.create(); + alert.show(); + return true; + + case R.id.exportar_banco: + + mProgressDialog = new ProgressDialog(RoteiroActivity.this) { + + @Override + public void onBackPressed() {} + + @Override + public boolean onSearchRequested() { return false;} + }; + + mProgressDialog.setIndeterminate(false); + mProgressDialog.setTitle(getString(R.string.exportando_banco)); + mProgressDialog.setMessage(getString(R.string.carregando)); + mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mProgressDialog.setMax(100); + mProgressDialog.setCancelable(false); + mProgressDialog.setIcon(R.drawable.transfer); + mProgressDialog.show(); + + AsyncTask taskExportaBanco = new AsyncTask() { + @Override + protected Object doInBackground(Object... params) { + new ExportaBancoDados().exportarBanco(); + mProgressDialog.dismiss(); + return true; + } + + @Override + protected void onPostExecute(Object result) { + mProgressDialog.dismiss(); + + new AlertDialog.Builder(RoteiroActivity.this).setTitle("BANCO EXPORTADO") + .setIcon(R.drawable.warning) + .setMessage("Banco exportado com sucesso! \nCaminho: " + ConstantesSistema.SDCARD_BANCO_PATH) + .setNeutralButton(ConstantesSistema.ALERT_OK, + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }) + .show(); + } + }; + + taskExportaBanco.execute(); + + return true; + + + case R.id.carregar_arq_dividido: + + if ( sistemaParametros.getLogin() != null && !sistemaParametros.getLogin().equals("") && + sistemaParametros.getSenha() != null && !sistemaParametros.getSenha().equals("") ) { + + Intent i = new Intent(RoteiroActivity.this,SelecionarArquivoDivididoActivity.class); + startActivity(i); + finish(); + } else { + Util.showMessage(RoteiroActivity.this, "No possivel carregar o arquivo dividido.",Toast.LENGTH_SHORT); + } + + + return true; + + case R.id.trasmitir_imoveis: + String imoveisPendentes = "SIM"; + Intent intent = new Intent(RoteiroActivity.this, FinalizarRoteiroActivity.class); + intent.putExtra("imoveisPendentes", imoveisPendentes); + startActivity(intent); + finish(); + return true; + + case R.id.carregar_relatorio: + Intent i = new Intent(RoteiroActivity.this, RelatorioActivity.class); + startActivity(i); + finish(); + return true; + + default: + return super.onOptionsItemSelected(item); + } + } + + @Override + public void onBackPressed() { + + finish(); + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } + + /** + * Metodo responsavel por gerar o arquivo e as fotos de retorno. + * + * @author Arthur Carvalho + */ + private void gerarArquivoOffLine() { + + /* + * EXPORTA O BANCO DE DADOS + * AUTOMATICAMENTE AO FINALIZAR + * O ROTEIRO + */ + exportarBancoDeDadosAutomatico(); + + StringBuilder fileContent = new StringBuilder(""); + + try { + /* + * MONTA O REGISTRO DO TIPO FINALIZAR ARQUIVO OU DO TIPO + * FINALIZADO POR USUARIO SEM LOGIN(SEM PERMISSAO PARA + * FINALIZAR O ARQUIVO) + */ + fileContent = montarRegistroTipo13UsuarioSemLogin(fileContent); + + /* + * MONTA O ARQUIVO REGISTRO 01 TIPO CEP + */ + fileContent = montandoArquivoRegistroTipo01(fileContent); + + /* + * MONTA O ARQUIVO REGISTRO 02 TIPO LOGRADOURO + */ + fileContent = montandoArquivoRegistroTipo02(fileContent); + + /* + * MONTA O ARQUIVO REGISTRO 03 TIPO LOGRADOURO CEP + */ + fileContent = montandoArquivoRegistroTipo03(fileContent); + + try{ + + //Apaga Arquivo de Retono existente + File diretorioArquivoRetorno = new File(ConstantesSistema.SDCARD_GSANAC_RETURN_PATH); + Util.deletarPastas(diretorioArquivoRetorno); + + // Gera nome do arquivo + String fileName = sistemaParametros.getIdComando() + "_" + sistemaParametros.getLogin(); + + Util.createSystemDirs(); + + // Gera o arquivo de retorno + File file = new File(ConstantesSistema.SDCARD_GSANAC_RETURN_PATH + "/" + fileName + ".txt"); + + // criar o arquivo zip + File arquivoZip = new File(ConstantesSistema.SDCARD_GSANAC_RETURN_PATH + "/"+ sistemaParametros.getIdComando().toString()+ "_" + sistemaParametros.getLogin() + ".zip" ); + ZipOutputStream zos = new ZipOutputStream( new FileOutputStream( arquivoZip ) ); + + + /** + * Montando o registro Imovel + */ + + String selection1 = ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO + "=? AND " + ImovelAtlzCadastralColunas.INDICADOR_TRANSMITIDO + "=?"; + + String[] selectionArgs1 = new String[] { + "1", + "2" + }; + + List listaImovel = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, + selection1, + selectionArgs1, + ImovelAtlzCadastralColunas.ID); + Iterator iteratorListaImovel = listaImovel.iterator(); + + ImovelAtlzCadastral imovelAtlzCadastral = null; + ClienteAtlzCadastral clienteAtlzCadastral = null; + + while (iteratorListaImovel.hasNext()) { + + imovelAtlzCadastral = (ImovelAtlzCadastral) iteratorListaImovel.next(); + + //Verifica se o imvel ja foi atualizado e se ja foi transmitido. +// if (imovelAtlzCadastral.getIndicadorFinalizado().toString().equals(String.valueOf(ConstantesSistema.FINALIZADO)) +// && imovelAtlzCadastral.getIndicadorTransmitido().toString().equals(String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO))) { + //IMOVEL + fileContent.append(Fachada.getInstance().gerarArquivoRetornoImovel(imovelAtlzCadastral)); + + //Pesquisa Cliente + String selection = ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgs = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + clienteAtlzCadastral = new ClienteAtlzCadastral(); + clienteAtlzCadastral = (ClienteAtlzCadastral) Fachada.getInstance().pesquisar(clienteAtlzCadastral, selection, selectionArgs); + + //CLIENTE FONE + List listaClienteFoneAtlzCadastral = null; + if ( clienteAtlzCadastral != null && clienteAtlzCadastral.getId() != null ) { + + //Pesquisa Logradouro + String selectionFone = ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID + "=?"; + + String[] selectionArgsFone = new String[] { + clienteAtlzCadastral.getId().toString() + }; + + listaClienteFoneAtlzCadastral = (List) Fachada.getInstance().pesquisarLista(ClienteFoneAtlzCad.class, selectionFone, selectionArgsFone, null); + } + + //CLIENTE | CLIENTE FONE + fileContent.append(Fachada.getInstance().gerarArquivoRetornoCliente(clienteAtlzCadastral, listaClienteFoneAtlzCadastral, imovelAtlzCadastral.getIntegracaoID())); + + //Registro do tipo 08 - Hidrometro Atlz Cadastral + String selectionHidrometro = HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsHidrometro = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + List listaHidrometroInstHistAtlzCad = (List) Fachada.getInstance(). + pesquisarLista(HidrometroInstHistAtlzCad.class, selectionHidrometro, selectionArgsHidrometro, null); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoHidrometro(listaHidrometroInstHistAtlzCad, imovelAtlzCadastral.getIntegracaoID(), imovelAtlzCadastral.getImovelId())); + + //Registro do tipo 09 - Subcategoria Atlz Cadastral + String selectionSub = ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsSub = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + + List listaImovelSubCategAtlzCad = (List) Fachada.getInstance() + .pesquisarLista(ImovelSubCategAtlzCad.class, selectionSub, selectionArgsSub, null); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoSubategoria(listaImovelSubCategAtlzCad, imovelAtlzCadastral.getIntegracaoID())); + + //Registro do tipo 10 - Imovel ocorrencia + String selectionOcorrencia = ImovelOcorrenciaColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsOcorrencia = new String[] { + imovelAtlzCadastral.getId().toString() + }; + + + List listaImovelOcorrencia = (List) Fachada.getInstance() + .pesquisarLista(ImovelOcorrencia.class, selectionOcorrencia, selectionArgsOcorrencia, null); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoOcorrencia(listaImovelOcorrencia, imovelAtlzCadastral.getIntegracaoID())); + // } + + //Pesquisar Foto do imvel + String selectionFoto = FotoColunas.IMOVELATLZCAD_ID + "=? AND " + FotoColunas.INDICADORTRANSMITIDO + "=?"; + + String[] selectionArgsFoto = new String[] { + String.valueOf(imovelAtlzCadastral.getId()), + String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO), + }; + + try { + + List listaFoto = Fachada.getInstance().pesquisarLista(Foto.class, selectionFoto, selectionArgsFoto, null); + + Iterator iteratorListaFoto = listaFoto.iterator(); + while (iteratorListaFoto.hasNext()) { + + Foto foto = (Foto) iteratorListaFoto.next(); + + StringBuilder sb = new StringBuilder(""); + sb.append("12|"); + sb.append(foto.getFotoPath()+"|"); + sb.append(foto.getFotoTipo()+"|"); + sb.append(imovelAtlzCadastral.getIntegracaoID()+"|"); + sb.append("\n"); + fileContent.append(sb); + + try { + Util.addFileToZip("", foto.getFotoPath(), zos); + + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + } + + /* + * MONTA O ARQUIVO REGISTRO 00 TIPO RESPONSAVEL + * POR FINALIZAR O ARQUIVO NO GSAN + */ + fileContent = montandoArquivoRegistroTipo00(fileContent); + + // Escreve no arquivo de retorno criado + FileOutputStream fileOut = null; + + fileOut = new FileOutputStream(file); + fileOut.write(fileContent.toString().getBytes()); + + + StringBuilder arquivoDeLog = new StringBuilder(""); + Util.adicionarArquivo(zos, file); + + zos.close(); + file.delete(); + + DBConnection.getInstance(Fachada.getContext()).deleteDatabase(); + Util.removeInstanceRepository(); + + File diretorio = new File(ConstantesSistema.SDCARD_GSANAC_PHOTOS_PATH); + File diretorioArquivo = new File(ConstantesSistema.SDCARD_GSANAC_FILES_PATH); + File diretorioArquivoDividido = new File(ConstantesSistema.SDCARD_GSANAC_ARQUIVO_DIVIDIDO_PATH); + Util.deletarPastas(diretorio); + Util.deletarPastas(diretorioArquivo); + Util.deletarPastas(diretorioArquivoDividido); + + // Informamos ao usurio que foi tudo certo + new AlertDialog.Builder(RoteiroActivity.this).setTitle("Roteiro Encerrado") + .setMessage("O arquivo foi gerado no carto de memoria, localizado na pasta gsanAC/retorno.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + + new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent i = new Intent( + RoteiroActivity.this, + LoginActivity.class); + startActivity(i); + finish(); + } + }) + + .show(); + + } catch (FileNotFoundException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } catch (IOException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } + + } catch (FachadaException e) { + e.printStackTrace(); + } + + } + + public StringBuilder montarRegistroTipo13UsuarioSemLogin(StringBuilder fileContent){ + if ( !(sistemaParametros.getLogin() != null && !sistemaParametros.getLogin().equals("") && + sistemaParametros.getSenha() != null && !sistemaParametros.getSenha().equals("")) ) { + //Arquivo do tipo usuario sem permissao para finalizar o arquivo. + StringBuilder s = new StringBuilder(""); + s.append("13|"); + s.append(Util.stringPipe(sistemaParametros.getIdComando())); + s.append("\n"); + fileContent.append(s); + + //adicionar imoveis que ja foram transmitidos para que no tablet do "supervisor"(usuario com permissao de finalizar arquivo) + //seja possivel ver os imoveis ja transmitidos. + montarRegistroTipo11AdicionarImoveisQueForamTransmitidos(fileContent); + + } + return fileContent; + } + + public StringBuilder montarRegistroTipo11AdicionarImoveisQueForamTransmitidos(StringBuilder fileContent ){ + //adicionar imoveis que ja foram transmitidos para que no tablet do "supervisor"(usuario com permissao de finalizar arquivo) + //seja possivel ver os imoveis ja transmitidos. + List listaImovel1; + try { + listaImovel1 = Fachada.getInstance().pesquisarLista(ImovelAtlzCadastral.class, + null, + null, + ImovelAtlzCadastralColunas.ID); + Iterator iteratorListaImovel1 = listaImovel1.iterator(); + while (iteratorListaImovel1.hasNext()) { + + ImovelAtlzCadastral imovelAtlzCadastral = (ImovelAtlzCadastral) iteratorListaImovel1.next(); + + //Verifica se o imvel ja foi atualizado e se ja foi transmitido e no imovel novo. + if (imovelAtlzCadastral.getIndicadorFinalizado().toString().equals(String.valueOf(ConstantesSistema.FINALIZADO)) + && imovelAtlzCadastral.getIndicadorTransmitido().toString().equals(String.valueOf(ConstantesSistema.INDICADOR_TRANSMITIDO)) + && (imovelAtlzCadastral.getImovelId() != null && !imovelAtlzCadastral.getImovelId().toString().equals("") + && !imovelAtlzCadastral.getImovelId().toString().equals("0")) ) { + + StringBuilder sb = new StringBuilder(""); + sb.append("11|"); + sb.append(imovelAtlzCadastral.getId()+"|"); + sb.append("\n"); + fileContent.append(sb); + } + } + } catch (FachadaException e) { + e.printStackTrace(); + } + return fileContent; + } + + public StringBuilder montandoArquivoRegistroTipo01(StringBuilder fileContent){ + + /** + * Montando o arquivo Registro tipo CEP + */ + String selectionLogCep = LogradouroCeps.INDICADORNOVO+ "=? "; + + String[] selectionArgsLogCep = new String[] { + String.valueOf(ConstantesSistema.SIM) + }; + + try{ + List listaLogrCep = Fachada.getInstance().pesquisarLista(LogradouroCep.class, selectionLogCep, selectionArgsLogCep, null); + + if ( listaLogrCep != null ) { + + Iterator iteratorLogradouroCep = listaLogrCep.iterator(); + + while( iteratorLogradouroCep.hasNext() ) { + + LogradouroCep logradouroCep = (LogradouroCep) iteratorLogradouroCep.next(); + + + String selectionCep = Ceps.ID + "=? AND " + Ceps.INDICADOR_TRANSMITIDO + "=?"; + + String[] selectionArgsCep = new String[] { + String.valueOf(logradouroCep.getCep().getId()), + String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) + }; + + List listaCep = Fachada.getInstance().pesquisarLista(Cep.class,selectionCep, selectionArgsCep, null); + + if ( listaCep != null ) { + + Iterator iteratorCep = listaCep.iterator(); + while( iteratorCep.hasNext() ) { + + Cep cep = (Cep) iteratorCep.next(); + + if ( cep.getCodigoUnico() == null || cep.getCodigoUnico().equals("") ) { + Long dateTime = new Date().getTime(); + cep.setCodigoUnico(dateTime.toString()); + Fachada.getInstance().update(cep); + } + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoCep(cep)); + } + } + } + } + } catch (FachadaException e) { + e.printStackTrace(); + } + + return fileContent; + } + + public StringBuilder montandoArquivoRegistroTipo02(StringBuilder fileContent){ + + + try { + // String selectionLogradouro = Logradouros.INDICADORNOVO+ "=? AND " + Logradouros.INDICADOR_TRANSMITIDO + "=?"; + // + // String[] selectionArgsLogradouro = new String[] { + // String.valueOf(ConstantesSistema.SIM), + // String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) + // }; + + Cursor cursor = Fachada.getInstance().getCursorListaLogradouro(Logradouro.class); + Logradouro logr = new Logradouro(); + List listaLogradouro = logr.carregarListaEntidade(cursor); + + if ( listaLogradouro != null ) { + + Iterator iteratorLogradouro = listaLogradouro.iterator(); + while( iteratorLogradouro.hasNext() ) { + + Logradouro logradouro = (Logradouro) iteratorLogradouro.next(); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoLogradouro(logradouro, sistemaParametros)); + } + } + } catch (FachadaException e) { + e.printStackTrace(); + } + return fileContent; + } + + public StringBuilder montandoArquivoRegistroTipo03(StringBuilder fileContent){ + + try { + // String selectionLogradouroCep = LogradouroCeps.INDICADORNOVO+ "=? AND " + LogradouroCeps.INDICADOR_TRANSMITIDO + "=?"; + // + // String[] selectionArgsLogradouroCep = new String[] { + // String.valueOf(ConstantesSistema.SIM), + // String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO) + // }; + + Cursor cursor1 = Fachada.getInstance().getCursorListaLogradouroCep(LogradouroCep.class); + LogradouroCep logrCep = new LogradouroCep(); + List listaLogradouroCep = logrCep.carregarListaEntidade(cursor1); + + if ( listaLogradouroCep != null ) { + + Iterator iteratorLogradouroCep = listaLogradouroCep.iterator(); + + while( iteratorLogradouroCep.hasNext() ) { + + LogradouroCep logradouroCep = (LogradouroCep) iteratorLogradouroCep.next(); + + fileContent.append(Fachada.getInstance().gerarArquivoRetornoLogradouroCep(logradouroCep)); + } + } + } catch (FachadaException e) { + e.printStackTrace(); + } + return fileContent; + } + + public StringBuilder montandoArquivoRegistroTipo00(StringBuilder fileContent){ + + if ( sistemaParametros.getLogin() != null && !sistemaParametros.getLogin().equals("") && + sistemaParametros.getSenha() != null && !sistemaParametros.getSenha().equals("") ) { + + //Indicador Responsavel por finalizar o arquivo no gsan. + StringBuilder sb = new StringBuilder(""); + sb.append("00|"); + sb.append(Util.stringPipe(sistemaParametros.getIdComando())); + sb.append(Util.stringPipe(5)); + sb.append("\n"); + fileContent.append(sb); + + } + + return fileContent; + } + + public void exportarBancoDeDadosAutomatico(){ + new ExportaBancoDados().exportarBanco(); + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoActivity.java new file mode 100644 index 0000000..d1b9596 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoActivity.java @@ -0,0 +1,218 @@ +package com.br.gsanac.gui; + +import java.io.File; +import java.io.FileFilter; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.List; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemLongClickListener; +import android.widget.ListView; + +import com.br.gsanac.R; +import com.br.gsanac.adapter.ArquivoAdapter; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.DBLoader; +import com.br.gsanac.util.Util; + +/** + * @author Arthur Carvalho + * @since 09/09/2011 + */ +public class SelecionarArquivoActivity extends Activity { + + private File dir; + + private List filesList; + + private ArquivoAdapter fileAdapter; + + private String path; + + private ProgressDialog mProgressDialog; + + private String cpfLogin; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + setContentView(R.layout.arquivo_selecionar); + + Fachada.setContext(this); + + if ( getIntent().getSerializableExtra(ConstantesSistema.CPF_LOGIN) != null ) { + cpfLogin = (String) getIntent().getSerializableExtra(ConstantesSistema.CPF_LOGIN); + } + + + Util.createSystemDirs(); + + FileFilter filter = new FileFilter() { + @Override + public boolean accept(File pathname) { + return pathname.getName().toLowerCase().endsWith(".txt"); + } + }; + + filesList = new ArrayList(); + + ListView listView = (ListView) findViewById(R.id.listFiles); + + dir = new File(ConstantesSistema.SDCARD_GSANAC_FILES_PATH); + + File[] files = dir.listFiles(filter); + + if (files != null && files.length > 0) { + for (File file : files) { + if (filter.accept(file)) { + filesList.add(file.getName()); + } + } + } else { + AlertDialog alertDialog = new AlertDialog.Builder(SelecionarArquivoActivity.this).setTitle(getString(R.string.nao_exist_arquivo_para_carregar)) + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNegativeButton(getString(R.string.sair), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + finish(); + } + }) + + .show(); + alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { + + @Override + public void onDismiss(DialogInterface dialog) { + + finish(); + } + }); + + } + + fileAdapter = new ArquivoAdapter(this, + filesList); + + listView.setOnItemLongClickListener( new OnItemLongClickListener() { + + + @Override + public boolean onItemLongClick(AdapterView parentView, View v, int position, long id) { + + v.setBackgroundColor(android.R.drawable.list_selector_background); + + // Guarda o path do diretorio selecionado + path = (String) v.getTag(); + + mProgressDialog = new ProgressDialog(SelecionarArquivoActivity.this) { + + @Override + public void onBackPressed() { + } + + @Override + public boolean onSearchRequested() { + return false; + } + + }; + mProgressDialog.setIndeterminate(true); + mProgressDialog.setTitle(getString(R.string.carregar_offline)); + mProgressDialog.setMessage(getString(R.string.carregando)); + mProgressDialog.setCancelable(false); + mProgressDialog.setIcon(R.drawable.transfer); + mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mProgressDialog.show(); + + AsyncTask taskDownloadFile = new AsyncTask() { + + @Override + protected Object doInBackground(Object... arg0) { + InputStream is = null; + try { + is = new FileInputStream(dir + "/" + path); + + DBLoader.loadDatabaseFromInputStream(is, true, cpfLogin); + + String strVersaoAtual = Util.getVersaoSistema(SelecionarArquivoActivity.this); + + + SistemaParametros sistemaParametros = new SistemaParametros(); + try{ + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } + + Integer intVersaoAtual = Integer.valueOf(strVersaoAtual.replace(".", "")); + Integer intNovaVersao = Integer.valueOf(sistemaParametros.getNumeroVersao().replace(".", "")); + + if(intNovaVersao > intVersaoAtual){ + mProgressDialog.dismiss(); + //remove o arquivo carregado. + DBConnection.getInstance(Fachada.getContext()).deleteDatabase(); + Util.removeInstanceRepository(); + //caso o arquivo tenha sido carregado - envia o usuario para a tela de login + Intent i = new Intent(SelecionarArquivoActivity.this, VersaoArquivoErradaActivity.class); + startActivity(i); + finish(); + } else { + + mProgressDialog.dismiss(); + Intent it = new Intent(SelecionarArquivoActivity.this, + LoginActivity.class); + startActivity(it); + finish(); + } + + } catch (FileNotFoundException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } + + return null; + } + + }; + + taskDownloadFile.execute(); + return false; + + } + }); + + listView.setAdapter(fileAdapter); + } + + @Override + public void onBackPressed() { + finish(); + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoDivididoActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoDivididoActivity.java new file mode 100644 index 0000000..39b9137 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/SelecionarArquivoDivididoActivity.java @@ -0,0 +1,273 @@ +package com.br.gsanac.gui; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileFilter; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.widget.AdapterView; +import android.widget.Toast; +import android.widget.AdapterView.OnItemLongClickListener; +import android.widget.ListView; + +import com.br.gsanac.R; +import com.br.gsanac.adapter.ArquivoAdapter; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.CarregarArquivoDividido; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +/** + * @author Arthur Carvalho + * @since 09/09/2011 + */ +public class SelecionarArquivoDivididoActivity extends Activity { + + private File dir; + + private List filesList; + + private ArquivoAdapter fileAdapter; + + private String path; + + private ProgressDialog mProgressDialog; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + setContentView(R.layout.arquivo_dividido_selecionar); + + Fachada.setContext(this); + + Util.createSystemDirs(); + + FileFilter filter = new FileFilter() { + @Override + public boolean accept(File pathname) { + return pathname.getName().toLowerCase().endsWith(".zip"); + } + }; + + filesList = new ArrayList(); + + ListView listView = (ListView) findViewById(R.id.listFiles); + + dir = new File(ConstantesSistema.SDCARD_GSANAC_ARQUIVO_DIVIDIDO_PATH); + + File[] files = dir.listFiles(filter); + + if (files != null && files.length > 0) { + for (File file : files) { + if (filter.accept(file)) { + filesList.add(file.getName()); + } + } + } else { + AlertDialog alertDialog = new AlertDialog.Builder(SelecionarArquivoDivididoActivity.this) + .setTitle(getString(R.string.nao_exist_arquivo_para_carregar)) + .setIcon(R.drawable.erro) + .setCancelable(false) + .setNegativeButton(getString(R.string.sair), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + Intent it = new Intent(SelecionarArquivoDivididoActivity.this,RoteiroActivity.class); + startActivity(it); + finish(); + } + }) + .show(); + alertDialog.setOnDismissListener(new DialogInterface.OnDismissListener() { + + @Override + public void onDismiss(DialogInterface dialog) { + + finish(); + } + }); + + } + + fileAdapter = new ArquivoAdapter(this, + filesList); + + listView.setOnItemLongClickListener( new OnItemLongClickListener() { + + + @Override + public boolean onItemLongClick(AdapterView parentView, View v, int position, long id) { + + v.setBackgroundColor(android.R.drawable.list_selector_background); + + // Guarda o path do diretorio selecionado + path = (String) v.getTag(); + + try { + Date dataArquivoCarregado = Fachada.getInstance().pesquisarArquivoDivididoCarregado(path.substring(0, path.length() - 4)); + + if ( dataArquivoCarregado != null ) { + + + Util.showMessage(SelecionarArquivoDivididoActivity.this, "Arquivo j Carregado no dia " + Util.convertDateToString(dataArquivoCarregado), Toast.LENGTH_SHORT); + + + } else { + mProgressDialog = new ProgressDialog(SelecionarArquivoDivididoActivity.this) { + + @Override + public void onBackPressed() { + } + + @Override + public boolean onSearchRequested() { + return false; + } + + }; + mProgressDialog.setIndeterminate(true); + mProgressDialog.setTitle("Carregando Arquivo Dividido"); + mProgressDialog.setMessage(getString(R.string.carregando)); + mProgressDialog.setCancelable(false); + mProgressDialog.setIcon(R.drawable.transfer); + mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mProgressDialog.show(); + + AsyncTask taskDownloadFile = new AsyncTask() { + + @Override + protected Object doInBackground(Object... arg0) { + InputStream istrm = null; + try { + istrm = new FileInputStream(dir + "/"+ path); + +// InputStream istrm = item.getInputStream(); + ZipInputStream zipInputStream = new ZipInputStream(istrm); + + ZipEntry entry; + //primeiro carrega o txt + while ( (entry = zipInputStream.getNextEntry() ) != null ) { + ByteArrayOutputStream byteOut = new ByteArrayOutputStream(); + //zip.getInputStream(zip.getEntry("test.txt")); + String extensaoArquivo = entry.getName().substring(entry.getName().lastIndexOf("."), entry.getName().length()); + if( extensaoArquivo.toUpperCase().equals(".TXT") ){ + + int count; + byte data[] = new byte[2048]; + String filename = entry.getName(); + System.out.println("Filename: " + filename); + + while ((count = zipInputStream.read(data, 0, 2048)) != -1) { + byteOut.write(data, 0, count); + } + + ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteOut.toByteArray()); + + CarregarArquivoDividido.carregarArquivoFromInputStream(byteArrayInputStream, true); + } + + } + entry= null; + + InputStream istrmf = new FileInputStream(dir + "/" + path); + ZipInputStream zipInputStreamf = new ZipInputStream(istrmf); + //carrega as imagens + while ( (entry = zipInputStreamf.getNextEntry() ) != null ) { + ByteArrayOutputStream byteOut = new ByteArrayOutputStream(); + + String extensaoArquivo = entry.getName().substring(entry.getName().lastIndexOf("."), entry.getName().length()); + if ( extensaoArquivo.toUpperCase().equals(".JPG") ) { + + int count; + byte data[] = new byte[1024]; + String filename = entry.getName(); + System.out.println("Filename: " + filename); + while ((count = zipInputStreamf.read(data, 0, 1024)) != -1) { + byteOut.write(data, 0, count); + } + + data = byteOut.toByteArray(); + + File file = new File(ConstantesSistema.SDCARD_GSANAC_PHOTOS_PATH + "/" + filename ); + // Escreve no arquivo de retorno criado + FileOutputStream fileOut = null; + + fileOut = new FileOutputStream(file); + fileOut.write(data); + } + + } + + try { + Fachada.getInstance().inserirArquivoDividido(path); + } catch (FachadaException e) { + e.printStackTrace(); + } + + mProgressDialog.dismiss(); + Intent it = new Intent(SelecionarArquivoDivididoActivity.this,RoteiroActivity.class); + startActivity(it); + finish(); + + + } catch (FileNotFoundException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + return null; + } + + }; + + taskDownloadFile.execute(); + } + } catch (FachadaException e) { + e.printStackTrace(); + } + + return false; + + } + }); + + listView.setAdapter(fileAdapter); + } + + @Override + public void onBackPressed() { + finish(); + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/TabsActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/TabsActivity.java new file mode 100644 index 0000000..a8ff40a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/TabsActivity.java @@ -0,0 +1,973 @@ +package com.br.gsanac.gui; + +import java.io.File; +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.app.TabActivity; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.Color; +import android.graphics.Shader; +import android.graphics.drawable.BitmapDrawable; +import android.os.AsyncTask; +import android.os.Bundle; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.WindowManager; +import android.widget.Button; +import android.widget.LinearLayout; +import android.widget.TabHost; +import android.widget.TabHost.OnTabChangeListener; +import android.widget.TabHost.TabSpec; +import android.widget.TextView; + +import com.br.gsanac.R; +import com.br.gsanac.conexao.ConexaoWebServer; +import com.br.gsanac.conexao.PhotoConnection; +import com.br.gsanac.controlador.ControladorUtil; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteAtlzCadastral.ClienteAtlzCadastralColunas; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteFoneAtlzCad.ClienteFoneAtlzCadColunas; +import com.br.gsanac.entidades.ClienteTipo; +import com.br.gsanac.entidades.ClienteTipo.ClienteTipoColunas; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.Foto.FotoColunas; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad.HidrometroInstHistAtlzCadColunas; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelOcorrencia.ImovelOcorrenciaColunas; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad.ImovelSubCategAtlzCadColunas; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroCep.LogradouroCeps; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.ControladorException; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + +public class TabsActivity extends TabActivity implements OnTabChangeListener { + + public static TabHost mTabHost; + + Fachada fachada = Fachada.getInstance(); + + protected boolean execute = true; + + private Button btnAtualizar; + + private Button btnCancelar; + + private TextView totalImoveis; + + private TextView posicao; + + protected Button visualizar; + + public static ImovelAtlzCadastral imovel; + + public static ImovelAtlzCadastral imovelInicial; + + public static ClienteAtlzCadastral cliente; + + public static HidrometroInstHistAtlzCad hidrometroInstalacaoHist; + + public static HidrometroInstHistAtlzCad hidrometroInstalacaoHistInicial; + + public static ArrayList colecaoClienteFone; + + public static ArrayList colecaoClienteFoneIncial; + + public static SistemaParametros sistemaParametros; + + public static ArrayList colImoveisSubCategoria; + + public static ArrayList colImoveisSubCategoriaInicial; + + public static ArrayList colecaoImovelOcorrencia; + + public static ArrayList colecaoImovelOcorrenciaInicial; + + public static Foto fotoFrenteDaCasa; + + public static Foto fotoHidrometro; + + public static Foto fotoFrenteDaCasaInicial; + + public static Foto fotoHidrometroInicial; + + public static String mensagemErro; + + //valida se necessario carregar um novo imvel na tela. + public static boolean carregarImovel = false; + + public static boolean concluirAtualizacao = false; + + public static boolean indicadorExibirMensagemErro = true; + public static boolean indicadorAtualizacaoCancelada = true; + + public static boolean indicadorIntegracao = false; + public static boolean primeiraVezAbaImovel = true; + public static boolean primeiraVezAbaLigacao = true; + + //validacao data + public static boolean dataNascimentoValida = true; + public static boolean dataEmissaoValida = true; + + public static ImovelAtlzCadastral imovAtlzCad; + + + private void setupTabHost() { + mTabHost = (TabHost) findViewById(android.R.id.tabhost); + mTabHost.setup(); + } + + /** Called when the activity is first created. */ + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.tabs_activity); + + execute = true; + + try { + + if( indicadorAtualizacaoCancelada ){ + Util.removerAtributosTabsActivity(); + TabsActivity.indicadorAtualizacaoCancelada = false; + } + + //Caso o usuario tenha selecionado concluir atualizacao do imvel + if ( concluirAtualizacao ) { + + concluirAtualizacao = false; + + ProgressDialog mProgressDialog = new ProgressDialog(TabsActivity.this) { + @Override + public void onBackPressed() { + } + + @Override + public boolean onSearchRequested() { + return false; + } + }; + + ControladorUtil controladorUtil = ControladorUtil.getInstance(); + + try { + imovAtlzCad = controladorUtil.concluir(); + indicadorExibirMensagemErro = true; + + //Valida e inseri/atualiza os dados no banco + if ( imovAtlzCad != null ) { + + mProgressDialog.setTitle("Atualizando o Imvel"); + mProgressDialog.setMessage("Por favor, aguarde enquanto enviamos os dados para o GSAN."); + mProgressDialog.setIndeterminate(false); + mProgressDialog.setIcon(R.drawable.ok); + mProgressDialog.setCancelable(false); + mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); + mProgressDialog.show(); + + AsyncTask taskDownloadFile = new AsyncTask() { + + @Override + protected Object doInBackground(Object... arg0) { + + + try { + + ConexaoWebServer web = new ConexaoWebServer(TabsActivity.this); + + Cep cepEnvio = null; + Logradouro logradouroEnvio = null; + LogradouroCep logradouroCepEnvio = null; + + String selectionCep = Ceps.CODIGO + "=? "; + + String[] selectionArgsCep = new String[] { + String.valueOf(imovAtlzCad.getCodigoCep()) + }; + + List listaCep = Fachada.getInstance().pesquisarLista(Cep.class,selectionCep, selectionArgsCep, null); + + //Valida se os ceps ja foram enviados. + if ( listaCep != null && !listaCep.isEmpty() ) { + + Iterator iteratorCep = listaCep.iterator(); + + while( iteratorCep.hasNext() ) { + Cep cep = (Cep) iteratorCep.next(); + + if ( cep.getCodigoUnico() == null || cep.getCodigoUnico().equals("") ) { + Long dateTime = new Date().getTime(); + cep.setCodigoUnico(dateTime.toString()); + Fachada.getInstance().update(cep); + } + cepEnvio = cep; + } + } + + String selectionLogradouro = Logradouros.INDICADORNOVO+ "=? AND " +Logradouros.ID + " =? "; + + String[] selectionArgsLogradouro = new String[] { + String.valueOf(ConstantesSistema.SIM), + imovAtlzCad.getLogradouro().getId().toString() + }; + List listaLogradouro = Fachada.getInstance().pesquisarLista(Logradouro.class, selectionLogradouro, selectionArgsLogradouro, null); + + //Valida se os logradouros ja foram enviados. + if (listaLogradouro != null && !listaLogradouro.isEmpty() ) { + + Iterator iteratorLogradouro = listaLogradouro.iterator(); + + while( iteratorLogradouro.hasNext() ) { + logradouroEnvio = (Logradouro) iteratorLogradouro.next(); + } + } + + if ( cepEnvio != null && logradouroEnvio != null ) { + String selectionLogradouroCep = LogradouroCeps.INDICADORNOVO+ "=? AND " +LogradouroCeps.CEP + " =? AND " + +LogradouroCeps.LOGRADOURO + " =? "; + + String[] selectionArgsLogradouroCep = new String[] { + String.valueOf(ConstantesSistema.SIM), + cepEnvio.getId().toString(), + logradouroEnvio.getId().toString() + }; + List listaLogradouroCep = Fachada.getInstance().pesquisarLista(LogradouroCep.class, selectionLogradouroCep, selectionArgsLogradouroCep, null); + + //Valida se os logradouros ja foram enviados. + if (listaLogradouroCep != null && !listaLogradouroCep.isEmpty() ) { + + Iterator iteratorLogradouroCep = listaLogradouroCep.iterator(); + + while( iteratorLogradouroCep.hasNext() ) { + logradouroCepEnvio = (LogradouroCep) iteratorLogradouroCep.next(); + } + } + } + + //Envia os dados do endereco do imovel. + boolean sucesso = web.enviarDadosEndereco(cepEnvio, logradouroEnvio, sistemaParametros, logradouroCepEnvio); + + if ( sucesso ) { + + try { + + if ( cepEnvio != null ) { + cepEnvio.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + Fachada.getInstance().update(cepEnvio); + } + + if ( logradouroCepEnvio != null ) { + logradouroCepEnvio.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + Fachada.getInstance().update(logradouroCepEnvio); + } + + if ( logradouroEnvio != null ) { + logradouroEnvio.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + Fachada.getInstance().update(logradouroEnvio); + } + + + + //Pesquisa Cliente + String selection = ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgs = new String[] { + imovAtlzCad.getId().toString() + }; + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + clienteAtlzCadastral = (ClienteAtlzCadastral) Fachada.getInstance().pesquisar(clienteAtlzCadastral, selection, selectionArgs); + + //CLIENTE FONE + List listaClienteFoneAtlzCadastral = null; + if ( clienteAtlzCadastral != null && clienteAtlzCadastral.getId() != null ) { + + //Pesquisa Logradouro + String selectionFone = ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID + "=?"; + + String[] selectionArgsFone = new String[] { + clienteAtlzCadastral.getId().toString() + }; + + listaClienteFoneAtlzCadastral = (List) Fachada.getInstance().pesquisarLista(ClienteFoneAtlzCad.class, selectionFone, selectionArgsFone, null); + } + + //Registro do tipo 08 - Hidrometro Atlz Cadastral + String selectionHidrometro = HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsHidrometro = new String[] { + imovAtlzCad.getId().toString() + }; + + List listaHidrometroInstHistAtlzCad = (List) Fachada.getInstance(). + pesquisarLista(HidrometroInstHistAtlzCad.class, selectionHidrometro, selectionArgsHidrometro, null); + + //Registro do tipo 09 - Subcategoria Atlz Cadastral + String selectionSub = ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsSub = new String[] { + imovAtlzCad.getId().toString() + }; + + + List listaImovelSubCategAtlzCad = (List) Fachada.getInstance() + .pesquisarLista(ImovelSubCategAtlzCad.class, selectionSub, selectionArgsSub, null); + + //Registro do tipo 10 - Imovel ocorrencia + String selectionOcorrencia = ImovelOcorrenciaColunas.IMOVELATLZCAD_ID + "=?"; + + String[] selectionArgsOcorrencia = new String[] { + imovAtlzCad.getId().toString() + }; + + List listaImovelOcorrencia = (List) Fachada.getInstance() + .pesquisarLista(ImovelOcorrencia.class, selectionOcorrencia, selectionArgsOcorrencia, null); + + //Verifica se o arquivo no est finalizado para transmitir os dados + Integer verificador = web.arquivoLiberadoParaTransmissao(sistemaParametros.getIdComando()); + + if ( verificador.equals(Integer.valueOf(1)) ) { + + boolean sucess = web.enviarDadosImovel(imovAtlzCad, clienteAtlzCadastral, listaClienteFoneAtlzCadastral, listaHidrometroInstHistAtlzCad, + listaImovelSubCategAtlzCad, listaImovelOcorrencia); + + if (sucess) { + + imovAtlzCad.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + + try { + Fachada.getInstance().update(imovAtlzCad); + } catch (FachadaException fe) { + fe.printStackTrace(); + } + + List listaFoto = null; + + String selectionPhoto = FotoColunas.INDICADORTRANSMITIDO + "=? AND " + FotoColunas.IMOVELATLZCAD_ID +"=?"; + + String[] selectionPhotoArgs = new String[] { + String.valueOf(ConstantesSistema.INDICADOR_NAO_TRANSMITIDO), + String.valueOf(imovAtlzCad.getId()) + }; + + listaFoto = Fachada.getInstance().pesquisarLista(Foto.class, selectionPhoto, selectionPhotoArgs, FotoColunas.ID); + + Iterator iteratorListaFoto = listaFoto.iterator(); + while (iteratorListaFoto.hasNext()) { + + Foto foto = (Foto) iteratorListaFoto.next(); + + File imageFile = new File(foto.getFotoPath()); + String nomeFoto = imageFile.getName(); + ArrayList dados = Util.split_(nomeFoto); + + PhotoConnection connection = new PhotoConnection(); + + connection.execute(imageFile, dados.get(0), foto.getFotoTipo(), foto); + } + } + } else { + if ( verificador.equals(Integer.valueOf(2)) ){ + Util.exibirMensagemErro(TabsActivity.this, "O Arquivo j foi finalizado"); + } + } + + + } catch (FachadaException fe) { + fe.printStackTrace(); + } + } + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage()); + } + + //Verifica se o app GEO chamou a funcionalidade de atualizacao do imvel - necessario para enviar o retorno para o app do GEO. + if ( indicadorIntegracao ) { + + //Chama a aplicacao do GEO. + Intent retornoIntegracaoCompesa = new Intent("exibirmapa"); + + //Monta o retorno que vai ser enviado para app GEO. + if ( imovAtlzCad.getImovelId() != null ) { + //Caso seja imovel ja cadastrado na base do gsan envia o retorno = 1, indicando que a operacao foi efetuada com sucesso. + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_OPERACAO_INTEGRACAO, String.valueOf(ConstantesSistema.SIM)); + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_ID_UNICO, imovAtlzCad.getIntegracaoID()); + } else { + //caso o imovel nao seja cadastrado no gsan, retorna um identificador (inscricao + timestamp). + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_OPERACAO_INTEGRACAO, String.valueOf(ConstantesSistema.SIM)); + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_ID_UNICO, imovAtlzCad.getIntegracaoID()); + } + //Faz com que nao carregue os dados das abas. + execute = false; + //apaga os atributos. +// Util.removerAtributosTabsActivity(); + + startActivity(retornoIntegracaoCompesa); + finish(); + } else { + + Intent itRoteiro = new Intent(TabsActivity.this, RoteiroActivity.class); + startActivity(itRoteiro); + finish(); + } + + + concluirAtualizacao = false; + indicadorExibirMensagemErro = true; + TabsActivity.indicadorAtualizacaoCancelada = true; + + return true; + } + }; + + taskDownloadFile.execute(); + + + } else { + Util.exibirMensagemErro(TabsActivity.this, mensagemErro); + } + + } catch (ControladorException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } catch (RepositorioException e) { + e.printStackTrace(); + } + + + + + } else { + + String matricula = null; + + if(getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_MATRICULA) != null){ + Util.removerAtributosTabsActivity(); + } + + if ( imovel == null ) { + + //Caso o sistema seja integrado com o GEO + if ( getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_MATRICULA) != null ) { + matricula = (String) getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_MATRICULA); + + getIntent().removeExtra(ConstantesSistema.INTEGRACAO_MATRICULA); + + if ( matricula != null && !matricula.equals("") ) { + + Util.removerAtributosTabsActivity(); + indicadorIntegracao= true; + + String selection = ImovelAtlzCadastralColunas.IMOVEL_ID + "=?"; + String[] selectionArgs = new String[] { + matricula + }; + + imovel = new ImovelAtlzCadastral(); + imovel = (ImovelAtlzCadastral) Fachada.getInstance().pesquisar(imovel,selection, selectionArgs ); + + if ( imovel != null && imovel.getIndicadorTransmitido() != null && + imovel.getIndicadorTransmitido().toString().equals(String.valueOf(ConstantesSistema.INDICADOR_TRANSMITIDO)) ) { + + new AlertDialog.Builder(TabsActivity.this).setTitle("Imvel Atualizado") + .setMessage("O imvel selecionado j foi transmitido.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + //Chama a aplicacao do GEO. + Intent retornoIntegracaoCompesa = new Intent("exibirmapa"); + //Chama a aplicacao do GEO. INFORMANDO FALHA NA ATUALIZACAO. + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_OPERACAO_INTEGRACAO, String.valueOf(ConstantesSistema.NAO)); + startActivity(retornoIntegracaoCompesa); + finish(); + } + }) + .show(); + TabsActivity.indicadorAtualizacaoCancelada = true; + } + } + //Caso seja imvel novo integrado com o GEO. + } else if ( getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_ID_UNICO) != null ) { + indicadorIntegracao= true; + String matriculaNovoImovel = (String) getIntent().getSerializableExtra(ConstantesSistema.INTEGRACAO_ID_UNICO); + if ( matriculaNovoImovel != null && !matriculaNovoImovel.equals("") ) { + Util.removerAtributosTabsActivity(); + + String selection = ImovelAtlzCadastralColunas.INTEGRACAO + "=?"; + String[] selectionArgs = new String[] { + matriculaNovoImovel + }; + + imovel = new ImovelAtlzCadastral(); + imovel = (ImovelAtlzCadastral) Fachada.getInstance().pesquisar(imovel,selection, selectionArgs ); + + if ( imovel != null && imovel.getIndicadorTransmitido() != null && + imovel.getIndicadorTransmitido().toString().equals(String.valueOf(ConstantesSistema.INDICADOR_TRANSMITIDO)) ) { + + new AlertDialog.Builder(TabsActivity.this).setTitle("Imvel Atualizado") + .setMessage("O imvel selecionado j foi transmitido.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + //Chama a aplicacao do GEO. + Intent retornoIntegracaoCompesa = new Intent("exibirmapa"); + //Chama a aplicacao do GEO. INFORMANDO FALHA NA ATUALIZACAO. + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_OPERACAO_INTEGRACAO, String.valueOf(ConstantesSistema.NAO)); + startActivity(retornoIntegracaoCompesa); + finish(); + } + }) + + .show(); + TabsActivity.indicadorAtualizacaoCancelada = true; + } + } + //Caso seja selecionado a partir da tela de roteiro + } else if ( getIntent().getSerializableExtra(ConstantesSistema.IMOVEL) != null ) { + Util.removerAtributosTabsActivity(); + imovel = (ImovelAtlzCadastral) getIntent().getSerializableExtra(ConstantesSistema.IMOVEL); + }else if(getIntent().getSerializableExtra("indicadorNovo") != null){ + //Caso seja imovel novo chamado da tela de roteiro + Util.removerAtributosTabsActivity(); + } else { + //Caso seja imovel novo integrado com o GEO + Util.removerAtributosTabsActivity(); + indicadorIntegracao= true; + + } + + sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) fachada.pesquisar(sistemaParametros, null, null); + + if ( imovel != null && imovel.getId() != null ) { + //Pesquisa Cliente + String selection = ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(imovel.getId()) + }; + + cliente = new ClienteAtlzCadastral(); + cliente = (ClienteAtlzCadastral) Fachada.getInstance().pesquisar(cliente,selection, selectionArgs ); + + //Pesquisa Hidrometro + selection = HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + selection = selection + " AND " + HidrometroInstHistAtlzCadColunas.MEDICAOTIPO_ID + "=?"; + + selectionArgs = new String[] { + String.valueOf(imovel.getId()), + "1" //Agua + }; + + //verifica se ja existe hidrometro na tabela HidrometroInstHistAtlzCad + hidrometroInstalacaoHist = new HidrometroInstHistAtlzCad(); + hidrometroInstalacaoHist = (HidrometroInstHistAtlzCad) fachada.pesquisar(hidrometroInstalacaoHist, selection, selectionArgs); + hidrometroInstalacaoHistInicial = hidrometroInstalacaoHist.clone(); + } else { + //novo imvel + imovel = new ImovelAtlzCadastral(); + hidrometroInstalacaoHist = new HidrometroInstHistAtlzCad(); + } + + if(imovel != null && imovel.getImovelId() != null && !imovel.getImovelId().equals("")){ + //Pesquisa Cliente + String selection = ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID + "=?"; + String[] selectionArgs = new String[] { + String.valueOf(imovel.getId()) + }; + + cliente = new ClienteAtlzCadastral(); + cliente = (ClienteAtlzCadastral) Fachada.getInstance().pesquisar(cliente,selection, selectionArgs ); + + if(cliente != null && cliente.getId() != null && !cliente.getId().equals("")){ + //Pesquisa Cliente Tipo + selection = ClienteTipoColunas.ID + "=?"; + selectionArgs = new String[] { String.valueOf(cliente.getClienteTipo().getId()) }; + + ClienteTipo clienteTipo = new ClienteTipo(); + clienteTipo = (ClienteTipo) Fachada.getInstance().pesquisar(clienteTipo, selection, selectionArgs); + + cliente.setClienteTipo(clienteTipo); + + //Pesquisa Cliente Fone + selection = ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID + "=?"; + + selectionArgs = new String[] { + String.valueOf(cliente.getId()), + }; + + colecaoClienteFone = (ArrayList) fachada.pesquisarLista(ClienteFoneAtlzCad.class, selection, selectionArgs, null); + + colecaoClienteFoneIncial = (ArrayList) colecaoClienteFone.clone(); + } + + //Pesquisa Hidrometro + selection = HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + selection = selection + " AND " + HidrometroInstHistAtlzCadColunas.MEDICAOTIPO_ID + "=?"; + + selectionArgs = new String[] { + String.valueOf(imovel.getId()), + "1" //Agua + }; + + //verifica se ja existe hidrometro na tabela HidrometroInstHistAtlzCad + hidrometroInstalacaoHist = new HidrometroInstHistAtlzCad(); + hidrometroInstalacaoHist = (HidrometroInstHistAtlzCad) fachada.pesquisar(hidrometroInstalacaoHist, selection, selectionArgs); + + if(hidrometroInstalacaoHist.getId() == null){ + hidrometroInstalacaoHist = null; + }else{ + hidrometroInstalacaoHistInicial = hidrometroInstalacaoHist.clone(); + } + + //Pesquisar Foto Frente da Casa + fotoFrenteDaCasa = Util.pesquisarFotoBanco(imovel.getId(), ConstantesSistema.FOTO_TIPO_FRENTE_DE_CASA); + if(fotoFrenteDaCasa != null){ + fotoFrenteDaCasaInicial = fotoFrenteDaCasa.clone(); + } + + //Pesquisar Foto Hidrometro + fotoHidrometro = Util.pesquisarFotoBanco(imovel.getId(), ConstantesSistema.FOTO_TIPO_HIDROMETRO); + if(fotoHidrometro != null){ + fotoHidrometroInicial = fotoHidrometro.clone(); + } + + //Pesquisar ImovelOcorrencia Atualizao Cadastral + selection = ImovelOcorrenciaColunas.IMOVELATLZCAD_ID + "=?"; + selectionArgs = new String[] { + String.valueOf(imovel.getId()) + }; + + colecaoImovelOcorrencia = (ArrayList) fachada.pesquisarLista(ImovelOcorrencia.class,selection, selectionArgs, null); + + colecaoImovelOcorrenciaInicial = (ArrayList) colecaoImovelOcorrencia.clone(); + + //Pesquisar SubCategoria Atualizao Cadastral + selection = ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + selectionArgs = new String[] { + String.valueOf(imovel.getId()) + }; + + colImoveisSubCategoria = (ArrayList) fachada.pesquisarLista(ImovelSubCategAtlzCad.class,selection, selectionArgs, null); + + colImoveisSubCategoriaInicial = (ArrayList) colImoveisSubCategoria.clone(); + + }else{ + //Caso seja uma 'matricula nova' inserida manualmente + if(matricula != null && !matricula.equals("")){ + String digito = matricula.substring(matricula.length() - 1, matricula.length()); + String numero = matricula.substring(0, matricula.length() - 1); + if(Util.obterDigitoVerificadorModulo11(numero).equals(Integer.parseInt(digito)) + || Util.obterDigitoVerificadorAntigo(numero).equals(Integer.parseInt(digito))){ + imovel.setImovelId(Integer.parseInt(matricula)); + imovel.setIndicadorImovelNovoComMatricula(ConstantesSistema.SIM); + }else{ + new AlertDialog.Builder(TabsActivity.this).setTitle("Matrcula Invlida") + .setMessage("A matrcula informada est invlida.") + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton("Ok", + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + + //Chama a aplicacao do GEO. + Intent retornoIntegracaoCompesa = new Intent("exibirmapa"); + //Chama a aplicacao do GEO. INFORMANDO FALHA NA ATUALIZACAO. + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_OPERACAO_INTEGRACAO, String.valueOf(ConstantesSistema.NAO)); + startActivity(retornoIntegracaoCompesa); + finish(); + } + }) + + .show(); + TabsActivity.indicadorAtualizacaoCancelada = true; + } + } + } + } + + imovelInicial = imovel.clone(); + } + } catch (FachadaException fe) { + Log.e(ConstantesSistema.LOG_TAG, fe.getMessage() + " - " + fe.getCause()); + } catch (CloneNotSupportedException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + + if (execute){ + // construct the tabhost + setContentView(R.layout.tabs_activity); + Fachada.setContext(this); + + // Para o teclado no aparecer ao entrar na tela + getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN); + + setupTabHost(); + + exibirAbas(); + + setUpWidgets(); + + atualizarPosicoes(); + + } + } + + + private void atualizarPosicoes() { + totalImoveis = (TextView) findViewById(R.id.total); + posicao = (TextView) findViewById(R.id.posicao); + + if(imovel!=null && imovel.getPosicao() != null ){ + + posicao.setText(imovel.getPosicao()+"/"); + + totalImoveis.setText( sistemaParametros.getQuantidadeImovel() ); + +// anterior.setVisibility(View.VISIBLE); +// proximo.setVisibility(View.VISIBLE); + + } else { + posicao.setText("NOVO IMVEL"); +// anterior.setVisibility(View.INVISIBLE); +// proximo.setVisibility(View.INVISIBLE); + } + } + + private void exibirAbas() { + + Intent itLocalidade = new Intent(this, LocalidadeAbaActivity.class); + novaAba(new TextView(this), getString(R.string.aba_localidade), itLocalidade); + + Intent itEndereco = new Intent(this, EnderecoAbaActivity.class); + novaAba(new TextView(this), getString(R.string.title_activity_endereco_aba), itEndereco); + + Intent itCliente = new Intent(this, ClienteAbaActivity.class); + novaAba(new TextView(this), getString(R.string.title_activity_endereco_cliente), itCliente); + + Intent itImovel = new Intent(this, ImovelAbaActivity.class); + novaAba(new TextView(this), getString(R.string.title_activity_imovel) , itImovel); + + Intent itLigacao = new Intent(this, LigacaoAbaActivity.class); + novaAba(new TextView(this), getString(R.string.title_activity_ligacao_aba), itLigacao); + + Intent itFotos = new Intent(this, FotosAbaActivity.class); + novaAba(new TextView(this), getString(R.string.title_activity_fotos_aba), itFotos); + + mTabHost.setCurrentTabByTag(getString(R.string.aba_localidade)); + + + mTabHost.setOnTabChangedListener(this); + + } + + private void novaAba(final View view, final String tag, Intent it) { + + View tabview = createTabView(mTabHost.getContext(), tag); + TabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview).setContent(it); {} ; + mTabHost.addTab(setContent); + } + + private void setUpWidgets() { + totalImoveis = (TextView) findViewById(R.id.total); + posicao = (TextView) findViewById(R.id.posicao); + + Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.bgproximo); + @SuppressWarnings("deprecation") + BitmapDrawable bitmapDrawable = new BitmapDrawable(bmp); + bitmapDrawable.setTileModeXY(Shader.TileMode.REPEAT, Shader.TileMode.REPEAT); + LinearLayout layout = (LinearLayout) findViewById(R.id.barra); + layout.setBackgroundDrawable(bitmapDrawable); + + + btnAtualizar = (Button) findViewById(R.id.btnAtualizar); + + btnAtualizar.setOnClickListener(new OnClickListener() { + + public void onClick(View v) { + indicadorExibirMensagemErro = false; + concluirAtualizacao = true; + Intent i = getIntent(); + startActivity(i); + finish(); + } + }); + + btnCancelar = (Button) findViewById(R.id.btnCancelar); + + btnCancelar.setOnClickListener(new OnClickListener() { + + public void onClick(View v) { + + if ( indicadorIntegracao ) { + + //Chama a aplicacao do GEO. INFORMANDO FALHA NA ATUALIZACAO. + Intent retornoIntegracaoCompesa = new Intent("exibirmapa"); + retornoIntegracaoCompesa.putExtra(ConstantesSistema.INTEGRACAO_OPERACAO_INTEGRACAO, String.valueOf(ConstantesSistema.NAO)); + startActivity(retornoIntegracaoCompesa); + finish(); +// Util.removerAtributosTabsActivity(); + + } else { + //Retorna para a tela de roteiro + Intent intent = new Intent(TabsActivity.this, RoteiroActivity.class); + startActivity(intent); + finish(); + } + + TabsActivity.indicadorAtualizacaoCancelada = true; + TabsActivity.indicadorExibirMensagemErro = false; + } + }); + } + + public void chamaProximo(Integer posicao,boolean proximo, String ultimoRegistro){ + iniciarProximaIntent(posicao, proximo, ultimoRegistro); + } + + + + public void iniciarProximaIntent(Integer posicao, boolean proximo, String ultimoRegistro){ + + + ImovelAtlzCadastral imovelProximo = null; + + boolean aux = true; + + //Pecorre a lista de imvel para buscar o anterior/proximo imovel + while ( aux ) { + + + + //Caso nao seja imovel novo. + if ( posicao != null ) { + + //Botao proximo + if( proximo ) { + + //Caso seja ultimo da uma volta + if ( posicao.toString().equals(ultimoRegistro) ) { + posicao = 1; + } else { + posicao = posicao + 1; + + } + + } else { + //botao anterior + if ( posicao == 1 ) { + //caso seja o primeiro chama o ultimo + posicao = Integer.valueOf(ultimoRegistro); + } else { + posicao = posicao - 1; + } + } + + } + + + + try { + imovelProximo = Fachada.getInstance().buscarImovelPosicao(posicao); + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG,e.getMessage()); + e.printStackTrace(); + } + + if ( imovelProximo.getIndicadorFinalizado() != ConstantesSistema.FINALIZADO ) { + aux = false; + break; + } + + } + + indicadorExibirMensagemErro = false; + carregarImovel = true; + Intent i = getIntent(); + i.putExtra(ConstantesSistema.IMOVEL, imovelProximo); + startActivity(i); + finish(); + + if(proximo){ + overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left); + }else{ + overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_right); + } + } + + + private static View createTabView(final Context context, final String text) { + View view = LayoutInflater.from(context).inflate(R.layout.tabs_bg, null); + TextView tv = (TextView) view.findViewById(R.id.tabsText); + tv.setText(text); + return view; + } + + //Verifica se a matricula inserida e valida + private boolean validarMatriculaImovel(String matricula){ + boolean resultado = false; + String digito = matricula.substring(matricula.length() - 1, matricula.length()); + String numero = matricula.substring(0, matricula.length() - 1); + + if(Integer.parseInt(matricula) > Integer.parseInt("75999925")){ + resultado = Util.obterDigitoVerificadorModulo11(numero).equals(Integer.parseInt(digito)); + }else{ + resultado = Util.obterDigitoVerificadorAntigo(numero).equals(Integer.parseInt(digito)); + } + + return resultado; + } + + @Override + public void onBackPressed() { + } + + public void onTabChanged(String tabId) { + + } + + public View createTabContent(String tag) { + + return null; + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/gui/VersaoArquivoErradaActivity.java b/atualizacao-cadastral-master/src/com/br/gsanac/gui/VersaoArquivoErradaActivity.java new file mode 100644 index 0000000..33af65d --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/gui/VersaoArquivoErradaActivity.java @@ -0,0 +1,55 @@ +package com.br.gsanac.gui; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; + +import com.br.gsanac.R; + +/** + * @author Arthur Carvalho + * @since 09/09/2011 + */ +public class VersaoArquivoErradaActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + setContentView(R.layout.versao_errada); + + new AlertDialog.Builder(VersaoArquivoErradaActivity.this).setTitle(getString(R.string.str_alert_versao_desatualizada)) + .setMessage(R.string.str_error_aborted) + .setIcon(R.drawable.ok) + .setCancelable(false) + .setNeutralButton(getString(R.string.sim), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + Intent it = new Intent(VersaoArquivoErradaActivity.this, + LoginActivity.class); + startActivity(it); + finish(); + } + }) + .show(); + } + + @Override + public void onBackPressed() { + Intent it = new Intent(VersaoArquivoErradaActivity.this, + LoginActivity.class); + startActivity(it); + finish(); + } + + @Override + public boolean onSearchRequested() { + finish(); + return false; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/IRepositorioBase.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/IRepositorioBase.java new file mode 100644 index 0000000..d27407a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/IRepositorioBase.java @@ -0,0 +1,152 @@ +package com.br.gsanac.repositorio; + +import java.util.List; + +import android.database.Cursor; + +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.exception.RepositorioException; + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + * @param > + */ +public interface IRepositorioBase { + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + * @param t + * @param selection + * @param selectionArgs + * @return + * @throws RepositorioException + */ + public EntidadeBase pesquisar(T t, String selection, String[] selectionArgs) throws RepositorioException; + + /** + * + * @author Arthur Carvalho + * @since 06/12/2012 + * @param selection + * @param selectionArgs + * @param orderBy + * @return + * @throws RepositorioException + */ + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException; + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param idField + * @param description + * @param tablename + * @return + * @throws RepositorioException + */ + public Cursor getCursor(String idField, String description, String tablename) throws RepositorioException; + + /** + * + * @author Anderson Cabral + * @date 16/01/2013 + * + * @param idField + * @param descriptionField + * @param tablename + * @param where + * @return + * @throws RepositorioException + */ + public Cursor getCursor(String idField, String descriptionField, String tablename, String where) throws RepositorioException; + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param t + * @throws RepositorioException + */ + public long inserir(T t) throws RepositorioException; + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param t + * @throws RepositorioException + */ + public void atualizar(T t) throws RepositorioException; + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param t + * @throws RepositorioException + */ + public void remover(T t) throws RepositorioException; + + /** + * + * @author Anderson Cabral + * @date 16/01/2013 + * + * @param idField + * @param descriptionField + * @param tablename + * @param where + * @return + * @throws RepositorioException + */ + public Cursor getCursorOrderBy(String idField, String descriptionField, String tablename, String orderBy) throws RepositorioException; + + /** + * + * @author Anderson Cabral + * @date 26/06/2013 + * + * @param idField + * @param descriptionField + * @param tablename + * @param where + * @param orderBy + * @return + * @throws RepositorioException + */ + public Cursor getCursorOrderBy(String idField, String descriptionField, String tablename, String where, String orderBy) throws RepositorioException; + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param idField + * @param description + * @param tablename + * @return + * @throws RepositorioException + */ + public Cursor getCursorLogradouro(String where) throws RepositorioException; + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + public Cursor getCursorListaLogradouro() throws RepositorioException; + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + + public Cursor getCursorListaLogradouroCep() throws RepositorioException; + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBairro.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBairro.java new file mode 100644 index 0000000..66a534d --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBairro.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Bairro; +import com.br.gsanac.entidades.Bairro.Bairros; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioBairro extends RepositorioBase { + + private static RepositorioBairro instance; + + public RepositorioBairro() { + super(); + } + + public static RepositorioBairro getInstance() { + if (instance == null) { + instance = new RepositorioBairro(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public Bairro pesquisar(Bairro entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Bairro bairro = new Bairro(); + + if (selection == null || selection.trim().equals("")) { + selection = Bairros.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(bairro.getNomeTabela(), + Bairro.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + bairro = bairro.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return bairro; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaBairro = null; + Bairro bairro = new Bairro(); + try { + listaBairro = new ArrayList(); + + cursor = super.getDb().query(bairro.getNomeTabela(), + Bairro.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaBairro = bairro.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaBairro; + } + + @Override + public long inserir(Bairro ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Bairro ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = Bairros.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Bairro ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = Bairros.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBase.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBase.java new file mode 100644 index 0000000..8ac43a9 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioBase.java @@ -0,0 +1,162 @@ +package com.br.gsanac.repositorio; + +import android.content.Context; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import com.br.gsanac.conexao.DBConnection; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * @param + */ +public abstract class RepositorioBase implements IRepositorioBase { + + protected static Context context; + + private SQLiteDatabase db; + + public RepositorioBase() { +// criarConexao(); + } + + public void criarConexao(){ + DBConnection dbConnection = new DBConnection(context); + this.db = dbConnection.getDb(); + } + + public static void setContext(Context c) { + context = c; + } + + public static Context getContext() { + return context; + } + + public SQLiteDatabase getDb() { + if(db == null || !db.isOpen()){ + criarConexao(); + } + + return db; + } + + public void setDb(SQLiteDatabase db) { + this.db = db; + } + + @Override + public Cursor getCursor(String idField, String descriptionField, String tablename) throws RepositorioException { + + String sql = "SELECT " + idField + " AS _id, " + descriptionField + " AS " + ConstantesSistema.COLUMN_DESCRIPTION_ALIAS + + " FROM " + tablename + " ORDER BY " + descriptionField; + + return getDb().rawQuery(sql, null); + } + + @Override + public Cursor getCursor(String idField, String descriptionField, String tablename, String where) throws RepositorioException { + + String sql = "SELECT " + idField + " AS _id, " + descriptionField + " AS " + ConstantesSistema.COLUMN_DESCRIPTION_ALIAS + + " FROM " + tablename; + + if(where != null){ + sql += " WHERE " + where + " ORDER BY " + descriptionField; + }else{ + sql += " ORDER BY " + descriptionField; + } + + return getDb().rawQuery(sql, null); + } + + @Override + public Cursor getCursorOrderBy(String idField, String descriptionField, String tablename, String orderBy) throws RepositorioException { + + String sql = "SELECT " + idField + " AS _id, " + descriptionField + " AS " + ConstantesSistema.COLUMN_DESCRIPTION_ALIAS + + " FROM " + tablename + " ORDER BY " + orderBy; + + return getDb().rawQuery(sql, null); + } + + @Override + public Cursor getCursorOrderBy(String idField, String descriptionField, String tablename, String where, String orderBy) throws RepositorioException { + + String sql = "SELECT " + idField + " AS _id, " + descriptionField + " AS " + ConstantesSistema.COLUMN_DESCRIPTION_ALIAS + + " FROM " + tablename; + + if(where != null){ + sql += " WHERE " + where; + } + + if(orderBy != null){ + sql += " ORDER BY " + orderBy; + } + + return getDb().rawQuery(sql, null); + } + + @Override + public Cursor getCursorLogradouro(String where) throws RepositorioException { + + String sql = "SELECT LOGR_ID AS _id, LGTP_DSLOGRADOUROTIPO AS "+ ConstantesSistema.COLUMN_TIPO_ALIAS + ", " + "LGTT_DSLOGRADOUROTITULO AS "+ ConstantesSistema.COLUMN_TITULO_ALIAS + ", " + + " LOGR_NMLOGRADOURO AS "+ ConstantesSistema.COLUMN_LOGRADOURO_ALIAS + ", " + + " LGTP_DSLOGRADOUROTIPO || ' ' || CASE WHEN (LGTT_DSLOGRADOUROTITULO is not null) THEN LGTT_DSLOGRADOUROTITULO || ' ' ELSE '' END || LOGR_NMLOGRADOURO as " + ConstantesSistema.COLUMN_DESC_FORMATADA_ALIAS + + " FROM LOGRADOURO logra " + + " INNER join LOGRADOURO_TIPO tipo on logra.LGTP_ID = tipo.LGTP_ID " + + " LEFT join LOGRADOURO_TITULO titulo on titulo.LGTT_ID = logra.LGTT_ID " ; + + if ( where != null && !where.equals("") ) { + sql += where; + } + + sql += " ORDER BY LGTP_DSLOGRADOUROTIPO , LGTT_DSLOGRADOUROTITULO , LOGR_NMLOGRADOURO" ; + + return getDb().rawQuery(sql, null); + } + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + public Cursor getCursorListaLogradouro() throws RepositorioException{ + + String sql = " select * from logradouro logra " + +" inner join imovel_atlz_cadastral imov on imov.logr_id = logra.logr_id" + +" where logra.logr_icnovo = " + ConstantesSistema.SIM + +" and logra.logr_ictransmitido = " + ConstantesSistema.NAO; + + return getDb().rawQuery(sql, null); + + } + + /** + * @author Flavio Ferreira + * @since 27/12/2013 + */ + + public Cursor getCursorListaLogradouroCep() throws RepositorioException{ + + String sql = " select * from logradouro_cep logracep" + +" inner join imovel_atlz_cadastral imov on imov.lgcp_id = logracep.lgcp_id " + +" where logracep.lgcp_icnovo = " + ConstantesSistema.SIM + +" and logracep.lgcp_ictransmitido = " + ConstantesSistema.NAO; + + return getDb().rawQuery(sql, null); + } + + /** + * @author Arthur Carvalho + * @since 06/12/2012 + */ + public void closeDb() { + if (this.db != null) { + this.db.close(); + } + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCadastroOcorrencia.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCadastroOcorrencia.java new file mode 100644 index 0000000..cbe4bf0 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCadastroOcorrencia.java @@ -0,0 +1,179 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 13/12/12 + */ +public class RepositorioCadastroOcorrencia extends RepositorioBase { + + private static RepositorioCadastroOcorrencia instance; + + public RepositorioCadastroOcorrencia() { + super(); + } + + public static RepositorioCadastroOcorrencia getInstance() { + if (instance == null) { + instance = new RepositorioCadastroOcorrencia(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(CadastroOcorrencia entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + + if (selection == null || selection.trim().equals("")) { + selection = CadastroOcorrenciaColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(cadastroOcorrencia.getNomeTabela(), + CadastroOcorrencia.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + cadastroOcorrencia = cadastroOcorrencia.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + + } + + return cadastroOcorrencia; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaCadastroOcorrencia = null; + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + try { + listaCadastroOcorrencia = new ArrayList(); + + cursor = super.getDb().query(cadastroOcorrencia.getNomeTabela(), + CadastroOcorrencia.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaCadastroOcorrencia = cadastroOcorrencia.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + + } + + return listaCadastroOcorrencia; + } + + @Override + public long inserir(CadastroOcorrencia cadastroOcorrencia) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = cadastroOcorrencia.carregarValues(); + + try { + return super.getDb().insert(cadastroOcorrencia.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + + } + + @Override + public void atualizar(CadastroOcorrencia cadastroOcorrencia) throws RepositorioException { + ContentValues values = cadastroOcorrencia.carregarValues(); + + String _id = String.valueOf(cadastroOcorrencia.getId()); + + String where = CadastroOcorrenciaColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(cadastroOcorrencia.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } + + @Override + public void remover(CadastroOcorrencia cadastroOcorrencia) throws RepositorioException { + String _id = String.valueOf(cadastroOcorrencia.getId()); + + String where = CadastroOcorrenciaColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(cadastroOcorrencia.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCategoria.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCategoria.java new file mode 100644 index 0000000..2a7077c --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCategoria.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Categoria; +import com.br.gsanac.entidades.Categoria.CategoriaColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioCategoria extends RepositorioBase { + + private static RepositorioCategoria instance; + + public RepositorioCategoria() { + super(); + } + + public static RepositorioCategoria getInstance() { + if (instance == null) { + instance = new RepositorioCategoria(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(Categoria entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Categoria categoria = new Categoria(); + + if (selection == null || selection.trim().equals("")) { + selection = CategoriaColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(categoria.getNomeTabela(), + Categoria.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + categoria = categoria.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return categoria; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaCategoria = null; + Categoria categoria = new Categoria(); + try { + listaCategoria = new ArrayList(); + + cursor = super.getDb().query(categoria.getNomeTabela(), + Categoria.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaCategoria = categoria.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaCategoria; + } + + @Override + public long inserir(Categoria categoria) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = categoria.carregarValues(); + + try { + return super.getDb().insert(categoria.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Categoria categoria) throws RepositorioException { + ContentValues values = categoria.carregarValues(); + + String _id = String.valueOf(categoria.getId()); + + String where = CategoriaColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(categoria.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Categoria categoria) throws RepositorioException { + String _id = String.valueOf(categoria.getId()); + + String where = CategoriaColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(categoria.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCep.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCep.java new file mode 100644 index 0000000..1859314 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioCep.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioCep extends RepositorioBase { + + private static RepositorioCep instance; + + public RepositorioCep() { + super(); + } + + public static RepositorioCep getInstance() { + if (instance == null) { + instance = new RepositorioCep(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public Cep pesquisar(Cep entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Cep cep = new Cep(); + +// if (selection == null || selection.trim().equals("")) { +// selection = Ceps.ID + "=?"; +// } +// +// if (selectionArgs == null) { +// selectionArgs = new String[] { +// String.valueOf(entity.getId()) +// }; +// } + + try { + cursor = super.getDb().query(cep.getNomeTabela(), + Cep.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + cep = cep.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return cep; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaCep = null; + Cep cep = new Cep(); + try { + listaCep = new ArrayList(); + + cursor = super.getDb().query(cep.getNomeTabela(), + Cep.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaCep = cep.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaCep; + } + + @Override + public long inserir(Cep ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Cep ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = Ceps.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Cep ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = Ceps.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteAtlzCadastral.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteAtlzCadastral.java new file mode 100644 index 0000000..356c3ab --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteAtlzCadastral.java @@ -0,0 +1,197 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteAtlzCadastral.ClienteAtlzCadastralColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioClienteAtlzCadastral extends RepositorioBase { + + private static RepositorioClienteAtlzCadastral instance; + + public RepositorioClienteAtlzCadastral() { + super(); + } + + public static RepositorioClienteAtlzCadastral getInstance() { + if (instance == null) { + instance = new RepositorioClienteAtlzCadastral(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ClienteAtlzCadastral entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + +// if (selection == null || selection.trim().equals("")) { +// selection = ClienteAtlzCadastralColunas.ID + "=?"; +// } +// +// if (selectionArgs == null) { +// selectionArgs = new String[] { +// String.valueOf(entity.getId()) +// }; +// } + + try { + cursor = super.getDb().query(clienteAtlzCadastral.getNomeTabela(), + ClienteAtlzCadastral.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + clienteAtlzCadastral = clienteAtlzCadastral.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return clienteAtlzCadastral; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaClienteAtlzCadastral = null; + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + try { + listaClienteAtlzCadastral = new ArrayList(); + + cursor = super.getDb().query(clienteAtlzCadastral.getNomeTabela(), + ClienteAtlzCadastral.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaClienteAtlzCadastral = clienteAtlzCadastral.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaClienteAtlzCadastral; + } + + @Override + public long inserir(ClienteAtlzCadastral clienteAtlzCadastral) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = clienteAtlzCadastral.carregarValues(); + + try { + return super.getDb().insert(clienteAtlzCadastral.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + + } + + @Override + public void atualizar(ClienteAtlzCadastral clienteAtlzCadastral) throws RepositorioException { + ContentValues values = clienteAtlzCadastral.carregarValues(); + + String _id = String.valueOf(clienteAtlzCadastral.getId()); + + String where = ClienteAtlzCadastralColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(clienteAtlzCadastral.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } + + @Override + public void remover(ClienteAtlzCadastral clienteAtlzCadastral) throws RepositorioException { + String _id = String.valueOf(clienteAtlzCadastral.getId()); + + String where = ClienteAtlzCadastralColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(clienteAtlzCadastral.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + + public void remover(String idImovelAtlzCadastral) throws RepositorioException { + + String where = ClienteAtlzCadastralColunas.IMOVELATLZCAD_ID + "=?"; + + String[] whereArgs = new String[] { + idImovelAtlzCadastral + }; + + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + + try { + super.getDb().delete(clienteAtlzCadastral.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteFoneAtlzCad.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteFoneAtlzCad.java new file mode 100644 index 0000000..3e57fc2 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteFoneAtlzCad.java @@ -0,0 +1,195 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteFoneAtlzCad.ClienteFoneAtlzCadColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioClienteFoneAtlzCad extends RepositorioBase { + + private static RepositorioClienteFoneAtlzCad instance; + + public RepositorioClienteFoneAtlzCad() { + super(); + } + + public static RepositorioClienteFoneAtlzCad getInstance() { + if (instance == null) { + instance = new RepositorioClienteFoneAtlzCad(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ClienteFoneAtlzCad entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + + if (selection == null || selection.trim().equals("")) { + selection = ClienteFoneAtlzCadColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(clienteFoneAtlzCad.getNomeTabela(), + ClienteFoneAtlzCad.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + clienteFoneAtlzCad = clienteFoneAtlzCad.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return clienteFoneAtlzCad; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaClienteFoneAtlzCad = null; + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + try { + listaClienteFoneAtlzCad = new ArrayList(); + + cursor = super.getDb().query(clienteFoneAtlzCad.getNomeTabela(), + ClienteFoneAtlzCad.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaClienteFoneAtlzCad = clienteFoneAtlzCad.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaClienteFoneAtlzCad; + } + + @Override + public long inserir(ClienteFoneAtlzCad clienteFoneAtlzCad) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = clienteFoneAtlzCad.carregarValues(); + + try { + return super.getDb().insert(clienteFoneAtlzCad.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(ClienteFoneAtlzCad clienteFoneAtlzCad) throws RepositorioException { + ContentValues values = clienteFoneAtlzCad.carregarValues(); + + String _id = String.valueOf(clienteFoneAtlzCad.getId()); + + String where = ClienteFoneAtlzCadColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(clienteFoneAtlzCad.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(ClienteFoneAtlzCad clienteFoneAtlzCad) throws RepositorioException { + String _id = String.valueOf(clienteFoneAtlzCad.getId()); + + String where = ClienteFoneAtlzCadColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(clienteFoneAtlzCad.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + + public void remover(String idClienteAtlzCadastral) throws RepositorioException { + + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + + String where = ClienteFoneAtlzCadColunas.CLIENTEATLZCAD_ID + "=?"; + + String[] whereArgs = new String[] { + idClienteAtlzCadastral + }; + + try { + super.getDb().delete(clienteFoneAtlzCad.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteTipo.java new file mode 100644 index 0000000..fad6af0 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioClienteTipo.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.ClienteTipo; +import com.br.gsanac.entidades.ClienteTipo.ClienteTipoColunas; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Davi Menezes + * @date 28/12/12 + */ +public class RepositorioClienteTipo extends RepositorioBase { + + private static RepositorioClienteTipo instance; + + public RepositorioClienteTipo() { + super(); + } + + public static RepositorioClienteTipo getInstance() { + if (instance == null) { + instance = new RepositorioClienteTipo(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ClienteTipo entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ClienteTipo clienteTipo = new ClienteTipo(); + + if (selection == null || selection.trim().equals("")) { + selection = ClienteTipoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(clienteTipo.getNomeTabela(), + ClienteTipo.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + clienteTipo = clienteTipo.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return clienteTipo; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaClienteTipo = null; + ClienteTipo clienteTipo = new ClienteTipo(); + try { + listaClienteTipo = new ArrayList(); + + cursor = super.getDb().query(clienteTipo.getNomeTabela(), + ClienteTipo.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaClienteTipo = clienteTipo.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaClienteTipo; + } + + @Override + public long inserir(ClienteTipo clienteTipo) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = clienteTipo.carregarValues(); + + try { + return super.getDb().insert(clienteTipo.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(ClienteTipo clienteTipo) throws RepositorioException { + ContentValues values = clienteTipo.carregarValues(); + + String _id = String.valueOf(clienteTipo.getId()); + + String where = ClienteTipoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(clienteTipo.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(ClienteTipo clienteTipo) throws RepositorioException { + String _id = String.valueOf(clienteTipo.getId()); + + String where = ClienteTipoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(clienteTipo.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioEnderecoReferencia.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioEnderecoReferencia.java new file mode 100644 index 0000000..ba4c9c0 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioEnderecoReferencia.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EnderecoReferencia; +import com.br.gsanac.entidades.EnderecoReferencia.EnderecoReferencias; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioEnderecoReferencia extends RepositorioBase { + + private static RepositorioEnderecoReferencia instance; + + public RepositorioEnderecoReferencia() { + super(); + } + + public static RepositorioEnderecoReferencia getInstance() { + if (instance == null) { + instance = new RepositorioEnderecoReferencia(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public EnderecoReferencia pesquisar(EnderecoReferencia entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + + if (selection == null || selection.trim().equals("")) { + selection = EnderecoReferencias.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(enderecoReferencia.getNomeTabela(), + EnderecoReferencia.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + enderecoReferencia = enderecoReferencia.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return enderecoReferencia; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaEnderecoReferencia = null; + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + try { + listaEnderecoReferencia = new ArrayList(); + + cursor = super.getDb().query(enderecoReferencia.getNomeTabela(), + EnderecoReferencia.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaEnderecoReferencia = enderecoReferencia.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaEnderecoReferencia; + } + + @Override + public long inserir(EnderecoReferencia ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(EnderecoReferencia ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = EnderecoReferencias.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(EnderecoReferencia ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = EnderecoReferencias.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoneTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoneTipo.java new file mode 100644 index 0000000..8e77a2a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoneTipo.java @@ -0,0 +1,175 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.FoneTipo; +import com.br.gsanac.entidades.FoneTipo.FoneTipoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioFoneTipo extends RepositorioBase { + + private static RepositorioFoneTipo instance; + + public RepositorioFoneTipo() { + super(); + } + + public static RepositorioFoneTipo getInstance() { + if (instance == null) { + instance = new RepositorioFoneTipo(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(FoneTipo entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + FoneTipo foneTipo = new FoneTipo(); + + if (selection == null || selection.trim().equals("")) { + selection = FoneTipoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(foneTipo.getNomeTabela(), + FoneTipo.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + foneTipo = foneTipo.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return foneTipo; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaFoneTipo = null; + FoneTipo foneTipo = new FoneTipo(); + try { + listaFoneTipo = new ArrayList(); + + cursor = super.getDb().query(foneTipo.getNomeTabela(), + FoneTipo.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaFoneTipo = foneTipo.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaFoneTipo; + } + + @Override + public long inserir(FoneTipo foneTipo) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = foneTipo.carregarValues(); + + try { + return super.getDb().insert(foneTipo.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + + } + + @Override + public void atualizar(FoneTipo foneTipo) throws RepositorioException { + ContentValues values = foneTipo.carregarValues(); + + String _id = String.valueOf(foneTipo.getId()); + + String where = FoneTipoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(foneTipo.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(FoneTipo foneTipo) throws RepositorioException { + String _id = String.valueOf(foneTipo.getId()); + + String where = FoneTipoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(foneTipo.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFonteAbastecimento.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFonteAbastecimento.java new file mode 100644 index 0000000..a33059e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFonteAbastecimento.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.FonteAbastecimento.FonteAbastecimentos; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioFonteAbastecimento extends RepositorioBase { + + private static RepositorioFonteAbastecimento instance; + + public RepositorioFonteAbastecimento() { + super(); + } + + public static RepositorioFonteAbastecimento getInstance() { + if (instance == null) { + instance = new RepositorioFonteAbastecimento(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public FonteAbastecimento pesquisar(FonteAbastecimento entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + + if (selection == null || selection.trim().equals("")) { + selection = FonteAbastecimentos.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(fonteAbastecimento.getNomeTabela(), + FonteAbastecimento.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + fonteAbastecimento = fonteAbastecimento.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return fonteAbastecimento; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaFonteAbastecimento = null; + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + try { + listaFonteAbastecimento = new ArrayList(); + + cursor = super.getDb().query(fonteAbastecimento.getNomeTabela(), + FonteAbastecimento.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaFonteAbastecimento = fonteAbastecimento.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaFonteAbastecimento; + } + + @Override + public long inserir(FonteAbastecimento ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(FonteAbastecimento ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = FonteAbastecimentos.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(FonteAbastecimento ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = FonteAbastecimentos.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoto.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoto.java new file mode 100644 index 0000000..f3daea4 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioFoto.java @@ -0,0 +1,175 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.Foto.FotoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 04/01/2013 + */ +public class RepositorioFoto extends RepositorioBase { + + private static RepositorioFoto instance; + + public RepositorioFoto() { + super(); + } + + public static RepositorioFoto getInstance() { + if (instance == null) { + instance = new RepositorioFoto(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(Foto entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Foto foto = new Foto(); + + if (selection == null || selection.trim().equals("")) { + selection = FotoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(foto.getNomeTabela(), + Foto.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + foto = foto.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return foto; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaFoto = null; + Foto foto = new Foto(); + try { + listaFoto = new ArrayList(); + + cursor = super.getDb().query(foto.getNomeTabela(), + Foto.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaFoto = foto.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaFoto; + } + + @Override + public long inserir(Foto foto) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = foto.carregarValues(); + + try { + return super.getDb().insert(foto.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Foto foto) throws RepositorioException { + ContentValues values = foto.carregarValues(); + + String _id = String.valueOf(foto.getId()); + + String where = FotoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(foto.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Foto foto) throws RepositorioException { + String _id = String.valueOf(foto.getId()); + + String where = FotoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(foto.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroCapacidade.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroCapacidade.java new file mode 100644 index 0000000..d237fda --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroCapacidade.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.HidrometroCapacidade; +import com.br.gsanac.entidades.HidrometroCapacidade.HidrometroCapacidadeColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 03/01/2013 + */ +public class RepositorioHidrometroCapacidade extends RepositorioBase { + + private static RepositorioHidrometroCapacidade instance; + + public RepositorioHidrometroCapacidade() { + super(); + } + + public static RepositorioHidrometroCapacidade getInstance() { + if (instance == null) { + instance = new RepositorioHidrometroCapacidade(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(HidrometroCapacidade entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + + if (selection == null || selection.trim().equals("")) { + selection = HidrometroCapacidadeColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(hidrometroCapacidade.getNomeTabela(), + HidrometroCapacidade.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + hidrometroCapacidade = hidrometroCapacidade.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return hidrometroCapacidade; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaHidrometroCapacidade = null; + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + try { + listaHidrometroCapacidade = new ArrayList(); + + cursor = super.getDb().query(hidrometroCapacidade.getNomeTabela(), + HidrometroCapacidade.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaHidrometroCapacidade = hidrometroCapacidade.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaHidrometroCapacidade; + } + + @Override + public long inserir(HidrometroCapacidade hidrometroCapacidade) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = hidrometroCapacidade.carregarValues(); + + try { + return super.getDb().insert(hidrometroCapacidade.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(HidrometroCapacidade hidrometroCapacidade) throws RepositorioException { + ContentValues values = hidrometroCapacidade.carregarValues(); + + String _id = String.valueOf(hidrometroCapacidade.getId()); + + String where = HidrometroCapacidadeColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(hidrometroCapacidade.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(HidrometroCapacidade hidrometroCapacidade) throws RepositorioException { + String _id = String.valueOf(hidrometroCapacidade.getId()); + + String where = HidrometroCapacidadeColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(hidrometroCapacidade.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroInstHistAtlzCad.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroInstHistAtlzCad.java new file mode 100644 index 0000000..28c3484 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroInstHistAtlzCad.java @@ -0,0 +1,194 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad.HidrometroInstHistAtlzCadColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioHidrometroInstHistAtlzCad extends RepositorioBase { + + private static RepositorioHidrometroInstHistAtlzCad instance; + + public RepositorioHidrometroInstHistAtlzCad() { + super(); + } + + public static RepositorioHidrometroInstHistAtlzCad getInstance() { + if (instance == null) { + instance = new RepositorioHidrometroInstHistAtlzCad(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(HidrometroInstHistAtlzCad entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + + if (selection == null || selection.trim().equals("")) { + selection = HidrometroInstHistAtlzCadColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(hidrometroInstHistAtlzCad.getNomeTabela(), + HidrometroInstHistAtlzCad.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + hidrometroInstHistAtlzCad = hidrometroInstHistAtlzCad.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return hidrometroInstHistAtlzCad; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaHidrometroInstHistAtlzCad = null; + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + try { + listaHidrometroInstHistAtlzCad = new ArrayList(); + + cursor = super.getDb().query(hidrometroInstHistAtlzCad.getNomeTabela(), + HidrometroInstHistAtlzCad.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaHidrometroInstHistAtlzCad = hidrometroInstHistAtlzCad.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaHidrometroInstHistAtlzCad; + } + + @Override + public long inserir(HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = hidrometroInstHistAtlzCad.carregarValues(); + + try { + return super.getDb().insert(hidrometroInstHistAtlzCad.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws RepositorioException { + ContentValues values = hidrometroInstHistAtlzCad.carregarValues(); + + String _id = String.valueOf(hidrometroInstHistAtlzCad.getId()); + + String where = HidrometroInstHistAtlzCadColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(hidrometroInstHistAtlzCad.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad) throws RepositorioException { + String _id = String.valueOf(hidrometroInstHistAtlzCad.getId()); + + String where = HidrometroInstHistAtlzCadColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(hidrometroInstHistAtlzCad.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + public void remover(String idImovelAtlzCadastral) throws RepositorioException { + + String where = HidrometroInstHistAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] whereArgs = new String[] { + idImovelAtlzCadastral + }; + + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + + try { + super.getDb().delete(hidrometroInstHistAtlzCad.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroLocalInst.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroLocalInst.java new file mode 100644 index 0000000..8bb63c0 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroLocalInst.java @@ -0,0 +1,177 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.HidrometroLocalInst; +import com.br.gsanac.entidades.HidrometroLocalInst.HidrometroLocalInstColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioHidrometroLocalInst extends RepositorioBase { + + private static RepositorioHidrometroLocalInst instance; + + public RepositorioHidrometroLocalInst() { + super(); + } + + public static RepositorioHidrometroLocalInst getInstance() { + if (instance == null) { + instance = new RepositorioHidrometroLocalInst(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(HidrometroLocalInst entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + + if (selection == null || selection.trim().equals("")) { + selection = HidrometroLocalInstColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(hidrometroLocalInst.getNomeTabela(), + HidrometroLocalInst.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + hidrometroLocalInst = hidrometroLocalInst.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return hidrometroLocalInst; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaHidrometroLocalInst = null; + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + + try { + listaHidrometroLocalInst = new ArrayList(); + + cursor = super.getDb().query(hidrometroLocalInst.getNomeTabela(), + HidrometroLocalInst.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaHidrometroLocalInst = hidrometroLocalInst.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaHidrometroLocalInst; + } + + @Override + public long inserir(HidrometroLocalInst hidrometroLocalInst) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = hidrometroLocalInst.carregarValues(); + + try { + return super.getDb().insert(hidrometroLocalInst.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(HidrometroLocalInst hidrometroLocalInst) throws RepositorioException { + + ContentValues values = hidrometroLocalInst.carregarValues(); + + String _id = String.valueOf(hidrometroLocalInst.getId()); + + String where = HidrometroLocalInstColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(hidrometroLocalInst.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(HidrometroLocalInst hidrometroLocalInst) throws RepositorioException { + String _id = String.valueOf(hidrometroLocalInst.getId()); + + String where = HidrometroLocalInstColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(hidrometroLocalInst.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroMarca.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroMarca.java new file mode 100644 index 0000000..9db6f45 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroMarca.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.HidrometroMarca; +import com.br.gsanac.entidades.HidrometroMarca.HidrometroMarcaColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 03/01/2013 + */ +public class RepositorioHidrometroMarca extends RepositorioBase { + + private static RepositorioHidrometroMarca instance; + + public RepositorioHidrometroMarca() { + super(); + } + + public static RepositorioHidrometroMarca getInstance() { + if (instance == null) { + instance = new RepositorioHidrometroMarca(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(HidrometroMarca entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + + if (selection == null || selection.trim().equals("")) { + selection = HidrometroMarcaColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(hidrometroMarca.getNomeTabela(), + HidrometroMarca.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + hidrometroMarca = hidrometroMarca.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return hidrometroMarca; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaHidrometroMarca = null; + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + try { + listaHidrometroMarca = new ArrayList(); + + cursor = super.getDb().query(hidrometroMarca.getNomeTabela(), + HidrometroMarca.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaHidrometroMarca = hidrometroMarca.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaHidrometroMarca; + } + + @Override + public long inserir(HidrometroMarca hidrometroMarca) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = hidrometroMarca.carregarValues(); + + try { + return super.getDb().insert(hidrometroMarca.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(HidrometroMarca hidrometroMarca) throws RepositorioException { + ContentValues values = hidrometroMarca.carregarValues(); + + String _id = String.valueOf(hidrometroMarca.getId()); + + String where = HidrometroMarcaColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(hidrometroMarca.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(HidrometroMarca hidrometroMarca) throws RepositorioException { + String _id = String.valueOf(hidrometroMarca.getId()); + + String where = HidrometroMarcaColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(hidrometroMarca.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroProtecao.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroProtecao.java new file mode 100644 index 0000000..2029d2e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioHidrometroProtecao.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.HidrometroProtecao; +import com.br.gsanac.entidades.HidrometroProtecao.HidrometroProtecaoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioHidrometroProtecao extends RepositorioBase { + + private static RepositorioHidrometroProtecao instance; + + public RepositorioHidrometroProtecao() { + super(); + } + + public static RepositorioHidrometroProtecao getInstance() { + if (instance == null) { + instance = new RepositorioHidrometroProtecao(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(HidrometroProtecao entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + + if (selection == null || selection.trim().equals("")) { + selection = HidrometroProtecaoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(hidrometroProtecao.getNomeTabela(), + HidrometroProtecao.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + hidrometroProtecao = hidrometroProtecao.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return hidrometroProtecao; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaHidrometroProtecao = null; + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + try { + listaHidrometroProtecao = new ArrayList(); + + cursor = super.getDb().query(hidrometroProtecao.getNomeTabela(), + HidrometroProtecao.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaHidrometroProtecao = hidrometroProtecao.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaHidrometroProtecao; + } + + @Override + public long inserir(HidrometroProtecao hidrometroProtecao) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = hidrometroProtecao.carregarValues(); + + try { + return super.getDb().insert(hidrometroProtecao.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(HidrometroProtecao hidrometroProtecao) throws RepositorioException { + ContentValues values = hidrometroProtecao.carregarValues(); + + String _id = String.valueOf(hidrometroProtecao.getId()); + + String where = HidrometroProtecaoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(hidrometroProtecao.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(HidrometroProtecao hidrometroProtecao) throws RepositorioException { + String _id = String.valueOf(hidrometroProtecao.getId()); + + String where = HidrometroProtecaoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(hidrometroProtecao.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelAtlzCadastral.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelAtlzCadastral.java new file mode 100644 index 0000000..c483a92 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelAtlzCadastral.java @@ -0,0 +1,838 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunas; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunasTipo; +import com.br.gsanac.entidades.EnderecoReferencia; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelPerfil; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.PavimentoCalcada; +import com.br.gsanac.entidades.PavimentoRua; +import com.br.gsanac.entidades.ImovelOcorrencia.ImovelOcorrenciaColunas; +import com.br.gsanac.entidades.Roteiro; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.util.ConstantesSistema; +import com.br.gsanac.util.Util; + + + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioImovelAtlzCadastral extends RepositorioBase { + + private static RepositorioImovelAtlzCadastral instance; + + public RepositorioImovelAtlzCadastral() { + super(); + } + + public static RepositorioImovelAtlzCadastral getInstance() { + if (instance == null) { + instance = new RepositorioImovelAtlzCadastral(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ImovelAtlzCadastral entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + + if (selection == null || selection.trim().equals("")) { + selection = ImovelAtlzCadastralColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(imovelAtlzCadastral.getNomeTabela(), + ImovelAtlzCadastral.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + imovelAtlzCadastral = imovelAtlzCadastral.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return imovelAtlzCadastral; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaImovelAtlzCadastral = null; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + try { + listaImovelAtlzCadastral = new ArrayList(); + + cursor = super.getDb().query(imovelAtlzCadastral.getNomeTabela(), + ImovelAtlzCadastral.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaImovelAtlzCadastral = imovelAtlzCadastral.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaImovelAtlzCadastral; + } + + @Override + public long inserir(ImovelAtlzCadastral imovelAtlzCadastral) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = imovelAtlzCadastral.carregarValues(); + + try { + return super.getDb().insert(imovelAtlzCadastral.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(ImovelAtlzCadastral imovelAtlzCadastral) throws RepositorioException { + ContentValues values = imovelAtlzCadastral.carregarValues(); + + String _id = String.valueOf(imovelAtlzCadastral.getId()); + + String where = ImovelAtlzCadastralColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(imovelAtlzCadastral.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(ImovelAtlzCadastral imovelAtlzCadastral) throws RepositorioException { + String _id = String.valueOf(imovelAtlzCadastral.getId()); + + String where = ImovelAtlzCadastralColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(imovelAtlzCadastral.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + public ImovelAtlzCadastral buscarImovelPosicao(Integer posicao) throws RepositorioException { + Cursor cursor = null; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + try { + cursor = super.getDb().query(imovelAtlzCadastral.getNomeTabela(), imovelAtlzCadastral.getColunas(), ImovelAtlzCadastralColunas.POSICAO + "=" +posicao, null, + null, null, null); + + if (cursor.moveToFirst()) { + List colecao = imovelAtlzCadastral.carregarListaEntidade(cursor); + if(colecao!=null){ + return colecao.get(0); + } + } + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return null; + } + + /**** + * Retorna o maior id da tabela Imovel + * + *@author Anderson Cabral + *@since 11/01/2013 + ****/ + public Integer pesquisarMaiorIdImovel() throws RepositorioException{ + Cursor cursor = null; + Integer maxId = null; + try { + StringBuilder sql = new StringBuilder(); + sql.append("SELECT MAX("+ ImovelAtlzCadastralColunas.ID +") as 'ULTIMO_ID' FROM IMOVEL_ATLZ_CADASTRAL"); + + cursor = super.getDb().rawQuery(sql.toString(), null); + + if (cursor.moveToFirst()) { + maxId = cursor.getInt(0); + } + + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return maxId; + } + /** + * Metodo responsavel por pesquisar o arquivo de retorno + * + * @author Arthur Carvalho + * @return FileReturn + * @param idServiceOrder + * @throws RepositoryException + */ + public Roteiro pesquisarRoteiro(Integer idImovelAtlzCadastral) throws RepositorioException { + + Cursor cursor = null; + + Roteiro roteiro = new Roteiro(); + StringBuilder sql = new StringBuilder(); + sql.append("select imac.imac_id, imac.LOCA_ID, imac.STCM_CDSETORCOMERCIAL, imac.QDRA_NNQUADRA, imac.IMAC_NNLOTE, "); + sql.append("imac.IMAC_NNSUBLOTE, clac.CLAC_NMCLIENTE, lgtp.LGTP_DSLOGRADOUROTIPO, logr.LOGR_NMLOGRADOURO, imac.IMAC_NNIMOVEL, "); + sql.append("bair.BAIR_NMBAIRRO, ce.CEP_CDCEP, imac.MUNI_NMMUNICIPIO, imac.imac_posicao, imac.IMAC_ICFINALIZADO, lgtt.LGTT_DSLOGRADOUROTITULO "); + sql.append("from imovel_atlz_cadastral imac "); + sql.append("left join cliente_atlz_cadastral clac on clac.imac_id = imac.imac_id "); + sql.append("left join logradouro logr on logr.logr_id = imac.logr_id "); + sql.append("left join logradouro_tipo lgtp on LGTP.LGTP_ID = logr.LGTP_ID "); + sql.append("left join logradouro_titulo lgtt on LGTT.LGTT_ID = logr.LGTT_ID "); + sql.append("left join logradouro_bairro lgbr on lgbr.lgbr_id = imac.lgbr_id "); + sql.append("left join bairro bair on bair.bair_id = lgbr.bair_id "); + sql.append("left join logradouro_cep lgcp on lgcp.lgcp_id = imac.lgcp_id "); + sql.append("left join cep ce on ce.cep_id = lgcp.cep_id "); + sql.append("where imac.imac_id = " +idImovelAtlzCadastral ); + + + try { + + cursor = super.getDb().rawQuery(sql.toString(), null); + + if ( cursor.moveToFirst() ) { + roteiro.setMatriculaImovel( cursor.getInt(0)); + roteiro.setIdLocalidade( cursor.getInt(1) ); + roteiro.setCodigoSetorComercial( cursor.getInt(2) ); + roteiro.setNumeroQuadra( cursor.getInt(3) ); + roteiro.setNumeroLote( cursor.getInt(4) ); + roteiro.setNumeroSublote( cursor.getInt(5) ); + if ( cursor.getString(6) != null ) { + roteiro.setNomeCliente( cursor.getString(6).toString() ); + } + + if ( cursor.getString(7) != null ) { + roteiro.setDescricaoLogradouroTipo( cursor.getString(7).toString() ); + } + if ( cursor.getString(8) != null ) { + roteiro.setDescricaoLogradouro( cursor.getString(8).toString() ); + } + + if ( cursor.getString(9) != null ) { + roteiro.setNumeroImovel( cursor.getString(9).toString() ); + } + if ( cursor.getString(10) != null ) { + roteiro.setDescricaoBairro( cursor.getString(10).toString() ); + } + + roteiro.setCodigoCep( cursor.getInt(11) ); + + if ( cursor.getString(12) != null ) { + roteiro.setDescricaoMunicipio( cursor.getString(12).toString() ); + } + + roteiro.setPosicao( cursor.getInt(13) ); + roteiro.setIndicadorFinalizado( cursor.getInt(14) ); + + if ( cursor.getString(15) != null ) { + roteiro.setDescricaoLogradouroTitulo( cursor.getString(15).toString() ); + } + } + + } catch (Exception sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(Fachada.getContext().getResources().getString(R.string.db_error)); + } finally { + + if (cursor != null) { + cursor.close(); + } + + } + return roteiro; + } + + + /** + * Metodo responsavel por pesquisar todos os imveis cadastrados no gsan. + * + * @author Arthur Carvalho + * @return FileReturn + * @param idServiceOrder + * @throws RepositoryException + */ + public ArrayList pesquisarMatriculas() throws RepositorioException { + + Cursor cursor = null; + + ArrayList listaMatriculas = new ArrayList(); + StringBuilder sql = new StringBuilder(); + sql.append("select imac.imov_id "); + sql.append("from imovel_atlz_cadastral imac "); + + + try { + + cursor = super.getDb().rawQuery(sql.toString(), null); + + if ( cursor.moveToFirst() ) { + + do { + + listaMatriculas.add(cursor.getInt(0)); + + } while (cursor.moveToNext()); + } + + } catch (Exception sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(Fachada.getContext().getResources().getString(R.string.db_error)); + } finally { + + if (cursor != null) { + cursor.close(); + } + + } + return listaMatriculas; + } + + /**** + * Retorna imovel atraves do numero do hidrometro + * + *@author Anderson Cabral + *@since 17/07/2013 + ****/ + public List pesquisarImovelPeloHidrometro(String numeroHidrometro) throws RepositorioException{ + Cursor cursor = null; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + List listaImovelAtlzCadastral = null; + + try { + StringBuilder sql = new StringBuilder(); + sql.append("SELECT * FROM imovel_atlz_cadastral imovel "); + sql.append("INNER JOIN hidrom_inst_hist_atl_cad hidroInst ON hidroInst.imac_id = imovel.imac_id "); + sql.append("WHERE hidroInst.hiac_nnhidrometro = " + "'" + numeroHidrometro + "'"); + + cursor = super.getDb().rawQuery(sql.toString(), null); + + listaImovelAtlzCadastral = imovelAtlzCadastral.carregarListaEntidade(cursor); + + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return listaImovelAtlzCadastral; + } + + /**** + * Retorna colecao de imoveis pelo cpf + * + *@author Anderson Cabral + *@since 17/07/2013 + ****/ + public List pesquisarImovelPeloCPFCNPJ(String numeroCpfCnpj) throws RepositorioException{ + Cursor cursor = null; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + List listaImovelAtlzCadastral = null; + + try { + StringBuilder sql = new StringBuilder(); + sql.append("SELECT * FROM imovel_atlz_cadastral imovel "); + sql.append("INNER JOIN cliente_atlz_cadastral cliente ON cliente.imac_id = imovel.imac_id "); + sql.append("WHERE cliente.clac_nncpfcnppj = " + "'" + numeroCpfCnpj + "'"); + + cursor = super.getDb().rawQuery(sql.toString(), null); + + listaImovelAtlzCadastral = imovelAtlzCadastral.carregarListaEntidade(cursor); + + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return listaImovelAtlzCadastral; + } + + /** + * + * @author Arthur Carvalho + * @date 26/06/2013 + * + * @return + * @throws RepositorioException + */ + public Integer pesquisarSetorComercialPrincipal() throws RepositorioException { + Integer codigoSetorComercial = null; + + Cursor cursor = null; + + StringBuilder sql = new StringBuilder(); + sql.append("select STCM_CDSETORCOMERCIAL, count(distinct(STCM_CDSETORCOMERCIAL)) "); + sql.append("from imovel_atlz_cadastral "); + sql.append("group by STCM_CDSETORCOMERCIAL "); + sql.append("order by 2 desc "); + + + try { + + cursor = super.getDb().rawQuery(sql.toString(), null); + + if ( cursor.moveToFirst() ) { + codigoSetorComercial = cursor.getInt(0); + } + + } catch (Exception sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(Fachada.getContext().getResources().getString(R.string.db_error)); + } finally { + + if (cursor != null) { + cursor.close(); + } + + } + return codigoSetorComercial; + } + + + /** + * + * @author Arthur Carvalho + * @date 23/07/2013 + * + * @param nomeArquivo + * @return + * @throws RepositorioException + */ + public Date pesquisarArquivoDivididoCarregado(String nomeArquivo) throws RepositorioException { + Date dataCarregamento = null; + + Cursor cursor = null; + + StringBuilder sql = new StringBuilder(); + sql.append("select ARDI_TMULTIMAALTERACAO "); + sql.append("from ARQUIVO_DIVIDIDO "); + sql.append("WHERE ARDI_DSARQUIVO = " + "'"+nomeArquivo+"'"); + + + try { + + cursor = super.getDb().rawQuery(sql.toString(), null); + + if ( cursor.moveToFirst() ) { + dataCarregamento = Util.convertStringToDate(cursor.getString(0)); + } + + } catch (Exception sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(Fachada.getContext().getResources().getString(R.string.db_error)); + } finally { + + if (cursor != null) { + cursor.close(); + } + + } + return dataCarregamento; + } + + /** + * + * @author Arthur Carvalho + * @date 23/07/2013 + * + * @param nomeArquivo + * @return + * @throws RepositorioException + */ + public void inserirArquivoDividido(String nomeArquivo) throws RepositorioException { + ContentValues values = new ContentValues(); + + + values.put("ARDI_DSARQUIVO", nomeArquivo.substring(0, nomeArquivo.length() - 4)); + values.put("ARDI_TMULTIMAALTERACAO", Util.dateFormatDB.format(new Date())); + + try { + + super.getDb().insert("ARQUIVO_DIVIDIDO", "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + * + */ + + // Este Metodo obtem a quantidade de Imoveis por Ocorrencia + + public Integer obterQuantidadeImoveis() throws RepositorioException { + Cursor cursor = null; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + + try { + String query = "SELECT COUNT(imac.imac_id) as qnt FROM "+ imovelAtlzCadastral.getNomeTabela() + " imac " + +" WHERE "+ ImovelAtlzCadastralColunas.IMOVEL_ID + " IS NOT NULL " + " AND " + + ImovelAtlzCadastralColunas.IMOVEL_ID + " <> 0 "; + + cursor = super.getDb().rawQuery(query, null); + + if (cursor.moveToFirst()) { + int codigo = cursor.getColumnIndex("qnt"); + return cursor.getInt(codigo); + } + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString( + R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return null; + } + + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + + // Obtem a quantidade de Imoveis atualizados por Ocorrencia + + public Integer obterQuantidadeImoveisAtualizadosPorOcorrencia(Integer numeroOcorrencia) throws RepositorioException { + Cursor cursor = null; + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + + try { + String query = "SELECT COUNT(imoc.imac_id) as qnt FROM "+ imovelOcorrencia.getNomeTabela() + " imoc " + +" INNER JOIN imovel_atlz_cadastral imac ON imac.imac_id = imoc.imac_id " + +" WHERE " + ImovelOcorrenciaColunas.CADOCORRENCIA_ID + " = "+ numeroOcorrencia + +" AND " + ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO + " = 1 " + +" AND " + ImovelAtlzCadastralColunas.IMOVEL_ID + " IS NOT NULL " + +" AND " + ImovelAtlzCadastralColunas.IMOVEL_ID + " <> 0 "; + + cursor = super.getDb().rawQuery(query, null); + + if (cursor.moveToFirst()) { + int codigo = cursor.getColumnIndex("qnt"); + return cursor.getInt(codigo); + } + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString( + R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return null; + } + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @param numeroOcorrencia + * @return + * @throws RepositorioException + */ + + // Obtem a quantidade de Imoveis Incluidos por Ocorrencia + public Integer obterQuantidadeImoveisIncluidosComPorOcorrencia(Integer numeroOcorrencia) throws RepositorioException { + Cursor cursor = null; + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + + try { + String query = "SELECT COUNT(imoc.imac_id) as qnt " + +" FROM "+ imovelOcorrencia.getNomeTabela() + " imoc " + +" INNER JOIN "+ imovelAtlzCadastral.getNomeTabela() +" imac ON imac.imac_id = imoc.imac_id " + +" WHERE imoc." + ImovelOcorrenciaColunas.CADOCORRENCIA_ID + " = "+ numeroOcorrencia + +" AND ( imac."+ ImovelAtlzCadastralColunas.IMOVEL_ID +" IS NULL OR imac." + ImovelAtlzCadastralColunas.IMOVEL_ID + " == 0 )"; + + cursor = super.getDb().rawQuery(query, null); + + if (cursor.moveToFirst()) { + int codigo = cursor.getColumnIndex("qnt"); + return cursor.getInt(codigo); + } + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString( + R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return null; + } + + /** + * @author Flavio Ferreira + * @date 10/10/2013 + * @return + * @throws RepositorioException + */ + + // Obtem a descrio de cada Ocorrencia + public String buscarDescricaoOcorrencias(Integer idCadastroOcorrencia) throws RepositorioException { + Cursor cursor = null; + String descricao = null; + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + try { + + String query = "SELECT DISTINCT "+ CadastroOcorrenciaColunas.DESCRICAO + " AS descricao FROM " + cadastroOcorrencia.getNomeTabela() + + " WHERE " + CadastroOcorrenciaColunas.ID + " = " + idCadastroOcorrencia; + + cursor = super.getDb().rawQuery(query, null); + + if (cursor.moveToFirst()) { + int descricaoindex = cursor.getColumnIndex("descricao"); + descricao = cursor.getString(descricaoindex); + } + + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString( + R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return descricao; + } + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @return + * @throws RepositorioException + */ + //Mestodo retorna todos os imoveis atualizados + public Integer obterTotalImoveisAtualizados(String login) throws RepositorioException { + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + Cursor cursor = null; + + try{ + String query = "SELECT COUNT("+ ImovelAtlzCadastralColunas.IMOVEL_ID +") AS qnt FROM " + imovelAtlzCadastral.getNomeTabela() + +" WHERE " + ImovelAtlzCadastralColunas.INDICADOR_FINALIZADO + " = 1 " + +" AND " + ImovelAtlzCadastralColunas.IMOVEL_ID + " IS NOT NULL " + +" AND " + ImovelAtlzCadastralColunas.IMOVEL_ID + " <> 0 " + +" AND " + ImovelAtlzCadastralColunas.LOGIN + " = '" + login+"'"; + + cursor = super.getDb().rawQuery(query, null); + + if(cursor.moveToFirst()){ + int codigo = cursor.getColumnIndex("qnt"); + return cursor.getInt(codigo); + } + }catch(Exception ex){ + ex.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, ex.getMessage()); + throw new RepositorioException(context.getResources().getString( + R.string.db_error)); + }finally{ + if(cursor != null){ + cursor.close(); + } + } + + return null; + } + + /** + * @author Flavio Ferreira + * @date 14/10/2013 + * @return + * @throws RepositorioException + */ + //Mestodo retorna todos os imoveis Incluidos + public Integer obterTotalImoveisIncluidos(String login) throws RepositorioException { + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + Cursor cursor = null; + + try{ + String query = "SELECT COUNT(" + ImovelAtlzCadastralColunas.ID + ") AS qnt FROM " + imovelAtlzCadastral.getNomeTabela() + +" WHERE " + ImovelAtlzCadastralColunas.LOGIN + " = '" + login+"'" + +" AND (" + ImovelAtlzCadastralColunas.IMOVEL_ID + " IS NULL OR "+ ImovelAtlzCadastralColunas.IMOVEL_ID + " = 0 )"; + + cursor = super.getDb().rawQuery(query, null); + + if(cursor.moveToFirst()){ + int codigo = cursor.getColumnIndex("qnt"); + return cursor.getInt(codigo); + } + }catch(Exception ex){ + ex.printStackTrace(); + Log.e(ConstantesSistema.LOG_TAG, ex.getMessage()); + throw new RepositorioException(context.getResources().getString( + R.string.db_error)); + }finally{ + if(cursor != null){ + cursor.close(); + } + } + return null; + } + + /** + * @author Flavio Ferreira + * @date 15/10/2013 + * @return + * @throws RepositorioException + */ + + public List pesquisarListaLogin() throws RepositorioException{ + Cursor cursor = null; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + List listaLogin = new ArrayList(); + + try { + String query = "SELECT distinct("+ ImovelAtlzCadastralColunas.LOGIN +") AS descricao FROM " + imovelAtlzCadastral.getNomeTabela() + " ORDER BY "+ ImovelAtlzCadastralColunas.LOGIN; + + cursor = super.getDb().rawQuery(query, null); + + if ( cursor.moveToFirst() ) { + + do{ + + int login = cursor.getColumnIndex("descricao"); + + String loginRetorno = cursor.getString(login); + if ( loginRetorno != null) { + listaLogin.add(loginRetorno); + } + + } while (cursor.moveToNext()); + } + + cursor.close(); + + } catch (Exception e) { + e.printStackTrace(); + Log.e( ConstantesSistema.LOG_TAG , e.getMessage()); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + return listaLogin; + } + +} + diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelOcorrencia.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelOcorrencia.java new file mode 100644 index 0000000..1089c90 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelOcorrencia.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelOcorrencia.ImovelOcorrenciaColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 08/01/2013 + */ +public class RepositorioImovelOcorrencia extends RepositorioBase { + + private static RepositorioImovelOcorrencia instance; + + public RepositorioImovelOcorrencia() { + super(); + } + + public static RepositorioImovelOcorrencia getInstance() { + if (instance == null) { + instance = new RepositorioImovelOcorrencia(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ImovelOcorrencia entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + + if (selection == null || selection.trim().equals("")) { + selection = ImovelOcorrenciaColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(imovelOcorrencia.getNomeTabela(), + ImovelOcorrencia.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + imovelOcorrencia = imovelOcorrencia.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return imovelOcorrencia; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaImovelOcorrencia = null; + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + try { + listaImovelOcorrencia = new ArrayList(); + + cursor = super.getDb().query(imovelOcorrencia.getNomeTabela(), + ImovelOcorrencia.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaImovelOcorrencia = imovelOcorrencia.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaImovelOcorrencia; + } + + @Override + public long inserir(ImovelOcorrencia imovelOcorrencia) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = imovelOcorrencia.carregarValues(); + + try { + return super.getDb().insert(imovelOcorrencia.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(ImovelOcorrencia imovelOcorrencia) throws RepositorioException { + ContentValues values = imovelOcorrencia.carregarValues(); + + String _id = String.valueOf(imovelOcorrencia.getId()); + + String where = ImovelOcorrenciaColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(imovelOcorrencia.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(ImovelOcorrencia imovelOcorrencia) throws RepositorioException { + String _id = String.valueOf(imovelOcorrencia.getId()); + + String where = ImovelOcorrenciaColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(imovelOcorrencia.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelPerfil.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelPerfil.java new file mode 100644 index 0000000..31fbb2f --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelPerfil.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.ImovelPerfil; +import com.br.gsanac.entidades.ImovelPerfil.ImovelPerfilColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioImovelPerfil extends RepositorioBase { + + private static RepositorioImovelPerfil instance; + + public RepositorioImovelPerfil() { + super(); + } + + public static RepositorioImovelPerfil getInstance() { + if (instance == null) { + instance = new RepositorioImovelPerfil(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ImovelPerfil entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ImovelPerfil imovelPerfil = new ImovelPerfil(); + + if (selection == null || selection.trim().equals("")) { + selection = ImovelPerfilColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(imovelPerfil.getNomeTabela(), + ImovelPerfil.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + imovelPerfil = imovelPerfil.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return imovelPerfil; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaImovelPerfil = null; + ImovelPerfil imovelPerfil = new ImovelPerfil(); + try { + listaImovelPerfil = new ArrayList(); + + cursor = super.getDb().query(imovelPerfil.getNomeTabela(), + ImovelPerfil.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaImovelPerfil = imovelPerfil.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaImovelPerfil; + } + + @Override + public long inserir(ImovelPerfil imovelPerfil) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = imovelPerfil.carregarValues(); + + try { + return super.getDb().insert(imovelPerfil.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(ImovelPerfil imovelPerfil) throws RepositorioException { + ContentValues values = imovelPerfil.carregarValues(); + + String _id = String.valueOf(imovelPerfil.getId()); + + String where = ImovelPerfilColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(imovelPerfil.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(ImovelPerfil imovelPerfil) throws RepositorioException { + String _id = String.valueOf(imovelPerfil.getId()); + + String where = ImovelPerfilColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(imovelPerfil.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelSubCategAtlzCad.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelSubCategAtlzCad.java new file mode 100644 index 0000000..5c720cd --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioImovelSubCategAtlzCad.java @@ -0,0 +1,193 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad.ImovelSubCategAtlzCadColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioImovelSubCategAtlzCad extends RepositorioBase { + + private static RepositorioImovelSubCategAtlzCad instance; + + public RepositorioImovelSubCategAtlzCad() { + super(); + } + + public static RepositorioImovelSubCategAtlzCad getInstance() { + if (instance == null) { + instance = new RepositorioImovelSubCategAtlzCad(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(ImovelSubCategAtlzCad entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + + if (selection == null || selection.trim().equals("")) { + selection = ImovelSubCategAtlzCadColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(imovelSubCategAtlzCad.getNomeTabela(), + ImovelSubCategAtlzCad.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + imovelSubCategAtlzCad = imovelSubCategAtlzCad.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return imovelSubCategAtlzCad; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaImovelSubCategAtlzCad = null; + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + try { + listaImovelSubCategAtlzCad = new ArrayList(); + + cursor = super.getDb().query(imovelSubCategAtlzCad.getNomeTabela(), + ImovelSubCategAtlzCad.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaImovelSubCategAtlzCad = imovelSubCategAtlzCad.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaImovelSubCategAtlzCad; + } + + @Override + public long inserir(ImovelSubCategAtlzCad imovelSubCategAtlzCad) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = imovelSubCategAtlzCad.carregarValues(); + + try { + return super.getDb().insert(imovelSubCategAtlzCad.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(ImovelSubCategAtlzCad imovelSubCategAtlzCad) throws RepositorioException { + ContentValues values = imovelSubCategAtlzCad.carregarValues(); + + String _id = String.valueOf(imovelSubCategAtlzCad.getId()); + + String where = ImovelSubCategAtlzCadColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(imovelSubCategAtlzCad.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(ImovelSubCategAtlzCad imovelSubCategAtlzCad) throws RepositorioException { + String _id = String.valueOf(imovelSubCategAtlzCad.getId()); + + String where = ImovelSubCategAtlzCadColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(imovelSubCategAtlzCad.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + public void remover(String idImovelAtlzCadastral) throws RepositorioException { + + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + String where = ImovelSubCategAtlzCadColunas.IMOVELATLZCAD_ID + "=?"; + + String[] whereArgs = new String[] { + idImovelAtlzCadastral + }; + + try { + super.getDb().delete(imovelSubCategAtlzCad.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoAguaSituacao.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoAguaSituacao.java new file mode 100644 index 0000000..b1617cb --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoAguaSituacao.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoAguaSituacao.LigacaoAguaSituacaos; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioLigacaoAguaSituacao extends RepositorioBase { + + private static RepositorioLigacaoAguaSituacao instance; + + public RepositorioLigacaoAguaSituacao() { + super(); + } + + public static RepositorioLigacaoAguaSituacao getInstance() { + if (instance == null) { + instance = new RepositorioLigacaoAguaSituacao(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public LigacaoAguaSituacao pesquisar(LigacaoAguaSituacao entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + LigacaoAguaSituacao ligacaoAguaSituacao = new LigacaoAguaSituacao(); + + if (selection == null || selection.trim().equals("")) { + selection = LigacaoAguaSituacaos.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(ligacaoAguaSituacao.getNomeTabela(), + LigacaoAguaSituacao.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + ligacaoAguaSituacao = ligacaoAguaSituacao.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return ligacaoAguaSituacao; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaLigacaoAguaSituacao = null; + LigacaoAguaSituacao ligacaoAguaSituacao = new LigacaoAguaSituacao(); + try { + listaLigacaoAguaSituacao = new ArrayList(); + + cursor = super.getDb().query(ligacaoAguaSituacao.getNomeTabela(), + LigacaoAguaSituacao.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLigacaoAguaSituacao = ligacaoAguaSituacao.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLigacaoAguaSituacao; + } + + @Override + public long inserir(LigacaoAguaSituacao ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(LigacaoAguaSituacao ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = LigacaoAguaSituacaos.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(LigacaoAguaSituacao ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = LigacaoAguaSituacaos.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoEsgotoSituacao.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoEsgotoSituacao.java new file mode 100644 index 0000000..b6cc45c --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLigacaoEsgotoSituacao.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao.LigacaoEsgotoSituacaos; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioLigacaoEsgotoSituacao extends RepositorioBase { + + private static RepositorioLigacaoEsgotoSituacao instance; + + public RepositorioLigacaoEsgotoSituacao() { + super(); + } + + public static RepositorioLigacaoEsgotoSituacao getInstance() { + if (instance == null) { + instance = new RepositorioLigacaoEsgotoSituacao(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public LigacaoEsgotoSituacao pesquisar(LigacaoEsgotoSituacao entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + LigacaoEsgotoSituacao ligacaoEsgotoSituacao = new LigacaoEsgotoSituacao(); + + if (selection == null || selection.trim().equals("")) { + selection = LigacaoEsgotoSituacaos.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(ligacaoEsgotoSituacao.getNomeTabela(), + LigacaoEsgotoSituacao.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + ligacaoEsgotoSituacao = ligacaoEsgotoSituacao.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return ligacaoEsgotoSituacao; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaLigacaoEsgotoSituacao = null; + LigacaoEsgotoSituacao ligacaoEsgotoSituacao = new LigacaoEsgotoSituacao(); + try { + listaLigacaoEsgotoSituacao = new ArrayList(); + + cursor = super.getDb().query(ligacaoEsgotoSituacao.getNomeTabela(), + LigacaoEsgotoSituacao.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLigacaoEsgotoSituacao = ligacaoEsgotoSituacao.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLigacaoEsgotoSituacao; + } + + @Override + public long inserir(LigacaoEsgotoSituacao ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(LigacaoEsgotoSituacao ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = LigacaoEsgotoSituacaos.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(LigacaoEsgotoSituacao ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = LigacaoEsgotoSituacaos.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouro.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouro.java new file mode 100644 index 0000000..bd56ad7 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouro.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioLogradouro extends RepositorioBase { + + private static RepositorioLogradouro instance; + + public RepositorioLogradouro() { + super(); + } + + public static RepositorioLogradouro getInstance() { + if (instance == null) { + instance = new RepositorioLogradouro(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public Logradouro pesquisar(Logradouro entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Logradouro logradouro = new Logradouro(); + + if (selection == null || selection.trim().equals("")) { + selection = Logradouros.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(logradouro.getNomeTabela(), + Logradouro.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + logradouro = logradouro.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return logradouro; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaLogradouro = null; + Logradouro logradouro = new Logradouro(); + try { + listaLogradouro = new ArrayList(); + + cursor = super.getDb().query(logradouro.getNomeTabela(), + Logradouro.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLogradouro = logradouro.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLogradouro; + } + + @Override + public long inserir(Logradouro ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Logradouro ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = Logradouros.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Logradouro ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = Logradouros.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroBairro.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroBairro.java new file mode 100644 index 0000000..4fc3d49 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroBairro.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroBairro.LogradouroBairros; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioLogradouroBairro extends RepositorioBase { + + private static RepositorioLogradouroBairro instance; + + public RepositorioLogradouroBairro() { + super(); + } + + public static RepositorioLogradouroBairro getInstance() { + if (instance == null) { + instance = new RepositorioLogradouroBairro(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public LogradouroBairro pesquisar(LogradouroBairro entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + LogradouroBairro logradouroBairro = new LogradouroBairro(); + + if (selection == null || selection.trim().equals("")) { + selection = LogradouroBairros.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(logradouroBairro.getNomeTabela(), + LogradouroBairro.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + logradouroBairro = logradouroBairro.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return logradouroBairro; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaLogradouroBairro = null; + LogradouroBairro logradouroBairro = new LogradouroBairro(); + try { + listaLogradouroBairro = new ArrayList(); + + cursor = super.getDb().query(logradouroBairro.getNomeTabela(), + LogradouroBairro.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLogradouroBairro = logradouroBairro.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLogradouroBairro; + } + + @Override + public long inserir(LogradouroBairro ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(LogradouroBairro ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = LogradouroBairros.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(LogradouroBairro ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = LogradouroBairros.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroCep.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroCep.java new file mode 100644 index 0000000..81c8b8b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroCep.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroCep.LogradouroCeps; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioLogradouroCep extends RepositorioBase { + + private static RepositorioLogradouroCep instance; + + public RepositorioLogradouroCep() { + super(); + } + + public static RepositorioLogradouroCep getInstance() { + if (instance == null) { + instance = new RepositorioLogradouroCep(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public LogradouroCep pesquisar(LogradouroCep entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + LogradouroCep logradouroCep = new LogradouroCep(); + + if (selection == null || selection.trim().equals("")) { + selection = LogradouroCeps.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(logradouroCep.getNomeTabela(), + LogradouroCep.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + logradouroCep = logradouroCep.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return logradouroCep; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaLogradouroCep = null; + LogradouroCep logradouroCep = new LogradouroCep(); + try { + listaLogradouroCep = new ArrayList(); + + cursor = super.getDb().query(logradouroCep.getNomeTabela(), + LogradouroCep.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLogradouroCep = logradouroCep.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLogradouroCep; + } + + @Override + public long inserir(LogradouroCep ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(LogradouroCep ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = LogradouroCeps.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(LogradouroCep ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = LogradouroCeps.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTipo.java new file mode 100644 index 0000000..503518e --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTipo.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTipo.LogradouroTipoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioLogradouroTipo extends RepositorioBase { + + private static RepositorioLogradouroTipo instance; + + public RepositorioLogradouroTipo() { + super(); + } + + public static RepositorioLogradouroTipo getInstance() { + if (instance == null) { + instance = new RepositorioLogradouroTipo(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(LogradouroTipo entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + LogradouroTipo logradouroTipo = new LogradouroTipo(); + +// if (selection == null || selection.trim().equals("")) { +// selection = LogradouroTipoColunas.ID + "=?"; +// } +// +// if (selectionArgs == null) { +// selectionArgs = new String[] { +// String.valueOf(entity.getId()) +// }; +// } + + try { + cursor = super.getDb().query(logradouroTipo.getNomeTabela(), + LogradouroTipo.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + logradouroTipo = logradouroTipo.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return logradouroTipo; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaLogradouroTipo = null; + LogradouroTipo logradouroTipo = new LogradouroTipo(); + try { + listaLogradouroTipo = new ArrayList(); + + cursor = super.getDb().query(logradouroTipo.getNomeTabela(), + LogradouroTipo.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLogradouroTipo = logradouroTipo.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLogradouroTipo; + } + + @Override + public long inserir(LogradouroTipo logradouroTipo) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = logradouroTipo.carregarValues(); + + try { + return super.getDb().insert(logradouroTipo.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(LogradouroTipo logradouroTipo) throws RepositorioException { + ContentValues values = logradouroTipo.carregarValues(); + + String _id = String.valueOf(logradouroTipo.getId()); + + String where = LogradouroTipoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(logradouroTipo.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(LogradouroTipo logradouroTipo) throws RepositorioException { + String _id = String.valueOf(logradouroTipo.getId()); + + String where = LogradouroTipoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(logradouroTipo.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTitulo.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTitulo.java new file mode 100644 index 0000000..fd56808 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioLogradouroTitulo.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.LogradouroTitulo.LogradouroTituloColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioLogradouroTitulo extends RepositorioBase { + + private static RepositorioLogradouroTitulo instance; + + public RepositorioLogradouroTitulo() { + super(); + } + + public static RepositorioLogradouroTitulo getInstance() { + if (instance == null) { + instance = new RepositorioLogradouroTitulo(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(LogradouroTitulo entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + + if (selection == null || selection.trim().equals("")) { + selection = LogradouroTituloColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(logradouroTitulo.getNomeTabela(), + LogradouroTitulo.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + logradouroTitulo = logradouroTitulo.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return logradouroTitulo; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaLogradouroTitulo = null; + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + try { + listaLogradouroTitulo = new ArrayList(); + + cursor = super.getDb().query(logradouroTitulo.getNomeTabela(), + LogradouroTitulo.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaLogradouroTitulo = logradouroTitulo.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaLogradouroTitulo; + } + + @Override + public long inserir(LogradouroTitulo logradouroTitulo) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = logradouroTitulo.carregarValues(); + + try { + return super.getDb().insert(logradouroTitulo.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(LogradouroTitulo logradouroTitulo) throws RepositorioException { + ContentValues values = logradouroTitulo.carregarValues(); + + String _id = String.valueOf(logradouroTitulo.getId()); + + String where = LogradouroTituloColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(logradouroTitulo.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(LogradouroTitulo logradouroTitulo) throws RepositorioException { + String _id = String.valueOf(logradouroTitulo.getId()); + + String where = LogradouroTituloColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(logradouroTitulo.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMedicaoTipo.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMedicaoTipo.java new file mode 100644 index 0000000..48c56b5 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMedicaoTipo.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.MedicaoTipo; +import com.br.gsanac.entidades.MedicaoTipo.MedicaoTipoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 02/01/13 + */ +public class RepositorioMedicaoTipo extends RepositorioBase { + + private static RepositorioMedicaoTipo instance; + + public RepositorioMedicaoTipo() { + super(); + } + + public static RepositorioMedicaoTipo getInstance() { + if (instance == null) { + instance = new RepositorioMedicaoTipo(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(MedicaoTipo entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + MedicaoTipo medicaoTipo = new MedicaoTipo(); + + if (selection == null || selection.trim().equals("")) { + selection = MedicaoTipoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(medicaoTipo.getNomeTabela(), + MedicaoTipo.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + medicaoTipo = medicaoTipo.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return medicaoTipo; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaMedicaoTipo = null; + MedicaoTipo medicaoTipo = new MedicaoTipo(); + try { + listaMedicaoTipo = new ArrayList(); + + cursor = super.getDb().query(medicaoTipo.getNomeTabela(), + MedicaoTipo.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaMedicaoTipo = medicaoTipo.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaMedicaoTipo; + } + + @Override + public long inserir(MedicaoTipo medicaoTipo) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = medicaoTipo.carregarValues(); + + try { + return super.getDb().insert(medicaoTipo.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(MedicaoTipo medicaoTipo) throws RepositorioException { + ContentValues values = medicaoTipo.carregarValues(); + + String _id = String.valueOf(medicaoTipo.getId()); + + String where = MedicaoTipoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(medicaoTipo.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(MedicaoTipo medicaoTipo) throws RepositorioException { + String _id = String.valueOf(medicaoTipo.getId()); + + String where = MedicaoTipoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(medicaoTipo.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMunicipio.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMunicipio.java new file mode 100644 index 0000000..82b555f --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioMunicipio.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Municipio; +import com.br.gsanac.entidades.Municipio.MunicipioColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioMunicipio extends RepositorioBase { + + private static RepositorioMunicipio instance; + + public RepositorioMunicipio() { + super(); + } + + public static RepositorioMunicipio getInstance() { + if (instance == null) { + instance = new RepositorioMunicipio(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(Municipio entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Municipio municipio = new Municipio(); + +// if (selection == null || selection.trim().equals("")) { +// selection = MunicipioColunas.ID + "=?"; +// } +// +// if (selectionArgs == null) { +// selectionArgs = new String[] { +// String.valueOf(entity.getId()) +// }; +// } + + try { + cursor = super.getDb().query(municipio.getNomeTabela(), + Municipio.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + municipio = municipio.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return municipio; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaMunicipio = null; + Municipio municipio = new Municipio(); + try { + listaMunicipio = new ArrayList(); + + cursor = super.getDb().query(municipio.getNomeTabela(), + Municipio.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaMunicipio = municipio.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaMunicipio; + } + + @Override + public long inserir(Municipio municipio) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = municipio.carregarValues(); + + try { + return super.getDb().insert(municipio.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Municipio municipio) throws RepositorioException { + ContentValues values = municipio.carregarValues(); + + String _id = String.valueOf(municipio.getId()); + + String where = MunicipioColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(municipio.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Municipio municipio) throws RepositorioException { + String _id = String.valueOf(municipio.getId()); + + String where = MunicipioColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(municipio.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioOrgaoExpedidorRg.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioOrgaoExpedidorRg.java new file mode 100644 index 0000000..fefdb48 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioOrgaoExpedidorRg.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.OrgaoExpedidorRg; +import com.br.gsanac.entidades.OrgaoExpedidorRg.OrgaoExpedidorRgColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioOrgaoExpedidorRg extends RepositorioBase { + + private static RepositorioOrgaoExpedidorRg instance; + + public RepositorioOrgaoExpedidorRg() { + super(); + } + + public static RepositorioOrgaoExpedidorRg getInstance() { + if (instance == null) { + instance = new RepositorioOrgaoExpedidorRg(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(OrgaoExpedidorRg entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + OrgaoExpedidorRg orgaoExpedidorRg = new OrgaoExpedidorRg(); + + if (selection == null || selection.trim().equals("")) { + selection = OrgaoExpedidorRgColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(orgaoExpedidorRg.getNomeTabela(), + OrgaoExpedidorRg.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + orgaoExpedidorRg = orgaoExpedidorRg.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return orgaoExpedidorRg; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaOrgaoExpedidorRg = null; + OrgaoExpedidorRg orgaoExpedidorRg = new OrgaoExpedidorRg(); + try { + listaOrgaoExpedidorRg = new ArrayList(); + + cursor = super.getDb().query(orgaoExpedidorRg.getNomeTabela(), + OrgaoExpedidorRg.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaOrgaoExpedidorRg = orgaoExpedidorRg.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaOrgaoExpedidorRg; + } + + @Override + public long inserir(OrgaoExpedidorRg orgaoExpedidorRg) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = orgaoExpedidorRg.carregarValues(); + + try { + return super.getDb().insert(orgaoExpedidorRg.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(OrgaoExpedidorRg orgaoExpedidorRg) throws RepositorioException { + ContentValues values = orgaoExpedidorRg.carregarValues(); + + String _id = String.valueOf(orgaoExpedidorRg.getId()); + + String where = OrgaoExpedidorRgColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(orgaoExpedidorRg.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(OrgaoExpedidorRg orgaoExpedidorRg) throws RepositorioException { + String _id = String.valueOf(orgaoExpedidorRg.getId()); + + String where = OrgaoExpedidorRgColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(orgaoExpedidorRg.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoCalcada.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoCalcada.java new file mode 100644 index 0000000..317b981 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoCalcada.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.PavimentoCalcada; +import com.br.gsanac.entidades.PavimentoCalcada.PavimentoCalcadas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioPavimentoCalcada extends RepositorioBase { + + private static RepositorioPavimentoCalcada instance; + + public RepositorioPavimentoCalcada() { + super(); + } + + public static RepositorioPavimentoCalcada getInstance() { + if (instance == null) { + instance = new RepositorioPavimentoCalcada(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public PavimentoCalcada pesquisar(PavimentoCalcada entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + + if (selection == null || selection.trim().equals("")) { + selection = PavimentoCalcadas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(pavimentoCalcada.getNomeTabela(), + PavimentoCalcada.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + pavimentoCalcada = pavimentoCalcada.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return pavimentoCalcada; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaPavimentoCalcada = null; + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + try { + listaPavimentoCalcada = new ArrayList(); + + cursor = super.getDb().query(pavimentoCalcada.getNomeTabela(), + PavimentoCalcada.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaPavimentoCalcada = pavimentoCalcada.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaPavimentoCalcada; + } + + @Override + public long inserir(PavimentoCalcada ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(PavimentoCalcada ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = PavimentoCalcadas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(PavimentoCalcada ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = PavimentoCalcadas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoRua.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoRua.java new file mode 100644 index 0000000..ccd3e2f --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPavimentoRua.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.PavimentoRua; +import com.br.gsanac.entidades.PavimentoRua.PavimentoRuas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioPavimentoRua extends RepositorioBase { + + private static RepositorioPavimentoRua instance; + + public RepositorioPavimentoRua() { + super(); + } + + public static RepositorioPavimentoRua getInstance() { + if (instance == null) { + instance = new RepositorioPavimentoRua(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public PavimentoRua pesquisar(PavimentoRua entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + PavimentoRua pavimentoRua = new PavimentoRua(); + + if (selection == null || selection.trim().equals("")) { + selection = PavimentoRuas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(pavimentoRua.getNomeTabela(), + PavimentoRua.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + pavimentoRua = pavimentoRua.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return pavimentoRua; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaPavimentoRua = null; + PavimentoRua pavimentoRua = new PavimentoRua(); + try { + listaPavimentoRua = new ArrayList(); + + cursor = super.getDb().query(pavimentoRua.getNomeTabela(), + PavimentoRua.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaPavimentoRua = pavimentoRua.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaPavimentoRua; + } + + @Override + public long inserir(PavimentoRua ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(PavimentoRua ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = PavimentoRuas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(PavimentoRua ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = PavimentoRuas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPessoaSexo.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPessoaSexo.java new file mode 100644 index 0000000..6bf72a3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioPessoaSexo.java @@ -0,0 +1,173 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.PessoaSexo; +import com.br.gsanac.entidades.PessoaSexo.PessoaSexoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + * @date 06/12/12 + */ +public class RepositorioPessoaSexo extends RepositorioBase { + + private static RepositorioPessoaSexo instance; + + public RepositorioPessoaSexo() { + super(); + } + + public static RepositorioPessoaSexo getInstance() { + if (instance == null) { + instance = new RepositorioPessoaSexo(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public PessoaSexo pesquisar(PessoaSexo entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + PessoaSexo pessoaSexo = new PessoaSexo(); + + if (selection == null || selection.trim().equals("")) { + selection = PessoaSexoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(pessoaSexo.getNomeTabela(), + PessoaSexo.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + pessoaSexo = pessoaSexo.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return pessoaSexo; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaPessoaSexo = null; + PessoaSexo pessoaSexo = new PessoaSexo(); + try { + listaPessoaSexo = new ArrayList(); + + cursor = super.getDb().query(pessoaSexo.getNomeTabela(), + PessoaSexo.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaPessoaSexo = pessoaSexo.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaPessoaSexo; + } + + @Override + public long inserir(PessoaSexo ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(PessoaSexo ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = PessoaSexoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(PessoaSexo ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = PessoaSexoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioQuadra.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioQuadra.java new file mode 100644 index 0000000..5b62874 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioQuadra.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.Quadra; +import com.br.gsanac.entidades.Quadra.QuadraColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 12/12/12 + */ +public class RepositorioQuadra extends RepositorioBase { + + private static RepositorioQuadra instance; + + public RepositorioQuadra() { + super(); + } + + public static RepositorioQuadra getInstance() { + if (instance == null) { + instance = new RepositorioQuadra(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(Quadra entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + Quadra quadra = new Quadra(); + + if (selection == null || selection.trim().equals("")) { + selection = QuadraColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(quadra.getNomeTabela(), + Quadra.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + quadra = quadra.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return quadra; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaQuadra = null; + Quadra quadra = new Quadra(); + try { + listaQuadra = new ArrayList(); + + cursor = super.getDb().query(quadra.getNomeTabela(), + Quadra.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaQuadra = quadra.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaQuadra; + } + + @Override + public long inserir(Quadra quadra) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = quadra.carregarValues(); + + try { + return super.getDb().insert(quadra.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(Quadra quadra) throws RepositorioException { + ContentValues values = quadra.carregarValues(); + + String _id = String.valueOf(quadra.getId()); + + String where = QuadraColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(quadra.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(Quadra quadra) throws RepositorioException { + String _id = String.valueOf(quadra.getId()); + + String where = QuadraColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(quadra.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSetorComercial.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSetorComercial.java new file mode 100644 index 0000000..e169040 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSetorComercial.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.SetorComercial; +import com.br.gsanac.entidades.SetorComercial.SetorComercialColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 25/06/2013 + */ +public class RepositorioSetorComercial extends RepositorioBase { + + private static RepositorioSetorComercial instance; + + public RepositorioSetorComercial() { + super(); + } + + public static RepositorioSetorComercial getInstance() { + if (instance == null) { + instance = new RepositorioSetorComercial(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(SetorComercial entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + SetorComercial setorComercial = new SetorComercial(); + + if (selection == null || selection.trim().equals("")) { + selection = SetorComercialColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(setorComercial.getNomeTabela(), + SetorComercial.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + setorComercial = setorComercial.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return setorComercial; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaSetorComercial = null; + SetorComercial setorComercial = new SetorComercial(); + try { + listaSetorComercial = new ArrayList(); + + cursor = super.getDb().query(setorComercial.getNomeTabela(), + SetorComercial.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaSetorComercial = setorComercial.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaSetorComercial; + } + + @Override + public long inserir(SetorComercial setorComercial) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = setorComercial.carregarValues(); + + try { + return super.getDb().insert(setorComercial.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(SetorComercial setorComercial) throws RepositorioException { + ContentValues values = setorComercial.carregarValues(); + + String _id = String.valueOf(setorComercial.getId()); + + String where = SetorComercialColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(setorComercial.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(SetorComercial setorComercial) throws RepositorioException { + String _id = String.valueOf(setorComercial.getId()); + + String where = SetorComercialColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(setorComercial.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSistemaParametros.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSistemaParametros.java new file mode 100644 index 0000000..7749838 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSistemaParametros.java @@ -0,0 +1,253 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.entidades.SistemaParametros.SistemaParametrosColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Arthur Carvalho + */ +public class RepositorioSistemaParametros extends RepositorioBase { + + private static RepositorioSistemaParametros instance; + + public RepositorioSistemaParametros() { + super(); + } + + public static RepositorioSistemaParametros getInstance() { + if (instance == null) { + instance = new RepositorioSistemaParametros(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + + @Override + public SistemaParametros pesquisar(SistemaParametros entity, String selection, String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + SistemaParametros sistemaParametros = new SistemaParametros(); + +// if (selection == null || selection.trim().equals("")) { +// selection = SistemaParametrosColunas.ID + "=?"; +// } +// +// if (selectionArgs == null) { +// selectionArgs = new String[] { +// String.valueOf(1) +// }; +// } + + try { + cursor = super.getDb().query(sistemaParametros.getNomeTabela(), + SistemaParametros.colunas, + selection, + selectionArgs, + null, + null, + null, + null); + + sistemaParametros = sistemaParametros.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return sistemaParametros; + } + + @Override + public List pesquisarLista(String selection, String[] selectionArgs, String orderBy) throws RepositorioException { + Cursor cursor = null; + + List listaSistemaParametros = null; + SistemaParametros sistemaParametros = new SistemaParametros(); + try { + listaSistemaParametros = new ArrayList(); + + cursor = super.getDb().query(sistemaParametros.getNomeTabela(), + SistemaParametros.colunas, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaSistemaParametros = sistemaParametros.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaSistemaParametros; + } + + @Override + public long inserir(SistemaParametros ps) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = ps.carregarValues(); + + try { + return super.getDb().insert(ps.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(SistemaParametros ps) throws RepositorioException { + + ContentValues values = ps.carregarValues(); + + String _id = String.valueOf(ps.getId()); + + String where = SistemaParametrosColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(ps.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(SistemaParametros ps) throws RepositorioException { + String _id = String.valueOf(ps.getId()); + + String where = SistemaParametrosColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(ps.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param login + * @param password + * @return + * @throws RepositorioException + */ + public SistemaParametros validarLogin(String login, String password) throws RepositorioException { + + Cursor cursor = null; + + SistemaParametros sistemaParametros = new SistemaParametros(); + + try { + cursor = super.getDb().query(sistemaParametros.getNomeTabela(), + SistemaParametros.colunas, + SistemaParametrosColunas.LOGIN + "='" + login + "' AND " + SistemaParametrosColunas.SENHA + "='" + password + "'", + null, + null, + null, + null, + null); + + sistemaParametros = sistemaParametros.carregarEntidade(cursor); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return sistemaParametros; + } + + /** + * + * @author Arthur Carvalho + * @date 06/12/2012 + * + * @param login + * @param password + * @return + * @throws RepositorioException + */ + public SistemaParametros validarLoginCpf(String login) throws RepositorioException { + + Cursor cursor = null; + + SistemaParametros sistemaParametros = new SistemaParametros(); + + try { + cursor = super.getDb().query(sistemaParametros.getNomeTabela(), + SistemaParametros.colunas, + SistemaParametrosColunas.LOGIN + "='" + login + "' AND " + SistemaParametrosColunas.SENHA + " is null ", + null, + null, + null, + null, + null); + + sistemaParametros = sistemaParametros.carregarEntidade(cursor); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return sistemaParametros; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSubCategoria.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSubCategoria.java new file mode 100644 index 0000000..fbb1a56 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioSubCategoria.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.SubCategoria; +import com.br.gsanac.entidades.SubCategoria.SubCategoriaColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Anderson Cabral + * @date 10/12/12 + */ +public class RepositorioSubCategoria extends RepositorioBase { + + private static RepositorioSubCategoria instance; + + public RepositorioSubCategoria() { + super(); + } + + public static RepositorioSubCategoria getInstance() { + if (instance == null) { + instance = new RepositorioSubCategoria(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(SubCategoria entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + SubCategoria subCategoria = new SubCategoria(); + + if (selection == null || selection.trim().equals("")) { + selection = SubCategoriaColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(subCategoria.getNomeTabela(), + SubCategoria.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + subCategoria = subCategoria.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return subCategoria; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaSubCategoria = null; + SubCategoria subCategoria = new SubCategoria(); + try { + listaSubCategoria = new ArrayList(); + + cursor = super.getDb().query(subCategoria.getNomeTabela(), + SubCategoria.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaSubCategoria = subCategoria.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaSubCategoria; + } + + @Override + public long inserir(SubCategoria subCategoria) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = subCategoria.carregarValues(); + + try { + return super.getDb().insert(subCategoria.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(SubCategoria subCategoria) throws RepositorioException { + ContentValues values = subCategoria.carregarValues(); + + String _id = String.valueOf(subCategoria.getId()); + + String where = SubCategoriaColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(subCategoria.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(SubCategoria subCategoria) throws RepositorioException { + String _id = String.valueOf(subCategoria.getId()); + + String where = SubCategoriaColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(subCategoria.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioUnidadeFederacao.java b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioUnidadeFederacao.java new file mode 100644 index 0000000..9e7e930 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/repositorio/RepositorioUnidadeFederacao.java @@ -0,0 +1,174 @@ +package com.br.gsanac.repositorio; + +import java.util.ArrayList; +import java.util.List; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.SQLException; +import android.util.Log; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.EntidadeBase; +import com.br.gsanac.entidades.UnidadeFederacao; +import com.br.gsanac.entidades.UnidadeFederacao.UnidadeFederacaoColunas; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.util.ConstantesSistema; + +/** + * @author Davi Menezes + * @date 27/12/12 + */ +public class RepositorioUnidadeFederacao extends RepositorioBase { + + private static RepositorioUnidadeFederacao instance; + + public RepositorioUnidadeFederacao() { + super(); + } + + public static RepositorioUnidadeFederacao getInstance() { + if (instance == null) { + instance = new RepositorioUnidadeFederacao(); + } + return instance; + } + + public static void removeInstance(){ + instance = null; + } + + @Override + public EntidadeBase pesquisar(UnidadeFederacao entity, String selection, + String[] selectionArgs) throws RepositorioException { + + Cursor cursor = null; + + UnidadeFederacao unidadeFederacao = new UnidadeFederacao(); + + if (selection == null || selection.trim().equals("")) { + selection = UnidadeFederacaoColunas.ID + "=?"; + } + + if (selectionArgs == null) { + selectionArgs = new String[] { + String.valueOf(entity.getId()) + }; + } + + try { + cursor = super.getDb().query(unidadeFederacao.getNomeTabela(), + UnidadeFederacao.columns, + selection, + selectionArgs, + null, + null, + null, + null); + + unidadeFederacao = unidadeFederacao.carregarEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return unidadeFederacao; + } + + @Override + public List pesquisarLista(String selection, + String[] selectionArgs, String orderBy) throws RepositorioException { + + Cursor cursor = null; + + List listaUnidadeFederacao = null; + UnidadeFederacao unidadeFederacao = new UnidadeFederacao(); + try { + listaUnidadeFederacao = new ArrayList(); + + cursor = super.getDb().query(unidadeFederacao.getNomeTabela(), + UnidadeFederacao.columns, + selection, + selectionArgs, + null, + null, + orderBy, + null); + + + listaUnidadeFederacao = unidadeFederacao.carregarListaEntidade(cursor); + + } catch (Exception e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " " + e.getCause()); + e.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_search_record)); + } finally { + if (cursor != null) { + cursor.close(); + } + } + + return listaUnidadeFederacao; + } + + @Override + public long inserir(UnidadeFederacao unidadeFederacao) throws RepositorioException { + ContentValues values = new ContentValues(); + + values = unidadeFederacao.carregarValues(); + + try { + return super.getDb().insert(unidadeFederacao.getNomeTabela(), "", values); + + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error_insert_record)); + } + } + + @Override + public void atualizar(UnidadeFederacao unidadeFederacao) throws RepositorioException { + ContentValues values = unidadeFederacao.carregarValues(); + + String _id = String.valueOf(unidadeFederacao.getId()); + + String where = UnidadeFederacaoColunas.ID + "=?"; + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().update(unidadeFederacao.getNomeTabela(), values, where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } + + @Override + public void remover(UnidadeFederacao unidadeFederacao) throws RepositorioException { + String _id = String.valueOf(unidadeFederacao.getId()); + + String where = UnidadeFederacaoColunas.ID + "=?"; + + String[] whereArgs = new String[] { + _id + }; + + try { + super.getDb().delete(unidadeFederacao.getNomeTabela(), where, whereArgs); + } catch (SQLException sqe) { + Log.e(ConstantesSistema.LOG_TAG, sqe.getMessage() + " " + sqe.getCause()); + sqe.printStackTrace(); + throw new RepositorioException(context.getResources().getString(R.string.db_error)); + } + } +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/CarregarArquivoDividido.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/CarregarArquivoDividido.java new file mode 100644 index 0000000..278f108 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/CarregarArquivoDividido.java @@ -0,0 +1,386 @@ +package com.br.gsanac.util; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.List; + +import android.util.Log; + +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.Ceps; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunas; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.Logradouros; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.repositorio.RepositorioCep; +import com.br.gsanac.repositorio.RepositorioClienteAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioClienteFoneAtlzCad; +import com.br.gsanac.repositorio.RepositorioFoto; +import com.br.gsanac.repositorio.RepositorioHidrometroInstHistAtlzCad; +import com.br.gsanac.repositorio.RepositorioImovelAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioImovelOcorrencia; +import com.br.gsanac.repositorio.RepositorioImovelSubCategAtlzCad; +import com.br.gsanac.repositorio.RepositorioLogradouro; +import com.br.gsanac.repositorio.RepositorioLogradouroBairro; +import com.br.gsanac.repositorio.RepositorioLogradouroCep; +import com.br.gsanac.repositorio.RepositorioSistemaParametros; + + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class CarregarArquivoDividido { + + private static DBLoader instance; + + private static int i = 0; + + private static long idImovelAtlzCad = 0; + + private static boolean arquivoDivididoComando = true; + + private static boolean imovelNaoFinalizado = true; + + public static DBLoader getInstance() { + if (instance == null) { + instance = new DBLoader(); + } + return instance; + } + + public static boolean carregarArquivoFromInputStream(InputStream input, boolean isToDropDB) { + + boolean retorno = false; + try { + + InputStreamReader inputReader = new InputStreamReader(input, "ISO-8859-1"); + BufferedReader reader = new BufferedReader(inputReader); + String line; + + while ((line = reader.readLine()) != null) { + if ( !arquivoDivididoComando ) { + break; + } + carregarBancoDadosArquivoDividido(line); + } + + if ( arquivoDivididoComando ) { + retorno = true; + } else { + retorno = false; + } + + arquivoDivididoComando = true; + + } catch (IOException ioe) { + ioe.printStackTrace(); + } catch (RepositorioException re) { + re.printStackTrace(); + } + return retorno; + } + + /** + * @author Arthur Carvalho + * @since 09/09/2011 + * @param line + * @throws RepositorioException + */ + public static void carregarBancoDadosArquivoDividido(String line) throws RepositorioException { + + List objectArray = Util.split(line); + + String registerType = objectArray.get(0); + + //Carrega o arquivo caso seja do mesmo comando do supervisor e o arquivo seja do tipo do subordinado. + if ( arquivoDivididoComando ) { + + if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_CEP)){ + + RepositorioCep.getInstance().inserir(Cep.inserirAtualizarDoArquivoDividido(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_LOGRADOURO)){ + RepositorioLogradouro.getInstance().inserir(Logradouro.inserirAtualizarDoArquivoDividido(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_LOGRADOURO_BAIRRO)){ + + String selectionl = Logradouros.CODIGO_UNICO + "=?"; + + String[] selectionArgsl= new String[] { + objectArray.get(1) + }; + + Logradouro logradouro = new Logradouro(); + + try { + logradouro = (Logradouro) Fachada.getInstance().pesquisar(logradouro, selectionl, selectionArgsl); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + RepositorioLogradouroBairro.getInstance().inserir(LogradouroBairro.inserirAtualizarDoArquivoDividido(objectArray, logradouro)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_LOGRADOURO_CEP)){ + + String selectionl = Logradouros.CODIGO_UNICO + "=?"; + + String[] selectionArgsl= new String[] { + objectArray.get(2) + }; + + Logradouro logradouro = new Logradouro(); + + try { + logradouro = (Logradouro) Fachada.getInstance().pesquisar(logradouro, selectionl, selectionArgsl); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + + String selectionC = Ceps.CODIGO_UNICO + "=?"; + + String[] selectionArgsC= new String[] { + objectArray.get(1) + }; + + Cep cep = new Cep(); + try { + cep = (Cep) Fachada.getInstance().pesquisar(cep, selectionC, selectionArgsC); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + + RepositorioLogradouroCep.getInstance().inserir(LogradouroCep.inserirAtualizarDoArquivoDividido(objectArray, logradouro, cep)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_IMOVEL_ATLZ_CADASTRAL)){ + + //Imovel ja cadastrado ( indice 2 = imov_id ) + Integer posicao = null; + if ( objectArray.get(2) != null && !objectArray.get(2).equals("0") && !objectArray.get(2).equals("")) { + + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + imovelAtlzCadastral.setId(objectArray.get(1)); + String selectionl = Logradouros.CODIGO_UNICO + "=?"; + + String[] selectionArgsl= new String[] { + objectArray.get(9) + }; + + Logradouro logradouro = new Logradouro(); + + try { + //pesquisa logradouro novo para o imovel + logradouro = (Logradouro) Fachada.getInstance().pesquisar(logradouro, selectionl, selectionArgsl); + + //caso nao seja logradouro novo pesquisa logradouro ja cadastrado + if ( logradouro == null || logradouro.getId() == null ) { + selectionl = Logradouros.ID + "=?"; + + selectionArgsl= new String[] { + objectArray.get(9) + }; + + logradouro = new Logradouro(); + + logradouro = (Logradouro) Fachada.getInstance().pesquisar(logradouro, selectionl, selectionArgsl); + } + + imovelAtlzCadastral = (ImovelAtlzCadastral) Fachada.getInstance().pesquisar(imovelAtlzCadastral, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + if ( imovelAtlzCadastral.getIndicadorFinalizado() != null && + !imovelAtlzCadastral.getIndicadorFinalizado().toString().equals(String.valueOf(ConstantesSistema.SIM)) ) { + + RepositorioImovelAtlzCadastral.getInstance().atualizar(ImovelAtlzCadastral.inserirAtualizarDoArquivoDividido(objectArray, posicao, imovelAtlzCadastral, logradouro)); + + //remover o hidrometro + RepositorioHidrometroInstHistAtlzCad.getInstance().remover(objectArray.get(1)); + + //remover imovel subcategoria + RepositorioImovelSubCategAtlzCad.getInstance().remover(objectArray.get(1)); + + //remover o cliente + RepositorioClienteAtlzCadastral.getInstance().remover(objectArray.get(1)); + imovelNaoFinalizado = true; + idImovelAtlzCad = Long.valueOf(objectArray.get(1)); + } else { + imovelNaoFinalizado = false; + } + } else { + + imovelNaoFinalizado = true; + String selectionl = Logradouros.CODIGO_UNICO + "=?"; + + String[] selectionArgsl= new String[] { + objectArray.get(9) + }; + + Logradouro logradouro = new Logradouro(); + + try { + logradouro = (Logradouro) Fachada.getInstance().pesquisar(logradouro, selectionl, selectionArgsl); + + //caso nao seja logradouro novo pesquisa logradouro ja cadastrado + if ( logradouro == null || logradouro.getId() == null ) { + selectionl = Logradouros.ID + "=?"; + + selectionArgsl= new String[] { + objectArray.get(9) + }; + + logradouro = new Logradouro(); + + logradouro = (Logradouro) Fachada.getInstance().pesquisar(logradouro, selectionl, selectionArgsl); + } + + + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + posicao = Integer.valueOf(sistemaParametros.getQuantidadeImovel()) + Integer.valueOf(1) ; + sistemaParametros.setQuantidadeImovel(String.valueOf( posicao )); + RepositorioSistemaParametros.getInstance().atualizar(sistemaParametros); + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + idImovelAtlzCad = RepositorioImovelAtlzCadastral.getInstance().inserir(ImovelAtlzCadastral.inserirAtualizarDoArquivoDividido(objectArray, posicao, imovelAtlzCadastral, logradouro)); + } catch (FachadaException e) { + e.printStackTrace(); + } + } + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_CLIENTE_ATLZ_CADASTRAL)){ + if ( imovelNaoFinalizado ) { + RepositorioClienteAtlzCadastral.getInstance().inserir(ClienteAtlzCadastral.inserirAtualizarDoArquivoDividido(objectArray, idImovelAtlzCad)); + //remove os telefones do cliente + RepositorioClienteFoneAtlzCad.getInstance().remover(objectArray.get(12)); + } + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_CLIENTE_FONE_ATLZ_CADASTRAL)){ + if ( imovelNaoFinalizado ) { + RepositorioClienteFoneAtlzCad.getInstance().inserir(ClienteFoneAtlzCad.inserirAtualizarDoArquivoDividido(objectArray)); + } + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_HIDROMETRO_ATLZ_CADASTRAL)){ + if ( imovelNaoFinalizado ) { + RepositorioHidrometroInstHistAtlzCad.getInstance().inserir(HidrometroInstHistAtlzCad.inserirAtualizarDoArquivoDividido(objectArray, idImovelAtlzCad)); + } + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_SUBCATEGORIA_ATLZ_CADASTRAL)){ + if ( imovelNaoFinalizado ) { + RepositorioImovelSubCategAtlzCad.getInstance().inserir(ImovelSubCategAtlzCad.inserirAtualizarDoArquivoDividido(objectArray, idImovelAtlzCad)); + } + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_OCORRENCIA_ATLZ_CADASTRAL)){ + if ( imovelNaoFinalizado ) { + String selectionl = ImovelAtlzCadastralColunas.INTEGRACAO + "=?"; + + String[] selectionArgsl = new String[] { + objectArray.get(2) + }; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + try { + imovelAtlzCadastral = (ImovelAtlzCadastral) Fachada.getInstance().pesquisar(imovelAtlzCadastral, selectionl, selectionArgsl); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + e.printStackTrace(); + } + + + RepositorioImovelOcorrencia.getInstance().inserir(ImovelOcorrencia.inserirAtualizarDoArquivoDividido(objectArray, imovelAtlzCadastral)); + } + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_IMOVEL_TRANSMITIDO)){ + + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + imovelAtlzCadastral.setId(objectArray.get(1)); + try { + imovelAtlzCadastral = (ImovelAtlzCadastral) Fachada.getInstance().pesquisar(imovelAtlzCadastral, null, null); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + + + imovelAtlzCadastral.setIndicadorTransmitido(ConstantesSistema.INDICADOR_TRANSMITIDO); + imovelAtlzCadastral.setIndicadorFinalizado(ConstantesSistema.SIM); + + RepositorioImovelAtlzCadastral.getInstance().atualizar(imovelAtlzCadastral); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_AD_IMOVEL_FOTO)){ + if ( imovelNaoFinalizado ) { + String selectionl = ImovelAtlzCadastralColunas.INTEGRACAO + "=?"; + + String[] selectionArgsl = new String[] { + objectArray.get(3) + }; + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + try { + imovelAtlzCadastral = (ImovelAtlzCadastral) Fachada.getInstance().pesquisar(imovelAtlzCadastral, selectionl, selectionArgsl); + } catch (FachadaException e) { + e.printStackTrace(); + } catch (Exception e) { + e.printStackTrace(); + } + + RepositorioFoto.getInstance().inserir(Foto.inserirAtualizarDoArquivoDividido(objectArray, imovelAtlzCadastral)); + } + i++; + } else if(registerType.equals(ConstantesSistema.ARQUIVO_TRANSMITIDO_USUARIO_SEM_LOGIN)){ + + String idComando = objectArray.get(1); + + try { + SistemaParametros sistemaParametros = new SistemaParametros(); + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + if ( !sistemaParametros.getIdComando().toString().equals(idComando) ) { + arquivoDivididoComando = false; + } + } catch (FachadaException e) { + e.printStackTrace(); + } + i++; + } else if(registerType.equals(ConstantesSistema.ARQUIVO_TRANSMITIDO_USUARIO_COM_LOGIN)){ + + arquivoDivididoComando = false; + i++; + } + + } + + Log.i(ConstantesSistema.LOG_TAG, i + " " + line); + + objectArray.clear(); + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/Compress.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/Compress.java new file mode 100644 index 0000000..366cacc --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/Compress.java @@ -0,0 +1,66 @@ +package com.br.gsanac.util; + +import java.io.BufferedInputStream; +import java.io.BufferedOutputStream; +import java.io.ByteArrayOutputStream; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.zip.GZIPOutputStream; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + +import android.util.Log; + +public class Compress { + private static final int BUFFER = 2048; + + private String[] _files; + private String _zipFile; + + public Compress(String[] files, String zipFile) { + _files = files; + _zipFile = zipFile; + } + + public void zip() { + try { + BufferedInputStream origin = null; + FileOutputStream dest = new FileOutputStream(_zipFile); + + ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(dest)); + + byte data[] = new byte[BUFFER]; + + for (int i = 0; i < _files.length; i++) { + Log.v("Compress", "Adding: " + _files[i]); + FileInputStream fi = new FileInputStream(_files[i]); + origin = new BufferedInputStream(fi, + BUFFER); + ZipEntry entry = new ZipEntry(_files[i].substring(_files[i].lastIndexOf("/") + 1)); + out.putNextEntry(entry); + int count; + while ((count = origin.read(data, 0, BUFFER)) != -1) { + out.write(data, 0, count); + } + origin.close(); + } + + out.close(); + } catch (Exception e) { + e.printStackTrace(); + } + + } + + public static byte[] compress(String string) throws IOException { + ByteArrayOutputStream os = new ByteArrayOutputStream(string.length()); + GZIPOutputStream gos = new GZIPOutputStream(os); + gos.write(string.getBytes()); + gos.close(); + byte[] compressed = os.toByteArray(); + os.close(); + return compressed; + } + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/ConstantesSistema.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/ConstantesSistema.java new file mode 100644 index 0000000..aad0108 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/ConstantesSistema.java @@ -0,0 +1,357 @@ +package com.br.gsanac.util; + +import android.os.Environment; + +/** + * @author Arthur Carvalho + */ +public class ConstantesSistema { + + /** + * Categoria do LogCat + */ + public static final String LOG_TAG = "GSANAC"; + + public static final String DATABASE_NAME = "gsanac_database-2.dat"; + + public static final String DATABASE_PATH = "data/data/com.br.gsanac/databases/"; + + /** + * URL do GSAN + */ + //Desenvolvedor Pinto + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8098/gsan"; + +// Arthur +// public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8104/gsan"; + + + // Flavio + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8128/gsan"; + + //Anderson + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:9193/gsan"; + + //Davi + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8102/gsan"; + + //Paulo + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8124/gsan"; + + //Servidor Desenvolvimento IPAD 239 + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8116/gsan"; + + //Servidor Desenvolvimento IPAD 241 + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8087/gsan"; + + //Servidor Desenvolvimento IPAD 242 + //public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8081/gsan"; + + //Servidor Desenvolvimento IPAD 240 + // public static final String GSAN_HOST = "http://gsan.gsansaneamento.com.br:8122/gsan"; + + // Producao (COMPESA) OFICIAL + public static final String GSAN_HOST = "http://200.167.199.198:8083/gsan"; + + // Servidor Bruno Barros + //public static final String GSAN_HOST = "http://200.167.199.198:8083/gsan"; + + + /** + * Action do GSAN para o download do arquivo + */ + public static final String ACTION = GSAN_HOST+ "/processarRequisicaoDispositivoMovelAtualizacaoCadastralAction.do"; + /** + * Indicador SIM + */ + public static final int SIM = 1; + + /** + * Indicador NAO + */ + public static final int NAO = 2; + + /** + * Indicador SIM + */ + public static final int FINALIZADO = 1; + + /** + * Indicador NAO + */ + public static final int PENDENTE = 2; + + /** + * Formato da data no padrao do SQLite + */ + public static final String DATE_FORMAT_DATABASE = "yyyy-MM-dd HH:mm:ss"; + + /** + * Formato da data no padrao brasileiro + */ + public static final String DATE_FORMAT_BRAZIL = "dd/MM/yyyy"; + + public static final String DATE_COM_HORA_FORMAT_BRAZIL = "dd/MM/yyyy HH:mm:ss"; + + /** + * + */ + public static final String DATE_FORMAT_FILENAME = "ddMMyyyyHHmmss"; + + /** + * + */ + public static final String ALERT_OK = "OK"; + + public static final int CAMERA_TAKE_PICTURE = 8291; + + + public static final int BOTAO_REMOVER_BAIRRO_ID = 1; + public static final int BOTAO_REMOVER_CEP_ID = 2; + + public static final int BOTAO_REMOVER_TELEFONE_ID = 1; + + public static final int BOTAO_REMOVER_OCORRENCIA_ID = 1; + + //Fone Tipo + public static final int FOTO_TIPO_FRENTE_DE_CASA = 4; + public static final int FOTO_TIPO_HIDROMETRO = 5; + + + public static final int BOTAO_REMOVER_CATEGORIA_ID = 1; + + public static final Integer ARQUIVO_EM_CAMPO = Integer.valueOf(3); + public static final Integer ARQUIVO_FINALIZADO = Integer.valueOf(4); + + /** + * Tipos de Registro + */ + + public static final String REGISTRO_TIPO_BAIRRO = "01"; + + public static final String REGISTRO_TIPO_CEP = "02"; + + public static final String REGISTRO_TIPO_LOGRADOURO = "03"; + + public static final String REGISTRO_TIPO_LOGRADOURO_BAIRRO = "04"; + + public static final String REGISTRO_TIPO_LOGRADOURO_CEP = "05"; + + public static final String REGISTRO_TIPO_PAVIMENTO_RUA = "06"; + + public static final String REGISTRO_TIPO_PAVIMENTO_CALCADA = "07"; + + public static final String REGISTRO_TIPO_FONTE_ABASTECIMENTO = "08"; + + public static final String REGISTRO_TIPO_CATEGORIA = "09"; + + public static final String REGISTRO_TIPO_SUBCATEGORIA = "10"; + + public static final String REGISTRO_TIPO_LIGACAO_AGUA_SITUACAO = "11"; + + public static final String REGISTRO_TIPO_LIGACAO_ESGOTO_SITUACAO = "12"; + + public static final String REGISTRO_TIPO_HIDROMETRO_LOCAL_INST = "13"; + + public static final String REGISTRO_TIPO_HIDROMETRO_PROTECAO = "14"; + + public static final String REGISTRO_TIPO_ORGAO_EXPEDIDOR_RG = "15"; + + public static final String REGISTRO_TIPO_ENDERECO_REFERENCIA = "16"; + + public static final String REGISTRO_TIPO_PESSOA_SEXO = "17"; + + public static final String REGISTRO_TIPO_FONE_TIPO = "18"; + + public static final String REGISTRO_TIPO_SISTEMA_PARAMETRO = "19"; + + public static final String REGISTRO_TIPO_IMOVEL_ATLZ_CADASTRAL = "20"; + + public static final String REGISTRO_TIPO_CLIENTE_ATLZ_CADASTRAL = "21"; + + public static final String REGISTRO_TIPO_CLIENTE_FONE_ATLZ_CADASTRAL = "22"; + + public static final String REGISTRO_TIPO_HIDROM_INST_HIST_ATL_CAD = "23"; + + public static final String REGISTRO_TIPO_IMOVEL_SUBCATG_ATLZ_CAD = "24"; + + public static final String REGISTRO_TIPO_LOGRADOURO_TIPO = "25"; + + public static final String REGISTRO_TIPO_LOGRADOURO_TITULO = "26"; + + public static final String REGISTRO_TIPO_MUNICIPIO = "27"; + + public static final String REGISTRO_TIPO_QUADRA = "29"; + + public static final String REGISTRO_TIPO_IMOVEL_PERFIL = "28"; + + public static final String REGISTRO_TIPO_CADASTRO_OCORRENCIA = "30"; + + public static final String REGISTRO_TIPO_UNIDADE_FEDERACAO = "31"; + + public static final String REGISTRO_TIPO_HIDROMETRO_MARCA = "32"; + + public static final String REGISTRO_TIPO_HIDROMETRO_CAPACIDADE = "33"; + + public static final String REGISTRO_TIPO_CLIENTE_TIPO = "34"; + + public static final String REGISTRO_TIPO_MEDICAO_TIPO = "35"; + + public static final String REGISTRO_TIPO_SETOR_COMERCIAL = "36"; + + public static final String REGISTRO_TIPO_ARQUIVO_CARREGADO_COMPLETO = "37"; + + public static final String COLUMN_DESCRIPTION_ALIAS = "description"; + + public static final String COLUMN_TIPO_ALIAS = "tipo"; + + public static final String COLUMN_TITULO_ALIAS = "titulo"; + + public static final String COLUMN_LOGRADOURO_ALIAS = "logradouro"; + + public static final String COLUMN_DESC_FORMATADA_ALIAS = "descricaoFormatada"; + + + /** + * SDCard + */ + public static final String SDCARD_PATH = Environment.getExternalStorageDirectory().toString(); + + public static final String SDCARD_GSANAC_PATH = SDCARD_PATH + "/gsanAC/"; + + public static final String SDCARD_BANCO_PATH = SDCARD_GSANAC_PATH + "banco"; + + public static final String SDCARD_GSANAC_RETURN_PATH = SDCARD_GSANAC_PATH + "retorno"; + + public static final String SDCARD_GSANAC_PHOTOS_PATH = SDCARD_GSANAC_PATH + "fotos"; + + public static final String SDCARD_GSANAC_FILES_PATH = SDCARD_GSANAC_PATH + "arquivos"; + + public static final String SDCARD_GSANAC_ARQUIVO_DIVIDIDO_PATH = SDCARD_GSANAC_PATH + "arquivo_dividido"; + + public static final String SDCARD_DCIM_CAMERA_PATH = SDCARD_PATH + "/DCIM/Camera"; + + public static final String SDCARD_GSANAC_VERSION_PATH = SDCARD_GSANAC_PATH + "versao"; + + + + public static final String NOME_APK = "gsanac.apk"; + + public static final int INSTALL_APK = 4741; + + public static final byte DOWNLOAD_FILE = 1; + + public static final byte UPLOAD_FILE = 2; + + public static final byte FINALIZAR_ROTEIRO = 3; + + public static final byte ATUALIZAR_SITUACAO_ARQUIVO = 5; + + public static final Integer NULO_INT = null; + + public static final Long NULO_LONG = null; + + public static final String NULO_STRING = ""; + + public static final String IMOVEL = "imovel"; + public static final String LOGRADOURO = "logradouro"; + public static final String INTEGRACAO_MATRICULA = "compesa.mobile.mapalocal.activities.exibicaoMapa.MATRICULA"; + public static final String INTEGRACAO_ID_UNICO = "compesa.mobile.mapalocal.activities.exibicaoMapa.IDUNICO"; + public static final String INTEGRACAO_OPERACAO_INTEGRACAO = "compesa.mobile.mapalocal.activities.exibicaoMapa.OPERACAOEFETUADA"; + public static final String INTEGRACAO_CODIGO_TIPO_FINALIZACAO = "compesa.mobile.mapalocal.activities.exibicaoMapa.TIPOFINALIZACAO"; + public static final String INTEGRACAO_ENVIO_MATRICULAS = "ipad.gsan.atualizacaocadastral.LISTAMATRICULAS"; + public static final String INTEGRACAO_ENVIO_LOCALIDADE = "ipad.gsan.atualizacaocadastral.LOCALIDADE"; + public static final String INTEGRACAO_ENVIO_SETORCOMERCIAL = "ipad.gsan.atualizacaocadastral.SETORCOMERCIAL"; + + + public static final String IMOVEL_SUBCATEGORIA_ATLZ_CADASTRAL = "imovelSubCategoriaAtlzCadastral"; + + public static final long ITEM_INVALIDO = 999999999; + + /** Resquest Code ***/ + public static final int ENDERECO_ABA_REQUEST_CODE = 1; + public static final int IMOVEL_ABA_REQUEST_CODE = 3; + + public static final int[] CPF = { + 11, + 10, + 9, + 8, + 7, + 6, + 5, + 4, + 3, + 2 + }; + + public static final int[] CNPJ = { + 6, + 5, + 4, + 3, + 2, + 9, + 8, + 7, + 6, + 5, + 4, + 3, + 2 + }; + + public static final Integer PESSOA_FISICA = 1; + + public static final Integer PESSOA_JURIDICA = 2; + + // Erros da classe + public static final int ERRO_GENERICO = 0; + public static final int ERRO_REQUISICAO_ABORTAR = 1; + public static final int ERRO_DOWNLOAD_ARQUIVO = 2; + public static final int ERRO_CARREGANDO_ARQUIVO = 3; + public static final int ERRO_SERVIDOR_OFF_LINE = 4; + public static final int ERRO_SINAL_INICIALIZACAO_ROTEIRO = 5; + public static final int ERRO_SEM_ARQUIVO = 6; + + + public static final char RESPOSTA_OK_CHAR = '*'; + public static final String RESPOSTA_OK = "*"; + public static final String RESPOSTA_ERRO = "#"; + public static final byte PING = 15; + public static final byte CONSULTAR_ARQUIVO_FINALIZADO = 16; + public static final int OK = 100; + + public static final byte DOWNLOAD_APK = 11; + public static final byte VERIFICAR_VERSAO = 12; + public static final byte FINALIZAR_IMOVEL = 13; + + public static final int INDICADOR_TRANSMITIDO = 1; + public static final int INDICADOR_NAO_TRANSMITIDO = 2; + + public static final String LOGIN = "LOGIN"; + public static final String SENHA = "SENHA"; + public static final String CPF_LOGIN = "CPF_LOGIN"; + + public static final String REGISTRO_TIPO_AD_CEP = "01"; + public static final String REGISTRO_TIPO_AD_LOGRADOURO = "02"; + public static final String REGISTRO_TIPO_AD_LOGRADOURO_BAIRRO = "03"; + public static final String REGISTRO_TIPO_AD_LOGRADOURO_CEP = "04"; + public static final String REGISTRO_TIPO_AD_IMOVEL_ATLZ_CADASTRAL = "05"; + public static final String REGISTRO_TIPO_AD_CLIENTE_ATLZ_CADASTRAL = "06"; + public static final String REGISTRO_TIPO_AD_CLIENTE_FONE_ATLZ_CADASTRAL = "07"; + public static final String REGISTRO_TIPO_AD_HIDROMETRO_ATLZ_CADASTRAL = "08"; + public static final String REGISTRO_TIPO_AD_SUBCATEGORIA_ATLZ_CADASTRAL = "09"; + public static final String REGISTRO_TIPO_AD_OCORRENCIA_ATLZ_CADASTRAL = "10"; + public static final String REGISTRO_TIPO_AD_IMOVEL_TRANSMITIDO = "11"; + public static final String REGISTRO_TIPO_AD_IMOVEL_FOTO = "12"; + public static final String ARQUIVO_TRANSMITIDO_USUARIO_SEM_LOGIN = "13"; + public static final String ARQUIVO_TRANSMITIDO_USUARIO_COM_LOGIN = "00"; + + public static final int ARQUIVO_TRANSMITIDO_USUARIO_SEM_LOGIN_INT = 13; + + public static final int SEM_NUMERO = 9; + + public static final String SEM_NUMERO_ONLINE_OFFLINE = "S/N"; + +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/Cryptograph.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/Cryptograph.java new file mode 100644 index 0000000..d5aae57 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/Cryptograph.java @@ -0,0 +1,174 @@ +package com.br.gsanac.util; + +/** + *

+ * Classe responsável pela criptografia dos dados + *

+ * + * @author Bruno Barros + * @date 28/01/2010 + */ +public class Cryptograph { + + /** + *

+ * Realiza a rotação bitwise de um número 32-bits para a esquerda + *

+ * + * @author Bruno Barros + * @date 28/01/2010 + * @param num + * Numero a ser rotacionado + * @param cnt + * Potencia de 10 + * @return Representação base64 do seu SHA-1 + */ + + private static int rol(int num, int cnt) { + + return (num << cnt) | (num >>> (32 - cnt)); + + } + + /** + *

+ * Recebe a string e retorna a representação base64 do seu SHA-1 + *

+ * + * @author Bruno Barros + * @date 28/01/2010 + * @param str + * String a ser convertida + * @return Representação base64 do seu SHA-1 + */ + + public static String encode(String str) { + + // Converte a string em uma sequencia de 16 blocos de palavras, guardadas num vetor. + + // Adiciona os bits e o tamanho, conforme descrito no SHA1 padr�o + + byte[] x = str.getBytes(); + + int[] blks = new int[(((x.length + 8) >> 6) + 1) * 16]; + + int i; + + for (i = 0; i < x.length; i++) { + + blks[i >> 2] |= x[i] << (24 - (i % 4) * 8); + + } + + blks[i >> 2] |= 0x80 << (24 - (i % 4) * 8); + + blks[blks.length - 1] = x.length * 8; + + // Calcula o hash 160 bit SHA1 de sequencia de blocos + + int[] w = new int[80]; + + int a = 1732584193; + + int b = -271733879; + + int c = -1732584194; + + int d = 271733878; + + int e = -1009589776; + + for (i = 0; i < blks.length; i += 16) { + + int olda = a; + + int oldb = b; + + int oldc = c; + + int oldd = d; + + int olde = e; + + for (int j = 0; j < 80; j++) { + + w[j] = (j < 16) ? blks[i + j] : (rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1)); + + int t = rol(a, 5) + + e + + w[j] + + ((j < 20) ? 1518500249 + ((b & c) | ((~b) & d)) : (j < 40) ? 1859775393 + (b ^ c ^ d) : (j < 60) ? -1894007588 + + ((b & c) | (b & d) | (c & d)) : -899497514 + (b ^ c ^ d)); + + e = d; + + d = c; + + c = rol(b, 30); + + b = a; + + a = t; + + } + + a = a + olda; + + b = b + oldb; + + c = c + oldc; + + d = d + oldd; + + e = e + olde; + + } + + // Converte 160 bit has para base64 + + int[] words = { + a, + b, + c, + d, + e, + 0 + }; + + byte[] base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".getBytes(); + + byte[] result = new byte[28]; + + for (i = 0; i < 27; i++) { + + int start = i * 6; + + int word = start >> 5; + + int offset = start & 0x1f; + + if (offset <= 26) { + + result[i] = base64[(words[word] >> (26 - offset)) & 0x3F]; + + } else if (offset == 28) { + + result[i] = base64[(((words[word] & 0x0F) << 2) | + + ((words[word + 1] >> 30) & 0x03)) & 0x3F]; + + } else { + + result[i] = base64[(((words[word] & 0x03) << 4) | + + ((words[word + 1] >> 28) & 0x0F)) & 0x3F]; + + } + + } + + result[27] = '='; + + return new String(result); + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/DBLoader.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/DBLoader.java new file mode 100644 index 0000000..11fc46a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/DBLoader.java @@ -0,0 +1,272 @@ +package com.br.gsanac.util; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.List; + +import android.util.Log; + +import com.br.gsanac.entidades.Bairro; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.Categoria; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteTipo; +import com.br.gsanac.entidades.EnderecoReferencia; +import com.br.gsanac.entidades.FoneTipo; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.HidrometroCapacidade; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroLocalInst; +import com.br.gsanac.entidades.HidrometroMarca; +import com.br.gsanac.entidades.HidrometroProtecao; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelPerfil; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.MedicaoTipo; +import com.br.gsanac.entidades.Municipio; +import com.br.gsanac.entidades.OrgaoExpedidorRg; +import com.br.gsanac.entidades.PavimentoCalcada; +import com.br.gsanac.entidades.PavimentoRua; +import com.br.gsanac.entidades.PessoaSexo; +import com.br.gsanac.entidades.Quadra; +import com.br.gsanac.entidades.SetorComercial; +import com.br.gsanac.entidades.SubCategoria; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.entidades.UnidadeFederacao; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.exception.RepositorioException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.repositorio.RepositorioBairro; +import com.br.gsanac.repositorio.RepositorioCadastroOcorrencia; +import com.br.gsanac.repositorio.RepositorioCategoria; +import com.br.gsanac.repositorio.RepositorioCep; +import com.br.gsanac.repositorio.RepositorioClienteAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioClienteFoneAtlzCad; +import com.br.gsanac.repositorio.RepositorioClienteTipo; +import com.br.gsanac.repositorio.RepositorioEnderecoReferencia; +import com.br.gsanac.repositorio.RepositorioFoneTipo; +import com.br.gsanac.repositorio.RepositorioFonteAbastecimento; +import com.br.gsanac.repositorio.RepositorioHidrometroCapacidade; +import com.br.gsanac.repositorio.RepositorioHidrometroInstHistAtlzCad; +import com.br.gsanac.repositorio.RepositorioHidrometroLocalInst; +import com.br.gsanac.repositorio.RepositorioHidrometroMarca; +import com.br.gsanac.repositorio.RepositorioHidrometroProtecao; +import com.br.gsanac.repositorio.RepositorioImovelAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioImovelPerfil; +import com.br.gsanac.repositorio.RepositorioImovelSubCategAtlzCad; +import com.br.gsanac.repositorio.RepositorioLigacaoAguaSituacao; +import com.br.gsanac.repositorio.RepositorioLigacaoEsgotoSituacao; +import com.br.gsanac.repositorio.RepositorioLogradouro; +import com.br.gsanac.repositorio.RepositorioLogradouroBairro; +import com.br.gsanac.repositorio.RepositorioLogradouroCep; +import com.br.gsanac.repositorio.RepositorioLogradouroTipo; +import com.br.gsanac.repositorio.RepositorioLogradouroTitulo; +import com.br.gsanac.repositorio.RepositorioMedicaoTipo; +import com.br.gsanac.repositorio.RepositorioMunicipio; +import com.br.gsanac.repositorio.RepositorioOrgaoExpedidorRg; +import com.br.gsanac.repositorio.RepositorioPavimentoCalcada; +import com.br.gsanac.repositorio.RepositorioPavimentoRua; +import com.br.gsanac.repositorio.RepositorioPessoaSexo; +import com.br.gsanac.repositorio.RepositorioQuadra; +import com.br.gsanac.repositorio.RepositorioSetorComercial; +import com.br.gsanac.repositorio.RepositorioSubCategoria; +import com.br.gsanac.repositorio.RepositorioSistemaParametros; +import com.br.gsanac.repositorio.RepositorioUnidadeFederacao; + + +/** + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public class DBLoader { + + private static DBLoader instance; + + private static int i = 0; + + public static Integer CONTADOR_IMOVEL = 0; + + public static DBLoader getInstance() { + if (instance == null) { + instance = new DBLoader(); + } + return instance; + } + + public static boolean loadDatabaseFromInputStream(InputStream input, boolean isToDropDB, String cpfLogin) { + + boolean retorno = false; + try { + + InputStreamReader inputReader = new InputStreamReader(input, "ISO-8859-1"); + BufferedReader reader = new BufferedReader(inputReader); + String line; + DBLoader.CONTADOR_IMOVEL = 0; + while ((line = reader.readLine()) != null) { + carregarBancoDados(line, cpfLogin); + } + retorno = true; + + } catch (IOException ioe) { + ioe.printStackTrace(); + } catch (RepositorioException re) { + re.printStackTrace(); + } + return retorno; + } + + /** + * @author Arthur Carvalho + * @since 09/09/2011 + * @param line + * @throws RepositorioException + */ + public static void carregarBancoDados(String line, String cpfLogin) throws RepositorioException { + + List objectArray = Util.split(line); + + String registerType = objectArray.get(0); + + if (registerType.equals(ConstantesSistema.REGISTRO_TIPO_PESSOA_SEXO)) { + RepositorioPessoaSexo.getInstance().inserir(PessoaSexo.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_FONE_TIPO)){ + RepositorioFoneTipo.getInstance().inserir(FoneTipo.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_HIDROMETRO_LOCAL_INST)){ + RepositorioHidrometroLocalInst.getInstance().inserir(HidrometroLocalInst.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_HIDROMETRO_PROTECAO)){ + RepositorioHidrometroProtecao.getInstance().inserir(HidrometroProtecao.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_ORGAO_EXPEDIDOR_RG)){ + RepositorioOrgaoExpedidorRg.getInstance().inserir(OrgaoExpedidorRg.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_CATEGORIA)){ + RepositorioCategoria.getInstance().inserir(Categoria.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_SUBCATEGORIA)){ + RepositorioSubCategoria.getInstance().inserir(SubCategoria.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_BAIRRO)){ + RepositorioBairro.getInstance().inserir(Bairro.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_CEP)){ + RepositorioCep.getInstance().inserir(Cep.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LOGRADOURO)){ + RepositorioLogradouro.getInstance().inserir(Logradouro.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LOGRADOURO_BAIRRO)){ + RepositorioLogradouroBairro.getInstance().inserir(LogradouroBairro.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LOGRADOURO_CEP)){ + RepositorioLogradouroCep.getInstance().inserir(LogradouroCep.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_PAVIMENTO_RUA)){ + RepositorioPavimentoRua.getInstance().inserir(PavimentoRua.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_PAVIMENTO_CALCADA)){ + RepositorioPavimentoCalcada.getInstance().inserir(PavimentoCalcada.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_FONTE_ABASTECIMENTO)){ + RepositorioFonteAbastecimento.getInstance().inserir(FonteAbastecimento.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LIGACAO_AGUA_SITUACAO)){ + RepositorioLigacaoAguaSituacao.getInstance().inserir(LigacaoAguaSituacao.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LIGACAO_ESGOTO_SITUACAO)){ + RepositorioLigacaoEsgotoSituacao.getInstance().inserir(LigacaoEsgotoSituacao.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_ENDERECO_REFERENCIA)){ + RepositorioEnderecoReferencia.getInstance().inserir(EnderecoReferencia.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_SISTEMA_PARAMETRO)){ + RepositorioSistemaParametros.getInstance().inserir(SistemaParametros.inserirDoArquivo(objectArray, cpfLogin)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_IMOVEL_SUBCATG_ATLZ_CAD)){ + RepositorioImovelSubCategAtlzCad.getInstance().inserir(ImovelSubCategAtlzCad.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_CLIENTE_FONE_ATLZ_CADASTRAL)){ + RepositorioClienteFoneAtlzCad.getInstance().inserir(ClienteFoneAtlzCad.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_CLIENTE_ATLZ_CADASTRAL)){ + RepositorioClienteAtlzCadastral.getInstance().inserir(ClienteAtlzCadastral.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_IMOVEL_ATLZ_CADASTRAL)){ + CONTADOR_IMOVEL ++; + RepositorioImovelAtlzCadastral.getInstance().inserir(ImovelAtlzCadastral.inserirDoArquivo(objectArray, CONTADOR_IMOVEL)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_HIDROM_INST_HIST_ATL_CAD)){ + RepositorioHidrometroInstHistAtlzCad.getInstance().inserir(HidrometroInstHistAtlzCad.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_MUNICIPIO)){ + RepositorioMunicipio.getInstance().inserir(Municipio.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LOGRADOURO_TIPO)){ + RepositorioLogradouroTipo.getInstance().inserir(LogradouroTipo.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_LOGRADOURO_TITULO)){ + RepositorioLogradouroTitulo.getInstance().inserir(LogradouroTitulo.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_QUADRA)){ + RepositorioQuadra.getInstance().inserir(Quadra.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_IMOVEL_PERFIL)){ + RepositorioImovelPerfil.getInstance().inserir(ImovelPerfil.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_CADASTRO_OCORRENCIA)){ + RepositorioCadastroOcorrencia.getInstance().inserir(CadastroOcorrencia.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_UNIDADE_FEDERACAO)){ + RepositorioUnidadeFederacao.getInstance().inserir(UnidadeFederacao.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_CLIENTE_TIPO)){ + RepositorioClienteTipo.getInstance().inserir(ClienteTipo.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_MEDICAO_TIPO)){ + RepositorioMedicaoTipo.getInstance().inserir(MedicaoTipo.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_HIDROMETRO_CAPACIDADE)){ + RepositorioHidrometroCapacidade.getInstance().inserir(HidrometroCapacidade.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_HIDROMETRO_MARCA)){ + RepositorioHidrometroMarca.getInstance().inserir(HidrometroMarca.inserirDoArquivo(objectArray)); + i++; + }else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_SETOR_COMERCIAL)){ + RepositorioSetorComercial.getInstance().inserir(SetorComercial.inserirDoArquivo(objectArray)); + i++; + } else if(registerType.equals(ConstantesSistema.REGISTRO_TIPO_ARQUIVO_CARREGADO_COMPLETO)){ + + //pesquisa sistema parametro e atualiza a coluna informando que todos os registros do arquivo foram carregados corretamente. + SistemaParametros sistemaParametros = new SistemaParametros(); + try{ + sistemaParametros = (SistemaParametros) Fachada.getInstance().pesquisar(sistemaParametros, null, null); + + if ( sistemaParametros != null ) { + sistemaParametros.setIndicadorArquivoCarregado(Integer.valueOf(1)); + Fachada.getInstance().update(sistemaParametros); + } + } catch (FachadaException e) { + e.printStackTrace(); + } + i++; + } + + + Log.i(ConstantesSistema.LOG_TAG, i + " " + line); + + objectArray.clear(); + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/DBScript.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/DBScript.java new file mode 100644 index 0000000..e57d851 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/DBScript.java @@ -0,0 +1,342 @@ +package com.br.gsanac.util; + +import com.br.gsanac.entidades.Bairro; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.Foto.FotoColunasTipo; +import com.br.gsanac.entidades.HidrometroCapacidade; +import com.br.gsanac.entidades.HidrometroCapacidade.HidrometroCapacidadeColunasTipo; +import com.br.gsanac.entidades.HidrometroMarca; +import com.br.gsanac.entidades.HidrometroMarca.HidrometroMarcaColunasTipo; +import com.br.gsanac.entidades.ImovelOcorrencia; +import com.br.gsanac.entidades.ImovelOcorrencia.ImovelOcorrenciaColunasTipo; +import com.br.gsanac.entidades.MedicaoTipo; +import com.br.gsanac.entidades.Bairro.BairroTipos; +import com.br.gsanac.entidades.CadastroOcorrencia; +import com.br.gsanac.entidades.CadastroOcorrencia.CadastroOcorrenciaColunasTipo; +import com.br.gsanac.entidades.Categoria; +import com.br.gsanac.entidades.Categoria.CategoriaColunasTipo; +import com.br.gsanac.entidades.Cep; +import com.br.gsanac.entidades.Cep.CepTipos; +import com.br.gsanac.entidades.ClienteAtlzCadastral; +import com.br.gsanac.entidades.ClienteAtlzCadastral.ClienteAtlzCadastralColunasTipo; +import com.br.gsanac.entidades.ClienteFoneAtlzCad; +import com.br.gsanac.entidades.ClienteFoneAtlzCad.ClienteFoneAtlzCadColunasTipo; +import com.br.gsanac.entidades.ClienteTipo; +import com.br.gsanac.entidades.ClienteTipo.ClienteTipoColunasTipo; +import com.br.gsanac.entidades.EnderecoReferencia; +import com.br.gsanac.entidades.EnderecoReferencia.EnderecoReferenciaTipos; +import com.br.gsanac.entidades.FoneTipo; +import com.br.gsanac.entidades.FoneTipo.FoneTipoColunasTipo; +import com.br.gsanac.entidades.FonteAbastecimento; +import com.br.gsanac.entidades.FonteAbastecimento.FonteAbastecimentoTipos; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad; +import com.br.gsanac.entidades.HidrometroInstHistAtlzCad.HidrometroInstHistAtlzCadColunasTipo; +import com.br.gsanac.entidades.HidrometroLocalInst; +import com.br.gsanac.entidades.HidrometroLocalInst.HidrometroLocalInstColunasTipo; +import com.br.gsanac.entidades.HidrometroProtecao; +import com.br.gsanac.entidades.HidrometroProtecao.HidrometroProtecaoColunasTipo; +import com.br.gsanac.entidades.ImovelAtlzCadastral; +import com.br.gsanac.entidades.ImovelAtlzCadastral.ImovelAtlzCadastralColunasTipo; +import com.br.gsanac.entidades.ImovelPerfil; +import com.br.gsanac.entidades.ImovelPerfil.ImovelPerfilColunasTipo; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad; +import com.br.gsanac.entidades.ImovelSubCategAtlzCad.ImovelSubCategAtlzCadColunasTipo; +import com.br.gsanac.entidades.LigacaoAguaSituacao; +import com.br.gsanac.entidades.LigacaoAguaSituacao.LigacaoAguaSituacaoTipos; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao; +import com.br.gsanac.entidades.LigacaoEsgotoSituacao.LigacaoEsgotoSituacaoTipos; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.Logradouro.LogradouroTipos; +import com.br.gsanac.entidades.LogradouroBairro; +import com.br.gsanac.entidades.LogradouroBairro.LogradouroBairroTipos; +import com.br.gsanac.entidades.LogradouroCep; +import com.br.gsanac.entidades.LogradouroCep.LogradouroCepTipos; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTipo.LogradouroTipoColunasTipo; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.LogradouroTitulo.LogradouroTituloColunasTipo; +import com.br.gsanac.entidades.MedicaoTipo.MedicaoTipoColunasTipo; +import com.br.gsanac.entidades.Municipio; +import com.br.gsanac.entidades.Municipio.MunicipioColunasTipo; +import com.br.gsanac.entidades.OrgaoExpedidorRg; +import com.br.gsanac.entidades.OrgaoExpedidorRg.OrgaoExpedidorRgColunasTipo; +import com.br.gsanac.entidades.PavimentoCalcada; +import com.br.gsanac.entidades.PavimentoCalcada.PavimentoCalcadaTipos; +import com.br.gsanac.entidades.PavimentoRua; +import com.br.gsanac.entidades.PavimentoRua.PavimentoRuaTipos; +import com.br.gsanac.entidades.PessoaSexo; +import com.br.gsanac.entidades.PessoaSexo.PessoaSexoColunasTipo; +import com.br.gsanac.entidades.Quadra; +import com.br.gsanac.entidades.Quadra.QuadraColunasTipo; +import com.br.gsanac.entidades.SetorComercial; +import com.br.gsanac.entidades.SetorComercial.SetorColunasTipo; +import com.br.gsanac.entidades.SubCategoria; +import com.br.gsanac.entidades.SubCategoria.SubCategoriaColunasTipo; +import com.br.gsanac.entidades.SistemaParametros; +import com.br.gsanac.entidades.SistemaParametros.SistemaParametrosColunasTipo; +import com.br.gsanac.entidades.UnidadeFederacao; +import com.br.gsanac.entidades.UnidadeFederacao.UnidadeFederacaoColunasTipo; + + +/** + *

+ * Esta class contem os scripts de CREATE e DROP + *

+ * + * @author Arthur Carvalho + * @since 06/12/2012 + */ +public final class DBScript { + + /** + * Retorna script para geracao do banco de dados + * + */ + public String[] obterScriptBanco(){ + + //Inicia variaveis + PessoaSexoColunasTipo pessoaSexoColunasTipos = (new PessoaSexo()).new PessoaSexoColunasTipo(); + FoneTipoColunasTipo foneTipoColunasTipo = (new FoneTipo()).new FoneTipoColunasTipo(); + HidrometroLocalInstColunasTipo hidrometroLocalInstColunasTipo = (new HidrometroLocalInst()).new HidrometroLocalInstColunasTipo(); + HidrometroProtecaoColunasTipo hidrometroProtecaoColunasTipo = (new HidrometroProtecao()).new HidrometroProtecaoColunasTipo(); + OrgaoExpedidorRgColunasTipo orgaoExpedidorRgColunasTipo = (new OrgaoExpedidorRg()).new OrgaoExpedidorRgColunasTipo(); + CategoriaColunasTipo categoriaColunasTipo = (new Categoria()).new CategoriaColunasTipo(); + SubCategoriaColunasTipo subCategoriaColunasTipo = (new SubCategoria()).new SubCategoriaColunasTipo(); + SistemaParametrosColunasTipo parametrosColunasTipo = ( new SistemaParametros()).new SistemaParametrosColunasTipo(); + LogradouroTipoColunasTipo logradouroTipoColunasTipo = ( new LogradouroTipo()).new LogradouroTipoColunasTipo(); + LogradouroTituloColunasTipo logradouroTituloColunasTipo = ( new LogradouroTitulo()).new LogradouroTituloColunasTipo(); + MunicipioColunasTipo municipioColunasTipo = ( new Municipio()).new MunicipioColunasTipo(); + QuadraColunasTipo quadraColunasTipo = ( new Quadra()).new QuadraColunasTipo(); + BairroTipos bairros = ( new Bairro()).new BairroTipos(); + CepTipos ceps = ( new Cep()).new CepTipos(); + LogradouroTipos logradouroTipos = ( new Logradouro()).new LogradouroTipos(); + LogradouroBairroTipos logradouroBairroTipos = ( new LogradouroBairro()).new LogradouroBairroTipos(); + LogradouroCepTipos logradouroCepTipos = ( new LogradouroCep()).new LogradouroCepTipos(); + PavimentoRuaTipos pavimentoRuaTipos = ( new PavimentoRua()).new PavimentoRuaTipos(); + PavimentoCalcadaTipos pavimentoCalcadaTipos = ( new PavimentoCalcada()).new PavimentoCalcadaTipos(); + FonteAbastecimentoTipos fonteAbastecimentoTipos = ( new FonteAbastecimento()).new FonteAbastecimentoTipos(); + LigacaoAguaSituacaoTipos ligacaoAguaSituacaoTipos = ( new LigacaoAguaSituacao()).new LigacaoAguaSituacaoTipos(); + LigacaoEsgotoSituacaoTipos ligacaoEsgotoSituacaoTipos = ( new LigacaoEsgotoSituacao()).new LigacaoEsgotoSituacaoTipos(); + EnderecoReferenciaTipos enderecoReferenciaTipos = ( new EnderecoReferencia()).new EnderecoReferenciaTipos(); + ImovelSubCategAtlzCadColunasTipo imovelSubCategAtlzCadColunasTipo = ( new ImovelSubCategAtlzCad()).new ImovelSubCategAtlzCadColunasTipo(); + ClienteFoneAtlzCadColunasTipo clienteFoneAtlzCadColunasTipo = ( new ClienteFoneAtlzCad()).new ClienteFoneAtlzCadColunasTipo(); + ClienteAtlzCadastralColunasTipo clienteAtlzCadastralColunasTipo = ( new ClienteAtlzCadastral()).new ClienteAtlzCadastralColunasTipo(); + ImovelAtlzCadastralColunasTipo imovelAtlzCadastralColunasTipo = ( new ImovelAtlzCadastral()).new ImovelAtlzCadastralColunasTipo(); + HidrometroInstHistAtlzCadColunasTipo hidrometroInstHistAtlzCadColunasTipo = ( new HidrometroInstHistAtlzCad()).new HidrometroInstHistAtlzCadColunasTipo(); + ImovelPerfilColunasTipo imovelPerfilColunasTipo = ( new ImovelPerfil()).new ImovelPerfilColunasTipo(); + CadastroOcorrenciaColunasTipo cadastroOcorrenciaColunasTipo = ( new CadastroOcorrencia()).new CadastroOcorrenciaColunasTipo(); + UnidadeFederacaoColunasTipo unidadeFederacaoColunasTipo = ( new UnidadeFederacao()).new UnidadeFederacaoColunasTipo(); + ClienteTipoColunasTipo clienteTipoColunasTipo = ( new ClienteTipo()).new ClienteTipoColunasTipo(); + MedicaoTipoColunasTipo medicaoTipoColunasTipo = ( new MedicaoTipo()).new MedicaoTipoColunasTipo(); + HidrometroCapacidadeColunasTipo hidrometroCapacidadeColunasTipo = ( new HidrometroCapacidade()).new HidrometroCapacidadeColunasTipo(); + HidrometroMarcaColunasTipo hidrometroMarcaColunasTipo = ( new HidrometroMarca()).new HidrometroMarcaColunasTipo(); + FotoColunasTipo fotoColunasTipo = ( new Foto()).new FotoColunasTipo(); + ImovelOcorrenciaColunasTipo imovelOcorrenciaColunasTipo = ( new ImovelOcorrencia()).new ImovelOcorrenciaColunasTipo(); + SetorColunasTipo setorColunasTipo = ( new SetorComercial()).new SetorColunasTipo(); + + PessoaSexo pessoaSexo = new PessoaSexo(); + FoneTipo foneTipo = new FoneTipo(); + HidrometroLocalInst hidrometroLocalInst = new HidrometroLocalInst(); + HidrometroProtecao hidrometroProtecao = new HidrometroProtecao(); + OrgaoExpedidorRg orgaoExpedidorRg = new OrgaoExpedidorRg(); + Categoria categoria = new Categoria(); + SubCategoria subCategoria = new SubCategoria(); + SistemaParametros sistemaParametros = new SistemaParametros(); + LogradouroTipo logradouroTipo = new LogradouroTipo(); + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + Municipio municipio = new Municipio(); + Quadra quadra = new Quadra(); + Bairro bairro = new Bairro(); + Cep cep = new Cep(); + LogradouroBairro logradouroBairro = new LogradouroBairro(); + LogradouroCep logradouroCep = new LogradouroCep(); + Logradouro logradouro = new Logradouro(); + PavimentoRua pavimentoRua = new PavimentoRua(); + PavimentoCalcada pavimentoCalcada = new PavimentoCalcada(); + FonteAbastecimento fonteAbastecimento = new FonteAbastecimento(); + LigacaoAguaSituacao ligacaoAguaSituacao = new LigacaoAguaSituacao(); + EnderecoReferencia enderecoReferencia = new EnderecoReferencia(); + LigacaoEsgotoSituacao ligacaoEsgotoSituacao = new LigacaoEsgotoSituacao(); + ImovelSubCategAtlzCad imovelSubCategAtlzCad = new ImovelSubCategAtlzCad(); + ClienteFoneAtlzCad clienteFoneAtlzCad = new ClienteFoneAtlzCad(); + ClienteAtlzCadastral clienteAtlzCadastral = new ClienteAtlzCadastral(); + ImovelAtlzCadastral imovelAtlzCadastral = new ImovelAtlzCadastral(); + HidrometroInstHistAtlzCad hidrometroInstHistAtlzCad = new HidrometroInstHistAtlzCad(); + ImovelPerfil imovelPerfil = new ImovelPerfil(); + CadastroOcorrencia cadastroOcorrencia = new CadastroOcorrencia(); + UnidadeFederacao unidadeFederacao = new UnidadeFederacao(); + ClienteTipo clienteTipo = new ClienteTipo(); + MedicaoTipo medicaoTipo = new MedicaoTipo(); + HidrometroCapacidade hidrometroCapacidade = new HidrometroCapacidade(); + HidrometroMarca hidrometroMarca = new HidrometroMarca(); + Foto foto = new Foto(); + ImovelOcorrencia imovelOcorrencia = new ImovelOcorrencia(); + SetorComercial setorComercial = new SetorComercial(); + + //Usa o metodo createTable para criar o script de cada tabela e junta-os num array + String[] SCRIPT_CRIAR_BANCO = new String[] { + + createTable(pessoaSexo.getNomeTabela(), pessoaSexo.getColunas(), + pessoaSexoColunasTipos.getTipos()).toString(), + + createTable(foneTipo.getNomeTabela(), foneTipo.getColunas(), + foneTipoColunasTipo.getTipos()).toString(), + + createTable(hidrometroLocalInst.getNomeTabela(), hidrometroLocalInst.getColunas(), + hidrometroLocalInstColunasTipo.getTipos()).toString(), + + createTable(hidrometroProtecao.getNomeTabela(), hidrometroProtecao.getColunas(), + hidrometroProtecaoColunasTipo.getTipos()).toString(), + + createTable(orgaoExpedidorRg.getNomeTabela(), orgaoExpedidorRg.getColunas(), + orgaoExpedidorRgColunasTipo.getTipos()).toString(), + + createTable(categoria.getNomeTabela(), categoria.getColunas(), + categoriaColunasTipo.getTipos()).toString(), + + createTable(subCategoria.getNomeTabela(), subCategoria.getColunas(), + subCategoriaColunasTipo.getTipos()).toString(), + + createTable(sistemaParametros.getNomeTabela(), sistemaParametros.getColunas(), + parametrosColunasTipo.getTipos()).toString(), + + createTable(logradouroTipo.getNomeTabela(), logradouroTipo.getColunas(), + logradouroTipoColunasTipo.getTipos()).toString(), + + createTable(logradouroTitulo.getNomeTabela(), logradouroTitulo.getColunas(), + logradouroTituloColunasTipo.getTipos()).toString(), + + createTable(municipio.getNomeTabela(), municipio.getColunas(), + municipioColunasTipo.getTipos()).toString(), + + createTable(quadra.getNomeTabela(), quadra.getColunas(), + quadraColunasTipo.getTipos()).toString(), + + createTable(bairro.getNomeTabela(), bairro.getColunas(), + bairros.getTipos()).toString(), + + createTable(cep.getNomeTabela(), cep.getColunas(), + ceps.getTipos()).toString(), + + createTable(logradouro.getNomeTabela(), logradouro.getColunas(), + logradouroTipos.getTipos()).toString(), + + createTable(logradouroBairro.getNomeTabela(), logradouroBairro.getColunas(), + logradouroBairroTipos.getTipos()).toString(), + + createTable(logradouroCep.getNomeTabela(), logradouroCep.getColunas(), + logradouroCepTipos.getTipos()).toString(), + + createTable(pavimentoCalcada.getNomeTabela(), pavimentoCalcada.getColunas(), + pavimentoCalcadaTipos.getTipos()).toString(), + + createTable(pavimentoRua.getNomeTabela(), pavimentoRua.getColunas(), + pavimentoRuaTipos.getTipos()).toString(), + + createTable(fonteAbastecimento.getNomeTabela(), fonteAbastecimento.getColunas(), + fonteAbastecimentoTipos.getTipos()).toString(), + + createTable(ligacaoAguaSituacao.getNomeTabela(), ligacaoAguaSituacao.getColunas(), + ligacaoAguaSituacaoTipos.getTipos()).toString(), + + createTable(ligacaoEsgotoSituacao.getNomeTabela(), ligacaoEsgotoSituacao.getColunas(), + ligacaoEsgotoSituacaoTipos.getTipos()).toString(), + + createTable(enderecoReferencia.getNomeTabela(), enderecoReferencia.getColunas(), + enderecoReferenciaTipos.getTipos()).toString(), + + createTable(imovelSubCategAtlzCad.getNomeTabela(), imovelSubCategAtlzCad.getColunas(), + imovelSubCategAtlzCadColunasTipo.getTipos()).toString(), + + createTable(clienteFoneAtlzCad.getNomeTabela(), clienteFoneAtlzCad.getColunas(), + clienteFoneAtlzCadColunasTipo.getTipos()).toString(), + + createTable(clienteAtlzCadastral.getNomeTabela(), clienteAtlzCadastral.getColunas(), + clienteAtlzCadastralColunasTipo.getTipos()).toString(), + + createTable(imovelAtlzCadastral.getNomeTabela(), imovelAtlzCadastral.getColunas(), + imovelAtlzCadastralColunasTipo.getTipos()).toString(), + + createTable(hidrometroInstHistAtlzCad.getNomeTabela(), hidrometroInstHistAtlzCad.getColunas(), + hidrometroInstHistAtlzCadColunasTipo.getTipos()).toString(), + + createTable(imovelPerfil.getNomeTabela(), imovelPerfil.getColunas(), + imovelPerfilColunasTipo.getTipos()).toString(), + + createTable(cadastroOcorrencia.getNomeTabela(), cadastroOcorrencia.getColunas(), + cadastroOcorrenciaColunasTipo.getTipos()).toString(), + + createTable(unidadeFederacao.getNomeTabela(), unidadeFederacao.getColunas(), + unidadeFederacaoColunasTipo.getTipos()).toString(), + + createTable(clienteTipo.getNomeTabela(), clienteTipo.getColunas(), + clienteTipoColunasTipo.getTipos()).toString(), + + createTable(medicaoTipo.getNomeTabela(), medicaoTipo.getColunas(), + medicaoTipoColunasTipo.getTipos()).toString(), + + createTable(hidrometroCapacidade.getNomeTabela(), hidrometroCapacidade.getColunas(), + hidrometroCapacidadeColunasTipo.getTipos()).toString(), + + createTable(hidrometroMarca.getNomeTabela(), hidrometroMarca.getColunas(), + hidrometroMarcaColunasTipo.getTipos()).toString(), + + createTable(foto.getNomeTabela(), foto.getColunas(), + fotoColunasTipo.getTipos()).toString(), + + createTable(imovelOcorrencia.getNomeTabela(), imovelOcorrencia.getColunas(), + imovelOcorrenciaColunasTipo.getTipos()).toString(), + + createTable(setorComercial.getNomeTabela(), setorComercial.getColunas(), + setorColunasTipo.getTipos()).toString(), + //Tabela responsavel por salvar os arquivos ja carregados no tablet do supervisor. + "CREATE TABLE IF NOT EXISTS ARQUIVO_DIVIDIDO ( ARDI_ID INTEGER PRIMARY KEY AUTOINCREMENT, " + + "ARDI_DSARQUIVO VARCHAR(50) NOT NULL, ARDI_TMULTIMAALTERACAO TIMESTAMP NOT NULL);", + + "INSERT INTO QUADRA VALUES (999999999, '', 0, 999999999 )", + "INSERT INTO SETOR_COMERCIAL VALUES (999999999, '', '', 0 )", + "INSERT INTO BAIRRO VALUES (999999999, ' ', ' ')", + "INSERT INTO FONE_TIPO VALUES (999999999, '' )", + "INSERT INTO LIGACAO_AGUA_SITUACAO VALUES (999999999, '' )", + "INSERT INTO LIGACAO_ESGOTO_SITUACAO VALUES (999999999, '' )", + "INSERT INTO PAVIMENTO_RUA VALUES (999999999, '' )", + "INSERT INTO PAVIMENTO_CALCADA VALUES (999999999, '' )", + "INSERT INTO HIDROMETRO_LOCAL_INST VALUES (999999999, '' )", + "INSERT INTO HIDROMETRO_PROTECAO VALUES (999999999, '' )", + "INSERT INTO CADASTRO_OCORRENCIA VALUES (999999999, ' SELECIONE OCORRNCIA DE CADASTRO', '')", + "INSERT INTO CATEGORIA VALUES (999999999, '' )", + "INSERT INTO FONTE_ABASTECIMENTO VALUES (999999999, '' )", + "INSERT INTO CLIENTE_TIPO VALUES (999999999, '' , 3)", + "INSERT INTO ORGAO_EXPEDIDOR_RG VALUES (999999999, '' , '')", + "INSERT INTO UNIDADE_FEDERACAO VALUES (999999999, '')", + "INSERT INTO LOGRADOURO VALUES (999999999, 999999999, 999999999, 999999999, '','','', 999999999, 999999999, '')", + "INSERT INTO ENDERECO_REFERENCIA VALUES (999999999, ' ', '')", + "INSERT INTO LOGRADOURO_TIPO VALUES (999999999, '', '')", + "INSERT INTO LOGRADOURO_TITULO VALUES (999999999, '', '')", + "INSERT INTO SUBCATEGORIA VALUES (999999999, '', '')", + "INSERT INTO IMOVEL_PERFIL VALUES (999999999, '')" + + }; + + return SCRIPT_CRIAR_BANCO; + } + + /** + * Com base nos array dos nomes de tabela e tipos constantes nas classes basicas + * cria a query de criacao da tabela + * + * @param String nomeTabela, String[] colunas, String[] tipos + * @return StringBuilder + */ + private StringBuilder createTable(String nomeTabela, String[] colunas, String[] tipos){ + StringBuilder retorno = new StringBuilder(" CREATE TABLE "+nomeTabela+" ( "); + for(int i=0;i +* Adriano Britto Siqueira +* Alexandre Santos Cabral +* Ana Carolina Alves Breda +* Ana Maria Andrade Cavalcante +* Aryed Lins de Arajo +* Bruno Leonardo Rodrigues Barros +* Carlos Elmano Rodrigues Ferreira +* Cludio de Andrade Lira +* Denys Guimares Guenes Tavares +* Eduardo Breckenfeld da Rosa Borges +* Fabola Gomes de Arajo +* Fernanda Vieira de Barros Almeida +* Flvio Leonardo Cavalcanti Cordeiro +* Francisco do Nascimento Jnior +* Homero Sampaio Cavalcanti +* Ivan Srgio da Silva Jnior +* Jos Edmar de Siqueira +* Jos Thiago Tenrio Lopes +* Kssia Regina Silvestre de Albuquerque +* Leonardo Luiz Vieira da Silva +* Mrcio Roberto Batista da Silva +* Maria de Ftima Sampaio Leite +* Micaela Maria Coelho de Arajo +* Nelson Mendona de Carvalho +* Newton Morais e Silva +* Pedro Alexandre Santos da Silva Filho +* Rafael Corra Lima e Silva +* Rafael Francisco Pinto +* Rafael Koury Monteiro +* Rafael Palermo de Arajo +* Raphael Veras Rossiter +* Roberto Sobreira Barbalho +* Rodrigo Avellar Silveira +* Rosana Carvalho Barbosa +* Svio Luiz de Andrade Cavalcante +* Tai Mu Shih +* Thiago Augusto Souza do Nascimento +* Thlio dos Santos Lins de Arajo +* Tiago Moreno Rodrigues +* Vivianne Barbosa Sousa +* Anderson Cabral do Nascimento +* +* Este programa software livre; voc pode redistribu-lo e/ou +* modific-lo sob os termos de Licena Pblica Geral GNU, conforme +* publicada pela Free Software Foundation; verso 2 da +* Licena. +* Este programa distribudo na expectativa de ser til, mas SEM +* QUALQUER GARANTIA; sem mesmo a garantia implcita de +* COMERCIALIZAO ou de ADEQUAO A QUALQUER PROPSITO EM +* PARTICULAR. Consulte a Licena Pblica Geral GNU para obter mais +* detalhes. +* Voc deve ter recebido uma cpia da Licena Pblica Geral GNU +* junto com este programa; se no, escreva para Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +* 02111-1307, USA. +*/ +package com.br.gsanac.util; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.nio.channels.FileChannel; + +/** + * Classe responsavel por copiar a base de dados do celular e colar no SD card + * + * @author Amelia Pessoa + * @date 28/11/2012 + */ +public class ExportaBancoDados { + + public void exportarBanco(){ + try { + File destino = new File(ConstantesSistema.SDCARD_BANCO_PATH+"/"+ConstantesSistema.DATABASE_NAME); + if (!destino.exists()) { + destino.mkdirs(); + } + copyFile(new File(ConstantesSistema.DATABASE_PATH+ConstantesSistema.DATABASE_NAME), destino); + } catch (Exception ex){ + System.out.println(ex.getMessage()); + } + } + + private void copyFile(File source, File destination) throws IOException { + if (destination.exists()) + destination.delete(); + + FileChannel sourceChannel = null; + FileChannel destinationChannel = null; + + try { + sourceChannel = new FileInputStream(source).getChannel(); + destinationChannel = new FileOutputStream(destination).getChannel(); + sourceChannel.transferTo(0, sourceChannel.size(), + destinationChannel); + } catch (Exception ex){ + System.out.println(ex.getMessage()); + } finally { + + if (sourceChannel != null && sourceChannel.isOpen()) + sourceChannel.close(); + if (destinationChannel != null && destinationChannel.isOpen()) + destinationChannel.close(); + } + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/GZip.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/GZip.java new file mode 100644 index 0000000..4ab69c0 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/GZip.java @@ -0,0 +1,300 @@ +package com.br.gsanac.util; +import java.io.IOException; + +/** + * Clase que permite ler ficheros GZIP. + * + * @author Carlos Araiz + * + * @version 1.2.0 + */ +public class GZip { + // Máscaras para flag. + private static final int FHCRC_MASK = 2; + private static final int FEXTRA_MASK = 4; + private static final int FNAME_MASK = 8; + private static final int FCOMMENT_MASK = 16; + // Tipos de bloques. + private static final int BTYPE_NONE = 0; + private static final int BTYPE_DYNAMIC = 2; + // Limites. + private static final int MAX_BITS = 16; + private static final int MAX_CODE_LITERALS = 287; + private static final int MAX_CODE_DISTANCES = 31; + private static final int MAX_CODE_LENGTHS = 18; + private static final int EOB_CODE = 256; + // Datos prefijados (LENGTH: 257..287 / DISTANCE: 0..29 / + // DYNAMIC_LENGTH_ORDER: 0..18). + private static final int LENGTH_EXTRA_BITS[] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, + 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99 }; + private static final int LENGTH_VALUES[] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, + 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, + 163, 195, 227, 258, 0, 0 }; + private static final int DISTANCE_EXTRA_BITS[] = { 0, 0, 0, 0, 1, 1, 2, 2, + 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, + 13, 13 }; + private static final int DISTANCE_VALUES[] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, + 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, + 3073, 4097, 6145, 8193, 12289, 16385, 24577 }; + private static final int DYNAMIC_LENGTH_ORDER[] = { 16, 17, 18, 0, 8, 7, 9, + 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 }; + + /*************************************************************************/ + + // Variables para la lectura de datos comprimidos. + private static int gzipIndex, gzipByte, gzipBit; + + /*************************************************************************/ + /*************************************************************************/ + + /** + * Descomprime un fichero GZIP. + * + * @param gzip + * Array con los datos del fichero comprimido + * + * @return Array con los datos descomprimidos + */ + public static byte[] inflate(byte gzip[]) throws IOException { + // Inicializa. + gzipIndex = gzipByte = gzipBit = 0; + // Cabecera. + if (readBits(gzip, 16) != 0x8B1F || readBits(gzip, 8) != 8) + throw new IOException("Invalid GZIP format"); + // Flag. + int flg = readBits(gzip, 8); + // Fecha(4) / XFL(1) / OS(1). + gzipIndex += 6; + // Comprueba los flags. + if ((flg & FEXTRA_MASK) != 0) + gzipIndex += readBits(gzip, 16); + if ((flg & FNAME_MASK) != 0) + while (gzip[gzipIndex++] != 0) + ; + if ((flg & FCOMMENT_MASK) != 0) + while (gzip[gzipIndex++] != 0) + ; + if ((flg & FHCRC_MASK) != 0) + gzipIndex += 2; + // Tamanho de los datos descomprimidos. + int index = gzipIndex; + gzipIndex = gzip.length - 4; + byte uncompressed[] = new byte[readBits(gzip, 16) + | (readBits(gzip, 16) << 16)]; + int uncompressedIndex = 0; + gzipIndex = index; + // Bloque con datos comprimidos. + int bfinal = 0, btype = 0; + do { + // Lee la cabecera del bloque. + bfinal = readBits(gzip, 1); + btype = readBits(gzip, 2); + // Comprueba el tipo de compresi�n. + if (btype == BTYPE_NONE) { + // Ignora los bits dentro del byte actual. + gzipBit = 0; + // LEN. + int len = readBits(gzip, 16); + // Lee los datos. + System.arraycopy(gzip, gzipIndex, uncompressed, + uncompressedIndex, len); + gzipIndex += len; + // Actualiza el �ndice de los datos descomprimidos. + uncompressedIndex += len; + } else { + int literalTree[], distanceTree[]; + if (btype == BTYPE_DYNAMIC) { + // N�mero de datos de cada tipo. + int hlit = readBits(gzip, 5) + 257; + int hdist = readBits(gzip, 5) + 1; + int hclen = readBits(gzip, 4) + 4; + // Lee el n�mero de bits para cada c�digo de longitud. + byte lengthBits[] = new byte[MAX_CODE_LENGTHS + 1]; + for (int i = 0; i < hclen; i++) + lengthBits[DYNAMIC_LENGTH_ORDER[i]] = (byte) readBits( + gzip, 3); + // Crea los c�digos para la longitud. + int lengthTree[] = createHuffmanTree(lengthBits, + MAX_CODE_LENGTHS); + // Genera los �rboles. + literalTree = createHuffmanTree(decodeCodeLengths(gzip, + lengthTree, hlit), hlit - 1); + distanceTree = createHuffmanTree(decodeCodeLengths(gzip, + lengthTree, hdist), hdist - 1); + } else { + byte literalBits[] = new byte[MAX_CODE_LITERALS + 1]; + for (int i = 0; i < 144; i++) + literalBits[i] = 8; + for (int i = 144; i < 256; i++) + literalBits[i] = 9; + for (int i = 256; i < 280; i++) + literalBits[i] = 7; + for (int i = 280; i < 288; i++) + literalBits[i] = 8; + literalTree = createHuffmanTree(literalBits, + MAX_CODE_LITERALS); + // + byte distanceBits[] = new byte[MAX_CODE_DISTANCES + 1]; + for (int i = 0; i < distanceBits.length; i++) + distanceBits[i] = 5; + distanceTree = createHuffmanTree(distanceBits, + MAX_CODE_DISTANCES); + } + // Descomprime el bloque. + int code = 0, leb = 0, deb = 0; + while ((code = readCode(gzip, literalTree)) != EOB_CODE) { + if (code > EOB_CODE) { + code -= 257; + int length = LENGTH_VALUES[code]; + if ((leb = LENGTH_EXTRA_BITS[code]) > 0) + length += readBits(gzip, leb); + code = readCode(gzip, distanceTree); + int distance = DISTANCE_VALUES[code]; + if ((deb = DISTANCE_EXTRA_BITS[code]) > 0) + distance += readBits(gzip, deb); + // Repite la informaci�n. + int offset = uncompressedIndex - distance; + while (distance < length) { + System.arraycopy(uncompressed, offset, + uncompressed, uncompressedIndex, distance); + uncompressedIndex += distance; + length -= distance; + distance <<= 1; + } + System.arraycopy(uncompressed, offset, uncompressed, + uncompressedIndex, length); + uncompressedIndex += length; + } else + uncompressed[uncompressedIndex++] = (byte) code; + } + } + } while (bfinal == 0); + // + return uncompressed; + } + + /** + * Lee un n�mero de bits + * + * @param n + * N�mero de bits [0..16] + */ + private static int readBits(byte gzip[], int n) { + // Asegura que tenemos un byte. + int data = (gzipBit == 0 ? (gzipByte = (gzip[gzipIndex++] & 0xFF)) + : (gzipByte >> gzipBit)); + // Lee hasta completar los bits. + for (int i = (8 - gzipBit); i < n; i += 8) { + gzipByte = (gzip[gzipIndex++] & 0xFF); + data |= (gzipByte << i); + } + // Ajusta la posici�n actual. + gzipBit = (gzipBit + n) & 7; + // Devuelve el dato. + return (data & ((1 << n) - 1)); + } + + /** + * Lee un c�digo. + */ + private static int readCode(byte gzip[], int tree[]) { + int node = tree[0]; + while (node >= 0) { + // Lee un byte si es necesario. + if (gzipBit == 0) + gzipByte = (gzip[gzipIndex++] & 0xFF); + // Accede al nodo correspondiente. + node = (((gzipByte & (1 << gzipBit)) == 0) ? tree[node >> 16] + : tree[node & 0xFFFF]); + // Ajusta la posici�n actual. + gzipBit = (gzipBit + 1) & 7; + } + return (node & 0xFFFF); + } + + /** + * Decodifica la longitud de c�digos (usado en bloques comprimidos con + * c�digos din�micos). + */ + private static byte[] decodeCodeLengths(byte gzip[], int lengthTree[], + int count) { + byte bits[] = new byte[count]; + for (int i = 0, code = 0, last = 0; i < count;) { + code = readCode(gzip, lengthTree); + if (code >= 16) { + int repeat = 0; + if (code == 16) { + repeat = 3 + readBits(gzip, 2); + code = last; + } else { + if (code == 17) + repeat = 3 + readBits(gzip, 3); + else + repeat = 11 + readBits(gzip, 7); + code = 0; + } + while (repeat-- > 0) + bits[i++] = (byte) code; + } else + bits[i++] = (byte) code; + // + last = code; + } + return bits; + } + + /** + * Crea el �rbol para los c�digos Huffman. + */ + private static int[] createHuffmanTree(byte bits[], int maxCode) { + // N�mero de c�digos por cada longitud de c�digo. + int bl_count[] = new int[MAX_BITS + 1]; + for (int i = 0; i < bits.length; i++) + bl_count[bits[i]]++; + // M�nimo valor num�rico del c�digo para cada longitud de c�digo. + int code = 0; + bl_count[0] = 0; + int next_code[] = new int[MAX_BITS + 1]; + for (int i = 1; i <= MAX_BITS; i++) + next_code[i] = code = (code + bl_count[i - 1]) << 1; + // Genera el �rbol. + // Bit 31 => Nodo (0) o c�digo (1). + // (Nodo) bit 16..30 => �ndice del nodo de la izquierda (0 si no tiene). + // (Nodo) bit 0..15 => �ndice del nodo de la derecha (0 si no tiene). + // (C�digo) bit 0..15 + int tree[] = new int[(maxCode << 1) + MAX_BITS]; + int treeInsert = 1; + for (int i = 0; i <= maxCode; i++) { + int len = bits[i]; + if (len != 0) { + code = next_code[len]++; + // Lo mete en en �rbol. + int node = 0; + for (int bit = len - 1; bit >= 0; bit--) { + int value = code & (1 << bit); + // Inserta a la izquierda. + if (value == 0) { + int left = tree[node] >> 16; + if (left == 0) { + tree[node] |= (treeInsert << 16); + node = treeInsert++; + } else + node = left; + } + // Inserta a la derecha. + else { + int right = tree[node] & 0xFFFF; + if (right == 0) { + tree[node] |= treeInsert; + node = treeInsert++; + } else + node = right; + } + } + // Inserta el c�digo. + tree[node] = 0x80000000 | i; + } + } + return tree; + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/Mascara.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/Mascara.java new file mode 100644 index 0000000..eb97d1b --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/Mascara.java @@ -0,0 +1,59 @@ +package com.br.gsanac.util; + +import android.text.Editable; +import android.text.TextWatcher; +import android.widget.EditText; + +/** + * Classe responsvel por criar mscara para CPF/CNPJ, telefone e RG + * + * @author Davi Menezes + * @date 27/12/2012 + * + */ +public abstract class Mascara implements TextWatcher{ + + public static String unmask(String s) { + return s.replaceAll("[.]", "").replaceAll("[-]", "") + .replaceAll("[/]", "").replaceAll("[(]", "") + .replaceAll("[)]", ""); + } + + public static TextWatcher insert(final String mask, final EditText ediTxt) { + return new TextWatcher() { + boolean isUpdating; + String old = ""; + + public void onTextChanged(CharSequence s, int start, int before, int count) { + String str = Mascara.unmask(s.toString()); + String mascara = ""; + if (isUpdating) { + old = str; + isUpdating = false; + return; + } + int i = 0; + for (char m : mask.toCharArray()) { + if (m != '#' && str.length() > old.length()) { + mascara += m; + continue; + } + try { + mascara += str.charAt(i); + } catch (Exception e) { + break; + } + i++; + } + isUpdating = true; + ediTxt.setText(mascara); + ediTxt.setSelection(mascara.length()); + } + + public void beforeTextChanged(CharSequence s, int start, int count,int after) {} + + public void afterTextChanged(Editable s) {} + }; + } + +} diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/SQLiteHelper.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/SQLiteHelper.java new file mode 100644 index 0000000..a5f4d4a --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/SQLiteHelper.java @@ -0,0 +1,37 @@ +package com.br.gsanac.util; + +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; + +/** + * @author Arthur Carvalho + * @since 06/09/2011 + */ +public class SQLiteHelper extends SQLiteOpenHelper { + + private String[] scriptsSQLCreate; + + private String[] scritpsSQLDelete; + + public SQLiteHelper(Context context, String DBName, int DBVersion, String[] scriptsSQLCreate, String[] scritpsSQLDelete) { + super(context, DBName, null, DBVersion); + this.scriptsSQLCreate = scriptsSQLCreate; + this.scritpsSQLDelete = scritpsSQLDelete; + } + + @Override + public void onCreate(SQLiteDatabase db) { + for (int i = 0; i < this.scriptsSQLCreate.length; i++) { + db.execSQL(this.scriptsSQLCreate[i]); + } + } + + @Override + public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { + for (int i = 0; i < this.scritpsSQLDelete.length; i++) { + db.execSQL(this.scritpsSQLDelete[i]); + } + onCreate(db); + } +} \ No newline at end of file diff --git a/atualizacao-cadastral-master/src/com/br/gsanac/util/Util.java b/atualizacao-cadastral-master/src/com/br/gsanac/util/Util.java new file mode 100644 index 0000000..ff010c3 --- /dev/null +++ b/atualizacao-cadastral-master/src/com/br/gsanac/util/Util.java @@ -0,0 +1,1667 @@ +package com.br.gsanac.util; + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.math.BigDecimal; +import java.text.Normalizer; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.List; +import java.util.Locale; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + + + + +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager.NameNotFoundException; +import android.database.Cursor; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.net.wifi.WifiInfo; +import android.net.wifi.WifiManager; +import android.text.InputFilter; +import android.text.Spanned; +import android.util.Log; +import android.view.Gravity; +import android.widget.AutoCompleteTextView; +import android.widget.SimpleCursorAdapter; +import android.widget.Spinner; +import android.widget.Toast; + +import com.br.gsanac.R; +import com.br.gsanac.entidades.Foto; +import com.br.gsanac.entidades.Foto.FotoColunas; +import com.br.gsanac.entidades.Logradouro; +import com.br.gsanac.entidades.LogradouroTipo; +import com.br.gsanac.entidades.LogradouroTipo.LogradouroTipoColunas; +import com.br.gsanac.entidades.LogradouroTitulo; +import com.br.gsanac.entidades.LogradouroTitulo.LogradouroTituloColunas; +import com.br.gsanac.exception.FachadaException; +import com.br.gsanac.fachada.Fachada; +import com.br.gsanac.gui.TabsActivity; +import com.br.gsanac.repositorio.RepositorioBairro; +import com.br.gsanac.repositorio.RepositorioCadastroOcorrencia; +import com.br.gsanac.repositorio.RepositorioCategoria; +import com.br.gsanac.repositorio.RepositorioCep; +import com.br.gsanac.repositorio.RepositorioClienteAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioClienteFoneAtlzCad; +import com.br.gsanac.repositorio.RepositorioClienteTipo; +import com.br.gsanac.repositorio.RepositorioEnderecoReferencia; +import com.br.gsanac.repositorio.RepositorioFoneTipo; +import com.br.gsanac.repositorio.RepositorioFonteAbastecimento; +import com.br.gsanac.repositorio.RepositorioFoto; +import com.br.gsanac.repositorio.RepositorioHidrometroCapacidade; +import com.br.gsanac.repositorio.RepositorioHidrometroInstHistAtlzCad; +import com.br.gsanac.repositorio.RepositorioHidrometroLocalInst; +import com.br.gsanac.repositorio.RepositorioHidrometroMarca; +import com.br.gsanac.repositorio.RepositorioHidrometroProtecao; +import com.br.gsanac.repositorio.RepositorioImovelAtlzCadastral; +import com.br.gsanac.repositorio.RepositorioImovelOcorrencia; +import com.br.gsanac.repositorio.RepositorioImovelPerfil; +import com.br.gsanac.repositorio.RepositorioImovelSubCategAtlzCad; +import com.br.gsanac.repositorio.RepositorioLigacaoAguaSituacao; +import com.br.gsanac.repositorio.RepositorioLigacaoEsgotoSituacao; +import com.br.gsanac.repositorio.RepositorioLogradouro; +import com.br.gsanac.repositorio.RepositorioLogradouroBairro; +import com.br.gsanac.repositorio.RepositorioLogradouroCep; +import com.br.gsanac.repositorio.RepositorioLogradouroTipo; +import com.br.gsanac.repositorio.RepositorioLogradouroTitulo; +import com.br.gsanac.repositorio.RepositorioMedicaoTipo; +import com.br.gsanac.repositorio.RepositorioMunicipio; +import com.br.gsanac.repositorio.RepositorioOrgaoExpedidorRg; +import com.br.gsanac.repositorio.RepositorioPavimentoCalcada; +import com.br.gsanac.repositorio.RepositorioPavimentoRua; +import com.br.gsanac.repositorio.RepositorioPessoaSexo; +import com.br.gsanac.repositorio.RepositorioQuadra; +import com.br.gsanac.repositorio.RepositorioSetorComercial; +import com.br.gsanac.repositorio.RepositorioSistemaParametros; +import com.br.gsanac.repositorio.RepositorioSubCategoria; +import com.br.gsanac.repositorio.RepositorioUnidadeFederacao; + +public class Util { + + public static SimpleDateFormat dateFormatDB = new SimpleDateFormat(ConstantesSistema.DATE_FORMAT_DATABASE); + + public static SimpleDateFormat dateFormatBrazil = new SimpleDateFormat(ConstantesSistema.DATE_FORMAT_BRAZIL); + + public static SimpleDateFormat dateComHoraFormatBrazil = new SimpleDateFormat(ConstantesSistema.DATE_COM_HORA_FORMAT_BRAZIL); + + private static SimpleDateFormat dateOnlyFormatFileName = new SimpleDateFormat("ddMMyyyy"); + + public static SimpleDateFormat dateFormatFilename = new SimpleDateFormat(ConstantesSistema.DATE_FORMAT_FILENAME); + + /** + * @author Arthur Carvalho + * @since 15/09/2011 + * @return a data corrente + */ + public static Date getCurrentDateTime() { + Calendar gregorianCalendar = Calendar.getInstance(); + return gregorianCalendar.getTime(); + } + +// public static Date convertStringToDate(String dateString) { +// Date date = null; +// +// try { +// if (dateString.length() == 8) { +// dateString = dateString.substring(0, 4) + "-" + dateString.substring(4, 6) + "-" +// + dateString.substring(6, 8) + " 00:00:00"; +// } +// date = dateFormatDB.parse(dateString); +// } catch (ParseException pe) { +// pe.printStackTrace(); +// } +// +// return date; +// } + + /** + * @author Arthur Carvalho + * @since 09/09/2011 + * @param context + * @return o IMEI do aparelho + */ + public static String getEnderecoMac(Context context) { + WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); + WifiInfo wifiInfo = wifiManager.getConnectionInfo(); + String enderecoMac = wifiInfo.getMacAddress(); + + + return enderecoMac.replace(":", ""); + } + /** + * @author Arthur Carvalho + * @since 09/09/2011 + * @param params + * @return + */ + public static byte[] packagingParameters(List params) { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + DataOutputStream dos = new DataOutputStream(baos); + + byte[] response = null; + + try { + if (params != null) { + for (int i = 0; i < params.size(); i++) { + Object param = params.get(i); + + if (param instanceof Byte) { + dos.writeByte(((Byte) param).byteValue()); + } else if (param instanceof Integer) { + dos.writeInt(((Integer) param).intValue()); + } else if (param instanceof Long) { + dos.writeLong(((Long) param).longValue()); + } else if (param instanceof String) { + dos.writeUTF((String) param); + } else if (param instanceof byte[]) { + dos.write((byte[]) param); + } + } + } + + response = baos.toByteArray(); + + if (dos != null) { + dos.close(); + dos = null; + } + + if (baos != null) { + baos.close(); + baos = null; + } + + } catch (IOException ioe) { + ioe.printStackTrace(); + } + + return response; + } + + /** + * @author Arthur Carvalho + * @since 15/09/2011 + * @param line + * linha do arquivo que deve ser parseada + * @return um array com os campos do objeto + */ + public static List split(String line) { + List lines = new ArrayList(); + + char[] chars = line.toCharArray(); + + StringBuilder sb = new StringBuilder(); + + for (int i = 0; i < chars.length; i++) { + if (chars[i] != '|') { + sb.append(chars[i]); + } else { + lines.add(sb.toString()); + sb = new StringBuilder(); + } + } + + return lines; + } + + /** + * + * @author Arthur Carvalho + * @date 30/01/2013 + * + * @param intToValidate + * @return + */ + public static Integer parseStringToInteger(String intToValidate) { + + Integer value = null; + + if (intToValidate == null || intToValidate.trim().equals("")) { + + } else { + value = Integer.parseInt(intToValidate.trim()); + } + + return value; + } + + /** + * @author Arthur Carvalho + * @since 16/09/2011 + * @param lastChange + * a data recebida do banco de dados no formato yyyy-MM-dd HH:mm:ss + * @return a data no formato dd/MM/yyyy + */ + public static String convertDateToString(Date lastChange) { + return dateFormatBrazil.format(lastChange); + } + + /** + * @author Arthur Carvalho + * @since 16/09/2011 + * @param lastChange + * a data recebida do banco de dados no formato yyyy-MM-dd HH:mm:ss + * @return a data no formato dd/MM/yyyy HH:mm:ss + */ + public static String convertDateToStringComHora(Date lastChange) { + return dateComHoraFormatBrazil.format(lastChange); + } + + /** + * @author Arthur Carvalho + * @since 19/09/2011 + * @param textToSpinner + * @return adapterToSpinner - um Adapter para um spinner (Combobox) + */ + public static SimpleCursorAdapter getAdapter(Cursor cursor) { + + int[] to = new int[] { + android.R.id.text1 + }; + + String[] from = new String[] { + "description" + }; + + @SuppressWarnings("deprecation") + SimpleCursorAdapter simpleCursorAdapter = new SimpleCursorAdapter(Fachada.getContext(), + android.R.layout.simple_spinner_item, + cursor, + from, + to); + + simpleCursorAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + + simpleCursorAdapter.notifyDataSetChanged(); + + return simpleCursorAdapter; + } + + /** + * @author Anderson Cabral + * @since 23/01/2013 + * @param textToSpinner + * @return adapterToAutoComplete - um Adapter para um AutoComplete + */ + public static SimpleCursorAdapter getAdapterAutoComplete(Cursor cursor) { + + int[] to = new int[] { + android.R.id.text1 + }; + + String[] from = new String[] { + "description" + }; + + SimpleCursorAdapter simpleCursorAdapter = new SimpleCursorAdapter(Fachada.getContext(), android.R.layout.simple_dropdown_item_1line, cursor, from, to, 0); + + simpleCursorAdapter.setCursorToStringConverter(new SimpleCursorAdapter.CursorToStringConverter() { + @Override + public CharSequence convertToString(Cursor cursor) { + final int colIndex = cursor.getColumnIndexOrThrow("description"); + return cursor.getString(colIndex); + } + }); + + simpleCursorAdapter.notifyDataSetChanged(); + + return simpleCursorAdapter; + } + + private static int calculateDigit(String str, int[] peso) { + int soma = 0; + for (int indice = str.length() - 1, digito; indice >= 0; indice--) { + digito = Integer.parseInt(str.substring(indice, indice + 1)); + soma += digito * peso[peso.length - str.length() + indice]; + } + soma = 11 - soma % 11; + return soma > 9 ? 0 : soma; + } + + /** + *

+ * Funcao de validacao para CPF + *

+ * + * @author Arthur Carvalho + * @since 22/09/2011 + * @param cpf + * @return + */ + public static boolean validateCPF(String cpf) { + if ((cpf == null) || (cpf.length() != 11)) + return false; + + Integer firstDigit = calculateDigit(cpf.substring(0, 9), ConstantesSistema.CPF); + Integer secondDigit = calculateDigit(cpf.substring(0, 9) + firstDigit, ConstantesSistema.CPF); + + ArrayList cpfsInvalidos = new ArrayList(); + cpfsInvalidos.add("00000000000"); + cpfsInvalidos.add("11111111111"); + cpfsInvalidos.add("22222222222"); + cpfsInvalidos.add("33333333333"); + cpfsInvalidos.add("44444444444"); + cpfsInvalidos.add("55555555555"); + cpfsInvalidos.add("66666666666"); + cpfsInvalidos.add("77777777777"); + cpfsInvalidos.add("88888888888"); + cpfsInvalidos.add("99999999999"); + + return cpf.equals(cpf.substring(0, 9) + firstDigit.toString() + secondDigit.toString()) && !cpfsInvalidos.contains(cpf); + } + + /** + *

+ * Funcao de validacao para CNPJ + *

+ * + * @author Arthur Carvalho + * @since 22/09/2011 + * @param cnpjNumber + * @return + */ + public static boolean validateCNPJ(String cnpj) { + if ((cnpj == null) || (cnpj.length() != 14)) + return false; + + ArrayList cnpjsInvalidos = new ArrayList(); + cnpjsInvalidos.add("00000000000000"); + cnpjsInvalidos.add("11111111111111"); + cnpjsInvalidos.add("22222222222222"); + cnpjsInvalidos.add("33333333333333"); + cnpjsInvalidos.add("44444444444444"); + cnpjsInvalidos.add("55555555555555"); + cnpjsInvalidos.add("66666666666666"); + cnpjsInvalidos.add("77777777777777"); + cnpjsInvalidos.add("88888888888888"); + cnpjsInvalidos.add("99999999999999"); + + Integer firstDigit = calculateDigit(cnpj.substring(0, 12), ConstantesSistema.CNPJ); + Integer secondDigit = calculateDigit(cnpj.substring(0, 12) + firstDigit, ConstantesSistema.CNPJ); + + return cnpj.equals(cnpj.substring(0, 12) + firstDigit.toString() + secondDigit.toString()) && !cnpjsInvalidos.contains(cnpj); + } + + /** + * Adiciona um pipe ao final do objeto passado + * + * @param String + * a ter o pipe adicionado + * @return + */ + public static String stringPipe(Object obj) { + if ( obj == null ) { + return "|"; + } else { + return obj + "|"; + } + } + + /** + * Função usada para converter um Date para String em formato de nome de arquivo + * + * @param date + * @return String + */ + public static String convertDateToDateOnlyStrFile() { + Date date = new Date(); + String dateStr = dateOnlyFormatFileName.format(date); + return dateStr; + } + + /** + * Verifica se o valor da String.trim() veio como null ou como Constantes.NULO_STRING, setando + * como Constantes.NULO_INT caso verdadadeiro + * + * @param valor + * @return + */ + public static Integer verificarNuloInt(String valor) { + if (valor == null || valor.trim().equals(ConstantesSistema.NULO_STRING)) { + return ConstantesSistema.NULO_INT; + } else { + return Integer.parseInt(valor.trim()); + } + } + + /** + * Verifica se o valor da String.trim() veio como null ou como Constantes.NULO_STRING, setando + * como Constantes.NULO_INT caso verdadadeiro + * + * @param valor + * @return + */ + public static Long verificarNuloLong(String valor) { + if (valor == null || valor.trim().equals(ConstantesSistema.NULO_STRING)) { + return ConstantesSistema.NULO_LONG; + } else { + return Long.parseLong(valor.trim()); + } + } + +// /** +// * Adiciona um pipe ao final do objeto passado +// * +// * @param String +// * a ter o pipe adicionado +// * @return +// */ +// public static String stringPipeWithSpace(String parametro) { +// if (parametro == null || parametro.equals("null") || parametro.equals("0") || parametro.equals("")) { +// return " |"; +// } else { +// return parametro + "|"; +// } +// } + + /** + * Retorna um Bitmap de modo que nao utilize muita memoria. Previne o memoryOutOfBounds + */ + public static Bitmap decodeFile(File f) { + try { + // Decode image size + BitmapFactory.Options o = new BitmapFactory.Options(); + o.inJustDecodeBounds = true; + BitmapFactory.decodeStream(new FileInputStream(f), null, o); + + // The new size we want to scale to + final int REQUIRED_SIZE = 70; + + // Find the correct scale value. It should be the power of 2. + int width_tmp = o.outWidth, height_tmp = o.outHeight; + int scale = 1; + while (true) { + if (width_tmp / 2 < REQUIRED_SIZE || height_tmp / 2 < REQUIRED_SIZE) + break; + width_tmp /= 2; + height_tmp /= 2; + scale *= 2; + } + + // Decode with inSampleSize + BitmapFactory.Options o2 = new BitmapFactory.Options(); + o2.inSampleSize = scale; + return BitmapFactory.decodeStream(new FileInputStream(f), null, o2); + } catch (FileNotFoundException fnfe) { + Log.e(ConstantesSistema.LOG_TAG, fnfe.getMessage() + " - " + fnfe.getCause()); + } + + return null; + } + + public static boolean hasParameter(List params, byte param) { + return !params.isEmpty() && params.contains(param) && params.get(0).equals(param); + } + + /****************************************** + * ********** FOTO ************************ + * ****************************************/ + + /**Retorna o caminho completo da foto**/ + public static String completePhotoPath(Integer imovelAtlzCadastralId, Integer photoTypeId) { + long timeStamp = new Date().getTime(); + return ConstantesSistema.SDCARD_GSANAC_PHOTOS_PATH + "/" + imovelAtlzCadastralId + "_" + photoTypeId + "_" + timeStamp + ".jpg"; + } + + /**Retorna um File com o caminho completo da foto**/ + public static File getPhotoFile(Integer imovelAtlzCadastralId, Integer photoTypeId) { + return new File(Util.completePhotoPath(imovelAtlzCadastralId, photoTypeId)); + } + + /**Retorna um File com o caminho completo da foto**/ + public static String getFotoFile(String codigo, Integer photoTypeId) { + return Util.completeFotoPath(codigo, photoTypeId); + } + + /**Retorna o caminho completo da foto**/ + public static String completeFotoPath(String codigo, Integer photoTypeId) { + return ConstantesSistema.SDCARD_GSANAC_PHOTOS_PATH + "/" + codigo + "_" + photoTypeId + ".jpg"; + } +// public static Bitmap getBitmap(Integer imovelAtlzCadastralId, Integer photoTypeId) { +// +// Bitmap bmp = null; +// +// File photo = getPhotoFile(imovelAtlzCadastralId, photoTypeId); +// +// if (photo.exists()) { +// bmp = Util.decodeFile(photo); +// } +// +// return bmp; +// } + +// public static boolean photoExists(Integer imovelAtlzCadastralId, Integer photoTypeId) { +// return (Util.getPhotoFile(imovelAtlzCadastralId, photoTypeId)).exists(); +// } + + public static Foto pesquisarFotoBanco(Integer idImovel, Integer fotoTipo){ + Foto foto = new Foto(); + String selection = FotoColunas.IMOVELATLZCAD_ID + "=?"; + selection += " AND " + FotoColunas.FOTOTIPO + "=?"; + + String[] selectionArgs = new String[] { + String.valueOf(idImovel), + String.valueOf(fotoTipo) + }; + + try { + Fachada fachada = Fachada.getInstance(); + foto = (Foto) fachada.pesquisar(foto, selection, selectionArgs); + } catch (FachadaException e) { + Log.e(ConstantesSistema.LOG_TAG, e.getMessage() + " - " + e.getCause()); + } + + if(foto != null && foto.getId() != null){ + return foto; + }else{ + return null; + } + } + + public static Bitmap getBitmapByPath(String path) { + + Bitmap bmp = null; + + File photo = getPhotoFileByPath(path); + + if (photo.exists()) { + bmp = Util.decodeFile(photo); + } + + return bmp; + } + + /**Retorna um File com o caminho passado como parametro**/ + public static File getPhotoFileByPath(String path) { + return new File(path); + } + + public static boolean photoExistsByPath(String path) { + return (Util.getPhotoFileByPath(path)).exists(); + } + + public static String convertDateToDateStrFile() { + Date date = new Date(); + String dateStr = dateFormatFilename.format(date); + return dateStr; + } + + /** + * @author Arthur Carvalho + * @since 28/09/2011 + * @param imovelAtlzCadastralId + * Id da ordem de serviço + * @param photoTypeId + * Id do tipo da foto + * @return se o arquivo foi removido + */ + public static boolean deletePhotoFileByPath(String path) { + return (Util.getPhotoFileByPath(path)).delete(); + } + + + public static void showMessage(Context context, String message, int duration) { + Toast toast = Toast.makeText(context, message, duration); + toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); + toast.show(); + } + + public static String completeTXTPath(Integer imovelAtlzCadastralId) { + return ConstantesSistema.SDCARD_GSANAC_RETURN_PATH + "/" + imovelAtlzCadastralId + ".txt"; + } + + public static File getTXTFile(Integer imovelAtlzCadastralId) { + return new File(Util.completeTXTPath(imovelAtlzCadastralId)); + } + + public static void createSystemDirs() { + String[] dirs = new String[] { + ConstantesSistema.SDCARD_GSANAC_FILES_PATH, + ConstantesSistema.SDCARD_GSANAC_PHOTOS_PATH, + ConstantesSistema.SDCARD_GSANAC_RETURN_PATH, + ConstantesSistema.SDCARD_GSANAC_ARQUIVO_DIVIDIDO_PATH, + ConstantesSistema.SDCARD_GSANAC_VERSION_PATH + + }; + + for (String dir : dirs) { + File file = new File(dir); + if (!file.exists()) { + if (file.mkdirs()) { + Log.v(ConstantesSistema.LOG_TAG, "Create directory: " + file.getAbsolutePath()); + } else { + Log.e(ConstantesSistema.LOG_TAG, "NOT Created directory: " + file.getAbsolutePath()); + } + + } + } + } + + public static void verifyNoMedia() { + File noMedia = new File(ConstantesSistema.SDCARD_DCIM_CAMERA_PATH + "/.nomedia"); + + if (!noMedia.exists()) { + noMedia.mkdirs(); + try { + noMedia.createNewFile(); + } catch (IOException ioe) { + ioe.printStackTrace(); + } + } + } + + /***********************************************************************************************************************************/ + + public static String formatarCEP(String codigo) { + + String retornoCEP = ""; + if(!codigo.equals("0")){ + String parte1 = codigo.substring(0, 2); + String parte2 = codigo.substring(2, 5); + String parte3 = codigo.substring(5, 8); + + retornoCEP = parte1 + "." + parte2 + "-" + parte3; + } + + return retornoCEP; + } + + + public static String retirarFormatacaoCEP(String codigo) { + + String retornoCEP = null; + + String parte1 = codigo.substring(0, 2); + String parte2 = codigo.substring(3, 6); + String parte3 = codigo.substring(7, 10); + + retornoCEP = parte1+parte2+parte3; + + return retornoCEP; + } + + /** + * Exibi um Alert com a mensagem passada por parametro + * + * @author Anderson Cabral + * @date 26/12/2012 + * + * @param Activity + * @param Titulo + * @param Mensagem + */ + public static void exibirMensagemErro(Context activity, String mensagem){ + new AlertDialog.Builder(activity).setTitle("ATENO") + .setMessage(mensagem) + .setIcon(R.drawable.warning) + .setNeutralButton(ConstantesSistema.ALERT_OK, + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }) + .show(); + } + + /** + * Exibi um Alert com a mensagem passada por parametro + * + * @author Flavio Ferreira + * @date 29/10/2013 + * + * @param Activity + * @param Titulo + * @param Mensagem + */ + public static void exibirMensagemOk(Context activity, String mensagem){ + new AlertDialog.Builder(activity).setTitle("") + .setMessage(mensagem) + .setIcon(R.drawable.ok) + .setNeutralButton(ConstantesSistema.ALERT_OK, + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + } + }) + .show(); + } + + /** + * Seleciona um item no combo + * + * @author Anderson Cabral + * @date 27/12/2012 + * + * @param spinner + * @param id + */ +// public static void selecionarItemCombo(Spinner spinner, long id){ +// +// for (int i = 0; i < spinner.getCount(); i++) { +// long itemIdAtPosition2 = spinner.getItemIdAtPosition(i); +// if (itemIdAtPosition2 == id && (itemIdAtPosition2 != 0)) { +// spinner.setSelection(i); +// break; +// } +// } +// } + + /** + * Seleciona um item no combo considerando o id ZERO + * + * @author Anderson Cabral + * @date 01/02/2013 + * + * @param spinner + * @param id + */ + public static void selecionarItemCombo(Spinner spinner, long id){ + + for (int i = 0; i < spinner.getCount(); i++) { + long itemIdAtPosition2 = spinner.getItemIdAtPosition(i); + if (itemIdAtPosition2 == id) { + spinner.setSelection(i); + break; + } + } + } + + /** + * Seleciona um item no AutoComplete + * + * @author Anderson Cabral + * @date 23/01/2013 + * + * @param AutoCompleteTextView + * @param id + */ + public static void selecionarItemAutoComplete(AutoCompleteTextView autoCompleteTextView, long id, ArrayList logradouros){ + + try { + for(Logradouro logradouro : logradouros){ + if(id == logradouro.getId().longValue()){ + String endereco = ""; + LogradouroTipo logradouroTipo = new LogradouroTipo(); + + String selectionTipo = LogradouroTipoColunas.ID + "=?"; + + String[] selectionArgsTipo = new String[] { + String.valueOf(logradouro.getLogradouroTipo().getId()) + }; + + logradouroTipo = (LogradouroTipo) Fachada.getInstance().pesquisar(logradouroTipo, selectionTipo, selectionArgsTipo); + + if ( logradouroTipo != null ) { + endereco = logradouroTipo.getDescricao() + " "; + } + + + LogradouroTitulo logradouroTitulo = new LogradouroTitulo(); + + String selectionTitulo = LogradouroTituloColunas.ID + "=?"; + + String[] selectionArgsTitulo = new String[] { + String.valueOf(logradouro.getLogradouroTitulo().getId()) + }; + + logradouroTitulo = (LogradouroTitulo) Fachada.getInstance().pesquisar(logradouroTitulo, selectionTitulo, selectionArgsTitulo); + + if ( logradouroTitulo != null && logradouroTitulo.getDescricao() != null ) { + endereco += logradouroTitulo.getDescricao() + " "; + } + + + endereco += logradouro.getNomeLogradouro(); + + + autoCompleteTextView.setText(endereco); + break; + } + } + } catch (FachadaException e) { + e.printStackTrace(); + } + } + + /** + * REMOVE AS INSTANCIAS DO REPOSITORIO, CASO O BANCO SEJA REMOVIDO NECESSARIO CRIAR UMA NOVA INSTANCIA. + * + * @author Arthur Carvalho + * @date 30/01/2013 + * + */ + public static void removeInstanceRepository() { + + RepositorioBairro.removeInstance(); + RepositorioCadastroOcorrencia.removeInstance(); + RepositorioCategoria.removeInstance(); + RepositorioCep.removeInstance(); + RepositorioClienteAtlzCadastral.removeInstance(); + RepositorioClienteFoneAtlzCad.removeInstance(); + RepositorioClienteTipo.removeInstance(); + RepositorioEnderecoReferencia.removeInstance(); + RepositorioFoneTipo.removeInstance(); + RepositorioFonteAbastecimento.removeInstance(); + RepositorioFoto.removeInstance(); + RepositorioHidrometroCapacidade.removeInstance(); + RepositorioHidrometroInstHistAtlzCad.removeInstance(); + RepositorioHidrometroLocalInst.removeInstance(); + RepositorioHidrometroMarca.removeInstance(); + RepositorioHidrometroProtecao.removeInstance(); + RepositorioImovelAtlzCadastral.removeInstance(); + RepositorioImovelOcorrencia.removeInstance(); + RepositorioImovelPerfil.removeInstance(); + RepositorioImovelSubCategAtlzCad.removeInstance(); + RepositorioLigacaoAguaSituacao.removeInstance(); + RepositorioLigacaoEsgotoSituacao.removeInstance(); + RepositorioLogradouro.removeInstance(); + RepositorioLogradouroBairro.removeInstance(); + RepositorioLogradouroCep.removeInstance(); + RepositorioLogradouroTipo.removeInstance(); + RepositorioLogradouroTitulo.removeInstance(); + RepositorioMedicaoTipo.removeInstance(); + RepositorioMunicipio.removeInstance(); + RepositorioOrgaoExpedidorRg.removeInstance(); + RepositorioPavimentoCalcada.removeInstance(); + RepositorioPavimentoRua.removeInstance(); + RepositorioPessoaSexo.removeInstance(); + RepositorioQuadra.removeInstance(); + RepositorioSistemaParametros.removeInstance(); + RepositorioSubCategoria.removeInstance(); + RepositorioUnidadeFederacao.removeInstance(); + RepositorioSetorComercial.removeInstance(); + + } + + /** + * + * @author Arthur Carvalho + * @date 30/01/2013 + * + * @param diaAnoMesReferencia + * @return + */ + public static boolean validarDiaMesAno(String diaAnoMesReferencia) { + boolean anoMesInvalido = false; + + if (diaAnoMesReferencia.length() == 10) { + + // String mesAnoReferencia = anoMesReferencia.substring(4, 6) + "/" + // + anoMesReferencia.substring(0, 4); + + SimpleDateFormat dataTxt = new SimpleDateFormat("DD/MM/yyyy"); + + try { + dataTxt.parse(diaAnoMesReferencia); + } catch (ParseException e) { + anoMesInvalido = true; + } + } else { + anoMesInvalido = true; + } + + return anoMesInvalido; + } + + + /** + * Mtodo para retornar o valor do InputStream para o E71 e o E5 + * + * @param input + * @return string de retorno com o valor + * @throws IOException + */ + public static String getValorRespostaInputStream(InputStream input) throws IOException { + char valor = ' '; + try { + + // ---INICIO E5 + valor = (char) input.read(); + // ---FIM E5 + + } catch (Exception e) { + // ---INICIO E71 + InputStreamReader isr = new InputStreamReader(input); + valor = (char) isr.read(); + // ---FIM E71 + + } + + return String.valueOf(valor); + } + + /** + * Mtodo para retornar o valor do InputStream para o E71 e o E5 + * + * @param input + * @return char de retorno com o valor + * @throws IOException + */ + public static char getCharValorRespostaInputStream(InputStream input) throws IOException { + char valor = ' '; + try { + + // ---INICIO E5 + valor = (char) input.read(); + // ---FIM E5 + + } catch (Exception e) { + // ---INICIO E71 + InputStreamReader isr = new InputStreamReader(input); + valor = (char) isr.read(); + // ---FIM E71 + + } + + return valor; + } + + public static String getVersaoSistema(Context context){ + + PackageInfo pinfo = null; + + try { + pinfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0); + } catch (NameNotFoundException e) { + e.printStackTrace(); + } + + return pinfo.versionName; + + } + + /** + * + * Deleta todas as pastas e arquivos filhos de gsanAC. + * + * + * @param Caminho da pasta gsanAC no SDCARD + * @return + */ + public static void deletarPastas(File fileOrDirectory){ + // Deleta as pastas diferente de 'carregamento' + if (fileOrDirectory.isDirectory()){ + for (File child : fileOrDirectory.listFiles()){ + deletarPastas(child); + } + } + fileOrDirectory.delete(); + } + + public static byte[] empacotarParametros(ArrayList parametros) throws IOException { + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + DataOutputStream dos = new DataOutputStream(baos); + + byte[] resposta = null; + + parametros.trimToSize(); + + // escreve os dados no OutputStream + if (parametros != null) { + int tamanho = parametros.size(); + for (int i = 0; i < tamanho; i++) { + Object param = parametros.get(i); + if (param instanceof Byte) { + dos.writeByte(((Byte) param).byteValue()); + } else if (param instanceof Integer) { + dos.writeInt(((Integer) param).intValue()); + } else if (param instanceof Short) { + dos.writeShort(((Short) param).shortValue()); + } else if (param instanceof Long) { + dos.writeLong(((Long) param).longValue()); + } else if (param instanceof String) { + dos.writeUTF((String) param); + } else if (param instanceof byte[]) { + dos.write((byte[]) param); + } + } + } + + // pega os dados enpacotados + resposta = baos.toByteArray(); + + if (dos != null) { + dos.close(); + dos = null; + } + if (baos != null) { + baos.close(); + baos = null; + } + + // retorna o array de bytes + return resposta; + } + /** + * Mtodo que recebe uma data com string no formato dd/MM/yyyy e converte + * para o objeto Date. + * + * @param data + * @autor Thiago Toscano + * @date 20/05/2005 + * @return + */ + public static Date converteStringParaDate(String data) { + Date retorno = null; + try { + retorno = new SimpleDateFormat("dd/MM/yyyy", new Locale("pt", "BR")).parse(data); + } catch (Exception e) { + new IllegalArgumentException(data + " no tem o formato dd/MM/yyyy."); + } + return retorno; + } + + /** + * Reseta os valores das variaveis globais staticas. + * + * @author Arthur Carvalho + * @date 30/01/2013 + * + */ + public static void removerAtributosTabsActivity(){ + + TabsActivity.imovel = null; + TabsActivity.cliente = null; + TabsActivity.hidrometroInstalacaoHist = null; + TabsActivity.colecaoClienteFone = null; + TabsActivity.sistemaParametros = null; + TabsActivity.colecaoImovelOcorrencia = null; + TabsActivity.colImoveisSubCategoria = null; + TabsActivity.mensagemErro = null; + TabsActivity.carregarImovel = false; + TabsActivity.concluirAtualizacao = false; + TabsActivity.indicadorExibirMensagemErro = true; + TabsActivity.indicadorIntegracao = false; + TabsActivity.primeiraVezAbaLigacao = true; + TabsActivity.primeiraVezAbaImovel = true; + TabsActivity.colecaoClienteFoneIncial = null; + TabsActivity.colecaoImovelOcorrenciaInicial = null; + TabsActivity.colImoveisSubCategoriaInicial = null; + TabsActivity.fotoFrenteDaCasa = null; + TabsActivity.fotoFrenteDaCasaInicial = null; + TabsActivity.fotoHidrometro = null; + TabsActivity.fotoHidrometroInicial = null; + } + + /** + * Verifica se a string passada corresponde a uma data vlida de acordo com o formato que est sendo passado. + * + * @author Raphael Rossiter + * @date 03/09/2010 + * + * @param data + * @param formato + * @return boolean + */ + public static boolean validarData(String data, String formato) { + + boolean dataInvalida = false; + + try { + + if (data != null && !data.equals("") && data.length() == 10){ + + int diaInt = Integer.parseInt(data.substring(0, 2)); + int mesInt = Integer.parseInt(data.substring(3, 5)); + int anoInt = Integer.parseInt(data.substring(6, 10)); + + if (mesInt > 12) { + dataInvalida = true; + } + if (diaInt > 31) { + dataInvalida = true; + } + + int ultimoDiaMes = Integer.valueOf(Util.obterUltimoDiaMes(mesInt, anoInt)); + + if (diaInt > ultimoDiaMes){ + dataInvalida = true; + } + + SimpleDateFormat formatacaoData = new SimpleDateFormat(formato, new Locale("pt", "BR")); + formatacaoData.parse(data); + + } else{ + + dataInvalida = true; + } + + } catch (Exception e) { + dataInvalida = true; + } + + return dataInvalida; + } + + /** + * Retorna o Ultimo Dia do Ms informado Auhtor: Rafael Corra Data: + * 02/04/2007 Indices de Ms 1 - Janiero 2 - Fevereiro 3 - Maro 4 - Abril 5 - + * Maio 6 - Junho 7 - Julho 8 - Agosto 9 - Setembro 10 - Outubro 11 - + * Novembro 12 - Dezembro + * + * @param mes + * Indice do Ms + * @param ano + * Ano + * @return Ultimo Dia do Mes + */ + public static String obterUltimoDiaMes(int mes, int ano) { + String ultimoDia = ""; + + Calendar calendar = new GregorianCalendar(ano, mes -1, 1); + + // ultima dia do mes + calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH)); + + ultimoDia = "" + calendar.get(Calendar.DAY_OF_MONTH); + + return ultimoDia; + } + + + /** + * + * @author Arthur Carvalho + * @date 17/01/2013 + * + * @param dateString + * @return + */ + public static Date convertStringToDate(String dateString) { + Date date = null; + + try { + if (dateString.length() == 8) { + dateString = dateString.substring(0, 4) + "-" + dateString.substring(4, 6) + "-" + + dateString.substring(6, 8) + " 00:00:00"; + } + date = dateFormatDB.parse(dateString); + } catch (ParseException pe) { + pe.printStackTrace(); + } + + return date; + } + + + + + + /** + * Adiciona o arquivo especificado ao zipOutputStream que representa o + * arquivo zip + * + * @author Rodrigo Silveira + * @date 19/05/2006 + * + * @param zipFile + * Stream que representa o arquivo zip + * @param file + * Arquivo a ser adicionado no arquivo zip + * @throws IOException + */ + public static void adicionarArquivo(ZipOutputStream zipFile, File file) + throws IOException { + + FileInputStream inputStream = new FileInputStream(file); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + int INPUT_BUFFER_SIZE = 1024; + byte[] temp = new byte[INPUT_BUFFER_SIZE]; + int numBytesRead = 0; + + while ((numBytesRead = inputStream.read(temp, 0, INPUT_BUFFER_SIZE)) != -1) { + baos.write(temp, 0, numBytesRead); + } + + inputStream.close(); + inputStream = null; + + byte[] data = baos.toByteArray(); + + ZipEntry zen = new ZipEntry(file.getName()); + zipFile.putNextEntry(zen); + zipFile.write(data, 0, data.length); + zipFile.closeEntry(); + } + + + + /** + * Adiciona arquivo no zip + * @author Arthur Carvalho + * @date 30/01/2013 + * + * @param path + * @param srcFile + * @param zip + * @throws Exception + */ + public static void addFileToZip(String path, String srcFile, ZipOutputStream zip) throws Exception { + + File folder = new File(srcFile); + if (folder.isDirectory()) { + addFolderToZip(path, srcFile, zip); + } else { + byte[] buf = new byte[1024]; + int len; + FileInputStream in = new FileInputStream(srcFile); + zip.putNextEntry(new ZipEntry(path + folder.getName())); + while ((len = in.read(buf)) > 0) { + zip.write(buf, 0, len); + } + } + } + + /** + * Adiciona pasta no zip. + * @author Arthur Carvalho + * @date 30/01/2013 + * + * @param path + * @param srcFolder + * @param zip + * @throws Exception + */ + public static void addFolderToZip(String path, String srcFolder, ZipOutputStream zip) throws Exception { + + File folder = new File(srcFolder); + + for (String fileName : folder.list()) { + if (path.equals("")) { + addFileToZip(folder.getName(), srcFolder + "/" + fileName, zip); + } else { + addFileToZip(path + "/" + folder.getName(), srcFolder + "/" + fileName, zip); + } + } + } + + /** + * + * @author Arthur Carvalho + * @date 30/01/2013 + * + * @param cursor + * @param columnName + * @param columnIndex + * @return + */ + public static BigDecimal getDoubleBanco (Cursor cursor, String columnName, int columnIndex){ + + if (! cursor.isNull(cursor.getColumnIndex(columnName)) ){ + return BigDecimal.valueOf(cursor.getDouble(columnIndex)); + }else{ + return null; + } + } + + + /** + * + * @author Arthur Carvalho + * @date 25/01/2013 + * + * @param cursor + * @return + */ + public static SimpleCursorAdapter getAdapterAutoCompleteLogradouro(Cursor cursor) { + + int[] to = new int[] { + android.R.id.text1 + }; + + String[] from = new String[] { + ConstantesSistema.COLUMN_DESC_FORMATADA_ALIAS + }; + + SimpleCursorAdapter simpleCursorAdapter = new SimpleCursorAdapter(Fachada.getContext(), android.R.layout.simple_dropdown_item_1line, cursor, from, to, 0); + + simpleCursorAdapter.setCursorToStringConverter(new SimpleCursorAdapter.CursorToStringConverter() { + @Override + public CharSequence convertToString(Cursor cursor) { + final int colIndexTipo = cursor.getColumnIndexOrThrow(ConstantesSistema.COLUMN_TIPO_ALIAS); + final int colIndexTitulo = cursor.getColumnIndexOrThrow(ConstantesSistema.COLUMN_TITULO_ALIAS); + final int colIndexLogradouro = cursor.getColumnIndexOrThrow(ConstantesSistema.COLUMN_LOGRADOURO_ALIAS); + + String formatado = cursor.getString(colIndexTipo) + " "; + if ( cursor.getString(colIndexTitulo) != null ) { + formatado += cursor.getString(colIndexTitulo) + " "; + } + formatado += cursor.getString(colIndexLogradouro); + + return formatado; + } + }); + + cursor.close(); + + return simpleCursorAdapter; + } + + /** + * + * @author Arthur Carvalho + * @date 29/01/2013 + * + * @param data + * @return + */ + public static String obterAAAAMMDDHHMMSS(Date data) { + StringBuffer dataBD = new StringBuffer(); + + if (data != null) { + Calendar dataCalendar = new GregorianCalendar(); + + dataCalendar.setTime(data); + + dataBD.append(dataCalendar.get(Calendar.YEAR)); + if (dataCalendar.get(Calendar.MONTH) >= 9) { + dataBD.append(dataCalendar.get(Calendar.MONTH)+1); + }else { + dataBD.append("0" + (dataCalendar.get(Calendar.MONTH)+1)); + } + if (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) { + dataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH)); + }else { + dataBD.append("0" + dataCalendar.get(Calendar.DAY_OF_MONTH)); + } + if (dataCalendar.get(Calendar.HOUR_OF_DAY) > 9) { + dataBD.append(dataCalendar.get(Calendar.HOUR_OF_DAY)); + } else { + dataBD.append("0" + dataCalendar.get(Calendar.HOUR_OF_DAY)); + } + + if (dataCalendar.get(Calendar.MINUTE) > 9) { + dataBD.append(dataCalendar.get(Calendar.MINUTE)); + } else { + dataBD.append("0" + dataCalendar.get(Calendar.MINUTE)); + } + if (dataCalendar.get(Calendar.SECOND) > 9) { + dataBD.append(dataCalendar.get(Calendar.SECOND)); + } else { + dataBD.append("0" + dataCalendar.get(Calendar.SECOND)); + } + } + + return dataBD.toString(); + } + + + public static ArrayList split_(String line) { + ArrayList lines = new ArrayList(); + + char[] chars = line.toCharArray(); + + StringBuilder sb = new StringBuilder(); + + for (int i = 0; i < chars.length; i++) { + if (chars[i] != '_') { + sb.append(chars[i]); + } else { + lines.add(sb.toString()); + sb = new StringBuilder(); + } + } + + return lines; + } + + public static InputFilter filterReplaceCaracteresEspeciais() { + InputFilter filter = new InputFilter() { + + @Override + public CharSequence filter(CharSequence source, int start, + int end, Spanned dest, int dsrart, int dend) { + + return Util.removerCaracteresEspeciais(source.toString()); + + } + }; + + return filter; + } + + public static InputFilter filterReplaceCaracteresEspeciaisEEspaco() { + InputFilter filter = new InputFilter() { + + @Override + public CharSequence filter(CharSequence source, int start, + int end, Spanned dest, int dsrart, int dend) { + + return Util.removerCaracteresEspeciaisEEspaco(source.toString()); + + } + }; + + return filter; + } + + public static InputFilter filtervalidarFiltroNumeroComplemento() { + InputFilter filter = new InputFilter() { + + @Override + public CharSequence filter(CharSequence source, int start, + int end, Spanned dest, int dsrart, int dend) { + + return Util.validarFiltroNumeroComplemento(source.toString()); + + } + }; + + return filter; + } + + /**** + * Remove acentos + * @author Anderson Cabral + * **********/ +// public static String removerAcentos(String acentuada) { +// CharSequence cs = new StringBuilder(acentuada); +// return Normalizer.normalize(cs, Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); +// } + + /**** + * Remove caracteres especiais e substitui caracteres acentuado por um nao acentuado + * @author Anderson Cabral + * **********/ + public static String removerCaracteresEspeciaisEEspaco(String texto) { + CharSequence cs = new StringBuilder(texto); + String novoTexto = Normalizer.normalize(cs, Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); + + //return novoTexto.replaceAll("[^[A-Z0-9]]", ""); + return novoTexto.replaceAll("[^[A-Z0-9.:;?{}()%@!><,-_=+ ]]", ""); + } + + /**** + * Remove caracteres especiais e substitui caracteres acentuado por um nao acentuado + * @author Anderson Cabral + * **********/ + public static String removerCaracteresEspeciais(String texto) { + CharSequence cs = new StringBuilder(texto); + String novoTexto = Normalizer.normalize(cs, Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); + + //return novoTexto.replaceAll("[^[0-9]]", ""); + return novoTexto.replaceAll("[^[A-Z0-9.:;?{}()%@!><,-_=+ ]]", ""); + } + + public static String validarFiltroNumeroComplemento(String texto) { + CharSequence cs = new StringBuilder(texto); + String novoTexto = Normalizer.normalize(cs, Normalizer.Form.NFKD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); + + return novoTexto.replaceAll("[^[0-9]]", ""); + } + + + + public static final int BAIXAR_ARQUIVO_TEXTO_LIBERADO = 1; + public static final int FINALIZAR_ROTEIRO = 3; + public static final byte ENVIAR_FOTO = 4; + public static final int ATUALIZAR_SITUACAO_ARQUIVO = 5; + public static final int PING = 15; + public static final int BAIXAR_NOVA_VERSAO_APK = 11; + public static final int VERIFICAR_VERSAO_ANDROID = 12; + + + public static InputStream inflateFile(InputStream is, int tamanhoInput) throws IOException { + + DataInputStream disArquivoCompactado = new DataInputStream(is); + byte[] arrayArquivoCompactado = new byte[tamanhoInput]; + disArquivoCompactado.readFully(arrayArquivoCompactado); + arrayArquivoCompactado = GZip.inflate(arrayArquivoCompactado); + + ByteArrayInputStream byteArray = new ByteArrayInputStream(arrayArquivoCompactado); + + disArquivoCompactado.close(); + disArquivoCompactado = null; + arrayArquivoCompactado = null; + + return byteArray; + } + + /** + * [UC0261] - Obter Dgito Verificador Mdulo 11 Author : Pedro Alexandre + * Data : 15/02/2006 + * + * Calcula o dgito verificador do cdigo de barras no mdulo 11(onze) + * + * @param numero + * Nmero do cdigo de barra no formato string para calcular o + * dgito veficador + * @return digito verificador do mdulo 11(onze) + */ + public static Integer obterDigitoVerificadorModulo11(String numero) { + + String wnumero = numero; + int param = 2; + int soma = 0; + + for (int ind = (wnumero.length() - 1); ind >= 0; ind--) { + if (param > 9) { + param = 2; + } + soma = soma + + (Integer.parseInt(wnumero.substring(ind, ind + 1)) * param); + param = param + 1; + } + + int resto = soma % 11; + int dv; + + if ((resto == 0) || (resto == 1)) { + dv = 0; + } else { + dv = 11 - resto; + } + return dv; + } + + public static Integer obterDigitoVerificadorAntigo(String numero) { + + String wnumero = numero; + int param = 2; + int soma = 0; + + for (int ind = (wnumero.length() - 1); ind >= 0; ind--) { + if (param > 7) { + param = 2; + } + soma = soma + + (Integer.parseInt(wnumero.substring(ind, ind + 1)) * param); + param = param + 1; + } + + int resto = soma % 11; + int dv; + + if ((resto == 0) || (resto == 1)) { + dv = 0; + } else { + dv = 11 - resto; + } + return dv; + } + + public static String formatarCpf(String cpf) { + + String cpfFormatado = cpf; + String zeros = ""; + + if (cpfFormatado != null) { + + for (int a = 0; a < (11 - cpfFormatado.length()); a++) { + zeros = zeros.concat("0"); + } + // concatena os zeros ao numero + // caso o numero seja diferente de nulo + cpfFormatado = zeros.concat(cpfFormatado); + + cpfFormatado = cpfFormatado.substring(0, 3) + "." + + cpfFormatado.substring(3, 6) + "." + + cpfFormatado.substring(6, 9) + "-" + + cpfFormatado.substring(9, 11); + } + + return cpfFormatado; + } + + /** + * Verifica se uma String um nmero Inteiro + * + * @author Raimundo Martins + * @date 03/05/2012 + * */ + public static Boolean isLong(String str){ + Boolean retorno; + try { + Long.parseLong(str); + retorno = Boolean.TRUE; + } catch (NumberFormatException e) { + retorno = Boolean.FALSE; + } + return retorno; + } + + public static String completarComZeros( int quantidade, String texto ){ + StringBuffer buf = new StringBuffer( texto ); + + while (buf.length() < 5) { + buf.insert(0, '0'); + } + + return buf.toString(); + } + + public static boolean ehNumero( String texto ){ + try{ + if ( texto == null ) return false; + + Integer num = Integer.parseInt( texto ); + } catch ( NumberFormatException ex ){ + return false; + } + + return true; + } +} \ No newline at end of file diff --git a/gerencial_pentaho-master/PDI/kjb_dim_fatos_amarrecadacao.kjb b/gerencial_pentaho-master/PDI/kjb_dim_fatos_amarrecadacao.kjb new file mode 100644 index 0000000..6192edc --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_dim_fatos_amarrecadacao.kjb @@ -0,0 +1,472 @@ + + + kjb_dim_fatos_amarrecadacao + + + + / + - + 2016/02/09 20:24:41.669 + - + 2016/02/09 20:24:41.669 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + + + + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 112 + 96 + + + ligacoes + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_ligacoes.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 208 + 96 + + + arrecadacao + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_arrecadacao.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 288 + 96 + + + pendencia + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_pendencia.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 368 + 96 + + + + + START + ligacoes + 0 + 0 + Y + Y + Y + + + ligacoes + arrecadacao + 0 + 0 + Y + Y + N + + + arrecadacao + pendencia + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_dim_fatos_amfaturamento.kjb b/gerencial_pentaho-master/PDI/kjb_dim_fatos_amfaturamento.kjb new file mode 100644 index 0000000..3c26400 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_dim_fatos_amfaturamento.kjb @@ -0,0 +1,759 @@ + + + kjb_dim_fatos_amfaturamento + + + + / + - + 2016/02/05 14:11:27.972 + - + 2016/02/05 14:11:27.972 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 80 + 64 + + + Dimensões + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_job_dimen_sem_loca.kjb + + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/dimensoes.txt + + N + N + Basic + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 160 + 64 + + + Registro de Atendimento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_registro_atendimento.kjb + + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/registro_atendimento.txt + + Y + Y + Basic + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 160 + 144 + + + Leitura Anormalidade + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_leitura_anormalidade.kjb + + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/leitura_anormalidade.txt + + Y + Y + Basic + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 160 + 224 + + + Coleta Esgoto + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_fato_coleta_esgoto.kjb + + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/coleta_esgoto.txt + + Y + Y + Basic + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 288 + 224 + + + Consumo Agua + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_fato_consumo_agua.kjb + + N + N + N + Y + + ${Internal.Job.Filename.Directory}/log/consumo_agua.txt + Y + Y + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 288 + 144 + + + Hidrometro Instalados + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_hidr_instalados.kjb + + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/hidrometro_instalado.txt + + Y + Y + Basic + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 400 + 144 + + + Hidrometro Nao Instalado + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_hidr_nao_instalados.kjb + + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/hidrometro_nao_instalado.txt + + Y + Y + Basic + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 400 + 224 + + + Faturamento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_fato_resumo_faturamento.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 544 + 224 + + + parcelamento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_parcelamento.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 672 + 144 + + + ind_faturamento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_resumo_ind_faturamento.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 544 + 144 + + + + + START + Dimensões + 0 + 0 + Y + Y + Y + + + Dimensões + Registro de Atendimento + 0 + 0 + Y + Y + N + + + Registro de Atendimento + Leitura Anormalidade + 0 + 0 + Y + Y + N + + + Leitura Anormalidade + Coleta Esgoto + 0 + 0 + Y + Y + N + + + Coleta Esgoto + Consumo Agua + 0 + 0 + Y + Y + N + + + Consumo Agua + Hidrometro Instalados + 0 + 0 + Y + Y + N + + + Hidrometro Instalados + Hidrometro Nao Instalado + 0 + 0 + Y + Y + N + + + Hidrometro Nao Instalado + Faturamento + 0 + 0 + Y + Y + N + + + Faturamento + ind_faturamento + 0 + 0 + Y + Y + Y + + + ind_faturamento + parcelamento + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_dimen_geografica.kjb b/gerencial_pentaho-master/PDI/kjb_dimen_geografica.kjb new file mode 100644 index 0000000..5fe5a07 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_dimen_geografica.kjb @@ -0,0 +1,437 @@ + + + kjb_dimen_geografica + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 96 + 64 + + + seq_max_dmgr + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmgr.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 203 + 87 + + + ktr_dimen_geografica + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_geografica.ktr + + N + Y + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 330 + 87 + + + + + START + seq_max_dmgr + 0 + 0 + Y + Y + Y + + + seq_max_dmgr + ktr_dimen_geografica + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_dimen_solicitacao.kjb b/gerencial_pentaho-master/PDI/kjb_dimen_solicitacao.kjb new file mode 100644 index 0000000..34725c9 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_dimen_solicitacao.kjb @@ -0,0 +1,437 @@ + + + kjb_dimen_solicitacao + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 64 + 64 + + + seq_max_dmsol + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmsol.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 193 + 87 + + + ktr_dimen_solicitacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_solicitacao.ktr + + N + Y + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 330 + 87 + + + + + START + seq_max_dmsol + 0 + 0 + Y + Y + Y + + + seq_max_dmsol + ktr_dimen_solicitacao + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_fato_cobranca_acao.kjb b/gerencial_pentaho-master/PDI/kjb_fato_cobranca_acao.kjb new file mode 100644 index 0000000..f4281ff --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_fato_cobranca_acao.kjb @@ -0,0 +1,436 @@ + + + kjb_fato_cobranca_acao + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 112 + + + ktr_fato_cobranca_acao_eventual + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_resumo_cobranca_acao_eventual.ktr + + N + Y + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 336 + 112 + + + sg_cobranca_acao + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_cobranca_acao.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 144 + 96 + + + + + START + sg_cobranca_acao + 0 + 0 + Y + Y + Y + + + sg_cobranca_acao + ktr_fato_cobranca_acao_eventual + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_fato_coleta_esgoto.kjb b/gerencial_pentaho-master/PDI/kjb_fato_coleta_esgoto.kjb new file mode 100644 index 0000000..d6a3073 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_fato_coleta_esgoto.kjb @@ -0,0 +1,478 @@ + + + kjb_fato_coleta_esgoto + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 112 + + + seq_max_rece + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_rece.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 224 + 112 + + + ktr_fato_coleta_esgoto + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_coleta_esgoto.ktr + + N + Y + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 336 + 96 + + + sg_coleta + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_coleta.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 144 + 112 + + + + + seq_max_rece + ktr_fato_coleta_esgoto + 0 + 0 + Y + Y + N + + + START + sg_coleta + 0 + 0 + Y + Y + Y + + + sg_coleta + seq_max_rece + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_fato_consumo_agua.kjb b/gerencial_pentaho-master/PDI/kjb_fato_consumo_agua.kjb new file mode 100644 index 0000000..2480b17 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_fato_consumo_agua.kjb @@ -0,0 +1,478 @@ + + + kjb_fato_consumo_agua + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 112 + + + seq_max_rele + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_reca.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 208 + 112 + + + ktr_fato_consumo_agua + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_consumo_agua.ktr + + N + Y + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 336 + 112 + + + sg_consumo_agua + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_consumo_agua.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 128 + 112 + + + + + seq_max_rele + ktr_fato_consumo_agua + 0 + 0 + Y + Y + N + + + START + sg_consumo_agua + 0 + 0 + Y + Y + Y + + + sg_consumo_agua + seq_max_rele + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_fato_resumo_faturamento.kjb b/gerencial_pentaho-master/PDI/kjb_fato_resumo_faturamento.kjb new file mode 100644 index 0000000..a301289 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_fato_resumo_faturamento.kjb @@ -0,0 +1,549 @@ + + + kjb_fato_resumo_faturamento + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLERDB + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_CAERN_PRODUCAO + + VERTICA5 + JNDI + gerencial_gsan_caern + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 32 + 112 + + + seq_max_refa + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_refa.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 224 + 112 + + + ktr_fato_faturamento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_faturamento.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 352 + 112 + + + sg_faturamento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_faturamento.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + Y + N + N + Y + 0 + 128 + 112 + + + + + seq_max_refa + ktr_fato_faturamento + 0 + 0 + Y + Y + N + + + START + sg_faturamento + 0 + 0 + Y + Y + Y + + + sg_faturamento + seq_max_refa + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_job_dimen_sem_loca.kjb b/gerencial_pentaho-master/PDI/kjb_job_dimen_sem_loca.kjb new file mode 100644 index 0000000..22e8646 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_job_dimen_sem_loca.kjb @@ -0,0 +1,2391 @@ + + + kjb_job_dimen_sem_loca + + + + 0 + / + - + 2015/06/19 11:45:11.453 + - + 2015/06/19 11:45:11.453 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + ktr_dimen_tempo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_tempo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_tempo + txt + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 160 + 93 + + + ktr_dimen_situacao_esgoto + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_situacao_esgoto.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_situacao_esgoto + txt + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 353 + 546 + + + ktr_dimen_situacao_agua + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_situacao_agua.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_situacao_agua + txt + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 349 + 389 + + + ktr_dimen_esfera_poder_perfil + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_esfera_poder_perfil.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_esfera_poder_perfil + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 345 + 290 + + + ktr_dimen_cliente_tipo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cliente_tipo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_cliente_tipo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 340 + 194 + + + ktr_dimen_categoria_subcategoria + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_categoria_subcategoria.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_categoria_subcategoria + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 339 + 85 + + + ktr_dimen_documento_tipo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_documento_tipo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_documento_tipo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 517 + 85 + + + ktr_dimen_financiamento_tipo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_financiamento_tipo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_financiamento_tipo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 516 + 191 + + + krt_dimen_faturamento_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/krt_dimen_faturamento_situacao.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_faturamento_situacao + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 519 + 286 + + + ktr_dimen_percentual_coleta + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_percentual_coleta.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_percentual_coleta + txt + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 160 + 287 + + + ktr_dimen_percentual_esgoto + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_percentual_esgoto.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_percentual_coleta + txt + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 160 + 368 + + + ktr_dimen_tipo_consumo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_tipo_consumo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_tipo_consumo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 523 + 381 + + + ktr_dimen_recebida_mes + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_recebida_mes.ktr + + N + N + N + N + N + N + + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 160 + 481 + + + ktr_dimen_devolucao_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_devolucao_situacao.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_devolucao_situacao + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 526 + 485 + + + ktr_dimen_arrecadador + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_arrecadador.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_arrecadador + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 691 + 384 + + + ktr_dimen_arrecadacao_forma + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_arrecadacao_forma.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_arrecadacao_forma + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 691 + 287 + + + ktr_dimen_pagamento_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_pagamento_situacao.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_pagamento_situacao + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 691 + 190 + + + ktr_dimen_epoca_pagamento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_epoca_pagamento.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_epoca_pagamento + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 691 + 93 + + + ktr_dimen_credito_origem_tipo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_credito_origem_tipo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_credito_origem_tipo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 853 + 93 + + + ktr_dimen_debito_lancamento_item + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_debito_lancamento_item.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_debito_lancamento_item + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 853 + 190 + + + ktr_dimen_imposto_tipo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_imposto_tipo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log__dimen_imposto_tipo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 853 + 287 + + + dimen_medicao_tipo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_medicao_tipo.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_medicao_tipo + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 853 + 384 + + + dimen_leitura_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_leitura_situacao.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_leitura_situacao + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 853 + 481 + + + dimen_leitura_anormalidade + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_leitura_anormalidade.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_leitura_anormalidade + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1015 + 481 + + + dimen_empresa + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_empresa.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_empresa + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1030 + 383 + + + dimen_motivo_encerramento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_motivo_encerramento.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_motivo_encerramento + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1027 + 286 + + + dimen_hidro_situacao_baixa + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_hidro_situacao_baixa.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_hidro_situacao_baixa + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1034 + 186 + + + dimen_hidr_marca_tipo_classe + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_hidr_marca_tipo_classe.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_hidr_marca_tipo_classe + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1026 + 94 + + + dimen_hidr_capacidade_diametro + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_hidr_capacidade_diametro.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_hidr_capacidade_diametro + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1200 + 96 + + + dimen_hidr_armazenagem_macro + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_hidr_armazenagem_macro.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_hidr_armazenagem_macro + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1200 + 192 + + + dimen_unidade_organizacional + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_unidade_organizacional.ktr + + N + N + N + N + N + Y + ${Internal.Job.Filename.Directory}/log/log_dimen_unidade_organizacional + + Y + Y + Detailed + N + + N + Y + N + N + N + Y + N + Y + 0 + 1200 + 304 + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 16 + 96 + + + kjb_dimen_solicitacao + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_dimen_solicitacao.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 157 + 682 + + + kjb_dimen_geografica + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_dimen_geografica.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 159 + 584 + + + dimen_usuario + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_usuario.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1200 + 384 + + + ktr_dimen_indicador + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_indicador.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1184 + 480 + + + ktr_dimen_cobranca_acao_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_acao_situacao.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1184 + 560 + + + ktr_dimen_cobranca_debito_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_debito_situacao.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 560 + + + ktr_dimen_cobranca_criterio + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_criterio.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 480 + + + ktr_dimen_cobranca_grupo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_grupo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 416 + + + ktr_dimen_faturamento_grupo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_faturamento_grupo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 336 + + + ktr_dimen_motivo_nao_entrega_documento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_motivo_nao_entrega_documento.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 256 + + + ktr_dimen_servico_tipo_perfil + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_servico_tipo_perfil.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 176 + + + ktr_dimen_cobranca_situacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_situacao.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1392 + 112 + + + ktr_dimen_cobranca_acao_efeito + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_acao_efeito.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1568 + 112 + + + ktr_dimen_cobranca_acao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_cobranca_acao.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1568 + 208 + + + ktr_dimen_faixa_valor_pendente + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_dimen_faixa_valor_pendente.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 1584 + 304 + + + + + ktr_dimen_situacao_esgoto + ktr_dimen_situacao_agua + 0 + 0 + Y + Y + N + + + ktr_dimen_esfera_poder_perfil + ktr_dimen_cliente_tipo + 0 + 0 + Y + Y + N + + + ktr_dimen_cliente_tipo + ktr_dimen_categoria_subcategoria + 0 + 0 + Y + Y + N + + + ktr_dimen_documento_tipo + ktr_dimen_financiamento_tipo + 0 + 0 + Y + Y + N + + + ktr_dimen_financiamento_tipo + krt_dimen_faturamento_situacao + 0 + 0 + Y + Y + N + + + ktr_dimen_devolucao_situacao + ktr_dimen_arrecadador + 0 + 0 + Y + Y + N + + + ktr_dimen_arrecadador + ktr_dimen_arrecadacao_forma + 0 + 0 + Y + Y + N + + + ktr_dimen_arrecadacao_forma + ktr_dimen_pagamento_situacao + 0 + 0 + Y + Y + N + + + ktr_dimen_pagamento_situacao + ktr_dimen_epoca_pagamento + 0 + 0 + Y + Y + N + + + ktr_dimen_epoca_pagamento + ktr_dimen_credito_origem_tipo + 0 + 0 + Y + Y + N + + + ktr_dimen_credito_origem_tipo + ktr_dimen_debito_lancamento_item + 0 + 0 + Y + Y + N + + + ktr_dimen_debito_lancamento_item + ktr_dimen_imposto_tipo + 0 + 0 + Y + Y + N + + + ktr_dimen_imposto_tipo + dimen_medicao_tipo + 0 + 0 + Y + Y + N + + + dimen_medicao_tipo + dimen_leitura_situacao + 0 + 0 + Y + Y + N + + + dimen_leitura_situacao + dimen_leitura_anormalidade + 0 + 0 + Y + Y + N + + + dimen_leitura_anormalidade + dimen_empresa + 0 + 0 + Y + Y + N + + + ktr_dimen_categoria_subcategoria + ktr_dimen_documento_tipo + 0 + 0 + Y + Y + N + + + krt_dimen_faturamento_situacao + ktr_dimen_tipo_consumo + 0 + 0 + Y + Y + N + + + ktr_dimen_percentual_coleta + ktr_dimen_percentual_esgoto + 0 + 0 + Y + Y + N + + + ktr_dimen_tipo_consumo + ktr_dimen_devolucao_situacao + 0 + 0 + Y + Y + N + + + ktr_dimen_percentual_esgoto + ktr_dimen_recebida_mes + 0 + 0 + Y + Y + N + + + dimen_empresa + dimen_motivo_encerramento + 0 + 0 + Y + Y + N + + + dimen_motivo_encerramento + dimen_hidro_situacao_baixa + 0 + 0 + Y + Y + N + + + dimen_hidro_situacao_baixa + dimen_hidr_marca_tipo_classe + 0 + 0 + Y + Y + N + + + dimen_hidr_marca_tipo_classe + dimen_hidr_capacidade_diametro + 0 + 0 + Y + Y + N + + + dimen_hidr_capacidade_diametro + dimen_hidr_armazenagem_macro + 0 + 0 + Y + Y + N + + + dimen_hidr_armazenagem_macro + dimen_unidade_organizacional + 0 + 0 + Y + Y + N + + + ktr_dimen_situacao_agua + ktr_dimen_esfera_poder_perfil + 0 + 0 + Y + Y + N + + + START + ktr_dimen_tempo + 0 + 0 + Y + Y + Y + + + kjb_dimen_solicitacao + ktr_dimen_situacao_esgoto + 0 + 0 + Y + Y + N + + + kjb_dimen_geografica + kjb_dimen_solicitacao + 0 + 0 + Y + Y + N + + + ktr_dimen_recebida_mes + kjb_dimen_geografica + 0 + 0 + Y + Y + N + + + dimen_unidade_organizacional + dimen_usuario + 0 + 0 + Y + Y + N + + + dimen_usuario + ktr_dimen_indicador + 0 + 0 + Y + Y + N + + + ktr_dimen_indicador + ktr_dimen_cobranca_acao_situacao + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_acao_situacao + ktr_dimen_cobranca_debito_situacao + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_debito_situacao + ktr_dimen_cobranca_criterio + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_criterio + ktr_dimen_cobranca_grupo + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_grupo + ktr_dimen_faturamento_grupo + 0 + 0 + Y + Y + N + + + ktr_dimen_faturamento_grupo + ktr_dimen_motivo_nao_entrega_documento + 0 + 0 + Y + Y + N + + + ktr_dimen_motivo_nao_entrega_documento + ktr_dimen_servico_tipo_perfil + 0 + 0 + Y + Y + N + + + ktr_dimen_servico_tipo_perfil + ktr_dimen_cobranca_situacao + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_situacao + ktr_dimen_cobranca_acao_efeito + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_acao_efeito + ktr_dimen_cobranca_acao + 0 + 0 + Y + Y + N + + + ktr_dimen_tempo + ktr_dimen_percentual_coleta + 0 + 0 + Y + Y + N + + + ktr_dimen_cobranca_acao + ktr_dimen_faixa_valor_pendente + 0 + 0 + Y + Y + N + + + + + Sem tratamento NA + 0 + 194 + 115 + 26 + + -1 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + Com tratamento NA + 109 + 66 + 118 + 26 + + -1 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + A DIMENSAO LOCALIDADE DEVE SER TIRADA DO JOB DAS DIMEM PQ JA É EXECUTADA PELAS STAGES + 436 + 21 + 553 + 26 + + -1 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_arrecadacao.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_arrecadacao.kjb new file mode 100644 index 0000000..fb83d6f --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_arrecadacao.kjb @@ -0,0 +1,478 @@ + + + kjb_resumo_arrecadacao + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 64 + 32 + + + seq_max_rear + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_rear.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 416 + 96 + + + ktr_fato_resumo_arrecadacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_resumo_arrecadacao.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 544 + 112 + + + stage + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_resumo_arrecadacao.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 96 + 112 + + + + + seq_max_rear + ktr_fato_resumo_arrecadacao + 0 + 0 + Y + Y + N + + + START + stage + 0 + 0 + Y + Y + Y + + + stage + seq_max_rear + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_hidr_instalados.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_hidr_instalados.kjb new file mode 100644 index 0000000..f8bab62 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_hidr_instalados.kjb @@ -0,0 +1,478 @@ + + + kjb_resumo_hidr_instalados + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 0 + + + seq_max_reih + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_reih.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 193 + 87 + + + ktr_fato_hidrometro_instalacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_hidrometro_instalacao.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 331 + 87 + + + kjb_sg_resumo_hidr_instalados + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_resumo_hidr_instalados.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 64 + 96 + + + + + seq_max_reih + ktr_fato_hidrometro_instalacao + 0 + 0 + Y + Y + N + + + START + kjb_sg_resumo_hidr_instalados + 0 + 0 + Y + Y + Y + + + kjb_sg_resumo_hidr_instalados + seq_max_reih + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_hidr_nao_instalados.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_hidr_nao_instalados.kjb new file mode 100644 index 0000000..e90734e --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_hidr_nao_instalados.kjb @@ -0,0 +1,437 @@ + + + kjb_resumo_hidr_nao_instalados + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 16 + 16 + + + seq_max_rehi + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_rehi.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 16 + 112 + + + ktr_fato_hidrometro_nao_instalados + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_hidrometro_nao_instalados.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 160 + 112 + + + + + START + seq_max_rehi + 0 + 0 + Y + Y + Y + + + seq_max_rehi + ktr_fato_hidrometro_nao_instalados + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_ind_faturamento.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_ind_faturamento.kjb new file mode 100644 index 0000000..c8410d6 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_ind_faturamento.kjb @@ -0,0 +1,437 @@ + + + kjb_resumo_ind_faturamento + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 112 + + + seq_max_anomes + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_anomes_ind_fatiramento.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 208 + 96 + + + ktr_fato_ind_faturamento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_ind_faturamento_a.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + anomes + anomes + + N + Y + 0 + 336 + 96 + + + + + seq_max_anomes + ktr_fato_ind_faturamento + 0 + 0 + Y + Y + N + + + START + seq_max_anomes + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_leitura_anormalidade.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_leitura_anormalidade.kjb new file mode 100644 index 0000000..42ddcfb --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_leitura_anormalidade.kjb @@ -0,0 +1,478 @@ + + + kjb_resumo_leitura_anormalidade + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 32 + 48 + + + seq_max_relt + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_relt.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 208 + 48 + + + ktr_fato_leitura_anormalidade + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_leitura_anormalidade.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 320 + 80 + + + kjb_sg_resumo_leitura_anormalidade + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_resumo_leitura_anormalidade.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 112 + 64 + + + + + seq_max_relt + ktr_fato_leitura_anormalidade + 0 + 0 + Y + Y + N + + + START + kjb_sg_resumo_leitura_anormalidade + 0 + 0 + Y + Y + Y + + + kjb_sg_resumo_leitura_anormalidade + seq_max_relt + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_ligacoes.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_ligacoes.kjb new file mode 100644 index 0000000..bb12bc3 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_ligacoes.kjb @@ -0,0 +1,478 @@ + + + kjb_resumo_ligacoes + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 32 + 112 + + + seq_max_rele + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_rele.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 496 + 192 + + + ktr_fato_resumo_ligacoes_economia + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_resumo_ligacoes_economia.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 496 + 272 + + + kjb_sg_resumo_ligacoes + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_resumo_ligacoes.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 272 + 96 + + + + + seq_max_rele + ktr_fato_resumo_ligacoes_economia + 0 + 0 + Y + Y + N + + + START + kjb_sg_resumo_ligacoes + 0 + 0 + Y + Y + Y + + + kjb_sg_resumo_ligacoes + seq_max_rele + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_parcelamento.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_parcelamento.kjb new file mode 100644 index 0000000..e5afc75 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_parcelamento.kjb @@ -0,0 +1,478 @@ + + + kjb_resumo_parcelamento + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 112 + + + seq_max_repa + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_repa.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 336 + 112 + + + ktr_fato_parcelamento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_parcelamento.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 464 + 112 + + + kjb_sg_resumo_parcelamento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_resumo_parcelamento.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 208 + 112 + + + + + seq_max_repa + ktr_fato_parcelamento + 0 + 0 + Y + Y + N + + + START + kjb_sg_resumo_parcelamento + 0 + 0 + Y + Y + Y + + + kjb_sg_resumo_parcelamento + seq_max_repa + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_pendencia.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_pendencia.kjb new file mode 100644 index 0000000..3a875af --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_pendencia.kjb @@ -0,0 +1,437 @@ + + + kjb_resumo_pendencia + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 304 + 112 + + + seq_max_rpen + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_rpen.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 432 + 112 + + + ktr_fato_resumo_pendencia + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_resumo_pendencia.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 560 + 112 + + + + + seq_max_rpen + ktr_fato_resumo_pendencia + 0 + 0 + Y + Y + N + + + START + seq_max_rpen + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_resumo_registro_atendimento.kjb b/gerencial_pentaho-master/PDI/kjb_resumo_registro_atendimento.kjb new file mode 100644 index 0000000..b229bb7 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_resumo_registro_atendimento.kjb @@ -0,0 +1,478 @@ + + + kjb_resumo_registro_atendimento + + + + 0 + / + - + 2015/10/22 09:13:10.780 + - + 2015/10/22 09:13:10.780 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 32 + 32 + + + seq_max_rera + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_rera.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 352 + 32 + + + ktr_fato_resumo_registro_atendimento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/ktr_fato_resumo_registro_atendimento.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 352 + 160 + + + sg_resumo_registro_atendimento + + JOB + filename + + ${Internal.Job.Filename.Directory}/kjb_sg_resumo_registro_atendimento.kjb + + N + N + N + N + + + N + N + Nothing + + Y + N + N + N + N + N + Y + N + N + Y + 0 + 192 + 32 + + + + + seq_max_rera + ktr_fato_resumo_registro_atendimento + 0 + 0 + Y + Y + N + + + START + sg_resumo_registro_atendimento + 0 + 0 + Y + Y + Y + + + sg_resumo_registro_atendimento + seq_max_rera + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_cobranca_acao.kjb b/gerencial_pentaho-master/PDI/kjb_sg_cobranca_acao.kjb new file mode 100644 index 0000000..f77925d --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_cobranca_acao.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_cobranca_acao + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_cobranca_acao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_cobranca_acao.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_cobranca_acao + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_coleta.kjb b/gerencial_pentaho-master/PDI/kjb_sg_coleta.kjb new file mode 100644 index 0000000..0c27d4d --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_coleta.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_coleta + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + coleta + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_coleta.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + coleta + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_consumo_agua.kjb b/gerencial_pentaho-master/PDI/kjb_sg_consumo_agua.kjb new file mode 100644 index 0000000..dc4fa7e --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_consumo_agua.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_consumo_agua + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_consumo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_consumo_agua.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_consumo + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_faturamento.kjb b/gerencial_pentaho-master/PDI/kjb_sg_faturamento.kjb new file mode 100644 index 0000000..17b742f --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_faturamento.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_faturamento + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + faturamento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_faturamento.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + faturamento + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_resumo_arrecadacao.kjb b/gerencial_pentaho-master/PDI/kjb_sg_resumo_arrecadacao.kjb new file mode 100644 index 0000000..fbf3d15 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_resumo_arrecadacao.kjb @@ -0,0 +1,479 @@ + + + kjb_sg_resumo_arrecadacao + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 272 + 32 + + + sg_arrecadacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_arrecadacao.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 384 + 16 + + + stage_paghist + + TRANS + filename + + ${Internal.Job.Filename.Directory}/stage_paghist.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 160 + 32 + + + + + max dmlo + sg_arrecadacao + 0 + 0 + Y + Y + N + + + START + stage_paghist + 0 + 0 + Y + Y + Y + + + stage_paghist + max dmlo + 0 + 0 + Y + Y + Y + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_resumo_hidr_instalados.kjb b/gerencial_pentaho-master/PDI/kjb_sg_resumo_hidr_instalados.kjb new file mode 100644 index 0000000..c6b0b62 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_resumo_hidr_instalados.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_resumo_hidr_instalados + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_hidrometro_instalacao + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_hidrometro_instalacao.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 240 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_hidrometro_instalacao + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_resumo_leitura_anormalidade.kjb b/gerencial_pentaho-master/PDI/kjb_sg_resumo_leitura_anormalidade.kjb new file mode 100644 index 0000000..fdb7eeb --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_resumo_leitura_anormalidade.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_resumo_leitura_anormalidade + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_leitura_anormalidade + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_leitura_anormalidade.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 240 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_leitura_anormalidade + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_resumo_ligacoes.kjb b/gerencial_pentaho-master/PDI/kjb_sg_resumo_ligacoes.kjb new file mode 100644 index 0000000..9c58ecd --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_resumo_ligacoes.kjb @@ -0,0 +1,436 @@ + + + kjb_sg_resumo_ligacoes + + + + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_localizacao_lig + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_localizacao_lig.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 16 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_localizacao_lig + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_resumo_parcelamento.kjb b/gerencial_pentaho-master/PDI/kjb_sg_resumo_parcelamento.kjb new file mode 100644 index 0000000..1c6a048 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_resumo_parcelamento.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_resumo_parcelamento + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_parcelamento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_parcelamento.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_parcelamento + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/kjb_sg_resumo_registro_atendimento.kjb b/gerencial_pentaho-master/PDI/kjb_sg_resumo_registro_atendimento.kjb new file mode 100644 index 0000000..5796420 --- /dev/null +++ b/gerencial_pentaho-master/PDI/kjb_sg_resumo_registro_atendimento.kjb @@ -0,0 +1,437 @@ + + + kjb_sg_resumo_registro_atendimento + + + + 0 + / + - + 2015/11/09 09:50:13.254 + - + 2015/11/09 09:50:13.254 + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + + + +
+ + + +ID_JOBYID_JOBCHANNEL_IDYCHANNEL_IDJOBNAMEYJOBNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERSTART_JOB_ENTRYNSTART_JOB_ENTRYCLIENTNCLIENT + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEJOBNAMEYTRANSNAMEJOBENTRYNAMEYSTEPNAMELINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSRESULTYRESULTNR_RESULT_ROWSYNR_RESULT_ROWSNR_RESULT_FILESYNR_RESULT_FILESLOG_FIELDNLOG_FIELDCOPY_NRNCOPY_NR + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + N + + + + START + + SPECIAL + Y + N + N + 0 + 0 + 60 + 12 + 0 + 1 + 1 + N + Y + 0 + 48 + 32 + + + max dmlo + + TRANS + filename + + ${Internal.Job.Filename.Directory}/seq_max_dmlo.ktr + + N + N + N + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + N + Y + 0 + 128 + 32 + + + sg_registro_atendimento + + TRANS + filename + + ${Internal.Job.Filename.Directory}/sg_registro_atendimento.ktr + + N + Y + Y + N + N + N + + + N + N + Basic + N + + N + Y + N + N + N + Y + max + max + + N + Y + 0 + 224 + 32 + + + + + START + max dmlo + 0 + 0 + Y + Y + Y + + + max dmlo + sg_registro_atendimento + 0 + 0 + Y + Y + N + + + + + + diff --git a/gerencial_pentaho-master/PDI/krt_dimen_faturamento_situacao.ktr b/gerencial_pentaho-master/PDI/krt_dimen_faturamento_situacao.ktr new file mode 100644 index 0000000..1ae5773 --- /dev/null +++ b/gerencial_pentaho-master/PDI/krt_dimen_faturamento_situacao.ktr @@ -0,0 +1,829 @@ + + + + krt_dimen_faturamento_situacao + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 44 + 143 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + g_fatur_situacao_tipodmfs_idY + dmfs_id//Script hereY + //Script hereSelect valuesY + Select valuesSelect values 2Y + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + + + //Script here + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var dmfs_icfaturamento_desc if(dmfs_icfaturamento==1){ dmfs_icfaturamento_desc="FATURADO"} else{ dmfs_icfaturamento_desc="NAO FATURADO"}; + dmfs_icfaturamento_desc + dmfs_icfaturamento_desc + String + -1 + -1 + N + + + 223 + 77 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_faturamento_situacao
+ VERTICA_JNDI + 100 + Y + + + ftst_id + ftst_id + + + ftsm_id + ftsm_id + + + data_atual + date_de + date_ate + + + ftst_dsfaturamentosituacaotipo + ftst_dsfaturamentosituacaotipo + Insert + + + ftsm_dsfaturamentosituacaomoti + ftsm_dsfatsitmotivo + Insert + + + dmfs_icfaturamento + dmfs_icfaturamento + Insert + + + dmfs_icfaturamento_desc + dmfs_icfaturamento_desc + Insert + + + dmfs_id + + sequence + N + version + + + dmfs_seq + 1900 + 2199 + 5000 + N + N + none + + + + 621 + 71 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 498 + 72 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmfs_id + + -2 + -2 + ftst_id + + -2 + -2 + ftst_dsfaturamentosituacaotipo + + -2 + -2 + ftsm_id + + -2 + -2 + ftsm_dsfaturamentosituacaomoti + + -2 + -2 + dmfs_icfaturamento + + -2 + -2 + dmfs_icfaturamento_desc + + -2 + -2 + N + + + 302 + 75 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + dmfs_id + dmfs_id + Integer + -2 + 0 + + false + + + false + + + + + + ftst_id + ftst_id + Integer + 9 + 0 + + false + + + false + + + + + + ftst_dsfaturamentosituacaotipo + ftst_dsfaturamentosituacaotipo + String + 50 + -2 + + false + + + false + + + + + + ftsm_id + ftsm_id + Integer + 9 + 0 + + false + + + false + + + + + + ftsm_dsfaturamentosituacaomoti + ftsm_dsfaturamentosituacaomoti + None + 2147483647 + -2 + + false + + + false + + + + + + dmfs_icfaturamento + dmfs_icfaturamento + Integer + 9 + 0 + + false + + + false + + + + + + dmfs_icfaturamento_desc + dmfs_icfaturamento_desc + String + 50 + -2 + + false + + + false + + + + + + + + 387 + 72 + Y + + + + + dmfs_id + Sequence + + Y + + 1 + + none + + + dmfs_id + Y + VERTICA_JNDI + gerencial_cagepa + dmfs_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + g_fatur_situacao_tipo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as ftst_id, 'N/A' as ftst_dsfaturamentosituacaotipo, 9999 as ftsm_id, 'N/A' as ftsm_dsfaturamentosituacaomoti, 1 as dmfs_icfaturamento UNION SELECT 9999 as ftst_id, 'N/A' as ftst_dsfaturamentosituacaotipo, 9999 as ftsm_id, 'N/A' as ftsm_dsfaturamentosituacaomoti, 2 as dmfs_icfaturamento UNION SELECT ftst_id , ftst_dsfaturamentosituacaotipo , ftsm_id , ftsm_dsfaturamentosituacaomoti , rece_icfaturamento as dmfs_icfaturamento FROM gsan_admin.faturamento_situacao_tipo LEFT JOIN gsan_admin.faturamento_situacao_motivo fsm on 1=1 LEFT JOIN (select 1 as rece_icfaturamento union all select 2) rec on 1=1 + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_arrecadacao_forma.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_arrecadacao_forma.ktr new file mode 100644 index 0000000..69057b2 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_arrecadacao_forma.ktr @@ -0,0 +1,885 @@ + + + + ktr_dimen_arrecadacao_forma + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/19 15:07:29.431 + - + 2015/06/19 15:07:29.431 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 33 + 153 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_dw_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Select valuesSelect values 2Y + g_arrecadacao_formadmaf_seqY + dmaf_seqCalculatorY + CalculatorSelect valuesY + Select values 2Get System InfoY + Get System InfoDimension lookup/updateY + + + Calculator + Calculator + + Y + + 1 + + none + + + espaco +CONSTANT + - + + +String +-1 +-1 +N + + + + + + cod_espaco +ADD +arfm_cdarrecadacaoforma +espaco + +String +-1 +-1 +N + + + + + + cod_desc +ADD +cod_espaco +arfm_dsarrecadacaoforma + +String +-1 +-1 +N + + + + + + + + 293 + 67 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_arrecadacao_forma
+ VERTICA_JNDI + 100 + Y + + + arfm_id + arfm_id + + + data_atual + date_de + date_ate + + + arfm_cdarrecadacaoforma + arfm_cdarrecadacaoforma + Insert + + + arfm_dsarrecadacaoforma + arfm_dsarrecadacaoforma + Insert + + + cod_desc + cod_desc + Insert + + + dmaf_id + + sequence + N + version + + + dmaf_seq + 1900 + 2199 + 5000 + N + N + none + + + + 614 + 173 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 491 + 174 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + arfm_id + + -2 + -2 + arfm_cdarrecadacaoforma + + -2 + -2 + arfm_dsarrecadacaoforma + + -2 + -2 + dmaf_id + + -2 + -2 + cod_desc + + -2 + -2 + N + + + 392 + 68 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + arfm_id + arfm_id + Integer + 9 + 0 + + false + + + false + + + + + + arfm_cdarrecadacaoforma + arfm_cdarrecadacaoforma + String + 4 + -2 + + false + + + false + + + + + + arfm_dsarrecadacaoforma + arfm_dsarrecadacaoforma + String + 100 + -2 + + false + + + false + + + + + + dmaf_id + dmaf_id + Integer + -2 + 0 + + false + + + false + + + + + + cod_desc + cod_desc + String + 100 + -2 + + false + + + false + + + + + + + + 482 + 68 + Y + + + + + dmaf_seq + Sequence + + Y + + 1 + + none + + + dmaf_id + Y + VERTICA_JNDI + gerencial_cagepa + dmaf_seq + N + + 0 + 1 + 999999999 + + + 186 + 70 + Y + + + + + g_arrecadacao_forma + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as arfm_id ,'9999' as arfm_cdarrecadacaoforma , 'NAO SE APLICA' AS arfm_dsarrecadacaoforma union SELECT arfm_id , arfm_cdarrecadacaoforma , arfm_dsarrecadacaoforma FROM gsan_admin.arrecadacao_forma + 0 + + N + N + N + + + 64 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_arrecadador.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_arrecadador.ktr new file mode 100644 index 0000000..6a70c1f --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_arrecadador.ktr @@ -0,0 +1,1029 @@ + + + + ktr_dimen_arrecadador + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/10 15:05:31.633 + - + 2015/06/10 15:05:31.633 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 97 + 187 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + arrecadadorAdd sequenceY + Add sequence//Script hereY + Select valuesSelect values 2Y + CalculatorSelect valuesY + //Script hereSelect values 3Y + Select values 3Select values 4Y + Select values 4CalculatorY + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + + + //Script here + ScriptValueMod + + N + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var arrc_icuso_desc if(arrc_icuso==1){ arrc_icuso_desc="ATIVO"} else{ arrc_icuso_desc="INATIVO"}; + arrc_icuso_desc + arrc_icuso_desc + String + -1 + -1 + N + + + 287 + 124 + Y + + + + + Add sequence + Sequence + + Y + + 1 + + none + + + dmarrc_id + Y + VERTICA_JNDI + gerencial_cagepa + dmarrc_seq + N + + 0 + 1 + 999999999 + + + 202 + 124 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + espaco +CONSTANT + - + + +String +-1 +-1 +N + + + + + + cod_espaco +ADD +cod_agente +espaco + +String +-1 +-1 +N + + + + + + cod_desc +ADD +cod_espaco +arrc_nmcliente + +String +-1 +-1 +N + + + + + + + + 542 + 124 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_arrecadador
+ VERTICA_JNDI + 100 + Y + + + arrc_id + arrc_id + + + data_atual + date_de + date_ate + + + asarrc_nninscricaoestadual + asarrc_nninscricaoestadual + Insert + + + arrc_cdagente + arrc_cdagente + Insert + + + arrc_icuso + arrc_icuso + Insert + + + arrc_nmcliente + arrc_nmcliente + Insert + + + arrc_icuso_desc + arrc_icuso_desc + Insert + + + cod_desc + cod_desc + Insert + + + dmarrc_id + + sequence + N + version + + + dmarrc_seq + 1900 + 2199 + 5000 + N + N + none + + + + 837 + 216 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 714 + 217 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + arrc_id + + -2 + -2 + asarrc_nninscricaoestadual + + -2 + -2 + arrc_cdagente + + -2 + -2 + arrc_icuso + + -2 + -2 + arrc_nmcliente + + -2 + -2 + arrc_icuso_desc + + -2 + -2 + dmarrc_id + + -2 + -2 + cod_desc + + -2 + -2 + N + + + 627 + 124 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + arrc_id + arrc_id + Integer + 9 + 0 + + false + + + false + + + + + + asarrc_nninscricaoestadual + asarrc_nninscricaoestadual + String + 100 + -2 + + false + + + false + + + + + + arrc_cdagente + arrc_cdagente + Integer + 9 + 0 + + false + + + false + + + + + + arrc_icuso + arrc_icuso + Integer + 9 + 0 + + false + + + false + + + + + + arrc_nmcliente + arrc_nmcliente + String + 100 + -2 + + false + + + false + + + + + + arrc_icuso_desc + arrc_icuso_desc + String + 10 + -2 + + false + + + false + + + + + + dmarrc_id + dmarrc_id + Integer + -2 + 0 + + false + + + false + + + + + + cod_desc + cod_desc + None + -2 + -2 + + false + + + false + + + + + + + + 712 + 124 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + arrc_id + + -2 + -2 + asarrc_nninscricaoestadual + + -2 + -2 + arrc_cdagente + + -2 + -2 + arrc_icuso + + -2 + -2 + arrc_nmcliente + + -2 + -2 + dmarrc_id + + -2 + -2 + arrc_icuso_desc + + -2 + -2 + arrc_cdagente + cod_agente + -2 + -2 + N + + + 372 + 124 + Y + + + + + Select values 4 + SelectValues + + Y + + 1 + + none + + + N + cod_agente + cod_agente + String + -2 + -2 + + false + + + false + + + + + + + + 457 + 124 + Y + + + + + arrecadador + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as arrc_id , 'N/A' asarrc_nninscricaoestadual , 9999 as arrc_cdagente , 9999 as arrc_icuso , 'N/A' as arrc_nmcliente FROM gsan_admin.arrecadador union SELECT arrc_id , coalesce (arrc_nninscricaoestadual,'N/A') as arrc_nninscricaoestadual , coalesce (arrc_cdagente,9999) as arrc_cdagente , arrc_icuso , coalesce (clie_nmcliente,'N/A') as arrc_nmcliente FROM gsan_admin.arrecadador a inner join gsan_admin.cliente c on a.clie_id=c.clie_id order by arrc_id + 0 + + N + N + N + + + 112 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_categoria_subcategoria.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_categoria_subcategoria.ktr new file mode 100644 index 0000000..69e8ba6 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_categoria_subcategoria.ktr @@ -0,0 +1,729 @@ + + + + ktr_dimen_categoria_subcategoria + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + g_subcategoriadmcs_idY + dmcs_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_categoria_subcategoria
+ VERTICA_JNDI + 100 + Y + + + catg_id + catg_id + + + scat_id + scat_id + + + data_atual + date_de + date_ate + + + catg_dscategoria + catg_dscategoria + Insert + + + scat_dssubcategoria + scat_dssubcategoria + Insert + + + dmcs_id + + sequence + N + version + + + dmcs_seq + 1900 + 2199 + 5000 + N + N + none + + + + 482 + 78 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmcs_id + + -2 + -2 + catg_id + + -2 + -2 + catg_dscategoria + + -2 + -2 + scat_id + + -2 + -2 + scat_dssubcategoria + + -2 + -2 + N + dmcs_id + dmcs_id + Integer + -2 + 0 + + false + + + false + + + + + + catg_id + catg_id + Integer + 9 + 0 + + false + + + false + + + + + + catg_dscategoria + catg_dscategoria + String + 50 + -2 + + false + + + false + + + + + + scat_id + scat_id + Integer + 9 + 0 + + false + + + false + + + + + + scat_dssubcategoria + scat_dssubcategoria + String + 50 + -2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmcs_id + Sequence + + Y + + 1 + + none + + + dmcs_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcs_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + g_subcategoria + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 as catg_id, 'NAO SE APLICA' AS catg_dscategoria, 9999 AS scat_id, 'NAO SE APLICA' AS scat_dssubcategoria union select cat.catg_id as catg_id, catg_dscategoria, scat_id, scat_dssubcategoria FROM gsan_admin.subcategoria scat inner join gsan_admin.categoria cat on 1 = 1 + 0 + + N + N + N + + + 48 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cliente_tipo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cliente_tipo.ktr new file mode 100644 index 0000000..92bdfd9 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cliente_tipo.ktr @@ -0,0 +1,871 @@ + + + + dim_cliente_tipo + + + + Normal + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 16:06:08.448 + - + 2015/06/04 16:06:08.448 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 Foi necessario incluir linhas que trouxesse o 0 da CAERN e a relação será CONVERSÂO + 46 + 0 + 464 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + EXTRACAO_CLIENTE_TIPOchave primariaY + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cliente_tipo
+ VERTICA_JNDI + 100 + Y + + + cltp_id + cltp_id + + + epod_id + epod_id + + + crtp_id + crtp_id + + + data_atual + date_de + date_ate + + + cltp_dsclientetipo + cltp_dsclientetipo + Insert + + + epod_dsesferapoder + epod_dsesferapoder + Insert + + + crtp_dsclienterelacaotipo + crtp_dsclienterelacaotipo + Insert + + + dmct_id + + sequence + N + version + + + dmct_seq + 1900 + 2199 + 5000 + N + N + none + + + + 594 + 206 + Y + + + + + EXTRACAO_CLIENTE_TIPO + TableInput + + Y + + 1 + + none + + + comercial_gsan + select -- N/A TOTAL 9999 as cltp_id, 'NAO SE APLICA' AS cltp_dsclientetipo, 9999 AS epod_id, 'NAO SE APLICA' AS epod_dsesferapoder, 9999 AS crtp_id, 'NAO SE APLICA' AS crtp_dsclienterelacaotipo union all select -- TAB CLIENTE TIPO case when cltp_id is null then 0 else cltp_id end as cltp_id, case when cltp_dsclientetipo is null then 'CONVERSAO' else cltp_dsclientetipo end as cltp_dsclientetipo, 9999 AS epod_id, 'NAO SE APLICA' AS epod_dsesferapoder, 9999 AS crtp_id, 'NAO SE APLICA' AS crtp_dsclienterelacaotipo from gsan_admin.esfera_poder ep left join gsan_admin.cliente_tipo ct on 1=1 inner join gsan_admin.cliente_relacao_tipo rt on 1=1 UNION ALL select -- TAB ESFERA PODER 9999 as cltp_id, 'NAO SE APLICA' AS cltp_dsclientetipo, ep.epod_id, epod_dsesferapoder, 9999 AS crtp_id, 'NAO SE APLICA' AS crtp_dsclienterelacaotipo from gsan_admin.esfera_poder ep left join gsan_admin.cliente_tipo ct on 1=1 inner join gsan_admin.cliente_relacao_tipo rt on 1=1 UNION ALL select -- TAB RELACAO CLIENTE 9999 as cltp_id, 'NAO SE APLICA' AS cltp_dsclientetipo, 9999 AS epod_id, 'NAO SE APLICA' AS epod_dsesferapoder, crtp_id, crtp_dsclienterelacaotipo from gsan_admin.esfera_poder ep left join gsan_admin.cliente_tipo ct on 1=1 inner join gsan_admin.cliente_relacao_tipo rt on 1=1 UNION ALL select -- TODOS case when cltp_id is null then 0 else cltp_id end as cltp_id, case when cltp_dsclientetipo is null then 'CONVERSAO' else cltp_dsclientetipo end as cltp_dsclientetipo, ep.epod_id, epod_dsesferapoder, crtp_id, crtp_dsclienterelacaotipo from gsan_admin.esfera_poder ep left join gsan_admin.cliente_tipo ct on 1=1 inner join gsan_admin.cliente_relacao_tipo rt on 1=1 order by 1,3,5 + 0 + + N + N + N + + + 80 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 493 + 171 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cltp_id + + -2 + -2 + cltp_dsclientetipo + + -2 + -2 + epod_id + + -2 + -2 + epod_dsesferapoder + + -2 + -2 + crtp_id + + -2 + -2 + crtp_dsclienterelacaotipo + + -2 + -2 + dmct_id + + -2 + -2 + N + cltp_id + cltp_id + None + 9 + 0 + + false + + + false + + + + + + cltp_dsclientetipo + cltp_dsclientetipo + None + 50 + -2 + + false + + + false + + + + + + epod_id + epod_id + None + 9 + 0 + + false + + + false + + + + + + epod_dsesferapoder + epod_dsesferapoder + None + 30 + -2 + + false + + + false + + + + + + crtp_id + crtp_id + None + 9 + 0 + + false + + + false + + + + + + crtp_dsclienterelacaotipo + crtp_dsclienterelacaotipo + None + 30 + -2 + + false + + + false + + + + + + dmct_id + dmct_id + None + -2 + 0 + + false + + + false + + + + + + + + 395 + 103 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmct_id + Y + VERTICA_JNDI + gerencial_cagepa + dmct_seq + N + + 1 + 1 + 999999999 + + + 250 + 105 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao.ktr new file mode 100644 index 0000000..189ef38 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao.ktr @@ -0,0 +1,1330 @@ + + + + ktr_dimen_cobranca_acao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + cobranca_acaodmcbac_idY + dmcbac_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_acao
+ VERTICA_JNDI + 100 + Y + + + cbac_id + cbac_id + + + data_atual + date_de + date_ate + + + cbac_idacaoprecedente + cbac_idacaoprecedente + Insert + + + cbac_dscobrancaacao + cbac_dscobrancaacao + Insert + + + cbac_icobrigatoriedade + cbac_icobrigatoriedade + Insert + + + cbac_icrepeticao + cbac_icrepeticao + Insert + + + cbac_icsuspensaoabastecimento + cbac_icsuspensaoabastecimento + Insert + + + cbac_nndiasvalidade + cbac_nndiasvalidade + Insert + + + cbac_nndiasminimoacaoprecedent + cbac_nndiasminimoacaoprecedent + Insert + + + cbac_icuso + cbac_icuso + Insert + + + cbac_iccobrancadebacobrar + cbac_iccobrancadebacobrar + Insert + + + cbac_icgeracaotaxa + cbac_icgeracaotaxa + Insert + + + cbac_nnordemrealizacao + cbac_nnordemrealizacao + Insert + + + cbac_icacrescimoimpontualidade + cbac_icacrescimoimpontualidade + Insert + + + cbac_iccronograma + cbac_iccronograma + Insert + + + cbac_icboletim + cbac_icboletim + Insert + + + cbac_icdebito + cbac_icdebito + Insert + + + cbac_nndiasvencimento + cbac_nndiasvencimento + Insert + + + cbac_icusametas + cbac_icusametas + Insert + + + cbac_icusaordenamentocron + cbac_icusaordenamentocron + Insert + + + cbac_icusaordenamentoeven + cbac_icusaordenamentoeven + Insert + + + cbac_icdebitointerfereacao + cbac_icdebitointerfereacao + Insert + + + cbac_qtdiaslimitepagamento + cbac_qtdiaslimitepagamento + Insert + + + cbac_iccredareal + cbac_iccredareal + Insert + + + cbac_icguiapagam + cbac_icguiapagam + Insert + + + cbac_iccpfcnpj + cbac_iccpfcnpj + Insert + + + cbac_iccep + cbac_iccep + Insert + + + cbac_icentregadocumento + cbac_icentregadocumento + Insert + + + cbac_qtdiasrealizacao + cbac_qtdiasrealizacao + Insert + + + cbac_icempresaobrigatoria + cbac_icempresaobrigatoria + Insert + + + dmcbac_id + + tablemax + N + version + + + + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cbac_id + + -2 + -2 + cbac_idacaoprecedente + + -2 + -2 + cbac_dscobrancaacao + + -2 + -2 + cbac_icobrigatoriedade + + -2 + -2 + cbac_icrepeticao + + -2 + -2 + cbac_icsuspensaoabastecimento + + -2 + -2 + cbac_nndiasvalidade + + -2 + -2 + cbac_nndiasminimoacaoprecedent + + -2 + -2 + cbac_icuso + + -2 + -2 + cbac_iccobrancadebacobrar + + -2 + -2 + cbac_icgeracaotaxa + + -2 + -2 + cbac_nnordemrealizacao + + -2 + -2 + cbac_icacrescimoimpontualidade + + -2 + -2 + cbac_iccronograma + + -2 + -2 + cbac_icboletim + + -2 + -2 + cbac_icdebito + + -2 + -2 + cbac_nndiasvencimento + + -2 + -2 + cbac_icusametas + + -2 + -2 + cbac_icusaordenamentocron + + -2 + -2 + cbac_icusaordenamentoeven + + -2 + -2 + cbac_icdebitointerfereacao + + -2 + -2 + cbac_qtdiaslimitepagamento + + -2 + -2 + cbac_iccredareal + + -2 + -2 + cbac_icguiapagam + + -2 + -2 + cbac_iccpfcnpj + + -2 + -2 + cbac_iccep + + -2 + -2 + cbac_icentregadocumento + + -2 + -2 + cbac_qtdiasrealizacao + + -2 + -2 + cbac_icempresaobrigatoria + + -2 + -2 + dmcbac_id + + -2 + -2 + N + cbac_id + cbac_id + Integer + 15 + 0 + + false + + + false + + + + + + cbac_idacaoprecedente + cbac_idacaoprecedente + Integer + 15 + 0 + + false + + + false + + + + + + cbac_dscobrancaacao + cbac_dscobrancaacao + String + 250 + -2 + + false + + + false + + + + + + cbac_icobrigatoriedade + cbac_icobrigatoriedade + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icrepeticao + cbac_icrepeticao + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icsuspensaoabastecimento + cbac_icsuspensaoabastecimento + Integer + 15 + 0 + + false + + + false + + + + + + cbac_nndiasvalidade + cbac_nndiasvalidade + Integer + 15 + 0 + + false + + + false + + + + + + cbac_nndiasminimoacaoprecedent + cbac_nndiasminimoacaoprecedent + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icuso + cbac_icuso + Integer + 15 + 0 + + false + + + false + + + + + + cbac_iccobrancadebacobrar + cbac_iccobrancadebacobrar + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icgeracaotaxa + cbac_icgeracaotaxa + Integer + 15 + 0 + + false + + + false + + + + + + cbac_nnordemrealizacao + cbac_nnordemrealizacao + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icacrescimoimpontualidade + cbac_icacrescimoimpontualidade + Integer + 15 + 0 + + false + + + false + + + + + + cbac_iccronograma + cbac_iccronograma + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icboletim + cbac_icboletim + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icdebito + cbac_icdebito + Integer + 15 + 0 + + false + + + false + + + + + + cbac_nndiasvencimento + cbac_nndiasvencimento + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icusametas + cbac_icusametas + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icusaordenamentocron + cbac_icusaordenamentocron + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icusaordenamentoeven + cbac_icusaordenamentoeven + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icdebitointerfereacao + cbac_icdebitointerfereacao + Integer + 15 + 0 + + false + + + false + + + + + + cbac_qtdiaslimitepagamento + cbac_qtdiaslimitepagamento + Integer + 15 + 0 + + false + + + false + + + + + + cbac_iccredareal + cbac_iccredareal + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icguiapagam + cbac_icguiapagam + Integer + 15 + 0 + + false + + + false + + + + + + cbac_iccpfcnpj + cbac_iccpfcnpj + Integer + 15 + 0 + + false + + + false + + + + + + cbac_iccep + cbac_iccep + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icentregadocumento + cbac_icentregadocumento + Integer + 15 + 0 + + false + + + false + + + + + + cbac_qtdiasrealizacao + cbac_qtdiasrealizacao + Integer + 15 + 0 + + false + + + false + + + + + + cbac_icempresaobrigatoria + cbac_icempresaobrigatoria + Integer + 15 + 0 + + false + + + false + + + + + + dmcbac_id + dmcbac_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 48 + Y + + + + + cobranca_acao + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 0 as cbac_id , 0 as cbac_idacaoprecedente , 'NAO SE APLICA' AS cbac_dscobrancaacao , 2 AS cbac_icobrigatoriedade , 1 AS cbac_icrepeticao , 2 AS cbac_icsuspensaoabastecimento , 0 as cbac_nndiasvalidade , 0 as cbac_nndiasminimoacaoprecedent , 2 AS cbac_icuso , 2 AS cbac_iccobrancadebacobrar , 2 AS cbac_icgeracaotaxa , 0 AS cbac_nnordemrealizacao , 2 AS cbac_icacrescimoimpontualidade , 2 AS cbac_iccronograma , 2 AS cbac_icboletim , 2 AS cbac_icdebito , 0 AS cbac_nndiasvencimento , 2 AS cbac_icusametas , 2 AS cbac_icusaordenamentocron , 2 AS cbac_icusaordenamentoeven , 2 AS cbac_icdebitointerfereacao , 0 AS cbac_qtdiaslimitepagamento , 2 AS cbac_iccredareal , 2 AS cbac_icguiapagam , 2 AS cbac_iccpfcnpj , 2 AS cbac_iccep , 2 AS cbac_icentregadocumento , 0 AS cbac_qtdiasrealizacao , 2 AS cbac_icempresaobrigatoria union SELECT cbac_id , coalesce(cbac_idacaoprecedente,0) AS cbac_idacaoprecedente , cbac_dscobrancaacao , cbac_icobrigatoriedade , cbac_icrepeticao , cbac_icsuspensaoabastecimento , coalesce(cbac_nndiasvalidade,0) as cbac_nndiasvalidade , coalesce(cbac_nndiasminimoacaoprecedent ,0) as cbac_nndiasminimoacaoprecedent , cbac_icuso , cbac_iccobrancadebacobrar , cbac_icgeracaotaxa , coalesce(cbac_nnordemrealizacao,0) AS cbac_nnordemrealizacao , cbac_icacrescimoimpontualidade , cbac_iccronograma , cbac_icboletim , cbac_icdebito , coalesce(cbac_nndiasvencimento,0) AS cbac_nndiasvencimento , coalesce(cbac_icusametas,2) AS cbac_icusametas , coalesce(cbac_icusaordenamentocron,2) as cbac_icusaordenamentocron , coalesce(cbac_icusaordenamentoeven,2) as cbac_icusaordenamentoeven , coalesce(cbac_icdebitointerfereacao,2) as cbac_icdebitointerfereacao , coalesce(cbac_qtdiaslimitepagamento,0) as cbac_qtdiaslimitepagamento , cbac_iccredareal , cbac_icguiapagam , cbac_iccpfcnpj , cbac_iccep , cbac_icentregadocumento , coalesce(cbac_qtdiasrealizacao,0) as cbac_qtdiasrealizacao , cbac_icempresaobrigatoria FROM gsan_admin.cobranca_acao order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmcbac_id + Sequence + + Y + + 1 + + none + + + dmcbac_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcbac_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_efeito.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_efeito.ktr new file mode 100644 index 0000000..a67f98b --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_efeito.ktr @@ -0,0 +1,754 @@ + + + + ktr_dimen_cobranca_acao_efeito + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + acao_cobranca_efeitodmacef_idY + dmacef_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_acao_efeito
+ VERTICA_JNDI + 100 + Y + + + acef_id + acef_id + + + data_atual + date_de + date_ate + + + acef_dsefeito + acef_dsefeito + Insert + + + acef_dsabreviado + acef_dsabreviado + Insert + + + acef_icuso + acef_icuso + Insert + + + acef_icpagmtoentradaparcelamto + acef_icpagmtoentradaparcelamto + Insert + + + dmacef_id + + sequence + N + version + + + dmacef_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 64 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + acef_id + + -2 + -2 + acef_dsefeito + + -2 + -2 + acef_dsabreviado + + -2 + -2 + acef_icuso + + -2 + -2 + acef_icpagmtoentradaparcelamto + + -2 + -2 + dmacef_id + + -2 + -2 + N + acef_id + acef_id + Integer + 4 + 0 + + false + + + false + + + + + + acef_dsefeito + acef_dsefeito + String + 250 + -2 + + false + + + false + + + + + + acef_dsabreviado + acef_dsabreviado + String + 250 + -2 + + false + + + false + + + + + + acef_icuso + acef_icuso + Integer + 4 + 0 + + false + + + false + + + + + + acef_icpagmtoentradaparcelamto + acef_icpagmtoentradaparcelamto + Integer + 15 + 0 + + false + + + false + + + + + + dmacef_id + dmacef_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + acao_cobranca_efeito + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT acef_id , acef_dsefeito , acef_dsabreviado , acef_icuso , acef_icpagmtoentradaparcelamto FROM gsan_admin.acao_cobranca_efeito order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmacef_id + Sequence + + Y + + 1 + + none + + + dmacef_id + Y + VERTICA_JNDI + gerencial_cagepa + dmacef_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_situacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_situacao.ktr new file mode 100644 index 0000000..958df5d --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_acao_situacao.ktr @@ -0,0 +1,730 @@ + + + + ktr_dimen_cobranca_acao_situacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + cobranca_acao_situacaodmcast_idY + dmcast_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_acao_situacao
+ VERTICA_JNDI + 100 + Y + + + cast_id + cast_id + + + data_atual + date_de + date_ate + + + cast_dssituacaoacao + cast_dssituacaoacao + Insert + + + cast_dsabreviada + cast_dsabreviada + Insert + + + cast_icuso + cast_icuso + Insert + + + dmcast_id + + sequence + N + version + + + dmcast_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 64 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cast_id + + -2 + -2 + cast_dssituacaoacao + + -2 + -2 + cast_dsabreviada + + -2 + -2 + cast_icuso + + -2 + -2 + dmcast_id + + -2 + -2 + N + cast_id + cast_id + Integer + 15 + 0 + + false + + + false + + + + + + cast_dssituacaoacao + cast_dssituacaoacao + String + 250 + -2 + + false + + + false + + + + + + cast_dsabreviada + cast_dsabreviada + String + 250 + -2 + + false + + + false + + + + + + cast_icuso + cast_icuso + Integer + 15 + 0 + + false + + + false + + + + + + dmcast_id + dmcast_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + cobranca_acao_situacao + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 as cast_id, 'NAO SE APLICA' AS cast_dssituacaoacao, 'N/A' as cast_dsabreviada, 2 AS cast_icuso union SELECT cast_id , cast_dssituacaoacao , cast_dsabreviada , cast_icuso FROM gsan_admin.cobranca_acao_situacao order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmcast_id + Sequence + + Y + + 1 + + none + + + dmcast_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcast_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_criterio.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_criterio.ktr new file mode 100644 index 0000000..c316a25 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_criterio.ktr @@ -0,0 +1,1138 @@ + + + + ktr_dimen_cobranca_criterio + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + cobranca_criteriodmcbct_idY + dmcbct_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_criterio
+ VERTICA_JNDI + 100 + Y + + + cbct_id + cbct_id + + + data_atual + date_de + date_ate + + + cbct_dscobrancacriterio + cbct_dscobrancacriterio + Insert + + + cbct_dtiniciovigencia + cbct_dtiniciovigencia + Insert + + + cbct_icuso + cbct_icuso + Insert + + + cbct_nncontaantiga + cbct_nncontaantiga + Insert + + + cbct_icemissaoimovelparalisaca + cbct_icemissaoimovelparalisaca + Insert + + + cbct_icemissaoimovelsitcobranc + cbct_icemissaoimovelsitcobranc + Insert + + + cbct_icemissaodebitocontames + cbct_icemissaodebitocontames + Insert + + + cbct_icemissaocontarevisao + cbct_icemissaocontarevisao + Insert + + + cbct_icemissaoinquilinodebitoc + cbct_icemissaoinquilinodebitoc + Insert + + + cbct_icemissaodebitocontaantig + cbct_icemissaodebitocontaantig + Insert + + + cbct_pcvlminimopgparccanc + cbct_pcvlminimopgparccanc + Insert + + + cbct_pcqtminimopgparccanc + cbct_pcqtminimopgparccanc + Insert + + + cbct_vllimiteprioridade + cbct_vllimiteprioridade + Insert + + + cbct_iccpf + cbct_iccpf + Insert + + + cbct_ictelefone + cbct_ictelefone + Insert + + + cbct_qtdiascorte + cbct_qtdiascorte + Insert + + + cbct_icdebitotitularatual + cbct_icdebitotitularatual + Insert + + + crtp_idtitularatual + crtp_idtitularatual + Insert + + + cbct_icemissaocpfcnpjvalidado + cbct_icemissaocpfcnpjvalidado + Insert + + + cbct_icdividaativa + cbct_icdividaativa + Insert + + + dmcbct_id + + sequence + N + version + + + dmcbct_seq + 1900 + 2199 + 5000 + N + N + none + + + + 464 + 64 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cbct_id + + -2 + -2 + cbct_dscobrancacriterio + + -2 + -2 + cbct_dtiniciovigencia + + -2 + -2 + cbct_icuso + + -2 + -2 + cbct_nncontaantiga + + -2 + -2 + cbct_icemissaoimovelparalisaca + + -2 + -2 + cbct_icemissaoimovelsitcobranc + + -2 + -2 + cbct_icemissaodebitocontames + + -2 + -2 + cbct_icemissaocontarevisao + + -2 + -2 + cbct_icemissaoinquilinodebitoc + + -2 + -2 + cbct_icemissaodebitocontaantig + + -2 + -2 + cbct_pcvlminimopgparccanc + + -2 + -2 + cbct_pcqtminimopgparccanc + + -2 + -2 + cbct_vllimiteprioridade + + -2 + -2 + cbct_iccpf + + -2 + -2 + cbct_ictelefone + + -2 + -2 + cbct_qtdiascorte + + -2 + -2 + cbct_icdebitotitularatual + + -2 + -2 + crtp_idtitularatual + + -2 + -2 + cbct_icemissaocpfcnpjvalidado + + -2 + -2 + cbct_icdividaativa + + -2 + -2 + dmcbct_id + + -2 + -2 + N + cbct_id + cbct_id + Integer + 15 + 0 + + false + + + false + + + + + + cbct_dscobrancacriterio + cbct_dscobrancacriterio + String + 250 + -2 + + false + + + false + + + + + + cbct_dtiniciovigencia + cbct_dtiniciovigencia + Timestamp + 6 + -2 + + false + + + false + + + + + + cbct_icuso + cbct_icuso + Integer + 15 + 0 + + false + + + false + + + + + + cbct_nncontaantiga + cbct_nncontaantiga + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaoimovelparalisaca + cbct_icemissaoimovelparalisaca + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaoimovelsitcobranc + cbct_icemissaoimovelsitcobranc + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaodebitocontames + cbct_icemissaodebitocontames + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaocontarevisao + cbct_icemissaocontarevisao + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaoinquilinodebitoc + cbct_icemissaoinquilinodebitoc + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaodebitocontaantig + cbct_icemissaodebitocontaantig + Integer + 15 + 0 + + false + + + false + + + + + + cbct_pcvlminimopgparccanc + cbct_pcvlminimopgparccanc + Integer + 15 + -2 + + false + + + false + + + + + + cbct_pcqtminimopgparccanc + cbct_pcqtminimopgparccanc + Integer + 15 + -2 + + false + + + false + + + + + + cbct_vllimiteprioridade + cbct_vllimiteprioridade + Number + 15 + 2 + + false + + + false + + + + + + cbct_iccpf + cbct_iccpf + Integer + 15 + 0 + + false + + + false + + + + + + cbct_ictelefone + cbct_ictelefone + Integer + 15 + 0 + + false + + + false + + + + + + cbct_qtdiascorte + cbct_qtdiascorte + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icdebitotitularatual + cbct_icdebitotitularatual + Integer + -2 + -2 + + false + + + false + + + + + + crtp_idtitularatual + crtp_idtitularatual + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icemissaocpfcnpjvalidado + cbct_icemissaocpfcnpjvalidado + Integer + 15 + 0 + + false + + + false + + + + + + cbct_icdividaativa + cbct_icdividaativa + Integer + 15 + 0 + + false + + + false + + + + + + dmcbct_id + dmcbct_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + cobranca_criterio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT '9999' as cbct_id , 'NAO SE APLICA' AS cbct_dscobrancacriterio , '1900-01-01' as cbct_dtiniciovigencia , 2 AS cbct_icuso , 0 AS cbct_nncontaantiga , 2 AS cbct_icemissaoimovelparalisaca , 2 AS cbct_icemissaoimovelsitcobranc , 2 AS cbct_icemissaodebitocontames , 2 AS cbct_icemissaocontarevisao , 2 AS cbct_icemissaoinquilinodebitoc , 2 AS cbct_icemissaodebitocontaantig , 2 AS cbct_pcvlminimopgparccanc , 0 AS cbct_pcqtminimopgparccanc , 0 AS cbct_vllimiteprioridade , 2 AS cbct_iccpf , 2 AS cbct_ictelefone , 2 AS cbct_qtdiascorte , 2 AS cbct_icdebitotitularatual , 2 AS crtp_idtitularatual , 2 AS cbct_icemissaocpfcnpjvalidado , 2 AS cbct_icdividaativa union SELECT cbct_id , cbct_dscobrancacriterio , cbct_dtiniciovigencia , cbct_icuso , cbct_nncontaantiga , cbct_icemissaoimovelparalisaca , cbct_icemissaoimovelsitcobranc , cbct_icemissaodebitocontames , cbct_icemissaocontarevisao , cbct_icemissaoinquilinodebitoc , cbct_icemissaodebitocontaantig , cbct_pcvlminimopgparccanc , cbct_pcqtminimopgparccanc , cbct_vllimiteprioridade , cbct_iccpf , cbct_ictelefone , cbct_qtdiascorte , cbct_icdebitotitularatual , crtp_idtitularatual , cbct_icemissaocpfcnpjvalidado , cbct_icdividaativa FROM gsan_admin.cobranca_criterio order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmcbct_id + Sequence + + Y + + 1 + + none + + + dmcbct_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcbct_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_debito_situacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_debito_situacao.ktr new file mode 100644 index 0000000..ec10eb4 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_debito_situacao.ktr @@ -0,0 +1,706 @@ + + + + ktr_dimen_cobranca_debito_situacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + cobranca_debito_situacaodmcdst_idY + dmcdst_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_debito_situacao
+ VERTICA_JNDI + 100 + Y + + + cdst_id + cdst_id + + + data_atual + date_de + date_ate + + + cdst_dssituacaodebito + cdst_dssituacaodebito + Insert + + + cdst_icuso + cdst_icuso + Insert + + + dmcdst_id + + sequence + N + version + + + dmcdst_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 48 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cdst_id + + -2 + -2 + cdst_dssituacaodebito + + -2 + -2 + cdst_icuso + + -2 + -2 + dmcdst_id + + -2 + -2 + N + cdst_id + cdst_id + Integer + 15 + 0 + + false + + + false + + + + + + cdst_dssituacaodebito + cdst_dssituacaodebito + String + 250 + -2 + + false + + + false + + + + + + cdst_icuso + cdst_icuso + Integer + 15 + 0 + + false + + + false + + + + + + dmcdst_id + dmcdst_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + cobranca_debito_situacao + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 as cdst_id, 'NAO SE APLICA' AS cdst_dssituacaodebito, 2 AS cdst_icuso union SELECT cdst_id , cdst_dssituacaodebito , cdst_icuso FROM gsan_admin.cobranca_debito_situacao order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmcdst_id + Sequence + + Y + + 1 + + none + + + dmcdst_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcdst_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_grupo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_grupo.ktr new file mode 100644 index 0000000..a410ff8 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_grupo.ktr @@ -0,0 +1,754 @@ + + + + ktr_dimen_cobranca_grupo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + cobranca_grupodmcbgr_idY + dmcbgr_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_grupo
+ VERTICA_JNDI + 100 + Y + + + cbgr_id + cbgr_id + + + data_atual + date_de + date_ate + + + cbgr_dscobrancagrupo + cbgr_dscobrancagrupo + Insert + + + cbgr_dsabreviado + cbgr_dsabreviado + Insert + + + cbgr_icuso + cbgr_icuso + Insert + + + cbgr_amreferencia + cbgr_amreferencia + Insert + + + dmcbgr_id + + sequence + N + version + + + dmcbgr_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 64 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cbgr_id + + -2 + -2 + cbgr_dscobrancagrupo + + -2 + -2 + cbgr_dsabreviado + + -2 + -2 + cbgr_icuso + + -2 + -2 + cbgr_amreferencia + + -2 + -2 + dmcbgr_id + + -2 + -2 + N + cbgr_id + cbgr_id + Integer + 15 + 0 + + false + + + false + + + + + + cbgr_dscobrancagrupo + cbgr_dscobrancagrupo + String + 250 + -2 + + false + + + false + + + + + + cbgr_dsabreviado + cbgr_dsabreviado + String + 250 + -2 + + false + + + false + + + + + + cbgr_icuso + cbgr_icuso + Integer + 15 + 0 + + false + + + false + + + + + + cbgr_amreferencia + cbgr_amreferencia + Integer + 15 + 0 + + false + + + false + + + + + + dmcbgr_id + dmcbgr_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + cobranca_grupo + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 0 as cbgr_id, 'NAO SE APLICA' AS cbgr_dscobrancagrupo, 'N/A' as cbgr_dsabreviado, 2 AS cbgr_icuso, '190001' as cbgr_amreferencia union SELECT cbgr_id , cbgr_dscobrancagrupo , cbgr_dsabreviado , cbgr_icuso , cbgr_amreferencia FROM gsan_admin.cobranca_grupo order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmcbgr_id + Sequence + + Y + + 1 + + none + + + dmcbgr_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcbgr_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_situacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_situacao.ktr new file mode 100644 index 0000000..49a17a3 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_cobranca_situacao.ktr @@ -0,0 +1,826 @@ + + + + ktr_dimen_cobranca_situacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + cobranca_situacaodmcbst_idY + dmcbst_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_cobranca_situacao
+ VERTICA_JNDI + 100 + Y + + + cbst_id + cbst_id + + + data_atual + date_de + date_ate + + + cbst_dscobrancasituacao + cbst_dscobrancasituacao + Insert + + + cbst_icuso + cbst_icuso + Insert + + + cbst_icexigenciaadvogado + cbst_icexigenciaadvogado + Insert + + + cbst_icbloqueioinclusao + cbst_icbloqueioinclusao + Insert + + + cbst_icbloqueioretirada + cbst_icbloqueioretirada + Insert + + + cbst_cdconstante + cbst_cdconstante + Insert + + + cbst_icinibeparcelamento + cbst_icinibeparcelamento + Insert + + + dmcbst_id + + sequence + N + version + + + dmcbst_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 64 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + cbst_id + + -2 + -2 + cbst_dscobrancasituacao + + -2 + -2 + cbst_icuso + + -2 + -2 + cbst_icexigenciaadvogado + + -2 + -2 + cbst_icbloqueioinclusao + + -2 + -2 + cbst_icbloqueioretirada + + -2 + -2 + cbst_cdconstante + + -2 + -2 + cbst_icinibeparcelamento + + -2 + -2 + dmcbst_id + + -2 + -2 + N + cbst_id + cbst_id + Integer + 15 + 0 + + false + + + false + + + + + + cbst_dscobrancasituacao + cbst_dscobrancasituacao + String + 250 + -2 + + false + + + false + + + + + + cbst_icuso + cbst_icuso + Integer + 15 + 0 + + false + + + false + + + + + + cbst_icexigenciaadvogado + cbst_icexigenciaadvogado + Integer + 15 + 0 + + false + + + false + + + + + + cbst_icbloqueioinclusao + cbst_icbloqueioinclusao + Integer + 4 + 0 + + false + + + false + + + + + + cbst_icbloqueioretirada + cbst_icbloqueioretirada + Integer + 4 + 0 + + false + + + false + + + + + + cbst_cdconstante + cbst_cdconstante + String + 250 + -2 + + false + + + false + + + + + + cbst_icinibeparcelamento + cbst_icinibeparcelamento + Integer + 4 + 0 + + false + + + false + + + + + + dmcbst_id + dmcbst_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + cobranca_situacao + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT cbst_id , cbst_dscobrancasituacao , cbst_icuso , cbst_icexigenciaadvogado , cbst_icbloqueioinclusao , cbst_icbloqueioretirada , cbst_cdconstante , cbst_icinibeparcelamento FROM gsan_admin.cobranca_situacao order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + dmcbst_id + Sequence + + Y + + 1 + + none + + + dmcbst_id + Y + VERTICA_JNDI + gerencial_cagepa + dmcbst_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_credito_origem_tipo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_credito_origem_tipo.ktr new file mode 100644 index 0000000..94e6a5a --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_credito_origem_tipo.ktr @@ -0,0 +1,849 @@ + + + + dimen_credito_origem_tipo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/19 11:09:47.520 + - + 2015/06/19 11:09:47.520 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + vamos assumir os 9999 como zero e na dimensão vamos criar o id zero com a informação de que "NAO SE APLICA" + 61 + 114 + 364 + 58 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Dimensão Crédito Origem Tipodmco_idY + dmco_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_credito_origem_tipo
+ VERTICA_JNDI + 100 + Y + + + crog_id + crog_id + + + crti_id + crti_id + + + data_atual + date_de + date_ate + + + crog_dscreditoorigem + crog_dscreditoorigem + Insert + + + crog_dsabreviado + crog_dsabreviado + Insert + + + crti_dscreditotipo + crti_dscreditotipo + Insert + + + crti_dsabreviado + crti_dsabreviado + Insert + + + dmco_id + + sequence + N + version + + + dmco_seq + 1900 + 2199 + 5000 + N + N + none + + + + 599 + 47 + Y + + + + + Dimensão Crédito Origem Tipo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as crog_id, 'NAO SE APLICA' AS crog_dscreditoorigem, 'N/A' AS crog_dsabreviado, 9999 as crti_id, 'NAO SE APLICA' AS crti_dscreditotipo, 'N/A' AS crti_dsabreviado UNION SELECT crog_id, crog_dscreditoorigem, crog_dsabreviado, crti_id, crti_dscreditotipo, crti_dsabreviado FROM gsan_admin.credito_origem inner join gsan_admin.credito_tipo on 1=1 order by 1,4 + 0 + + N + N + N + + + 80 + 32 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 476 + 48 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + crog_id + + -2 + -2 + crog_dscreditoorigem + + -2 + -2 + crog_dsabreviado + + -2 + -2 + crti_id + + -2 + -2 + crti_dscreditotipo + + -2 + -2 + crti_dsabreviado + + -2 + -2 + dmco_id + + -2 + -2 + N + crog_id + crog_id + Integer + 9 + 0 + + false + + + false + + + + + + crog_dscreditoorigem + crog_dscreditoorigem + String + 100 + -2 + + false + + + false + + + + + + crog_dsabreviado + crog_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + crti_id + crti_id + Integer + 9 + 0 + + false + + + false + + + + + + crti_dscreditotipo + crti_dscreditotipo + String + 100 + -2 + + false + + + false + + + + + + crti_dsabreviado + crti_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + dmco_id + dmco_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 380 + 46 + Y + + + + + dmco_id + Sequence + + Y + + 1 + + none + + + dmco_id + Y + VERTICA_JNDI + gerencial_cagepa + dmco_seq + N + + 0 + 1 + 999999999 + + + 238 + 46 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_debito_lancamento_item.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_debito_lancamento_item.ktr new file mode 100644 index 0000000..18ae140 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_debito_lancamento_item.ktr @@ -0,0 +1,872 @@ + + + + dimen_debito_lancamento_item + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/19 11:09:47.520 + - + 2015/06/19 11:09:47.520 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 104 + 172 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Dimensão Débito Lançamento ItemChave primáriaY + Chave primáriaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Chave primária + Sequence + + Y + + 1 + + none + + + dmdi_id + Y + VERTICA_JNDI + gerencial_cagepa + dmdi_seq + N + + 0 + 1 + 999999999 + + + 315 + 103 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_debito_lancamento_item
+ VERTICA_JNDI + 100 + Y + + + dbtp_id + dbtp_id + + + fntp_id + fntp_id + + + lict_id + lict_id + + + data_atual + date_de + date_ate + + + dbtp_dsdebitotipo + dbtp_dsdebitotipo + Insert + + + dbtp_dsabreviado + dbtp_dsabreviado + Insert + + + lict_dsitemlancamentocontabil + lict_dsitemlancamentocontabil + Insert + + + lict_dsabreviado + lict_dsabreviado + Insert + + + dmdi_id + + sequence + N + version + + + dmdi_seq + 1900 + 2199 + 5000 + N + N + none + + + + 656 + 106 + Y + + + + + Dimensão Débito Lançamento Item + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as dbtp_id, 'NAO SE APLICA' as dbtp_dsdebitotipo, 'N/A' as dbtp_dsabreviado, 9999 as fntp_id, 9999 as lict_id, 'NAO SE APLICA' as lict_dsitemlancamentocontabil, 'N/A' as lict_dsabreviado UNION SELECT 9999 as dbtp_id, 'NAO SE APLICA' as dbtp_dsdebitotipo, 'N/A' as dbtp_dsabreviado, 9999 as fntp_id, dt.lict_id as lict_id, c.lict_dsitemlancamentocontabil as lict_dsitemlancamentocontabil, c.lict_dsabreviado as lict_dsabreviado FROM gsan_admin.debito_tipo dt inner join gsan_admin.lancamento_item_contabil c on dt.lict_id=c.lict_id UNION SELECT 9999 as dbtp_id, 'NAO SE APLICA' as dbtp_dsdebitotipo, 'N/A' as dbtp_dsabreviado, fntp_id as fntp_id, dt.lict_id as lict_id, c.lict_dsitemlancamentocontabil as lict_dsitemlancamentocontabil, c.lict_dsabreviado as lict_dsabreviado FROM gsan_admin.debito_tipo dt inner join gsan_admin.lancamento_item_contabil c on dt.lict_id=c.lict_id UNION SELECT dbtp_id as dbtp_id, dbtp_dsdebitotipo as dbtp_dsdebitotipo, dbtp_dsabreviado as dbtp_dsabreviado, 9999 as fntp_id, 9999 as lict_id, 'NAO SE APLICA' as lict_dsitemlancamentocontabil, 'N/A' as lict_dsabreviado FROM gsan_admin.debito_tipo UNION SELECT dbtp_id as dbtp_id, dbtp_dsdebitotipo as dbtp_dsdebitotipo, dbtp_dsabreviado as dbtp_dsabreviado, fntp_id as fntp_id, 9999 as lict_id, 'NAO SE APLICA' as lict_dsitemlancamentocontabil, 'N/A' as lict_dsabreviado FROM gsan_admin.debito_tipo UNION SELECT dbtp_id as dbtp_id, dbtp_dsdebitotipo as dbtp_dsdebitotipo, dbtp_dsabreviado as dbtp_dsabreviado, 9999 as fntp_id, dt.lict_id as lict_id, c.lict_dsitemlancamentocontabil as lict_dsitemlancamentocontabil, c.lict_dsabreviado as lict_dsabreviado FROM gsan_admin.debito_tipo dt inner join gsan_admin.lancamento_item_contabil c on dt.lict_id=c.lict_id UNION SELECT 9999 as dbtp_id, 'NAO SE APLICA' as dbtp_dsdebitotipo, 'N/A' as dbtp_dsabreviado, fntp_id as fntp_id, 9999 as lict_id, 'NAO SE APLICA' as lict_dsitemlancamentocontabil, 'N/A' as lict_dsabreviado FROM gsan_admin.debito_tipo UNION SELECT dbtp_id, dbtp_dsdebitotipo, dbtp_dsabreviado, fntp_id, c.lict_id, c.lict_dsitemlancamentocontabil, c.lict_dsabreviado FROM gsan_admin.debito_tipo dt left join gsan_admin.lancamento_item_contabil c on 1=1 order by 1,5 + 0 + + N + N + N + + + 144 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 533 + 107 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dbtp_id + + -2 + -2 + dbtp_dsdebitotipo + + -2 + -2 + dbtp_dsabreviado + + -2 + -2 + fntp_id + + -2 + -2 + lict_id + + -2 + -2 + lict_dsitemlancamentocontabil + + -2 + -2 + lict_dsabreviado + + -2 + -2 + dmdi_id + + -2 + -2 + N + dbtp_id + dbtp_id + Integer + 9 + 0 + + false + + + false + + + + + + dbtp_dsdebitotipo + dbtp_dsdebitotipo + String + 100 + -2 + + false + + + false + + + + + + dbtp_dsabreviado + dbtp_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + fntp_id + fntp_id + Integer + 9 + 0 + + false + + + false + + + + + + lict_id + lict_id + Integer + 9 + 0 + + false + + + false + + + + + + lict_dsitemlancamentocontabil + lict_dsitemlancamentocontabil + String + 100 + -2 + + false + + + false + + + + + + lict_dsabreviado + lict_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + dmdi_id + dmdi_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 443 + 104 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_devolucao_situacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_devolucao_situacao.ktr new file mode 100644 index 0000000..2d22534 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_devolucao_situacao.ktr @@ -0,0 +1,785 @@ + + + + ktr_dimen_devolucao_situacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 37 + 148 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmdv_idSelect valuesY + //Script heredmdv_idY + devolucao_situacao//Script hereY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + //Script here + ScriptValueMod + + N + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var dvst_icuso_desc if(dvst_icuso==1){ dvst_icuso_desc="ATIVO"} else{ dvst_icuso_desc="INATIVO"}; + dvst_icuso_desc + dvst_icuso_desc + String + -1 + -1 + N + + + 163 + 78 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_devolucao_situacao
+ VERTICA_JNDI + 100 + Y + + + dvst_id + dvst_id + + + data_atual + date_de + date_ate + + + dvst_dsdevolucaosituacao + dvst_dsdevolucaosituacao + Insert + + + dvst_dsabreviado + dvst_dsabreviado + Insert + + + dvst_icuso + dvst_icuso + Insert + + + dvst_icuso_desc + dvst_icuso_desc + Insert + + + dmdv_id + + sequence + N + version + + + dmdv_seq + 1900 + 2199 + 5000 + N + N + none + + + + 564 + 77 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 441 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dvst_id + + -2 + -2 + dvst_dsdevolucaosituacao + + -2 + -2 + dvst_dsabreviado + + -2 + -2 + dvst_icuso + + -2 + -2 + dvst_icuso_desc + + -2 + -2 + dmdv_id + + -2 + -2 + N + dvst_id + dvst_id + Integer + 9 + 0 + + false + + + false + + + + + + dvst_dsdevolucaosituacao + dvst_dsdevolucaosituacao + String + 50 + -2 + + false + + + false + + + + + + dvst_dsabreviado + dvst_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + dvst_icuso + dvst_icuso + Integer + 9 + 0 + + false + + + false + + + + + + dvst_icuso_desc + dvst_icuso_desc + String + 50 + -2 + + false + + + false + + + + + + dmdv_id + dmdv_id + Integer + 9 + 0 + + false + + + false + + + + + + + + 331 + 80 + Y + + + + + devolucao_situacao + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as dvst_id , 'NAO SE APLICA' AS dvst_dsdevolucaosituacao , 'N/A' AS dvst_dsabreviado , 2 AS dvst_icuso FROM gsan_admin.devolucao_situacao union SELECT dvst_id , dvst_dsdevolucaosituacao , dvst_dsabreviado , dvst_icuso FROM gsan_admin.devolucao_situacao order by dvst_id + 0 + + N + N + N + + + 48 + 48 + Y + + + + + dmdv_id + Sequence + + Y + + 1 + + none + + + dmdv_id + Y + VERTICA_JNDI + gerencial_cagepa + dmdv_seq + N + + 0 + 1 + 999999999 + + + 240 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_documento_tipo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_documento_tipo.ktr new file mode 100644 index 0000000..739ed85 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_documento_tipo.ktr @@ -0,0 +1,947 @@ + + + + ktr_dimen_documento_tipo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/10 15:05:31.633 + - + 2015/06/10 15:05:31.633 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 Caso surja uma nova faixa, deve ser adicionada no KTR + 53 + 23 + 299 + 58 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmdt_id//Script hereY + //Script hereSelect valuesY + Select valuesSelect values 2Y + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + g_documento_tipoJoin Rows (cartesian product)Y + Data GridJoin Rows (cartesian product)Y + Join Rows (cartesian product)dmdt_idY + + + //Script here + ScriptValueMod + + N + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var icvencido_desc if(icvencido==1){ icvencido_desc="VENCIDO"} else{ icvencido_desc="EM DIA"}; + icvencido_desc + icvencido_desc + String + -1 + -1 + N + + + 332 + 122 + Y + + + + + Data Grid + DataGrid + + Y + + 1 + + none + + + + + fxvl_id + Integer + + + + + -1 + -1 + N + + + fxvl_dsfaixavalor + String + + + + + -1 + -1 + N + + + j + Integer + + + + + -1 + -1 + N + + + + 0SEM FAIXA VALOR1 + 1ATE R$50,001 + 2DE R$500,01 A R$1.000,001 + 3DE R$50,01 A R$500,001 + 4ACIMA DE R$1.000,001 + + + + 117 + 275 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_documento_tipo
+ VERTICA_JNDI + 100 + Y + + + dotp_id + dotp_id + + + fxvl_id + fxvl_id + + + data_atual + date_de + date_ate + + + dotp_dsdocumentotipo + dotp_dsdocumentotipo + Insert + + + fxvl_dsfaixavalor + fxvl_dsfaixavalor + Insert + + + icvencido + icvencido + Insert + + + icvencido_desc + icvencido_desc + Insert + + + dmdt_id + + sequence + N + version + + + dmdt_seq + 1900 + 2199 + 5000 + N + N + none + + + + 639 + 199 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 516 + 200 + Y + + + + + Join Rows (cartesian product) + JoinRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 500 +
g_documento_tipo
+ + + N + j + = + j + + + + + 207 + 209 + Y + +
+ + + Select values + SelectValues + + Y + + 1 + + none + + + dotp_id + + -2 + -2 + dotp_dsdocumentotipo + + -2 + -2 + fxvl_id + + -2 + -2 + fxvl_dsfaixavalor + + -2 + -2 + icvencido + + -2 + -2 + icvencido_desc + + -2 + -2 + dmdt_id + + -2 + -2 + N + + + 415 + 124 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + dotp_id + dotp_id + Integer + 9 + 0 + + false + + + false + + + + + + dotp_dsdocumentotipo + dotp_dsdocumentotipo + String + 50 + -2 + + false + + + false + + + + + + fxvl_id + fxvl_id + Integer + 9 + 0 + + false + + + false + + + + + + fxvl_dsfaixavalor + fxvl_dsfaixavalor + String + 50 + -2 + + false + + + false + + + + + + icvencido + icvencido + Integer + 9 + 0 + + false + + + false + + + + + + icvencido_desc + icvencido_desc + String + 50 + -2 + + false + + + false + + + + + + dmdt_id + dmdt_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 485 + 121 + Y + + + + + dmdt_id + Sequence + + Y + + 1 + + none + + + dmdt_id + Y + VERTICA_JNDI + gerencial_cagepa + dmdt_seq + N + + 0 + 1 + 999999999 + + + 253 + 122 + Y + + + + + g_documento_tipo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as dotp_id, 'N/A' as dotp_dsdocumentotipo, 2 as icvencido, 1 as J FROM gsan_admin.documento_tipo inner join (select 1 as icvencido union all select 2)temp on 1=1 inner join gsan_admin.financiamento_tipo on 1 = 1 union SELECT dotp_id, dotp_dsdocumentotipo, icvencido, 1 as J FROM gsan_admin.documento_tipo inner join (select 1 as icvencido union all select 2)temp on 1=1 + 0 + + N + N + N + + + 96 + 96 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_empresa.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_empresa.ktr new file mode 100644 index 0000000..4ad5758 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_empresa.ktr @@ -0,0 +1,682 @@ + + + + ktr_dimen_empresa + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 38 + 139 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmem_idchave primariaY + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_empresa
+ VERTICA_JNDI + 100 + Y + + + empr_id + empr_id + + + data_atual + date_de + date_ate + + + empr_nmempresa + empr_nmempresa + Insert + + + dmem_id + + sequence + N + version + + + dmem_seq + 1900 + 2199 + 5000 + N + N + none + + + + 464 + 164 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 341 + 165 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmem_id + + -2 + -2 + empr_id + + -2 + -2 + empr_nmempresa + + -2 + -2 + N + dmem_id + dmem_id + Integer + -2 + 0 + + false + + + false + + + + + + empr_id + empr_id + Integer + 9 + 0 + + false + + + false + + + + + + empr_nmempresa + empr_nmempresa + String + 50 + -2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmem_id + Y + VERTICA_JNDI + gerencial_cagepa + dmem_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmem_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 as empr_id , 'NAO SE APLICA' AS empr_nmempresa union SELECT empr_id , empr_nmempresa FROM gsan_admin.empresa + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_epoca_pagamento.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_epoca_pagamento.ktr new file mode 100644 index 0000000..9f118d9 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_epoca_pagamento.ktr @@ -0,0 +1,709 @@ + + + + ktr_dimen_epoca_pagamento + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + vamos assumir os 9999 como zero e na dimensão vamos criar o id zero com a informação de que "NAO SE APLICA" + 30 + 162 + 364 + 58 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + Data Gridchave primariaY + + + Data Grid + DataGrid + + Y + + 1 + + none + + + + + eppa_id + Integer + + + + + -1 + -1 + N + + + eppa_dsepocapagemento + String + + + + + -1 + -1 + N + + + + 0ATE O VENCIMENTO + 1APOS VENCTO MAS NO MES + 2MES SEQUINTE AO DO VENCTO + 32 MESES APOS VENCTO + 43 MESES APOS VENCTO + 54 MESES APOS VENCTO + 9+ 4 MESES APOS VENCTO + 9999NAO SE APLICA + + + + 160 + 80 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_epoca_pagamento
+ VERTICA_JNDI + 100 + Y + + + eppa_id + eppa_id + + + data_atual + date_de + date_ate + + + eppa_dsepocapagemento + eppa_dsepocapagemento + Insert + + + dmep_id + + sequence + N + version + + + dmep_seq + 1900 + 2199 + 5000 + N + N + none + + + + 656 + 93 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 533 + 94 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + eppa_id + + -2 + -2 + eppa_dsepocapagemento + + -2 + -2 + dmep_id + + -2 + -2 + N + eppa_id + eppa_id + Integer + 9 + 0 + + false + + + false + + + + + + eppa_dsepocapagemento + eppa_dsepocapagemento + String + 50 + -2 + + false + + + false + + + + + + dmep_id + dmep_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 428 + 92 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmep_id + Y + VERTICA_JNDI + gerencial_cagepa + dmep_seq + N + + 0 + 1 + 999999999 + + + 287 + 94 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_esfera_poder_perfil.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_esfera_poder_perfil.ktr new file mode 100644 index 0000000..fd1d9f0 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_esfera_poder_perfil.ktr @@ -0,0 +1,729 @@ + + + + ktr_dimen_esfera_poder_perfil + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 41 + 150 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + imovel_perfildmpt_idY + dmpt_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_perfil_imovel_tarifa
+ VERTICA_JNDI + 100 + Y + + + iper_id + iper_id + + + cstf_id + cstf_id + + + data_atual + date_de + date_ate + + + iper_dsimovelperfil + iper_dsimovelperfil + Insert + + + cstf_dsconsumotarifa + cstf_dsconsumotarifa + Insert + + + dmpt_id + + sequence + N + version + + + dmpt_seq + 1900 + 2199 + 5000 + N + N + none + + + + 486 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 343 + 80 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmpt_id + + -2 + -2 + iper_id + + -2 + -2 + iper_dsimovelperfil + + -2 + -2 + cstf_id + + -2 + -2 + cstf_dsconsumotarifa + + -2 + -2 + N + dmpt_id + dmpt_id + Integer + -2 + 0 + + false + + + false + + + + + + iper_id + iper_id + Integer + 9 + 0 + + false + + + false + + + + + + iper_dsimovelperfil + iper_dsimovelperfil + String + 50 + -2 + + false + + + false + + + + + + cstf_id + cstf_id + Integer + 9 + 0 + + false + + + false + + + + + + cstf_dsconsumotarifa + cstf_dsconsumotarifa + String + 50 + -2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmpt_id + Sequence + + Y + + 1 + + none + + + dmpt_id + Y + VERTICA_JNDI + gerencial_cagepa + dmpt_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + imovel_perfil + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 AS iper_id, 'NAO SE APLICA' AS iper_dsimovelperfil, 9999 AS cstf_id, 'NAO SE APLICA' AS cstf_dsconsumotarifa UNION select iper_id, iper_dsimovelperfil, cstf_id, cstf_dsconsumotarifa from gsan_admin.imovel_perfil ip left join gsan_admin.consumo_tarifa ct on 1=1 + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_faixa_valor_pendente.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_faixa_valor_pendente.ktr new file mode 100644 index 0000000..929bb33 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_faixa_valor_pendente.ktr @@ -0,0 +1,520 @@ + + + + ktr_dimen_faixa_valor_pendente + + + + Normal + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2016/01/22 10:48:58.190 + - + 2016/01/22 10:48:58.190 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Data GridSelect values 2Y + Select values 2dimen_faixa_valor_pendenteY + + + Data Grid + DataGrid + + Y + + 1 + + none + + + + + fxvl_id + Integer + + + + + -1 + -1 + N + + + fxvl_dsfaixavalor + String + + + + + -1 + -1 + N + + + + 0SEM FAIXA VALOR + 1ATE R$50,00 + 2DE R$50,01 A R$500,00 + 3DE R$500,01 A R$1.000,00 + 4MAIOR QUE R$1.000,00 + + + + 112 + 112 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + fxvl_id + + -2 + -2 + fxvl_dsfaixavalor + + -2 + -2 + N + fxvl_id + fxvl_id + Integer + 15 + 0 + + false + + + false + + + + + + fxvl_dsfaixavalor + fxvl_dsfaixavalor + String + 255 + -2 + + false + + + false + + + + + + + + 208 + 128 + Y + + + + + dimen_faixa_valor_pendente + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_faixa_valor_pendente
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 304 + 128 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_faturamento_grupo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_faturamento_grupo.ktr new file mode 100644 index 0000000..424ae85 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_faturamento_grupo.ktr @@ -0,0 +1,873 @@ + + + + ktr_dimen_faturamento_grupo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + faturamento_grupodmftgr_idY + dmftgr_idSelect valuesY + Select valuesGet System InfoY + Get System InfoDimension lookup/updateY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_faturamento_grupo
+ VERTICA_JNDI + 100 + Y + + + ftcm_id + ftcm_id + + + ftgr_id + ftgr_id + + + data_atual + date_de + date_ate + + + ftgr_dsfaturamentogrupo + ftgr_dsfaturamentogrupo + Insert + + + ftgr_dsabreviado + ftgr_dsabreviado + Insert + + + ftgr_icuso + ftgr_icuso + Insert + + + ftgr_amreferencia + ftgr_amreferencia + Insert + + + ftgr_nndiavencimento + ftgr_nndiavencimento + Insert + + + ftgr_icvencimentomesfatura + ftgr_icvencimentomesfatura + Insert + + + ftgr_nndiavencdebitoaut + ftgr_nndiavencdebitoaut + Insert + + + ftgr_nndiavencentregaalter + ftgr_nndiavencentregaalter + Insert + + + dmftgr_id + + sequence + N + version + + + dmftgr_seq + 1900 + 2199 + 5000 + N + N + none + + + + 464 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + ftcm_id + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_dsfaturamentogrupo + + -2 + -2 + ftgr_dsabreviado + + -2 + -2 + ftgr_icuso + + -2 + -2 + ftgr_amreferencia + + -2 + -2 + ftgr_nndiavencimento + + -2 + -2 + ftgr_icvencimentomesfatura + + -2 + -2 + ftgr_nndiavencdebitoaut + + -2 + -2 + ftgr_nndiavencentregaalter + + -2 + -2 + dmftgr_id + + -2 + -2 + N + ftcm_id + ftcm_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_dsfaturamentogrupo + ftgr_dsfaturamentogrupo + String + 250 + -2 + + false + + + false + + + + + + ftgr_dsabreviado + ftgr_dsabreviado + String + 250 + -2 + + false + + + false + + + + + + ftgr_icuso + ftgr_icuso + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_amreferencia + ftgr_amreferencia + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_nndiavencimento + ftgr_nndiavencimento + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_icvencimentomesfatura + ftgr_icvencimentomesfatura + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_nndiavencdebitoaut + ftgr_nndiavencdebitoaut + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_nndiavencentregaalter + ftgr_nndiavencentregaalter + Integer + 15 + 0 + + false + + + false + + + + + + dmftgr_id + dmftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmftgr_id + Sequence + + Y + + 1 + + none + + + dmftgr_id + Y + VERTICA_JNDI + gerencial_cagepa + dmftgr_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + faturamento_grupo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 0 as ftcm_id , 0 as ftgr_id , 'NAO SE APLICA' AS ftgr_dsfaturamentogrupo , 'N/A' AS ftgr_dsabreviado , 2 AS ftgr_icuso , 190001 AS ftgr_amreferencia , 0 AS ftgr_nndiavencimento , 2 AS ftgr_icvencimentomesfatura , 0 AS ftgr_nndiavencdebitoaut , 0 AS ftgr_nndiavencentregaalter union SELECT ftcm_id , ftgr.ftgr_id , ftgr_dsfaturamentogrupo , ftgr_dsabreviado , ftgr_icuso , ftgr_amreferencia , ftgr_nndiavencimento , ftgr_icvencimentomesfatura , ftgr_nndiavencdebitoaut , ftgr_nndiavencentregaalter FROM gsan_admin.faturamento_grupo ftgr inner join gsan_admin.faturamento_grupo_cron_mensal ftcm on ftgr.ftgr_id=ftcm.ftgr_id order by 1 + 0 + + N + N + N + + + 48 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_financiamento_tipo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_financiamento_tipo.ktr new file mode 100644 index 0000000..2b0c2f4 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_financiamento_tipo.ktr @@ -0,0 +1,778 @@ + + + + ktr_dimen_financiamento_tipo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/19 15:07:29.431 + - + 2015/06/19 15:07:29.431 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 33 + 153 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_dw_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmft_idSelect valuesY + financiamento_tipodmft_idY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_financiamento_tipo
+ VERTICA_JNDI + 100 + Y + + + fntp_id + fntp_id + + + data_atual + date_de + date_ate + + + fntp_dsfinanciamentotipo + fntp_dsfinanciamentotipo + Insert + + + fntp_dsabreviado + fntp_dsabreviado + Insert + + + dmft_id + + sequence + N + version + + + dmft_seq + 1900 + 2199 + 5000 + N + N + none + + + + 534 + 68 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 411 + 69 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + fntp_id + + -2 + -2 + fntp_dsfinanciamentotipo + + -2 + -2 + fntp_dsabreviado + + -2 + -2 + dmft_id + + -2 + -2 + N + fntp_id + fntp_id + Integer + 9 + 0 + + false + + + false + + + + + + fntp_dsfinanciamentotipo + fntp_dsfinanciamentotipo + String + 50 + -2 + + false + + + false + + + + + + fntp_dsabreviado + fntp_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + dmft_id + dmft_id + Integer + 9 + 0 + + false + + + false + + + + + + + + 314 + 70 + Y + + + + + dmft_id + Sequence + + Y + + 1 + + none + + + dmft_id + Y + VERTICA_JNDI + gerencial_cagepa + dmft_seq + N + + 0 + 1 + 999999999 + + + 197 + 71 + Y + + + + + financiamento_tipo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as fntp_id , 'NAO SE APLICA' AS fntp_dsfinanciamentotipo , 'N/A' AS fntp_dsabreviado FROM gsan_admin.financiamento_tipo union SELECT fntp_id , fntp_dsfinanciamentotipo , fntp_dsabreviado FROM gsan_admin.financiamento_tipo + 0 + + N + N + N + + + 64 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_geografica.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_geografica.ktr new file mode 100644 index 0000000..7c594d2 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_geografica.ktr @@ -0,0 +1,834 @@ + + + + ktr_dimen_geografica + + + + Normal + 0 + / + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 39 + 154 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Select valuesdimen_geograficaY + municipioStream lookupY + dimen_geografica 2Stream lookupY + Stream lookupFilter rowsY + Filter rowsdmgr_idY + Filter rowsDummy (do nothing)Y + dmgr_idCalculatorY + CalculatorSelect valuesY + + + Calculator + Calculator + + Y + + 1 + + none + + + dmgr_id +ADD +dmgr +id + +Integer +-1 +-1 +N + + + + + + + + 483 + 391 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 300 + 289 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +dmgr_id +Dummy (do nothing) + + + N + dm_id + IS NULL + + + + + + 262 + 392 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmgr_id + + -2 + -2 + muni_id + + -2 + -2 + muni_nmmunicipio + + -2 + -2 + bair_id + + -2 + -2 + bair_nmbairro + + -2 + -2 + N + dmgr_id + dmgr_id + Integer + 9 + 0 + + false + + + false + + + + + + muni_id + muni_id + Integer + 9 + 0 + + false + + + false + + + + + + muni_nmmunicipio + muni_nmmunicipio + String + 50 + -2 + + false + + + false + + + + + + bair_id + bair_id + Integer + 9 + 0 + + false + + + false + + + + + + bair_nmbairro + bair_nmbairro + String + 50 + -2 + + false + + + false + + + + + + + + 669 + 393 + Y + + + + + Stream lookup + StreamLookup + + Y + + 1 + + none + + + dimen_geografica 2 + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dm_id + + None + + + + + 172 + 393 + Y + + + + + dimen_geografica + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_geografica
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 771 + 392 + Y + + + + + dimen_geografica 2 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , bair_id FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 173 + 281 + Y + + + + + dmgr_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmgr_seq + Y + + 1 + 1 + 999999999 + + + 371 + 390 + Y + + + + + municipio + TableInput + + Y + + 1 + + none + + + comercial_gsan + select --5000 as dmgr ${max} as dmgr ,9999 as muni_id , 'N/A' AS muni_nmmunicipio , 9999 AS bair_id , 'N/A' AS bair_nmbairro UNION select --5000 as dmgr ${max} as dmgr ,mu.muni_id ,muni_nmmunicipio ,9999 AS bair_id ,'N/A' AS bair_nmbairro from gsan_admin.municipio mu UNION select --5000 as dmgr ${max} as dmgr ,mu.muni_id ,muni_nmmunicipio ,bair_id ,bair_nmbairro from gsan_admin.municipio mu inner join gsan_admin.bairro ba on ba.muni_id = mu.muni_id order by muni_id, bair_id --inner join gsan_admin.bairro ba on ba.muni_id = mu.muni_id --order by muni_id, bair_id + 0 + + N + Y + N + + + 32 + 352 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_hidr_armazenagem_macro.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_hidr_armazenagem_macro.ktr new file mode 100644 index 0000000..e184c60 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_hidr_armazenagem_macro.ktr @@ -0,0 +1,782 @@ + + + + ktr_dimen_hidr_armazenagem_macro + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 51 + 145 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmham_idchave primariaY + chave primaria//Script hereY + //Script hereSelect valuesY + Select valuesSelect values 2Y + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + + + //Script here + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var dmham_icmacro_desc if(dmham_icmacro==1){ dmham_icmacro_desc="MACROMEDIDOR"} else{ dmham_icmacro_desc="MICROMEDIDOR"}; + dmham_icmacro_desc + dmham_icmacro_desc + String + -1 + -1 + N + + + 223 + 77 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_hidr_armazenagem_macro
+ VERTICA_JNDI + 100 + Y + + + hila_id + hila_id + + + data_atual + date_de + date_ate + + + hila_dshidrometrolocalarmazena + hila_dshidrlocalarmazenagem + Insert + + + dmham_icmacro_desc + dmham_icmacro_desc + Insert + + + dmham_icmacro + dmham_icmacro + Insert + + + dmham_id + + sequence + N + version + + + dmham_seq + 1900 + 2199 + 5000 + N + N + none + + + + 599 + 172 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 476 + 173 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmham_id + + -2 + -2 + hila_id + + -2 + -2 + hila_dshidrometrolocalarmazena + + -2 + -2 + dmham_icmacro + + -2 + -2 + dmham_icmacro_desc + + -2 + -2 + N + + + 302 + 75 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + dmham_id + dmham_id + None + -2 + 0 + + false + + + false + + + + + + hila_id + hila_id + None + 9 + 0 + + false + + + false + + + + + + hila_dshidrometrolocalarmazena + hila_dshidrometrolocalarmazena + None + 2147483647 + -2 + + false + + + false + + + + + + dmham_icmacro + dmham_icmacro + None + 9 + 0 + + false + + + false + + + + + + dmham_icmacro_desc + dmham_icmacro_desc + None + 20 + -2 + + false + + + false + + + + + + + + 387 + 72 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmham_id + Y + VERTICA_JNDI + gerencial_cagepa + dmham_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmham_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 AS hila_id, 'N/A' AS hila_dshidrometrolocalarmazena, 1 as dmham_icmacro UNION ALL SELECT 9999 AS hila_id, 'N/A' AS hila_dshidrometrolocalarmazena, 2 as dmham_icmacro UNION ALL SELECT hila_id, hila_dshidrometrolocalarmazena, rehi_icmacro as dmham_icmacro FROM gsan_admin.hidrometro_local_armazenagem hila left join (select 1 as rehi_icmacro union all select 2) icm on 1 = 1 + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_hidr_capacidade_diametro.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_hidr_capacidade_diametro.ktr new file mode 100644 index 0000000..00dd7d9 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_hidr_capacidade_diametro.ktr @@ -0,0 +1,750 @@ + + + + ktr_dimen_hidr_capacidade_diametro + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Valores NULL recebera o valor 9999. O hidm_id possui o valor 0 para os NAO INFORMADOS + 50 + 145 + 300 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmhcd_idchave primariaY + Select valuesSelect values 2Y + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_hidr_capacidade_diametro
+ VERTICA_JNDI + 100 + Y + + + hicp_id + hicp_id + + + hidm_id + hidm_id + + + data_atual + date_de + date_ate + + + hicp_dshidrometrocapacidade + hicp_dshidrometrocapacidade + Insert + + + hidm_dshidrometrodiametro + hidm_dshidrometrodiametro + Insert + + + dmhcd_id + + sequence + N + version + + + dmhcd_seq + 1900 + 2199 + 5000 + N + N + none + + + + 576 + 176 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 453 + 193 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmhcd_id + + -2 + -2 + hicp_id + + -2 + -2 + hicp_dshidrometrocapacidade + + -2 + -2 + hidm_id + + -2 + -2 + hidm_dshidrometrodiametro + + -2 + -2 + N + + + 246 + 72 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + dmhcd_id + dmhcd_id + None + -2 + 0 + + false + + + false + + + + + + hicp_id + hicp_id + None + 9 + 0 + + false + + + false + + + + + + hicp_dshidrometrocapacidade + hicp_dshidrometrocapacidade + None + 20 + -2 + + false + + + false + + + + + + hidm_id + hidm_id + None + 9 + 0 + + false + + + false + + + + + + hidm_dshidrometrodiametro + hidm_dshidrometrodiametro + None + 20 + -2 + + false + + + false + + + + + + + + 344 + 79 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmhcd_id + Y + VERTICA_JNDI + gerencial_cagepa + dmhcd_seq + N + + 1 + 1 + 999999999 + + + 144 + 75 + Y + + + + + dmhcd_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as hicp_id, 'N/A' as hicp_dshidrometrocapacidade, hidm_id, hidm_dshidrometrodiametro from gsan_admin.hidrometro_diametro hidm UNION select hicp_id, hicp_dshidrometrocapacidade, hidm_id, hidm_dshidrometrodiametro from gsan_admin.hidrometro_capacidade hicp left join gsan_admin.hidrometro_diametro hidm on 1=1 ; + 0 + + N + N + N + + + 55 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_hidr_marca_tipo_classe.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_hidr_marca_tipo_classe.ktr new file mode 100644 index 0000000..fafd854 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_hidr_marca_tipo_classe.ktr @@ -0,0 +1,797 @@ + + + + ktr_dimen_hidr_marca_tipo_classe + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Valores NULL recebera o valor 9999. O himc_id e o hitp_id possui o valor 0 para os NAO INFORMADOS. + 50 + 145 + 359 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmmtc_idchave primariaY + Select valuesSelect values 2Y + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_hidr_marca_tipo_classe
+ VERTICA_JNDI + 100 + Y + + + himc_id + himc_id + + + hitp_id + hitp_id + + + hicm_id + hicm_id + + + data_atual + date_de + date_ate + + + himc_dshidrometromarca + himc_dshidrometromarca + Insert + + + hitp_dshidrometrotipo + hitp_dshidrometrotipo + Insert + + + hicm_dshidrometroclassemetrolo + hicm_dshidrclassemetrologica + Insert + + + dmmtc_id + + sequence + N + version + + + dmmtc_seq + 1900 + 2199 + 5000 + N + N + none + + + + 624 + 128 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 499 + 155 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmmtc_id + + -2 + -2 + himc_id + + -2 + -2 + himc_dshidrometromarca + + -2 + -2 + hitp_id + + -2 + -2 + hitp_dshidrometrotipo + + -2 + -2 + hicm_id + + -2 + -2 + hicm_dshidrometroclassemetrolo + + -2 + -2 + N + + + 246 + 72 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + dmmtc_id + dmmtc_id + None + -2 + 0 + + false + + + false + + + + + + himc_id + himc_id + None + 9 + 0 + + false + + + false + + + + + + himc_dshidrometromarca + himc_dshidrometromarca + None + 30 + -2 + + false + + + false + + + + + + hitp_id + hitp_id + None + 9 + 0 + + false + + + false + + + + + + hitp_dshidrometrotipo + hitp_dshidrometrotipo + None + 20 + -2 + + false + + + false + + + + + + hicm_id + hicm_id + None + 9 + 0 + + false + + + false + + + + + + hicm_dshidrometroclassemetrolo + hicm_dshidrometroclassemetrolo + None + 2147483647 + -2 + + false + + + false + + + + + + + + 351 + 73 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmmtc_id + Y + VERTICA_JNDI + gerencial_cagepa + dmmtc_seq + N + + 1 + 1 + 999999999 + + + 144 + 75 + Y + + + + + dmmtc_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT himc_id, himc_dshidrometromarca, hitp_id, hitp_dshidrometrotipo, 9999 as hicm_id, 'N/A' as hicm_dshidrometroclassemetrolo FROM gsan_admin.hidrometro_marca himc LEFT JOIN gsan_admin.hidrometro_tipo hitp on 1=1 UNION SELECT himc_id, himc_dshidrometromarca, hitp_id, hitp_dshidrometrotipo, hicm_id, hicm_dshidrometroclassemetrolo FROM gsan_admin.hidrometro_marca himc LEFT JOIN gsan_admin.hidrometro_tipo hitp on 1=1 LEFT JOIN gsan_admin.hidrometro_classe_metrologica hicm on 1=1 + 0 + + N + N + N + + + 55 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_hidro_situacao_baixa.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_hidro_situacao_baixa.ktr new file mode 100644 index 0000000..298e19d --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_hidro_situacao_baixa.ktr @@ -0,0 +1,750 @@ + + + + ktr_dimen_hidro_situacao_baixa + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Valores NULL recebera o valor 9999 + 50 + 145 + 195 + 26 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmhsb_idchave primariaY + Select valuesSelect values 2Y + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select values 2Get System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_hidr_situacao_baixa
+ VERTICA_JNDI + 100 + Y + + + hist_id + hist_id + + + himb_id + himb_id + + + data_atual + date_de + date_ate + + + hist_dshidrometrosituacao + hist_dshidrometrosituacao + Insert + + + himb_dshidrometromotivobaixa + himb_dshidrometromotivobaixa + Insert + + + dmhsb_id + + sequence + N + version + + + dmhsb_seq + 1900 + 2199 + 5000 + N + N + none + + + + 475 + 152 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 352 + 153 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmhsb_id + + -2 + -2 + hist_id + + -2 + -2 + hist_dshidrometrosituacao + + -2 + -2 + himb_id + + -2 + -2 + himb_dshidrometromotivobaixa + + -2 + -2 + N + + + 246 + 72 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + dmhsb_id + dmhsb_id + None + -2 + 0 + + false + + + false + + + + + + hist_id + hist_id + None + 9 + 0 + + false + + + false + + + + + + hist_dshidrometrosituacao + hist_dshidrometrosituacao + None + 20 + -2 + + false + + + false + + + + + + himb_id + himb_id + None + 9 + 0 + + false + + + false + + + + + + himb_dshidrometromotivobaixa + himb_dshidrometromotivobaixa + None + 20 + -2 + + false + + + false + + + + + + + + 344 + 79 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmhsb_id + Y + VERTICA_JNDI + gerencial_cagepa + dmhsb_seq + N + + 1 + 1 + 999999999 + + + 144 + 75 + Y + + + + + dmhsb_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as hist_id, 'N/A' as hist_dshidrometrosituacao, 9999 as himb_id, 'N/A' as himb_dshidrometromotivobaixa UNION ALL SELECT hist_id, hist_dshidrometrosituacao, 9999 as himb_id, 'N/A' as himb_dshidrometromotivobaixa FROM gsan_admin.hidrometro_situacao hist UNION ALL SELECT 9999 as hist_id, 'N/A' as hist_dshidrometrosituacao, himb_id, himb_dshidrometromotivobaixa FROM gsan_admin.hidrometro_motivo_baixa himb UNION ALL SELECT hist_id, hist_dshidrometrosituacao, himb_id, himb_dshidrometromotivobaixa FROM gsan_admin.hidrometro_situacao hist LEFT JOIN gsan_admin.hidrometro_motivo_baixa himb on 1=1 ; + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_imposto_tipo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_imposto_tipo.ktr new file mode 100644 index 0000000..6c4dbb2 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_imposto_tipo.ktr @@ -0,0 +1,717 @@ + + + + dimen_imposto_tipo + + + + Normal + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/19 15:07:29.431 + - + 2015/06/19 15:07:29.431 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 55 + 134 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Dimensão Imposto Tipodmit_idY + dmit_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_imposto_tipo
+ VERTICA_JNDI + 100 + Y + + + imtp_id + imtp_id + + + data_atual + date_de + date_ate + + + imtp_dsimposto + imtp_dsimposto + Insert + + + imtp_dsabreviadaimposto + imtp_dsabreviadaimposto + Insert + + + dmit_id + + sequence + N + version + + + dmit_seq + 1900 + 2199 + 5000 + N + N + none + + + + 545 + 76 + Y + + + + + Dimensão Imposto Tipo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as imtp_id, 'NAO SE APLICA' AS imtp_dsimposto, 'N/A' AS imtp_dsabreviadaimposto union SELECT imtp_id, imtp_dsimposto, imtp_dsabreviadaimposto FROM gsan_admin.imposto_tipo order by 1 + 0 + + N + N + N + + + 64 + 64 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 422 + 77 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + imtp_id + + -2 + -2 + imtp_dsimposto + + -2 + -2 + imtp_dsabreviadaimposto + + -2 + -2 + dmit_id + + -2 + -2 + N + + + 314 + 74 + Y + + + + + dmit_id + Sequence + + Y + + 1 + + none + + + dmit_id + Y + VERTICA_JNDI + gerencial_cagepa + dmit_seq + N + + 0 + 1 + 999999999 + + + 200 + 73 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_indicador.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_indicador.ktr new file mode 100644 index 0000000..0ffcb1d --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_indicador.ktr @@ -0,0 +1,574 @@ + + + + ktr_dimen_indicador + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 12:32:52.424 + - + 2015/06/23 12:32:52.424 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Geração Automatica: 1 a 2 Onde o valor de 'NAO SE APLICA' SERÁ 2 + 73 + 135 + 230 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERA TABELATable outputY + + + GERA TABELA + DataGrid + + Y + + 1 + + none + + + + + dmind_id + Integer + + + + + -1 + -1 + N + + + dsindicador + String + + + + + -1 + -1 + N + + + online + String + + + + + -1 + -1 + N + + + icdebitoconta + String + + + + + -1 + -1 + N + + + + 1SIMOnlineDébito Automatico + 2NÃONão OnlineNormal + + + + 80 + 48 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_indicador
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 205 + 66 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_leitura_anormalidade.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_leitura_anormalidade.ktr new file mode 100644 index 0000000..e1a184f --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_leitura_anormalidade.ktr @@ -0,0 +1,730 @@ + + + + ktr_dimen_leitura_anormalidade + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 38 + 141 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmlsa_idchave primariaY + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_leitura_anormalidade
+ VERTICA_JNDI + 100 + Y + + + ltan_id + ltan_id + + + data_atual + date_de + date_ate + + + ltan_dsleituraanormalidade + ltan_dsleituraanormalidade + Insert + + + ltan_idanormalidadeinformada + ltan_idanormalidadeinformada + Insert + + + ltan_dsleituraanormalidadeinformada + ltan_dsleituraanormalidadeinformada + Insert + + + dmla_id + + sequence + N + version + + + dmla_seq + 1900 + 2199 + 5000 + N + N + none + + + + 397 + 175 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 274 + 176 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmla_id + + -2 + -2 + ltan_id + + -2 + -2 + ltan_dsleituraanormalidade + + -2 + -2 + ltan_idanormalidadeinformada + + -2 + -2 + ltan_dsleituraanormalidadeinformada + + -2 + -2 + N + dmla_id + dmla_id + Integer + -2 + 0 + + false + + + false + + + + + + ltan_id + ltan_id + Integer + 9 + 0 + + false + + + false + + + + + + ltan_dsleituraanormalidade + ltan_dsleituraanormalidade + String + 25 + -2 + + false + + + false + + + + + + ltan_idanormalidadeinformada + ltan_idanormalidadeinformada + Integer + 9 + 0 + + false + + + false + + + + + + ltan_dsleituraanormalidadeinformada + ltan_dsleituraanormalidadeinformada + String + 25 + -2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmla_id + Y + VERTICA_JNDI + gerencial_cagepa + dmla_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmlsa_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as ltan_id , 'NAO SE APLICA ' AS ltan_dsleituraanormalidade , 9999 AS ltan_idanormalidadeinformada , 'NAO SE APLICA ' as ltan_dsleituraanormalidadeinformada union SELECT a.ltan_id AS ltan_id , a.ltan_dsleituraanormalidade , 9999 AS ltan_idanormalidadeinformada , 'NAO SE APLICA ' as ltan_dsleituraanormalidadeinformada FROM gsan_admin.leitura_anormalidade a UNION SELECT 9999 as ltan_id , 'NAO SE APLICA ' AS ltan_dsleituraanormalidade , b.ltan_id as ltan_idanormalidadeinformada , b.ltan_dsleituraanormalidade as ltan_dsleituraanormalidadeinformada FROM gsan_admin.leitura_anormalidade b UNION SELECT a.ltan_id AS ltan_id , a.ltan_dsleituraanormalidade , b.ltan_id as ltan_idanormalidadeinformada , b.ltan_dsleituraanormalidade as ltan_dsleituraanormalidadeinformada FROM gsan_admin.leitura_anormalidade a left join gsan_admin.leitura_anormalidade b on 1=1 + 0 + + N + N + N + + + 48 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_leitura_situacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_leitura_situacao.ktr new file mode 100644 index 0000000..a3d123e --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_leitura_situacao.ktr @@ -0,0 +1,682 @@ + + + + ktr_dimen_leitura_situacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 40 + 138 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmls_idchave primariaY + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_leitura_situacao
+ VERTICA_JNDI + 100 + Y + + + ltst_id + ltst_id + + + data_atual + date_de + date_ate + + + ltst_dsleiturasituacao + ltst_dsleiturasituacao + Insert + + + dmls_id + + sequence + N + version + + + dmls_seq + 1900 + 2199 + 5000 + N + N + none + + + + 487 + 172 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 364 + 173 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmls_id + + -2 + -2 + ltst_id + + -2 + -2 + ltst_dsleiturasituacao + + -2 + -2 + N + dmls_id + dmls_id + Integer + -2 + 0 + + false + + + false + + + + + + ltst_id + ltst_id + Integer + 9 + 0 + + false + + + false + + + + + + ltst_dsleiturasituacao + ltst_dsleiturasituacao + String + 30 + -2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmls_id + Y + VERTICA_JNDI + gerencial_cagepa + dmls_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmls_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 as ltst_id , 'NAO SE APLICA' AS ltst_dsleiturasituacao UNION SELECT ltst_id , ltst_dsleiturasituacao FROM gsan_admin.leitura_situacao + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_localizacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_localizacao.ktr new file mode 100644 index 0000000..6930e4a --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_localizacao.ktr @@ -0,0 +1,1843 @@ + + + + ktr_dimen_localizacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + CaernProducao10.18.240.918081clusterEncrypted 2be98afc86aa7f2e4cb1aa265cd86aac8YN + localhost127.0.0.18081clusterEncrypted 2be98afc86aa7f2e4cb1aa265cd86aac8YN + Caern192.168.64.2208081clusterEncrypted 2be98afc86aa7f2e4cb1aa265cd86aac8YN + Caern Producao10.18.240.918081clusterEncrypted 2be98afc86aa7f2e4cb1aa265cd86aac8YN + + + + - + 2012/02/15 10:52:58.313 + - + 2012/02/15 10:52:58.313 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + foi adicionado uma linha coom todos os IDs forma null com 9999 e não se aplica Foi feita combinação direcionada a cliente onde vem stcm, qdra, arti, rota onde é adicionada a combinação 1 + 70 + 165 + 586 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + Boldro + localhost + POSTGRESQL + Native + total_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_transacional + 186.215.202.154 + POSTGRESQL + Native + gsan_comercial_caern + 6000 + oncase + Encrypted 2be98afc86aa7f2aba51aaf63fbc8fe88 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + ceuma_dw_local + localhost + POSTGRESQL + Native + ceuma_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + ceuma_dw_sqlserver + localhost + MSSQL + Native + ceuma_dw + 1433 + sa + Encrypted 2be98afc86aa7f2e4a417ad71cd97fe88 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + MSSQL_DOUBLE_DECIMAL_SEPARATORN + PORT_NUMBER1433 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + compesa + localhost + MYSQL + Native + compesa_staging + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + compesa_dw + localhost + MYSQL + Native + compesa_dw + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + compesa_staging + localhost + MYSQL + Native + compesa_staging + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + computador_victor + 192.168.70.1 + MYSQL + Native + compesa_staging + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + hibloc + localhost + MYSQL + Native + hibernate + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + ibr_dw + 127.0.0.1 + POSTGRESQL + Native + ibr_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + IPAD-COMPESA + 192.168.64.240 + ORACLE + Native + GSAN240b + 1521 + SYSTEM + Encrypted 2be98afc86aa7f2e4cb79a162df91a3df + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + koerich_dw + localhost + POSTGRESQL + Native + koerich_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + localhost + localhost + POSTGRESQL + Native + total_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + maquina_rodolfo + 172.17.1.45 + FIREBIRD + Native + ibr_dw + 3050 + sysdba + Encrypted 2be98afc86aa7f2e4cb79ce71d487abdb + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3050 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + maquina_sofia + 192.168.7.110 + POSTGRESQL + Native + total_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + mssql_carga_pentaho + 192.168.0.219 + MSSQL + Native + dadosmp10 + 1433 + consulta2 + Encrypted 2be98afc86aa7f287a417bd65d286ae88 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + MSSQL_DOUBLE_DECIMAL_SEPARATORN + PORT_NUMBER1433 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + mssql_neurotech + localhost + MSSQL + Native + ONCASE_ORIGEM_CARTEIRA + 1433 + sa + Encrypted 2be98afc86aa7f2e4a417ad71cd97fe88 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + MSSQL_DOUBLE_DECIMAL_SEPARATORN + PORT_NUMBER1433 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + ne_dw + localhost + MYSQL + Native + ne_dw + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + neurotech_dw + localhost + MYSQL + Native + neurotech_dw + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + NORDESTE + 10.0.0.51 + ORACLE + Native + nsvprd1 + 1521 + siga + Encrypted 2be98afc86aa7f2e4cb79ce10cd9ba8db + + + + + EXTRA_OPTION_ORACLE.defaultFetchSize500 + EXTRA_OPTION_ORACLE.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + nsv_transacional + 10.0.0.90 + ORACLE + Native + nsvprdt2 + 1521 + oncasebi + Encrypted 2be98afc86aa7f2e4a417ad71cd97add3 + + sgo + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + pentaho_olap + localhost + MYSQL + Native + pentaho_olap + 3999 + pentaho + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3999 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + pentaho_oltp + localhost + MYSQL + Native + pentaho_oltp + 3999 + pentaho + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3999 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + teste + localhost + POSTGRESQL + Native + total_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + teste2 + localhost + POSTGRESQL + Native + total_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_dimensional + localhost + MYSQL + Native + total_dw + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_dw + localhost + MYSQL + Native + total_dw + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_dw_lucid + localhost + LucidDB + Native + total_dw + 8034 + sa + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER8034 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_dw_postgre + localhost + POSTGRESQL + Native + total_dw + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_POSTGRESQL.defaultFetchSize500 + EXTRA_OPTION_POSTGRESQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_dw_postgres_localhost + localhost + POSTGRESQL + JNDI + total_dw_pg + 5432 + postgres + Encrypted + + + + + EXTRA_OPTION_POSTGRESQL.defaultFetchSize500 + EXTRA_OPTION_POSTGRESQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_lucid + localhost + LucidDB + Native + total_dw + 8034 + sa + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER8034 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + g_gerencia_regionalCalculatorY + Select valuesSelect values 2Y + Select values 2Table outputY + Calculatordmlo_idY + dmlo_idSelect valuesY + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + + + 217 + 89 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 445 + 89 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 9 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 50 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 9 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 50 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 9 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 50 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 9 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 50 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 9 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 9 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 50 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 9 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 9 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 50 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 9 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 50 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 9 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 4 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 50 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 9 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 50 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + -2 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 50 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 559 + 89 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + Y + N + N + N + N + + N + Y + N + + Y + N + dmlo_id + + + + + 673 + 89 + Y + + + + + dmlo_id + Sequence + + Y + + 1 + + none + + + dmlo_id + N + VERTICA_JNDI + gerencial_cagepa + dmlo_seq + Y + + 0 + 1 + 999999999 + + + 331 + 89 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + select gr.greg_id, greg_nmregional, un.uneg_id, uneg_nmunidadenegocio, lo.loca_id, lo.loca_nmlocalidade, lo.loca_cdelo, elo.loca_nmlocalidade as loca_nmlocalidadeelo, 9999 as stcm_id, 9999 as stcm_cdsetorcomercial, 'NAO SE APLICA' as stcm_nmsetorcomercial, 9999 as qdra_id, 9999 as qdra_nnquadra, 0 as arti_id, 'NAO INFORMADO' as arti_dsarea, 9999 as rota_id, 9999 as rota_cdrota, 99 as ftgr_id, now() as data_atual, 'dimen_localizacao' as tbgeracao from gsan_admin.gerencia_regional gr inner join gsan_admin.unidade_negocio un on un.greg_id = gr.greg_id inner join gsan_admin.localidade lo on lo.uneg_id = un.uneg_id inner join gsan_admin.localidade elo on elo.loca_id = lo.loca_cdelo UNION select 9999 AS greg_id, 'NAO SE APLICA' AS greg_nmregional, 9999 AS uneg_id, 'NAO SE APLICA' AS uneg_nmunidadenegocio, 9999 AS loca_id, 'NAO SE APLICA' AS loca_nmlocalidade, 9999 AS loca_cdelo, 'NAO SE APLICA' AS loca_nmlocalidadeelo, 9999 AS stcm_id, 9999 AS stcm_cdsetorcomercial, 'NAO SE APLICA' AS stcm_nmsetorcomercial, 9999 AS qdra_id, 9999 AS qdra_nnquadra, 0 as arti_id, 'NAO INFORMADO' as arti_dsarea , 9999 AS rota_id, 9999 AS rota_cdrota, 99 AS ftgr_id ,now() as data_atual ,'dimen_localizacao' as tbgeracao UNION select gr.greg_id, greg_nmregional, un.uneg_id, un.uneg_nmunidadenegocio, lo.loca_id, lo.loca_nmlocalidade, lo.loca_cdelo, elo.loca_nmlocalidade as loca_nmlocalidadeelo, sc.stcm_id, stcm_cdsetorcomercial, stcm_nmsetorcomercial, qd.qdra_id, qd.qdra_nnquadra, case when qd.arti_id is null then 0 else qd.arti_id END as arti_id, case when qd.arti_id is not null then arti_dsarea else 'NAO INFORMADO' END as arti_dsarea , rt.rota_id, rota_cdrota, ftgr_id ,now() as data_atual ,'dimen_localizacao' as tbgeracao from gsan_admin.gerencia_regional gr inner join gsan_admin.localidade lo on gr.greg_id = lo.greg_id inner join gsan_admin.localidade elo on elo.loca_id = lo.loca_cdelo inner join gsan_admin.unidade_negocio un on un.uneg_id = lo.uneg_id inner join gsan_admin.setor_comercial sc on lo.loca_id = sc.loca_id inner join gsan_admin.quadra qd on qd.stcm_id = sc.stcm_id inner join gsan_admin.rota rt on rt.rota_id = qd.rota_id left join gsan_admin.area_tipo atp on atp.arti_id = qd.arti_id + 0 + + N + N + N + + + 103 + 89 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_medicao_tipo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_medicao_tipo.ktr new file mode 100644 index 0000000..5328d9b --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_medicao_tipo.ktr @@ -0,0 +1,682 @@ + + + + ktr_dimen_medicao_tipo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 37 + 148 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmmt_idchave primariaY + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_medicao_tipo
+ VERTICA_JNDI + 100 + Y + + + medt_id + medt_id + + + data_atual + date_de + date_ate + + + medt_dsmedicaotipo + medt_dsmedicaotipo + Insert + + + dmmt_id + + sequence + N + version + + + dmmt_seq + 1900 + 2199 + 5000 + N + N + none + + + + 463 + 172 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 340 + 173 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmmt_id + + -2 + -2 + medt_id + + -2 + -2 + medt_dsmedicaotipo + + -2 + -2 + N + dmmt_id + dmmt_id + Integer + -2 + 0 + + false + + + false + + + + + + medt_id + medt_id + Integer + 9 + 0 + + false + + + false + + + + + + medt_dsmedicaotipo + medt_dsmedicaotipo + String + 25 + -2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmmt_id + Y + VERTICA_JNDI + gerencial_cagepa + dmmt_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmmt_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 AS medt_id , 'NAO SE APLICA' AS medt_dsmedicaotipo UNION SELECT medt_id , medt_dsmedicaotipo FROM gsan_admin.medicao_tipo + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_motivo_encerramento.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_motivo_encerramento.ktr new file mode 100644 index 0000000..424f819 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_motivo_encerramento.ktr @@ -0,0 +1,757 @@ + + + + ktr_dimen_motivo_encerramento + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmme_idchave primariaY + chave primariaSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_motivo_encerramento
+ VERTICA_JNDI + 100 + Y + + + amen_id + amen_id + + + data_atual + date_de + date_ate + + + amen_dsmotivoencerramento + amen_dsmotivoencerramento + Insert + + + amen_dsabreviado + amen_dsabreviado + Insert + + + amen_icuso + amen_icuso + Insert + + + amen_icexecucao + amen_icexecucao + Insert + + + amen_icduplicidade + amen_icduplicidade + Insert + + + dmme_id + + sequence + N + version + + + dmme_seq + 1900 + 2199 + 5000 + N + N + none + + + + 470 + 157 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 347 + 158 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + amen_id + + -2 + -2 + amen_dsmotivoencerramento + + -2 + -2 + amen_dsabreviado + + -2 + -2 + amen_icuso + + -2 + -2 + amen_icexecucao + + -2 + -2 + amen_icduplicidade + + -2 + -2 + dmme_id + + -2 + -2 + N + amen_id + amen_id + None + 9 + 0 + + false + + + false + + + + + + amen_dsmotivoencerramento + amen_dsmotivoencerramento + None + 100 + -2 + + false + + + false + + + + + + amen_dsabreviado + amen_dsabreviado + None + 100 + -2 + + false + + + false + + + + + + amen_icuso + amen_icuso + None + 9 + 0 + + false + + + false + + + + + + amen_icexecucao + amen_icexecucao + None + 9 + 0 + + false + + + false + + + + + + amen_icduplicidade + amen_icduplicidade + None + 9 + 0 + + false + + + false + + + + + + dmme_id + dmme_id + None + -2 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmme_id + Y + VERTICA_JNDI + gerencial_cagepa + dmme_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmme_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 AS amen_id , 'NAO SE APLICA' AS amen_dsmotivoencerramento , 'N/A' AS amen_dsabreviado , 2 AS amen_icuso , 2 AS amen_icexecucao , 2 AS amen_icduplicidade union all SELECT amen_id AS amen_id -- Id do Motivo de Encerramento ,amen_dsmotivoencerramento AS amen_dsmotivoencerramento -- DESCRICAO , coalesce (amen_dsabreviado, 'N/A') AS amen_dsabreviado -- Descricao Abreviada ,amen_icuso AS amen_icuso -- Indicador de Uso: SIM = 1, NAO = 2 ,'2' AS amen_icexecucao-- Indicador de EXECUCAO : SIM = 1, NAO = 2 ,'2' AS amen_icduplicidade-- Indicador de DUPLICIDADE : SIM = 1, NAO = 2 FROM gsan_admin.atendimento_motivo_encrto M + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_motivo_nao_entrega_documento.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_motivo_nao_entrega_documento.ktr new file mode 100644 index 0000000..5e18fb1 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_motivo_nao_entrega_documento.ktr @@ -0,0 +1,730 @@ + + + + ktr_dimen_motivo_nao_entrega_documento + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + motivo_nao_entrega_documentodmmned_idY + dmmned_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_motivo_nao_entrega_documento
+ VERTICA_JNDI + 100 + Y + + + mned_id + mned_id + + + data_atual + date_de + date_ate + + + mned_dsmotivonaoeentregadocume + mned_dsmotivonaoeentregadocume + Insert + + + mned_dsabreviado + mned_dsabreviado + Insert + + + mned_icuso + mned_icuso + Insert + + + dmmned_id + + sequence + N + version + + + dmmned_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 336 + 64 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + mned_id + + -2 + -2 + mned_dsmotivonaoeentregadocume + + -2 + -2 + mned_dsabreviado + + -2 + -2 + mned_icuso + + -2 + -2 + dmmned_id + + -2 + -2 + N + mned_id + mned_id + Integer + 15 + 0 + + false + + + false + + + + + + mned_dsmotivonaoeentregadocume + mned_dsmotivonaoeentregadocume + String + 250 + -2 + + false + + + false + + + + + + mned_dsabreviado + mned_dsabreviado + String + 250 + -2 + + false + + + false + + + + + + mned_icuso + mned_icuso + Integer + 15 + 0 + + false + + + false + + + + + + dmmned_id + dmmned_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmmned_id + Sequence + + Y + + 1 + + none + + + dmmned_id + Y + VERTICA_JNDI + gerencial_cagepa + dmmned_seq + N + + 1 + 1 + 999999999 + + + 160 + 80 + Y + + + + + motivo_nao_entrega_documento + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 0 as mned_id , 'NAO SE APLICA' AS mned_dsmotivonaoeentregadocume , 'N/A' AS mned_dsabreviado , 2 AS mned_icuso union SELECT mned_id , mned_dsmotivonaoeentregadocume , mned_dsabreviado , mned_icuso FROM gsan_admin.motivo_nao_entrega_documento ORDER BY 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_pagamento_situacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_pagamento_situacao.ktr new file mode 100644 index 0000000..458008c --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_pagamento_situacao.ktr @@ -0,0 +1,761 @@ + + + + ktr_dimen_pagamento_situacao + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + "Casos de NULL recebera o 9999 INDICADORES recebera 2" + 29 + 153 + 180 + 57 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmps_id//Script hereY + //Script hereSelect valuesY + Pagamento_situacaodmps_idY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + //Script here + ScriptValueMod + + N + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var pgst_icuso_desc if(pgst_icuso==1){ pgst_icuso_desc="ATIVO"} else{ pgst_icuso_desc="INATIVO"}; + pgst_icuso_desc + pgst_icuso_desc + String + -1 + -1 + N + + + 415 + 73 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_pagamento_situacao
+ VERTICA_JNDI + 100 + Y + + + pgst_id + pgst_id + + + data_atual + date_de + date_ate + + + pgst_dspagamentosituacao + pgst_dspagamentosituacao + Insert + + + pgst_dsabreviado + pgst_dsabreviado + Insert + + + pgst_icuso + pgst_icuso + Insert + + + pgst_icuso_desc + pgst_icuso_desc + Insert + + + dmps_id + + sequence + N + version + + + dmps_seq + 1900 + 2199 + 5000 + N + N + none + + + + 653 + 170 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 530 + 171 + Y + + + + + Pagamento_situacao + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as pgst_id , 'NAO SE APLICA' AS pgst_dspagamentosituacao , 'N/A' AS pgst_dsabreviado , 9999 AS pgst_icuso union SELECT pgst_id , pgst_dspagamentosituacao , pgst_dsabreviado , pgst_icuso FROM gsan_admin.pagamento_situacao + 0 + + N + N + N + + + 48 + 48 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + pgst_id + + -2 + -2 + pgst_dspagamentosituacao + + -2 + -2 + pgst_dsabreviado + + -2 + -2 + pgst_icuso + + -2 + -2 + pgst_icuso_desc + + -2 + -2 + dmps_id + + -2 + -2 + N + pgst_id + pgst_id + Integer + 9 + 0 + + false + + + false + + + + + + pgst_dspagamentosituacao + pgst_dspagamentosituacao + String + 50 + -2 + + false + + + false + + + + + + pgst_dsabreviado + pgst_dsabreviado + String + 50 + -2 + + false + + + false + + + + + + pgst_icuso + pgst_icuso + Integer + 9 + 0 + + false + + + false + + + + + + pgst_icuso_desc + pgst_icuso_desc + String + 50 + -2 + + false + + + false + + + + + + dmps_id + dmps_id + Integer + -2 + 0 + + false + + + false + + + + + + + + 517 + 78 + Y + + + + + dmps_id + Sequence + + Y + + 1 + + none + + + dmps_id + Y + VERTICA_JNDI + gerencial_cagepa + dmps_seq + N + + 0 + 1 + 999999999 + + + 308 + 73 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_percentual_coleta.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_percentual_coleta.ktr new file mode 100644 index 0000000..91f43a1 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_percentual_coleta.ktr @@ -0,0 +1,620 @@ + + + + ktr_dimen_percentual_coleta + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Geração Automatica: 0,0 a 100,00 Onde o valor de 'NAO SE APLICA ' SERÁ ID 1 (0,0) + 32 + 144 + 275 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmpc_pccoleta dmpc_idY + dmpc_idSelect valuesY + Select valuesdmpc_outputY + + + Select values + SelectValues + + Y + + 1 + + none + + + dmpc_id + + -2 + -2 + dmpc_pccoleta + + -2 + -2 + N + dmpc_id + dmpc_id + Integer + -2 + 0 + + false + + + false + + + + + + dmpc_pccoleta + dmpc_pccoleta + Number + 9 + 2 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmpc_id + Sequence + + Y + + 1 + + none + + + dmpc_id + N + VERTICA_JNDI + gerencial + dmpc_seq + Y + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmpc_output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_percentual_coleta
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 340 + 79 + Y + + + + + dmpc_pccoleta + TableInput + + Y + + 1 + + none + + + comercial_gsan + select generate_series(0,100,10) as dmpc_pccoleta + 0 + + N + N + N + + + 48 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_percentual_esgoto.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_percentual_esgoto.ktr new file mode 100644 index 0000000..46e4142 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_percentual_esgoto.ktr @@ -0,0 +1,620 @@ + + + + ktr_percentual_esgoto + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Geração Automatica: 0,0 a 100,00 Onde o valor de 'NAO SE APLICA ' SERÁ ID 1 (0,0) + 35 + 145 + 275 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmpe_pcesgotodmpe_idY + dmpe_idSelect valuesY + Select valuesdmpe_outputY + + + Select values + SelectValues + + Y + + 1 + + none + + + dmpe_id + + -2 + -2 + dmpe_pcesgoto + + -2 + -2 + N + dmpe_id + dmpe_id + Integer + -2 + 0 + + false + + + false + + + + + + dmpe_pcesgoto + dmpe_pcesgoto + Number + 9 + 2 + 0.00 + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmpe_id + Sequence + + Y + + 1 + + none + + + dmpe_id + N + VERTICA_JNDI + gerencial + dmpe_seq + Y + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmpe_output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_percentual_esgoto
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 340 + 79 + Y + + + + + dmpe_pcesgoto + TableInput + + Y + + 1 + + none + + + comercial_gsan + select generate_series(0,100,10) as dmpe_pcesgoto + 0 + + N + N + N + + + 48 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_recebida_mes.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_recebida_mes.ktr new file mode 100644 index 0000000..c48e386 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_recebida_mes.ktr @@ -0,0 +1,538 @@ + + + + ktr_dimen_recebida_mes + + + + Normal + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 12:32:52.424 + - + 2015/06/23 12:32:52.424 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Geração Automatica: 1 a 2 Onde o valor de 'NAO SE APLICA' SERÁ 2 + 73 + 135 + 230 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERA TABELATable outputY + + + GERA TABELA + DataGrid + + Y + + 1 + + none + + + + + dmrecm_id + Integer + + + + + -1 + -1 + N + + + recebidames + String + + + + + -1 + -1 + N + + + online + String + + + + + -1 + -1 + N + + + + 1SIMOnline + 2NÃONão Online + + + + 80 + 48 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_recebida_mes
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 205 + 66 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_servico_tipo_perfil.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_servico_tipo_perfil.ktr new file mode 100644 index 0000000..d70356d --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_servico_tipo_perfil.ktr @@ -0,0 +1,1017 @@ + + + + ktr_dimen_servico_tipo_perfil + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 64 + 178 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + servico_tipo_perfildmsvtp_idY + dmsvtp_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_servico_tipo_perfil
+ VERTICA_JNDI + 100 + Y + + + svtp_id + svtp_id + + + sptp_id + sptp_id + + + data_atual + date_de + date_ate + + + svtp_dsservicotipo + svtp_dsservicotipo + Insert + + + svtp_dsabreviado + svtp_dsabreviado + Insert + + + svtp_vlservico + svtp_vlservico + Insert + + + svtp_icpavimento + svtp_icpavimento + Insert + + + svtp_icatualizacomercial + svtp_icatualizacomercial + Insert + + + svtp_icterceirizado + svtp_icterceirizado + Insert + + + svtp_cdservicotipo + svtp_cdservicotipo + Insert + + + svtp_nntempomedioexecucao + svtp_nntempomedioexecucao + Insert + + + sptp_dsservicoperfiltipo + sptp_dsservicoperfiltipo + Insert + + + sptp_dsabreviado + sptp_dsabreviado + Insert + + + sptp_nncomponentesequipe + sptp_nncomponentesequipe + Insert + + + sptp_icveiculoproprio + sptp_icveiculoproprio + Insert + + + sptp_icuso + sptp_icuso + Insert + + + svtp_icuso + svtp_icuso + Insert + + + dmsvtp_id + + sequence + N + version + + + dmsvtp_seq + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 339 + 78 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + svtp_id + + -2 + -2 + svtp_dsservicotipo + + -2 + -2 + svtp_dsabreviado + + -2 + -2 + svtp_vlservico + + -2 + -2 + svtp_icpavimento + + -2 + -2 + svtp_icatualizacomercial + + -2 + -2 + svtp_icterceirizado + + -2 + -2 + svtp_cdservicotipo + + -2 + -2 + svtp_nntempomedioexecucao + + -2 + -2 + sptp_id + + -2 + -2 + sptp_dsservicoperfiltipo + + -2 + -2 + sptp_dsabreviado + + -2 + -2 + sptp_nncomponentesequipe + + -2 + -2 + sptp_icveiculoproprio + + -2 + -2 + sptp_icuso + + -2 + -2 + svtp_icuso + + -2 + -2 + dmsvtp_id + + -2 + -2 + N + svtp_id + svtp_id + Integer + 15 + 0 + + false + + + false + + + + + + svtp_dsservicotipo + svtp_dsservicotipo + String + 250 + -2 + + false + + + false + + + + + + svtp_dsabreviado + svtp_dsabreviado + String + 250 + -2 + + false + + + false + + + + + + svtp_vlservico + svtp_vlservico + Number + 15 + 2 + + false + + + false + + + + + + svtp_icpavimento + svtp_icpavimento + Integer + 15 + 0 + + false + + + false + + + + + + svtp_icatualizacomercial + svtp_icatualizacomercial + Integer + 15 + 0 + + false + + + false + + + + + + svtp_icterceirizado + svtp_icterceirizado + Integer + 15 + 0 + + false + + + false + + + + + + svtp_cdservicotipo + svtp_cdservicotipo + String + 1 + -2 + + false + + + false + + + + + + svtp_nntempomedioexecucao + svtp_nntempomedioexecucao + Integer + 15 + 0 + + false + + + false + + + + + + sptp_id + sptp_id + Integer + 15 + 0 + + false + + + false + + + + + + sptp_dsservicoperfiltipo + sptp_dsservicoperfiltipo + String + 250 + -2 + + false + + + false + + + + + + sptp_dsabreviado + sptp_dsabreviado + String + 250 + -2 + + false + + + false + + + + + + sptp_nncomponentesequipe + sptp_nncomponentesequipe + Integer + 15 + 0 + + false + + + false + + + + + + sptp_icveiculoproprio + sptp_icveiculoproprio + Integer + 15 + 0 + + false + + + false + + + + + + sptp_icuso + sptp_icuso + Integer + 15 + 0 + + false + + + false + + + + + + svtp_icuso + svtp_icuso + Integer + 15 + 0 + + false + + + false + + + + + + dmsvtp_id + dmsvtp_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 78 + Y + + + + + dmsvtp_id + Sequence + + Y + + 1 + + none + + + dmsvtp_id + Y + VERTICA_JNDI + gerencial_cagepa + dmsvtp_seq + N + + 1 + 1 + 999999999 + + + 160 + 64 + Y + + + + + servico_tipo_perfil + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 0 as svtp_id , 'NAO SE APLICA' AS svtp_dsservicotipo , 'N/A' AS svtp_dsabreviado , 0 AS svtp_vlservico , 1 AS svtp_icpavimento , 1 AS svtp_icatualizacomercial , 1 AS svtp_icterceirizado , 'C' AS svtp_cdservicotipo , 0 AS svtp_nntempomedioexecucao , 0 AS sptp_id , 'NAO SE APLICA' AS sptp_dsservicoperfiltipo , 'N/A' AS sptp_dsabreviado , 0 AS sptp_nncomponentesequipe , 1 AS sptp_icveiculoproprio , 2 AS sptp_icuso , 2 AS svtp_icuso union SELECT svtp_id , svtp_dsservicotipo , coalesce(svtp_dsabreviado,svtp_dsservicotipo) as svtp_dsabreviado , svtp_vlservico , svtp_icpavimento , svtp_icatualizacomercial , svtp_icterceirizado , svtp_cdservicotipo , svtp_nntempomedioexecucao , sv.sptp_id , sp.sptp_dsservicoperfiltipo , sp.sptp_dsabreviado , sp.sptp_nncomponentesequipe , sp.sptp_icveiculoproprio , sp.sptp_icuso , svtp_icuso FROM gsan_admin.servico_tipo sv inner join gsan_admin.servico_perfil_tipo sp on sv.sptp_id=sp.sptp_id order by 1 + 0 + + N + N + N + + + 54 + 77 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_situacao_agua.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_situacao_agua.ktr new file mode 100644 index 0000000..25373b8 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_situacao_agua.ktr @@ -0,0 +1,1423 @@ + + + + ktr_dimen_situacao_agua + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 25 + 155 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmsa_idchave primariaY + Select valuesSelect values 2Y + chave primaria//Script hereY + //Script hereSelect valuesY + data_atualDimension lookup/updateY + Select values 2data_atualY + + + //Script here + ScriptValueMod + + N + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var dmsa_ichidrometro_desc var dmsa_icpoco_desc var dmsa_icvolumefixadoagua_desc var dmsa_hidrometropoco_desc var dmsa_icvolumeexcedente_desc var dmsa_icligacaofaturada_desc var dmsa_lapf_icuso_desc var dmsa_last_icuso_desc var dmsa_last_icativaagua_desc var dmsa_last_icdesligadaagua_desc var dmsa_last_iccadastradaagua_desc var dmsa_last_icanaliseagua_desc if(dmsa_ichidrometro==1){ dmsa_ichidrometro_desc="COM HIDROMETRO"} else{ dmsa_ichidrometro_desc="SEM HIDROMETRO"}; if(dmsa_icpoco==1){ dmsa_icpoco_desc="COM POCO"} else{ dmsa_icpoco_desc="SEM POCO"}; if(dmsa_icvolumefixadoagua==1){ dmsa_icvolumefixadoagua_desc="COM VOLUME FIXADO AGUA"} else{ dmsa_icvolumefixadoagua_desc="SEM VOLUME FIXADO AGUA"}; if(dmsa_ichidrometropoco==1){ dmsa_hidrometropoco_desc="COM HIDROMETRO NO POCO"} else{ dmsa_hidrometropoco_desc="SEM HIDROMETRO NO POCO"}; if(dmsa_icvolumeexcedente==1){ dmsa_icvolumeexcedente_desc="COM VOLUME FIXADO EXCEDENTE"} else{ dmsa_icvolumeexcedente_desc="SEM VOLUME FIXADO EXCEDENTE"}; if(dmsa_icligacaofaturada==1){ dmsa_icligacaofaturada_desc="COM LIGACAO FATURADA"} else{ dmsa_icligacaofaturada_desc="SEM LIGACAO FATURADA"}; if(lapf_icuso==1){ dmsa_lapf_icuso_desc="PERFIL EM USO"} else{ dmsa_lapf_icuso_desc="PERFIL EM DEUSO"}; if(last_icuso==1){ dmsa_last_icuso_desc="SITUACAO AGUA EM USO"} else{ dmsa_last_icuso_desc="SITUACAO AGUA EM DEUSO"}; if(last_icativaagua==1){ dmsa_last_icativaagua_desc="LIGACAO AGUA ATIVA"} else{ dmsa_last_icativaagua_desc="LIGACAO AGUA INATIVA"}; if(last_icdesligadaagua==1){ dmsa_last_icdesligadaagua_desc="LIGACAO AGUA INATIVA"} else{ dmsa_last_icdesligadaagua_desc="LIGACAO AGUA ATIVA"}; if(last_iccadastradaagua==1){ dmsa_last_iccadastradaagua_desc="LIGACAO CADASTRADA AGUA"} else{ dmsa_last_iccadastradaagua_desc="LIGACAO NAO CADASTRA AGUA"}; if(last_icanaliseagua==1){ dmsa_last_icanaliseagua_desc="LIGACAO EM ANALISE AGUA"} else{ dmsa_last_icanaliseagua_desc="LIGACAO NAO ANALISE AGUA"}; + dmsa_ichidrometro_desc + dmsa_ichidrometro_desc + String + -1 + -1 + N + dmsa_icpoco_desc + dmsa_icpoco_desc + String + -1 + -1 + N + dmsa_icvolumefixadoagua_desc + dmsa_icvolumefixadoagua_desc + String + -1 + -1 + N + dmsa_hidrometropoco_desc + dmsa_hidrometropoco_desc + String + -1 + -1 + N + dmsa_icvolumeexcedente_desc + dmsa_icvolumeexcedente_desc + String + -1 + -1 + N + dmsa_icligacaofaturada_desc + dmsa_icligacaofaturada_desc + String + -1 + -1 + N + dmsa_lapf_icuso_desc + dmsa_lapf_icuso_desc + String + -1 + -1 + N + dmsa_last_icuso_desc + dmsa_last_icuso_desc + String + -1 + -1 + N + dmsa_last_icativaagua_desc + dmsa_last_icativaagua_desc + String + -1 + -1 + N + dmsa_last_icdesligadaagua_desc + dmsa_last_icdesligadaagua_desc + String + -1 + -1 + N + dmsa_last_iccadastradaagua_desc + dmsa_last_iccadastradaagua_desc + String + -1 + -1 + N + dmsa_last_icanaliseagua_desc + dmsa_last_icanaliseagua_desc + String + -1 + -1 + N + + + 240 + 77 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_situacao_agua
+ VERTICA_JNDI + 100 + Y + + + last_id + last_id + + + lapf_id + lapf_id + + + data_atual + date_de + date_ate + + + last_dsligacaoaguasituacao + last_dsligacaoaguasituacao + Insert + + + last_icuso + last_icuso + Insert + + + last_icativaagua + last_icativaagua + Insert + + + last_icdesligadaagua + last_icdesligadaagua + Insert + + + last_iccadastradaagua + last_iccadastradaagua + Insert + + + last_icanaliseagua + last_icanaliseagua + Insert + + + lapf_dsligacaoaguaperfil + lapf_dsligacaoaguaperfil + Insert + + + lapf_icuso + lapf_icuso + Insert + + + dmsa_ichidrometro + dmsa_ichidrometro + Insert + + + dmsa_icvolumefixadoagua + dmsa_icvolumefixadoagua + Insert + + + dmsa_icpoco + dmsa_icpoco + Insert + + + dmsa_ichidrometropoco + dmsa_ichidrometropoco + Insert + + + dmsa_icvolumeexcedente + dmsa_icvolumeexcedente + Insert + + + dmsa_icligacaofaturada + dmsa_icligacaofaturada + Insert + + + dmsa_ichidrometro_desc + dmsa_ichidrometro_desc + Insert + + + dmsa_icpoco_desc + dmsa_icpoco_desc + Insert + + + dmsa_icvolumefixadoagua_desc + dmsa_icvolumefixadoagua_desc + Insert + + + dmsa_hidrometropoco_desc + dmsa_hidrometropoco_desc + Insert + + + dmsa_icvolumeexcedente_desc + dmsa_icvolumeexcedente_desc + Insert + + + dmsa_icligacaofaturada_desc + dmsa_icligacaofaturada_desc + Insert + + + dmsa_lapf_icuso_desc + dmsa_lapf_icuso_desc + Insert + + + dmsa_last_icuso_desc + dmsa_last_icuso_desc + Insert + + + dmsa_last_icativaagua_desc + dmsa_last_icativaagua_desc + Insert + + + dmsa_last_icdesligadaagua_desc + dmsa_last_icdesligadaagua_desc + Insert + + + dmsa_last_iccadastradaagua_desc + dmsa_last_iccadastradaagua_desc + Insert + + + dmsa_last_icanaliseagua_desc + dmsa_last_icanaliseagua_desc + Insert + + + dmsa_id + + tablemax + N + version + + + + 1900 + 2199 + 5000 + N + N + none + + + + 559 + 187 + Y + + + + + Select values + SelectValues + + N + + 1 + + none + + + last_id + + -2 + -2 + last_dsligacaoaguasituacao + + -2 + -2 + last_icuso + + -2 + -2 + last_icativaagua + + -2 + -2 + last_icdesligadaagua + + -2 + -2 + last_iccadastradaagua + + -2 + -2 + last_icanaliseagua + + -2 + -2 + lapf_id + + -2 + -2 + lapf_dsligacaoaguaperfil + + -2 + -2 + lapf_icuso + + -2 + -2 + dmsa_ichidrometro + + -2 + -2 + dmsa_icvolumefixadoagua + + -2 + -2 + dmsa_icpoco + + -2 + -2 + dmsa_ichidrometropoco + + -2 + -2 + dmsa_icvolumeexcedente + + -2 + -2 + dmsa_icligacaofaturada + + -2 + -2 + dmsa_id + + -2 + -2 + dmsa_ichidrometro_desc + + -2 + -2 + dmsa_icpoco_desc + + -2 + -2 + dmsa_icvolumefixadoagua_desc + + -2 + -2 + dmsa_hidrometropoco_desc + + -2 + -2 + dmsa_icvolumeexcedente_desc + + -2 + -2 + dmsa_icligacaofaturada_desc + + -2 + -2 + dmsa_lapf_icuso_desc + + -2 + -2 + dmsa_last_icuso_desc + + -2 + -2 + dmsa_last_icativaagua_desc + + -2 + -2 + dmsa_last_icdesligadaagua_desc + + -2 + -2 + dmsa_last_iccadastradaagua_desc + + -2 + -2 + dmsa_last_icanaliseagua_desc + + -2 + -2 + N + + + 335 + 81 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + last_id + last_id + Integer + 9 + 0 + + false + + + false + + + + + + last_dsligacaoaguasituacao + last_dsligacaoaguasituacao + String + 100 + -2 + + false + + + false + + + + + + last_icuso + last_icuso + Integer + 9 + 0 + + false + + + false + + + + + + last_icativaagua + last_icativaagua + Integer + 9 + 0 + + false + + + false + + + + + + last_icdesligadaagua + last_icdesligadaagua + Integer + 9 + 0 + + false + + + false + + + + + + last_iccadastradaagua + last_iccadastradaagua + Integer + 9 + 0 + + false + + + false + + + + + + last_icanaliseagua + last_icanaliseagua + Integer + 9 + 0 + + false + + + false + + + + + + lapf_id + lapf_id + Integer + 9 + 0 + + false + + + false + + + + + + lapf_dsligacaoaguaperfil + lapf_dsligacaoaguaperfil + String + 100 + -2 + + false + + + false + + + + + + lapf_icuso + lapf_icuso + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_ichidrometro + dmsa_ichidrometro + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_icvolumefixadoagua + dmsa_icvolumefixadoagua + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_icpoco + dmsa_icpoco + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_ichidrometropoco + dmsa_ichidrometropoco + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_icvolumeexcedente + dmsa_icvolumeexcedente + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_icligacaofaturada + dmsa_icligacaofaturada + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_id + dmsa_id + Integer + 9 + 0 + + false + + + false + + + + + + dmsa_ichidrometro_desc + dmsa_ichidrometro_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_icpoco_desc + dmsa_icpoco_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_icvolumefixadoagua_desc + dmsa_icvolumefixadoagua_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_hidrometropoco_desc + dmsa_hidrometropoco_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_icvolumeexcedente_desc + dmsa_icvolumeexcedente_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_icligacaofaturada_desc + dmsa_icligacaofaturada_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_lapf_icuso_desc + dmsa_lapf_icuso_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_last_icuso_desc + dmsa_last_icuso_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_last_icativaagua_desc + dmsa_last_icativaagua_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_last_icdesligadaagua_desc + dmsa_last_icdesligadaagua_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_last_iccadastradaagua_desc + dmsa_last_iccadastradaagua_desc + String + 100 + -2 + + false + + + false + + + + + + dmsa_last_icanaliseagua_desc + dmsa_last_icanaliseagua_desc + String + 100 + -2 + + false + + + false + + + + + + + + 472 + 80 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmsa_id + Y + VERTICA_JNDI + gerencial_cagepa + dmsa_seq + N + + 1 + 1 + 999999999 + + + 143 + 80 + Y + + + + + data_atual + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 559 + 79 + Y + + + + + dmsa_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 as last_id, -- Id da Situacao de Ligacao de Agua 'NAO SE APLICA' as last_dsligacaoaguasituacao, 2 as last_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 1 as last_icativaagua, -- Indica se a situacao da ligacao de agua e de um imovel ativo 1 as last_icdesligadaagua, -- Indica se a situacao da ligacao de agua e de um imovel desligado 1 as last_iccadastradaagua, -- Indica se a situacao da ligacao de agua e de um imovel cadastrado 2 as last_icanaliseagua, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lapf_id, -- Id do Perfil de Ligacao de Agua 'NAO SE APLICA' as lapf_dsligacaoaguaperfil, 2 as lapf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 2 as dmsa_ichidrometro, 2 as dmsa_icvolumefixadoagua, 2 as dmsa_icpoco, 2 as dmsa_ichidrometropoco, 2 as dmsa_icvolumeexcedente, 2 as dmsa_icligacaofaturada union select 9999 as last_id, -- Id da Situacao de Ligacao de Agua 'NAO SE APLICA' as last_dsligacaoaguasituacao, 2 as last_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 1 as last_icativaagua, -- Indica se a situacao da ligacao de agua e de um imovel ativo 1 as last_icdesligadaagua, -- Indica se a situacao da ligacao de agua e de um imovel desligado 1 as last_iccadastradaagua, -- Indica se a situacao da ligacao de agua e de um imovel cadastrado 2 as last_icanaliseagua, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lapf_id, -- Id do Perfil de Ligacao de Agua 'NAO SE APLICA' as lapf_dsligacaoaguaperfil, 2 as lapf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 2 as dmsa_ichidrometro, 2 as dmsa_icvolumefixadoagua, 1 as dmsa_icpoco, 2 as dmsa_ichidrometropoco, 2 as dmsa_icvolumeexcedente, 2 as dmsa_icligacaofaturada union select las.last_id, -- Id da Situacao de Ligacao de Agua las.last_dsligacaoaguasituacao, las.last_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as last_icativaagua, -- Indica se a situacao da ligacao de agua e de um imovel ativo '2' as last_icdesligadaagua, -- Indica se a situacao da ligacao de agua e de um imovel desligado '2' as last_iccadastradaagua, -- Indica se a situacao da ligacao de agua e de um imovel cadastrado '2' as last_icanaliseagua, -- Indica se a situacao de ligacao de agua e do imovel em analise lap.lapf_id, lap.lapf_dsligacaoaguaperfil, lap.lapf_icuso, dmsa_ichidrometro, dmsa_icvolumefixadoagua, dmsa_icpoco, dmsa_ichidrometropoco, dmsa_icvolumeexcedente, dmsa_icligacaofaturada from gsan_admin.ligacao_agua_situacao las inner join (select 1 as dmsa_ichidrometro union select 2 ) temp1 on 1=1 inner join (select 1 as dmsa_icvolumefixadoagua union select 2 ) temp2 on 1=1 inner join (select 1 as dmsa_icpoco union select 2 ) temp3 on 1=1 inner join (select 1 as dmsa_ichidrometropoco union select 2 ) temp4 on 1=1 inner join (select 1 as dmsa_icvolumeexcedente union select 2 ) temp5 on 1=1 inner join (select 1 as dmsa_icligacaofaturada union select 2 ) temp6 on 1=1 inner join gsan_admin.ligacao_agua_perfil lap on 1=1 union select las.last_id, -- Id da Situacao de Ligacao de Agua las.last_dsligacaoaguasituacao, las.last_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as last_icativaagua, -- Indica se a situacao da ligacao de agua e de um imovel ativo '2' as last_icdesligadaagua, -- Indica se a situacao da ligacao de agua e de um imovel desligado '2' as last_iccadastradaagua, -- Indica se a situacao da ligacao de agua e de um imovel cadastrado '2' as last_icanaliseagua, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lapf_id, -- Id do Perfil de Ligacao de Agua 'NAO SE APLICA' as lapf_dsligacaoaguaperfil, 2 as lapf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 2 as dmsa_ichidrometro, 2 as dmsa_icvolumefixadoagua, 2 as dmsa_icpoco, 2 as dmsa_ichidrometropoco, 2 as dmsa_icvolumeexcedente, 2 as dmsa_icligacaofaturada from gsan_admin.ligacao_agua_situacao las union select las.last_id, -- Id da Situacao de Ligacao de Agua las.last_dsligacaoaguasituacao, las.last_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as last_icativaagua, -- Indica se a situacao da ligacao de agua e de um imovel ativo '2' as last_icdesligadaagua, -- Indica se a situacao da ligacao de agua e de um imovel desligado '2' as last_iccadastradaagua, -- Indica se a situacao da ligacao de agua e de um imovel cadastrado '2' as last_icanaliseagua, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lapf_id, -- Id do Perfil de Ligacao de Agua 'NAO SE APLICA' as lapf_dsligacaoaguaperfil, 2 as lapf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 2 as dmsa_ichidrometro, 2 as dmsa_icvolumefixadoagua, 1 as dmsa_icpoco, 2 as dmsa_ichidrometropoco, 2 as dmsa_icvolumeexcedente, 2 as dmsa_icligacaofaturada from gsan_admin.ligacao_agua_situacao las + 0 + + N + N + N + + + 32 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_situacao_esgoto.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_situacao_esgoto.ktr new file mode 100644 index 0000000..68a6e78 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_situacao_esgoto.ktr @@ -0,0 +1,1171 @@ + + + + ktr_dimen_situacao_esgoto + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 746 + 51 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmse_idchave primariaY + chave primaria//Script hereY + //Script hereSelect valuesY + Select valuesSelect values 2Y + Select values 2data_atualY + data_atualDimension lookup/updateY + + + //Script here + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here //Script here var dmse_icvolumefixadoesgoto_desc var dmse_lepf_icuso_desc var dmse_lest_icuso_desc var dmse_lest_icativaesgoto_desc var dmse_lest_icdesligadaesgoto_desc var dmse_lest_icanaliseesgoto_desc var dmse_lest_icanaliseesgoto_desc if(dmse_icvolumefixadoesgoto==1){ dmse_icvolumefixadoesgoto_desc="COM VOLUME FIXADO DE ESGOTO"} else{ dmse_icvolumefixadoesgoto_desc="SEM VOLUME FIXADO DE ESGOTO"}; if(lepf_icuso==1){ dmse_lepf_icuso_desc="PERFIL ESGOTO EM USO"} else{ dmse_lepf_icuso_desc="PERFIL ESGOTO EM DEUSO"}; if(lest_icuso==1){ dmse_lest_icuso_desc="SITUACAO ESGOTO EM USO"} else{ dmsa_lest_icuso_desc="SITUACAO ESGOTO EM DEUSO"}; if(lest_icativaesgoto==1){ dmse_lest_icativaesgoto_desc="LIGACAO ESGOTO ATIVA"} else{ dmse_lest_icativaesgoto_desc="LIGACAO ESGOTO INATIVA"}; if(lest_icdesligadaesgoto==1){ dmse_lest_icdesligadaesgoto_desc="LIGACAO ESGOTO INATIVA"} else{ dmse_lest_icdesligadaesgoto_desc="LIGACAO ESGOTO ATIVA"}; if(lest_iccadastradaesgoto==1){ dmse_lest_iccadastradaesgoto_desc="LIGACAO ESGOTO CADASTRADA "} else{ dmse_lest_iccadastradaesgoto_desc="LIGACAO ESGOTO NAO CADASTRA "}; if(lest_icanaliseesgoto==1){ dmse_lest_icanaliseesgoto_desc="LIGACAO ESGOTO EM ANALISE "} else{ dmse_lest_icanaliseesgoto_desc="LIGACAO ESGOTO NAO ANALISE "}; + dmse_icvolumefixadoesgoto_desc + dmse_icvolumefixadoesgoto_desc + String + -1 + -1 + N + dmse_lepf_icuso_desc + dmse_lepf_icuso_desc + String + -1 + -1 + N + dmse_lest_icuso_desc + dmse_lest_icuso_desc + String + -1 + -1 + N + dmse_lest_icativaesgoto_desc + dmse_lest_icativaesgoto_desc + String + -1 + -1 + N + dmse_lest_icdesligadaesgoto_desc + dmse_lest_icdesligadaesgoto_desc + String + -1 + -1 + N + dmse_lest_icanaliseesgoto_desc + dmse_lest_icanaliseesgoto_desc + String + -1 + -1 + N + + + 223 + 77 + Y + + + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_situacao_esgoto
+ VERTICA_JNDI + 100 + Y + + + lest_id + lest_id + + + lepf_id + lepf_id + + + data_atual + date_de + date_ate + + + lest_dsligacaoesgotosituacao + lest_dsligacaoesgotosituacao + Insert + + + lest_icuso + lest_icuso + Insert + + + lest_icativaesgoto + lest_icativaesgoto + Insert + + + lest_icdesligadaesgoto + lest_icdesligadaesgoto + Insert + + + lest_iccadastradaesgoto + lest_iccadastradaesgoto + Insert + + + lest_icanaliseesgoto + lest_icanaliseesgoto + Insert + + + lepf_dsligacaoesgotoperfil + lepf_dsligacaoesgotoperfil + Insert + + + lepf_icuso + lepf_icuso + Insert + + + lepf_pcesgoto + lepf_pcesgoto + Insert + + + dmse_icvolumefixadoesgoto + dmse_icvolumefixadoesgoto + Insert + + + dmse_icvlexcedente + dmse_icvlexcedente + Insert + + + dmse_icvolumefixadoesgoto_desc + dmse_icvolumefixadoesgoto_desc + Insert + + + dmse_lepf_icuso_desc + dmse_lepf_icuso_desc + Insert + + + dmse_lest_icuso_desc + dmse_lest_icuso_desc + Insert + + + dmse_lest_icativaesgoto_desc + dmse_lest_icativaesgoto_desc + Insert + + + dmse_lest_icdesligadaesgoto_desc + dmse_lest_icdesligadaesgoto_desc + Insert + + + dmse_lest_icanaliseesgoto_desc + dmse_lest_icanaliseesgoto_desc + Insert + + + dmse_id + + tablemax + N + version + + + + 1900 + 2199 + 5000 + N + N + none + + + + 480 + 176 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + lest_id + + -2 + -2 + lest_dsligacaoesgotosituacao + + -2 + -2 + lest_icuso + + -2 + -2 + lest_icativaesgoto + + -2 + -2 + lest_icdesligadaesgoto + + -2 + -2 + lest_iccadastradaesgoto + + -2 + -2 + lest_icanaliseesgoto + + -2 + -2 + lepf_id + + -2 + -2 + lepf_dsligacaoesgotoperfil + + -2 + -2 + lepf_icuso + + -2 + -2 + lepf_pcesgoto + + -2 + -2 + dmse_icvolumefixadoesgoto + + -2 + -2 + dmse_icvlexcedente + + -2 + -2 + dmse_id + + -2 + -2 + dmse_icvolumefixadoesgoto_desc + + -2 + -2 + dmse_lepf_icuso_desc + + -2 + -2 + dmse_lest_icuso_desc + + -2 + -2 + dmse_lest_icativaesgoto_desc + + -2 + -2 + dmse_lest_icdesligadaesgoto_desc + + -2 + -2 + dmse_lest_icanaliseesgoto_desc + + -2 + -2 + N + + + 302 + 75 + Y + + + + + Select values 2 + SelectValues + + N + + 1 + + none + + + N + lest_id + lest_id + Integer + 9 + 0 + + false + + + false + + + + + + lest_dsligacaoesgotosituacao + lest_dsligacaoesgotosituacao + String + 100 + -2 + + false + + + false + + + + + + lest_icuso + lest_icuso + Integer + 9 + 0 + + false + + + false + + + + + + lest_icativaesgoto + lest_icativaesgoto + Integer + 9 + 0 + + false + + + false + + + + + + lest_icdesligadaesgoto + lest_icdesligadaesgoto + Integer + 9 + 0 + + false + + + false + + + + + + lest_iccadastradaesgoto + lest_iccadastradaesgoto + Integer + 9 + 0 + + false + + + false + + + + + + lest_icanaliseesgoto + lest_icanaliseesgoto + Integer + 9 + 0 + + false + + + false + + + + + + lepf_id + lepf_id + Integer + 9 + 0 + + false + + + false + + + + + + lepf_dsligacaoesgotoperfil + lepf_dsligacaoesgotoperfil + String + 100 + -2 + + false + + + false + + + + + + lepf_icuso + lepf_icuso + Integer + 9 + 0 + + false + + + false + + + + + + lepf_pcesgoto + lepf_pcesgoto + Number + -2 + -2 + + false + + + false + + + + + + dmse_icvolumefixadoesgoto + dmse_icvolumefixadoesgoto + Integer + 9 + 0 + + false + + + false + + + + + + dmse_icvlexcedente + dmse_icvlexcedente + Integer + 9 + 0 + + false + + + false + + + + + + dmse_id + dmse_id + Integer + -2 + 0 + + false + + + false + + + + + + dmse_icvolumefixadoesgoto_desc + dmse_icvolumefixadoesgoto_desc + String + 100 + -2 + + false + + + false + + + + + + dmse_lepf_icuso_desc + dmse_lepf_icuso_desc + String + 100 + -2 + + false + + + false + + + + + + dmse_lest_icuso_desc + dmse_lest_icuso_desc + String + 100 + -2 + + false + + + false + + + + + + dmse_lest_icativaesgoto_desc + dmse_lest_icativaesgoto_desc + String + 100 + -2 + + false + + + false + + + + + + dmse_lest_icdesligadaesgoto_desc + dmse_lest_icdesligadaesgoto_desc + String + 100 + -2 + + false + + + false + + + + + + dmse_lest_icanaliseesgoto_desc + dmse_lest_icanaliseesgoto_desc + String + 100 + -2 + + false + + + false + + + + + + + + 387 + 72 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmse_id + Y + VERTICA_JNDI + gerencial_cagepa + dmse_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + data_atual + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 483 + 70 + Y + + + + + dmse_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 AS lest_id, -- Id da Situacao de Ligacao de Esgoto 'NAO SE APLICA' AS lest_dsligacaoesgotosituacao, 1 as lest_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 2 as lest_icativaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel ativo 2 as lest_icdesligadaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel desligado 2 as lest_iccadastradaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel cadastrado 1 as lest_icanaliseesgoto, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lepf_id, 'NAO SE APLICA' AS lepf_dsligacaoesgotoperfil, 1 as lepf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 0 as lepf_pcesgoto, -- pecentual 1 as dmse_icvolumefixadoesgoto, 1 as dmse_icvlexcedente union select 9999 AS lest_id, -- Id da Situacao de Ligacao de Esgoto 'NAO SE APLICA' AS lest_dsligacaoesgotosituacao, 2 as lest_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 1 as lest_icativaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel ativo 1 as lest_icdesligadaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel desligado 1 as lest_iccadastradaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel cadastrado 2 as lest_icanaliseesgoto, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lepf_id, 'NAO SE APLICA' AS lepf_dsligacaoesgotoperfil, 2 as lepf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 0 as lepf_pcesgoto, -- pecentual 2 as dmse_icvolumefixadoesgoto, 2 as dmse_icvlexcedente UNION select lest_id, lest_dsligacaoesgotosituacao, lest_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as lest_icativaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel ativo '2' as lest_icdesligadaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel desligado '2' as lest_iccadastradaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel cadastrado '2' as lest_icanaliseesgoto, -- Indica se a situacao de ligacao de agua e do imovel em analise lepf_id, lepf_dsligacaoesgotoperfil, lepf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 lepf_pcesgoto, -- pecentual DA TARIFA rele_icvolumefixado as dmse_icvolumefixadoesgoto, rece_icvlexcedente as dmse_icvlexcedente from gsan_admin.ligacao_esgoto_situacao les left join gsan_admin.ligacao_esgoto_perfil lap on 1=1 left join (select 1 as rele_icvolumefixado union all select 2) icv on 1 = 1 left join (select 1 as rece_icvlexcedente union all select 2) icvl on 1 = 1 UNION select lest_id, lest_dsligacaoesgotosituacao, lest_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as lest_icativaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel ativo '2' as lest_icdesligadaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel desligado '2' as lest_iccadastradaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel cadastrado '2' as lest_icanaliseesgoto, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lepf_id, 'NAO SE APLICA' AS lepf_dsligacaoesgotoperfil, 2 as lepf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 0 as lepf_pcesgoto, -- pecentual 2 as dmse_icvolumefixadoesgoto, 2 as dmse_icvlexcedente from gsan_admin.ligacao_esgoto_situacao les union select lest_id, lest_dsligacaoesgotosituacao, lest_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as lest_icativaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel ativo '2' as lest_icdesligadaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel desligado '2' as lest_iccadastradaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel cadastrado '2' as lest_icanaliseesgoto, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lepf_id, 'NAO SE APLICA' AS lepf_dsligacaoesgotoperfil, 2 as lepf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 0 as lepf_pcesgoto, -- pecentual 1 as dmse_icvolumefixadoesgoto, 2 as dmse_icvlexcedente from gsan_admin.ligacao_esgoto_situacao les union select lest_id, lest_dsligacaoesgotosituacao, lest_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 '2' as lest_icativaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel ativo '2' as lest_icdesligadaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel desligado '2' as lest_iccadastradaesgoto, -- Indica se a situacao da ligacao de esgoto e de um imovel cadastrado '2' as lest_icanaliseesgoto, -- Indica se a situacao de ligacao de agua e do imovel em analise 9999 AS lepf_id, 'NAO SE APLICA' AS lepf_dsligacaoesgotoperfil, 1 as lepf_icuso, -- Indicador de Uso: SIM = 1, NAO = 2 0 as lepf_pcesgoto, -- pecentual 2 as dmse_icvolumefixadoesgoto, 1 as dmse_icvlexcedente from gsan_admin.ligacao_esgoto_situacao les + 0 + + N + N + N + + + 48 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_solicitacao.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_solicitacao.ktr new file mode 100644 index 0000000..e120227 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_solicitacao.ktr @@ -0,0 +1,954 @@ + + + + ktr_dimen_solicitacao + + + + Normal + 0 + / + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + solicitaçãoStream lookupY + Table inputStream lookupY + Stream lookupFilter rowsY + Filter rowsSelect values 2Y + Filter rowsdmsol_idY + dmsol_idCalculatorY + CalculatorSelect valuesY + Select values 2Dummy (do nothing)Y + Select valuesTable outputY + + + Calculator + Calculator + + Y + + 1 + + none + + + dmsol_id +ADD +dmsol +id + +Integer +-1 +-1 +N + + + + + + + + 448 + 148 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 390 + 38 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +dmsol_id +Select values 2 + + + N + dm_id + IS NULL + + + + + + 263 + 145 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + sotp_id + + -2 + -2 + sotp_dssolicitacaotipo + + -2 + -2 + step_id + + -2 + -2 + step_dssolcttipoespec + + -2 + -2 + meso_id + + -2 + -2 + meso_dsmeiosolicitacao + + -2 + -2 + meso_dsabreviado + + -2 + -2 + meso_icuso + + -2 + -2 + dmsol_id + + -2 + -2 + N + sotp_id + sotp_id + None + 9 + 0 + + false + + + false + + + + + + sotp_dssolicitacaotipo + sotp_dssolicitacaotipo + None + 100 + -2 + + false + + + false + + + + + + step_id + step_id + None + 9 + 0 + + false + + + false + + + + + + step_dssolcttipoespec + step_dssolcttipoespec + None + 100 + -2 + + false + + + false + + + + + + meso_id + meso_id + None + 9 + 0 + + false + + + false + + + + + + meso_dsmeiosolicitacao + meso_dsmeiosolicitacao + None + 100 + -2 + + false + + + false + + + + + + meso_dsabreviado + meso_dsabreviado + None + 100 + -2 + + false + + + false + + + + + + meso_icuso + meso_icuso + None + 9 + 0 + + false + + + false + + + + + + dmsol_id + dmsol_id + None + -2 + 0 + + false + + + false + + + + + + + + 540 + 146 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + dmsol + + -2 + -2 + sotp_id + + -2 + -2 + sotp_dssolicitacaotipo + + -2 + -2 + step_id + + -2 + -2 + step_dssolcttipoespec + + -2 + -2 + meso_id + + -2 + -2 + meso_dsmeiosolicitacao + + -2 + -2 + meso_dsabreviado + + -2 + -2 + meso_icuso + + -2 + -2 + dm_id + + -2 + -2 + N + + + 277 + 41 + Y + + + + + Stream lookup + StreamLookup + + Y + + 1 + + none + + + Table input + N + Y + N + N + + + sotp_id + sotp_id + + + step_id + step_id + + + meso_id + meso_id + + + dmsol_id + dm_id + + None + + + + + 176 + 146 + Y + + + + + Table input + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT sotp_id , step_id , meso_id ,dmsol_id FROM gerencial_cagepa.dimen_solicitacao + 0 + + N + N + N + + + 176 + 43 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_solicitacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 631 + 145 + Y + + + + + dmsol_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + dmsol_seq + Y + + 1 + 1 + 999999999 + + + 367 + 148 + Y + + + + + solicitação + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT --5000 as dmsol ${max} as dmsol ,9999 AS sotp_id , 'NAO SE APLICA' AS sotp_dssolicitacaotipo , 9999 AS step_id , 'NAO SE APLICA' AS step_dssolcttipoespec , 9999 AS meso_id , 'NAO SE APLICA' AS meso_dsmeiosolicitacao , 'N/A' AS meso_dsabreviado , 2 AS meso_icuso UNION ALL SELECT --5000 as dmsol ${max} as dmsol , SOTP.sotp_id AS sotp_id -- Id do Tipo de Solicitacao ,SOTP.sotp_dssolicitacaotipo AS sotp_dssolicitacaotipo -- DESCRICAO , 9999 AS step_id , 'NAO SE APLICA' AS step_dssolcttipoespec , 9999 AS meso_id , 'NAO SE APLICA' AS meso_dsmeiosolicitacao , 'N/A' AS meso_dsabreviado , 2 AS meso_icuso FROM gsan_admin.solicitacao_tipo SOTP UNION ALL SELECT --5000 as dmsol ${max} as dmsol ,9999 AS sotp_id , 'NAO SE APLICA' AS sotp_dssolicitacaotipo ,STEP.step_id AS step_id -- Id da Solicitacao Tipo Especificacao ,STEP.step_dssolicitacaotipoespecifi AS step_dssolcttipoespec -- DESCRICAO , 9999 AS meso_id , 'NAO SE APLICA' AS meso_dsmeiosolicitacao , 'N/A' AS meso_dsabreviado , 2 AS meso_icuso FROM gsan_admin.solicitacao_tipo_especificacao STEP UNION ALL SELECT --5000 as dmsol ${max} as dmsol , 9999 AS sotp_id , 'NAO SE APLICA' AS sotp_dssolicitacaotipo , 9999 AS step_id , 'NAO SE APLICA' AS step_dssolcttipoespec , MEIO.meso_id AS meso_id -- Id do Meio de Solicitacao , MEIO.meso_dsmeiosolicitacao AS meso_dsmeiosolicitacao -- DESCRICAO , MEIO.meso_dsabreviado AS meso_dsabreviado-- Descricao Abreviada , MEIO.meso_icuso AS meso_icuso -- Indicador de Uso: SIM = 1, NAO = 2 FROM gsan_admin.meio_solicitacao MEIO UNION ALL SELECT --5000 as dmsol ${max} as dmsol ,ST.sotp_id AS sotp_id -- Id do Tipo de Solicitacao ,ST.sotp_dssolicitacaotipo AS sotp_dssolicitacaotipo -- DESCRICAO ,SE.step_id AS step_id -- Id da Solicitacao Tipo Especificacao ,SE.step_dssolicitacaotipoespecifi AS step_dssolcttipoespec-- DESCRICAO , ME.meso_id AS meso_id -- Id do Meio de Solicitacao , ME.meso_dsmeiosolicitacao AS meso_dsmeiosolicitacao -- DESCRICAO , ME.meso_dsabreviado AS meso_dsabreviado-- Descricao Abreviada , ME.meso_icuso AS meso_icuso-- Indicador de Uso: SIM = 1, NAO = 2 FROM gsan_admin.solicitacao_tipo ST left join gsan_admin.solicitacao_tipo_especificacao SE on 1=1 left join gsan_admin.meio_solicitacao ME on 1=1 + 0 + + N + Y + N + + + 48 + 144 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_tempo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_tempo.ktr new file mode 100644 index 0000000..00f3c32 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_tempo.ktr @@ -0,0 +1,3026 @@ + + + + ktr_dimen_tempo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHNID_BATCHCHANNEL_IDNCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDNLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDNLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 350 + 1 + 1 + N + Y + 5000 + N + + N + 1000 + + + + + + + + + + + 2011/05/21 14:41:03.471 + + 2007/04/04 14:37:34.671 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Geração Automatica: 1960 a 2042 Onde o valor de 'NAO SE APLICA' SERÁ ID 1 + 89 + 5 + 247 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + compesa + localhost + MYSQL + Native + compesa_staging + 3306 + root + Encrypted + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_dw_rdm + localhost + POSTGRESQL + Native + dw_rdm + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_finsol_dw_pg + localhost + POSTGRESQL + Native + dw_finsol + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_finsol_or + 200.199.20.178 + ORACLE + Native + homofb + 63112 + homologacao + Encrypted 2be98afc86aa7948da50aa17c8fc2fe8a + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER63112 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_mysql_local + 192.168.7.100 + MYSQL + Native + redmine + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_notaro_pg_local + localhost + POSTGRESQL + Native + notaro + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_pg_local + localhost + POSTGRESQL + Native + dw_rdm + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_pg_rdw_dw + + POSTGRESQL + JNDI + con_pg_local + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + con_pg_sancho + 192.168.7.100 + POSTGRESQL + Native + dw_rdm + 5432 + postgres + Encrypted 2be98afc86ad7978abf18a67f8fc0eefa + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + finsol_or_ext + 192.168.200.241 + ORACLE + JNDI + homofb + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + finsol_or_local + 192.168.200.241 + ORACLE + Native + homofb + 1521 + homologacao + Encrypted 2be98afc86aa7948da50aa17c8fc2fe8a + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + IPAD-COMPESA + 192.168.64.240 + ORACLE + Native + GSAN240b + 1521 + SYSTEM + Encrypted 2be98afc86aa7f2e4cb79a162df91a3df + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + mssql_carga_pentaho + 192.168.0.219 + MSSQL + Native + dadosmp10 + 1433 + consulta2 + Encrypted 2be98afc86aa7f287a417bd65d286ae88 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + MSSQL_DOUBLE_DECIMAL_SEPARATORN + PORT_NUMBER1433 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + notaro_pg_local + + POSTGRESQL + JNDI + notaro_pg_local + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + nsv_dw + localhost + MYSQL + Native + nsv_dw + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + nsv_transacional + 10.0.0.90 + ORACLE + Native + nsvprdt2 + 1521 + oncasebi + Encrypted 2be98afc86aa7f2e4a417ad71cd97add3 + + sgo + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + total_dw + localhost + MYSQL + Native + total_dw + 3307 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3307 + QUOTE_ALL_FIELDSN + STREAM_RESULTSY + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_lucid + 192.168.7.101 + LucidDB + Native + total_dw + 8034 + sa + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER8034 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_monet + + MONETDB + ODBC + MonetDB + -1 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + PORT_NUMBER-1 + + + + total_protheus + 192.168.0.219 + MSSQL + Native + dadosmp10 + 1433 + consulta2 + Encrypted 2be98afc86aa7f287a417bd65d286ae88 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + MSSQL_DOUBLE_DECIMAL_SEPARATORN + PORT_NUMBER1433 + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + total_stg + localhost + MYSQL + Native + total_staging + 3306 + root + Encrypted 2be98afc86aa7f2e4cb09ab7eca93a7d5 + + + + + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER3306 + QUOTE_ALL_FIELDSN + STREAM_RESULTSN + SUPPORTS_BOOLEAN_DATA_TYPEN + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gera 10000 datas AAAAMMDDGera incremento desde o primeiro diaY + Gera incremento desde o primeiro diaCalcula dataY + DayOfWeekDesc GenDayOfWeekDesc NormY + DayOfWeekDesc NormDayOfWeekDescY + MonthDesc GenMonthDesc NormY + DayOfWeekDescMonthDescY + MonthDesc NormMonthDescY + Calcula dataQuarterY + QuarterDayOfWeekDescY + rename to time...Value MapperY + MonthDescCalculatorY + CalculatorModified Java Script ValueY + Calculator 2Value Mapper 2Y + Value Mapper 2 2Value Mapper 3Y + Value MapperValue Mapper 2 2Y + Modified Java Script Valuemuda MESY + muda MESModified Java Script Value 2Y + Modified Java Script Value 2Calculator 2Y + Set field valuerename to time...Y + Value Mapper 2Add constantsY + Add constantsSet field valueY + Value Mapper 3Modified Java Script Value 3Y + Modified Java Script Value 3Select valuesY + Select valuesdimen_tempoY + + + Add constants + Constant + + Y + + 1 + + none + + + + + data_string_br + Date + + + + + + -1 + -1 + N + + + + + 698 + 171 + Y + + + + + Calcula data + Calculator + + Y + + 1 + + none + + + one +CONSTANT +1 + + +Integer +1 +0 +Y +0 +. +, + + + four +CONSTANT +4 + + +Integer +1 +0 +Y +0 +. +, + + + Date +ADD_DAYS +START_DAY +Days_Since + +Date +-1 +-1 +N + + + + + + Year +YEAR_OF_DATE +Date + + +Integer +4 +0 +N +0 +. +, + + + Month +MONTH_OF_DATE +Date + + +Integer +2 +0 +N +0 +. +, + + + DayOfYear +DAY_OF_YEAR +Date + + +Integer +3 +0 +N +0 +. +, + + + DayOfMonth +DAY_OF_MONTH +Date + + +Integer +2 +0 +N +0 +. +, + + + DayOfWeek +DAY_OF_WEEK +Date + + +Integer +1 +0 +N +0 +. +, + + + WeekOfYear +WEEK_OF_YEAR +Date + + +Integer +2 +0 +N +0 +. +, + + + date_tk +ADD +Days_Since +one + +Integer +1 +0 +N +0 +. +, + + + + + 41 + 304 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + data_string +COPY_FIELD +Date + + +String +-1 +-1 +N +yyyyMMdd + + + + + anomes +COPY_FIELD +Date + + +String +-1 +-1 +N +yyyyMM + + + + + + + 539 + 302 + Y + + + + + Calculator 2 + Calculator + + Y + + 1 + + none + + + semanaMes +COPY_FIELD +Date + + +String +-1 +-1 +N +W + + + + + + + 706 + 326 + Y + + + + + DayOfWeekDesc + StreamLookup + + Y + + 1 + + none + + + DayOfWeekDesc Norm + N + N + N + N + + + DayOfWeek + DayNr + + + DayDesc + DayOfWeekDesc + + String + + + DayDescShort + DayOfWeekShortDesc + + String + + + + + 298 + 304 + Y + + + + + DayOfWeekDesc Gen + RowGenerator + + Y + + 1 + + none + + + + + DayNr1 + Integer + + + + + 2 + 1 + 0 + N + + + DayDesc1 + String + + + + + Segunda + 30 + 0 + N + + + DayDescShort1 + String + + + + + SEG + 3 + 0 + N + + + DayNr2 + Integer + + + + + 3 + 1 + 0 + N + + + DayDesc2 + String + + + + + Terca + 30 + 0 + N + + + DayDescShort2 + String + + + + + TER + 3 + 0 + N + + + DayNr3 + Integer + + + + + 4 + 1 + 0 + N + + + DayDesc3 + String + + + + + Quarta + 30 + 0 + N + + + DayDescShort3 + String + + + + + QUA + 3 + 0 + N + + + DayNr4 + Integer + + + + + 5 + 1 + 0 + N + + + DayDesc4 + String + + + + + Quinta + 30 + 0 + N + + + DayDescShort4 + String + + + + + QUI + 3 + 0 + N + + + DayNr5 + Integer + + + + + 6 + 1 + 0 + N + + + DayDesc5 + String + + + + + Sexta + 30 + 0 + N + + + DayDescShort5 + String + + + + + SEX + 3 + 0 + N + + + DayNr6 + Integer + + + + + 7 + 1 + 0 + N + + + DayDesc6 + String + + + + + Sabado + 30 + 0 + N + + + DayDescShort6 + String + + + + + SAB + 3 + 0 + N + + + DayNr7 + Integer + + + + + 1 + 1 + 0 + N + + + DayDesc7 + String + + + + + Domingo + 30 + 0 + N + + + DayDescShort7 + String + + + + + DOM + 3 + 0 + N + + + 1 + N + + + + + + 299 + 60 + Y + + + + + DayOfWeekDesc Norm + Normaliser + + Y + + 1 + + none + + + typefield + DayNr1 + 1 + DayNr + DayDesc1 + 1 + DayDesc + DayDescShort1 + 1 + DayDescShort + DayNr2 + 2 + DayNr + DayDesc2 + 2 + DayDesc + DayDescShort2 + 2 + DayDescShort + DayNr3 + 3 + DayNr + DayDesc3 + 3 + DayDesc + DayDescShort3 + 3 + DayDescShort + DayNr4 + 4 + DayNr + DayDesc4 + 4 + DayDesc + DayDescShort4 + 4 + DayDescShort + DayNr5 + 5 + DayNr + DayDesc5 + 5 + DayDesc + DayDescShort5 + 5 + DayDescShort + DayNr6 + 6 + DayNr + DayDesc6 + 6 + DayDesc + DayDescShort6 + 6 + DayDescShort + DayNr7 + 7 + DayNr + DayDesc7 + 7 + DayDesc + DayDescShort7 + 7 + DayDescShort + + + 298 + 158 + Y + + + + + Gera 10000 datas AAAAMMDD + RowGenerator + + Y + + 1 + + none + + + + + START_DAY + Date + yyyyMMdd + + + + 19600101 + -1 + -1 + N + + + 30000 + N + + + + + + 32 + 32 + Y + + + + + Gera incremento desde o primeiro dia + Sequence + + Y + + 1 + + none + + + Days_since + N + + + SEQ_ + Y + + 0 + 1 + 10000000 + + + 41 + 150 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + + 0 + Script 1 + var mesTrimestre = -(((quarter - 1) *3 ) - Month) var quinzena = (DayOfMonth>15) ? "Segunda Quinzena" : "Primeira Quinzena"; + mesTrimestre + mesTrimestre + Integer + -1 + -1 + N + quinzena + quinzena + String + 25 + -1 + N + + + 51 + 432 + Y + + + + + Modified Java Script Value 2 + ScriptValueMod + + Y + + 1 + + none + + + N + + 0 + Script 1 + //Script here if ( undefined === semanaNumeroAlternativa){ var semanaNumeroAlternativa = 1; }else{ if(sequenciaMesAno == 1){ semanaNumeroAlternativa = 1; }else if(DayOfWeekDesc.equals('Domingo')){ semanaNumeroAlternativa = semanaNumeroAlternativa + 1; } } + semanaNumeroAlternativa + semanaNumeroAlternativa + Number + 16 + 2 + N + + + 507 + 427 + Y + + + + + Modified Java Script Value 3 + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + var txt1 = diaNumero; var txt2 = diaSemanaAbrev; var txt3 = " - "; var stringConcatenated = null; stringConcatenated = txt1 + txt3 + txt2; + stringConcatenated + diaSemanadiaAbrev + String + 8 + -1 + N + + + 961 + 90 + Y + + + + + MonthDesc + StreamLookup + + Y + + 1 + + none + + + MonthDesc Norm + N + N + N + N + + + Month + MonthNr + + + MonthDesc + MonthDesc + + String + + + MonthDescShort + MonthShortDesc + + String + + + + + 428 + 304 + Y + + + + + MonthDesc Gen + RowGenerator + + Y + + 1 + + none + + + + + desc1 + String + + + + + Janeiro + 30 + 0 + N + + + short1 + String + + + + + JAN + 3 + 0 + N + + + desc2 + String + + + + + Fevereiro + 30 + 0 + N + + + short2 + String + + + + + FEV + 3 + 0 + N + + + desc3 + String + + + + + Marco + 30 + 0 + N + + + short3 + String + + + + + MAR + 3 + 0 + N + + + desc4 + String + + + + + Abril + 30 + 0 + N + + + short4 + String + + + + + ABR + 3 + 0 + N + + + desc5 + String + + + + + Maio + 30 + 0 + N + + + short5 + String + + + + + MAI + 3 + 0 + N + + + desc6 + String + + + + + Junho + 30 + 0 + N + + + short6 + String + + + + + JUN + 3 + 0 + N + + + desc7 + String + + + + + Julho + 30 + 0 + N + + + short7 + String + + + + + JUL + 3 + 0 + N + + + desc8 + String + + + + + Agosto + 30 + 0 + N + + + short8 + String + + + + + AGO + 3 + 0 + N + + + desc9 + String + + + + + Setembro + 30 + 0 + N + + + short9 + String + + + + + SET + 3 + 0 + N + + + desc10 + String + + + + + Outubro + 30 + 0 + N + + + short10 + String + + + + + OUT + 3 + 0 + N + + + desc11 + String + + + + + Novembro + 30 + 0 + N + + + short11 + String + + + + + NOV + 3 + 0 + N + + + desc12 + String + + + + + Dezembro + 30 + 0 + N + + + short12 + String + + + + + DEZ + 3 + 0 + N + + + 1 + N + + + + + + 429 + 60 + Y + + + + + MonthDesc Norm + Normaliser + + Y + + 1 + + none + + + MonthNr + desc1 + 1 + MonthDesc + desc2 + 2 + MonthDesc + desc3 + 3 + MonthDesc + desc4 + 4 + MonthDesc + desc5 + 5 + MonthDesc + desc6 + 6 + MonthDesc + desc7 + 7 + MonthDesc + desc8 + 8 + MonthDesc + desc9 + 9 + MonthDesc + desc10 + 10 + MonthDesc + desc11 + 11 + MonthDesc + desc12 + 12 + MonthDesc + short1 + 1 + MonthDescShort + short2 + 2 + MonthDescShort + short3 + 3 + MonthDescShort + short4 + 4 + MonthDescShort + short5 + 5 + MonthDescShort + short6 + 6 + MonthDescShort + short7 + 7 + MonthDescShort + short8 + 8 + MonthDescShort + short9 + 9 + MonthDescShort + short10 + 10 + MonthDescShort + short11 + 11 + MonthDescShort + short12 + 12 + MonthDescShort + + + 428 + 158 + Y + + + + + Quarter + ValueMapper + + Y + + 1 + + none + + + month + quarter + + + + 1 + 1 + + + 2 + 1 + + + 3 + 1 + + + 4 + 2 + + + 5 + 2 + + + 6 + 2 + + + 7 + 3 + + + 8 + 3 + + + 9 + 3 + + + 10 + 4 + + + 11 + 4 + + + 12 + 4 + + + + + 159 + 304 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + N + id_tempo + dmtp_id + None + 1 + 0 + + false + + + false + + + + + + data + data + None + -2 + -2 + + false + + + false + + + + + + ano + ano + None + 4 + 0 + + false + + + false + + + + + + mesNumero + mesNumero + None + 2 + 0 + + false + + + false + + + + + + diaNumero + diaNumero + None + 2 + 0 + + false + + + false + + + + + + diaSemanaNum + diaSemanaNum + None + 1 + 0 + + false + + + false + + + + + + diaSemana + diaSemana + None + 30 + -2 + + false + + + false + + + + + + diaSemanaAbrev + diaSemanaAbrev + None + 3 + -2 + + false + + + false + + + + + + mesNome + mesNome + None + 30 + -2 + + false + + + false + + + + + + mesAbrev + mesAbrev + None + 3 + -2 + + false + + + false + + + + + + trimestre + trimestre + None + 1 + -2 + + false + + + false + + + + + + data_string + data_string + None + -2 + -2 + + false + + + false + + + + + + mesTrimestre + mesTrimestre + None + -2 + 0 + + false + + + false + + + + + + quinzena + quinzena + None + 25 + -2 + + false + + + false + + + + + + semanaMes + semanaMes + None + -2 + -2 + + false + + + false + + + + + + semanaNome + semanaNome + None + 9 + -2 + + false + + + false + + + + + + trimestreAbrev + trimestreAbrev + None + 7 + -2 + + false + + + false + + + + + + semestreNum + semestreNum + Integer + 1 + -2 + + false + + + false + + + + + + semestreNome + semestreNome + None + 11 + -2 + + false + + + false + + + + + + data_string_br + data_string_br + None + -2 + -2 + + false + + + false + + + + + + diaSemanadiaAbrev + diaSemanadiaAbrev + String + 8 + -2 + + false + + + false + + + + + + anomes + anomes + None + -2 + -2 + + false + + + false + + + + + + + + 961 + 18 + Y + + + + + Set field value + SetValueField + + Y + + 1 + + none + + + + + data_string_br + Date + + + + + 803 + 192 + Y + + + + + Value Mapper + ValueMapper + + Y + + 1 + + none + + + trimestre + trimestreAbrev + + + + 1 + 1.Trim. + + + 2 + 2.Trim. + + + 3 + 3.Trim. + + + 4 + 4.Trim. + + + + + 959 + 307 + Y + + + + + Value Mapper 2 + ValueMapper + + Y + + 1 + + none + + + semanaMes + semanaNome + + + + 1 + 1.Semana + + + 2 + 2.Semana + + + 3 + 3.Semana + + + 4 + 4.Semana + + + 5 + 5.Semana + + + 6 + 6.Semana + + + + + 622 + 201 + Y + + + + + Value Mapper 2 2 + ValueMapper + + Y + + 1 + + none + + + trimestre + semestreNum + + + + 1 + 1 + + + 2 + 1 + + + 3 + 2 + + + 4 + 2 + + + + + 962 + 241 + Y + + + + + Value Mapper 3 + ValueMapper + + Y + + 1 + + none + + + semestreNum + semestreNome + + + + 1 + 1.Semestre + + + 2 + 2.Semestre + + + + + 964 + 157 + Y + + + + + dimen_tempo + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_tempo
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 849 + 18 + Y + + + + + muda MES + FieldsChangeSequence + + Y + + 1 + + none + + + 1 + 1 + sequenciaMesAno + + + Month + + + Year + + + + + 247 + 432 + Y + + + + + rename to time... + SelectValues + + Y + + 1 + + none + + + date_tk + id_tempo + -2 + -2 + Date + data + -2 + -2 + Year + ano + -2 + -2 + Month + mesNumero + -2 + -2 + DayOfMonth + diaNumero + -2 + -2 + DayOfWeek + diaSemanaNum + -2 + -2 + DayOfWeekDesc + diaSemana + -2 + -2 + DayOfWeekShortDesc + diaSemanaAbrev + -2 + -2 + MonthDesc + mesNome + -2 + -2 + MonthShortDesc + mesAbrev + -2 + -2 + Quarter + trimestre + -2 + -2 + data_string + + -2 + -2 + mesTrimestre + + -2 + -2 + quinzena + + -2 + -2 + semanaMes + + -2 + -2 + semanaNome + + -2 + -2 + semanaNumeroAlternativa + semanaNumeroInicioDomingo + -2 + -2 + data_string_br + + -2 + -2 + anomes + + -2 + -2 + N + semanaNumeroInicioDomingo + semanaNumeroInicioDomingo + Integer + -2 + -2 + + false + + + false + + + + + + data_string_br + data_string_br + String + -2 + -2 + dd/MM/yy + false + + + false + + + + + + + + 833 + 306 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_tipo_consumo.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_tipo_consumo.ktr new file mode 100644 index 0000000..0bc4c3c --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_tipo_consumo.ktr @@ -0,0 +1,706 @@ + + + + ktr_dimen_tipo_consumo + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/10 15:05:31.633 + - + 2015/06/10 15:05:31.633 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Casos de NULL recebera o 9999 INDICADORES recebera 2 + 95 + 184 + 175 + 42 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + g_consumo_tipodmtc_idY + dmtc_idSelect valuesY + Get System InfoDimension lookup/updateY + Select valuesGet System InfoY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_tipo_consumo
+ VERTICA_JNDI + 100 + Y + + + cstp_id + cstp_id + + + data_atual + date_de + date_ate + + + cstp_dsconsumotipo + cstp_dsconsumotipo + Insert + + + dmtc_id + + sequence + N + version + + + dmtc_seq + 1900 + 2199 + 5000 + N + N + none + + + + 622 + 119 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 499 + 120 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmtc_id + + -2 + -2 + cstp_id + + -2 + -2 + cstp_dsconsumotipo + + -2 + -2 + N + dmtc_id + dmtc_id + Integer + -2 + 0 + + false + + + false + + + + + + cstp_id + cstp_id + Integer + 9 + 0 + + false + + + false + + + + + + cstp_dsconsumotipo + cstp_dsconsumotipo + String + 20 + -2 + + false + + + false + + + + + + + + 391 + 118 + Y + + + + + dmtc_id + Sequence + + Y + + 1 + + none + + + dmtc_id + Y + VERTICA_JNDI + gerencial_cagepa + dmtc_seq + N + + 1 + 1 + 999999999 + + + 253 + 122 + Y + + + + + g_consumo_tipo + TableInput + + Y + + 1 + + none + + + comercial_gsan + select 9999 AS cstp_id, 'NAO SE APLICA' AS cstp_dsconsumotipo UNION select cstp_id, cstp_dsconsumotipo FROM gsan_admin.consumo_tipo + 0 + + N + N + N + + + 112 + 96 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_unidade_organizacional.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_unidade_organizacional.ktr new file mode 100644 index 0000000..9abaac6 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_unidade_organizacional.ktr @@ -0,0 +1,701 @@ + + + + ktr_dimen_unidade_organizacional + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/04 09:58:57.650 + - + 2015/06/04 09:58:57.650 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Foi adotado o valor 9999 para os valores nulos. + 40 + 157 + 255 + 26 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dmuo_idchave primariaY + chave primariaGet System InfoY + Get System InfoSelect valuesY + Select valuesDimension lookup/updateY + + + Dimension lookup/update + DimensionLookup + + Y + + 1 + + none + + + gerencial_cagepa +
dimen_unidade_organizacional
+ VERTICA_JNDI + 100 + Y + + + unid_id + unid_id + + + data_atual + date_de + date_ate + + + unid_dsunidade + unid_dsunidade + Insert + + + dmuo_id + + sequence + N + version + + + dmuo_seq + 1900 + 2199 + 5000 + N + N + none + + + + 464 + 80 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 240 + 80 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmuo_id + + -2 + -2 + unid_id + + -2 + -2 + unid_dsunidade + + -2 + -2 + data_atual + + -2 + -2 + N + dmuo_id + dmuo_id + Integer + -2 + 0 + + false + + + false + + + + + + unid_id + unid_id + Integer + 9 + 0 + + false + + + false + + + + + + unid_dsunidade + unid_dsunidade + String + 80 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + -2 + -2 + + false + + + false + + + + + + + + 320 + 80 + Y + + + + + chave primaria + Sequence + + Y + + 1 + + none + + + dmuo_id + Y + VERTICA_JNDI + gerencial_cagepa + dmuo_seq + N + + 1 + 1 + 999999999 + + + 144 + 77 + Y + + + + + dmuo_id + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT 9999 as unid_id, '9999 - N/A' as unid_dsunidade UNION ALL SELECT unid_id , unid_id || ' - ' || unid_dsunidade FROM gsan_admin.unidade_organizacional order by 1 + 0 + + N + N + N + + + 48 + 48 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_dimen_usuario.ktr b/gerencial_pentaho-master/PDI/ktr_dimen_usuario.ktr new file mode 100644 index 0000000..4eb8d56 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_dimen_usuario.ktr @@ -0,0 +1,673 @@ + + + + ktr_dimen_usuario + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/07/24 09:32:07.155 + - + 2015/07/24 09:32:07.155 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + COMERCIAL CAERN + 192.168.64.243 + POSTGRESQL + Native + gsan_comercial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Table inputChave PrimáriaY + Chave PrimáriaSelect valuesY + Select valuesDimensao UsuarioY + + + Chave Primária + Sequence + + Y + + 1 + + none + + + dmus_id + N + VERTICA_JNDI + gerencial + dmus_seq + Y + + 1 + 1 + 999999999 + + + 400 + 100 + Y + + + + + Dimensao Usuario + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_usuario
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 800 + 100 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmus_id + + -2 + -2 + usur_id + + -2 + -2 + usur_nmusuario + + -2 + -2 + utip_id + + -2 + -2 + func_id + + -2 + -2 + usur_nmlogin + + -2 + -2 + usur_dsemail + + -2 + -2 + unid_id + + -2 + -2 + usur_nncpf + + -2 + -2 + usur_tmultimaalteracao + + -2 + -2 + N + + + 600 + 100 + Y + + + + + Table input + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT usur_id ,usur_nmusuario ,utip_id ,func_id ,usur_nmlogin ,usur_dsemail ,unid_id ,usur_nncpf ,usur_tmultimaalteracao FROM gsan_admin.usuario order by usur_id + 0 + + N + N + N + + + 192 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_coleta_esgoto.ktr b/gerencial_pentaho-master/PDI/ktr_fato_coleta_esgoto.ktr new file mode 100644 index 0000000..b1853f5 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_coleta_esgoto.ktr @@ -0,0 +1,1880 @@ + + + + ktr_fato_coleta_esgoto + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 5000 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempoY + lookup_tempolookup_tipo_consumoY + localidadelookup_localizacaoY + lookup_situacao_agualookup_localizacaoY + lookup_localizacaolookup_tempoY + un_resumo_coleta_esgotolookup_cliente_tipoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + dimen_tipo_consumolookup_tipo_consumoY + lookup_tipo_consumolookup_faturamento_situacaoY + dimen_faturamento_situacaolookup_faturamento_situacaoY + dimen_percentual_coletalookup_percentual_coletaY + dimen_percentual_esgotolookup_percentual_esgotoY + lookup_percentual_coletalookup_percentual_esgotoY + lookup_faturamento_situacaolookup_percentual_coletaY + rece_idCalculatorY + lookup_percentual_esgotorece_idY + CalculatorSelect valuesY + Select valuesSelect values 2Y + Select values 2fato_coleta_esgotoY + + + Calculator + Calculator + + Y + + 1 + + none + + + rece_id +ADD +rece +id + +Integer +-1 +-1 +N + + + + + + + + 432 + 256 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + rece_amreferencia + + -2 + -2 + rece_qtligacoes + + -2 + -2 + rece_voesgoto + + -2 + -2 + rece_qteconomias + + -2 + -2 + rece_consumo_minimo + + -2 + -2 + rece_vofaturado + + -2 + -2 + rece_voexcedente + + -2 + -2 + rece_vofaturadoesgotomedido + + -2 + -2 + rece_vofaturadoesgotonaomedido + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmtc_id + + -2 + -2 + dmfs_id + + -2 + -2 + dmpc_id + + -2 + -2 + dmpe_id + + -2 + -2 + rece_id + + -2 + -2 + N + + + 352 + 256 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + rece_amreferencia + rece_amreferencia + Integer + 6 + -2 + + false + + + false + + + + + + rece_qtligacoes + rece_qtligacoes + Integer + 15 + 0 + + false + + + false + + + + + + rece_voesgoto + rece_voesgoto + Number + 15 + 2 + + false + + + false + + + + + + rece_qteconomias + rece_qteconomias + Number + 15 + 2 + + false + + + false + + + + + + rece_consumo_minimo + rece_consumo_minimo + Number + 15 + 2 + + false + + + false + + + + + + rece_vofaturado + rece_vofaturado + Number + 15 + 2 + + false + + + false + + + + + + rece_voexcedente + rece_voexcedente + Number + 15 + 2 + + false + + + false + + + + + + rece_vofaturadoesgotomedido + rece_vofaturadoesgotomedido + Number + 15 + 2 + + false + + + false + + + + + + rece_vofaturadoesgotonaomedido + rece_vofaturadoesgotonaomedido + Number + 15 + 2 + + false + + + false + + + + + + dmct_id + dmct_id + Integer + 15 + 0 + + false + + + false + + + + + + dmpt_id + dmpt_id + Integer + 15 + 0 + + false + + + false + + + + + + dmse_id + dmse_id + Integer + 15 + 0 + + false + + + false + + + + + + dmgr_id + dmgr_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcs_id + dmcs_id + Integer + 15 + 0 + + false + + + false + + + + + + dmsa_id + dmsa_id + Integer + 15 + 0 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + 0 + + false + + + false + + + + + + dmtp_id + dmtp_id + Integer + 15 + 0 + + false + + + false + + + + + + dmtc_id + dmtc_id + Integer + 15 + 0 + + false + + + false + + + + + + dmfs_id + dmfs_id + Integer + 15 + 0 + + false + + + false + + + + + + dmpc_id + dmpc_id + Integer + 15 + 0 + + false + + + false + + + + + + dmpe_id + dmpe_id + Integer + 15 + 0 + + false + + + false + + + + + + rece_id + rece_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 288 + 256 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 178 + 35 + Y + + + + + dimen_faturamento_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmfs_id , dmfs_icfaturamento , dmfs_icfaturamento_desc , ftst_id , ftst_dsfaturamentosituacaotipo , ftsm_id , ftsm_dsfatsitmotivo FROM gerencial_cagepa.dimen_faturamento_situacao + 0 + + N + N + N + + + 1048 + 330 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 616 + 35 + Y + + + + + dimen_percentual_coleta + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpc_id , dmpc_pccoleta FROM gerencial_cagepa.dimen_percentual_coleta + 0 + + N + N + N + + + 899 + 332 + Y + + + + + dimen_percentual_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpe_id , dmpe_pcesgoto FROM gerencial_cagepa.dimen_percentual_esgoto + 0 + + N + N + N + + + 754 + 331 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada , dmsa_icligacaofaturada_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc , dmse_icvlexcedente FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 478 + 22 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + dimen_tipo_consumo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtc_id , cstp_id , cstp_dsconsumotipo FROM gerencial_cagepa.dimen_tipo_consumo + 0 + + N + N + N + + + 1200 + 319 + Y + + + + + fato_coleta_esgoto + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_coleta_esgoto
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + fato_id + + + + + 192 + 256 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 173 + 135 + Y + + + + + lookup_faturamento_situacao + StreamLookup + + Y + + 1 + + none + + + dimen_faturamento_situacao + N + Y + N + N + + + ftst_id + ftst_id + + + ftsm_id + ftsm_id + + + rece_icligacaofaturada + dmfs_icfaturamento + + + dmfs_id + dmfs_id + + None + + + + + 1044 + 239 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1072 + 142 + Y + + + + + lookup_percentual_coleta + StreamLookup + + Y + + 1 + + none + + + dimen_percentual_coleta + N + Y + N + N + + + rece_pccoleta + dmpc_pccoleta + + + dmpc_id + dmpc_id + + None + + + + + 895 + 238 + Y + + + + + lookup_percentual_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_percentual_esgoto + N + Y + N + N + + + rece_pcesgoto + dmpe_pcesgoto + + + dmpe_id + dmpe_id + + None + + + + + 761 + 242 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + Y + N + + + last_id + last_id + + + lapf_id + lapf_id + + + rece_ichidrometro + dmsa_ichidrometro + + + rece_icpoco + dmsa_icpoco + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + rece_icvolumeexcedente + dmse_icvlexcedente + + + dmse_id + dmse_id + + None + + + + + 484 + 137 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rece_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + lookup_tipo_consumo + StreamLookup + + Y + + 1 + + none + + + dimen_tipo_consumo + N + Y + N + N + + + cstp_id + cstp_id + + + dmtc_id + dmtc_id + + None + + + + + 1193 + 238 + Y + + + + + rece_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + rele_seq + Y + + 1 + 1 + 999999999 + + + 496 + 256 + Y + + + + + un_resumo_coleta_esgoto + TableInput + + N + + 1 + + none + + + comercial_gsan + ------------------------------------------- ----------- QUERY PRINCIPAL---------------- --------RESUMO Coleta Esgoto---------- ------------VERSAO 05/fev/2016------------- Select --0 AS rece ${max} as rece --------------------------------------------------------------------------------------------------- -- dimen_tempo ,cast(c.cshi_amfaturamento as char(6)) as rece_amreferencia -- ANO/MES DE REFERENCIA DO FATURAMENTO --,i.imov_id --------------------------------------------------------------------------------------------------- --dimen_localizacao ,coalesce(c.rota_id,9999) as rota_id -- ID DA ROTA (TABELA ROTA) --,i.rota_id -- Id da rota do imovel ,coalesce(loca.greg_id,9999) as greg_id , coalesce(loca.uneg_id,9999) as uneg_id ,coalesce(i.loca_id,9999) as loca_id-- ID DA LOCALIDADE (TABELA LOCALIDADE) ,coalesce(i.stcm_id,9999) as stcm_id -- ID DO SETOR COMERCIAL (TABELA SETOR_COMERCIAL) - OBRIGATORIO ,coalesce(i.qdra_id,9999) as qdra_id -- ID DA QUADRA (TABELA QUADRA) ,coalesce(i.stcm_cdsetorcomercial,9999) as stcm_cdsetorcomercial -- CODIGO DO SETOR COMERCIAL. ,coalesce(i.qdra_nnquadra,9999) as qdra_nnquadra -- NUMERO DA QUADRA. ,coalesce(loca.loca_cdelo,9999) as loca_cdelo --------------------------------------------------------------------------------------------------- --dimen_situacao_agua ,coalesce(i.last_id ,9999) as last_id-- ID DA SITUACAO DA LIGACAO DE AGUA (TABELA LIGACAO_AGUA_SITUACAO) - OBRIGATORIO ,CASE WHEN c.cshi_nnconsumofaturadomes> consumo. consumo_minimo_ligacao THEN 1 ELSE 2 END as rece_icvolumeexcedente ,CASE WHEN cnta.cnta_id IS NOT NULL or cnhi.cnta_id IS NOT NULL THEN 1 ELSE 2 END AS rece_icligacaofaturada ,CASE WHEN la.hidi_id IS NOT NULL THEN 1 ELSE 2 END as rece_ichidrometro ,CASE WHEN i.hidi_id IS NOT NULL THEN 1 ELSE 2 END as rece_ichidrometropoco ,CASE WHEN coalesce(i.poco_id,0) > 1 THEN 1 ELSE 2 END as rece_icpoco ,CASE WHEN coalesce(la.lagu_nnconsumominimoagua,0) > 0 THEN 1 ELSE 2 END as rece_icvolumefixadoagua ,CASE WHEN la.lapf_id IS NULL THEN 9999 ELSE la.lapf_id END as lapf_id --------------------------------------------------------------------------------------------------- --dimen_situacao_esgoto ,coalesce(i.lest_id,9999) as lest_id-- ID DA SITUACAO DA LIGACAO DE ESGOTO (TABELA LIGACAO_ESGOTO_SITUACAO) - OBRIGATORIO ,CASE WHEN coalesce(le.lesg_nnconsumominimoesgoto,0) > 0 THEN 1 ELSE 2 END as rece_icvolumefixadoesgoto ,CASE WHEN le.lepf_id IS NULL THEN 9999 ELSE le.lepf_id END as lepf_id --------------------------------------------------------------------------------------------------- --dimen_perfil_imovel_tarifa ,coalesce(i.iper_id,9999) as iper_id-- ID DO PERFIL DO IMOVEL (TABELA IMOVEL_PERFIL) - OBRIGATORIO ,coalesce(i.cstf_id,9999) as cstf_id-- ID DO tarifa consumo (TABELA IMOVEL_PERFIL) - OBRIGATORIO --------------------------------------------------------------------------------------------------- --dimen_geografia ,coalesce(i.bair_id,9999) as bair_id-- ID DO BAIRRO (TABELA BAIRRO) ,coalesce(b.muni_id ,9999) as muni_id-- CODIGO MUNICIPIO AO QUAL O BAIRRO ESTA INSERIDO (TABELA MUNICIPIO) --------------------------------------------------------------------------------------------------- --dimen_cliente_tipo ,CASE WHEN ep.epod_id IS NOT NULL THEN ep.epod_id ELSE 9999 END as epod_id , CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 9999 END as cltp_id ,now() as rece_tmultimaalteracao --------------------------------------------------------------------------------------------------- -- dimen_categoria_subcategoria -------------RECUPERA A CATEGORIA PRINCIPAL (a de maior número de economia)------------------------------------------------------------------- , (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = i.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id -------------RECUPERA A SUBCATEGORIA PRINCIPAL (a de maior número de economia)------------------------------------------------------------------- , (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = i.imov_id order by imsb_qteconomia desc limit 1) as scat_id ---------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- --dimen_tipo_consumo ,coalesce(cstp_id,9999) as cstp_id-- ID DO TIPO DE CONSUMO (TABELA CONSUMO_TIPO) --- dimen_faturamento_situacao-------------------------------------------------------------------- ,coalesce(c.ftst_id,9999) as ftst_id , coalesce(i.ftsm_id, 9999) as ftsm_id ------------------------------dimen_percentual_coleta--------------------- ,coalesce(c.cshi_pccoleta,0) as rece_pccoleta ----------------------------dimen_percentual_esgoto---------------------- ,coalesce(le.LESG_PCESGOTO,0) AS rece_pcesgoto ----------------------------------------Medidas --------------------------------------------------------------------------------------------------- ,COUNT( c.imov_id) as rece_qtligacoes-- ID DO IMOVEL (TABELA IMOVEL) ,SUM(c.cshi_nnconsumofaturadomes) as rece_voesgoto -- CONSUMO FATURADO NO MES ,SUM(i.imov_qteconomia) as rece_qteconomias ,sum(consumo. consumo_minimo_ligacao) as rece_consumo_minimo ,SUM (CASE WHEN consumo. consumo_minimo_ligacao> c.cshi_nnconsumofaturadomes THEN consumo. consumo_minimo_ligacao ELSE c.cshi_nnconsumofaturadomes END) AS rece_vofaturado ,SUM(CASE WHEN c.cshi_nnconsumofaturadomes> consumo. consumo_minimo_ligacao THEN (c.cshi_nnconsumofaturadomes - consumo. consumo_minimo_ligacao) ELSE 0 END) AS rece_voexcedente ,SUM(CASE WHEN C.cstp_id not in(6,12) THEN (CASE WHEN consumo. consumo_minimo_ligacao> c.cshi_nnconsumofaturadomes THEN consumo. consumo_minimo_ligacao ELSE c.cshi_nnconsumofaturadomes END ) ELSE 0 END) AS rece_vofaturadoesgotomedido ,SUM(CASE WHEN C.cstp_id in(6,12) THEN (CASE WHEN consumo. consumo_minimo_ligacao> c.cshi_nnconsumofaturadomes THEN consumo. consumo_minimo_ligacao ELSE c.cshi_nnconsumofaturadomes END ) ELSE 0 END) AS rece_vofaturadoesgotonaomedido FROM gsan_admin.consumo_historico c INNER JOIN gsan_admin.imovel i ON c.imov_id=i.imov_id and i.imov_icexclusao = 2 INNER JOIN gsan_admin.bairro b ON i.bair_id=b.bair_id INNER JOIN gsan_admin.localidade loca ON i.loca_id = loca.loca_id INNER JOIN gsan_admin.sistema_parametros ON 1=1 LEFT JOIN gsan_admin.ligacao_agua la ON i.imov_id = la.lagu_id LEFT JOIN gsan_admin.ligacao_esgoto le ON i.imov_id = le.lesg_id ----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- INNER JOIN gsan_admin.cliente_imovel cir ON i.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente ci ON ci.clie_id = cir.clie_id INNER JOIN gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id INNER JOIN gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id LEFT JOIN gsan_admin.conta cnta ON i.imov_id=cnta.imov_id AND cnta.dcst_idatual in(0,1,2) AND cnta.cnta_amreferenciaconta=c.cshi_amfaturamento LEFT JOIN gsan_admin.conta_historico cnhi ON i.imov_id=cnhi.imov_id AND cnhi.dcst_idatual in(0,1,2) AND cnhi.cnhi_amreferenciaconta=c.cshi_amfaturamento inner join (SELECT i.imov_id ,sum(cstc_nnconsumominimo * imsb.imsb_qteconomia ) consumo_minimo_ligacao FROM gsan_admin.imovel i INNER JOIN gsan_admin.imovel_subcategoria imsb on i.imov_id=imsb.imov_id inner join gsan_admin.subcategoria scat on imsb.scat_id=scat.scat_id inner join gsan_admin.consumo_tarifa_categoria cstc on scat.catg_id=cstc.catg_id and cstv_id = (select max(cstv_id) from gsan_admin.consumo_tarifa_vigencia tv where tv.cstf_id = i.cstf_id) group by 1 ) as consumo on i.imov_id=consumo.imov_id where c.lgti_id=2 and c.cshi_amfaturamento=parm_amreferenciafaturamento -1 --and i.imov_id in(11211601, 11264101,23407369,36205249) group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 + 0 + + N + Y + N + + + 48 + 208 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_consumo_agua.ktr b/gerencial_pentaho-master/PDI/ktr_fato_consumo_agua.ktr new file mode 100644 index 0000000..446a651 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_consumo_agua.ktr @@ -0,0 +1,1357 @@ + + + + ktr_fato_consumo_agua + + + + Normal + 0 + / + + + amreferencia + 000000 + + + + max + 5000 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempoY + lookup_tempolookup_tipo_consumoY + Select valuesfato_consumo_aguaY + localidadelookup_localizacaoY + lookup_situacao_agualookup_localizacaoY + lookup_localizacaolookup_tempoY + un_resumo_consumo_agualookup_cliente_tipoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + dimen_tipo_consumolookup_tipo_consumoY + reca_idCalculatorY + CalculatorSelect valuesY + lookup_tipo_consumoreca_idY + + + Calculator + Calculator + + Y + + 1 + + none + + + reca_id +ADD +reca +id + +Integer +-1 +-1 +N + + + + + + + + 912 + 368 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + reca_amreferencia + + -2 + -2 + reca_qtligacoes + + -2 + -2 + reca_qtligacoes_com_hidrometro + + -2 + -2 + reca_qtligacoes_com_medicao_real + + -2 + -2 + reca_qtligacoes_com_hidrometro_e_medicao_estimada + + -2 + -2 + reca_consumoagua + + -2 + -2 + reca_consumoagua_com_hidrometro + + -2 + -2 + reca_consumoagua_com_medicao_real + + -2 + -2 + reca_consumoagua_com_hidrometro_e_medicao_estimada + + -2 + -2 + reca_qteconomias + + -2 + -2 + reca_qteconomias_com_hidrometro + + -2 + -2 + reca_qteconomias_com_medicao_real + + -2 + -2 + reca_qteconomias_com_hidrometro_e_medicao_estimada + + -2 + -2 + reca_consumo_minimo + + -2 + -2 + reca_voconsumofaturado + + -2 + -2 + reca_vofaturadoaguamedido + + -2 + -2 + reca_vofaturadoaguanaomedido + + -2 + -2 + reca_consumoexcedente + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmtc_id + + -2 + -2 + reca_id + + -2 + -2 + imov_id + + -2 + -2 + N + + + 832 + 368 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 189 + 36 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 616 + 35 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada , dmsa_icligacaofaturada_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 478 + 22 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + dimen_tipo_consumo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtc_id , cstp_id , cstp_dsconsumotipo FROM gerencial_cagepa.dimen_tipo_consumo + 0 + + N + N + N + + + 1062 + 240 + Y + + + + + fato_consumo_agua + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_consumo_agua
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + + + + + + 688 + 368 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 188 + 135 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1072 + 142 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + N + N + + + last_id + last_id + + + lapf_id + lapf_id + + + reca_ichidrometro + dmsa_ichidrometro + + + reca_icvolumeexcedente + dmsa_icvolumeexcedente + + + reca_icligacaofaturada + dmsa_icligacaofaturada + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 484 + 137 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + reca_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + lookup_tipo_consumo + StreamLookup + + Y + + 1 + + none + + + dimen_tipo_consumo + N + Y + N + N + + + cstp_id + cstp_id + + + dmtc_id + dmtc_id + + None + + + + + 1193 + 238 + Y + + + + + reca_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + rele_seq + Y + + 1 + 1 + 999999999 + + + 976 + 368 + Y + + + + + un_resumo_consumo_agua + TableInput + + N + + 1 + + none + + + comercial_gsan + ------------------------------------------- ----------- QUERY PRINCIPAL---------------- --------RESUMO consumo agua ---------- ------------VERSAO 05/fev/2016------------- Select --0 AS reca ${max} as reca --------------------------------------------------------------------------------------------------- -- dimen_tempo ,cast(c.cshi_amfaturamento as char(6)) as reca_amreferencia -- ANO/MES DE REFERENCIA DO FATURAMENTO ,i.imov_id --------------------------------------------------------------------------------------------------- --dimen_localizacao ,coalesce(c.rota_id,9999) as rota_id -- ID DA ROTA (TABELA ROTA) --,i.rota_id -- Id da rota do imovel ,coalesce(loca.greg_id,9999) as greg_id ,coalesce(loca.uneg_id,9999) as uneg_id ,coalesce(i.loca_id,9999) as loca_id-- ID DA LOCALIDADE (TABELA LOCALIDADE) ,coalesce(i.stcm_id,9999) as stcm_id -- ID DO SETOR COMERCIAL (TABELA SETOR_COMERCIAL) - OBRIGATORIO ,coalesce(i.qdra_id,9999) as qdra_id -- ID DA QUADRA (TABELA QUADRA) ,coalesce(i.stcm_cdsetorcomercial,9999) as stcm_cdsetorcomercial -- CODIGO DO SETOR COMERCIAL. ,coalesce(i.qdra_nnquadra,9999) as qdra_nnquadra -- NUMERO DA QUADRA. ,coalesce(loca.loca_cdelo,9999) as loca_cdelo --------------------------------------------------------------------------------------------------- --dimen_situacao_agua ,coalesce(i.last_id ,9999) as last_id-- ID DA SITUACAO DA LIGACAO DE AGUA (TABELA LIGACAO_AGUA_SITUACAO) - OBRIGATORIO ,CASE WHEN c.cshi_nnconsumofaturadomes> consumo. consumo_minimo_ligacao THEN 1 ELSE 2 END as reca_icvolumeexcedente --,CASE WHEN cnta.cnta_id IS NOT NULL or cnhi.cnta_id IS NOT NULL THEN 1 ELSE 2 END AS reca_icligacaofaturada ,c.cshi_icfaturamento AS reca_icligacaofaturada ,CASE WHEN la.hidi_id IS NOT NULL THEN 1 ELSE 2 END as reca_ichidrometro ,CASE WHEN i.hidi_id IS NOT NULL THEN 1 ELSE 2 END as reca_ichidrometropoco ,CASE WHEN coalesce(i.poco_id,0) > 1 THEN 1 ELSE 2 END as reca_icpoco ,CASE WHEN coalesce(la.lagu_nnconsumominimoagua,0) > 0 THEN 1 ELSE 2 END as reca_icvolumefixadoagua ,CASE WHEN la.lapf_id IS NULL THEN 9999 ELSE la.lapf_id END as lapf_id --------------------------------------------------------------------------------------------------- --dimen_situacao_esgoto ,coalesce(i.lest_id,9999) as lest_id-- ID DA SITUACAO DA LIGACAO DE ESGOTO (TABELA LIGACAO_ESGOTO_SITUACAO) - OBRIGATORIO ,CASE WHEN coalesce(le.lesg_nnconsumominimoesgoto,0) > 0 THEN 1 ELSE 2 END as reca_icvolumefixadoesgoto ,CASE WHEN le.lepf_id IS NULL THEN 9999 ELSE le.lepf_id END as lepf_id --------------------------------------------------------------------------------------------------- --dimen_perfil_imovel_tarifa ,coalesce(i.iper_id,9999) as iper_id-- ID DO PERFIL DO IMOVEL (TABELA IMOVEL_PERFIL) - OBRIGATORIO ,coalesce(i.cstf_id,9999) as cstf_id-- ID DO consumo tarifa (TABELA IMOVEL_PERFIL) - OBRIGATORIO --------------------------------------------------------------------------------------------------- --dimen_geografia ,coalesce(i.bair_id,9999) as bair_id-- ID DO BAIRRO (TABELA BAIRRO) ,coalesce(b.muni_id ,9999) as muni_id-- CODIGO MUNICIPIO AO QUAL O BAIRRO ESTA INSERIDO (TABELA MUNICIPIO) --------------------------------------------------------------------------------------------------- --dimen_cliente_tipo , CASE WHEN ep.epod_id IS NOT NULL THEN ep.epod_id ELSE 9999 END as epod_id , CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 9999 END as cltp_id ,now() as reca_tmultimaalteracao --------------------------------------------------------------------------------------------------- -- dimen_categoria_subcategoria -------------RECUPERA A CATEGORIA PRINCIPAL (a de maior número de economia)------------------------------------------------------------------- , (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = i.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id -------------RECUPERA A SUBCATEGORIA PRINCIPAL (a de maior número de economia)------------------------------------------------------------------- , (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = i.imov_id order by imsb_qteconomia desc limit 1) as scat_id ---------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- --dimen_tipo_consumo ,coalesce(cstp_id,9999) as cstp_id-- ID DO TIPO DE CONSUMO (TABELA CONSUMO_TIPO) --------------------------------------------------------------------------------------------------- --Medidas --------------------------------------------------------------------------------------------------- ,COUNT( c.imov_id) as reca_qtligacoes-- ID DO IMOVEL (TABELA IMOVEL) ,sum(CASE WHEN la.hidi_id IS NOT NULL THEN 1 ELSE 0 END) AS reca_qtligacoes_com_hidrometro ,sum(CASE WHEN c.cstp_id in(6,12) THEN 1 else 0 END) AS reca_qtligacoes_com_medicao_real ,sum(CASE WHEN la.hidi_id IS NOT NULL AND c.cstp_id not in(6,12) THEN 1 END) AS reca_qtligacoes_com_hidrometro_e_medicao_estimada ,SUM(c.cshi_nnconsumofaturadomes) as reca_consumoagua -- reca_consumoagua_ativas CONSUMO FATURADO NO MES ,SUM( CASE WHEN la.hidi_id IS NOT NULL THEN c.cshi_nnconsumofaturadomes ELSE 0 END) AS reca_consumoagua_com_hidrometro ,SUM( CASE WHEN c.cstp_id in(6,12)THEN c.cshi_nnconsumofaturadomes ELSE 0 END) AS reca_consumoagua_com_medicao_real ,SUM( CASE WHEN la.hidi_id IS NOT NULL AND c.cstp_id not in(6,12) THEN c.cshi_nnconsumofaturadomes ELSE 0 END) AS reca_consumoagua_com_hidrometro_e_medicao_estimada ,SUM(i.imov_qteconomia) as reca_qteconomias -- reca_qteconomias_ativas ,SUM( CASE WHEN la.hidi_id IS NOT NULL THEN i.imov_qteconomia ELSE 0 END) AS reca_qteconomias_com_hidrometro ,SUM( CASE WHEN c.cstp_id in(6,12) THEN i.imov_qteconomia ELSE 0 END) AS reca_qteconomias_com_medicao_real ,SUM( CASE WHEN la.hidi_id IS NOT NULL AND c.cstp_id not in(6,12) THEN i.imov_qteconomia ELSE 0 END) AS reca_qteconomias_com_hidrometro_e_medicao_estimada ,sum(consumo. consumo_minimo_ligacao) as reca_consumo_minimo ,SUM (CASE WHEN consumo. consumo_minimo_ligacao> c.cshi_nnconsumofaturadomes THEN consumo. consumo_minimo_ligacao ELSE c.cshi_nnconsumofaturadomes END) AS reca_voconsumofaturado ,SUM( CASE WHEN c.cstp_id not in(6,12) THEN (CASE WHEN consumo. consumo_minimo_ligacao> c.cshi_nnconsumofaturadomes THEN consumo. consumo_minimo_ligacao ELSE c.cshi_nnconsumofaturadomes END) ELSE 0 END) AS reca_vofaturadoaguamedido ,SUM( CASE WHEN c.cstp_id in(6,12) THEN (CASE WHEN consumo. consumo_minimo_ligacao> c.cshi_nnconsumofaturadomes THEN consumo. consumo_minimo_ligacao ELSE c.cshi_nnconsumofaturadomes END) ELSE 0 END) AS reca_vofaturadoaguanaomedido ,SUM(CASE WHEN c.cshi_nnconsumofaturadomes> consumo. consumo_minimo_ligacao THEN (c.cshi_nnconsumofaturadomes - consumo. consumo_minimo_ligacao) ELSE 0 END) AS reca_consumoexcedente FROM gsan_admin.consumo_historico c INNER JOIN gsan_admin.imovel i ON c.imov_id=i.imov_id and i.imov_icexclusao = 2 INNER JOIN gsan_admin.bairro b ON i.bair_id=b.bair_id INNER JOIN gsan_admin.localidade loca ON i.loca_id = loca.loca_id INNER JOIN gsan_admin.sistema_parametros ON 1=1 LEFT JOIN gsan_admin.ligacao_agua la ON i.imov_id = la.lagu_id LEFT JOIN gsan_admin.ligacao_esgoto le ON i.imov_id = le.lesg_id ----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- INNER JOIN gsan_admin.cliente_imovel cir ON i.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL --INNER JOIN gsan_admin.cliente_imovel ciu ON i.imov_id = ciu.imov_id AND ciu.crtp_id = 2 AND ciu.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente ci ON ci.clie_id =cir.clie_id INNER JOIN gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id INNER JOIN gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id --LEFT JOIN gsan_admin.conta cnta ON i.imov_id=cnta.imov_id AND cnta.dcst_idatual in(0,1,2) AND cnta.cnta_amreferenciaconta=c.cshi_amfaturamento --LEFT JOIN gsan_admin.conta_historico cnhi ON i.imov_id=cnhi.imov_id AND cnhi.dcst_idatual in(0,1,2) AND cnhi.cnhi_amreferenciaconta=c.cshi_amfaturamento inner join (SELECT i.imov_id ,sum(cstc_nnconsumominimo * imsb.imsb_qteconomia ) consumo_minimo_ligacao FROM gsan_admin.imovel i INNER JOIN gsan_admin.imovel_subcategoria imsb on i.imov_id=imsb.imov_id inner join gsan_admin.subcategoria scat on imsb.scat_id=scat.scat_id inner join gsan_admin.consumo_tarifa_categoria cstc on scat.catg_id=cstc.catg_id and cstv_id = (select max(cstv_id) from gsan_admin.consumo_tarifa_vigencia tv where tv.cstf_id = i.cstf_id) group by 1 ) as consumo on i.imov_id=consumo.imov_id where c.lgti_id=1 and c.cshi_amfaturamento= parm_amreferenciafaturamento -1 --and i.imov_id in(1280406, 11211601, 11264101, 36289370) group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33 + 0 + + N + Y + N + + + 192 + 272 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_faturamento.ktr b/gerencial_pentaho-master/PDI/ktr_fato_faturamento.ktr new file mode 100644 index 0000000..9f7b63c --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_faturamento.ktr @@ -0,0 +1,1987 @@ + + + + ktr_fato_faturamento + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 9000 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/19 16:21:37.216 + - + 2015/06/19 16:21:37.216 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA CAERN + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Fato FaturamentoLocalizacao(dmlo_id)Y + Dimensao1 Localizacao(dmlo_id)Y + Dimensao2Tempo(dmtp_id)Y + Localizacao(dmlo_id)Tempo(dmtp_id)Y + Dimensao3Perfil(dmpt_id)Y + Tempo(dmtp_id)Perfil(dmpt_id)Y + Dimensao4Situacao Agua(dmsa_id)Y + Perfil(dmpt_id)Situacao Agua(dmsa_id)Y + Situacao Agua(dmsa_id)Situacao Esgoto(dmse_id)Y + Dimensao5Situacao Esgoto(dmse_id)Y + Dimensao6Categoria(dmcs_id) Y + Situacao Esgoto(dmse_id)Categoria(dmcs_id) Y + Categoria(dmcs_id) Cliente Tipo(dmct_id)Y + Dimensao7Cliente Tipo(dmct_id)Y + Dimensao8Documento Tipo(dmdt_id)Y + Cliente Tipo(dmct_id)Documento Tipo(dmdt_id)Y + Dimensao9Geografia(dmgr_id)Y + Documento Tipo(dmdt_id)Geografia(dmgr_id)Y + Dimensao10Financiamento Tipo(dmft_id)Y + Geografia(dmgr_id)Financiamento Tipo(dmft_id)Y + Financiamento Tipo(dmft_id)Debito Lancamento Item(dmdi_id)Y + Dimensao11Debito Lancamento Item(dmdi_id)Y + Debito Lancamento Item(dmdi_id)Credito Origem(dmco_id)Y + Dimensao12Credito Origem(dmco_id)Y + Credito Origem(dmco_id)Imposto Tipo(dmit_id)Y + Dimensao13Imposto Tipo(dmit_id)Y + refa_idCalculatorY + CalculatorSelect valuesY + Imposto Tipo(dmit_id)Select values 2Y + Select values 2imovY + imovModified Java Script ValueY + Modified Java Script Valuerefa_idY + Select valuesTable outputY + + + Calculator + Calculator + + Y + + 1 + + none + + + refa_id +ADD +refa +id + +Integer +-1 +-1 +N + + + + + + + + 336 + 368 + Y + + + + + Categoria(dmcs_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao6 + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 432 + 161 + Y + + + + + Cliente Tipo(dmct_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao7 + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 507 + 237 + Y + + + + + Credito Origem(dmco_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao12 + N + Y + N + N + + + crti_id + crti_id + + + crog_id + crog_id + + + dmco_id + dmco_id + + None + + + + + 1006 + 158 + Y + + + + + Debito Lancamento Item(dmdi_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao11 + N + Y + N + N + + + dbtp_id + dbtp_id + + + lict_id + lict_id + + + dmdi_id + dmdi_id + + None + + + + + 890 + 224 + Y + + + + + Dimensao1 + TableInput + + N + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 45 + 34 + Y + + + + + Dimensao10 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT fntp_id , fntp_dsfinanciamentotipo , fntp_dsabreviado , dmft_id FROM gerencial_cagepa.dimen_financiamento_tipo + 0 + + N + N + N + + + 765 + 39 + Y + + + + + Dimensao11 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dbtp_id , dbtp_dsdebitotipo , dbtp_dsabreviado , fntp_id , lict_id , lict_dsitemlancamentocontabil , lict_dsabreviado , dmdi_id FROM gerencial_cagepa.dimen_debito_lancamento_item + 0 + + N + N + N + + + 890 + 34 + Y + + + + + Dimensao12 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT crog_id , crog_dscreditoorigem , crog_dsabreviado , crti_id , crti_dscreditotipo , crti_dsabreviado , dmco_id FROM gerencial_cagepa.dimen_credito_origem_tipo + 0 + + N + N + N + + + 1002 + 35 + Y + + + + + Dimensao13 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT imtp_id , imtp_dsimposto , imtp_dsabreviadaimposto , dmit_id FROM gerencial_cagepa.dimen_imposto_tipo + 0 + + N + N + N + + + 1094 + 38 + Y + + + + + Dimensao2 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , "DATA" , ano , mesNumero , diaNumero , diaSemanaNum , diaSemana , diaSemanaAbrev , mesNome , mesAbrev , trimestre , data_string , mesTrimestre , quinzena , semanaMes , semanaNome , semanaNumeroInicioDomingo , data_string_br , anomes , trimestreAbrev , semestreNum , semestreNome , diaSemanadiaAbrev FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 119 + 35 + Y + + + + + Dimensao3 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 193 + 36 + Y + + + + + Dimensao4 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada , dmsa_icligacaofaturada_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 266 + 36 + Y + + + + + Dimensao5 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 354 + 36 + Y + + + + + Dimensao6 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 430 + 37 + Y + + + + + Dimensao7 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 502 + 37 + Y + + + + + Dimensao8 + TableInput + + N + + 1 + + none + + + VERTICA_JNDI + SELECT dotp_id , dotp_dsdocumentotipo , fxvl_id , fxvl_dsfaixavalor , icvencido , icvencido_desc , dmdt_id FROM gerencial_cagepa.dimen_documento_tipo + 0 + + N + N + N + + + 586 + 36 + Y + + + + + Dimensao9 + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 671 + 38 + Y + + + + + Documento Tipo(dmdt_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao8 + N + Y + N + N + + + dotp_id + dotp_id + + + dmdt_id + dmdt_id + + None + + + + + 591 + 159 + Y + + + + + Fato Faturamento + TableInput + + Y + + 1 + + none + + + comercial_gsan + --------------------------- ----RESUMO = FATURAMENTO-- ----EMPRESA = CAGEPA -- ----VERSÃO = 05/02/2016 -- --------------------------- SELECT -------DIMENSÕES-(35)------ --5000 as refa, ${max} as refa, coalesce ((case when conta is null then contahist else conta end),0) as conta, origem, case when temp.imov_id is null then 0 else temp.imov_id end as imov, refa_amreferencia, COALESCE (greg_id, 9999) AS greg_id , COALESCE (uneg_id, 9999) AS uneg_id, COALESCE (im.loca_id, 9999) AS loca_id, COALESCE (loca_cdelo, 9999) AS loca_cdelo, COALESCE (im.stcm_id, 9999) AS stcm_id, COALESCE (rt.rota_id, 9999) AS rota_id, COALESCE (im.qdra_id, 9999) AS qdra_id, COALESCE (sc.stcm_cdsetorcomercial,9999) AS refa_cdsetorcomercial, COALESCE (qd.qdra_nnquadra,9999) AS refa_nnquadra, COALESCE (ftgr_id,99) AS ftgr_id, COALESCE (rota_cdrota, 9999) as refa_cdrota, COALESCE (iper_id, 9999) AS iper_id, COALESCE (epod_id,9999) AS epod_id, COALESCE (lict_id,9999) AS lict_id, COALESCE (catg_id,9999) AS catg_id, COALESCE ((select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1),9999) as scat_id, COALESCE (crog_id, 9999) AS crog_id, COALESCE (dotp_id,9999) AS dotp_id, COALESCE (fntp_id,9999) AS fntp_id, COALESCE (dbtp_id,9999) AS dbtp_id , COALESCE (crti_id, 9999) AS crti_id, COALESCE (clie.cltp_id, 9999) AS cltp_id, Case when la.hidi_id is not null then 1 else 2 end as refa_ichidrometro, COALESCE (imtp_id, 9999) AS imtp_id, COALESCE (empr_id,9999) AS empr_id, COALESCE (last_id,9999) AS last_id, COALESCE (lest_id, 9999) AS lest_id, COALESCE (lapf_id,9999) AS lapf_id, COALESCE (lepf_id,9999) AS lepf_id, COALESCE (cstf_id,9999) AS cstf_id, COALESCE (sc.muni_id,9999) AS muni_id, COALESCE (qd.bair_id,9999) AS bair_id, arti_id, now() as refa_tmultimaalteracao, ----------MEDIDAS-(22)---------- 0 as refa_vofaturadoagua, 0 as refa_vofaturadoesgoto, 0 as refa_qtdocsfaturadoscredito, 0 as refa_vlimposto, 0 as refa_vldescincondcan, 0 as refa_vlguiadevolcancel, 0 as refa_vldescincondinc, 0 as refa_vlguiadevolincl, sum(coalesce(imov_qteconomia,0)) as qteconomiasfaturadas, --COUNT(distinct temp.imov_id) as refa_qtcontasemitidas, COUNT(case when origem in ('GUIA PAGAMENTO','GUIA PAGAMENTO HISTORICO') then 1 end) as refa_qtdocsfaturadosoutros, COALESCE (SUM(case when temp.evco_id = 80 then valor_lancamento end), 0) as refa_vlfaturadoagua, COALESCE (SUM(case when temp.evco_id = 81 then valor_lancamento end), 0) as refa_vlfaturadoaesgoto, COALESCE (SUM(case when temp.evco_id = 83 then valor_lancamento end), 0) as refa_vldocsfaturadoscredito, COALESCE (SUM(case when temp.evco_id in (29,82) then valor_lancamento end), 0) as refa_vldocsfaturadosoutros, COALESCE (SUM(case when temp.evco_id in (29) then valor_lancamento end), 0) as refa_vldocsfaturadoguiapag, COALESCE (SUM(case when temp.evco_id in (82) then valor_lancamento end), 0) as refa_vldocsfaturadosoutrosdevolucao, COALESCE (SUM(case when temp.evco_id in (13,14) then valor_lancamento end), 0) as refa_vlfinanincluido, COALESCE (SUM(case when temp.evco_id in (15,16) then valor_lancamento end) , 0) as refa_vlfinancancelado, COALESCE (SUM(case when temp.evco_id in (46,72) then valor_lancamento end) , 0) as refa_vljurosparcelamento, COALESCE (SUM(case when temp.evco_id in (20,21) then valor_lancamento end) , 0) as refa_vlcreditoscobindevcan, COALESCE (SUM(case when temp.evco_id in (70,71) then valor_lancamento end) , 0) as refa_vlparcelamentoscan, COALESCE (SUM(case when temp.evco_id in (18,19) then valor_lancamento end) , 0) as refa_vlcreditoscobindevinc, COALESCE (SUM(case when temp.evco_id in (1,2,3,4) then valor_lancamento end) , 0) as refa_vlinclusoesaofaturamento, COALESCE (SUM(case when temp.evco_id in (7,8,9,10,11,12) then valor_lancamento end), 0) as refa_vlcancelamentosaofaturamento, COALESCE (SUM(Case when temp.evco_id in (80,81,13,14,29,46,72) then valor_lancamento end), 0) as refa_faturamento_bruto, COALESCE (SUM(Case when temp.evco_id in (80,81,13,14,29,46,72,1,2,3,4,7,8,9,10,11,12) then valor_lancamento end), 0) as refa_faturamento_liquido FROM ( -----------SELECIONAR OS LANÇAMENTOS COM SUAS ORIGENS-------------- SELECT case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end as refa_amreferencia, Case when ct.cnta_id is not null then 'CONTA' when ch.cnta_id is not null then 'CONTA HISTORICO' when gp.gpag_id is not null then 'GUIA PAGAMENTO' when gh.gpag_id is not null then 'GUIA PAGAMENTO HISTORICO' when dac.dbac_id is not null then 'DEBITO A COBRAR' when dach.dbac_id is not null then 'DEBITO A COBRAR HISTORICO' when car.crar_id is not null then 'CREDITO A REALIZAR' when crh.crar_id is not null then 'CREDITO A REALIZAR HISTORICO' end as origem, Case when ch.cnta_id is not null then ch.imov_id when ct.cnta_id is not null then ct.imov_id when gp.gpag_id is not null then gp.imov_id when gh.gpag_id is not null then gh.imov_id when dac.dbac_id is not null then dac.imov_id when dach.dbac_id is not null then dach.imov_id when car.crar_id is not null then car.imov_id when crh.crar_id is not null then crh.imov_id end as imov_id, Case when car.crar_id is not null then car.crog_id when crh.crar_id is not null then crh.crog_id else 0 end as crog_id, Case when car.crar_id is not null then car.dotp_id when crh.crar_id is not null then crh.dotp_id when dac.dbac_id is not null then dac.dotp_id when dach.dbac_id is not null then dach.dotp_id else 0 end as dotp_id, Case when dac.dbac_id is not null then dac.fntp_id when dach.dbac_id is not null then dach.fntp_id else 0 end as fntp_id, Case when dac.dbac_id is not null then dac.dbtp_id when dach.dbac_id is not null then dach.dbtp_id else 0 end as dbtp_id, Case when car.crar_id is not null then car.crti_id when crh.crar_id is not null then crh.crti_id else 0 end as crti_id, catg_id, b.lict_id, imtp_id, b.evco_id, laca_idobjeto, case when ch.dcst_idatual in (0,3,4,5,6,7) then ch.cnta_id end as contahist, case when ct.dcst_idatual in (0,3,4,5,6,7) then ct.cnta_id end as conta, Case when b.evco_id in (7,8,9,10,11,12) then (laca_vl*-1) else laca_vl end as valor_lancamento from gsan_admin.lancamento_contabil_analitico a inner join gsan_admin.lancamento_contabil_sintetico b on a.lacs_id = b.lacs_id inner join gsan_admin.sistema_parametros on 1=1 left join gsan_admin.conta_historico ch on ch.cnta_id = laca_idobjeto and cnhi_amreferenciaconta = parm_amreferenciafaturamento left join gsan_admin.conta ct on ct.cnta_id = laca_idobjeto and cnta_amreferenciaconta = parm_amreferenciafaturamento left join gsan_admin.debito_a_cobrar dac on dac.dbac_id = laca_idobjeto and dac.dbac_amreferenciadebito = parm_amreferenciafaturamento left join gsan_admin.debito_a_cobrar_historico dach on dach.dbac_id = laca_idobjeto and dahi_amreferenciadebito = parm_amreferenciafaturamento left join gsan_admin.credito_a_realizar car on car.crar_id = laca_idobjeto and crar_amreferenciacredito = parm_amreferenciafaturamento left join gsan_admin.credito_a_realizar_historico crh on crh.crar_id = laca_idobjeto and carh_amreferenciacredito = parm_amreferenciafaturamento left join gsan_admin.guia_pagamento gp on gp.gpag_id = laca_idobjeto left join gsan_admin.guia_pagamento_historico gh on gh.gpag_id = laca_idobjeto where evco_id in (1,2,3,4,7,8,9,10,11,12,13,14,15,16,18,19,20,21,29,46,70,71,72,80,81,82,83) and substr(cast(lacs_dtcontabil as char(4)),1,4)||substr(cast(lacs_dtcontabil as char(7)),6,2) = case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then cast((parm_amreferenciafaturamento - 1) as char (6)) else cast((parm_amreferenciafaturamento - 89) as char(6)) end ) TEMP ------TABELAS PARA RECUPERAR DADOS DAS DIMENSÕES------------------------ left join gsan_admin.imovel im on im.imov_id = temp.imov_id and im.imov_icexclusao = 2 left join gsan_admin.ligacao_agua la on la.lagu_id = temp.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = temp.imov_id left join gsan_admin.localidade loc on loc.loca_id = im.loca_id left join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id left join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id left join gsan_admin.rota rt on rt.rota_id = qd.rota_id left join gsan_admin.cliente_imovel clim on clim.imov_id = im.imov_id and clim.crtp_id = 3 and clim_dtrelacaofim is null left join gsan_admin.cliente clie on clie.clie_id = clim.clie_id left join gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id --where origem='CONTA' group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40 order by 4 ------FIM DO SQL---------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 48 + 352 + Y + + + + + Financiamento Tipo(dmft_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao10 + N + Y + N + N + + + fntp_id + fntp_id + + + dmft_id + dmft_id + + None + + + + + 765 + 159 + Y + + + + + Geografia(dmgr_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao9 + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 685 + 239 + Y + + + + + Imposto Tipo(dmit_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao13 + N + Y + N + N + + + imtp_id + imtp_id + + + dmit_id + dmit_id + + None + + + + + 1097 + 223 + Y + + + + + Localizacao(dmlo_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao1 + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + loca_cdelo + loca_cdelo + + + stcm_id + stcm_id + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 46 + 242 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var refa_qtcontasemitidas var refa_qteconomiasfaturadas // Quantidade de CONTAS if(conta_count==1){ refa_qtcontasemitidas=1; refa_qteconomiasfaturadas=qteconomiasfaturadas} else{ refa_qtcontasemitidas=0; refa_qteconomiasfaturadas=0}; + refa_qtcontasemitidas + refa_qtcontasemitidas + Integer + 16 + 0 + N + refa_qteconomiasfaturadas + refa_qteconomiasfaturadas + Integer + 16 + 0 + N + + + 848 + 368 + Y + + + + + Perfil(dmpt_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao3 + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 193 + 242 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + refa_amreferencia + + -2 + -2 + origem + + -2 + -2 + conta + + -2 + -2 + imov + + -2 + -2 + refa_vofaturadoagua + + -2 + -2 + refa_vofaturadoesgoto + + -2 + -2 + refa_qtdocsfaturadoscredito + + -2 + -2 + refa_vlimposto + + -2 + -2 + refa_vldescincondcan + + -2 + -2 + refa_vlguiadevolcancel + + -2 + -2 + refa_vldescincondinc + + -2 + -2 + refa_vlguiadevolincl + + -2 + -2 + refa_qteconomiasfaturadas + + -2 + -2 + refa_qtdocsfaturadosoutros + + -2 + -2 + refa_vlfaturadoagua + + -2 + -2 + refa_vlfaturadoaesgoto + + -2 + -2 + refa_vldocsfaturadoscredito + + -2 + -2 + refa_vldocsfaturadosoutros + + -2 + -2 + refa_vldocsfaturadoguiapag + + -2 + -2 + refa_vldocsfaturadosoutrosdevolucao + + -2 + -2 + refa_vlfinanincluido + + -2 + -2 + refa_vlfinancancelado + + -2 + -2 + refa_vljurosparcelamento + + -2 + -2 + refa_vlcreditoscobindevcan + + -2 + -2 + refa_vlparcelamentoscan + + -2 + -2 + refa_vlcreditoscobindevinc + + -2 + -2 + refa_vlinclusoesaofaturamento + + -2 + -2 + refa_vlcancelamentosaofaturamento + + -2 + -2 + refa_faturamento_bruto + + -2 + -2 + refa_faturamento_liquido + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmse_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmct_id + + -2 + -2 + dmdt_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmft_id + + -2 + -2 + dmdi_id + + -2 + -2 + dmco_id + + -2 + -2 + dmit_id + + -2 + -2 + refa_qtcontasemitidas + + -2 + -2 + refa_id + + -2 + -2 + N + + + 224 + 368 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + refa + + -2 + -2 + refa_amreferencia + + -2 + -2 + origem + + -2 + -2 + conta + + -2 + -2 + imov + + -2 + -2 + refa_vofaturadoagua + + -2 + -2 + refa_vofaturadoesgoto + + -2 + -2 + refa_qtdocsfaturadoscredito + + -2 + -2 + refa_vlimposto + + -2 + -2 + refa_vldescincondcan + + -2 + -2 + refa_vlguiadevolcancel + + -2 + -2 + refa_vldescincondinc + + -2 + -2 + refa_vlguiadevolincl + + -2 + -2 + qteconomiasfaturadas + + -2 + -2 + refa_qtdocsfaturadosoutros + + -2 + -2 + refa_vlfaturadoagua + + -2 + -2 + refa_vlfaturadoaesgoto + + -2 + -2 + refa_vldocsfaturadoscredito + + -2 + -2 + refa_vldocsfaturadosoutros + + -2 + -2 + refa_vldocsfaturadoguiapag + + -2 + -2 + refa_vldocsfaturadosoutrosdevolucao + + -2 + -2 + refa_vlfinanincluido + + -2 + -2 + refa_vlfinancancelado + + -2 + -2 + refa_vljurosparcelamento + + -2 + -2 + refa_vlcreditoscobindevcan + + -2 + -2 + refa_vlparcelamentoscan + + -2 + -2 + refa_vlcreditoscobindevinc + + -2 + -2 + refa_vlinclusoesaofaturamento + + -2 + -2 + refa_vlcancelamentosaofaturamento + + -2 + -2 + refa_faturamento_bruto + + -2 + -2 + refa_faturamento_liquido + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmse_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmct_id + + -2 + -2 + dmdt_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmft_id + + -2 + -2 + dmdi_id + + -2 + -2 + dmco_id + + -2 + -2 + dmit_id + + -2 + -2 + N + + + 1104 + 368 + Y + + + + + Situacao Agua(dmsa_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao4 + N + Y + N + N + + + last_id + last_id + + + lapf_id + lapf_id + + + refa_ichidrometro + dmsa_ichidrometro + + + dmsa_id + dmsa_id + + None + + + + + 270 + 160 + Y + + + + + Situacao Esgoto(dmse_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao5 + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 357 + 240 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_faturamento
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 224 + 464 + Y + + + + + Tempo(dmtp_id) + StreamLookup + + Y + + 1 + + none + + + Dimensao2 + N + Y + N + N + + + refa_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 117 + 149 + Y + + + + + imov + FieldsChangeSequence + + Y + + 1 + + none + + + 1 + 1 + conta_count + + + imov + + + + + 960 + 368 + Y + + + + + refa_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + relt_seq + Y + + 1 + 1 + 999999999 + + + 416 + 368 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_hidrometro_instalacao.ktr b/gerencial_pentaho-master/PDI/ktr_fato_hidrometro_instalacao.ktr new file mode 100644 index 0000000..f1cf1e4 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_hidrometro_instalacao.ktr @@ -0,0 +1,1381 @@ + + + + ktr_fato_hidrometro_instalacao + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempoY + lookup_tempolookup_marca_tipo_classeY + Select valuesfato_hidrometro_instaladoY + localidadelookup_localizacaoY + lookup_situacao_agualookup_localizacaoY + lookup_localizacaolookup_tempoY + un_res_ins_hidrlookup_cliente_tipoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + dimen_marca_tipo_classelookup_marca_tipo_classeY + lookup_marca_tipo_classelookup_capacidade_diametroY + dimen_capacidade_diametrolookup_capacidade_diametroY + lookup_capacidade_diametroreih_idY + reih_idCalculatorY + CalculatorSelect valuesY + + + Calculator + Calculator + + Y + + 1 + + none + + + reih_id +ADD +reih +id + +Integer +-1 +-1 +N + + + + + + + + 878 + 242 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + reih_id + + -2 + -2 + reih_qthidr_instalado_ramal + + -2 + -2 + reih_qthidr_substituido_ramal + + -2 + -2 + reih_qthidr_retirado_ramal + + -2 + -2 + reih_qthidr_instalado_poco + + -2 + -2 + reih_qthidr_substituido_poco + + -2 + -2 + reih_qthidr_retirado_poco + + -2 + -2 + reih_qthidratualinstaladoramal + + -2 + -2 + reih_qthidratualinstaladospoco + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmmtc_id + + -2 + -2 + dmhcd_id + + -2 + -2 + N + + + 785 + 245 + Y + + + + + dimen_capacidade_diametro + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmhcd_id , hicp_id , hicp_dshidrometrocapacidade , hidm_id , hidm_dshidrometrodiametro FROM gerencial_cagepa.dimen_hidr_capacidade_diametro + 0 + + N + N + N + + + 1048 + 330 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 178 + 35 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 616 + 35 + Y + + + + + dimen_marca_tipo_classe + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmmtc_id , himc_id , himc_dshidrometromarca , hitp_id , hitp_dshidrometrotipo , hicm_id , hicm_dshidrclassemetrologica FROM gerencial_cagepa.dimen_hidr_marca_tipo_classe + 0 + + N + N + N + + + 1200 + 332 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada , dmsa_icligacaofaturada_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc , dmse_icvlexcedente FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 478 + 22 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + fato_hidrometro_instalado + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_hidrometro_instalado
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + + + + + + 663 + 243 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_capacidade_diametro + StreamLookup + + Y + + 1 + + none + + + dimen_capacidade_diametro + N + Y + N + N + + + hicp_id + hicp_id + + + hidm_id + hidm_id + + + dmhcd_id + dmhcd_id + + None + + + + + 1044 + 239 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 173 + 135 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1072 + 142 + Y + + + + + lookup_marca_tipo_classe + StreamLookup + + Y + + 1 + + none + + + dimen_marca_tipo_classe + N + Y + N + N + + + himc_id + himc_id + + + hitp_id + hitp_id + + + hicm_id + hicm_id + + + dmmtc_id + dmmtc_id + + None + + + + + 1193 + 238 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + Y + N + + + last_id + last_id + + + lapf_id + lapf_id + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 484 + 137 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + reih_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + reih_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + reih_seq + Y + + 1 + 1 + 999999999 + + + 950 + 242 + Y + + + + + un_res_ins_hidr + TableInput + + N + + 1 + + none + + + comercial_gsan + --------Gerar tabela FATO de hidrômetros instalados, retirados, substituidos --------Versão CAGEPA em 05/fev/2016 select --5000 as reih, ${max} as reih, reih_amreferencia , greg_id, uneg_id, loca_id, loca_cdelo, stcm_id, qdra_id, rota_id, muni_id, bair_id, arti_id, catg_id, scat_id, iper_id, cstf_id, last_id, lest_id, lapf_id, lepf_id, epod_id, cltp_id, hitp_id, himc_id, hidm_id, hicp_id, hicm_id, sum(reih_qthidr_instalado_ramal) as reih_qthidr_instalado_ramal, sum(reih_qthidr_instalado_poco) as reih_qthidr_instalado_poco, sum(reih_qthidr_retirado_ramal) as reih_qthidr_retirado_ramal, sum(reih_qthidr_retirado_poco) as reih_qthidr_retirado_poco, sum(reih_qthidr_substituido_ramal) as reih_qthidr_substituido_ramal, sum(reih_qthidr_substituido_poco) as reih_qthidr_substituido_poco, sum(reih_qthidratualinstaladoramal) as reih_qthidratualinstaladoramal, sum(reih_qthidratualinstaladospoco) as reih_qthidratualinstaladospoco from ( SELECT -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento -1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as reih_amreferencia, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, qd.qdra_id, qd.rota_id, coalesce(sc.muni_id,9999) as muni_id, coalesce(qd.bair_id,9999) as bair_id, coalesce(qd.arti_id,0) as arti_id, (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id , (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc limit 1) as scat_id, iper_id, cstf_id, last_id, lest_id, lapf_id, lepf_id, CASE WHEN ct.epod_id IS NOT NULL THEN ct.epod_id ELSE 0 END as epod_id, CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 0 END as cltp_id, hid.hitp_id, hid.himc_id, hid.hidm_id, hid.hicp_id, hid.hicm_id, --------------MEDIDAS------------------------------------------------------------------------------------------------------------------------------- ----1-Quantidade hidrometros instalado para ramal no mês count(case when hidi_dtretiradahidrometro is null and hih.lagu_id is not null and hidi_icinstalacaosubstituicao <> 2 then 1 end) as reih_qthidr_instalado_ramal, ----2-Quantidade hidrometros instalado para poço no mês count(case when hidi_dtretiradahidrometro is null and hih.imov_id is not null and hidi_icinstalacaosubstituicao <> 2 then 1 end) as reih_qthidr_instalado_poco, ----3-Quantidade hidrometros retirados do ramal no mês count(case when hih.lagu_id is not null and hidi_dtretiradahidrometro is not null then 1 end) as reih_qthidr_retirado_ramal, ----4-Quantidade hidrometros retirados do poço no mês count(case when hih.imov_id is not null and hidi_dtretiradahidrometro is not null then 1 end) as reih_qthidr_retirado_poco, ----5-Quantidade hidrômetros substituído no ramal count(case when hidi_dtretiradahidrometro is null and hih.lagu_id is not null and hidi_icinstalacaosubstituicao = 2 then 1 end) as reih_qthidr_substituido_ramal, ----6-Quantidade hidrômetros substituído no poço count(case when hidi_dtretiradahidrometro is null and hih.imov_id is not null and hidi_icinstalacaosubstituicao = 2 then 1 end) as reih_qthidr_substituido_poco, ----7-Quantidade total de hidrometros instalado no ramal 0 as reih_qthidratualinstaladoramal, ----8-Quantidade total de hidrometros instalado no poço 0 as reih_qthidratualinstaladospoco FROM gsan_admin.hidrometro_instalacao_hist hih inner join gsan_admin.sistema_parametros on 1=1 inner join gsan_admin.hidrometro hid on hid.hidr_id = hih.hidr_id inner join gsan_admin.imovel im on im.imov_id = (case when hih.lagu_id is not null then hih.lagu_id else hih.imov_id end) and im.imov_icexclusao = 2 inner join gsan_admin.localidade loc on loc.loca_id = im.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id left join gsan_admin.ligacao_agua la on la.lagu_id = im.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = im.imov_id -----------Tabelas para recuperar a esfera de poder e tipo do cliente----------------------------------------------------------------------------- INNER join gsan_admin.cliente_imovel cir ON cir.imov_id = im.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL left join gsan_admin.cliente ci ON ci.clie_id =cir.clie_id left join gsan_admin.cliente_tipo ct ON ct.cltp_id = ci.cltp_id WHERE substr(cast(hidi_dtinstalacaohidrometrosis as char(10)),1,4)||substr(cast(hidi_dtinstalacaohidrometrosis as char(10)),6,2) = cast(case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end as char(6)) OR substr(cast(hidi_dtretiradahidrometro as char(10)),1,4)||substr(cast(hidi_dtretiradahidrometro as char(10)),6,2) = cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end) as char(6)) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 ----------------------------------------------------------------------------- UNION ALL ----------------------------------------------------------------------------- SELECT -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento -1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as reih_amreferencia, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, qd.qdra_id, qd.rota_id, coalesce(sc.muni_id,9999) as muni_id, coalesce(qd.bair_id,9999) as bair_id, coalesce(qd.arti_id,0) as arti_id, (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id , (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc limit 1) as scat_id, iper_id, cstf_id, last_id, lest_id, lapf_id, lepf_id, CASE WHEN ct.epod_id IS NOT NULL THEN ct.epod_id ELSE 0 END as epod_id, CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 0 END as cltp_id, hid.hitp_id, hid.himc_id, hid.hidm_id, hid.hicp_id, hid.hicm_id, --------------MEDIDAS--------------------------------------------------- 0 as reih_qthidr_instalado_ramal, 0 as reih_qthidr_instalado_poco, 0 as reih_qthidr_retirado_ramal, 0 as reih_qthidr_retirado_poco, 0 as reih_qthidr_substituido_ramal, 0 as reih_qthidr_substituido_poco, count(*) as reih_qthidratualinstaladoramal, 0 as reih_qthidratualinstaladospoco FROM gsan_admin.imovel im inner join gsan_admin.localidade loc on loc.loca_id = im.loca_id and im.imov_icexclusao = 2 inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id left join gsan_admin.ligacao_agua la on la.lagu_id = im.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = im.imov_id left join gsan_admin.hidrometro_instalacao_hist hih on hih.hidi_id = la.hidi_id inner join gsan_admin.hidrometro hid on hid.hidr_id = hih.hidr_id inner join gsan_admin.sistema_parametros on 1=1 -----------Tabelas para recuperar a esfera de poder e tipo do cliente----------------------------------------------------------------------------- --inner join gsan_admin.cliente_imovel ciu ON ciu.imov_id = im.imov_id AND ciu.crtp_id = 2 AND ciu.clim_dtrelacaofim IS NULL INNER join gsan_admin.cliente_imovel cir ON cir.imov_id = im.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL left join gsan_admin.cliente ci ON ci.clie_id =cir.clie_id left join gsan_admin.cliente_tipo ct ON ct.cltp_id = ci.cltp_id GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 ------------------------------- UNION ALL ------------------------------ SELECT -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento -1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as reih_amreferencia, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, qd.qdra_id, qd.rota_id, coalesce(sc.muni_id,9999) as muni_id, coalesce(qd.bair_id,9999) as bair_id, coalesce(qd.arti_id,0) as arti_id, (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id , (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc limit 1) as scat_id, iper_id, cstf_id, last_id, lest_id, lapf_id, lepf_id, CASE WHEN ct.epod_id IS NOT NULL THEN ct.epod_id ELSE 0 END as epod_id, CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 0 END as cltp_id, hid.hitp_id, hid.himc_id, hid.hidm_id, hid.hicp_id, hid.hicm_id, --------------MEDIDAS--------------------------------------------------- 0 as reih_qthidr_instalado_ramal, 0 as reih_qthidr_instalado_poco, 0 as reih_qthidr_retirado_ramal, 0 as reih_qthidr_retirado_poco, 0 as reih_qthidr_substituido_ramal, 0 as reih_qthidr_substituido_poco, 0 as reih_qthidratualinstaladoramal, count(*) as reih_qthidratualinstaladospoco FROM gsan_admin.imovel im inner join gsan_admin.hidrometro_instalacao_hist hih on hih.hidi_id = im.hidi_id and im.imov_icexclusao = 2 inner join gsan_admin.hidrometro hid on hid.hidr_id = hih.hidr_id inner join gsan_admin.localidade loc on loc.loca_id = im.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id left join gsan_admin.ligacao_agua la on la.lagu_id = im.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = im.imov_id inner join gsan_admin.sistema_parametros on 1=1 -----------Tabelas para recuperar a esfera de poder e tipo do cliente-------------- INNER join gsan_admin.cliente_imovel cir ON cir.imov_id = im.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL left join gsan_admin.cliente ci ON ci.clie_id =cir.clie_id left join gsan_admin.cliente_tipo ct ON ct.cltp_id = ci.cltp_id GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26 ------------------------------------------------------------------------------------ ) temp GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27 ------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------ + 0 + + N + Y + N + + + 176 + 256 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_hidrometro_nao_instalados.ktr b/gerencial_pentaho-master/PDI/ktr_fato_hidrometro_nao_instalados.ktr new file mode 100644 index 0000000..b8a5ad2 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_hidrometro_nao_instalados.ktr @@ -0,0 +1,981 @@ + + + + ktr_fato_hidrometro_nao_instalados + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 5000 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_tempolookup_tempoY + lookup_tempolookup_marca_tipo_classeY + dimen_marca_tipo_classelookup_marca_tipo_classeY + lookup_marca_tipo_classelookup_capacidade_diametroY + dimen_capacidade_diametrolookup_capacidade_diametroY + lookup_capacidade_diametrolookup_armazenagem_macroY + un_resumo_nao_inst_hidrometrolookup_tempoY + dimen_hidr_armazenagem_macrolookup_armazenagem_macroY + dimen_hidr_situacao_baixalookup_situacao)baixaY + lookup_armazenagem_macrolookup_situacao)baixaY + Select valuesfato_hidrometro_nao_instaladoY + lookup_situacao)baixarehi_idY + rehi_idCalculatorY + CalculatorSelect valuesY + + + Calculator + Calculator + + Y + + 1 + + none + + + rehi_id +ADD +rehi +id + +Integer +-1 +-1 +N + + + + + + + + 891 + 193 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + rehi_id + + -2 + -2 + rehi_amreferencia + + -2 + -2 + rehi_qtinsthidrometro + + -2 + -2 + rehi_qtnaoinsthidrometro + + -2 + -2 + dmtp_id + + -2 + -2 + dmmtc_id + + -2 + -2 + dmhcd_id + + -2 + -2 + dmham_id + + -2 + -2 + dmhsb_id + + -2 + -2 + N + + + 888 + 243 + Y + + + + + dimen_capacidade_diametro + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmhcd_id , hicp_id , hicp_dshidrometrocapacidade , hidm_id , hidm_dshidrometrodiametro FROM gerencial_cagepa.dimen_hidr_capacidade_diametro + 0 + + N + N + N + + + 466 + 9 + Y + + + + + dimen_hidr_armazenagem_macro + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmham_id , hila_id , hila_dshidrlocalarmazenagem , dmham_icmacro , dmham_icmacro_desc FROM gerencial_cagepa.dimen_hidr_armazenagem_macro + 0 + + N + N + N + + + 638 + 29 + Y + + + + + dimen_hidr_situacao_baixa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmhsb_id , hist_id , hist_dshidrometrosituacao , himb_id , himb_dshidrometromotivobaixa FROM gerencial_cagepa.dimen_hidr_situacao_baixa + 0 + + N + N + N + + + 743 + 5 + Y + + + + + dimen_marca_tipo_classe + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmmtc_id , himc_id , himc_dshidrometromarca , hitp_id , hitp_dshidrometrotipo , hicm_id , hicm_dshidrclassemetrologica FROM gerencial_cagepa.dimen_hidr_marca_tipo_classe + 0 + + N + N + N + + + 316 + 22 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 172 + 22 + Y + + + + + fato_hidrometro_nao_instalado + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_hidrometro_nao_instalado
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + fato_id + + + + + 888 + 344 + Y + + + + + lookup_armazenagem_macro + StreamLookup + + Y + + 1 + + none + + + dimen_hidr_armazenagem_macro + N + Y + N + N + + + rehi_icmacro + dmham_icmacro + + + hila_id + hila_id + + + dmham_id + dmham_id + + None + + + + + 642 + 109 + Y + + + + + lookup_capacidade_diametro + StreamLookup + + Y + + 1 + + none + + + dimen_capacidade_diametro + N + Y + N + N + + + hicp_id + hicp_id + + + hidm_id + hidm_id + + + dmhcd_id + dmhcd_id + + None + + + + + 478 + 111 + Y + + + + + lookup_marca_tipo_classe + StreamLookup + + Y + + 1 + + none + + + dimen_marca_tipo_classe + N + Y + N + N + + + himc_id + himc_id + + + hitp_id + hitp_id + + + hicm_id + hicm_id + + + dmmtc_id + dmmtc_id + + None + + + + + 318 + 114 + Y + + + + + lookup_situacao)baixa + StreamLookup + + Y + + 1 + + none + + + dimen_hidr_situacao_baixa + N + Y + N + N + + + himb_id + himb_id + + + hist_id + hist_id + + + dmhsb_id + dmhsb_id + + None + + + + + 746 + 132 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rehi_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 171 + 109 + Y + + + + + rehi_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + rehi_seq + Y + + 1 + 1 + 999999999 + + + 888 + 133 + Y + + + + + un_resumo_nao_inst_hidrometro + TableInput + + N + + 1 + + none + + + comercial_gsan + --------Gerar tabela FATO dos hidrômetros com situação nao instalados e instalados --------Versão CAGEMA em 22/10/2015 SELECT --49018 as rehi, ${max} as rehi, -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento -1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as rehi_amreferencia, hid.hila_id, hid.hitp_id, coalesce(hid.hist_id,9999) as hist_id, hid.hidr_nnanofabricacao, hid.himc_id, hid.hidm_id, hid.hicp_id, coalesce(hid.himb_id,9999) as himb_id, hid.hicm_id, hid.hidr_icmacro as rehi_icmacro, ----------MEDIDAS-------------------------------------------------------------------------------------------------------- ----Quantidade de hidrometros não instalados count(case when hid.hist_id <> 1 then 1 end) as rehi_qtnaoinsthidrometro, ----Quantidade de hidrometros instalados count(case when hid.hist_id = 1 then 1 end) as rehi_qtinsthidrometro FROM gsan_admin.hidrometro AS hid inner join gsan_admin.sistema_parametros on 1=1 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12 --------------------------------------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 176 + 224 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_ind_faturamento_a.ktr b/gerencial_pentaho-master/PDI/ktr_fato_ind_faturamento_a.ktr new file mode 100644 index 0000000..e11aaef --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_ind_faturamento_a.ktr @@ -0,0 +1,2451 @@ + + + + ktr_fato_ind_faturamento_a + + + + Normal + 0 + / + + + anomes + 196001 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2016/01/18 09:07:59.974 + - + 2016/01/18 09:07:59.974 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + MES_ATUALFull JoinY + MES_ANTERIORFull JoinY + Full Joinmedidas nullY + medidas nullDimensoes NullY + Dimensoes Nullrefa_amreferenciaY + dimen_temporefa_amreferenciaY + refa_amreferenciarefa_amreferenciamaY + refa_amreferenciamaSelectY + dimen_temporefa_amreferenciamaY + SelectmetadadosY + metadadosfato_indicardor_faturamentoY + + + Dimensoes Null + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var dmlo_id var dmpt_id var dmsa_id var dmse_id var dmcs_id var dmct_id var dmdt_id var dmgr_id var dmft_id var dmdi_id var dmco_id var refa_amreferencia var refa_amreferenciama // Localidade if(dmlo_id_a==null){ dmlo_id=dmlo_id_ma} else{ dmlo_id=dmlo_id_a}; // Esfera de Poder e Perfil Imovel if(dmpt_id_a==null){ dmpt_id=dmpt_id_ma} else{ dmpt_id=dmpt_id_a}; // Situacao Agua if(dmsa_id_a==null){ dmsa_id=dmsa_id_ma} else{ dmsa_id=dmsa_id_a}; // Situacao Esgoto if(dmse_id_a==null){ dmse_id=dmse_id_ma} else{ dmse_id=dmse_id_a}; // Categoria if(dmcs_id_a==null){ dmcs_id=dmcs_id_ma} else{ dmcs_id=dmcs_id_a}; // Cliente Tipo if(dmct_id_a==null){ dmct_id=dmct_id_ma} else{ dmct_id=dmct_id_a}; // Documento Tipo if(dmdt_id_a==null){ dmdt_id=dmdt_id_ma} else{ dmdt_id=dmdt_id_a}; // Geografia if(dmgr_id_a==null){ dmgr_id=dmgr_id_ma} else{ dmgr_id=dmgr_id_a}; // Financiamento Tipo if(dmft_id_a==null){ dmft_id=dmft_id_ma} else{ dmft_id=dmft_id_a}; // Debito Lancamento Item if(dmdi_id_a==null){ dmdi_id=dmdi_id_ma} else{ dmdi_id=dmdi_id_a}; // Credito Origem if(dmco_id_a==null){ dmco_id=dmco_id_ma} else{ dmco_id=dmco_id_a}; // Imposto Tipo if(dmit_id_a==null){ dmit_id=dmit_id_ma} else{ dmit_id=dmit_id_a}; // Mes Atual if(refa_amreferencia_a==null){ refa_amreferencia=refa_amreferencia_b} else{ refa_amreferencia=refa_amreferencia_a}; // Mes Anterior if(refa_amreferenciama_a==null){ refa_amreferenciama=refa_amreferenciama_b} else{ refa_amreferenciama=refa_amreferenciama_a}; + dmlo_id + dmlo_id + Integer + -1 + -1 + N + dmpt_id + dmpt_id + Integer + -1 + -1 + N + dmsa_id + dmsa_id + Integer + -1 + -1 + N + dmse_id + dmse_id + Integer + -1 + -1 + N + dmcs_id + dmcs_id + Integer + -1 + -1 + N + dmct_id + dmct_id + Integer + -1 + -1 + N + dmdt_id + dmdt_id + Integer + -1 + -1 + N + dmgr_id + dmgr_id + Integer + -1 + -1 + N + dmft_id + dmft_id + Integer + -1 + -1 + N + dmdi_id + dmdi_id + Integer + -1 + -1 + N + dmco_id + dmco_id + Integer + -1 + -1 + N + dmit_id + dmit_id + Integer + -1 + -1 + N + refa_amreferencia + refa_amreferencia + String + -1 + -1 + N + refa_amreferenciama + refa_amreferenciama + String + -1 + -1 + N + + + 416 + 224 + Y + + + + + Full Join + MergeJoin + + Y + + 1 + + none + + +FULL OUTER +MES_ATUAL +MES_ANTERIOR + + refa_amreferencia_a + refa_amreferenciama_a + dmtp_id_a + dmlo_id_a + dmpt_id_a + dmsa_id_a + dmse_id_a + dmcs_id_a + dmct_id_a + dmdt_id_a + dmgr_id_a + dmft_id_a + dmdi_id_a + dmco_id_a + dmit_id_a + + + refa_amreferencia_b + refa_amreferenciama_b + dmtp_id_b + dmlo_id_ma + dmpt_id_ma + dmsa_id_ma + dmse_id_ma + dmcs_id_ma + dmct_id_ma + dmdt_id_ma + dmgr_id_ma + dmft_id_ma + dmdi_id_ma + dmco_id_ma + dmit_id_ma + + + + 192 + 224 + Y + + + + + MES_ANTERIOR + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT SUM(refa_qtcontasemitidas) AS refa_qtcontasemitidasma ,SUM(refa_vofaturadoagua) AS refa_vofaturadoaguama ,SUM(refa_vofaturadoesgoto) AS refa_vofaturadoesgotoma ,SUM(refa_qtdocsfaturadoscredito) AS refa_qtdocsfaturadoscreditoma ,SUM(refa_vlimposto) AS refa_vlimpostoma ,SUM(refa_vldescincondcan) AS refa_vldescincondcanma ,SUM(refa_vlguiadevolcancel) AS refa_vlguiadevolcancelma ,SUM(refa_vldescincondinc) AS refa_vldescincondincma ,SUM(refa_vlguiadevolincl) AS refa_vlguiadevolinclma ,SUM(refa_qteconomiasfaturadas) AS refa_qteconomiasfaturadasma ,SUM(refa_qtdocsfaturadosoutros) AS refa_qtdocsfaturadosoutrosma ,SUM(refa_vlfaturadoagua) AS refa_vlfaturadoaguama ,SUM(refa_vlfaturadoaesgoto) AS refa_vlfaturadoaesgotoma ,SUM(refa_vldocsfaturadoscredito) AS refa_vldocsfaturadoscreditoma ,SUM(refa_vldocsfaturadosoutros) AS refa_vldocsfaturadosoutrosma ,SUM(refa_vldocsfaturadoguiapag) AS refa_vldocsfaturadoguiapagma ,SUM(refa_vldocsfaturadosoutrosdevolucao) AS refa_vldocsfaturadosoutrosdevolucaoma ,SUM(refa_vlfinanincluido) AS refa_vlfinanincluidoma ,SUM(refa_vlfinancancelado) AS refa_vlfinancanceladoma ,SUM(refa_vljurosparcelamento) AS refa_vljurosparcelamentoma ,SUM(refa_vlcreditoscobindevcan) AS refa_vlcreditoscobindevcanma ,SUM(refa_vlparcelamentoscan) AS refa_vlparcelamentoscanma ,SUM(refa_vlcreditoscobindevinc) AS refa_vlcreditoscobindevincma ,SUM(refa_vlinclusoesaofaturamento) AS refa_vlinclusoesaofaturamentoma ,SUM(refa_vlcancelamentosaofaturamento) AS refa_vlcancelamentosaofaturamentoma ,SUM(refa_faturamento_bruto) AS refa_faturamento_brutoma ,SUM(refa_faturamento_liquido) AS refa_faturamento_liquidoma , MES_ANTERIOR.refa_amreferencia +1 as refa_amreferencia_b , MES_ANTERIOR.refa_amreferencia as refa_amreferenciama_b , MES_ANTERIOR.dmtp_id AS dmtp_id_b , MES_ANTERIOR.dmlo_id as dmlo_id_ma , MES_ANTERIOR.dmpt_id as dmpt_id_ma , MES_ANTERIOR.dmsa_id as dmsa_id_ma , MES_ANTERIOR.dmse_id as dmse_id_ma , MES_ANTERIOR.dmcs_id as dmcs_id_ma , MES_ANTERIOR.dmct_id as dmct_id_ma , MES_ANTERIOR.dmdt_id as dmdt_id_ma , MES_ANTERIOR.dmgr_id as dmgr_id_ma , MES_ANTERIOR.dmft_id as dmft_id_ma , MES_ANTERIOR.dmdi_id as dmdi_id_ma , MES_ANTERIOR.dmco_id as dmco_id_ma , MES_ANTERIOR.dmit_id as dmit_id_ma FROM gerencial_cagepa.fato_faturamento AS MES_ANTERIOR WHERE MES_ANTERIOR.refa_amreferencia=${anomes}-1 group by MES_ANTERIOR.refa_amreferencia+1 , MES_ANTERIOR.refa_amreferencia , MES_ANTERIOR.dmtp_id , MES_ANTERIOR.dmlo_id , MES_ANTERIOR.dmpt_id , MES_ANTERIOR.dmsa_id , MES_ANTERIOR.dmse_id , MES_ANTERIOR.dmcs_id , MES_ANTERIOR.dmct_id , MES_ANTERIOR.dmdt_id , MES_ANTERIOR.dmgr_id , MES_ANTERIOR.dmft_id , MES_ANTERIOR.dmdi_id , MES_ANTERIOR.dmco_id , MES_ANTERIOR.dmit_id + 0 + + N + Y + N + + + 80 + 272 + Y + + + + + MES_ATUAL + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT SUM(refa_qtcontasemitidas) AS refa_qtcontasemitidas ,SUM(refa_vofaturadoagua) AS refa_vofaturadoagua ,SUM(refa_vofaturadoesgoto) AS refa_vofaturadoesgoto ,SUM(refa_qtdocsfaturadoscredito) AS refa_qtdocsfaturadoscredito ,SUM(refa_vlimposto) AS refa_vlimposto ,SUM(refa_vldescincondcan) AS refa_vldescincondcan ,SUM(refa_vlguiadevolcancel) AS refa_vlguiadevolcancel ,SUM(refa_vldescincondinc) AS refa_vldescincondinc ,SUM(refa_vlguiadevolincl) AS refa_vlguiadevolincl ,SUM(refa_qteconomiasfaturadas) AS refa_qteconomiasfaturadas ,SUM(refa_qtdocsfaturadosoutros) AS refa_qtdocsfaturadosoutros ,SUM(refa_vlfaturadoagua) AS refa_vlfaturadoagua ,SUM(refa_vlfaturadoaesgoto) AS refa_vlfaturadoaesgoto ,SUM(refa_vldocsfaturadoscredito) AS refa_vldocsfaturadoscredito ,SUM(refa_vldocsfaturadosoutros) AS refa_vldocsfaturadosoutros ,SUM(refa_vldocsfaturadoguiapag) AS refa_vldocsfaturadoguiapag ,SUM(refa_vldocsfaturadosoutrosdevolucao) AS refa_vldocsfaturadosoutrosdevolucao ,SUM(refa_vlfinanincluido) AS refa_vlfinanincluido ,SUM(refa_vlfinancancelado) AS refa_vlfinancancelado ,SUM(refa_vljurosparcelamento) AS refa_vljurosparcelamento ,SUM(refa_vlcreditoscobindevcan) AS refa_vlcreditoscobindevcan ,SUM(refa_vlparcelamentoscan) AS refa_vlparcelamentoscan ,SUM(refa_vlcreditoscobindevinc) AS refa_vlcreditoscobindevinc ,SUM(refa_vlinclusoesaofaturamento) AS refa_vlinclusoesaofaturamento ,SUM(refa_vlcancelamentosaofaturamento) AS refa_vlcancelamentosaofaturamento ,SUM(refa_faturamento_bruto) AS refa_faturamento_bruto ,SUM(refa_faturamento_liquido) AS refa_faturamento_liquido -----Dimen----- , MES_ATUAL.refa_amreferencia as refa_amreferencia_a ,(MES_ATUAL.refa_amreferencia-1) as refa_amreferenciama_a , MES_ATUAL.dmtp_id as dmtp_id_a , MES_ATUAL.dmlo_id AS dmlo_id_a , MES_ATUAL.dmpt_id AS dmpt_id_a , MES_ATUAL.dmsa_id AS dmsa_id_a , MES_ATUAL.dmse_id AS dmse_id_a , MES_ATUAL.dmcs_id AS dmcs_id_a , MES_ATUAL.dmct_id AS dmct_id_a , MES_ATUAL.dmdt_id AS dmdt_id_a , MES_ATUAL.dmgr_id AS dmgr_id_a , MES_ATUAL.dmft_id AS dmft_id_a , MES_ATUAL.dmdi_id AS dmdi_id_a , MES_ATUAL.dmco_id AS dmco_id_a , MES_ATUAL.dmit_id AS dmit_id_a FROM gerencial_cagepa.fato_faturamento AS MES_ATUAL WHERE MES_ATUAL.refa_amreferencia=${anomes} group by MES_ATUAL.refa_amreferencia ,(MES_ATUAL.refa_amreferencia-1) , MES_ATUAL.dmtp_id , MES_ATUAL.dmlo_id , MES_ATUAL.dmpt_id , MES_ATUAL.dmsa_id , MES_ATUAL.dmse_id , MES_ATUAL.dmcs_id , MES_ATUAL.dmct_id , MES_ATUAL.dmdt_id , MES_ATUAL.dmgr_id , MES_ATUAL.dmft_id , MES_ATUAL.dmdi_id , MES_ATUAL.dmco_id , MES_ATUAL.dmit_id + 0 + + N + Y + N + + + 80 + 112 + Y + + + + + Select + SelectValues + + Y + + 1 + + none + + + refa_vofaturadoagua + + -2 + -2 + refa_vofaturadoesgoto + + -2 + -2 + refa_qtdocsfaturadoscredito + + -2 + -2 + refa_vlimposto + + -2 + -2 + refa_vldescincondcan + + -2 + -2 + refa_vlguiadevolcancel + + -2 + -2 + refa_vldescincondinc + + -2 + -2 + refa_vlguiadevolincl + + -2 + -2 + refa_qteconomiasfaturadas + + -2 + -2 + refa_qtdocsfaturadosoutros + + -2 + -2 + refa_vlfaturadoagua + + -2 + -2 + refa_vlfaturadoaesgoto + + -2 + -2 + refa_vldocsfaturadoscredito + + -2 + -2 + refa_vldocsfaturadosoutros + + -2 + -2 + refa_vldocsfaturadoguiapag + + -2 + -2 + refa_vldocsfaturadosoutrosdevolucao + + -2 + -2 + refa_vlfinanincluido + + -2 + -2 + refa_vlfinancancelado + + -2 + -2 + refa_vljurosparcelamento + + -2 + -2 + refa_vlcreditoscobindevcan + + -2 + -2 + refa_vlparcelamentoscan + + -2 + -2 + refa_vlcreditoscobindevinc + + -2 + -2 + refa_vlinclusoesaofaturamento + + -2 + -2 + refa_vlcancelamentosaofaturamento + + -2 + -2 + refa_faturamento_bruto + + -2 + -2 + refa_faturamento_liquido + + -2 + -2 + refa_vofaturadoaguama + + -2 + -2 + refa_vofaturadoesgotoma + + -2 + -2 + refa_qtdocsfaturadoscreditoma + + -2 + -2 + refa_vlimpostoma + + -2 + -2 + refa_vldescincondcanma + + -2 + -2 + refa_vlguiadevolcancelma + + -2 + -2 + refa_vldescincondincma + + -2 + -2 + refa_vlguiadevolinclma + + -2 + -2 + refa_qteconomiasfaturadasma + + -2 + -2 + refa_qtdocsfaturadosoutrosma + + -2 + -2 + refa_vlfaturadoaguama + + -2 + -2 + refa_vlfaturadoaesgotoma + + -2 + -2 + refa_vldocsfaturadoscreditoma + + -2 + -2 + refa_vldocsfaturadosoutrosma + + -2 + -2 + refa_vldocsfaturadoguiapagma + + -2 + -2 + refa_vldocsfaturadosoutrosdevolucaoma + + -2 + -2 + refa_vlfinanincluidoma + + -2 + -2 + refa_vlfinancanceladoma + + -2 + -2 + refa_vljurosparcelamentoma + + -2 + -2 + refa_vlcreditoscobindevcanma + + -2 + -2 + refa_vlparcelamentoscanma + + -2 + -2 + refa_vlcreditoscobindevincma + + -2 + -2 + refa_vlinclusoesaofaturamentoma + + -2 + -2 + refa_vlcancelamentosaofaturamentoma + + -2 + -2 + refa_faturamento_brutoma + + -2 + -2 + refa_faturamento_liquidoma + + -2 + -2 + dmlo_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmse_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmct_id + + -2 + -2 + dmdt_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmft_id + + -2 + -2 + dmdi_id + + -2 + -2 + dmco_id + + -2 + -2 + dmit_id + + -2 + -2 + refa_amreferencia + + -2 + -2 + refa_amreferenciama + + -2 + -2 + dmtp_id + + -2 + -2 + dmtp_id_ma + + -2 + -2 + refa_qtcontasemitidas + + -2 + -2 + refa_qtcontasemitidasma + + -2 + -2 + N + + + 768 + 224 + Y + + + + + dimen_tempo + TableInput + + N + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 592 + 112 + Y + + + + + fato_indicardor_faturamento + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_indicardor_faturamento
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 944 + 224 + Y + + + + + medidas null + IfNull + + Y + + 1 + + none + + + + + Y + N + N + + + + + refa_vofaturadoagua + 0 + + N + + + refa_vofaturadoesgoto + 0 + + N + + + refa_qtdocsfaturadoscredito + 0 + + N + + + refa_vlimposto + 0 + + N + + + refa_vldescincondcan + 0 + + N + + + refa_vlguiadevolcancel + 0 + + N + + + refa_vldescincondinc + 0 + + N + + + refa_vlguiadevolincl + 0 + + N + + + refa_qteconomiasfaturadas + 0 + + N + + + refa_qtdocsfaturadosoutros + 0 + + N + + + refa_vlfaturadoagua + 0 + + N + + + refa_vlfaturadoaesgoto + 0 + + N + + + refa_vldocsfaturadoscredito + 0 + + N + + + refa_vldocsfaturadosoutros + 0 + + N + + + refa_vldocsfaturadoguiapag + 0 + + N + + + refa_vldocsfaturadosoutrosdevolucao + 0 + + N + + + refa_vlfinanincluido + 0 + + N + + + refa_vlfinancancelado + 0 + + N + + + refa_vljurosparcelamento + 0 + + N + + + refa_vlcreditoscobindevcan + 0 + + N + + + refa_vlparcelamentoscan + 0 + + N + + + refa_vlcreditoscobindevinc + 0 + + N + + + refa_vlinclusoesaofaturamento + 0 + + N + + + refa_vlcancelamentosaofaturamento + 0 + + N + + + refa_faturamento_bruto + 0 + + N + + + refa_faturamento_liquido + 0 + + N + + + refa_vofaturadoaguama + 0 + + N + + + refa_vofaturadoesgotoma + 0 + + N + + + refa_qtdocsfaturadoscreditoma + 0 + + N + + + refa_vlimpostoma + 0 + + N + + + refa_vldescincondcanma + 0 + + N + + + refa_vlguiadevolcancelma + 0 + + N + + + refa_vldescincondincma + 0 + + N + + + refa_vlguiadevolinclma + 0 + + N + + + refa_qteconomiasfaturadasma + 0 + + N + + + refa_qtdocsfaturadosoutrosma + 0 + + N + + + refa_vlfaturadoaguama + 0 + + N + + + refa_vlfaturadoaesgotoma + 0 + + N + + + refa_vldocsfaturadoscreditoma + 0 + + N + + + refa_vldocsfaturadosoutrosma + 0 + + N + + + refa_vldocsfaturadoguiapagma + 0 + + N + + + refa_vldocsfaturadosoutrosdevolucaoma + 0 + + N + + + refa_vlfinanincluidoma + 0 + + N + + + refa_vlfinancanceladoma + 0 + + N + + + refa_vljurosparcelamentoma + 0 + + N + + + refa_vlcreditoscobindevcanma + 0 + + N + + + refa_vlparcelamentoscanma + 0 + + N + + + refa_vlcreditoscobindevincma + 0 + + N + + + refa_vlinclusoesaofaturamentoma + 0 + + N + + + refa_vlcancelamentosaofaturamentoma + 0 + + N + + + refa_faturamento_brutoma + 0 + + N + + + refa_faturamento_liquidoma + 0 + + N + + + + + 288 + 224 + Y + + + + + metadados + SelectValues + + Y + + 1 + + none + + + N + refa_vofaturadoagua + refa_vofaturadoagua + Integer + 15 + 0 + + false + + + false + + + + + + refa_vofaturadoesgoto + refa_vofaturadoesgoto + Integer + 15 + 0 + + false + + + false + + + + + + refa_qtdocsfaturadoscredito + refa_qtdocsfaturadoscredito + Integer + 15 + 0 + + false + + + false + + + + + + refa_vlimposto + refa_vlimposto + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldescincondcan + refa_vldescincondcan + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlguiadevolcancel + refa_vlguiadevolcancel + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldescincondinc + refa_vldescincondinc + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlguiadevolincl + refa_vlguiadevolincl + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_qteconomiasfaturadas + refa_qteconomiasfaturadas + Integer + 15 + 0 + + false + + + false + + + + + + refa_qtdocsfaturadosoutros + refa_qtdocsfaturadosoutros + Integer + 15 + 0 + + false + + + false + + + + + + refa_vlfaturadoagua + refa_vlfaturadoagua + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlfaturadoaesgoto + refa_vlfaturadoaesgoto + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadoscredito + refa_vldocsfaturadoscredito + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadosoutros + refa_vldocsfaturadosoutros + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadoguiapag + refa_vldocsfaturadoguiapag + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadosoutrosdevolucao + refa_vldocsfaturadosoutrosdevolucao + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlfinanincluido + refa_vlfinanincluido + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlfinancancelado + refa_vlfinancancelado + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vljurosparcelamento + refa_vljurosparcelamento + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlcreditoscobindevcan + refa_vlcreditoscobindevcan + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlparcelamentoscan + refa_vlparcelamentoscan + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlcreditoscobindevinc + refa_vlcreditoscobindevinc + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlinclusoesaofaturamento + refa_vlinclusoesaofaturamento + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlcancelamentosaofaturamento + refa_vlcancelamentosaofaturamento + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_faturamento_bruto + refa_faturamento_bruto + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_faturamento_liquido + refa_faturamento_liquido + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vofaturadoaguama + refa_vofaturadoaguama + Integer + 15 + 0 + + false + + + false + + + + + + refa_vofaturadoesgotoma + refa_vofaturadoesgotoma + Integer + 15 + 0 + + false + + + false + + + + + + refa_qtdocsfaturadoscreditoma + refa_qtdocsfaturadoscreditoma + Integer + 15 + 0 + + false + + + false + + + + + + refa_vlimpostoma + refa_vlimpostoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldescincondcanma + refa_vldescincondcanma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlguiadevolcancelma + refa_vlguiadevolcancelma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldescincondincma + refa_vldescincondincma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlguiadevolinclma + refa_vlguiadevolinclma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_qteconomiasfaturadasma + refa_qteconomiasfaturadasma + Integer + 15 + 0 + + false + + + false + + + + + + refa_qtdocsfaturadosoutrosma + refa_qtdocsfaturadosoutrosma + Integer + 15 + 0 + + false + + + false + + + + + + refa_vlfaturadoaguama + refa_vlfaturadoaguama + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlfaturadoaesgotoma + refa_vlfaturadoaesgotoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadoscreditoma + refa_vldocsfaturadoscreditoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadosoutrosma + refa_vldocsfaturadosoutrosma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadoguiapagma + refa_vldocsfaturadoguiapagma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vldocsfaturadosoutrosdevolucaoma + refa_vldocsfaturadosoutrosdevolucaoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlfinanincluidoma + refa_vlfinanincluidoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlfinancanceladoma + refa_vlfinancanceladoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vljurosparcelamentoma + refa_vljurosparcelamentoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlcreditoscobindevcanma + refa_vlcreditoscobindevcanma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlparcelamentoscanma + refa_vlparcelamentoscanma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlcreditoscobindevincma + refa_vlcreditoscobindevincma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlinclusoesaofaturamentoma + refa_vlinclusoesaofaturamentoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_vlcancelamentosaofaturamentoma + refa_vlcancelamentosaofaturamentoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_faturamento_brutoma + refa_faturamento_brutoma + BigNumber + 15 + 2 + + false + + + false + + + + + + refa_faturamento_liquidoma + refa_faturamento_liquidoma + BigNumber + 15 + 2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + 0 + + false + + + false + + + + + + dmpt_id + dmpt_id + Integer + 15 + 0 + + false + + + false + + + + + + dmsa_id + dmsa_id + Integer + 15 + 0 + + false + + + false + + + + + + dmse_id + dmse_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcs_id + dmcs_id + Integer + 15 + 0 + + false + + + false + + + + + + dmct_id + dmct_id + Integer + 15 + 0 + + false + + + false + + + + + + dmdt_id + dmdt_id + Integer + 15 + 0 + + false + + + false + + + + + + dmgr_id + dmgr_id + Integer + 15 + 0 + + false + + + false + + + + + + dmft_id + dmft_id + Integer + 15 + 0 + + false + + + false + + + + + + dmdi_id + dmdi_id + Integer + 15 + 0 + + false + + + false + + + + + + dmco_id + dmco_id + Integer + 15 + 0 + + false + + + false + + + + + + dmit_id + dmit_id + Integer + 15 + 0 + + false + + + false + + + + + + refa_amreferencia + refa_amreferencia + Integer + 15 + -2 + + false + + + false + + + + + + refa_amreferenciama + refa_amreferenciama + Integer + 15 + -2 + + false + + + false + + + + + + dmtp_id + dmtp_id + Integer + 15 + 0 + + false + + + false + + + + + + dmtp_id_ma + dmtp_id_ma + Integer + 15 + 0 + + false + + + false + + + + + + refa_qtcontasemitidas + refa_qtcontasemitidas + Integer + 15 + -2 + + false + + + false + + + + + + refa_qtcontasemitidasma + refa_qtcontasemitidasma + Integer + 15 + -2 + + false + + + false + + + + + + + + 832 + 224 + Y + + + + + refa_amreferencia + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + refa_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 544 + 224 + Y + + + + + refa_amreferenciama + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + refa_amreferenciama + anomes + + + dmtp_id + dmtp_id_ma + + None + + + + + 688 + 224 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_leitura_anormalidade.ktr b/gerencial_pentaho-master/PDI/ktr_fato_leitura_anormalidade.ktr new file mode 100644 index 0000000..92475a2 --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_leitura_anormalidade.ktr @@ -0,0 +1,1501 @@ + + + + ktr_fato_leitura_anormalidade + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempoY + lookup_tempolookup_medicao_tipoY + Select valuesfato_leitura_anormalidadeY + localidadelookup_localizacaoY + lookup_situacao_agualookup_localizacaoY + lookup_localizacaolookup_tempoY + un_res_lt_anormlookup_cliente_tipoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + dimen_medicao_tipolookup_medicao_tipoY + lookup_medicao_tipolookup_leitura_situacaoY + dimen_leitura_situacaolookup_leitura_situacaoY + dimen_leitura_anormalidadelookup_leitura_anormalidadeY + dimen_empresalookup_empresaY + lookup_leitura_anormalidadelookup_empresaY + lookup_leitura_situacaolookup_leitura_anormalidadeY + lookup_empresarelt_idY + relt_idCalculatorY + CalculatorSelect valuesY + + + Calculator + Calculator + + Y + + 1 + + none + + + relt_id +ADD +relt +id + +Integer +-1 +-1 +N + + + + + + + + 502 + 242 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + relt_amreferencia + + -2 + -2 + relt_qtleituraseanorminformada + + -2 + -2 + relt_qtleituras + + -2 + -2 + relt_qtvisitas_realizadas + + -2 + -2 + relt_qtleituras_efetuadas + + -2 + -2 + relt_qtleituras_com_anormalidade_hidrometro + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmmt_id + + -2 + -2 + dmls_id + + -2 + -2 + dmla_id + + -2 + -2 + dmem_id + + -2 + -2 + relt_id + + -2 + -2 + N + + + 192 + 240 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 178 + 35 + Y + + + + + dimen_empresa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmem_id , empr_id , empr_nmempresa FROM gerencial_cagepa.dimen_empresa + 0 + + N + N + N + + + 749 + 345 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 616 + 35 + Y + + + + + dimen_leitura_anormalidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmla_id , ltan_id , ltan_dsleituraanormalidade , ltan_idanormalidadeinformada , ltan_dsleituraanormalidadeinformada FROM gerencial_cagepa.dimen_leitura_anormalidade + 0 + + N + N + N + + + 899 + 332 + Y + + + + + dimen_leitura_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmls_id , ltst_id , ltst_dsleiturasituacao FROM gerencial_cagepa.dimen_leitura_situacao + 0 + + N + N + N + + + 1048 + 330 + Y + + + + + dimen_medicao_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmmt_id , medt_id , medt_dsmedicaotipo FROM gerencial_cagepa.dimen_medicao_tipo + 0 + + N + N + N + + + 1200 + 319 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada , dmsa_icligacaofaturada_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc , dmse_icvlexcedente FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 478 + 22 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + fato_leitura_anormalidade + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_leitura_anormalidade
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + fato_id + + + + + 59 + 245 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 173 + 135 + Y + + + + + lookup_empresa + StreamLookup + + Y + + 1 + + none + + + dimen_empresa + N + Y + N + N + + + empr_id + empr_id + + + dmem_id + dmem_id + + None + + + + + 761 + 242 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_leitura_anormalidade + StreamLookup + + Y + + 1 + + none + + + dimen_leitura_anormalidade + N + Y + N + N + + + ltan_id + ltan_id + + + ltan_idanormalidadeinformada + ltan_idanormalidadeinformada + + + dmla_id + dmla_id + + None + + + + + 895 + 238 + Y + + + + + lookup_leitura_situacao + StreamLookup + + Y + + 1 + + none + + + dimen_leitura_situacao + N + Y + N + N + + + ltst_id + ltst_id + + + dmls_id + dmls_id + + None + + + + + 1044 + 239 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1072 + 142 + Y + + + + + lookup_medicao_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_medicao_tipo + N + Y + N + N + + + medt_id + medt_id + + + dmmt_id + dmmt_id + + None + + + + + 1193 + 238 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 137 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + Y + N + + + last_id + last_id + + + lapf_id + lapf_id + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 484 + 137 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + relt_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + relt_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + relt_seq + Y + + 1 + 1 + 999999999 + + + 678 + 243 + Y + + + + + un_res_lt_anorm + TableInput + + N + + 1 + + none + + + comercial_gsan + ------ ------Gera tabela fato de anormalidade de leitura --------------------------- ------VERSAO CAGEPA EM 05/02/2016 SELECT --5000 as relt, ${max} as relt, --dimen_tempo-- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento -1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as relt_amreferencia, --dimen_localizacao-- loc.greg_id, loc.uneg_id, imo.loca_id, loc.loca_cdelo, imo.stcm_id, sc.stcm_cdsetorcomercial, imo.qdra_id, qd.qdra_nnquadra, case when qd.arti_id is null then 0 else qd.arti_id END as arti_id, qd.rota_id, ftgr_id, --dimen_geografia-- coalesce(sc.muni_id,9999) as muni_id, coalesce(qd.bair_id,9999) as bair_id, --ddimen_perfil_imovel_tarifa-- iper_id, cstf_id, --dimen_situacao_agua-- coalesce(last_id,9999) as last_id, coalesce(lapf_id,9999) as lapf_id, --dimen_situacao_esgoto-- coalesce(lest_id,9999) as lest_id, coalesce(lepf_id,9999) as lepf_id, --dimen_medicao_tipo-- mdhi_id, medt_id, --dimen_empresa-- rt.empr_id, --dimen_categoria-- (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = imo.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id , (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = imo.imov_id order by imsb_qteconomia desc limit 1) as scat_id, --dimen_cliente_tipo-- CASE WHEN ep.epod_id IS NOT NULL THEN ep.epod_id ELSE 0 END as epod_id, CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 0 END as cltp_id, --dimen_leitura_situacao-- mh.ltst_idleiturasituacaoatual as ltst_id, --dimen_leitura_anormalidade-- coalesce(mh.ltan_idleituraanormalidadefatu,9999) as ltan_id, coalesce(mh.ltan_idleituraanormalidadeinfo,9999) as ltan_idanormalidadeinformada, -- now() as data_ultima_alteracao, -- --Medidas-- count(case when coalesce(mh.ltan_idleituraanormalidadeinfo,0) > 0 then 1 end) as relt_qtleituraseanorminformada, count(mdhi_nnleituraatualinformada) as relt_qtleituras, sum(CASE WHEN coalesce(mdhi_nnleituraatualinformada,0) > 0 OR mh.ltan_idleituraanormalidadefatu is not null THEN (case when coalesce(mdhi_nnleituraatualinformada,0) > 0 then 1 else 0 end) ELSE 0 END) AS relt_qtvisitas_realizadas, sum(CASE WHEN mh.ltst_idleiturasituacaoatual not in (2) THEN (case when coalesce(mdhi_nnleituraatualinformada,0) > 0 then 1 else 0 end) ELSE 0 END) AS relt_qtleituras_efetuadas, sum(CASE WHEN mh.ltan_idleituraanormalidadefatu is not null AND ltan.ltan_icrelativohidrometro = 1 THEN (case when coalesce(mdhi_nnleituraatualinformada,0) > 0 then 1 else 0 end) ELSE 0 END) AS relt_qtleituras_com_anormalidade_hidrometro FROM gsan_admin.imovel imo inner join gsan_admin.localidade loc on loc.loca_id = imo.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = imo.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = imo.qdra_id inner join gsan_admin.rota rt on rt.rota_id = qd.rota_id inner join gsan_admin.leiturista lt on lt.leit_id = rt.leit_id left join gsan_admin.ligacao_agua la on la.lagu_id = imo.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = imo.imov_id inner join gsan_admin.medicao_historico mh on mh.lagu_id = imo.imov_id left join gsan_admin.leitura_anormalidade ltan on ltan.ltan_id=mh.ltan_idleituraanormalidadeinfo inner join gsan_admin.sistema_parametros on 1=1 -----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- INNER join gsan_admin.cliente_imovel cir ON imo.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL inner join gsan_admin.cliente ci ON ci.clie_id =cir.clie_id inner join gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id inner join gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id --------------------------------------------------------------------------------------------------------------------------- WHERE mh.mdhi_amleitura = parm_amreferenciafaturamento -1 and imo.imov_icexclusao = 2 group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 --------------------------------------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 48 + 96 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_parcelamento.ktr b/gerencial_pentaho-master/PDI/ktr_fato_parcelamento.ktr new file mode 100644 index 0000000..71793fb --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_parcelamento.ktr @@ -0,0 +1,1679 @@ + + + + ktr_fato_parcelamento + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + lookup_situacao_agualookup_localizacaoY + localidadelookup_localizacaoY + lookup_localizacaolookup_tempoY + repa_idCalculatorY + CalculatorSelect valuesY + Select valuesfato_parcelamentoY + lookup_temporepa_idY + Table inputGroup byY + Group bylookup_cliente_tipoY + + + Calculator + Calculator + + Y + + 1 + + none + + + repa_id +ADD +repa +id + +Integer +-1 +-1 +N + + + + + + + + 1136 + 240 + Y + + + + + Group by + GroupBy + + Y + + 1 + + none + + + N + N + + %%java.io.tmpdir%% + grp + N + + N + + + repa + + + repa_amreferencia + + + greg_id + + + uneg_id + + + loca_id + + + loca_cdelo + + + stcm_id + + + stcm_cdsetorcomercial + + + rota_id + + + rota_cdrota + + + qdra_id + + + qdra_nnquadra + + + arti_id + + + muni_id + + + bair_id + + + iper_id + + + last_id + + + lest_id + + + lapf_id + + + lepf_id + + + cstf_id + + + epod_id + + + cltp_id + + + catg_id + + + scat_id + + + repa_ichidrometro + + + + + repa_vlcontas + repa_vlcontas + SUM + + + + repa_vlguias + repa_vlguias + SUM + + + + repa_vlcreditos + repa_vlcreditos + SUM + + + + repa_vldescacrescimo + repa_vldescacrescimo + SUM + + + + repa_vlservicosacobrar + repa_vlservicosacobrar + SUM + + + + repa_vlatualizacaomonetaria + repa_vlatualizacaomonetaria + SUM + + + + repa_vljurosmora + repa_vljurosmora + SUM + + + + repa_vlmulta + repa_vlmulta + SUM + + + + repa_vldebitoatualizado + repa_vldebitoatualizado + SUM + + + + repa_vlentrada + repa_vlentrada + SUM + + + + repa_vljurosparcelamento + repa_vljurosparcelamento + SUM + + + + repa_vlprestacao + repa_vlprestacao + SUM + + + + repa_vldescantiguidade + repa_vldescantiguidade + SUM + + + + repa_vldescinatividade + repa_vldescinatividade + SUM + + + + repa_vldebitosacobrartotal + repa_vldebitosacobrartotal + SUM + + + + repa_vlacrescimoimpontualidade + repa_vlacrescimoimpontualidade + SUM + + + + repa_vldebacobrarparcelamentos + repa_vldebacobrarparcelamentos + SUM + + + + repa_qttotalparcelas + repa_qttotalparcelas + SUM + + + + repa_qtreparcelamentos + repa_qtreparcelamentos + SUM + + + + repa_vlatualizmonetsucumbant + repa_vlatualizmonetsucumbant + SUM + + + + repa_vljurosmorasucumbant + repa_vljurosmorasucumbant + SUM + + + + repa_vlsucumbenciaanterior + repa_vlsucumbenciaanterior + SUM + + + + repa_vlsucumbenciaatual + repa_vlsucumbenciaatual + SUM + + + + repa_vldiligencias + repa_vldiligencias + SUM + + + + repa_vlnegociado + repa_vlnegociado + SUM + + + + repa_vlparcelado + repa_vlparcelado + SUM + + + + repa_vlsucumbenciaatualep + repa_vlsucumbenciaatualep + SUM + + + + repa_nnparcelassucumbencia + repa_nnparcelassucumbencia + SUM + + + + repa_pcdescontocorrmonetaria + repa_pcdescontocorrmonetaria + SUM + + + + repa_pcdescontojurosmora + repa_pcdescontojurosmora + SUM + + + + repa_pcdescontomulta + repa_pcdescontomulta + SUM + + + + repa_vlservicosindiretos + repa_vlservicosindiretos + SUM + + + + repa_vldebacobrarreligsancoes + repa_vldebacobrarreligsancoes + SUM + + + + repa_vldebacobraracrescimos + repa_vldebacobraracrescimos + SUM + + + + repa_qtparcelamentos + repa_qtparcelamentos + SUM + + + + repa_qtcontas + repa_qtcontas + SUM + + + + repa_qtguias + repa_qtguias + SUM + + + + repa_qtdebitoacobrar + repa_qtdebitoacobrar + SUM + + + + + + 96 + 128 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + repa_id + + -2 + -2 + repa_amreferencia + + -2 + -2 + repa_ichidrometro + + -2 + -2 + repa_vlcontas + + -2 + -2 + repa_vlguias + + -2 + -2 + repa_vlcreditos + + -2 + -2 + repa_vldescacrescimo + + -2 + -2 + repa_vlservicosacobrar + + -2 + -2 + repa_vlatualizacaomonetaria + + -2 + -2 + repa_vljurosmora + + -2 + -2 + repa_vlmulta + + -2 + -2 + repa_vldebitoatualizado + + -2 + -2 + repa_vlentrada + + -2 + -2 + repa_vljurosparcelamento + + -2 + -2 + repa_vlprestacao + + -2 + -2 + repa_vldescantiguidade + + -2 + -2 + repa_vldescinatividade + + -2 + -2 + repa_vldebitosacobrartotal + + -2 + -2 + repa_vlacrescimoimpontualidade + + -2 + -2 + repa_vldebacobrarparcelamentos + + -2 + -2 + repa_vlservicosindiretos + + -2 + -2 + repa_vldebacobrarreligsancoes + + -2 + -2 + repa_vldebacobraracrescimos + + -2 + -2 + repa_qtparcelamentos + + -2 + -2 + repa_qttotalparcelas + + -2 + -2 + repa_qtreparcelamentos + + -2 + -2 + repa_qtcontas + + -2 + -2 + repa_qtguias + + -2 + -2 + repa_qtdebitoacobrar + + -2 + -2 + repa_vlatualizmonetsucumbant + + -2 + -2 + repa_vljurosmorasucumbant + + -2 + -2 + repa_vlsucumbenciaanterior + + -2 + -2 + repa_vlsucumbenciaatual + + -2 + -2 + repa_vldiligencias + + -2 + -2 + repa_vlnegociado + + -2 + -2 + repa_vlparcelado + + -2 + -2 + repa_vlsucumbenciaatualep + + -2 + -2 + repa_nnparcelassucumbencia + + -2 + -2 + repa_pcdescontocorrmonetaria + + -2 + -2 + repa_pcdescontojurosmora + + -2 + -2 + repa_pcdescontomulta + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + N + + + 1072 + 240 + Y + + + + + Table input + TableInput + + Y + + 1 + + none + + + comercial_gsan + ------------------------------------------------------------- --------Gerar tabela FATO dos Parcelamentos Realizados no Mês --------Versão CAGEPA em 05/02/2016-------------------------- ------------------------------------------------------------- Select --0 as repa, ${max} as repa, pc.parc_id, pc.repa_amreferencia, -- Dimen_tempo Ano/Mes greg_id, -- Dimen_localização uneg_id, -- Dimen_localização pc.loca_id, -- Dimen_localização loca_cdelo, -- Dimen_localização pc.stcm_id, -- Dimen_localização sc.stcm_cdsetorcomercial, -- Dimen_localização qd.rota_id, -- Dimen_localização rota_cdrota, -- Dimen_localização qd.qdra_id, -- Dimen_localização qd.qdra_nnquadra, -- Dimen_localização coalesce(qd.arti_id,0) as arti_id, -- Dimen_localização sc.muni_id, --Dimen_geografia qd.bair_id, -- Dimen_geografia pc.iper_id, pc.last_id, pc.lest_id, pc.lapf_id, pc.lepf_id, cstf_id, pc.epod_id, pc.cltp_id, pc.catg_id, pc.scat_id, pc.repa_ichidrometro, --26 ---------------MEDIDAS DE VALORES PARCELAMENTO--------------------------------------------------------- pc.repa_vlcontas, pc.repa_vlguias, pc.repa_vlcreditos, pc.repa_vldescacrescimo, pc.repa_vlservicosacobrar, pc.repa_vlatualizacaomonetaria, pc.repa_vljurosmora, pc.repa_vlmulta, pc.repa_vldebitoatualizado, pc.repa_vlentrada, pc.repa_vljurosparcelamento, pc.repa_vlprestacao, pc.repa_vldescantiguidade, pc.repa_vldescinatividade, pc.repa_vldebitosacobrartotal, pc.repa_vlacrescimoimpontualidade, pc.repa_vldebacobrarparcelamentos, --43 --------------MEDIDAS DE QUANTIDADE------------------------------------------------- pc.repa_qttotalparcelas, pc.repa_qtreparcelamentos, -- 45 --------------MEDIDAS DE VALORES/QTDE/PERCENTUAIS ESPECÍFICOS DA CAGEPA--------- pc.repa_vlatualizmonetsucumbant, pc.repa_vljurosmorasucumbant, pc.repa_vlsucumbenciaanterior, pc.repa_vlsucumbenciaatual, pc.repa_vldiligencias, pc.repa_vlnegociado, pc.repa_vlparcelado, pc.repa_vlsucumbenciaatualep, pc.repa_nnparcelassucumbencia, pc.repa_pcdescontocorrmonetaria, pc.repa_pcdescontojurosmora, pc.repa_pcdescontomulta, --56 ---------------MEDIDAS DE VALORES PARCELAMENTO_ITEM--------------------------------------------------------- sum(case when dac.dbac_id is not null and lict_id not in (2,3) then coalesce(dbac_vldebito,0) end) as repa_vlservicosindiretos, sum(case when dac.dbac_id is not null and lict_id = 3 then coalesce(dbac_vldebito,0) end) as repa_vldebacobrarreligsancoes, sum(case when dac.dbac_id is not null and lict_id = 2 then coalesce(dbac_vldebito,0) end) as repa_vldebacobraracrescimos, --------------MEDIDAS DE QUANTIDADE_ITEM------------------------------------------------- count(distinct pc.parc_id) as repa_qtparcelamentos, count(case when pi.cnta_id is not null then 1 end) as repa_qtcontas, count(case when pi.gpag_id is not null then 1 end) as repa_qtguias, count(case when pi.dbac_id is not null then 1 end) as repa_qtdebitoacobrar from (select ------------DIMENSÕES----------------------------------------- parc_id, case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end as repa_amreferencia, im.loca_id, im.qdra_id, im.stcm_id, im.iper_id, im.last_id, im.lest_id, coalesce(lapf_id,0) as lapf_id, coalesce(lepf_id,0) as lepf_id, cstf_id, coalesce(ct.epod_id,0) as epod_id, coalesce(ct.cltp_id,0) as cltp_id, (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id, (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as scat_id, Case when la.hidi_id is not null then 1 else 2 end repa_ichidrometro, ---------------MEDIDAS DE VALORES PARCELAMENTO--------------------------------------------------------- sum(parc_vlconta) as repa_vlcontas, sum(parc_vlguiapapagamento) as repa_vlguias, sum(parc_vlcreditoarealizar) as repa_vlcreditos, sum(parc_vldescontoacrescimos) as repa_vldescacrescimo, sum(parc_vlservicosacobrar) as repa_vlservicosacobrar, sum(parc_vlatualizacaomonetaria) as repa_vlatualizacaomonetaria, sum(parc_vljurosmora) as repa_vljurosmora, sum(parc_vlmulta) as repa_vlmulta, sum(parc_vldebitoatualizado) as repa_vldebitoatualizado, sum(parc_vlentrada) as repa_vlentrada, sum(parc_vljurosparcelamento) as repa_vljurosparcelamento, sum(parc_vlprestacao) as repa_vlprestacao, sum(parc_vldescontoantiguidade) as repa_vldescantiguidade, sum(parc_vldescontoinatividade) as repa_vldescinatividade, sum(parc_nnprestacoes * parc_vlprestacao) as repa_vldebitosacobrartotal, --sum(parc_vlservicosacobrar) as repa_vlservicosacobrar, sum(parc_vlatualizacaomonetaria + parc_vljurosmora + parc_vlmulta) as repa_vlacrescimoimpontualidade, sum(parc_vlparcelamentosacobrar) as repa_vldebacobrarparcelamentos, --------------MEDIDAS DE QUANTIDADE------------------------------------------------- sum(coalesce(parc_nnprestacoes,0)) as repa_qttotalparcelas, count(Case when parc_vlparcelamentosacobrar > 0 then 1 end) as repa_qtreparcelamentos, --------------MEDDIDAS DE VALORES/QTDE/PERCENTUAIS ESPECÍFICOS DA CAGEPA--------- sum(coalesce(parc_vlatualizmonetsucumbant,0)) as repa_vlatualizmonetsucumbant, sum(coalesce(parc_vljurosmorasucumbant,0)) as repa_vljurosmorasucumbant, sum(coalesce(parc_vlsucumbenciaanterior,0)) as repa_vlsucumbenciaanterior, sum(coalesce(parc_vlsucumbenciaatual,0)) as repa_vlsucumbenciaatual, sum(coalesce(parc_vldiligencias,0)) as repa_vldiligencias, sum(coalesce(parc_vlnegociado,0)) as repa_vlnegociado, sum(coalesce(parc_vlparcelado,0)) as repa_vlparcelado, sum(coalesce(parc_vlsucumbenciaatualep,0)) as repa_vlsucumbenciaatualep, sum(coalesce(parc_nnparcelassucumbencia,0)) as repa_nnparcelassucumbencia, sum(coalesce(parc_pcdescontocorrmonetaria,0)) as repa_pcdescontocorrmonetaria, sum(coalesce(parc_pcdescontojurosmora,0)) as repa_pcdescontojurosmora, sum(coalesce(parc_pcdescontomulta,0)) as repa_pcdescontomulta --------------TABELAS RELACIONADAS-------------------------------------------------- from gsan_admin.parcelamento pc inner join gsan_admin.sistema_parametros on 1 = 1 inner join gsan_admin.imovel im on im.imov_id = pc.imov_id and imov_icexclusao = 2 left join gsan_admin.ligacao_agua la on la.lagu_id = im.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = im.imov_id -----------Tabelas para recuperar a esfera de poder e tipo do cliente----------------------------------------------------------------------------- left join gsan_admin.cliente_imovel cir on cir.imov_id = im.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL left join gsan_admin.cliente ci on ci.clie_id = cir.clie_id left join gsan_admin.cliente_tipo ct on ct.cltp_id = ci.cltp_id where pcst_id = 1 and parc_amreferenciafaturamento = case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 ---------------------------------------------------------------------------------- ) as pc inner join gsan_admin.parcelamento_item pi on pi.parc_id = pc.parc_id left join gsan_admin.debito_a_cobrar dac on dac.dbac_id = pi.dbac_id inner join gsan_admin.quadra qd on qd.qdra_id = pc.qdra_id inner join gsan_admin.rota rt on rt.rota_id = qd.rota_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = pc.stcm_id inner join gsan_admin.localidade lo on lo.loca_id = pc.loca_id group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30, 31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58 -------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 96 + 224 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 189 + 36 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 618 + 35 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmsa_id , last_id , dmsa_icvolumefixadoagua , dmsa_ichidrometro , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_icpoco , dmsa_ichidrometropoco FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 504 + 31 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + fato_parcelamento + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_parcelamento
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + fato_id + + + + + 976 + 240 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 188 + 135 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + loca_cdelo + loca_cdelo + + + stcm_id + stcm_id + + + rota_id + rota_id + + + qdra_id + qdra_id + + + dmlo_id + dmlo_id + + None + + + + + 1077 + 138 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + N + N + + + last_id + last_id + + + lapf_id + lapf_id + + + repa_ichidrometro + dmsa_ichidrometro + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 501 + 139 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + repa_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1199 + 140 + Y + + + + + repa_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + relt_seq + Y + + 1 + 1 + 999999999 + + + 1200 + 240 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_resumo_arrecadacao.ktr b/gerencial_pentaho-master/PDI/ktr_fato_resumo_arrecadacao.ktr new file mode 100644 index 0000000..f8f467f --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_resumo_arrecadacao.ktr @@ -0,0 +1,2324 @@ + + + + ktr_fato_resumo_arrecadacao + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_dw_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempo_geracaoY + Dimensao Documento Tipolookup_documento_tipoY + dimen_tempolookup_tempo _documentoY + lookup_tempo_geracaolookup_tempo _documentoY + lookup_tempo _documentolookup_documento_tipoY + lookup_situacao_agualookup_tempo_geracaoY + Select valuesfato_arrecadacaoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + localidadelookup_localizacaoY + lookup_documento_tipolookup_localizacaoY + fianciamento_tipolookup_financiamentoY + arrecadacao_formalookup_arrecadacao_formaY + lookup_financiamentolookup_arrecadacao_formaY + dimen_debito_lancamento_itemlookup_dimen_debito_lancamento_creditoY + lookup_arrecadacao_formalookup_dimen_debito_lancamento_creditoY + lookup_dimen_debito_lancamento_creditolookup_dimen_debito_lancamento_outrosY + dimen_debito_lancamento_itemlookup_dimen_debito_lancamento_outrosY + dimen_credito_origemlookup_credito_origem_creditoY + lookup_dimen_debito_lancamento_outroslookup_credito_origem_creditoY + epoca_pagamentolookup_epoca_pagamentoY + lookup_credito_origem_creditolookup_epoca_pagamentoY + pagamento_situacaolookup_pagamento_situacaoY + lookup_epoca_pagamentolookup_pagamento_situacaoY + devolucao_situacaolookup_pagamento_situacao 2Y + lookup_pagamento_situacaolookup_pagamento_situacao 2Y + arrecadadorlookup_arrecadadorY + lookup_pagamento_situacao 2lookup_arrecadadorY + lookup_localizacaolookup_financiamentoY + recebida_meslookup_arrecadador 2Y + lookup_arrecadadorlookup_arrecadador 2Y + idCalculatorY + lookup_arrecadador 2idY + CalculatorSelect valuesY + Resumo arrecadacaoSubst NullY + Subst Nulllookup_cliente_tipoY + + + Calculator + Calculator + + Y + + 1 + + none + + + rear_id +ADD +rear +id + +Integer +-1 +-1 +N + + + + + + + + 64 + 672 + Y + + + + + Dimensao Documento Tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dotp_id , dotp_dsdocumentotipo , fxvl_id , fxvl_dsfaixavalor , icvencido , icvencido_desc , dmdt_id FROM gerencial_cagepa.dimen_documento_tipo + 0 + + N + N + N + + + 1048 + 252 + Y + + + + + Resumo arrecadacao + TableInput + + N + + 1 + + none + + + comercial_gsan + ------------------------------------------------------------------------------------------------ -- SQL versão CAGEPA - Gerar resumo arrecadacao para o módulo gerencial -- -- Autor - Claudio Lira - Em 11/11/2015 -- -- 01-Valor de água e esgoto -- -- 02-Valor de impostos -- -- 03-Valor de débito cobrado -- -- 04-Valor de Credito realizado -- -- 05 Valor de GUIA DE PAGAMENTO DE CLIENTE -- -- 06 Valor de GUIA DE PAGAMENTO DE IMÓVEL -- -- 07 Valor de debito a cobrar -- -- 08 Valor de pagamento não classificados -- -- 09 Valor de pagamento não classificados de cliente -- -- 10 Valor de devolucao classificada por imovel -- -- 11 Valor de devolucao nao classificada por imovel -- -- 12 Valor de devolucao classificada por cliente -- -- 13 Valor de devolucao nao classificada por cliente ---VERSÃO REVISADA EM 29/12/2015 -- ------------------------------------------------------------------------------------------------ ------------ 1*** Valor de agua e esgoto ****** (SELECT --0 as rear, ${max} as rear, pgmt_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, setor.stcm_id, rota.rota_id, tt.qdra_id, setor.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(setor.muni_id,9999) as muni_id, coalesce(quadra.bair_id,9999) as bair_id, tt.iper_id, tt.last_id, tt.lest_id, Case when contaCategoria.cnta_id is not null then contaCategoria.catg_id else contaCategoriaH.catg_id end, (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = tt.imov_id order by imsb_qteconomia desc limit 1) as scat_id, clienteTipo.epod_id, clienteTipo.cltp_id, coalesce(tt.lapf_id,0) as lapf_id, coalesce(tt.lepf_id,0) as lepf_id, ------------------------------Comparação de data do pagamento com data de vencimento da conta CASE WHEN anomes_pagamento <= anomes_vencimento THEN 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_dtpagamento <= cnta_dtvencimentoconta) THEN 0 ----até o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = anomes_vencimento THEN 1 ---após dia do vencimento mas no mês do vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+89) else (anomes_vencimento+1) end) THEN 2 ---1 mês após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+90) else (anomes_vencimento+2) end) THEN 3 ---2 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+91) else (anomes_vencimento+3) end) THEN 4 ---3 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 5 ---4 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento > (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 9 ---Mais de 4 mêses após o vencimento END as eppa_id, ----------------------------------------------------------------------------------------------------------- now() as rear_tmultimaalteracao, dotp_id, pgst_idatual, cast(null as integer) as crog_idcredito, cast(null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, arfm_id, arrc_id, cnta_amreferenciaconta as rear_amreferenciadocumento, CASE WHEN (tt.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rear_cdrota, '01-Valor de água e esgoto' as origem, ------------MEDIDAS-------------- SUM(case when contaCategoria.cnta_id is not null then contaCategoria.ctcg_vlagua else contaCategoriaH.ctch_vlagua end) as rear_vlagua, SUM(case when contaCategoria.cnta_id is not null then contaCategoria.ctcg_vlesgoto else contaCategoriaH.ctch_vlesgoto end) as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificadas, 0 as rear_vldevolucoesnaoclassif, sum (CASE WHEN contaCategoria.cnta_id is not null THEN CASE WHEN contaCategoria.catg_id = tt.catg_id and (contaCategoria.scat_id = 0 or contaCategoria.scat_id = tt.scat_id) THEN 1 ELSE 0 END ELSE CASE WHEN contaCategoriaH.catg_id = tt.catg_id and (contaCategoriaH.scat_id = 0 or contaCategoriaH.scat_id = tt.scat_id) THEN 1 ELSE 0 END END) as rear_qtcontas, sum (CASE WHEN contaCategoria.cnta_id is not null THEN CASE WHEN contaCategoria.catg_id = tt.catg_id and (contaCategoria.scat_id = 0 or contaCategoria.scat_id = tt.scat_id) THEN 1 ELSE 0 END ELSE CASE WHEN contaCategoriaH.catg_id = tt.catg_id and (contaCategoriaH.scat_id = 0 or contaCategoriaH.scat_id = tt.scat_id) THEN 1 ELSE 0 END END) as rear_qtpagamentos -----------TABELAS---------------- FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on avbc.avbc_id = tt.avbc_id LEFT JOIN gsan_admin.conta_categoria contaCategoria on contaCategoria.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.conta_categoria_historico contaCategoriaH on contaCategoriaH.cnta_id = tt.cnta_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = tt.loca_id INNER JOIN gsan_admin.quadra quadra on quadra.qdra_id = tt.qdra_id INNER JOIN gsan_admin.setor_comercial setor on setor.stcm_id = quadra.stcm_id INNER JOIN gsan_admin.rota on rota.rota_id = quadra.rota_id LEFT JOIN gsan_admin.cliente_conta clienteUsuario on clienteUsuario.crtp_id = 2 and clienteUsuario.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.cliente_conta_historico clienteUsuarioH on clienteUsuarioH.crtp_id = 2 and clienteUsuarioH.cnta_id = tt.cnta_id INNER JOIN gsan_admin.cliente cliente on cliente.clie_id = Case when clienteUsuario.clie_id is not null then clienteUsuario.clie_id else clienteUsuarioH.clie_id end INNER JOIN gsan_admin.cliente_tipo clienteTipo on clienteTipo.cltp_id = cliente.cltp_id WHERE pgst_idatual = 0 and (cnta_vlagua > 0 or cnta_vlesgoto > 0) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL ------------ 2*** Valor dos impostos ****** (SELECT --0 as rear, ${max} as rear, pgmt_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, setor.stcm_id, rota.rota_id, tt.qdra_id, setor.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(setor.muni_id,9999) as muni_id, coalesce(quadra.bair_id,9999) as bair_id, tt.iper_id, tt.last_id, tt.lest_id, tt.catg_id, tt.scat_id, clienteTipo.epod_id, clienteTipo.cltp_id, coalesce(tt.lapf_id,0) as lapf_id, coalesce(tt.lepf_id,0) as lepf_id, ------------------------------Comparação de data do pagamento com data de vencimento da conta CASE WHEN anomes_pagamento <= anomes_vencimento THEN 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_dtpagamento <= cnta_dtvencimentoconta) THEN 0 ----até o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = anomes_vencimento THEN 1 ---após dia do vencimento mas no mês do vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+89) else (anomes_vencimento+1) end) THEN 2 ---1 mês após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+90) else (anomes_vencimento+2) end) THEN 3 ---2 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+91) else (anomes_vencimento+3) end) THEN 4 ---3 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 5 ---4 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento > (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 9 ---Mais de 4 mêses após o vencimento END as eppa_id, ----------------------------------------------------------------------------------------------------------- now() as rear_tmultimaalteracao, dotp_id, pgst_idatual, cast(null as integer) as crog_idcredito, cast(null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, arfm_id, arrc_id, cnta_amreferenciaconta as rear_amreferenciadocumento, CASE WHEN (tt.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rear_cdrota, '02-Valor de impostos' as origem, --------------MEDIDAS--------------------------------------------------- 0 as rer_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, sum(cnta_vlimpostos) as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, 0 as rear_qtpagamentos ---------------TABELAS------------------------------------------------- FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id LEFT JOIN gsan_admin.conta_categoria contaCategoria on contaCategoria.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.conta_categoria_historico contaCategoriaH on contaCategoriaH.cnta_id = tt.cnta_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = tt.loca_id INNER JOIN gsan_admin.quadra quadra on quadra.qdra_id = tt.qdra_id INNER JOIN gsan_admin.setor_comercial setor on setor.stcm_id = quadra.stcm_id INNER JOIN gsan_admin.rota on rota.rota_id = quadra.rota_id --------------CLIENTE USUÁRIO------------------------------- LEFT JOIN gsan_admin.cliente_conta clienteUsuario on clienteUsuario.crtp_id = 2 and clienteUsuario.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.cliente_conta_historico clienteUsuarioH on clienteUsuarioH.crtp_id = 2 and clienteUsuarioH.cnta_id = tt.cnta_id INNER JOIN gsan_admin.cliente cliente on cliente.clie_id = Case when clienteUsuario.clie_id is not null then clienteUsuario.clie_id else clienteUsuarioH.clie_id end INNER JOIN gsan_admin.cliente_tipo clienteTipo on clienteTipo.cltp_id = cliente.cltp_id ------------------------------------------------------------- WHERE cnta_vlimpostos > 0 and pgst_idatual = 0 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL ------------ 3*** Debito Cobrado ****** (SELECT --0 as rear, ${max} as rear, pgmt_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, setor.stcm_id, rota.rota_id, tt.qdra_id, setor.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(setor.muni_id,9999) as muni_id, coalesce(quadra.bair_id,9999) as bair_id, tt.iper_id, tt.last_id, tt.lest_id, dccg.catg_id, tt.scat_id, clienteTipo.epod_id, clienteTipo.cltp_id, coalesce(lapf_id,0) as lapf_id, coalesce(lepf_id,0) as lepf_id, ------------------------------Comparação de data do pagamento com data de vencimento da conta CASE WHEN anomes_pagamento <= anomes_vencimento THEN 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_dtpagamento <= cnta_dtvencimentoconta) THEN 0 ----até o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = anomes_vencimento THEN 1 ---após dia do vencimento mas no mês do vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+89) else (anomes_vencimento+1) end) THEN 2 ---1 mês após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+90) else (anomes_vencimento+2) end) THEN 3 ---2 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+91) else (anomes_vencimento+3) end) THEN 4 ---3 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 5 ---4 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento > (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 9 ---Mais de 4 mêses após o vencimento END as eppa_id, ----------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------- now() as rear_tmultimaalteracao, dotp_id, pgst_idatual, cast(null as integer) as crog_idcredito, cast(null as integer) as lict_idcredito, Case when dbcb.cnta_id is not null then dbcb.fntp_id else dbcbH.fntp_id end as fntp_idoutros, Case when dbcb.cnta_id is not null then dbcb.lict_id else dbcbH.lict_id end as lict_idoutros, arfm_id, arrc_id, cnta_amreferenciaconta as rear_amreferenciadocumento, CASE WHEN (tt.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rear_cdrota, '03-Valor de débito cobrado' as origem, -------MEDIDAS------------------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, sum(Case when dbcb.cnta_id is not null then coalesce(dccg_vlcategoria,0) else coalesce(dcch_vlcategoria,0) end) as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, ----------- sum (CASE WHEN (cnta_vlagua = 0 and cnta_vlesgoto = 0) THEN CASE WHEN dbcb.dbcb_id is not null THEN CASE WHEN dccg.catg_id = tt.catg_id and (mindbcb.dbcb_id = dbcb.dbcb_id) THEN 1 ELSE 0 END ELSE CASE WHEN dccgH.catg_id = tt.catg_id and (mindbhi.dbhi_id = dbcbH.dbhi_id) THEN 1 ELSE 0 END END ELSE 0 END) as rear_qtcontas, sum (CASE WHEN (cnta_vlagua = 0 and cnta_vlesgoto = 0) THEN CASE WHEN dbcb.dbcb_id is not null THEN CASE WHEN dccg.catg_id = tt.catg_id and (mindbcb.dbcb_id = dbcb.dbcb_id) THEN 1 ELSE 0 END ELSE CASE WHEN dccgH.catg_id = tt.catg_id and (mindbhi.dbhi_id = dbcbH.dbhi_id) THEN 1 ELSE 0 END END ELSE 0 END) as rear_qtpagamentos ------------- -----------------TABELAS----------------- FROM gsan_admin.stage_paghist tt ----- LEFT JOIN gsan_admin.debito_cobrado dbcb on dbcb.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.debito_cobrado_historico dbcbH on dbcbH.cnta_id = tt.cnta_id ----- LEFT JOIN gsan_admin.debito_cobrado_categoria dccg on dccg.dbcb_id = dbcb.dbcb_id LEFT JOIN gsan_admin.debito_cobrado_categoria_hist dccgH on dccgH.dbhi_id = dbcbH.dbhi_id ----- LEFT JOIN (SELECT db.cnta_id, MIN(db.dbcb_id) AS dbcb_id FROM gsan_admin.debito_cobrado db GROUP BY db.cnta_id) mindbcb ON mindbcb.cnta_id = tt.cnta_id LEFT JOIN (SELECT dbH.cnta_id,MIN(dbH.dbhi_id) AS dbhi_id FROM gsan_admin.debito_cobrado_historico dbH GROUP BY dbH.cnta_id) mindbhi ON mindbhi.cnta_id = tt.cnta_id ----- INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = tt.loca_id INNER JOIN gsan_admin.quadra quadra on quadra.qdra_id = tt.qdra_id INNER JOIN gsan_admin.setor_comercial setor on setor.stcm_id = quadra.stcm_id INNER JOIN gsan_admin.rota on rota.rota_id = quadra.rota_id --------------CLIENTE USUÁRIO------------------------------- LEFT JOIN gsan_admin.cliente_conta clienteUsuario on clienteUsuario.crtp_id = 2 and clienteUsuario.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.cliente_conta_historico clienteUsuarioH on clienteUsuarioH.crtp_id = 2 and clienteUsuarioH.cnta_id = tt.cnta_id INNER JOIN gsan_admin.cliente cliente on cliente.clie_id = Case when clienteUsuario.clie_id is not null then clienteUsuario.clie_id else clienteUsuarioH.clie_id end INNER JOIN gsan_admin.cliente_tipo clienteTipo on clienteTipo.cltp_id = cliente.cltp_id ------------------------------------------------------------- WHERE pgst_idatual = 0 and tt.cnta_vldebitos > 0 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ------------------------------------------------------------------------------------------------------------ UNION ALL ------------ 4*** Credito Realizado ****** (SELECT --0 as rear, ${max} as rear, pgmt_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, setor.stcm_id, rota.rota_id, tt.qdra_id, setor.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(setor.muni_id,9999) as muni_id, coalesce(quadra.bair_id,9999) as bair_id, tt.iper_id, last_id, lest_id, tt.catg_id, tt.scat_id, clienteTipo.epod_id, clienteTipo.cltp_id, coalesce(lapf_id,0) as lapf_id, coalesce(lepf_id,0) as lepf_id, ------------------------------Comparação de data do pagamento com data de vencimento da conta CASE WHEN anomes_pagamento <= anomes_vencimento THEN 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_dtpagamento <= cnta_dtvencimentoconta) THEN 0 ----até o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = anomes_vencimento THEN 1 ---após dia do vencimento mas no mês do vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+89) else (anomes_vencimento+1) end) THEN 2 ---1 mês após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+90) else (anomes_vencimento+2) end) THEN 3 ---2 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+91) else (anomes_vencimento+3) end) THEN 4 ---3 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento = (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 5 ---4 mêses após o vencimento WHEN pgmt_dtpagamento > cnta_dtvencimentoconta and anomes_pagamento > (case when substr(cast(anomes_vencimento as char(4)),5,2) = '12' then (anomes_vencimento+92) else (anomes_vencimento+4) end) THEN 9 ---Mais de 4 mêses após o vencimento END as eppa_id, ----------------------------------------------------------------------------------------------------------- now() as rear_tmultimaalteracao, dotp_id, pgst_idatual, Case when crrz.cnta_id is not null then crrz.crog_id else crrzH.crog_id end as crog_idcredito, Case when crrz.cnta_id is not null then crrz.lict_id else crrzH.lict_id end as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, arfm_id, arrc_id, cnta_amreferenciaconta as rear_amreferenciadocumento, CASE WHEN (tt.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rear_cdrota, '04-Valor de Credito realizado' as origem, ---------------MEDIDAS-------------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, sum(Case when crrz.cnta_id is not null then coalesce(crcg_vlcategoria,0) else coalesce(crch_vlcategoria,0) end) as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, 0 as rear_qtpagamentos ---------------TABELAS------------------------------- FROM gsan_admin.stage_paghist tt ------- LEFT JOIN gsan_admin.credito_realizado crrz on crrz.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.credito_realizado_historico crrzH on crrzH.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.credito_realizado_categoria crcg on crcg.crrz_id = crrz.crrz_id LEFT JOIN gsan_admin.credito_realizado_catg_hist crcgH on crcgH.crhi_id = crrzH.crhi_id ------- INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = tt.loca_id INNER JOIN gsan_admin.quadra quadra on quadra.qdra_id = tt.qdra_id INNER JOIN gsan_admin.setor_comercial setor on setor.stcm_id = quadra.stcm_id INNER JOIN gsan_admin.rota on rota.rota_id = quadra.rota_id --------------CLIENTE USUÁRIO------------------------------- LEFT JOIN gsan_admin.cliente_conta clienteUsuario on clienteUsuario.crtp_id = 2 and clienteUsuario.cnta_id = tt.cnta_id LEFT JOIN gsan_admin.cliente_conta_historico clienteUsuarioH on clienteUsuarioH.crtp_id = 2 and clienteUsuarioH.cnta_id = tt.cnta_id INNER JOIN gsan_admin.cliente cliente on cliente.clie_id = Case when clienteUsuario.clie_id is not null then clienteUsuario.clie_id else clienteUsuarioH.clie_id end INNER JOIN gsan_admin.cliente_tipo clienteTipo on clienteTipo.cltp_id = cliente.cltp_id ------------------------------------------------------------- WHERE pgst_idatual = 0 and cnta_vlcreditos > 0 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ------------------------------------------------------------------------------------------------------------ UNION ALL ----5 GUIA DE PAGAMENTO DE CLIENTE (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao , loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, cast(null as integer) as stcm_id, cast(null as integer) as rota_id, cast(null as integer) as qdra_id, cast(null as integer) as rear_cdsetorcomercial, cast(null as integer) as rear_nnquadra, cast(null as integer) as muni_id, cast(null as integer) as bair_id, 5 as iper_id, cast(null as integer) as last_id, cast(null as integer) as lest_id, gpcg.catg_id, 0 as scat_id, cltp.epod_id, cltp.cltp_id, 0, 0, ------------------------------Comparação de data do pagamento com data de vencimento da conta CASE WHEN 1 =1 and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) <= (substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast(gpag_dtvencimento as char(7)),6,2)) THEN 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_dtpagamento <= gpag_dtvencimento) THEN 0 ----até o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast(gpag_dtvencimento as char(7)),6,2) THEN 1 ---após dia do vencimento mas no mês do vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '1 month') as char (10)),6,2) THEN 2 ---1 mês após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '2 month') as char (10)),6,2) THEN 3 ---2 mêses após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '3 month') as char (10)),6,2) THEN 4 ---3 mêses após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '4 month') as char (10)),6,2) THEN 5 ---4 mêses após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) > substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '4 month') as char (10)),6,2) THEN 9 ---Mais de 4 mêses após o vencimento END as eppa_id, ----------------------------------------------------------------------------------------------------------- now(), tt.dotp_id, tt.pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, tt.fntp_id as fntp_idoutros, (Case when gpcg.gpag_id is not null then gpcg.lict_id else gpch.lict_id end) as lict_idoutros, tt.arfm_id, arrc_id, tt.gpag_amreferenciacontabil, 2 as rear_ichidrometro, cast(null as integer) as dvst_id, cast(null as integer) as rear_cdrota, '05 Valor de GUIA DE PAGAMENTO DE CLIENTE' as origem, ----------------MEDIDAS------------------------------ 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, sum(Case when gpag.gpag_id is not null then coalesce(gpcg_vlcategoria,0) else coalesce(gpch_vlcategoria,0) end) as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, count(distinct(case when gpag.gpag_id is not null THEN gpag.gpag_id ELSE gphi.gpag_id END)) as rear_qtpagamentos ----------------------------------------------------- FROM gsan_admin.stage_paghist tt LEFT JOIN gsan_admin.guia_pagamento gpag on gpag.gpag_id= tt.gpag_id LEFT JOIN gsan_admin.guia_pagamento_historico gphi on gphi.gpag_id = tt.gpag_id LEFT JOIN gsan_admin.guia_pagamento_categoria gpcg on gpcg.gpag_id = gpag.gpag_id LEFT JOIN gsan_admin.guia_pagamento_categoria_hist gpch on gpch.gpag_id = gphi.gpag_id INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when gpag.gpag_id is not null then gpag.loca_id else gphi.loca_id end INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente clie on clie.clie_id = Case when gpag.gpag_id is not null then gpag.clie_id else gphi.clie_id end INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id WHERE pgst_idatual = 0 and tt.imov_id is null GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL ----6 guia de pagamento de imovel (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao , loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, stcm.stcm_id, rota.rota_id, qdra.qdra_id, stcm.stcm_cdsetorcomercial as rear_cdsetorcomercial, qdra.qdra_nnquadra as rear_nnquadra, coalesce(stcm.muni_id,9999) as muni_id, coalesce(qdra.bair_id,9999) as bair_id, imov.iper_id, imov.last_id, imov.lest_id, gpcg.catg_id, tt.scat_id as scat_id, cltp.epod_id, cltp.cltp_id, coalesce(ligAgua.lapf_id,0) as lapf_id, coalesce(ligEsgoto.lepf_id,0) as lepf_id, ------------------------------Comparação de data do pagamento com data de vencimento da conta CASE WHEN 1 =1 and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) <= (substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast(gpag_dtvencimento as char(7)),6,2)) THEN 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_dtpagamento <= gpag_dtvencimento) THEN 0 ----até o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast(gpag_dtvencimento as char(7)),6,2) THEN 1 ---após dia do vencimento mas no mês do vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '1 month') as char (10)),6,2) THEN 2 ---1 mês após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '2 month') as char (10)),6,2) THEN 3 ---2 mêses após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '3 month') as char (10)),6,2) THEN 4 ---3 mêses após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) = substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '4 month') as char (10)),6,2) THEN 5 ---4 mêses após o vencimento WHEN pgmt_dtpagamento > gpag_dtvencimento and (substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char (7)),6,2)) > substr(cast(gpag_dtvencimento as char(4)),1,4)||substr(cast((gpag_dtvencimento + interval '4 month') as char (10)),6,2) THEN 9 ---Mais de 4 mêses após o vencimento END as eppa_id, ----------------------------------------------------------------------------------------------------------- now(), tt.dotp_id, tt.pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, tt.fntp_id as fntp_idoutros, (Case when gpcg.gpag_id is not null then gpcg.lict_id else gpch.lict_id end) as lict_idoutros, tt.arfm_id, arrc_id, tt.gpag_amreferenciacontabil as rear_amreferenciadocumento, CASE WHEN (ligAgua.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rear_cdrota, '06 Valor de GUIA DE PAGAMENTO IMÓVEL' as origem, ---------------------MEDIDAS--------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, sum(Case when gpag.gpag_id is not null then coalesce(gpcg_vlcategoria,0) else coalesce(gpch_vlcategoria,0) end) as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, sum (CASE WHEN gpcg.catg_id = tt.catg_id THEN 1 ELSE 0 END) as rear_qtpagamentos FROM gsan_admin.stage_paghist tt LEFT JOIN gsan_admin.guia_pagamento gpag on gpag.gpag_id= tt.gpag_id LEFT JOIN gsan_admin.guia_pagamento_historico gphi on gphi.gpag_id = tt.gpag_id LEFT JOIN gsan_admin.guia_pagamento_categoria gpcg on gpcg.gpag_id = gpag.gpag_id LEFT JOIN gsan_admin.guia_pagamento_categoria_hist gpch on gpch.gpag_id = gphi.gpag_id INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.imovel imov on imov.imov_id = tt.imov_id INNER JOIN gsan_admin.setor_comercial stcm on imov.stcm_id = stcm.stcm_id INNER JOIN gsan_admin.quadra qdra on qdra.qdra_id = imov.qdra_id INNER JOIN gsan_admin.rota on rota.rota_id = qdra.rota_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when gpag.gpag_id is not null then gpag.loca_id else gphi.loca_id end INNER JOIN gsan_admin.sistema_parametros sp on 1=1 LEFT JOIN gsan_admin.cliente_guia_pagamento clgp on clgp.crtp_id = 2 and clgp.gpag_id = gpag.gpag_id LEFT JOIN gsan_admin.cliente_guia_pagamento_hist cgph on cgph.crtp_id = 2 and cgph.gpag_id = gpag.gpag_id INNER JOIN gsan_admin.cliente clie on clie.clie_id = Case when clgp.clgp_id is not null then clgp.clie_id else cgph.clie_id end INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id LEFT JOIN gsan_admin.ligacao_agua ligAgua on ligAgua.lagu_id = Case when gpag.gpag_id is not null then gpag.imov_id else gphi.imov_id end LEFT JOIN gsan_admin.ligacao_esgoto ligEsgoto on ligEsgoto.lesg_id = Case when gpag.gpag_id is not null then gpag.imov_id else gphi.imov_id end WHERE pgst_idatual = 0 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL ---7 debito a cobrar (SELECT --0 as rear, ${max} as rear, pgmt_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, stcm.stcm_id, rota.rota_id, qdra.qdra_id, stcm.stcm_cdsetorcomercial as rear_cdsetorcomercial, qdra.qdra_nnquadra as rear_nnquadra, coalesce(stcm.muni_id,9999) as muni_id, coalesce(qdra.bair_id,9999) as bair_id, imov.iper_id, imov.last_id, imov.lest_id, catg_id, scat_id, cltp.epod_id, cltp.cltp_id, coalesce(lapf_id,0) as lapf_id, coalesce(lepf_id,0) as lepf_id, CASE WHEN pgmt_amreferenciaarrecadacao <= dbac_amreferenciacontabil then 1 else 2 end as rear_icrecebidasnomes, CASE WHEN (pgmt_amreferenciaarrecadacao <= dbac_amreferenciacontabil) THEN 0 WHEN (pgmt_amreferenciaarrecadacao > dbac_amreferenciacontabil) THEN 1 END as eppa_id, now() as rear_tmultimaalteracao, tt.dotp_id, pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, dbac.fntp_id as fntp_idoutros, dbac.lict_id as lict_idoutros, arfm_id, arrc_id, dbac.dbac_amreferenciacontabil as rear_amreferenciadocumento, CASE WHEN (tt.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rera_cdrota, '07 Valor de debito a cobrar' as origem, ---------------MEDIDAS---------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, sum(pgmt_vlpagamento) as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, count(*) as rear_qtpagamentos ---------------TABELAS------------------------------- FROM gsan_admin.stage_paghist tt LEFT JOIN gsan_admin.debito_a_cobrar dbac on dbac.dbac_id = tt.dbac_id LEFT JOIN gsan_admin.debito_a_cobrar_historico dbacH on dbacH.dbac_id = tt.dbac_id INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.imovel imov on imov.imov_id = tt.imov_id INNER JOIN gsan_admin.setor_comercial stcm on imov.stcm_id = stcm.stcm_id INNER JOIN gsan_admin.quadra qdra on qdra.qdra_id = imov.qdra_id INNER JOIN gsan_admin.rota on rota.rota_id = qdra.rota_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when dbac.dbac_id is not null then dbac.loca_id else dbacH.loca_id end INNER JOIN gsan_admin.cliente_imovel clim on clim.crtp_id = 2 and clim_dtrelacaofim is null and clim.imov_id = imov.imov_id INNER JOIN gsan_admin.cliente clie on clie.clie_id = clim.clie_id INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id WHERE pgst_idatual = 0 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ------------------------------------------------------------------------------------------------------------ UNION ALL -- 08 Valor de pagamento não classificados (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, stcm.stcm_id, rota.rota_id, tt.qdra_id, stcm.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(stcm.muni_id,9999) as muni_id, coalesce(qdra.bair_id,9999) as bair_id, tt.iper_id, imov.last_id, imov.lest_id, tt.catg_id as catg_id, tt.scat_id as scat_id, cltp.epod_id, cltp.cltp_id, coalesce(tt.lapf_id,0) as lapf_id, coalesce(tt.lepf_id,0) as lepf_id, 2 as rear_icrecebidasnomes, 9 as eppa_id, now() as rear_tmultimaateracao, tt.dotp_id, tt.pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, tt.arfm_id, arrc_id, pgmt_amreferenciaarrecadacao as rear_amrerenciadocumento, CASE WHEN (ligAgua.hidi_id is not null) THEN 1 ELSE 2 END as rear_ichidrometro, cast(null as integer) as dvst_id, rota.rota_cdrota as rear_cdrota, '08 Valor de pagamento não classificados' as origem, -----------------------MEDIDAS----------------------------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, sum(pgmt_vlpagamento) as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, count(*) as rear_qtpagamentos FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.imovel imov on imov.imov_id = tt.imov_id INNER JOIN gsan_admin.localidade loca on imov.loca_id = loca.loca_id INNER JOIN gsan_admin.setor_comercial stcm on imov.stcm_id = stcm.stcm_id INNER JOIN gsan_admin.quadra qdra on qdra.qdra_id = imov.qdra_id INNER JOIN gsan_admin.rota on rota.rota_id = qdra.rota_id INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente_imovel clim on clim.crtp_id = 2 and clim_dtrelacaofim is null and clim.imov_id = imov.imov_id INNER JOIN gsan_admin.cliente clie on clie.clie_id = clim.clie_id INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id LEFT JOIN gsan_admin.ligacao_agua ligAgua on ligAgua.lagu_id = imov.imov_id LEFT JOIN gsan_admin.ligacao_esgoto ligEsgoto on ligEsgoto.lesg_id = imov.imov_id WHERE tt.pgmt_amreferenciaarrecadacao = sp.parm_amreferenciaarrecadacao and pgst_idatual <> 0 GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL -- 09 Valor de pagamento não classificados de cliente (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, cast(null as integer) as stcm_id, cast(null as integer) as rota_id, cast(null as integer) as qdra_id, cast(null as integer) as rear_cdsetorcomercial, cast(null as integer) as rear_nnquadra, cast(null as integer) as muni_id, cast(null as integer) as bair_id, 5 as iper_id, cast(null as integer) as last_id, cast(null as integer) as lest_id, 1 as catg_id, 0 as scat_id, cltp.epod_id, cltp.cltp_id, 0 as lapf_id, 0 as lepf_id, 2 as rear_icrecebidasnomes, 9 as eppa_id, now() as rear_tmultimaateracao, tt.dotp_id, tt.pgst_idatual, cast(null as integer) as crog_idcredito, cast(null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, tt.arfm_id, arrc_id, tt.pgmt_amreferenciaarrecadacao as rear_amrerenciadocumento, 2 as rear_ichidrometro, cast(null as integer) as dvst_id, cast(null as integer) as rear_cdrota, '09 Valor de pagamento não classificados de cliente' as origem, ---------MEDIDAS-------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, sum(pgmt_vlpagamento) as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, count(*) as rear_qtpagamentos FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = tt.loca_id INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente clie on clie.clie_id = tt.clie_id INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id WHERE pgst_idatual <> 0 and tt.imov_id is null GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL -- 10 Valor de devolucao classificada por imovel (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, stcm.stcm_id, rota.rota_id, tt.qdra_id, stcm.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(stcm.muni_id,9999) as muni_id, coalesce(qdra.bair_id,9999) as bair_id, tt.iper_id, imov.last_id, imov.lest_id, tt.catg_id as catg_id, tt.scat_id as scat_id, cltp.epod_id, cltp.cltp_id, coalesce(tt.lapf_id,0) as lapf_id, coalesce(tt.lepf_id,0) as lepf_id, 2 as rear_icrecebidasnomes, 0 as eppa_id, now() as rear_tmultimaalteracao, 8 as dotp_id, cast(null as integer) as pgst_idatual, cast(null as integer) as crog_idcredito, cast(null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, cast(null as integer) as arfm_id, arrc_id, (Case when devl.devl_id is not null then devl.devl_amreferenciaarrecadacao else dehi.dehi_amreferenciaarrecadacao end) as rear_amreferenciadocumento, 2 as rear_ichidrometro, (Case when devl.devl_id is not null then devl.dvst_idatual else dehi.dvst_idatual end) as dvst_idatual, rota.rota_cdrota as rear_cdrota, '10 Valor de devolucao classificada por imovel' as origem, --------------MEDIDAS------------------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, sum(Case when devl.devl_id is not null then coalesce(devl.devl_vldevolucao,0) else coalesce(dehi.dehi_vldevolucao,0) end) as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, 0 as rear_qtpagamentos FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.imovel imov on imov.imov_id = tt.imov_id INNER JOIN gsan_admin.setor_comercial stcm on imov.stcm_id = stcm.stcm_id INNER JOIN gsan_admin.quadra qdra on qdra.qdra_id = imov.qdra_id INNER JOIN gsan_admin.rota on rota.rota_id = qdra.rota_id LEFT JOIN gsan_admin.devolucao devl on devl.avbc_id = tt.avbc_id LEFT JOIN gsan_admin.devolucao_historico dehi on dehi.avbc_id = tt.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when devl.devl_id is not null then devl.loca_id else dehi.loca_id end INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente_imovel clim on clim.crtp_id = 2 and devl.imov_id = clim.imov_id and clim_dtrelacaofim is null INNER JOIN gsan_admin.cliente clie on clie.clie_id = clim.clie_id INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id LEFT JOIN gsan_admin.ligacao_agua ligAgua on ligAgua.lagu_id = Case when devl.devl_id is not null then devl.imov_id else dehi.imov_id end LEFT JOIN gsan_admin.ligacao_esgoto ligEsgoto on ligEsgoto.lesg_id = Case when devl.devl_id is not null then devl.imov_id else dehi.imov_id end WHERE (Case when devl.devl_id is not null then devl.dvst_idatual not in (1,2) else dehi.dvst_idatual not in (1,2) end) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL -- 11 Valor de devolucao nao classificada por imovel (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, stcm.stcm_id, rota.rota_id, tt.qdra_id, stcm.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, coalesce(stcm.muni_id,9999) as muni_id, coalesce(qdra.bair_id,9999) as bair_id, tt.iper_id, imov.last_id, imov.lest_id, tt.catg_id as catg_id, tt.scat_id as scat_id, cltp.epod_id, cltp.cltp_id, coalesce(tt.lapf_id,0) as lapf_id, coalesce(tt.lepf_id,0) as lepf_id, 2 as rear_icrecebidasnomes, 0 as eppa_id, now() as rear_tmultimaalteracao, 8 as dotp_id, cast(null as integer) as pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, cast(null as integer) as arfm_id, arrc_id, (Case when devl.devl_id is not null then devl.devl_amreferenciaarrecadacao else dehi.dehi_amreferenciaarrecadacao end) as rear_amreferenciadocumento, 2 as rear_ichidrometro, (Case when devl.devl_id is not null then devl.dvst_idatual else dehi.dvst_idatual end) as dvst_id, rota.rota_cdrota as rear_cdrota, '11 Valor de devolucao nao classificada por imovel' as origem, ---------------------MEDIDAS---------------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, sum(Case when devl.devl_id is not null then coalesce(devl.devl_vldevolucao,0) else coalesce(dehi.dehi_vldevolucao,0) end) as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, 0 as rear_qtpagamentos FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.imovel imov on imov.imov_id = tt.imov_id INNER JOIN gsan_admin.setor_comercial stcm on imov.stcm_id = stcm.stcm_id INNER JOIN gsan_admin.quadra qdra on qdra.qdra_id = imov.qdra_id INNER JOIN gsan_admin.rota on rota.rota_id = qdra.rota_id LEFT JOIN gsan_admin.devolucao devl on devl.avbc_id = tt.avbc_id LEFT JOIN gsan_admin.devolucao_historico dehi on dehi.avbc_id = tt.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when devl.devl_id is not null then devl.loca_id else dehi.loca_id end INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente_imovel clim on clim.crtp_id = 2 and devl.imov_id = clim.imov_id and clim_dtrelacaofim is null INNER JOIN gsan_admin.cliente clie on clie.clie_id = clim.clie_id INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id LEFT JOIN gsan_admin.ligacao_agua ligAgua on ligAgua.lagu_id = Case when devl.devl_id is not null then devl.imov_id else dehi.imov_id end LEFT JOIN gsan_admin.ligacao_esgoto ligEsgoto on ligEsgoto.lesg_id = Case when devl.devl_id is not null then devl.imov_id else dehi.imov_id end WHERE (Case when devl.devl_id is not null then devl.dvst_idatual not in (1,2) else dehi.dvst_idatual not in (1,2) end) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL -- 12 Valor de devolucao classificada por cliente (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, cast(null as integer) as stcm_id, cast(null as integer) as rota_id, cast(null as integer) as qdra_id, cast(null as integer) as rear_cdsetorcomercial, cast(null as integer) as rear_nnquadra, cast(null as integer) as muni_id, cast(null as integer) as bair_id, 5 as iper_id, cast(null as integer) as last_id, cast(null as integer) as lest_id, 1 as catg_id, 0 as scat_id, cltp.epod_id, cltp.cltp_id, 0 as lapf_id , 0 as lepf_id , 2 as rear_icrecebidasnomes, 0 as eppa_id, now(), 8 as dotp_id, cast(null as integer) as pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, cast(null as integer) as arfm_id, arrc_id, (Case when devl.devl_id is not null then devl.devl_amreferenciaarrecadacao else dehi.dehi_amreferenciaarrecadacao end) as rear_amreferenciadocumento, 2 as rear_ichidrometro, (Case when devl.devl_id is not null then devl.dvst_idatual else dehi.dvst_idatual end) as dvst_id, cast(null as integer) as rear_cdrota, '12 Valor de devolucao classificada por cliente' as origem, -------------------MEDIDAS--------------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, sum(Case when devl.devl_id is not null then coalesce(devl.devl_vldevolucao,0) else coalesce(dehi.dehi_vldevolucao,0) end) as rear_vldevolucoesclassificacadas, 0 as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, 0 as rear_qtpagamentos FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id LEFT JOIN gsan_admin.devolucao devl on devl.avbc_id = tt.avbc_id LEFT JOIN gsan_admin.devolucao_historico dehi on dehi.avbc_id = tt.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when devl.devl_id is not null then devl.loca_id else dehi.loca_id end INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente clie on clie.clie_id = Case when devl.devl_id is not null then devl.clie_id else dehi.clie_id end INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id WHERE (Case when devl.devl_id is not null then devl.dvst_idatual not in (1,2) else dehi.dvst_idatual not in (1,2) end) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ) ----------------------------------------------------------------------------------------------------------- UNION ALL -- 13 Valor de devolucao nao classificada por cliente (SELECT --0 as rear, ${max} as rear, sp.parm_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, cast(null as integer) as stcm_id, cast(null as integer) as rota_id, cast(null as integer) as qdra_id, cast(null as integer) as rear_cdsetorcomercial, cast(null as integer) as rear_nnquadra, cast(null as integer) as muni_id, cast(null as integer) as bair_id, 5 as iper_id, cast(null as integer) as last_id, cast(null as integer) as lest_id, 1 as catg_id, 0 as scat_id, cltp.epod_id, cltp.cltp_id, 0 as lapf_id , 0 as lepf_id , 2 as rear_icrecebidasnomes, 0 as eppa_id, now(), 8 as dotp_id, cast(null as integer) as pgst_idatual, cast(null as integer) as crog_idcredito, cast (null as integer) as lict_idcredito, cast(null as integer) as fntp_idoutros, cast(null as integer) as lict_idoutros, cast(null as integer) as arfm_id, arrc_id, (Case when devl.devl_id is not null then devl.devl_amreferenciaarrecadacao else dehi.dehi_amreferenciaarrecadacao end) as rear_amreferenciadocumento, 2 as rear_ichidrometro, (Case when devl.devl_id is not null then devl.dvst_idatual else dehi.dvst_idatual end) as dvst_id, cast(null as integer) as rear_cdrota, '13 Valor de devolucao nao classificada por cliente' as origem, ------------------------------MEDIDAS------------------------- 0 as rear_vlagua, 0 as rear_vlesgoto, 0 as rear_vlnaoidentificado, 0 as rear_vldocsrecebidoscredito, 0 as rear_vldocsrecebidosoutros, 0 as rear_vlimpostos, 0 as rear_vldevolucoesclassificacadas, sum(Case when devl.devl_id is not null then coalesce(devl.devl_vldevolucao,0) else coalesce(dehi.dehi_vldevolucao,0) end) as rear_vldevolucoesnaoclassif, 0 as rear_qtcontas, 0 as rear_qtpagamentos FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id LEFT JOIN gsan_admin.devolucao devl on devl.avbc_id = tt.avbc_id LEFT JOIN gsan_admin.devolucao_historico dehi on dehi.avbc_id = tt.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = Case when devl.devl_id is not null then devl.loca_id else dehi.loca_id end INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.cliente clie on clie.clie_id = Case when devl.devl_id is not null then devl.clie_id else dehi.clie_id end INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id WHERE (Case when devl.devl_id is not null then devl.dvst_idatual not in (1,2) else dehi.dvst_idatual not in (1,2) end) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36 ----------------------------------------------------------------------------------------------------------- ) -------FIM DO SQL------------------------------------------------------------------------------------------ + 0 + + N + Y + N + + + 16 + 32 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmtp_refger_id + + -2 + -2 + dmtp_refdoc_id + + -2 + -2 + dmdt_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmft_id + + -2 + -2 + dmaf_id + + -2 + -2 + dmdi_credito_id + + -2 + -2 + dmdi_outros_id + + -2 + -2 + dmco_credito_id + + -2 + -2 + dmep_id + + -2 + -2 + dmps_id + + -2 + -2 + dmdv_id + + -2 + -2 + dmarrc_id + + -2 + -2 + dmrecm_id + + -2 + -2 + rear_id + + -2 + -2 + rear_tmultimaalteracao + + -2 + -2 + rear_qtcontas + + -2 + -2 + rear_vlagua + + -2 + -2 + rear_vlesgoto + + -2 + -2 + rear_vlnaoidentificado + + -2 + -2 + rear_vldocsrecebidoscredito + + -2 + -2 + rear_vldocsrecebidosoutros + + -2 + -2 + rear_vlimpostos + + -2 + -2 + rear_vldevolucoesclassificadas + + -2 + -2 + rear_vldevolucoesnaoclassif + + -2 + -2 + rear_qtpagamentos + + -2 + -2 + origem + + -2 + -2 + N + + + 64 + 560 + Y + + + + + Subst Null + IfNull + + Y + + 1 + + none + + + + + Y + N + N + + + + + greg_id + 9999 + + N + + + uneg_id + 9999 + + N + + + loca_id + 9999 + + N + + + loca_cdelo + 9999 + + N + + + stcm_id + 9999 + + N + + + rota_id + 9999 + + N + + + qdra_id + 9999 + + N + + + rear_cdsetorcomercial + 9999 + + N + + + rear_nnquadra + 9999 + + N + + + muni_id + 9999 + + N + + + bair_id + 9999 + + N + + + iper_id + 9999 + + N + + + last_id + 9999 + + N + + + lest_id + 9999 + + N + + + catg_id + 9999 + + N + + + scat_id + 9999 + + N + + + epod_id + 9999 + + N + + + cltp_id + 9999 + + N + + + lapf_id + 9999 + + N + + + lepf_id + 9999 + + N + + + rear_icrecebidasnomes + 2 + + N + + + eppa_id + 9999 + + N + + + dotp_id + 9999 + + N + + + pgst_idatual + 9999 + + N + + + crog_idcredito + 9999 + + N + + + lict_idcredito + 9999 + + N + + + fntp_idoutros + 9999 + + N + + + lict_idoutros + 9999 + + N + + + arfm_id + 9999 + + N + + + arrc_id + 9999 + + N + + + rear_ichidrometro + 2 + + N + + + dvst_id + + + N + + + rear_cdrota + 9999 + + N + + + rear_vlagua + 0 + + N + + + rear_vlesgoto + 0 + + N + + + rear_vlnaoidentificado + 0 + + N + + + rear_vldocsrecebidoscredito + 0 + + N + + + rear_vldocsrecebidosoutros + 0 + + N + + + rear_vlimpostos + 0 + + N + + + rear_vldevolucoesclassificadas + 0 + + N + + + rear_vldevolucoesnaoclassif + 0 + + N + + + rear_qtcontas + 0 + + N + + + rear_qtpagamentos + 0 + + N + + + + + 32 + 128 + Y + + + + + arrecadacao_forma + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT arfm_id , arfm_cdarrecadacaoforma , arfm_dsarrecadacaoforma , dmaf_id FROM gerencial_cagepa.dimen_arrecadacao_forma + 0 + + N + N + N + + + 1000 + 538 + Y + + + + + arrecadador + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT arrc_id , asarrc_nninscricaoestadual , arrc_cdagente , arrc_icuso , arrc_nmcliente , arrc_icuso_desc , dmarrc_id FROM gerencial_cagepa.dimen_arrecadador + 0 + + N + N + N + + + 356 + 547 + Y + + + + + devolucao_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dvst_id , dvst_dsdevolucaosituacao , dvst_dsabreviado , dvst_icuso , dvst_icuso_desc , dmdv_id FROM gerencial_cagepa.dimen_devolucao_situacao + 0 + + N + N + N + + + 492 + 550 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 768 + 21 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 164 + 30 + Y + + + + + dimen_credito_origem + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT crog_id , crog_dscreditoorigem , crog_dsabreviado , crti_id , crti_dscreditotipo , crti_dsabreviado , dmco_id FROM gerencial_cagepa.dimen_credito_origem_tipo + 0 + + N + N + N + + + 867 + 550 + Y + + + + + dimen_debito_lancamento_item + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dbtp_id , dbtp_dsdebitotipo , dbtp_dsabreviado , fntp_id , lict_id , lict_dsitemlancamentocontabil , lict_dsabreviado , dmdi_id FROM gerencial_cagepa.dimen_debito_lancamento_item + 0 + + N + N + N + + + 1007 + 616 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 618 + 10 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 298 + 29 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmsa_id , last_id , dmsa_icvolumefixadoagua , dmsa_ichidrometro , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_icpoco , dmsa_ichidrometropoco FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 18 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmse_id , lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 478 + 11 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT ano , mesnumero , dianumero , diasemananum , diasemana , diasemanaabrev , mesnome , mesabrev , trimestre , data_string , mestrimestre , quinzena , semanames , semananumeroiniciodomingo , data_string_br , anomes , trimestreabrev , diasemanadiaabrev , dmtp_id , "data" , semananome , semestrenum , semestrenome FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1132 + 10 + Y + + + + + epoca_pagamento + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT eppa_id , eppa_dsepocapagemento , dmep_id FROM gerencial_cagepa.dimen_epoca_pagamento + 0 + + N + N + N + + + 714 + 554 + Y + + + + + fato_arrecadacao + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_arrecadacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 64 + 480 + Y + + + + + fianciamento_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT fntp_id , fntp_dsfinanciamentotipo , fntp_dsabreviado , dmft_id FROM gerencial_cagepa.dimen_financiamento_tipo + 0 + + N + N + N + + + 1000 + 440 + Y + + + + + id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + relt_seq + Y + + 1 + 1 + 999999999 + + + 144 + 672 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmlo_id , greg_id , uneg_id , loca_id , stcm_id , qdra_id , rota_id , ftgr_id , arti_id , loca_cdelo , qdra_nnquadra FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1063 + 359 + Y + + + + + lookup_arrecadacao_forma + StreamLookup + + Y + + 1 + + none + + + arrecadacao_forma + N + Y + N + N + + + arfm_id + arfm_id + + + dmaf_id + dmaf_id + + None + + + + + 1217 + 534 + Y + + + + + lookup_arrecadador + StreamLookup + + Y + + 1 + + none + + + arrecadador + N + Y + Y + N + + + arrc_id + arrc_id + + + dmarrc_id + dmarrc_id + + None + + + + + 357 + 670 + Y + + + + + lookup_arrecadador 2 + StreamLookup + + Y + + 1 + + none + + + recebida_mes + N + Y + Y + N + + + rear_icrecebidasnomes + dmrecm_id + + + dmrecm_id + dmrecm_id + + None + + + + + 273 + 668 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 163 + 127 + Y + + + + + lookup_credito_origem_credito + StreamLookup + + Y + + 1 + + none + + + dimen_credito_origem + N + Y + N + N + + + crog_idcredito + crog_id + + + dmco_id + dmco_credito_id + + None + + + + + 869 + 673 + Y + + + + + lookup_dimen_debito_lancamento_credito + StreamLookup + + Y + + 1 + + none + + + dimen_debito_lancamento_item + N + Y + N + N + + + lict_idcredito + lict_id + + + dmdi_id + dmdi_credito_id + + None + + + + + 1218 + 619 + Y + + + + + lookup_dimen_debito_lancamento_outros + StreamLookup + + Y + + 1 + + none + + + dimen_debito_lancamento_item + N + Y + N + N + + + lict_idoutros + lict_id + + + dmdi_id + dmdi_outros_id + + None + + + + + 1221 + 677 + Y + + + + + lookup_documento_tipo + StreamLookup + + Y + + 1 + + none + + + Dimensao Documento Tipo + N + Y + N + N + + + dotp_id + dotp_id + + + dmdt_id + dmdt_id + + None + + + + + 1216 + 253 + Y + + + + + lookup_epoca_pagamento + StreamLookup + + Y + + 1 + + none + + + epoca_pagamento + N + Y + N + N + + + epod_id + eppa_id + + + dmep_id + dmep_id + + None + + + + + 716 + 677 + Y + + + + + lookup_financiamento + StreamLookup + + Y + + 1 + + none + + + fianciamento_tipo + N + Y + N + N + + + fntp_idoutros + fntp_id + + + dmft_id + dmft_id + + None + + + + + 1220 + 439 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1217 + 359 + Y + + + + + lookup_pagamento_situacao + StreamLookup + + Y + + 1 + + none + + + pagamento_situacao + N + Y + Y + N + + + pgst_idatual + pgst_id + + + dmps_id + dmps_id + + None + + + + + 602 + 675 + Y + + + + + lookup_pagamento_situacao 2 + StreamLookup + + Y + + 1 + + none + + + devolucao_situacao + N + Y + Y + N + + + dvst_id + dvst_id + + + dmdv_id + dmdv_id + + None + + + + + 493 + 673 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + dmpt_id + dmpt_id + + None + + + + + 313 + 125 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + N + N + + + last_id + last_id + + + lapf_id + lapf_id + + + rear_ichidrometro + dmsa_ichidrometro + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 473 + 130 + Y + + + + + lookup_tempo _documento + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rear_amreferenciadocumento + anomes + + + dmtp_id + dmtp_refdoc_id + + None + + + + + 1211 + 135 + Y + + + + + lookup_tempo_geracao + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rear_amreferencia + anomes + + + dmtp_id + dmtp_refger_id + + None + + + + + 1070 + 136 + Y + + + + + pagamento_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT pgst_id , pgst_dspagamentosituacao , pgst_dsabreviado , pgst_icuso , dmps_id FROM gerencial_cagepa.dimen_pagamento_situacao + 0 + + N + N + N + + + 601 + 552 + Y + + + + + recebida_mes + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmrecm_id , recebidames FROM gerencial_cagepa.dimen_recebida_mes + 0 + + N + N + N + + + 272 + 545 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_resumo_cobranca_acao_eventual.ktr b/gerencial_pentaho-master/PDI/ktr_fato_resumo_cobranca_acao_eventual.ktr new file mode 100644 index 0000000..197543e --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_resumo_cobranca_acao_eventual.ktr @@ -0,0 +1,2725 @@ + + + + ktr_fato_resumo_cobranca_acao_eventual + + + + Normal + 0 + / + + + amreferencia + 000000 + + + + max + 5000 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempoY + localidadelookup_localizacaoY + lookup_situacao_agualookup_localizacaoY + lookup_localizacaolookup_tempoY + resumo_cobranca_acao_eventuallookup_cliente_tipoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + dimen_arrecadadorlookup_arrecadadorY + dimen_cobranca_acaolookup_dimen_cobranca_acaoY + lookup_arrecadadorlookup_dimen_cobranca_acaoY + dimen_cobranca_acao_efeitolookup_dimen_cobranca_acao_efeitoY + lookup_dimen_cobranca_acaolookup_dimen_cobranca_acao_efeitoY + dimen_cobranca_acao_situacaolookup_dimen_cobranca_acao_situacaoY + lookup_dimen_cobranca_acao_efeitolookup_dimen_cobranca_acao_situacaoY + dimen_cobranca_criteriolookup_dimen_cobranca_criterioY + lookup_dimen_cobranca_acao_situacaolookup_dimen_cobranca_criterioY + dimen_cobranca_debito_situacaolookup_dimen_cobranca_debito_situacaoY + lookup_dimen_cobranca_criteriolookup_dimen_cobranca_debito_situacaoY + dimen_cobranca_grupolookup_dimen_cobranca_grupoY + lookup_dimen_cobranca_debito_situacaolookup_dimen_cobranca_grupoY + dimen_cobranca_situacaolookup_dimen_cobranca_situacaoY + lookup_dimen_cobranca_grupolookup_dimen_cobranca_situacaoY + dimen_documento_tipolookup_dimen_documento_tipoY + lookup_dimen_cobranca_situacaolookup_dimen_documento_tipoY + dimen_empresalookup_dimen_empresaY + lookup_dimen_documento_tipolookup_dimen_empresaY + dimen_faturamento_grupolookup_dimen_faturamento_grupoY + lookup_dimen_empresalookup_dimen_faturamento_grupoY + dimen_motivo_nao_entrega_documentolookup_dimen_motivo_nao_entrega_documentoY + lookup_dimen_faturamento_grupolookup_dimen_motivo_nao_entrega_documentoY + dimen_servico_tipo_perfillookup_dimen_servico_tipo_perfilY + lookup_dimen_motivo_nao_entrega_documentolookup_dimen_servico_tipo_perfilY + lookup_dimen_servico_tipo_perfilSelect valuesY + dimen_tempolookup_realizacao_emissaoY + lookup_tempolookup_realizacao_emissaoY + lookup_realizacao_emissaolookup_realizacao_encerrY + dimen_tempolookup_realizacao_encerrY + lookup_realizacao_encerrlookup_arrecadadorY + Select valuesSelect values 2Y + Select values 2fato_cobranca_acao_eventualY + + + Select values + SelectValues + + Y + + 1 + + none + + + rcbe_id + + -2 + -2 + rcbe_amreferencia + + -2 + -2 + rcbe_icdefinitivo + + -2 + -2 + rcbe_icantesapos + + -2 + -2 + rcbe_icacimalimite + + -2 + -2 + rcbe_tmrealizacaoemitir + + -2 + -2 + rcbe_tmrealizacaoencerrar + + -2 + -2 + rcbe_qtdocumentos + + -2 + -2 + rcbe_vldocumentos + + -2 + -2 + rcbe_qtimoveismarcados + + -2 + -2 + rcbe_qtimoveisdesmarcados + + -2 + -2 + rcbe_qtparcelamentos + + -2 + -2 + rcbe_qtparcelamentoscomentrada + + -2 + -2 + rcbe_vlentradaparcelamento + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmarrc_id + + -2 + -2 + dmcbac_id + + -2 + -2 + dmacef_id + + -2 + -2 + dmcast_id + + -2 + -2 + dmcbct_id + + -2 + -2 + dmcdst_id + + -2 + -2 + dmcbgr_id + + -2 + -2 + dmcbst_id + + -2 + -2 + dmdt_id + + -2 + -2 + dmem_id + + -2 + -2 + dmftgr_id + + -2 + -2 + dmmned_id + + -2 + -2 + dmsvtp_id + + -2 + -2 + dmtp_id_emissao + + -2 + -2 + dmtp_id_encerr + + -2 + -2 + N + + + 960 + 512 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + rcbe_id + rcbe_id + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_amreferencia + rcbe_amreferencia + None + 15 + -2 + + false + + + false + + + + + + rcbe_icdefinitivo + rcbe_icdefinitivo + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_icantesapos + rcbe_icantesapos + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_icacimalimite + rcbe_icacimalimite + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_tmrealizacaoemitir + rcbe_tmrealizacaoemitir + None + 15 + -2 + + false + + + false + + + + + + rcbe_tmrealizacaoencerrar + rcbe_tmrealizacaoencerrar + None + 15 + -2 + + false + + + false + + + + + + rcbe_qtdocumentos + rcbe_qtdocumentos + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_vldocumentos + rcbe_vldocumentos + Number + 15 + 2 + + false + + + false + + + + + + rcbe_qtimoveismarcados + rcbe_qtimoveismarcados + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_qtimoveisdesmarcados + rcbe_qtimoveisdesmarcados + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_qtparcelamentos + rcbe_qtparcelamentos + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_qtparcelamentoscomentrada + rcbe_qtparcelamentoscomentrada + Integer + 15 + 0 + + false + + + false + + + + + + rcbe_vlentradaparcelamento + rcbe_vlentradaparcelamento + Number + 15 + 2 + + false + + + false + + + + + + dmct_id + dmct_id + Integer + 15 + 0 + + false + + + false + + + + + + dmpt_id + dmpt_id + Integer + 15 + 0 + + false + + + false + + + + + + dmse_id + dmse_id + Integer + 15 + 0 + + false + + + false + + + + + + dmgr_id + dmgr_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcs_id + dmcs_id + Integer + 15 + 0 + + false + + + false + + + + + + dmsa_id + dmsa_id + Integer + 15 + 0 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + 0 + + false + + + false + + + + + + dmtp_id + dmtp_id + Integer + 15 + 0 + + false + + + false + + + + + + dmarrc_id + dmarrc_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcbac_id + dmcbac_id + Integer + 15 + 0 + + false + + + false + + + + + + dmacef_id + dmacef_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcast_id + dmcast_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcbct_id + dmcbct_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcdst_id + dmcdst_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcbgr_id + dmcbgr_id + Integer + 15 + 0 + + false + + + false + + + + + + dmcbst_id + dmcbst_id + Integer + 15 + 0 + + false + + + false + + + + + + dmdt_id + dmdt_id + Integer + 15 + 0 + + false + + + false + + + + + + dmem_id + dmem_id + Integer + 15 + 0 + + false + + + false + + + + + + dmftgr_id + dmftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + dmmned_id + dmmned_id + Integer + 15 + 0 + + false + + + false + + + + + + dmsvtp_id + dmsvtp_id + Integer + 15 + 0 + + false + + + false + + + + + + dmtp_id_emissao + dmtp_id_emissao + Integer + 15 + 0 + + false + + + false + + + + + + dmtp_id_encerr + dmtp_id_encerr + Integer + 15 + 0 + + false + + + false + + + + + + + + 1024 + 512 + Y + + + + + dimen_arrecadador + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT arrc_id , asarrc_nninscricaoestadual , arrc_cdagente , arrc_icuso , arrc_nmcliente , arrc_icuso_desc , dmarrc_id , cod_desc , version , date_de , date_ate , data_atual FROM gerencial_cagepa.dimen_arrecadador + 0 + + N + N + N + + + 1062 + 240 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 189 + 36 + Y + + + + + dimen_cobranca_acao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcbac_id , cbac_id FROM gerencial_cagepa.dimen_cobranca_acao + 0 + + N + N + N + + + 1200 + 432 + Y + + + + + dimen_cobranca_acao_efeito + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmacef_id , acef_id FROM gerencial_cagepa.dimen_cobranca_acao_efeito + 0 + + N + N + N + + + 1024 + 432 + Y + + + + + dimen_cobranca_acao_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcast_id , cast_id FROM gerencial_cagepa.dimen_cobranca_acao_situacao + 0 + + N + N + N + + + 816 + 432 + Y + + + + + dimen_cobranca_criterio + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcbct_id , cbct_id FROM gerencial_cagepa.dimen_cobranca_criterio + 0 + + N + N + N + + + 592 + 432 + Y + + + + + dimen_cobranca_debito_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcdst_id , cdst_id FROM gerencial_cagepa.dimen_cobranca_debito_situacao + 0 + + N + N + N + + + 384 + 432 + Y + + + + + dimen_cobranca_grupo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcbgr_id , cbgr_id FROM gerencial_cagepa.dimen_cobranca_grupo + 0 + + N + N + N + + + 144 + 432 + Y + + + + + dimen_cobranca_situacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcbst_id , cbst_id FROM gerencial_cagepa.dimen_cobranca_situacao + 0 + + N + N + N + + + 48 + 256 + Y + + + + + dimen_documento_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dotp_id , dmdt_id FROM gerencial_cagepa.dimen_documento_tipo + 0 + + N + N + N + + + 16 + 624 + Y + + + + + dimen_empresa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmem_id , empr_id FROM gerencial_cagepa.dimen_empresa + 0 + + N + N + N + + + 192 + 624 + Y + + + + + dimen_faturamento_grupo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmftgr_id , ftcm_id , ftgr_id FROM gerencial_cagepa.dimen_faturamento_grupo + 0 + + N + N + N + + + 336 + 624 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 616 + 35 + Y + + + + + dimen_motivo_nao_entrega_documento + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmmned_id , mned_id FROM gerencial_cagepa.dimen_motivo_nao_entrega_documento + 0 + + N + N + N + + + 528 + 624 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_servico_tipo_perfil + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmsvtp_id , svtp_id , sptp_id FROM gerencial_cagepa.dimen_servico_tipo_perfil + 0 + + N + N + N + + + 800 + 624 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada , dmsa_icligacaofaturada_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto , dmse_id , dmse_icvolumefixadoesgoto_desc FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 478 + 22 + Y + + + + + dimen_tempo + TableInput + + N + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes ,data_string FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1248 + 16 + Y + + + + + fato_cobranca_acao_eventual + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_cobranca_acao_eventual
+ 1000 + Y + N + N + N + N + + N + Y + N + + Y + N + + + + + + 1104 + 512 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_arrecadador + StreamLookup + + Y + + 1 + + none + + + dimen_arrecadador + N + Y + N + N + + + arrc_id + arrc_id + + + dmarrc_id + dmarrc_id + + None + + + + + 1193 + 238 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 188 + 135 + Y + + + + + lookup_dimen_cobranca_acao + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_acao + N + Y + N + N + + + cbac_id + cbac_id + + + dmcbac_id + dmcbac_id + + None + + + + + 1200 + 320 + Y + + + + + lookup_dimen_cobranca_acao_efeito + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_acao_efeito + N + Y + N + N + + + acef_id + acef_id + + + dmacef_id + dmacef_id + + None + + + + + 1024 + 320 + Y + + + + + lookup_dimen_cobranca_acao_situacao + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_acao_situacao + N + Y + N + N + + + cast_id + cast_id + + + dmcast_id + dmcast_id + + None + + + + + 816 + 320 + Y + + + + + lookup_dimen_cobranca_criterio + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_criterio + N + Y + N + N + + + cbct_id + cbct_id + + + dmcbct_id + dmcbct_id + + None + + + + + 592 + 320 + Y + + + + + lookup_dimen_cobranca_debito_situacao + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_debito_situacao + N + Y + N + N + + + cdst_id + cdst_id + + + dmcdst_id + dmcdst_id + + None + + + + + 384 + 320 + Y + + + + + lookup_dimen_cobranca_grupo + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_grupo + N + Y + N + N + + + cbgr_id + cbgr_id + + + dmcbgr_id + dmcbgr_id + + None + + + + + 144 + 320 + Y + + + + + lookup_dimen_cobranca_situacao + StreamLookup + + Y + + 1 + + none + + + dimen_cobranca_situacao + N + Y + N + N + + + cbst_id + cbst_id + + + dmcbst_id + dmcbst_id + + None + + + + + 0 + 320 + Y + + + + + lookup_dimen_documento_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_documento_tipo + N + Y + N + N + + + dotp_id + dotp_id + + + dmdt_id + dmdt_id + + None + + + + + 16 + 512 + Y + + + + + lookup_dimen_empresa + StreamLookup + + Y + + 1 + + none + + + dimen_empresa + N + Y + N + N + + + empr_id + empr_id + + + dmem_id + dmem_id + + None + + + + + 192 + 512 + Y + + + + + lookup_dimen_faturamento_grupo + StreamLookup + + Y + + 1 + + none + + + dimen_faturamento_grupo + N + Y + N + N + + + ftcm_id + ftcm_id + + + ftgr_id + ftgr_id + + + dmftgr_id + dmftgr_id + + None + + + + + 336 + 512 + Y + + + + + lookup_dimen_motivo_nao_entrega_documento + StreamLookup + + Y + + 1 + + none + + + dimen_motivo_nao_entrega_documento + N + Y + N + N + + + mned_id + mned_id + + + dmmned_id + dmmned_id + + None + + + + + 528 + 512 + Y + + + + + lookup_dimen_servico_tipo_perfil + StreamLookup + + Y + + 1 + + none + + + dimen_servico_tipo_perfil + N + Y + N + N + + + sptp_id + sptp_id + + + svtp_id + svtp_id + + + dmsvtp_id + dmsvtp_id + + None + + + + + 800 + 512 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + arti_id + arti_id + + + dmlo_id + dmlo_id + + None + + + + + 1072 + 142 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_realizacao_emissao + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rcbe_tmrealizacaoemitir + data_string + + + dmtp_id + dmtp_id_emissao + + None + + + + + 1328 + 144 + Y + + + + + lookup_realizacao_encerr + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rcbe_tmrealizacaoencerrar + data_string + + + dmtp_id + dmtp_id_encerr + + None + + + + + 1472 + 144 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + N + N + + + last_id + last_id + + + dmsa_id + dmsa_id + + None + + + + + 939 + 137 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + dmse_id + dmse_id + + None + + + + + 484 + 137 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rcbe_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + resumo_cobranca_acao_eventual + TableInput + + N + + 1 + + none + + + comercial_gsan + ------------------------------------------- ----------- QUERY PRINCIPAL---------------- --------RESUMO Ações de Cobrança---------- ------------VERSAO 05/JAN/2016------------- SELECT rcbe_id -- CHAVE PRIMARY , substr(cast(cacm.cacm_tmrealizacao as char(4)),1,4)||substr(cast(cacm.cacm_tmrealizacao as char(7)),6,2) as rcbe_amreferencia , substr(cast(rcbe_tmrealizacaoemitir as char(4)),1,4)||substr(cast(rcbe_tmrealizacaoemitir as char(7)),6,2)|| substr(cast(rcbe_tmrealizacaoemitir as char(10)),9,2) as rcbe_tmrealizacaoemitir -- DATA/HORA REALIZACAO EMITIR , substr(cast(rcbe_tmrealizacaoencerrar as char(4)),1,4)||substr(cast(rcbe_tmrealizacaoencerrar as char(7)),6,2)|| substr(cast(rcbe_tmrealizacaoencerrar as char(10)),9,2) as rcbe_tmrealizacaoencerrar -- DATA/HORA REALIZACAO ENCERRAR ------------ AÇÃO DE COBRANCA ------------ , coalesce(rcbe.cbac_id,0) as cbac_id -- cobrança ação , coalesce(cbac.svtp_id,0) as svtp_id -- serviço tipo , coalesce(svtp.sptp_id,0) as sptp_id -- serviço tipo perfil , coalesce(cbac.cbst_id,0) as cbst_id -- cobrança situação ------------ DIMEN_LOCALIZACAO ------------- , coalesce(rcbe.greg_id,9999) as greg_id -- DIMEN_LOCALIZACAO , coalesce(rcbe.uneg_id,9999) as uneg_id -- DIMEN_LOCALIZACAO , coalesce(rcbe.loca_id,9999) as loca_id -- DIMEN_LOCALIZACAO , coalesce(loca.loca_cdelo,9999) as loca_cdelo -- DIMEN_LOCALIZACAO , coalesce(rcbe.stcm_id,9999) as stcm_id -- DIMEN_LOCALIZACAO , coalesce(rcbe.rota_id,9999) as rota_id-- DIMEN_LOCALIZACAO , coalesce(rcbe.qdra_id,9999) as qdra_id -- DIMEN_LOCALIZACAO , case when quadra.arti_id is null then 0 else arti_id END as arti_id , coalesce(rcbe_cdsetorcomercial,9999) as rcbe_cdsetorcomercial -- DIMEN_LOCALIZACAO , coalesce(rcbe_nnquadra,9999) as rcbe_nnquadra -- DIMEN_LOCALIZACAO , coalesce(setor.muni_id,9999) as muni_id -- DIMEN_GEOGRAFIA , coalesce(quadra.bair_id,9999) as bair_id --DIMEN_GEOGRAFIA ------------- , coalesce(rcbe.iper_id,9999) as iper_id -- DIMEN_ESFERA_PODER ------------- , coalesce(rcbe.last_id,9999) as last_id -- DIMEN_SITUACAO_AGUA ------------- , coalesce(rcbe.lest_id,9999) as lest_id -- DIMEN_SITUACAO_ESGOTO ------------- , coalesce(catg_id,9999) as catg_id -- DIMEN_CATEGORIA ------------- , coalesce(epod_id,9999) as epod_id -- DIMEN_cliente_tipo ------------- , coalesce(rcbe.empr_id,9999)as empr_id -- DIMEN_EMPRESA ------------- , coalesce(cbac.dotp_id,9999) as dotp_id -- DIMEN_DOCUMENTO_TIPO ------------- , coalesce(cast_id,9999) as cast_id -- dimen_cobranca_acao_situacao ------------- , coalesce(cdst_id,9999) as cdst_id -- dimen_cobranca_debito_situacao ------------- , coalesce(ftcm.ftcm_id,0) as ftcm_id -- grupo faturamento mes , coalesce(ftcm.ftgr_id,0) as ftgr_id -- grupo faturamento ------------- , coalesce(mned_id,0) as mned_id -- ID DO MOTIVO DE NAO ENTREGA DO DOCUMENTO ------------- DIMEN_COBRANCA_CRITERIO------------- , coalesce(rcbe.cbct_id,9999) as cbct_id -- COBRANCA CRITERIO ------------- DIMEN_ACAO_COBRANCA_EFEITO------------- , coalesce(cbac.acef_id,1) as acef_id-- AÇÃO COBRANÇA EFEITO -------------DIMEN_COBRANCA_ACAO_ATIVIDADE------------- , rcbe.cacm_id -- cobranca_acao_atividade_comand -------------DIMEN_ARRECADADOR , coalesce(cacm.arrc_id,9999) as arrc_id ------------- , coalesce(rcbe.cbgr_id,0) as cbgr_id -- cobrança grupo ------------- , rcbe_icdefinitivo -- INDICADOR DEFINITIVO , coalesce(rcbe_icantesapos,2) AS rcbe_icantesapos -- INDICADOR ANTES APOS , rcbe_icacimalimite -- INDICADOR ACIMA LIMITE ------------- MEDIDAS------------- , rcbe_qtdocumentos -- DOCUMENTOS , rcbe_vldocumentos -- VALOR DOCUMENTOS , rcbe_qtimoveismarcados -- QUANTIDADE DE IMOVEIS MARCADOS PELA ACAO DE COBRANCA , rcbe_qtimoveisdesmarcados -- QUANTIDADE DE IMOVEIS DESMARCADOS NA ACAO DE COBRANCA , rcbe_qtparcelamentos -- QUANTIDADE DE PARCELAMENTOS EFETUADOS , rcbe_qtparcelamentoscomentrada -- QUANTIDADE DE PARCELAMENTOS COM ENTRADA EFETUADOS , rcbe_vlentradaparcelamento -- VALOR DE ENTRADA DE PARCELAMENTO NEGOCIADOS FROM gsan_admin.resumo_cobranca_acao_eventual rcbe --INNER JOIN gsan_admin.sistema_parametros ON 1=1 INNER JOIN gsan_admin.cobranca_acao_atividade_comand cacm ON rcbe.cacm_id=cacm.cacm_id INNER JOIN gsan_admin.cobranca_acao cbac ON rcbe.cbac_id=cbac.cbac_id INNER JOIN gsan_admin.localidade loca ON rcbe.loca_id = loca.loca_id INNER JOIN gsan_admin.quadra quadra ON rcbe.qdra_id = quadra.qdra_id INNER JOIN gsan_admin.setor_comercial setor ON rcbe.stcm_id = setor.stcm_id left join gsan_admin.faturamento_grupo_cron_mensal ftcm on rcbe.ftcm_id=ftcm.ftcm_id left join gsan_admin.servico_tipo svtp on cbac.svtp_id=svtp.svtp_id --WHERE substr(cast(cacm.cacm_tmrealizacao as char(4)),1,4)||substr(cast(cacm.cacm_tmrealizacao as char(7)),6,2)=cast(parm_amreferenciafaturamento as char(7)) + 0 + + N + Y + N + + + 48 + 80 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_resumo_ligacoes_economia.ktr b/gerencial_pentaho-master/PDI/ktr_fato_resumo_ligacoes_economia.ktr new file mode 100644 index 0000000..877ca3e --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_resumo_ligacoes_economia.ktr @@ -0,0 +1,1570 @@ + + + + ktr_fato_resumo_ligacoes_economia + + + + Normal + 0 + / + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Tratamento para NULL: coalesce (c.muni_id,9999) as muni_id - Geografia coalesce (bair_id,9999) as bair_id - Geografia coalesce (epod_id,9999) as epod_id - Cliente Tipo coalesce (cltp_id,9999) as cltp_id - Cliente Tipo + 7 + 213 + 270 + 90 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_geograficalookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + dimen_tempolookup_tempoY + un_res_lig_econlookup_cliente_tipoY + localidadelookup_localizacaoY + lookup_localizacaolookup_tempoY + Select valuesfato_ligacao_economiaY + lookup_tempoCalc_Num_Lig_demonsY + Calc_Num_Lig_demonsrele_idY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + lookup_situacao_esgotolookup_geograficaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + lookup_situacao_agualookup_localizacaoY + lookup_geograficalookup_categoria_subcategoriaY + rele_idCalculatorY + CalculatorSelect valuesY + + + Calc_Num_Lig_demons + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //r1017: Medidas para serem utilizadas no demostrativo de faturamento/arrecadacao var rele_numligacoesmedidas var rele_numligacoesnaomedidas var rele_numligacoesativasesgoto var rele_numligacoesinativasesgoto var rele_numligacoesativasagua var rele_numligacoesinativasagua var rele_numligacoesnaoanalisesesgoto var rele_numligacoesanalisesesgoto var rele_numligacoesanalisesagua var rele_numligacoesnaoanalisesagua var rele_numligacodesligadasesgoto var rele_numligaconaodesligadasesgoto var rele_numligaconaodesligadasagua var rele_numligacodesligadasagua var rele_numligacocadastradassesgoto var rele_numligaconaocadastradassesgoto var rele_numligacocadastradassagua var rele_numligaconaocadastradassagua var rele_numeconomiasativasesgoto var rele_numeconomiasativasagua var rele_economiastotaisagua var rele_economiastotaisesgoto // Quantidade de Ligacoes Medidias/Nao Medidas if(rele_ichidrometro==1){ rele_numligacoesmedidas=rele_qtligacoes} else{ rele_numligacoesmedidas=0}; if(rele_ichidrometro==2){ rele_numligacoesnaomedidas=rele_qtligacoes} else{ rele_numligacoesnaomedidas=0}; // Quantidade de Ligacoes ativos/inativos // esgoto if(lest_id==3 || lest_id==4 || lest_id==2){ rele_numligacoesativasesgoto=rele_qtligacoes; rele_numeconomiasativasesgoto=rele_qteconomias} else{ rele_numligacoesativasesgoto=0; rele_numeconomiasativasesgoto=0} if(lest_icativaesgoto==2){ rele_numligacoesinativasesgoto=rele_qtligacoes} else{ rele_numligacoesinativasesgoto=0} // Agua if(last_id==3 ||last_id==5 || last_id==6 || last_id==7){ rele_numligacoesativasagua=rele_qtligacoes; rele_numeconomiasativasagua=rele_qteconomias} else{ rele_numligacoesativasagua=0; rele_numeconomiasativasagua=0} if(last_icativaagua==2){ rele_numligacoesinativasagua=rele_qtligacoes} else{ rele_numligacoesinativasagua=0} // Quantidade de Ligacoes analise/nao analise // esgoto if(lest_icanaliseesgoto==1){ rele_numligacoesanalisesesgoto=rele_qtligacoes} else{ rele_numligacoesanalisesesgoto=0} if(lest_icanaliseesgoto==2){ rele_numligacoesnaoanalisesesgoto=rele_qtligacoes} else{ rele_numligacoesnaoanalisesesgoto=0} // Agua if(last_icanaliseagua==1){ rele_numligacoesanalisesagua=rele_qtligacoes} else{ rele_numligacoesanalisesagua=0} if(last_icanaliseagua==2){ rele_numligacoesnaoanalisesagua=rele_qtligacoes} else{ rele_numligacoesnaoanalisesagua=0} // Quantidade de Ligacoes Desligada /nao desligada // esgoto if(lest_icdesligadaesgoto==1){ rele_numligacodesligadasesgoto=rele_qtligacoes} else{ rele_numligacodesligadasesgoto=0} if(lest_icdesligadaesgoto==2){ rele_numligaconaodesligadasesgoto=rele_qtligacoes} else{ rele_numligaconaodesligadasesgoto=0} // Agua if(last_icdesligadaagua==1){ rele_numligacodesligadasagua=rele_qtligacoes} else{ rele_numligacodesligadasagua=0} if(last_icdesligadaagua==2){ rele_numligaconaodesligadasagua=rele_qtligacoes} else{ rele_numligaconaodesligadasagua=0} // Quantidade de Ligacoes Cadastradas /nao Cadastrada // esgoto if(lest_iccadastradaesgoto==1){ rele_numligacocadastradassesgoto=rele_qtligacoes} else{ rele_numligacocadastradassesgoto=0} if(lest_iccadastradaesgoto==2){ rele_numligaconaocadastradassesgoto=rele_qtligacoes} else{ rele_numligaconaocadastradassesgoto=0} // Agua if(last_iccadastradaagua==1){ rele_numligacocadastradassagua=rele_qtligacoes} else{ rele_numligacocadastradassagua=0} if(last_iccadastradaagua==2){ rele_numligaconaocadastradassagua=rele_qtligacoes} else{ rele_numligaconaocadastradassagua=0} // Economia Totais Agua sem Potencial e Factivel if(!(last_id==1 || last_id==2)){ rele_economiastotaisagua=rele_qteconomias} else{ rele_economiastotaisagua=0} // Economia Totais Esgoto sem Potencial e Factivel if(!(lest_id==1 || lest_id==2)){ rele_economiastotaisesgoto=rele_qteconomias} else{ rele_economiastotaisesgoto=0} + rele_numligacoesmedidas + rele_numligacoesmedidas + Number + 16 + 2 + N + rele_numligacoesnaomedidas + rele_numligacoesnaomedidas + Number + 16 + 2 + N + rele_numligacoesativasesgoto + rele_numligacoesativasesgoto + Number + 16 + 2 + N + rele_numligacoesinativasesgoto + rele_numligacoesinativasesgoto + Number + 16 + 2 + N + rele_numligacoesativasagua + rele_numligacoesativasagua + Number + 16 + 2 + N + rele_numligacoesinativasagua + rele_numligacoesinativasagua + Number + 16 + 2 + N + rele_numligacoesnaoanalisesesgoto + rele_numligacoesnaoanalisesesgoto + Number + 16 + 2 + N + rele_numligacoesanalisesesgoto + rele_numligacoesanalisesesgoto + Number + 16 + 2 + N + rele_numligacoesanalisesagua + rele_numligacoesanalisesagua + Number + 16 + 2 + N + rele_numligacoesnaoanalisesagua + rele_numligacoesnaoanalisesagua + Number + 16 + 2 + N + rele_numligacodesligadasesgoto + rele_numligacodesligadasesgoto + Number + 16 + 2 + N + rele_numligaconaodesligadasesgoto + rele_numligaconaodesligadasesgoto + Number + 16 + 2 + N + rele_numligaconaodesligadasagua + rele_numligaconaodesligadasagua + Number + 16 + 2 + N + rele_numligacodesligadasagua + rele_numligacodesligadasagua + Number + 16 + 2 + N + rele_numligacocadastradassesgoto + rele_numligacocadastradassesgoto + Number + 16 + 2 + N + rele_numligaconaocadastradassesgoto + rele_numligaconaocadastradassesgoto + Number + 16 + 2 + N + rele_numligacocadastradassagua + rele_numligacocadastradassagua + Number + 16 + 2 + N + rele_numligaconaocadastradassagua + rele_numligaconaocadastradassagua + Number + 16 + 2 + N + rele_numeconomiasativasesgoto + rele_numeconomiasativasesgoto + Number + 16 + 2 + N + rele_numeconomiasativasagua + rele_numeconomiasativasagua + Number + 16 + 2 + N + rele_economiastotaisagua + rele_economiastotaisagua + Number + 16 + 2 + N + rele_economiastotaisesgoto + rele_economiastotaisesgoto + Number + 16 + 2 + N + + + 1198 + 260 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rele_id +ADD +rele +id + +Integer +-1 +-1 +N + + + + + + + + 994 + 264 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + rele_id + + -2 + -2 + rele_amreferencia + + -2 + -2 + rele_qtligacoes + + -2 + -2 + rele_qteconomias + + -2 + -2 + rele_tmultimaalteracao + + -2 + -2 + rele_qtligacoesnovasagua + + -2 + -2 + rele_qtligacoesnovasesgoto + + -2 + -2 + rele_qtligacoescortesmes + + -2 + -2 + rele_qtligacoesreligadasmes + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + rele_numligacoesmedidas + + -2 + -2 + rele_numligacoesnaomedidas + + -2 + -2 + rele_numligacoesativasesgoto + + -2 + -2 + rele_numligacoesinativasesgoto + + -2 + -2 + rele_numligacoesativasagua + + -2 + -2 + rele_numligacoesinativasagua + + -2 + -2 + rele_numligacoesnaoanalisesesgoto + + -2 + -2 + rele_numligacoesanalisesesgoto + + -2 + -2 + rele_numligacoesanalisesagua + + -2 + -2 + rele_numligacoesnaoanalisesagua + + -2 + -2 + rele_numligacodesligadasesgoto + + -2 + -2 + rele_numligaconaodesligadasesgoto + + -2 + -2 + rele_numligaconaodesligadasagua + + -2 + -2 + rele_numligacodesligadasagua + + -2 + -2 + rele_numligacocadastradassesgoto + + -2 + -2 + rele_numligaconaocadastradassesgoto + + -2 + -2 + rele_numligacocadastradassagua + + -2 + -2 + rele_numligaconaocadastradassagua + + -2 + -2 + rele_numeconomiasativasesgoto + + -2 + -2 + rele_numeconomiasativasagua + + -2 + -2 + rele_economiastotaisagua + + -2 + -2 + rele_economiastotaisesgoto + + -2 + -2 + rele_qteconomiasnovasagua + + -2 + -2 + rele_qteconomiasnovasesgoto + + -2 + -2 + N + + + 904 + 264 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 189 + 36 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 618 + 35 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , last_icuso , last_icativaagua , last_icdesligadaagua , last_iccadastradaagua , last_icanaliseagua , lapf_id , lapf_dsligacaoaguaperfil , lapf_icuso , dmsa_ichidrometro , dmsa_icvolumefixadoagua , dmsa_icpoco , dmsa_ichidrometropoco , dmsa_icvolumeexcedente , dmsa_icligacaofaturada , dmsa_id , dmsa_ichidrometro_desc , dmsa_icpoco_desc , dmsa_icvolumefixadoagua_desc , dmsa_hidrometropoco_desc , dmsa_icvolumeexcedente_desc , dmsa_icligacaofaturada_desc , dmsa_lapf_icuso_desc , dmsa_last_icuso_desc , dmsa_last_icativaagua_desc , dmsa_last_icdesligadaagua_desc , dmsa_last_iccadastradaagua_desc , dmsa_last_icanaliseagua_desc FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 938 + 34 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lest_dsligacaoesgotosituacao , lest_icuso , lest_icativaesgoto , lest_icdesligadaesgoto , lest_iccadastradaesgoto , lest_icanaliseesgoto , lepf_id , lepf_dsligacaoesgotoperfil , lepf_icuso , lepf_pcesgoto , dmse_icvolumefixadoesgoto , dmse_icvlexcedente , dmse_id , dmse_icvolumefixadoesgoto_desc , dmse_lepf_icuso_desc , dmse_lest_icuso_desc , dmse_lest_icativaesgoto_desc , dmse_lest_icdesligadaesgoto_desc , dmse_lest_icanaliseesgoto_desc FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 487 + 31 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + fato_ligacao_economia + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_ligacao_economia
+ 50000 + N + N + N + N + N + + N + Y + N + + Y + N + + + + + + 776 + 268 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1071 + 53 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 188 + 135 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1077 + 138 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + cstf_id + cstf_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + N + N + + + last_id + last_id + + + lapf_id + lapf_id + + + rele_ichidrometro + dmsa_ichidrometro + + + rele_ichidrometropoco + dmsa_ichidrometropoco + + + rele_icpoco + dmsa_icpoco + + + rele_icvolumefixadoagua + dmsa_icvolumeexcedente + + + dmsa_id + dmsa_id + + None + + + last_icanaliseagua + last_icanaliseagua + + None + + + last_icativaagua + last_icativaagua + + None + + + last_iccadastradaagua + last_iccadastradaagua + + None + + + last_icdesligadaagua + last_icdesligadaagua + + None + + + + + 924 + 139 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + rele_icvolumefixadoesgoto + dmse_icvolumefixadoesgoto + + + dmse_id + dmse_id + + None + + + lest_icanaliseesgoto + lest_icanaliseesgoto + + None + + + lest_icativaesgoto + lest_icativaesgoto + + None + + + lest_iccadastradaesgoto + lest_iccadastradaesgoto + + None + + + lest_icdesligadaesgoto + lest_icdesligadaesgoto + + None + + + + + 481 + 133 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rele_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + rele_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + rele_seq + Y + + 1 + 1 + 999999999 + + + 1066 + 263 + Y + + + + + un_res_lig_econ + TableInput + + N + + 1 + + none + + + comercial_gsan + ------------------------------------------- ----------- QUERY PRINCIPAL---------------- --------RESUMO LIGACOES ECONOMIAS---------- ------------VERSAO 01/02/2016------------- ----------------------------------------------------------------------------------------------- SELECT --5000 as rele, ${max} as rele, cast((case when substr(cast(parm_amreferenciaarrecadacao as char(6)),5,2) > '01' then (parm_amreferenciaarrecadacao -1) else (parm_amreferenciaarrecadacao - 89) end) as char(6)) as rele_amreferencia, coalesce(loca.greg_id,9999) as greg_id, coalesce(loca.uneg_id,9999) as uneg_id, coalesce(loca.loca_id,9999) as loca_id, coalesce(loca.loca_cdelo,9999) as loca_cdelo, case when imo.stcm_id is null then 9999 else imo.stcm_id end as stcm_id, case when imo.qdra_id is null then 9999 else imo.qdra_id end as qdra_id, case when quadra.rota_id is null then 9999 else quadra.rota_id end as rota_id, case when quadra.arti_id is null then 0 else arti_id END as arti_id, coalesce(setor.stcm_cdsetorcomercial,9999) as stcm_cdsetorcomercial, coalesce(quadra.qdra_nnquadra,9999) as qdra_nnquadra, coalesce(setor.muni_id,9999) as muni_id, coalesce(quadra.bair_id,9999) as bair_id, coalesce(imo.iper_id,9999) as iper_id, coalesce(imo.last_id,9999) as last_id, coalesce(imo.lest_id,9999) as lest_id, CASE WHEN la.lapf_id IS NULL THEN 9999 ELSE la.lapf_id END as lapf_id, CASE WHEN le.lepf_id IS NULL THEN 9999 ELSE le.lepf_id END as lepf_id, -----------------INDICADORES-------------------------------------------------------------------------- CASE WHEN la.hidi_id IS NOT NULL THEN 1 ELSE 2 END as rele_ichidrometro, CASE WHEN imo.hidi_id IS NOT NULL THEN 1 ELSE 2 END as rele_ichidrometropoco, CASE WHEN coalesce(imo.poco_id,0) > 1 THEN 1 ELSE 2 END as rele_icpoco, CASE WHEN coalesce(la.lagu_nnconsumominimoagua,0) > 0 THEN 1 ELSE 2 END as rele_icvolumefixadoagua, CASE WHEN coalesce(le.lesg_nnconsumominimoesgoto,0) > 0 THEN 1 ELSE 2 END as rele_icvolumefixadoesgoto, -------------------------------------------------------------------------------------------------------- coalesce(imo.cstf_id,9999) as cstf_id, coalesce(rota.rota_cdrota,9999) as rota_cdrota, imo.imov_icimovelcondominio, la.lagu_dtimplantacao, le.lesg_dtligacao, la.lagu_dtcorte, la.lagu_dtreligacaoagua, -------------RECUPERA A CATEGORIA PRINCIPAL (a de maior número de economia)------------------------------------------------------------------- (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = imo.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) as catg_id , -------------RECUPERA A SUBCATEGORIA PRINCIPAL (a de maior número de economia)------------------------------------------------------------------- (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = imo.imov_id order by imsb_qteconomia desc limit 1) as scat_id, ---------------------------------------------------------------------------------------------------------------------------------------------- CASE WHEN ep.epod_id IS NOT NULL THEN ep.epod_id ELSE 0 END as epod_id, CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 0 END as cltp_id, now() as rele_tmultimaalteracao, ----------------------MEDIDAS------------------------------------------------------------------------------------- COUNT(Case when substr(cast(coalesce(lagu_dtligacaoagua,lagu_dtreligacaoagua) as char(4)),1,4)|| substr(cast(coalesce(lagu_dtligacaoagua,lagu_dtreligacaoagua) as char(7)),6,2) <= cast((parm_amreferenciafaturamento -1) as char (6)) OR substr(cast(imov_tmultimaalteracao as char(4)),1,4)||substr(cast(imov_tmultimaalteracao as char(7)),6,2) <= cast((parm_amreferenciafaturamento -1) as char (6)) then 1 end) as rele_qtligacoes, ------------------------------ SUM(Case when substr(cast(coalesce(lagu_dtligacaoagua,lagu_dtreligacaoagua) as char(4)),1,4)|| substr(cast(coalesce(lagu_dtligacaoagua,lagu_dtreligacaoagua) as char(7)),6,2) <= cast((parm_amreferenciafaturamento -1) as char (6)) OR substr(cast(imov_tmultimaalteracao as char(4)),1,4)||substr(cast(imov_tmultimaalteracao as char(7)),6,2) <= cast((parm_amreferenciafaturamento -1) as char (6)) then coalesce(imo.imov_qteconomia,0) else 0 end) as rele_qteconomias, ------------------------------ SUM(Case when cast(la.lagu_dtimplantacao as char(4))||substring(cast(la.lagu_dtimplantacao as char(8)),6,2) = cast((parm_amreferenciaarrecadacao -1) as char(6)) then 1 else 0 end) as rele_qtligacoesnovasagua, SUM(Case when cast(la.lagu_dtimplantacao as char(4))||substring(cast(la.lagu_dtimplantacao as char(8)),6,2) = cast((parm_amreferenciaarrecadacao -1) as char(6)) then coalesce(imo.imov_qteconomia,0) else 0 end) as rele_qteconomiasnovasagua, SUM(Case when cast(la.lagu_dtreligacaoagua as char(4))||substring(cast(la.lagu_dtreligacaoagua as char(8)),6,2) = cast((parm_amreferenciaarrecadacao -1) as char(6)) then 1 else 0 end) as rele_qtligacoesreligadasmes, SUM(Case when cast(la.lagu_dtcorte as char(4))||substring(cast(la.lagu_dtcorte as char(8)),6,2) = cast((parm_amreferenciaarrecadacao -1) as char(6)) then 1 else 0 end) as rele_qtligacoescortesmes, SUM(Case when cast(le.lesg_dtligacao as char(4))||substring(cast(le.lesg_dtligacao as char(8)),6,2) = cast((parm_amreferenciaarrecadacao -1) as char(6)) then 1 else 0 end) as rele_qtligacoesnovasesgoto, SUM(Case when cast(le.lesg_dtligacao as char(4))||substring(cast(le.lesg_dtligacao as char(8)),6,2) = cast((parm_amreferenciaarrecadacao -1) as char(6)) then coalesce(imo.imov_qteconomia,0) else 0 end) as rele_qteconomiasnovasesgoto ------------------------------------------------------------------------------------------------------------------ FROM gsan_admin.imovel imo INNER JOIN gsan_admin.sistema_parametros ON 1=1 INNER JOIN gsan_admin.rota rota ON imo.rota_id = rota.rota_id INNER JOIN gsan_admin.localidade loca ON imo.loca_id = loca.loca_id INNER JOIN gsan_admin.setor_comercial setor ON imo.stcm_id = setor.stcm_id INNER JOIN gsan_admin.quadra quadra ON imo.qdra_id = quadra.qdra_id LEFT JOIN gsan_admin.ligacao_agua la ON imo.imov_id = la.lagu_id LEFT JOIN gsan_admin.ligacao_esgoto le ON imo.imov_id = le.lesg_id ----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- INNER JOIN gsan_admin.cliente_imovel cir ON imo.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente ci ON ci.clie_id = cir.clie_id INNER JOIN gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id INNER JOIN gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id -------------------------------------------------------------------------------------------------------------------- WHERE imo.imov_icexclusao = 2 --and lest_id in (3,5)--and imo.loca_id in ( ${loca_id} ) ----(código da localidadade) group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35 + 0 + + N + Y + N + + + 32 + 96 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_fato_resumo_registro_atendimento.ktr b/gerencial_pentaho-master/PDI/ktr_fato_resumo_registro_atendimento.ktr new file mode 100644 index 0000000..477af5b --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_fato_resumo_registro_atendimento.ktr @@ -0,0 +1,2027 @@ + + + + ktr_fato_resumo_registro_atendimento + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + Tratamento para NULL: coalesce (c.muni_id,9999) as muni_id - Geografia coalesce (bair_id,9999) as bair_id - Geografia coalesce (epod_id,9999) as epod_id - Cliente Tipo coalesce (cltp_id,9999) as cltp_id - Cliente Tipo + 7 + 213 + 270 + 90 + Segoe UI + 9 + N + N + 0 + 0 + 0 + 255 + 205 + 112 + 100 + 100 + 100 + Y + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_cliente_tipolookup_cliente_tipoY + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + lookup_cliente_tipolookup_perfil_imovel_tarifaY + dimen_geograficalookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + dimen_tempolookup_tempoY + Select valuesfato_registro_atendimentoY + localidadelookup_localizacaoY + dimen_motivo_encerramentolookup_motivo_encerramentoY + dimen_solicitacaolookup_solicitacaoY + recebida_mes_onlinelookup_onlineY + lookup_solicitacaolookup_onlineY + lookup_tempolookup_motivo_encerramentoY + lookup_onlineunidade_solicitacaoY + dimen_unidade_organizacionalunidade_solicitacaoY + unidade_solicitacaounidade_encerramentoY + un_resumo_raSelect values 2Y + Select values 2lookup_cliente_tipoY + situacao_agualookup situacao_aguaY + lookup_categoria_subcategorialookup situacao_aguaY + lookup situacao_agualookup_localizacaoY + situacao agostoStream lookup 3Y + lookup_perfil_imovel_tarifaStream lookup 3Y + lookup_localizacaolookup_tempoY + Stream lookup 3lookup_geograficaY + lookup_motivo_encerramentolookup_solicitacaoY + lookup_geograficalookup_categoria_subcategoriaY + rera_idCalculatorY + CalculatorSelect valuesY + dimen_unidade_organizacionalunidade_encerramentoY + unidade_encerramentounidade_atualY + unidade_atualrera_idY + dimen_unidade_organizacionalunidade_atualY + + + Calculator + Calculator + + Y + + 1 + + none + + + rera_id +ADD +rera +id + +Integer +-1 +-1 +N + + + + + + + + 597 + 562 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + rera_id + + -2 + -2 + rera_amreferencia + + -2 + -2 + rera_qtrageradas + + -2 + -2 + rera_qtrabloqueadas + + -2 + -2 + rera_qtrapendentes_no_prazo + + -2 + -2 + rera_qtraencerradas_no_prazo + + -2 + -2 + rera_qtrapendentes_fora_prazo + + -2 + -2 + rera_qtraencerradas_fora_prazo + + -2 + -2 + dmct_id + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmtp_id + + -2 + -2 + dmuo_sol_id + + -2 + -2 + dmuo_enc_id + + -2 + -2 + dmuo_atual_id + + -2 + -2 + dmme_id + + -2 + -2 + dmsol_id + + -2 + -2 + dmrecm_id + + -2 + -2 + N + + + 402 + 562 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + N + rera_amreferencia + rera_amreferencia + String + 6 + -2 + + false + + + false + + + + + + greg_id + greg_id + Integer + 9 + 0 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 9 + 0 + + false + + + false + + + + + + loca_id + loca_id + Integer + 9 + 0 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 9 + 0 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 9 + 0 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 9 + 0 + + false + + + false + + + + + + arti_id + arti_id + Integer + 9 + 0 + + false + + + false + + + + + + rota_id + rota_id + Integer + 9 + 0 + + false + + + false + + + + + + muni_id + muni_id + Integer + 9 + 0 + + false + + + false + + + + + + bair_id + bair_id + Integer + 9 + 0 + + false + + + false + + + + + + iper_id + iper_id + Integer + 9 + 0 + + false + + + false + + + + + + last_id + last_id + Integer + 9 + 0 + + false + + + false + + + + + + lapf_id + lapf_id + Integer + 9 + 0 + + false + + + false + + + + + + lest_id + lest_id + Integer + 9 + 0 + + false + + + false + + + + + + lepf_id + lepf_id + Integer + 9 + 0 + + false + + + false + + + + + + catg_id + catg_id + Integer + 9 + 0 + + false + + + false + + + + + + scat_id + scat_id + Integer + 9 + 0 + + false + + + false + + + + + + epod_id + epod_id + Integer + 9 + 0 + + false + + + false + + + + + + cltp_id + cltp_id + Integer + 9 + 0 + + false + + + false + + + + + + rera_unidade_solicitacao + rera_unidade_solicitacao + Integer + 9 + 0 + + false + + + false + + + + + + rera_unidade_atual + rera_unidade_atual + Integer + 9 + -2 + + false + + + false + + + + + + rera_unidade_encerramento + rera_unidade_encerramento + Integer + 9 + 0 + + false + + + false + + + + + + rera_icatendimentoonline + rera_icatendimentoonline + Integer + 9 + 0 + + false + + + false + + + + + + amen_id + amen_id + Integer + 9 + 0 + + false + + + false + + + + + + meso_id + meso_id + Integer + 9 + 0 + + false + + + false + + + + + + sotp_id + sotp_id + Integer + 9 + 0 + + false + + + false + + + + + + step_id + step_id + Integer + 9 + 0 + + false + + + false + + + + + + + + 116 + 134 + Y + + + + + Stream lookup 3 + StreamLookup + + Y + + 1 + + none + + + situacao agosto + N + Y + N + N + + + lest_id + lest_id + + + lepf_id + lepf_id + + + dmse_id + dmse_id + + None + + + + + 487 + 138 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 761 + 35 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 189 + 36 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 618 + 35 + Y + + + + + dimen_motivo_encerramento + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT amen_id , amen_dsmotivoencerramento , amen_dsabreviado , amen_icuso , amen_icexecucao , amen_icduplicidade , dmme_id FROM gerencial_cagepa.dimen_motivo_encerramento + 0 + + N + N + N + + + 990 + 233 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 315 + 34 + Y + + + + + dimen_solicitacao + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT sotp_id , sotp_dssolicitacaotipo , step_id , step_dssolcttipoespec , meso_id , meso_dsmeiosolicitacao , meso_dsabreviado , meso_icuso , dmsol_id FROM gerencial_cagepa.dimen_solicitacao + 0 + + N + N + N + + + 1007 + 319 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmtp_id , ano , anomes FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 1199 + 39 + Y + + + + + dimen_unidade_organizacional + TableInput + + N + + 1 + + none + + + VERTICA_JNDI + SELECT dmuo_id , unid_id , unid_dsunidade FROM gerencial_cagepa.dimen_unidade_organizacional + 0 + + N + N + N + + + 1119 + 445 + Y + + + + + fato_registro_atendimento + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_registro_atendimento
+ 1000 + N + N + N + N + N + + N + Y + N + + Y + N + + + + + + 127 + 566 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , greg_nmregional , uneg_id , uneg_nmunidadenegocio , loca_id , loca_nmlocalidade , loca_cdelo , loca_nmlocalidadeelo , stcm_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , qdra_id , qdra_nnquadra , qdra_desc , arti_id , arti_dsarea , rota_id , rota_cdrota , rota_desc , ftgr_id , ftgr_desc , data_atual , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 1072 + 31 + Y + + + + + lookup situacao_agua + StreamLookup + + Y + + 1 + + none + + + situacao_agua + N + Y + N + N + + + last_id + last_id + + + lapf_id + lapf_id + + + dmsa_id + dmsa_id + + None + + + + + 921 + 141 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 762 + 137 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + cltp_id + cltp_id + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 188 + 135 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 617 + 137 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 1077 + 138 + Y + + + + + lookup_motivo_encerramento + StreamLookup + + Y + + 1 + + none + + + dimen_motivo_encerramento + N + Y + N + N + + + amen_id + amen_id + + + dmme_id + dmme_id + + None + + + + + 1184 + 224 + Y + + + + + lookup_online + StreamLookup + + Y + + 1 + + none + + + recebida_mes_online + N + Y + N + N + + + rera_icatendimentoonline + dmrecm_id + + + dmrecm_id + dmrecm_id + + None + + + + + 1200 + 384 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + dmpt_id + dmpt_id + + None + + + + + 316 + 136 + Y + + + + + lookup_solicitacao + StreamLookup + + Y + + 1 + + none + + + dimen_solicitacao + N + Y + N + N + + + sotp_id + sotp_id + + + step_id + step_id + + + meso_id + meso_id + + + dmsol_id + dmsol_id + + None + + + + + 1199 + 319 + Y + + + + + lookup_tempo + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rera_amreferencia + anomes + + + dmtp_id + dmtp_id + + None + + + + + 1197 + 140 + Y + + + + + recebida_mes_online + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmrecm_id , recebidames , online FROM gerencial_cagepa.dimen_recebida_mes + 0 + + N + N + N + + + 1014 + 384 + Y + + + + + rera_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + rera_seq + Y + + 1 + 1 + 999999999 + + + 803 + 562 + Y + + + + + situacao agosto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT lest_id , lepf_id , dmse_id FROM gerencial_cagepa.dimen_situacao_esgoto order by lest_id + 0 + + N + N + N + + + 483 + 0 + Y + + + + + situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT last_id , last_dsligacaoaguasituacao , lapf_id , dmsa_id FROM gerencial_cagepa.dimen_situacao_agua order by last_id + 0 + + N + N + N + + + 914 + 0 + Y + + + + + un_resumo_ra + TableInput + + N + + 1 + + none + + + comercial_gsan + ------Geração da tabela FATO REGISTRO ATENDIMENTO ------VERSAO CAGEPA em 01/01/2016 ------ SELECT --5000 as rera, ${max} as rera, --------DIMENSOES--------------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento -1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as rera_amreferencia, coalesce(greg_id,9999) as greg_id, coalesce(uneg_id,9999) as uneg_id, coalesce(CASE WHEN ra.imov_id is not null then imo.loca_id else ra.loca_id end ,9999) as loca_id, coalesce(loca_cdelo,9999) as loca_cdelo, coalesce(CASE WHEN ra.imov_id is not null then imo.stcm_id else ra.stcm_id end,9999) as stcm_id, coalesce(CASE WHEN ra.imov_id is not null then imo.qdra_id else ra.qdra_id end,9999) as qdra_id, coalesce(sc.muni_id,9999) as muni_id, coalesce(qd.bair_id,9999) as bair_id, case when qd.arti_id is null then 0 else qd.arti_id END as arti_id, coalesce(qd.rota_id,9999) as rota_id, coalesce(raua.unid_id,9999) as rera_unidade_solicitacao,-- dimen_unidade_oganizacional coalesce(rauex.unid_id,9999) as rera_unidade_atual,-- dimen_unidade_oganizacional coalesce(raue.unid_id,9999) as rera_unidade_encerramento, coalesce(iper_id, 9999) as iper_id, coalesce(last_id, 9999 ) as last_id, coalesce(lest_id, 9999 ) as lest_id, coalesce(lapf_id, 9999 ) as lapf_id, coalesce(lepf_id, 9999 ) as lepf_id, rgat_icatendimentoonline as rera_icatendimentoonline, coalesce(ste.sotp_id,9999) as sotp_id, -- dimen_solicitação coalesce(ra.step_id,9999) as step_id, -- dimen_solicitação coalesce(meso_id,9999) as meso_id , -- dimen_solicitação coalesce(ra.amen_id, 9999) as amen_id, -- motivo encerramento coalesce((select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = imo.imov_id order by imsb_qteconomia desc, catg_id asc limit 1),9999) as catg_id, coalesce((select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = imo.imov_id order by imsb_qteconomia desc limit 1),9999) as scat_id, CASE WHEN ep.epod_id IS NOT NULL THEN ep.epod_id ELSE 9999 END as epod_id, CASE WHEN ct.cltp_id IS NOT NULL THEN ct.cltp_id ELSE 9999 END as cltp_id, ------MEDIDAS------------------------------------------------------------------------------------------------------------------- ------Quantidade RA geradas no mês count(ra.rgat_id) as rera_qtrageradas, ------Quantidade RA pendente no prazo count(CASE WHEN rgat_cdsituacao = 1 and (substr(cast(rgat_dtprevistaoriginal as char (10)),1,4)||substr(cast(rgat_dtprevistaoriginal as char (10)),6,2)||substr(cast(rgat_dtprevistaoriginal as char (10)),9,2)) >= (substr(cast(current_date as char(10)),1,4)||substr(cast(current_date as char(10)),6,2)||substr(cast(current_date as char(10)),9,2)) THEN 1 END) as rera_qtrapendentes_no_prazo, ------Quantidade RA pendente fora do prazo count(CASE WHEN rgat_cdsituacao = 1 and (substr(cast(rgat_dtprevistaoriginal as char (10)),1,4)||substr(cast(rgat_dtprevistaoriginal as char (10)),6,2)||substr(cast(rgat_dtprevistaoriginal as char (10)),9,2)) < (substr(cast(current_date as char(10)),1,4)||substr(cast(current_date as char(10)),6,2)||substr(cast(current_date as char(10)),9,2)) THEN 1 END) as rera_qtrapendentes_fora_prazo, ------Quantidade RA encerrada no prazo count(CASE WHEN rgat_cdsituacao = 2 and (substr(cast(rgat_tmencerramento as char (10)),1,4)||substr(cast(rgat_tmencerramento as char (10)),6,2)||substr(cast(rgat_tmencerramento as char (10)),9,2)) <= (substr(cast(rgat_dtprevistaoriginal as char(10)),1,4)||substr(cast(rgat_dtprevistaoriginal as char(10)),6,2)||substr(cast(rgat_dtprevistaoriginal as char(10)),9,2)) THEN 1 END) as rera_qtraencerradas_no_prazo, ------Quantidade RA encerrada fora do prazo count(CASE WHEN rgat_cdsituacao = 2 and (substr(cast(rgat_tmencerramento as char (10)),1,4)||substr(cast(rgat_tmencerramento as char (10)),6,2)||substr(cast(rgat_tmencerramento as char (10)),9,2)) > (substr(cast(rgat_dtprevistaoriginal as char(10)),1,4)||substr(cast(rgat_dtprevistaoriginal as char(10)),6,2)||substr(cast(rgat_dtprevistaoriginal as char(10)),9,2)) THEN 1 END) as rera_qtraencerradas_fora_prazo, ------Quantidade RA bloqueadas count(CASE WHEN rgat_cdsituacao = 3 THEN 1 END) as rera_qtrabloqueadas ------------------------------------------------------------------------------------ FROM gsan_admin.registro_atendimento ra INNER JOIN gsan_admin.solicitacao_tipo_especificacao ste on ste.step_id = ra.step_id INNER JOIN gsan_admin.solicitacao_tipo st on st.sotp_id = ste.sotp_id INNER JOIN gsan_admin.sistema_parametros on 1=1 LEFT JOIN gsan_admin.imovel imo on imo.imov_id = ra.imov_id and imo.imov_icexclusao = 2 LEFT JOIN gsan_admin.localidade loc on loc.loca_id = (Case when ra.imov_id is not null then imo.loca_id else ra.loca_id end) LEFT JOIN gsan_admin.setor_comercial sc on sc.stcm_id = (Case when ra.imov_id is not null then imo.stcm_id else ra.stcm_id end) LEFT JOIN gsan_admin.quadra qd on qd.qdra_id = (Case when ra.imov_id is not null then imo.qdra_id else ra.qdra_id end) LEFT JOIN gsan_admin.registro_atendimento_unidade raua on raua.rgat_id = ra.rgat_id and raua.attp_id = 1 LEFT JOIN gsan_admin.registro_atendimento_unidade rauex on rauex.rgat_id = ra.rgat_id and rauex.attp_id = 2 LEFT JOIN gsan_admin.registro_atendimento_unidade raue on raue.rgat_id = ra.rgat_id and raue.attp_id = 3 LEFT JOIN gsan_admin.atendimento_motivo_encrto ame on ame.amen_id = ra.amen_id LEFT JOIN gsan_admin.ligacao_agua la on la.lagu_id = imo.imov_id LEFT JOIN gsan_admin.ligacao_esgoto le on le.lesg_id = imo.imov_id -----------Tabelas para recuperar a esfera de poder e tipo do cliente----------------------------------------------------------------------------- left join gsan_admin.cliente_imovel cir ON cir.imov_id = imo.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL left join gsan_admin.cliente ci ON ci.clie_id =cir.clie_id left join gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id left join gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id WHERE substr(cast(rgat_tmregistroatendimento as char(10)),1,4)||substr(cast(rgat_tmregistroatendimento as char (10)),6,2) = cast((parm_amreferenciafaturamento -1) as char(6)) ----Seleciona apenas RA gerados no referência(ano/mês) do faturamento group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29 -------------------------------------------------------------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 0 + 128 + Y + + + + + unidade_atual + StreamLookup + + Y + + 1 + + none + + + dimen_unidade_organizacional + N + Y + N + N + + + rera_unidade_atual + unid_id + + + dmuo_id + dmuo_atual_id + + Integer + + + + + 976 + 560 + Y + + + + + unidade_encerramento + StreamLookup + + Y + + 1 + + none + + + dimen_unidade_organizacional + N + Y + N + N + + + rera_unidade_encerramento + unid_id + + + dmuo_id + dmuo_enc_id + + Integer + + + + + 1080 + 563 + Y + + + + + unidade_solicitacao + StreamLookup + + Y + + 1 + + none + + + dimen_unidade_organizacional + N + Y + N + N + + + rera_unidade_solicitacao + unid_id + + + dmuo_id + dmuo_sol_id + + Integer + + + + + 1203 + 562 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/ktr_resumo_pendencia.ktr b/gerencial_pentaho-master/PDI/ktr_resumo_pendencia.ktr new file mode 100644 index 0000000..db2db6d --- /dev/null +++ b/gerencial_pentaho-master/PDI/ktr_resumo_pendencia.ktr @@ -0,0 +1,1469 @@ + + + + ktr_resumo_pendencia + + + + Normal + 0 + / + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/08 16:57:07.943 + - + 2015/06/08 16:57:07.943 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Gerencial Caern 243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN DW CAERN + 192.168.64.236 + POSTGRESQL + Native + gsan_dw_caern + 5432 + postgres + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + dimen_perfil_imovel_tarifalookup_perfil_imovel_tarifaY + dimen_situacao_esgotolookup_situacao_esgotoY + dimen_geograficalookup_geograficaY + lookup_situacao_esgotolookup_geograficaY + dimen_categoria_subcategorialookup_categoria_subcategoriaY + lookup_geograficalookup_categoria_subcategoriaY + dimen_situacao_agualookup_situacao_aguaY + lookup_categoria_subcategorialookup_situacao_aguaY + dimen_tempolookup_tempo_geracaoY + Dimensao Documento Tipolookup_icvencidoY + dimen_tempolookup_tempo _documentoY + lookup_tempo_geracaolookup_tempo _documentoY + lookup_tempo _documentolookup_icvencidoY + lookup_situacao_agualookup_tempo_geracaoY + lookup_perfil_imovel_tarifalookup_situacao_esgotoY + localidadelookup_localizacaoY + lookup_icvencidolookup_localizacaoY + lookup_localizacaolookup_cliente_tipoY + dimen_cliente_tipolookup_cliente_tipoY + imovModified Java Script ValueY + rpen_idCalculatorY + Modified Java Script Valuerpen_idY + CalculatorSelect valuesY + Select valuesfato_pendenciaY + lookup_cliente_tipoimovY + Resumo Pendencialookup_perfil_imovel_tarifaY + + + Calculator + Calculator + + Y + + 1 + + none + + + rpen_id +ADD +rpen +id + +Integer +-1 +-1 +N + + + + + + + + 672 + 1088 + Y + + + + + Dimensao Documento Tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dotp_id , dotp_dsdocumentotipo , fxvl_id , fxvl_dsfaixavalor , icvencido , icvencido_desc , dmdt_id FROM gerencial_cagepa.dimen_documento_tipo + 0 + + N + N + N + + + 32 + 848 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var rpen_qtligacoes // Quantidade de Ligações if(conta_count==1){ rpen_qtligacoes=1} else{ rpen_qtligacoes=0}; + rpen_qtligacoes + rpen_qtligacoes + Integer + 16 + 0 + N + + + 432 + 1088 + Y + + + + + Resumo Pendencia + TableInput + + N + + 1 + + none + + + comercial_gsan + -------------------------------------------------------------------------------------------- -------RESUMO = PENDÊNCIA------------------------------------------------------------------- -------EMPESA = CAGEPA---------------------------------------------------------------------- -------VERSÃO = 05/02/2016------------------------------------------------------------------ -------Módulo 0 - Recuperar as dimensões e agrupar valores das medidas -- -------Módulo 1 - Valores de Água, Esgoto, Débitos, Créditos e Impostos cobrados em conta -- -------Módulo 2 - Valores Guias de Pagamento ref. Serviços e Parcelamentos -- -------Módulo 3 - Valores Débitos a Cobrar Financiamentos curto/longo prazo -- ------- Valores Débitos a Cobrar Parcelamentos curto/longo prazo -- -------Módulo 4 - Valores Créditos a Realizar -- -------------------------------------------------------------------------------------------- --M0=DIMENSÕES E MEDIDAS-------------------------------------------------------------------- --DIMENSÕES=(22)-------------- SELECT --0 as rpen, ${max} as rpen, case when substr(cast(parm_amreferenciaarrecadacao as char(6)),5,2) > '01' then (parm_amreferenciaarrecadacao - 1) else (parm_amreferenciaarrecadacao - 89) end as rpen_amreferencia, coalesce (lo.greg_id,9999) as greg_id, coalesce (lo.uneg_id,9999) as uneg_id, coalesce (im.loca_id,9999) as loca_id, coalesce (loca_cdelo,9999) as loca_cdelo, coalesce (im.stcm_id,9999) as stcm_id, coalesce (muni_id,9999) as muni_id, coalesce (qd.bair_id,9999) as bair_id, coalesce (im.qdra_id,9999) as qdra_id, coalesce (rt.rota_id,9999) as rota_id, coalesce (ftgr_id, 9999) as ftgr_id, im.imov_id, coalesce (sub.catg_id, 9999) as catg_id, coalesce (sub.scat_id,9999) as scat_id, coalesce (im.last_id,9999) as last_id, coalesce (im.lest_id,9999) as lest_id, coalesce (epod_id,9999) as epod_id, coalesce (iper_id,9999) as iper_id, Case when la.hidi_id is not null then 1 else 2 end as ichidrometro, rpen_icvencido, rpen_amreferenciadocumento, ----------DEFINIR A FAIXA DE VALOR DO TOTAL PENDENTE------------------------------------------------------------------------- CASE WHEN SUM((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) < 0.00 THEN 0 WHEN SUM((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) = 0.00 THEN 0 WHEN SUM((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) BETWEEN 0.01 AND 50.00 THEN 1 WHEN SUM((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) BETWEEN 50.01 AND 500.00 THEN 2 WHEN SUM((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) BETWEEN 500.01 AND 1000.00 THEN 3 WHEN SUM((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) > 1000.00 THEN 4 END as rpen_icfaixa, ------------------------------------------------------------------------------------------------------------------------------- --MEDIDAS=18)------------------------------------------------------------------------------------------------------------------ sum(valorAgua) as rpen_valorAgua, ---MED1 sum(valorEsgoto) as rpen_valorEsgoto, ---MED2 sum(valorDebitosContas) as rpen_valorDebitosContas, ---MED3 sum(valorCreditosContas) as rpen_valorCreditosContas, ---MED4 sum(valorImpostosContas) as rpen_valorImpostosContas, ---MED5 sum(valorGuiaPagamentoParc) as rpen_valorGuiaPagamentoParc, ---MED6 sum(valorGuiaPagamento) as rpen_valorGuiaPagamento, ---MED7 sum(valorGuiaPagamentoParcEntrada) as rpen_valorGuiaPagamentoParcEntrada, ---MED8 sum(valorDebACobCurtoPrazo) as rpen_valorDebCurtoPrazo, ---MED9 sum(valorDebACobLongoPrazo) as rpen_valorDebLongoPrazo, ---MED10 sum(valorParcelamenetoCurtoPrazo) as rpen_valorParcelamenetoCurtoPrazo, ---MED11 sum(valorParcelamentoLongoPrazo) as rpen_valorParcelamentoLongoPrazo, ---MED12 sum(valorCreditoARealizar) as rpen_valorCreditoRealizar, ---MED13 sum(valorAgua+valorEsgoto+valorDebitosContas-valorCreditosContas-valorImpostosContas) as rpen_valorTotalPendenteConta, ---MED14 sum((coalesce(valorAgua,0)+coalesce(valorEsgoto+valorDebitosContas,0)-coalesce(valorCreditosContas,0)-coalesce(valorImpostosContas,0))+ (coalesce(valorGuiaPagamentoParc,0)+coalesce(valorGuiaPagamento,0)+coalesce(valorGuiaPagamentoParcEntrada,0)) + (coalesce(valorDebACobCurtoPrazo+valorDebACobLongoPrazo,0)) + (coalesce(valorParcelamenetoCurtoPrazo,0)+coalesce(valorParcelamentoLongoPrazo,0)) - (coalesce(valorCreditoARealizar,0))) as rpen_valorTotalPendente, ---MED15 sum(qtdeDocumentosConta) as rpen_qtDocumentosConta, ---MED16 sum(qtdeDocumentosGuia) as rpen_qtDocumentosGuia, ---MED17 sum(qtdeDocumentosConta+qtdeDocumentosGuia) as rpen_qtdDocumentosTotal ---MED18 -------------------------------------------------------------------------------------------------------------------------------- FROM ( -- M1=Valore de Água, Esgoto, Débitos, Créditos e Impostos cobrados em CONTA --------------------------------------------------- select loca.greg_id, loca.uneg_id, loca.loca_id, conta.imov_id, cnta_amreferenciaconta as rpen_amreferenciadocumento, Case when cnta_dtvencimentoconta < now() then 1 else 2 end as rpen_icvencido, conta.last_id, conta.lest_id, -------MEDIDAS--------------------------------------------------------------- sum(coalesce(conta.cnta_vlagua,0)) as valorAgua, sum(coalesce(conta.cnta_vlesgoto,0)) as valorEsgoto, sum(coalesce(conta.cnta_vldebitos,0)) as valorDebitosContas, sum(coalesce(conta.cnta_vlcreditos,0)) as valorCreditosContas, sum(coalesce(conta.cnta_vlimpostos,0)) as valorImpostosContas, 0.00 as valorGuiaPagamento, 0.00 as valorGuiaPagamentoParc, 0.00 as valorGuiaPagamentoParcEntrada, 0.00 as valorDebACobCurtoPrazo, 0.00 as valorDebACobLongoPrazo, 0.00 as valorParcelamenetoCurtoPrazo, 0.00 as valorParcelamentoLongoPrazo, 0.00 as valorCreditoARealizar, count(distinct conta.cnta_id) as qtdeDocumentosConta, 0 as qtdeDocumentosGuia from gsan_admin.conta conta inner join gsan_admin.sistema_parametros sp on 1=1 inner join gsan_admin.imovel im on im.imov_id = conta.imov_id and imov_icexclusao = 2 inner join gsan_admin.localidade loca on (loca.loca_id = conta.loca_id) WHERE conta.cnta_amreferenciaconta <= case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end and conta.dcst_idatual in (0,1,2,4) GROUP BY 1,2,3,4,5,6,7,8 ----------------------------------------------------------------------- UNION ALL ------------- select loca.greg_id as idGerencia, loca.uneg_id as idUnidadeNegocio, loca.loca_id as idLocalidade, conta.imov_id as imovel, cnhi_amreferenciaconta as rpen_amreferenciadocumento, Case when cnhi_dtvencimentoconta < now() then 1 else 2 end as rpen_icvencido, conta.last_id, conta.lest_id, -------MEDIDAS--------------------------------------------------------------- sum(coalesce(conta.cnhi_vlagua,0)) as valorAgua, sum(coalesce(conta.cnhi_vlesgoto,0)) as valorEsgoto, sum(coalesce(conta.cnhi_vldebitos,0)) as valorDebitosContas, sum(coalesce(conta.cnhi_vlcreditos,0)) as valorCreditosContas, sum(coalesce(conta.cnhi_vlimpostos,0)) as valorImpostosContas, 0.00 as valorGuiaPagamento, 0.00 as valorGuiaPagamentoParc, 0.00 as valorGuiaPagamentoParcEntrada, 0.00 as valorDebACobCurtoPrazo, 0.00 as valorDebACobLongoPrazo, 0.00 as valorParcelamenetoCurtoPrazo, 0.00 as valorParcelamentoLongoPrazo, 0.00 as valorCreditoARealizar, count(distinct conta.cnta_id) as qtdeDocumentosConta, 0 as qtdeDocumentosGuia from gsan_admin.conta_historico conta INNER JOIN gsan_admin.sistema_parametros sp on 1=1 inner join gsan_admin.imovel im on im.imov_id = conta.imov_id and imov_icexclusao = 2 INNER JOIN gsan_admin.localidade loca on (loca.loca_id = conta.loca_id) WHERE conta.cnhi_amreferenciaconta <= case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end and conta.dcst_idatual in (0,1,2,4) and (select min(pagto.pghi_amreferenciaarrecadacao) from gsan_admin.pagamento_historico pagto where pagto.imov_id = conta.imov_id and pagto.pghi_amreferenciapagamento = conta.cnhi_amreferenciaconta) > case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end GROUP BY 1,2,3,4,5,6,7,8 ----------------------------------------------------------------FIM --------- UNION ALL --------- -- M2=Valores das Guias de Pagamento ------------------------------------------- SELECT loca.greg_id as idGerencia, loca.uneg_id as idUnidadeNegocio, loca.loca_id as idLocalidade, imov_id as imovel, gppr_amreferenciafaturamento as rpen_amreferenciadocumento, Case when gppr_dtvencimento < now() then 1 else 2 end as rpen_icvencido, 0, 0, -------MEDIDAS------------------------------------------------ 0.0, 0.0, 0.0, 0.0, 0.0, Sum(Case when gpp.fntp_id not in (8,14) then coalesce(gppr_vlprestacao ,0) else 0.0 end) as valorGuiaPagamento, Sum(Case when gpp.fntp_id in (8,14) and dbtp_id <> 31 then coalesce(gppr_vlprestacao ,0) else 0.0 end) as valorGuiaPagamentoParc, Sum(Case when gpp.fntp_id in (8,14) and dbtp_id = 31 then coalesce(gppr_vlprestacao ,0) else 0.0 end) as valorGuiaPagamentoParcEntrada, 0.0, 0.0, 0.0, 0.0, 0.0, 0, count(distinct gpag.gpag_id) FROM gsan_admin.guia_pagamento gpag INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.localidade loca on (loca.loca_id = gpag.loca_id) INNER JOIN gsan_admin.guia_pagamento_prestacao gpp on gpp.gpag_id = gpag.gpag_id and gpp.gppr_amreferenciafaturamento <= case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end and gpp.dcst_id in (0,1,2,4) GROUP BY 1,2,3,4,5,6,7,8 --------- UNION ALL --------- SELECT loca.greg_id as idGerencia, loca.uneg_id as idUnidadeNegocio, loca.loca_id as idLocalidade, imov_id as imovel, gpph_amreferenciafaturamento as rpen_amreferenciadocumento, Case when gpph_dtvencimento < now() then 1 else 2 end as rpen_icvencido, 0, 0, -------MEDIDAS------------------------------------------------ 0.0, 0.0, 0.0, 0.0, 0.0, Sum(Case when gpph.fntp_id not in (8,14) then coalesce(gpph_vlprestacao,0) else 0.0 end) as valorGuiaPagamento, Sum(Case when gpph.fntp_id in (8,14) and dbtp_id <> 31 then coalesce(gpph_vlprestacao,0) else 0.0 end) as valorGuiaPagamentoParc, Sum(Case when gpph.fntp_id in (8,14) and dbtp_id = 31 then coalesce(gpph_vlprestacao,0) else 0.0 end) as valorGuiaPagamentoParcEntrada, 0.0, 0.0, 0.0, 0.0, 0.0, 0, count(distinct gph.gpag_id) FROM gsan_admin.guia_pagamento_historico gph INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.guia_pagamento_prestacao_hist gpph on gpph.gpag_id = gph.gpag_id and gpph.gpph_amreferenciafaturamento <= case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end and gpph.dcst_id in (0,1,2,4) INNER JOIN gsan_admin.localidade loca on (loca.loca_id = gph.loca_id) GROUP BY 1,2,3,4,5,6,7,8 ----------------------------------------------------------------FIM --------- UNION ALL --------- --M03=Valores dos Débitos a Cobrar referente a Financiamentos e Parcelamentos---------------- SELECT loca.greg_id as idGerencia, loca.uneg_id as idUnidadeNegocio, loca.loca_id as idLocalidade, dbac.imov_id as imovel, coalesce (dbac_amreferenciadebito,dbac_amreferenciacontabil) as rpen_amreferenciadocumento, 2 as rpen_icvencido, 0, 0, -------MEDIDAS------------------------------------------------ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -----------------------------------------VALORES DE CURTO E LONGO PRAZO------------------------------------------------------------------- sum(CASE WHEN fntp_id = 1 THEN CASE WHEN ((dbac.dbac_nnprestacaodebito - dbac.dbac_nnprestacaocobradas) < 13) THEN dbac_vldebito - (round((dbac_vldebito/dbac.dbac_nnprestacaodebito),2)*dbac.dbac_nnprestacaocobradas) ELSE round((dbac_vldebito / dbac.dbac_nnprestacaodebito),2) * 12 END END) as valorDebACobCurtoPrazo, sum(CASE WHEN fntp_id = 1 THEN CASE WHEN ((dbac.dbac_nnprestacaodebito - dbac.dbac_nnprestacaocobradas )< 13) THEN 0.00 ELSE dbac_vldebito-(round((dbac_vldebito / dbac.dbac_nnprestacaodebito ),2)*(dbac.dbac_nnprestacaocobradas + 12)) END END) as valorDebACobLongoPrazo, sum(CASE WHEN fntp_id <> 1 THEN CASE WHEN ((dbac.dbac_nnprestacaodebito - dbac.dbac_nnprestacaocobradas) < 13) THEN dbac_vldebito - (round( (dbac_vldebito / dbac.dbac_nnprestacaodebito),2)*dbac.dbac_nnprestacaocobradas) ELSE round((dbac_vldebito / dbac.dbac_nnprestacaodebito),2) * 12 END END) as valorParcelamenetoCurtoPrazo, sum(CASE WHEN fntp_id <> 1 THEN CASE WHEN ((dbac.dbac_nnprestacaodebito - dbac.dbac_nnprestacaocobradas )< 13) THEN 0.00 ELSE dbac_vldebito - ( round( ( dbac_vldebito / dbac.dbac_nnprestacaodebito ), 2 )*( dbac.dbac_nnprestacaocobradas + 12)) END END) as valorParcelamentoLongoPrazo, --------------------------------------------------------------------------------------------------------------------------------------------------------- 0.0 as valorCreditoARealizar, 0, 0 FROM gsan_admin.debito_a_cobrar dbac INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.imovel im on im.imov_id = dbac.imov_id and imov_icexclusao = 2 INNER JOIN gsan_admin.localidade loca on dbac.loca_id = loca.loca_id WHERE dbac.dbac_amreferenciacontabil <= case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end and dbac.dcst_idatual in (0,1,2,4) GROUP BY 1,2,3,4,5,6,7,8 -------------------------------FIM --------- UNION ALL --------- --M04=Valores dos Créditos a Realizar--------------- SELECT loca.greg_id as idGerencia, loca.uneg_id as idUnidadeNegocio, loca.loca_id as idLocalidade, crar.imov_id as imovel, coalesce (crar_amreferenciacredito, crar_amreferenciacontabil) as rpen_amreferenciadocumento, 2 as rpen_icvencido, 0, 0, ----------MEDIDAS ------------------------------------------ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, sum(round((crar_vlcredito / case when crar.crar_nnprestacaocredito > 0 then crar.crar_nnprestacaocredito else 1 end),2)* (crar.crar_nnprestacaocredito-crar.crar_nnprestacaorealizadas)) as valorCreditoARealizar, 0, 0 FROM gsan_admin.credito_a_realizar crar INNER JOIN gsan_admin.sistema_parametros sp on 1=1 INNER JOIN gsan_admin.imovel im on im.imov_id = crar.imov_id and imov_icexclusao = 2 ---Imóvel ativo INNER JOIN gsan_admin.localidade loca on crar.loca_id = loca.loca_id WHERE crar.crar_amreferenciacontabil <= case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end and crar.dcst_idatual in (0,1,2) GROUP BY 1,2,3,4,5,6,7,8 -------------------------------------------------------------------FIM ) TEMP inner join gsan_admin.sistema_parametros sp on 1=1 left join gsan_admin.imovel im on im.imov_id = temp.imov_id left join gsan_admin.imovel_subcategoria sub on sub.imov_id = im.imov_id and scat_id = (select scat_id from gsan_admin.imovel_subcategoria where imov_id = im.imov_id order by imsb_qteconomia desc, catg_id asc limit 1) --subcategoria com maior qtde economias left join gsan_admin.ligacao_agua la on la.lagu_id = im.imov_id left join gsan_admin.localidade lo on lo.loca_id = im.loca_id left join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id left join gsan_admin.rota rt on rt.rota_id = qd.rota_id left join gsan_admin.cliente_imovel ci on ci.imov_id = im.imov_id and crtp_id = 3 and clim_dtrelacaofim is null --cliente com relação de responsável left join gsan_admin.cliente cl on cl.clie_id = ci.clie_id left join gsan_admin.cliente_tipo ct on ct.cltp_id = cl.cltp_id GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 order by im.imov_id -------------------------------------------------------------------FIM + 0 + + N + Y + N + + + 208 + 0 + Y + + + + + Select values + SelectValues + + Y + + 1 + + none + + + rpen_amreferencia + + -2 + -2 + rpen_amreferenciadocumento + + -2 + -2 + rpen_qtddocumentostotal + + -2 + -2 + rpen_valoragua + + -2 + -2 + rpen_valoresgoto + + -2 + -2 + rpen_valordebitoscontas + + -2 + -2 + rpen_valorcreditoscontas + + -2 + -2 + rpen_valorimpostoscontas + + -2 + -2 + rpen_valorguiapagamentoparc + + -2 + -2 + rpen_valorguiapagamento + + -2 + -2 + rpen_valorguiapagamentoparcentrada + + -2 + -2 + rpen_valordebcurtoprazo + + -2 + -2 + rpen_valordeblongoprazo + + -2 + -2 + rpen_valorparcelamenetocurtoprazo + + -2 + -2 + rpen_valorparcelamentolongoprazo + + -2 + -2 + rpen_valorcreditorealizar + + -2 + -2 + rpen_valortotalpendenteconta + + -2 + -2 + rpen_valortotalpendente + + -2 + -2 + dmpt_id + + -2 + -2 + dmse_id + + -2 + -2 + dmgr_id + + -2 + -2 + dmcs_id + + -2 + -2 + dmsa_id + + -2 + -2 + dmtp_refger_id + + -2 + -2 + dmtp_refdoc_id + + -2 + -2 + dmdt_id + + -2 + -2 + dmlo_id + + -2 + -2 + dmct_id + + -2 + -2 + rpen_qtligacoes + + -2 + -2 + rpen_id + + -2 + -2 + rpen_qtdocumentosconta + + -2 + -2 + rpen_qtdocumentosguia + + -2 + -2 + imov_id + + -2 + -2 + rpen_icfaixa + + -2 + -2 + N + + + 784 + 1088 + Y + + + + + dimen_categoria_subcategoria + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmcs_id , catg_id , catg_dscategoria , scat_id , scat_dssubcategoria FROM gerencial_cagepa.dimen_categoria_subcategoria + 0 + + N + N + N + + + 64 + 464 + Y + + + + + dimen_cliente_tipo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmct_id , cltp_id , cltp_dsclientetipo , epod_id , epod_dsesferapoder FROM gerencial_cagepa.dimen_cliente_tipo + 0 + + N + N + N + + + 48 + 1088 + Y + + + + + dimen_geografica + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmgr_id , muni_id , muni_nmmunicipio , bair_id , bair_nmbairro FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 80 + 352 + Y + + + + + dimen_perfil_imovel_tarifa + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmpt_id , iper_id , iper_dsimovelperfil , cstf_id , cstf_dsconsumotarifa FROM gerencial_cagepa.dimen_perfil_imovel_tarifa + 0 + + N + N + N + + + 64 + 192 + Y + + + + + dimen_situacao_agua + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmsa_id , last_id , dmsa_icvolumefixadoagua , dmsa_ichidrometro , last_dsligacaoaguasituacao , lapf_id , lapf_dsligacaoaguaperfil , dmsa_icpoco , dmsa_ichidrometropoco FROM gerencial_cagepa.dimen_situacao_agua + 0 + + N + N + N + + + 48 + 560 + Y + + + + + dimen_situacao_esgoto + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmse_id , lest_id , lest_dsligacaoesgotosituacao , lepf_id , lepf_dsligacaoesgotoperfil , dmse_icvolumefixadoesgoto FROM gerencial_cagepa.dimen_situacao_esgoto + 0 + + N + N + N + + + 64 + 272 + Y + + + + + dimen_tempo + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT ano , mesnumero , dianumero , diasemananum , diasemana , diasemanaabrev , mesnome , mesabrev , trimestre , data_string , mestrimestre , quinzena , semanames , semananumeroiniciodomingo , data_string_br , anomes , trimestreabrev , diasemanadiaabrev , dmtp_id , "data" , semananome , semestrenum , semestrenome FROM gerencial_cagepa.dimen_tempo + 0 + + N + N + N + + + 64 + 656 + Y + + + + + fato_pendencia + TableOutput + + Y + + 3 + + none + + + VERTICA_JNDI + gerencial_cagepa +
fato_pendencia
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 896 + 1088 + Y + + + + + imov + FieldsChangeSequence + + Y + + 1 + + none + + + 1 + 1 + conta_count + + + imov_id + + + + + 320 + 1088 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT dmlo_id , greg_id , uneg_id , loca_id , stcm_id , qdra_id , rota_id , ftgr_id , arti_id , loca_cdelo FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 32 + 960 + Y + + + + + lookup_categoria_subcategoria + StreamLookup + + Y + + 1 + + none + + + dimen_categoria_subcategoria + N + Y + N + N + + + catg_id + catg_id + + + scat_id + scat_id + + + dmcs_id + dmcs_id + + None + + + + + 208 + 464 + Y + + + + + lookup_cliente_tipo + StreamLookup + + Y + + 1 + + none + + + dimen_cliente_tipo + N + Y + N + N + + + epod_id + epod_id + + + dmct_id + dmct_id + + None + + + + + 208 + 1088 + Y + + + + + lookup_geografica + StreamLookup + + Y + + 1 + + none + + + dimen_geografica + N + Y + N + N + + + muni_id + muni_id + + + bair_id + bair_id + + + dmgr_id + dmgr_id + + None + + + + + 208 + 352 + Y + + + + + lookup_icvencido + StreamLookup + + Y + + 1 + + none + + + Dimensao Documento Tipo + N + Y + N + N + + + rpen_icvencido + icvencido + + + dmdt_id + dmdt_id + + None + + + + + 208 + 848 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_id + + None + + + + + 208 + 960 + Y + + + + + lookup_perfil_imovel_tarifa + StreamLookup + + Y + + 1 + + none + + + dimen_perfil_imovel_tarifa + N + Y + N + N + + + iper_id + iper_id + + + dmpt_id + dmpt_id + + None + + + + + 208 + 192 + Y + + + + + lookup_situacao_agua + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_agua + N + Y + N + N + + + last_id + last_id + + + ichidrometro + dmsa_ichidrometro + + + dmsa_id + dmsa_id + + None + + + + + 208 + 560 + Y + + + + + lookup_situacao_esgoto + StreamLookup + + Y + + 1 + + none + + + dimen_situacao_esgoto + N + Y + N + N + + + lest_id + lest_id + + + dmse_id + dmse_id + + None + + + + + 208 + 272 + Y + + + + + lookup_tempo _documento + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rpen_amreferenciadocumento + anomes + + + dmtp_id + dmtp_refdoc_id + + None + + + + + 208 + 752 + Y + + + + + lookup_tempo_geracao + StreamLookup + + Y + + 1 + + none + + + dimen_tempo + N + Y + N + N + + + rpen_amreferencia + anomes + + + dmtp_id + dmtp_refger_id + + None + + + + + 208 + 640 + Y + + + + + rpen_id + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial_cagepa + relt_seq + Y + + 1 + 1 + 999999999 + + + 544 + 1088 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/seq_max_anomes_ind_fatiramento.ktr b/gerencial_pentaho-master/PDI/seq_max_anomes_ind_fatiramento.ktr new file mode 100644 index 0000000..bc84e33 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_anomes_ind_fatiramento.ktr @@ -0,0 +1,419 @@ + + + + seq_max_anomes_ind_fatiramento + + + + Normal + 0 + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + anomesmax anomesY + + + anomes + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(refa_amreferencia) as anomes FROM gerencial_cagepa.fato_faturamento + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max anomes + RowsToResult + + Y + + 1 + + none + + + + + 144 + 128 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_dmgr.ktr b/gerencial_pentaho-master/PDI/seq_max_dmgr.ktr new file mode 100644 index 0000000..18284d2 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_dmgr.ktr @@ -0,0 +1,419 @@ + + + + seq_max_dmgr + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax dmgr_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(dmgr_id) as max FROM gerencial_cagepa.dimen_geografica + 0 + + N + N + N + + + 64 + 80 + Y + + + + + max dmgr_id + RowsToResult + + Y + + 1 + + none + + + + + 155 + 114 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_dmlo.ktr b/gerencial_pentaho-master/PDI/seq_max_dmlo.ktr new file mode 100644 index 0000000..ecef4aa --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_dmlo.ktr @@ -0,0 +1,424 @@ + + + + seq_max_dmlo + + + + Normal + 0 + / + + + max + 0 + + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax dmloY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(dmlo_id) as max FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 64 + 112 + Y + + + + + max dmlo + RowsToResult + + Y + + 1 + + none + + + + + 144 + 80 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_dmsol.ktr b/gerencial_pentaho-master/PDI/seq_max_dmsol.ktr new file mode 100644 index 0000000..6a2b125 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_dmsol.ktr @@ -0,0 +1,419 @@ + + + + seq_max_dmsol + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax dmsol_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(dmsol_id) as max FROM gerencial_cagepa.dimen_solicitacao + 0 + + N + N + N + + + 64 + 80 + Y + + + + + max dmsol_id + RowsToResult + + Y + + 1 + + none + + + + + 155 + 114 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_rear.ktr b/gerencial_pentaho-master/PDI/seq_max_rear.ktr new file mode 100644 index 0000000..097631d --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_rear.ktr @@ -0,0 +1,419 @@ + + + + seq_max_rear + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax_rear_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + Select max(rele_id) as max from gerencial_cagepa.fato_ligacao_economia + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max_rear_id + RowsToResult + + Y + + 1 + + none + + + + + 160 + 96 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_reca.ktr b/gerencial_pentaho-master/PDI/seq_max_reca.ktr new file mode 100644 index 0000000..9e697c4 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_reca.ktr @@ -0,0 +1,419 @@ + + + + seq_max_reca + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax reca_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + Select coalesce(max(reca_id),0) as max from gerencial_cagepa.fato_consumo_agua + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max reca_id + RowsToResult + + Y + + 1 + + none + + + + + 160 + 80 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_rece.ktr b/gerencial_pentaho-master/PDI/seq_max_rece.ktr new file mode 100644 index 0000000..6d300aa --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_rece.ktr @@ -0,0 +1,419 @@ + + + + seq_max_rece + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax rece_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + Select coalesce(max(rece_id),0) as max from gerencial_cagepa.fato_coleta_esgoto + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max rece_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 128 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_refa.ktr b/gerencial_pentaho-master/PDI/seq_max_refa.ktr new file mode 100644 index 0000000..7172afd --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_refa.ktr @@ -0,0 +1,419 @@ + + + + seq_max_refa + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax refa_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT Coalesce(max(refa_id),0) as max FROM gerencial_cagepa.fato_faturamento + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max refa_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 96 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_rehi.ktr b/gerencial_pentaho-master/PDI/seq_max_rehi.ktr new file mode 100644 index 0000000..1a9ad48 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_rehi.ktr @@ -0,0 +1,419 @@ + + + + seq_max_rehi + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax rehi_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT coalesce(max(rehi_id),0) as max FROM gerencial_cagepa.fato_hidrometro_nao_instalado + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max rehi_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 96 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_reih.ktr b/gerencial_pentaho-master/PDI/seq_max_reih.ktr new file mode 100644 index 0000000..c9f919c --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_reih.ktr @@ -0,0 +1,419 @@ + + + + seq_max_reih + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax reih_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max (reih_id) as max FROM gerencial_cagepa.fato_hidrometro_instalado + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max reih_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 96 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_rele.ktr b/gerencial_pentaho-master/PDI/seq_max_rele.ktr new file mode 100644 index 0000000..8c2c1b9 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_rele.ktr @@ -0,0 +1,419 @@ + + + + seq_max_rele + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax rele_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + Select max(rele_id) as max from gerencial_cagepa.fato_ligacao_economia + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max rele_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 128 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_relt.ktr b/gerencial_pentaho-master/PDI/seq_max_relt.ktr new file mode 100644 index 0000000..d35a7cc --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_relt.ktr @@ -0,0 +1,419 @@ + + + + seq_max_relt + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax relt_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(relt_id) as max FROM gerencial_cagepa.fato_leitura_anormalidade + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max relt_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 128 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_repa.ktr b/gerencial_pentaho-master/PDI/seq_max_repa.ktr new file mode 100644 index 0000000..007e111 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_repa.ktr @@ -0,0 +1,419 @@ + + + + seq_max_repa + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax_repa_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(repa_id) as max FROM gerencial_cagepa.fato_parcelamento + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max_repa_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 96 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_rera.ktr b/gerencial_pentaho-master/PDI/seq_max_rera.ktr new file mode 100644 index 0000000..b00bc2a --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_rera.ktr @@ -0,0 +1,419 @@ + + + + seq_max_rera + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax rera_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT max(rera_id) as max FROM gerencial_cagepa.fato_registro_atendimento + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max rera_id + RowsToResult + + Y + + 1 + + none + + + + + 144 + 128 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/seq_max_rpen.ktr b/gerencial_pentaho-master/PDI/seq_max_rpen.ktr new file mode 100644 index 0000000..3f15ef8 --- /dev/null +++ b/gerencial_pentaho-master/PDI/seq_max_rpen.ktr @@ -0,0 +1,419 @@ + + + + seq_max_rpen + + + + Normal + 0 + / + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/10/22 09:24:20.495 + - + 2015/10/22 09:24:20.495 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + maxmax_rpen_idY + + + max + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + Select max(rpen_id) as max from gerencial_cagepa.fato_pendencia + 0 + + N + N + N + + + 67 + 114 + Y + + + + + max_rpen_id + RowsToResult + + Y + + 1 + + none + + + + + 160 + 96 + Y + + + + + + + + N + + diff --git a/gerencial_pentaho-master/PDI/sg_arrecadacao.ktr b/gerencial_pentaho-master/PDI/sg_arrecadacao.ktr new file mode 100644 index 0000000..95a9695 --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_arrecadacao.ktr @@ -0,0 +1,1969 @@ + + + + sg_arrecadacao + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + +
+ + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + SELECTSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +None +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + SELECT + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT --50132 as dmlo, ${max} as dmlo, pgmt_amreferenciaarrecadacao as rear_amreferencia, loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, setor.stcm_id, rota.rota_id, tt.qdra_id, setor.stcm_cdsetorcomercial as rear_cdsetorcomercial, tt.cnta_nnquadra as rear_nnquadra, case when quadra.arti_id is null then 0 else quadra.arti_id END as arti_id, now() as data_atual, 'arrecadacao' as tbgeracao -----------TABELAS---------------- FROM gsan_admin.stage_paghist tt INNER JOIN gsan_admin.aviso_bancario avbc on tt.avbc_id = avbc.avbc_id INNER JOIN gsan_admin.localidade loca on loca.loca_id = tt.loca_id INNER JOIN gsan_admin.quadra quadra on quadra.qdra_id = tt.qdra_id INNER JOIN gsan_admin.setor_comercial setor on setor.stcm_id = quadra.stcm_id INNER JOIN gsan_admin.rota on rota.rota_id = quadra.rota_id --INNER JOIN gsan_admin.cliente clie on clie.clie_id = Case when devl.devl_id is not null then devl.clie_id else dehi.clie_id end --INNER JOIN gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id --WHERE (Case when devl.devl_id is not null then devl.dvst_idatual not in (1,2) else dehi.dvst_idatual not in (1,2) end) GROUP BY 1,2,3,4,5,6,7,8,9,10,11,12,13,14 -------------------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 80 + 208 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 448 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + arti_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_cobranca_acao.ktr b/gerencial_pentaho-master/PDI/sg_cobranca_acao.ktr new file mode 100644 index 0000000..6545c91 --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_cobranca_acao.ktr @@ -0,0 +1,1969 @@ + + + + sg_cobranca_acao + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + cobranca_acaoSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +Integer +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 448 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + arti_id + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + cobranca_acao + TableInput + + Y + + 1 + + none + + + comercial_gsan + Select --5000 AS dmlo ${max} as dmlo ------------ DIMEN_LOCALIZACAO ------------- , coalesce(rcbe.greg_id,9999) as greg_id -- DIMEN_LOCALIZACAO , coalesce(rcbe.uneg_id,9999) as uneg_id -- DIMEN_LOCALIZACAO , coalesce(rcbe.loca_id,9999) as loca_id -- DIMEN_LOCALIZACAO , coalesce(loca.loca_cdelo,9999) as loca_cdelo -- DIMEN_LOCALIZACAO , coalesce(rcbe.stcm_id,9999) as stcm_id -- DIMEN_LOCALIZACAO , coalesce(rcbe.rota_id,9999) as rota_id-- DIMEN_LOCALIZACAO , coalesce(rcbe.qdra_id,9999) as qdra_id -- DIMEN_LOCALIZACAO , case when quadra.arti_id is null then 0 else arti_id END as arti_id , coalesce(rcbe_cdsetorcomercial,9999) as rcbe_cdsetorcomercial -- DIMEN_LOCALIZACAO , coalesce(rcbe_nnquadra,9999) as rcbe_nnquadra -- DIMEN_LOCALIZACAO , 'resumo_cobranca_acao_eventual' as tbgeracao , now() as data_atual FROM gsan_admin.resumo_cobranca_acao_eventual rcbe INNER JOIN gsan_admin.sistema_parametros ON 1=1 INNER JOIN gsan_admin.cobranca_acao_atividade_comand cacm ON rcbe.cacm_id=cacm.cacm_id INNER JOIN gsan_admin.localidade loca ON rcbe.loca_id = loca.loca_id INNER JOIN gsan_admin.quadra quadra ON rcbe.qdra_id = quadra.qdra_id INNER JOIN gsan_admin.setor_comercial setor ON rcbe.stcm_id = setor.stcm_id WHERE substr(cast(cacm.cacm_tmrealizacao as char(4)),1,4)||substr(cast(cacm.cacm_tmrealizacao as char(7)),6,2)=cast(parm_amreferenciafaturamento as char(7)) + 0 + + N + Y + N + + + 80 + 208 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_coleta.ktr b/gerencial_pentaho-master/PDI/sg_coleta.ktr new file mode 100644 index 0000000..46faafb --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_coleta.ktr @@ -0,0 +1,1969 @@ + + + + sg_coleta + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + coeltaSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +Integer +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 496 + 400 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 448 + 416 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + arti_id + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + coelta + TableInput + + Y + + 1 + + none + + + comercial_gsan + select --49948 AS dmlo ${max} as dmlo --------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------- --dimen_localizacao ,coalesce(c.rota_id,9999) as rota_id -- ID DA ROTA (TABELA ROTA) --,i.rota_id -- Id da rota do imovel ,coalesce(loca.greg_id,9999) as greg_id , coalesce(loca.uneg_id,9999) as uneg_id ,coalesce(i.loca_id,9999) as loca_id-- ID DA LOCALIDADE (TABELA LOCALIDADE) ,coalesce(i.stcm_id,9999) as stcm_id -- ID DO SETOR COMERCIAL (TABELA SETOR_COMERCIAL) - OBRIGATORIO ,coalesce(i.qdra_id,9999) as qdra_id -- ID DA QUADRA (TABELA QUADRA) ,coalesce(i.stcm_cdsetorcomercial,9999) as stcm_cdsetorcomercial -- CODIGO DO SETOR COMERCIAL. ,coalesce(i.qdra_nnquadra,9999) as qdra_nnquadra -- NUMERO DA QUADRA. ,coalesce(loca.loca_cdelo,9999) as loca_cdelo ,'coleta_esgoto' as tbgeracao , now() as data_atual , case when q.arti_id is null then 0 else q.arti_id END as arti_id FROM gsan_admin.consumo_historico c INNER JOIN gsan_admin.imovel i ON c.imov_id=i.imov_id INNER JOIN gsan_admin.bairro b ON i.bair_id=b.bair_id INNER JOIN gsan_admin.localidade loca ON i.loca_id = loca.loca_id INNER JOIN gsan_admin.sistema_parametros ON 1=1 LEFT JOIN gsan_admin.ligacao_agua la ON i.imov_id = la.lagu_id LEFT JOIN gsan_admin.ligacao_esgoto le ON i.imov_id = le.lesg_id ----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- LEFT JOIN gsan_admin.cliente_imovel cir ON i.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente_imovel ciu ON i.imov_id = ciu.imov_id AND ciu.crtp_id = 2 AND ciu.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente ci ON ci.clie_id = (Case when cir.clie_id is not null then cir.clie_id else ciu.clie_id end) INNER JOIN gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id INNER JOIN gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id LEFT JOIN gsan_admin.conta cnta ON i.imov_id=cnta.imov_id AND cnta.dcst_idatual in(0,1,2) AND cnta.cnta_amreferenciaconta=c.cshi_amfaturamento LEFT JOIN gsan_admin.conta_historico cnhi ON i.imov_id=cnhi.imov_id AND cnhi.dcst_idatual in(0,1,2) AND cnhi.cnhi_amreferenciaconta=c.cshi_amfaturamento inner join (SELECT i.imov_id ,sum(cstc_nnconsumominimo * imsb.imsb_qteconomia ) consumo_minimo_ligacao FROM gsan_admin.imovel i INNER JOIN gsan_admin.imovel_subcategoria imsb on i.imov_id=imsb.imov_id inner join gsan_admin.subcategoria scat on imsb.scat_id=scat.scat_id inner join gsan_admin.consumo_tarifa_categoria cstc on scat.catg_id=cstc.catg_id and cstv_id = (select max(cstv_id) from gsan_admin.consumo_tarifa_vigencia tv where tv.cstf_id = i.cstf_id) group by 1 ) as consumo on i.imov_id=consumo.imov_id INNER JOIN gsan_admin.quadra q ON i.qdra_id = q.qdra_id where c.lgti_id=2 and c.cshi_amfaturamento=parm_amreferenciafaturamento -1 --and i.imov_id in(11211601, 11264101,23407369,36205249) group by 1,2,3,4,5,6,7,8,9,10,11,12,13 + 0 + + N + Y + N + + + 128 + 224 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_consumo_agua.ktr b/gerencial_pentaho-master/PDI/sg_consumo_agua.ktr new file mode 100644 index 0000000..3524ad4 --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_consumo_agua.ktr @@ -0,0 +1,1969 @@ + + + + sg_consumo_agua + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + consumo_aguaSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +Integer +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 432 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + arti_id + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + consumo_agua + TableInput + + Y + + 1 + + none + + + comercial_gsan + Select --5000 AS dmlo ${max} as dmlo --dimen_localizacao ,c.rota_id -- ID DA ROTA (TABELA ROTA) --,i.rota_id -- Id da rota do imovel ,loca.greg_id , loca.uneg_id ,i.loca_id -- ID DA LOCALIDADE (TABELA LOCALIDADE) ,i.stcm_id -- ID DO SETOR COMERCIAL (TABELA SETOR_COMERCIAL) - OBRIGATORIO ,i.qdra_id -- ID DA QUADRA (TABELA QUADRA) ,i.stcm_cdsetorcomercial -- CODIGO DO SETOR COMERCIAL. ,i.qdra_nnquadra -- NUMERO DA QUADRA. ,coalesce(loca.loca_cdelo,9999) as loca_cdelo , case when q.arti_id is null then 0 else q.arti_id END as arti_id ,'consumo_agua' as tbgeracao , now() as data_atual FROM gsan_admin.consumo_historico c INNER JOIN gsan_admin.imovel i ON c.imov_id=i.imov_id INNER JOIN gsan_admin.bairro b ON i.bair_id=b.bair_id INNER JOIN gsan_admin.localidade loca ON i.loca_id = loca.loca_id INNER JOIN gsan_admin.sistema_parametros ON 1=1 LEFT JOIN gsan_admin.ligacao_agua la ON i.imov_id = la.lagu_id LEFT JOIN gsan_admin.ligacao_esgoto le ON i.imov_id = le.lesg_id ----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- LEFT JOIN gsan_admin.cliente_imovel cir ON i.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente_imovel ciu ON i.imov_id = ciu.imov_id AND ciu.crtp_id = 2 AND ciu.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente ci ON ci.clie_id = (Case when cir.clie_id is not null then cir.clie_id else ciu.clie_id end) INNER JOIN gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id INNER JOIN gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id LEFT JOIN gsan_admin.conta cnta ON i.imov_id=cnta.imov_id AND cnta.dcst_idatual in(0,1,2) AND cnta.cnta_amreferenciaconta=c.cshi_amfaturamento LEFT JOIN gsan_admin.conta_historico cnhi ON i.imov_id=cnhi.imov_id AND cnhi.dcst_idatual in(0,1,2) AND cnhi.cnhi_amreferenciaconta=c.cshi_amfaturamento inner join (SELECT i.imov_id ,sum(cstc_nnconsumominimo * imsb.imsb_qteconomia ) consumo_minimo_ligacao FROM gsan_admin.imovel i INNER JOIN gsan_admin.imovel_subcategoria imsb on i.imov_id=imsb.imov_id inner join gsan_admin.subcategoria scat on imsb.scat_id=scat.scat_id inner join gsan_admin.consumo_tarifa_categoria cstc on scat.catg_id=cstc.catg_id and cstv_id = (select max(cstv_id) from gsan_admin.consumo_tarifa_vigencia tv where tv.cstf_id = i.cstf_id) group by 1 ) as consumo on i.imov_id=consumo.imov_id INNER JOIN gsan_admin.quadra q ON i.qdra_id = q.qdra_id where c.lgti_id=1 and c.cshi_amfaturamento=parm_amreferenciafaturamento -1 --and i.imov_id in(1280406, 11211601, 11264101, 36289370) group by 1,2,3,4,5,6,7,8,9,10,11,12,13 + 0 + + N + Y + N + + + 144 + 224 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_faturamento.ktr b/gerencial_pentaho-master/PDI/sg_faturamento.ktr new file mode 100644 index 0000000..9a70688 --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_faturamento.ktr @@ -0,0 +1,1969 @@ + + + + sg_faturamento + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + faturamentoSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +None +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 448 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + arti_id + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + faturamento + TableInput + + Y + + 1 + + none + + + comercial_gsan + --------------------------- ----RESUMO = FATURAMENTO-- ----EMPRESA = CAGEPA -- ----VERSÃO = 22/12/2015 -- --------------------------- SELECT -------DIMENSÕES-(35)------ --5000 as refa, ${max} as dmlo, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, rt.rota_id, im.qdra_id, sc.stcm_cdsetorcomercial as refa_cdsetorcomercial, qd.qdra_nnquadra as refa_nnquadra, ftgr_id, rota_cdrota as refa_cdrota, case when qd.arti_id is null then 0 else qd.arti_id END as arti_id , 'faturamento' as tbgeracao, now() as data_atual FROM ( -----------SELECIONAR OS LANÇAMENTOS COM SUAS ORIGENS-------------- SELECT parm_amreferenciafaturamento as refa_amreferencia, Case when ct.cnta_id is not null then 'CONTA' when ch.cnta_id is not null then 'CONTA HISTORICO' when gp.gpag_id is not null then 'GUIA PAGAMENTO' when gh.gpag_id is not null then 'GUIA PAGAMENTO HISTORICO' when dac.dbac_id is not null then 'DEBITO A COBRAR' when dach.dbac_id is not null then 'DEBITO A COBRAR HISTORICO' when car.crar_id is not null then 'CREDITO A REALIZAR' when crh.crar_id is not null then 'CREDITO A REALIZAR HISTORICO' end as origem, Case when ch.cnta_id is not null then ch.imov_id when ct.cnta_id is not null then ct.imov_id when gp.gpag_id is not null then gp.imov_id when gh.gpag_id is not null then gh.imov_id when dac.dbac_id is not null then dac.imov_id when dach.dbac_id is not null then dach.imov_id when car.crar_id is not null then car.imov_id when crh.crar_id is not null then crh.imov_id end as imov_id, Case when car.crar_id is not null then car.crog_id when crh.crar_id is not null then crh.crog_id else 0 end as crog_id, Case when car.crar_id is not null then car.dotp_id when crh.crar_id is not null then crh.dotp_id when dac.dbac_id is not null then dac.dotp_id when dach.dbac_id is not null then dach.dotp_id else 0 end as dotp_id, Case when dac.dbac_id is not null then dac.fntp_id when dach.dbac_id is not null then dach.fntp_id else 0 end as fntp_id, Case when dac.dbac_id is not null then dac.dbtp_id when dach.dbac_id is not null then dach.dbtp_id else 0 end as dbtp_id, Case when car.crar_id is not null then car.crti_id when crh.crar_id is not null then crh.crti_id else 0 end as crti_id, catg_id, b.lict_id, imtp_id, b.evco_id, laca_idobjeto, Case when b.evco_id in (7,8,9,10,11,12) then (laca_vl*-1) else laca_vl end as valor_lancamento from gsan_admin.lancamento_contabil_analitico a inner join gsan_admin.lancamento_contabil_sintetico b on a.lacs_id = b.lacs_id inner join gsan_admin.sistema_parametros on 1=1 left join gsan_admin.conta_historico ch on ch.cnta_id = laca_idobjeto and cnhi_amreferenciaconta = parm_amreferenciafaturamento left join gsan_admin.conta ct on ct.cnta_id = laca_idobjeto and cnta_amreferenciaconta = parm_amreferenciafaturamento left join gsan_admin.debito_a_cobrar dac on dac.dbac_id = laca_idobjeto and dac.dbac_amreferenciadebito = parm_amreferenciafaturamento left join gsan_admin.debito_a_cobrar_historico dach on dach.dbac_id = laca_idobjeto and dahi_amreferenciadebito = parm_amreferenciafaturamento left join gsan_admin.credito_a_realizar car on car.crar_id = laca_idobjeto and crar_amreferenciacredito = parm_amreferenciafaturamento left join gsan_admin.credito_a_realizar_historico crh on crh.crar_id = laca_idobjeto and carh_amreferenciacredito = parm_amreferenciafaturamento left join gsan_admin.guia_pagamento gp on gp.gpag_id = laca_idobjeto left join gsan_admin.guia_pagamento_historico gh on gh.gpag_id = laca_idobjeto where evco_id in (1,2,3,4,7,8,9,10,11,12,13,14,15,16,18,19,20,21,29,46,70,71,72,80,81,82,83) and substr(cast(lacs_dtcontabil as char(10)),1,7)= substr(cast(parm_amreferenciafaturamento as char(6)),1,4)||'-' ||substr(cast(parm_amreferenciafaturamento as char(6)),5,2) ) TEMP ------TABELAS PARA RECUPERAR DADOS DAS DIMENSÕES------------------------ left join gsan_admin.imovel im on im.imov_id = temp.imov_id left join gsan_admin.ligacao_agua la on la.lagu_id = temp.imov_id left join gsan_admin.ligacao_esgoto le on le.lesg_id = temp.imov_id left join gsan_admin.localidade loc on loc.loca_id = im.loca_id left join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id left join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id left join gsan_admin.rota rt on rt.rota_id = qd.rota_id left join gsan_admin.cliente_imovel clim on clim.crtp_id = 2 and clim_dtrelacaofim is null and clim.imov_id = im.imov_id left join gsan_admin.cliente clie on clie.clie_id = clim.clie_id left join gsan_admin.cliente_tipo cltp on cltp.cltp_id = clie.cltp_id group by 1,2,3,4,5,6,7,8,9,10,11,12,13 ------FIM DO SQL---------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 144 + 256 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_hidrometro_instalacao.ktr b/gerencial_pentaho-master/PDI/sg_hidrometro_instalacao.ktr new file mode 100644 index 0000000..e13216a --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_hidrometro_instalacao.ktr @@ -0,0 +1,1969 @@ + + + + sg_hidrometro_instalacao + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + un_res_lig_econSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +None +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 448 + 448 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + arti_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + un_res_lig_econ + TableInput + + Y + + 1 + + none + + + comercial_gsan + --------Gerar tabela FATO de hidrômetros instalados, retirados, substituidos --------Versão CAGEPA em 16/10/2015 select ${max} as dmlo, reih_amreferencia, coalesce(greg_id,9999) as greg_id, coalesce(uneg_id,9999) as uneg_id, coalesce(loca_id,9999) as loca_id, coalesce(loca_cdelo,9999) as loca_cdelo, coalesce(stcm_id,9999) as stcm_id, coalesce(qdra_id,9999) as qdra_id, coalesce(rota_id,9999) as rota_id, coalesce(arti_id,0) as arti_id, now() as data_atual , 'hidrometro_instlado' as tbgeracao from ( SELECT -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as reih_amreferencia, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, qd.qdra_id, qd.rota_id, coalesce(qd.arti_id,0) as arti_id FROM gsan_admin.hidrometro_instalacao_hist hih inner join gsan_admin.sistema_parametros on 1=1 inner join gsan_admin.imovel im on im.imov_id = (case when hih.lagu_id is not null then hih.lagu_id else hih.imov_id end) inner join gsan_admin.localidade loc on loc.loca_id = im.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id WHERE substr(cast(hidi_dtinstalacaohidrometrosis as char(10)),1,4)||substr(cast(hidi_dtinstalacaohidrometrosis as char(10)),6,2) = cast(case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end as char(6)) OR substr(cast(hidi_dtretiradahidrometro as char(10)),1,4)||substr(cast(hidi_dtretiradahidrometro as char(10)),6,2) = cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end) as char(6)) GROUP BY 1,2,3,4,5,6,7,8,9 ----------------------------------------------------------------------------- UNION ALL ----------------------------------------------------------------------------- SELECT -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as reih_amreferencia, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, qd.qdra_id, qd.rota_id, coalesce(qd.arti_id,0) as arti_id FROM gsan_admin.imovel im inner join gsan_admin.localidade loc on loc.loca_id = im.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id inner join gsan_admin.sistema_parametros on 1=1 GROUP BY 1,2,3,4,5,6,7,8,9 ------------------------------- UNION ALL ------------------------------ SELECT -----------DIMENSÕES---------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento - 1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as reih_amreferencia, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, qd.qdra_id, qd.rota_id, coalesce(qd.arti_id,0) as arti_id FROM gsan_admin.imovel im inner join gsan_admin.localidade loc on loc.loca_id = im.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id inner join gsan_admin.sistema_parametros on 1=1 GROUP BY 1,2,3,4,5,6,7,8,9 ------------------------------------------------------------------------------------ ) temp GROUP BY 1,2,3,4,5,6,7,8,9,10,11 ------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 128 + 224 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_leitura_anormalidade.ktr b/gerencial_pentaho-master/PDI/sg_leitura_anormalidade.ktr new file mode 100644 index 0000000..1654885 --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_leitura_anormalidade.ktr @@ -0,0 +1,1969 @@ + + + + sg_leitura_anormalidade + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + leitura_anormalidadeSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +None +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 448 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + arti_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + leitura_anormalidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + ------ ------Gera tabela fato de anormalidade de leitura --------------------------- ------VERSAO CAGEPA EM 13/10/2015 SELECT ${max} as dmlo, cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento-1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as relt_amreferencia, coalesce(loc.greg_id,9999) as greg_id, coalesce(loc.uneg_id,9999) as uneg_id, coalesce(imo.loca_id,9999) as loca_id, coalesce(loc.loca_cdelo,9999) as loca_cdelo, coalesce(imo.stcm_id,9999) as stcm_id, coalesce(sc.stcm_cdsetorcomercial,9999) as stcm_cdsetorcomercial, coalesce(imo.qdra_id,9999) as qdra_id, coalesce(qd.qdra_nnquadra,9999) as qdra_nnquadra, case when qd.arti_id is null then 0 else qd.arti_id END as arti_id, coalesce(qd.rota_id,9999) as rota_id, now() as data_atual , 'leitura_anormalidade' as tbgeracao FROM gsan_admin.imovel imo inner join gsan_admin.localidade loc on loc.loca_id = imo.loca_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = imo.stcm_id inner join gsan_admin.quadra qd on qd.qdra_id = imo.qdra_id inner join gsan_admin.rota rt on rt.rota_id = qd.rota_id inner join gsan_admin.medicao_historico mh on mh.lagu_id = imo.imov_id inner join gsan_admin.sistema_parametros on 1=1 --------------------------------------------------------------------------------------------------------------------------- WHERE mh.mdhi_amleitura = parm_amreferenciafaturamento -1 group by 1,2,3,4,5,6,7,8,9,10,11,12,13 --------------------------------------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 128 + 224 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_localizacao_lig.ktr b/gerencial_pentaho-master/PDI/sg_localizacao_lig.ktr new file mode 100644 index 0000000..179a7bf --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_localizacao_lig.ktr @@ -0,0 +1,1969 @@ + + + + sg_localizacao_lig + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + un_res_lig_econSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +None +-1 +-1 +N + + + + + + + + 544 + 416 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 432 + 416 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 304 + 416 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + arti_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 208 + 416 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + un_res_lig_econ + TableInput + + Y + + 1 + + none + + + comercial_gsan + ---------- QUERY PRINCIPAL ----------------- SELECT --50132 as dmlo ${max} as dmlo -- parm_amreferenciafaturamento as referencia , coalesce( loca.greg_id,9999) as greg_id -- dimen_localizacao ,coalesce( loca.uneg_id,9999) as uneg_id -- dimen_localizacao , coalesce( loca.loca_id,9999) as loca_id -- dimen_localizacao , coalesce( loca.loca_cdelo,9999) as loca_cdelo -- dimen_localizacao , case when imo.stcm_id is null then 9999 else imo.stcm_id end as stcm_id , case when quadra.rota_id is null then 9999 else quadra.rota_id end as rota_id -- dimen_localizacao , case when imo.qdra_id is null then 9999 else imo.qdra_id end as qdra_id , case when quadra.arti_id is null then 0 else quadra.arti_id END as arti_id , now() as data_atual , 'lig_economia' as tbgeracao FROM gsan_admin.imovel imo --INNER JOIN gsan_admin.sistema_parametros ON 1=1 --INNER JOIN gsan_admin.imovel_subcategoria cat ON cat.imov_id = imo.imov_id --and imsb_qteconomia = (select max(imsb_qteconomia) -- from gsan_admin.imovel_subcategoria cat2 -- where cat2.imov_id = imo.imov_id) INNER JOIN gsan_admin.rota rota ON imo.rota_id = rota.rota_id INNER JOIN gsan_admin.localidade loca ON imo.loca_id = loca.loca_id INNER JOIN gsan_admin.setor_comercial setor ON imo.stcm_id = setor.stcm_id INNER JOIN gsan_admin.quadra quadra ON imo.qdra_id = quadra.qdra_id LEFT JOIN gsan_admin.ligacao_agua la ON imo.imov_id = la.lagu_id LEFT JOIN gsan_admin.ligacao_esgoto le ON imo.imov_id = le.lesg_id left join gsan_admin.area_tipo atp on atp.arti_id = quadra.arti_id ----------Tabelas para recuperar a esfera de poder e tipo do cliente------------------------------------------------------- LEFT JOIN gsan_admin.cliente_imovel cir ON imo.imov_id = cir.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente_imovel ciu ON imo.imov_id = ciu.imov_id AND ciu.crtp_id = 2 AND ciu.clim_dtrelacaofim IS NULL INNER JOIN gsan_admin.cliente ci ON ci.clie_id = (Case when cir.clie_id is not null then cir.clie_id else ciu.clie_id end) INNER JOIN gsan_admin.cliente_tipo ct ON ci.cltp_id = ct.cltp_id INNER JOIN gsan_admin.esfera_poder ep ON ct.epod_id = ep.epod_id -------------------------------------------------------------------------------------------- group by loca.greg_id, loca.uneg_id, loca.loca_id, loca.loca_cdelo, imo.stcm_id, imo.qdra_id, quadra.arti_id, quadra.rota_id -------------------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 112 + 224 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_parcelamento.ktr b/gerencial_pentaho-master/PDI/sg_parcelamento.ktr new file mode 100644 index 0000000..edebd9f --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_parcelamento.ktr @@ -0,0 +1,1991 @@ + + + + sg_parcelamento + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + un_res_lig_econSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Modified Java Script ValueGet System InfoY + Get System InfoAdd sequenceY + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +Integer +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Get System Info + SystemInfo + + Y + + 1 + + none + + + + + data_atual + system date (fixed) + + + + + 800 + 448 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + -2 + + false + + + false + + + + + + + + 432 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + arti_id + + -2 + -2 + rota_id + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + un_res_lig_econ + TableInput + + Y + + 1 + + none + + + comercial_gsan + ------------------------------------------------------------- --------Gerar tabela FATO dos Parcelamentos Realizados no Mês --------Versão CAGEPA em 06/11/2015 select ------------DIMENSÕES----------------------------------------- 0 as dmlo, --${max} as dmlo, 'res_parcelamento' as tbgeracao, greg_id, uneg_id, im.loca_id, loca_cdelo, im.stcm_id, sc.stcm_cdsetorcomercial, qd.rota_id, rota_cdrota, qd.qdra_id, qd.qdra_nnquadra, coalesce(qd.arti_id, 0) as arti_id --------------TABELAS RELACIONADAS-------------------------------------------------- from gsan_admin.parcelamento pc --inner join gsan_admin.sistema_parametros on 1 = 1 --inner join gsan_admin.parcelamento_item pi on pi.parc_id = pc.parc_id --left join gsan_admin.debito_a_cobrar dac on dac.dbac_id = pi.dbac_id inner join gsan_admin.imovel im on im.imov_id = pc.imov_id and imov_icexclusao = 2 inner join gsan_admin.quadra qd on qd.qdra_id = im.qdra_id inner join gsan_admin.rota rt on rt.rota_id = qd.rota_id inner join gsan_admin.setor_comercial sc on sc.stcm_id = im.stcm_id inner join gsan_admin.localidade lo on lo.loca_id = im.loca_id --left join gsan_admin.ligacao_agua la on la.lagu_id = im.imov_id --left join gsan_admin.ligacao_esgoto le on le.lesg_id = im.imov_id -----------Tabelas para recuperar a esfera de poder e tipo do cliente----------------------------------------------------------------------------- --inner join gsan_admin.cliente_imovel ciu on ciu.imov_id = im.imov_id AND ciu.crtp_id = 2 AND ciu.clim_dtrelacaofim IS NULL --left join gsan_admin.cliente_imovel cir on cir.imov_id = im.imov_id AND cir.crtp_id = 3 AND cir.clim_dtrelacaofim IS NULL --left join gsan_admin.cliente ci on ci.clie_id = (Case when cir.clie_id is not null then cir.clie_id else ciu.clie_id end) --left join gsan_admin.cliente_tipo ct on ct.cltp_id = ci.cltp_id --where pcst_id = 1 -- and parm_amreferenciafaturamento = parc_amreferenciafaturamento group by 1,2,3,4,5,6,7,8,9,10,11,12,13 ---------------------------------------------------------------------------------- + 0 + + N + Y + N + + + 128 + 224 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/sg_registro_atendimento.ktr b/gerencial_pentaho-master/PDI/sg_registro_atendimento.ktr new file mode 100644 index 0000000..ee186bc --- /dev/null +++ b/gerencial_pentaho-master/PDI/sg_registro_atendimento.ktr @@ -0,0 +1,1969 @@ + + + + sg_registro_atendimento + + + + Normal + 0 + / + + + amreferencia + 201512 + + + + max + 0 + + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/06/23 10:14:59.224 + - + 2015/06/23 10:14:59.224 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_dw + 186.215.202.154 + VERTICA5 + JNDI + caern_dw + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_staging + + VERTICA5 + JNDI + caern_staging + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + Vertica 236 + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + localidadelookup_localizacaoY + lookup_localizacaoFilter rowsY + Filter rowsDummy (do nothing)Y + g_gerencia_regionallookup_gerenciaY + lookup_gerenciaunidade_negocioY + g_unidade_negociounidade_negocioY + g_localidadelookup_localidadeY + unidade_negociolookup_localidadeY + g_localidade elolookup_localidade eloY + lookup_localidadelookup_localidade eloY + g_setor_comerciallookup_setor_comercialY + lookup_localidade elolookup_setor_comercialY + g_quadralookup_quadraY + lookup_setor_comerciallookup_quadraY + g_rotalookup_rotaY + lookup_quadralookup_rotaY + lookup_rotaModified Java Script ValueY + Select values 3lookup_localizacaoY + registro_atendimentoSelect values 3Y + Sort rowsUnique rowsY + Unique rowslookup_gerenciaY + Filter rowsSort rowsY + Modified Java Script ValueAdd sequenceY + Add sequenceCalculatorY + CalculatorSelect values 2Y + Select values 2Select values 2 2Y + Select values 2 2Table outputY + + + Add sequence + Sequence + + Y + + 1 + + none + + + id + N + VERTICA_JNDI + gerencial + dmlo_seq + Y + + 1 + 1 + 999999999 + + + 736 + 448 + Y + + + + + Calculator + Calculator + + Y + + 1 + + none + + + rota +CONSTANT +Rota + + +String +-1 +-1 +N + + + + + + quadra +CONSTANT +Quadra + + +String +-1 +-1 +N + + + + + + rota_desc +ADD +rota +rota_cdrota + +String +-1 +-1 +N + + + + + + qdra_desc +ADD +quadra +qdra_nnquadra + +String +-1 +-1 +N + + + + + + grupo +CONSTANT +Grupo + + +String +-1 +-1 +N + + + + + + ftgr_desc +ADD +grupo +ftgr_id + +String +-1 +-1 +N + + + + + + dmlo_id +ADD +dmlo +id + +Integer +-1 +-1 +N + + + + + + + + 624 + 448 + Y + + + + + Dummy (do nothing) + Dummy + + Y + + 1 + + none + + + + + 299 + 30 + Y + + + + + Filter rows + FilterRows + + Y + + 1 + + none + + +Sort rows +Dummy (do nothing) + + + N + dmlo_teste + IS NULL + + constantInteger0-10N#;-# + + + + 295 + 137 + Y + + + + + Modified Java Script Value + ScriptValueMod + + Y + + 1 + + none + + + N + 9 + 0 + Script 1 + //Script here var arti_dsarea if(arti_id==0){ arti_dsarea="NAO INFORMADO"} else{ if(arti_id==1){ arti_dsarea="URBANA"} else{if(arti_id==2){ arti_dsarea="RURAL"} } }; + arti_dsarea + arti_dsarea + String + -1 + -1 + N + + + 869 + 446 + Y + + + + + Select values 2 + SelectValues + + Y + + 1 + + none + + + greg_id + + -2 + -2 + greg_nmregional + + -2 + -2 + uneg_id + + -2 + -2 + uneg_nmunidadenegocio + + -2 + -2 + loca_id + + -2 + -2 + loca_nmlocalidade + + -2 + -2 + loca_cdelo + + -2 + -2 + loca_nmlocalidadeelo + + -2 + -2 + stcm_id + + -2 + -2 + stcm_cdsetorcomercial + + -2 + -2 + stcm_nmsetorcomercial + + -2 + -2 + qdra_id + + -2 + -2 + qdra_nnquadra + + -2 + -2 + qdra_desc + + -2 + -2 + arti_id + + -2 + -2 + arti_dsarea + + -2 + -2 + rota_id + + -2 + -2 + rota_cdrota + + -2 + -2 + rota_desc + + -2 + -2 + ftgr_id + + -2 + -2 + ftgr_desc + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo_id + + -2 + -2 + N + + + 510 + 446 + Y + + + + + Select values 2 2 + SelectValues + + Y + + 1 + + none + + + N + greg_id + greg_id + Integer + 15 + 0 + + false + + + false + + + + + + greg_nmregional + greg_nmregional + String + 150 + -2 + + false + + + false + + + + + + uneg_id + uneg_id + Integer + 15 + 0 + + false + + + false + + + + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + String + 150 + -2 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidade + loca_nmlocalidade + String + 150 + -2 + + false + + + false + + + + + + loca_cdelo + loca_cdelo + Integer + 15 + 0 + + false + + + false + + + + + + loca_nmlocalidadeelo + loca_nmlocalidadeelo + String + 150 + -2 + + false + + + false + + + + + + stcm_id + stcm_id + Integer + 15 + 0 + + false + + + false + + + + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + Integer + 15 + 0 + + false + + + false + + + + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + String + 150 + -2 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_nnquadra + qdra_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + qdra_desc + qdra_desc + String + 150 + -2 + + false + + + false + + + + + + arti_id + arti_id + Integer + 15 + 0 + + false + + + false + + + + + + arti_dsarea + arti_dsarea + String + 150 + -2 + + false + + + false + + + + + + rota_id + rota_id + Integer + 15 + 0 + + false + + + false + + + + + + rota_cdrota + rota_cdrota + Integer + 15 + 0 + + false + + + false + + + + + + rota_desc + rota_desc + String + 150 + -2 + + false + + + false + + + + + + ftgr_id + ftgr_id + Integer + 15 + 0 + + false + + + false + + + + + + ftgr_desc + ftgr_desc + String + 150 + -2 + + false + + + false + + + + + + data_atual + data_atual + Timestamp + 6 + -2 + + false + + + false + + + + + + tbgeracao + tbgeracao + String + 150 + -2 + + false + + + false + + + + + + dmlo_id + dmlo_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 448 + 432 + Y + + + + + Select values 3 + SelectValues + + Y + + 1 + + none + + + uneg_id + + -2 + -2 + greg_id + + -2 + -2 + loca_id + + -2 + -2 + stcm_id + + -2 + -2 + loca_cdelo + + -2 + -2 + qdra_id + + -2 + -2 + arti_id + + -2 + -2 + rota_id + + -2 + -2 + data_atual + + -2 + -2 + tbgeracao + + -2 + -2 + dmlo + + -2 + -2 + N + + + 128 + 134 + Y + + + + + Sort rows + SortRows + + Y + + 1 + + none + + + %%java.io.tmpdir%% + out + 1000000 + + N + + N + + + greg_id + Y + N + N + + + uneg_id + Y + N + N + + + loca_id + Y + N + N + + + loca_cdelo + Y + N + N + + + stcm_id + Y + N + N + + + qdra_id + Y + N + N + + + rota_id + Y + N + N + + + + + 378 + 130 + Y + + + + + Table output + TableOutput + + Y + + 1 + + none + + + VERTICA_JNDI + gerencial_cagepa +
dimen_localizacao
+ 1000 + N + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 370 + 445 + Y + + + + + Unique rows + Unique + + Y + + 1 + + none + + + N + + N + + greg_id + N + uneg_id + N + loca_id + N + loca_cdelo + N + stcm_id + N + qdra_id + N + rota_id + N + + + 441 + 133 + Y + + + + + g_gerencia_regional + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT greg_id , greg_nmregional , greg_nmabreviado , greg_tmultimaalteracao --, supt_id FROM gsan_admin.gerencia_regional + 0 + + N + N + N + + + 545 + 25 + Y + + + + + g_localidade + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 749 + 23 + Y + + + + + g_localidade elo + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT loca_id , loca_nmlocalidade , loca_cdelo , greg_id , lpor_id , loca_tmultimaalteracao , uneg_id , loca_cdcentrocusto , loca_icuso --, loca_nmmunicipio --, muni_idprincipal FROM gsan_admin.localidade + 0 + + N + N + N + + + 865 + 22 + Y + + + + + g_quadra + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT qdra_id , stcm_id , qdra_nnquadra , qdra_icredeagua , qdra_icredeesgoto , rota_id , qdra_nnrotasequencia , qdra_dtimplantacao , qdra_icuso , qdra_tmultimaalteracao , diop_id , arti_id , bair_id FROM gsan_admin.quadra + 0 + + N + N + N + + + 731 + 287 + Y + + + + + g_rota + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT rota_id , rota_tmultimaalteracao , stcm_id , rota_cdrota , ftgr_id FROM gsan_admin.rota + 0 + + N + N + N + + + 729 + 379 + Y + + + + + g_setor_comercial + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT stcm_id , loca_id , stcm_cdsetorcomercial , stcm_nmsetorcomercial , stcm_icuso , stcm_tmultimaalteracao , muni_id FROM gsan_admin.setor_comercial + 0 + + N + N + N + + + 731 + 225 + Y + + + + + g_unidade_negocio + TableInput + + Y + + 1 + + none + + + comercial_gsan + SELECT uneg_id , greg_id , uneg_nmunidadenegocio , uneg_nmabreviado , uneg_icuso , uneg_tmultimaalteracao FROM gsan_admin.unidade_negocio + 0 + + N + N + N + + + 640 + 24 + Y + + + + + localidade + TableInput + + Y + + 1 + + none + + + VERTICA_JNDI + SELECT greg_id , uneg_id , loca_id , loca_cdelo , stcm_id , qdra_id , arti_id , rota_id , ftgr_id , dmlo_id FROM gerencial_cagepa.dimen_localizacao + 0 + + N + N + N + + + 210 + 26 + Y + + + + + lookup_gerencia + StreamLookup + + Y + + 1 + + none + + + g_gerencia_regional + N + Y + N + N + + + greg_id + greg_id + + + greg_nmregional + greg_nmregional + + None + + + + + 546 + 134 + Y + + + + + lookup_localidade + StreamLookup + + Y + + 1 + + none + + + g_localidade + N + Y + N + N + + + loca_id + loca_id + + + loca_nmlocalidade + loca_nmlocalidade + + None + + + + + 750 + 132 + Y + + + + + lookup_localidade elo + StreamLookup + + Y + + 1 + + none + + + g_localidade elo + N + Y + N + N + + + loca_cdelo + loca_id + + + loca_nmlocalidade + loca_nmlocalidadeelo + + None + + + + + 866 + 131 + Y + + + + + lookup_localizacao + StreamLookup + + Y + + 1 + + none + + + localidade + N + Y + N + N + + + greg_id + greg_id + + + uneg_id + uneg_id + + + loca_id + loca_id + + + stcm_id + stcm_id + + + loca_cdelo + loca_cdelo + + + qdra_id + qdra_id + + + rota_id + rota_id + + + dmlo_id + dmlo_teste + + None + + + + + 211 + 135 + Y + + + + + lookup_quadra + StreamLookup + + Y + + 1 + + none + + + g_quadra + N + Y + N + N + + + qdra_id + qdra_id + + + qdra_nnquadra + qdra_nnquadra + + None + + + + + 869 + 287 + Y + + + + + lookup_rota + StreamLookup + + Y + + 1 + + none + + + g_rota + N + Y + N + N + + + rota_id + rota_id + + + rota_cdrota + rota_cdrota + + None + + + ftgr_id + ftgr_id + + None + + + + + 867 + 379 + Y + + + + + lookup_setor_comercial + StreamLookup + + Y + + 1 + + none + + + g_setor_comercial + N + Y + N + N + + + stcm_id + stcm_id + + + stcm_nmsetorcomercial + stcm_nmsetorcomercial + + None + + + stcm_cdsetorcomercial + stcm_cdsetorcomercial + + None + + + + + 869 + 225 + Y + + + + + registro_atendimento + TableInput + + Y + + 1 + + none + + + comercial_gsan + ----- ------Geração da tabela FATO REGISTRO ATENDIMENTO ------VERSAO CAGEPA em 19/10/2015 ------ SELECT --0 as dmlo, ${max} as dmlo, --------DIMENSOES--------------------------------------------------------------------------------------------------------- cast((case when substr(cast(parm_amreferenciafaturamento as char(6)),5,2) > '01' then (parm_amreferenciafaturamento-1) else (parm_amreferenciafaturamento - 89) end) as char(6)) as rera_amreferencia, coalesce(greg_id,9999) as greg_id, coalesce(uneg_id,9999) as uneg_id, coalesce(CASE WHEN ra.imov_id is not null then imo.loca_id else ra.loca_id end ,9999) as loca_id, coalesce(loca_cdelo,9999) as loca_cdelo, coalesce(CASE WHEN ra.imov_id is not null then imo.stcm_id else ra.stcm_id end,9999) as stcm_id, coalesce(CASE WHEN ra.imov_id is not null then imo.qdra_id else ra.qdra_id end,9999) as qdra_id, case when qd.arti_id is null then 0 else qd.arti_id END as arti_id, coalesce(qd.rota_id,9999) as rota_id , now() as data_atual , 'reg_atendimento' as tbgeracao --------------------------------------------- FROM gsan_admin.registro_atendimento ra --INNER JOIN gsan_admin.solicitacao_tipo_especificacao ste on ste.step_id = ra.step_id --INNER JOIN gsan_admin.solicitacao_tipo st on st.sotp_id = ste.sotp_id INNER JOIN gsan_admin.sistema_parametros on 1=1 LEFT JOIN gsan_admin.imovel imo on imo.imov_id = ra.imov_id --LEFT JOIN gsan_admin.imovel_subcategoria cat on cat.imov_id = imo.imov_id -- and imsb_qteconomia = (select max(imsb_qteconomia) from gsan_admin.imovel_subcategoria cat2 -- where cat2.imov_id = imo.imov_id) LEFT JOIN gsan_admin.localidade loc on loc.loca_id = (Case when ra.imov_id is not null then imo.loca_id else ra.loca_id end) LEFT JOIN gsan_admin.setor_comercial sc on sc.stcm_id = (Case when ra.imov_id is not null then imo.stcm_id else ra.stcm_id end) LEFT JOIN gsan_admin.quadra qd on qd.qdra_id = (Case when ra.imov_id is not null then imo.qdra_id else ra.qdra_id end) WHERE substr(cast(rgat_tmregistroatendimento as char(10)),1,4)||substr(cast(rgat_tmregistroatendimento as char (10)),6,2) = cast((parm_amreferenciafaturamento-1) as char(6)) ----Seleciona apenas RA gerados no referência(ano/mês) do faturamento group by 1,2,3,4,5,6,7,8,9,10,11 ------------------------------------------------------ + 0 + + N + Y + N + + + 32 + 128 + Y + + + + + unidade_negocio + StreamLookup + + Y + + 1 + + none + + + g_unidade_negocio + N + Y + N + N + + + uneg_id + uneg_id + + + uneg_nmunidadenegocio + uneg_nmunidadenegocio + + None + + + + + 641 + 133 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PDI/stage_paghist.ktr b/gerencial_pentaho-master/PDI/stage_paghist.ktr new file mode 100644 index 0000000..24a0399 --- /dev/null +++ b/gerencial_pentaho-master/PDI/stage_paghist.ktr @@ -0,0 +1,998 @@ + + + + stage_paghist + + + + Normal + / + + + + + + + + + +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDTRANSNAMEYTRANSNAMESTATUSYSTATUSLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSSTARTDATEYSTARTDATEENDDATEYENDDATELOGDATEYLOGDATEDEPDATEYDEPDATEREPLAYDATEYREPLAYDATELOG_FIELDYLOG_FIELDEXECUTING_SERVERNEXECUTING_SERVEREXECUTING_USERNEXECUTING_USERCLIENTNCLIENT + + +
+ + +ID_BATCHYID_BATCHSEQ_NRYSEQ_NRLOGDATEYLOGDATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSINPUT_BUFFER_ROWSYINPUT_BUFFER_ROWSOUTPUT_BUFFER_ROWSYOUTPUT_BUFFER_ROWS + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATELOGGING_OBJECT_TYPEYLOGGING_OBJECT_TYPEOBJECT_NAMEYOBJECT_NAMEOBJECT_COPYYOBJECT_COPYREPOSITORY_DIRECTORYYREPOSITORY_DIRECTORYFILENAMEYFILENAMEOBJECT_IDYOBJECT_IDOBJECT_REVISIONYOBJECT_REVISIONPARENT_CHANNEL_IDYPARENT_CHANNEL_IDROOT_CHANNEL_IDYROOT_CHANNEL_ID + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATETRANSNAMEYTRANSNAMESTEPNAMEYSTEPNAMESTEP_COPYYSTEP_COPYLINES_READYLINES_READLINES_WRITTENYLINES_WRITTENLINES_UPDATEDYLINES_UPDATEDLINES_INPUTYLINES_INPUTLINES_OUTPUTYLINES_OUTPUTLINES_REJECTEDYLINES_REJECTEDERRORSYERRORSLOG_FIELDNLOG_FIELD + + +
+ +ID_BATCHYID_BATCHCHANNEL_IDYCHANNEL_IDLOG_DATEYLOG_DATEMETRICS_DATEYMETRICS_DATEMETRICS_CODEYMETRICS_CODEMETRICS_DESCRIPTIONYMETRICS_DESCRIPTIONMETRICS_SUBJECTYMETRICS_SUBJECTMETRICS_TYPEYMETRICS_TYPEMETRICS_VALUEYMETRICS_VALUE + + + +
+ + 0.0 + 0.0 + + 10000 + 50 + 50 + N + Y + 50000 + Y + + N + 1000 + 100 + + + + + + + + + - + 2015/11/11 17:46:47.550 + - + 2015/11/11 17:46:47.550 + H4sIAAAAAAAAAAMAAAAAAAAAAAA= + N + + + + + AgileBI + localhost + MONETDB + Native + pentaho-instaview + 50006 + monetdb + Encrypted 2be98afc86aa7f2e4cb14a17edb86abd8 + + + + true + + EXTRA_OPTION_INFOBRIGHT.characterEncodingUTF-8 + EXTRA_OPTION_MYSQL.defaultFetchSize500 + EXTRA_OPTION_MYSQL.useCursorFetchtrue + PORT_NUMBER50006 + PRESERVE_RESERVED_WORD_CASEY + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + + + + caern_trans + 186.215.202.154 + POSTGRESQL + JNDI + caern_trans + 6000 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER6000 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEN + SUPPORTS_TIMESTAMP_DATA_TYPEN + USE_POOLINGN + + + + comercial_gsan + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + COMERCIAL_GSAN + + POSTGRESQL + JNDI + comercial_gsan + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GERENCIAL_GSAN + 192.168.64.243 + POSTGRESQL + JNDI + gerencial_gsan + 5432 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + GSAN_GERENCIAL_CAERN_243 + 192.168.64.243 + POSTGRESQL + Native + gsan_gerencial_caern + 5432 + gsan_batch + Encrypted 2be98afc86aa7f2e4cb79ce72fe86acd2 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5432 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + oracle_procenge + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_gsan + 192.168.64.241 + ORACLE + Native + gsancaerd + 1521 + gsan_admin + Encrypted 2be98afc86aa7f2e4cb79ce71da9fa6d4 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_oracle + + ORACLE + JNDI + procenge_oracle + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + procenge_postegres + + POSTGRESQL + JNDI + procenge_postegres + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_JNDI + + VERTICA5 + JNDI + gerencial_gsan_vertica + 1521 + + Encrypted + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER1521 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + VERTICA_PENTAHO + 192.168.64.236 + VERTICA5 + Native + pentaho + 5433 + dbadmin + Encrypted 2be98afc86aa7f2e4cb10be71dac3ff90 + + + + + FORCE_IDENTIFIERS_TO_LOWERCASEN + FORCE_IDENTIFIERS_TO_UPPERCASEN + IS_CLUSTEREDN + PORT_NUMBER5433 + PRESERVE_RESERVED_WORD_CASEN + QUOTE_ALL_FIELDSN + SUPPORTS_BOOLEAN_DATA_TYPEY + SUPPORTS_TIMESTAMP_DATA_TYPEY + USE_POOLINGN + + + + stage_pagamento_paghistSelect valuesY + Select valuesstage_paghistY + + + Select values + SelectValues + + Y + + 1 + + none + + + N + pgmt_amreferenciaarrecadacao + pgmt_amreferenciaarrecadacao + None + 15 + 0 + + false + + + false + + + + + + imov_id + imov_id + Integer + 15 + 0 + + false + + + false + + + + + + clie_id + clie_id + Integer + 15 + 0 + + false + + + false + + + + + + pgmt_id + pgmt_id + Integer + 15 + 0 + + false + + + false + + + + + + pgmt_dtpagamento + pgmt_dtpagamento + Timestamp + 6 + -2 + + false + + + false + + + + + + anomes_pagamento + anomes_pagamento + Integer + 9 + 0 + + false + + + false + + + + + + avbc_id + avbc_id + Integer + 15 + 0 + + false + + + false + + + + + + pgst_idatual + pgst_idatual + Integer + 15 + 0 + + false + + + false + + + + + + dotp_id + dotp_id + Integer + 15 + 0 + + false + + + false + + + + + + arfm_id + arfm_id + Integer + 15 + 0 + + false + + + false + + + + + + cnta_id + cnta_id + Integer + 15 + 0 + + false + + + false + + + + + + gpag_id + gpag_id + Integer + 15 + 0 + + false + + + false + + + + + + dbac_id + dbac_id + Integer + 15 + 0 + + false + + + false + + + + + + last_id + last_id + Integer + 15 + 0 + + false + + + false + + + + + + lest_id + lest_id + Integer + 15 + 0 + + false + + + false + + + + + + iper_id + iper_id + Integer + 15 + 0 + + false + + + false + + + + + + loca_id + loca_id + Integer + 15 + 0 + + false + + + false + + + + + + qdra_id + qdra_id + Integer + 15 + 0 + + false + + + false + + + + + + cnta_nnquadra + cnta_nnquadra + Integer + 15 + 0 + + false + + + false + + + + + + cnta_vlagua + cnta_vlagua + Number + 15 + 2 + + false + + + false + + + + + + cnta_vlesgoto + cnta_vlesgoto + Number + 15 + 2 + + false + + + false + + + + + + cnta_vlimpostos + cnta_vlimpostos + Number + 15 + 2 + + false + + + false + + + + + + cnta_vldebitos + cnta_vldebitos + Number + 15 + 2 + + false + + + false + + + + + + cnta_vlcreditos + cnta_vlcreditos + Number + 15 + 2 + + false + + + false + + + + + + cnta_amreferenciaconta + cnta_amreferenciaconta + Integer + 15 + 0 + + false + + + false + + + + + + cnta_dtvencimentoconta + cnta_dtvencimentoconta + Timestamp + 6 + -2 + + false + + + false + + + + + + anomes_vencimento + anomes_vencimento + Integer + 9 + 0 + + false + + + false + + + + + + lapf_id + lapf_id + Integer + 15 + 0 + + false + + + false + + + + + + lepf_id + lepf_id + Integer + 15 + 0 + + false + + + false + + + + + + hidi_id + hidi_id + Integer + 15 + 0 + + false + + + false + + + + + + catg_id + catg_id + Integer + 15 + 0 + + false + + + false + + + + + + scat_id + scat_id + Integer + 15 + 0 + + false + + + false + + + + + + pgmt_vlpagamento + pgmt_vlpagamento + Number + 15 + 2 + + false + + + false + + + + + + gpag_dtvencimento + gpag_dtvencimento + Timestamp + 6 + -2 + + false + + + false + + + + + + gpag_amreferenciacontabil + gpag_amreferenciacontabil + Integer + 15 + 0 + + false + + + false + + + + + + fntp_id + fntp_id + Integer + 15 + 0 + + false + + + false + + + + + + + + 240 + 64 + Y + + + + + stage_pagamento_paghist + TableInput + + Y + + 1 + + none + + + comercial_gsan + -------Garar stage_paghist-- -------CAGEPA--------------- -------Versão 28/12/15------ select pgmt_amreferenciaarrecadacao, pg.imov_id, pg.clie_id, pgmt_id, pgmt_dtpagamento, cast((substr(cast(pgmt_dtpagamento as char(4)),1,4)||substr(cast(pgmt_dtpagamento as char(7)),6,2)) as integer ) as anomes_pagamento, pg.avbc_id, pg.pgst_idatual, pg.dotp_id, pg.arfm_id, pg.cnta_id, pg.gpag_id, pg.dbac_id, coalesce(ct.last_id,0) as last_id, coalesce(ct.lest_id,0) as lest_id, coalesce(ct.iper_id,0) as iper_id, coalesce(ct.loca_id,0) as loca_id, coalesce(ct.qdra_id,0) as qdra_id, coalesce(ct.cnta_nnquadra) as cnta_nnquadra, coalesce(cnta_vlagua,0) as cnta_vlagua, coalesce(cnta_vlesgoto,0) as cnta_vlesgoto, coalesce(cnta_vlimpostos,0) as cnta_vlimpostos, coalesce(cnta_vldebitos,0) as cnta_vldebitos, coalesce(cnta_vlcreditos,0) as cnta_vlcreditos, cnta_amreferenciaconta, cnta_dtvencimentoconta, cast((substr(cast(cnta_dtvencimentoconta as char(4)),1,4)||substr(cast(cnta_dtvencimentoconta as char(7)),6,2)) as integer ) as anomes_vencimento, coalesce(lapf_id,0) as lapf_id, coalesce(lepf_id,0) as lepf_id, la.hidi_id, (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = pg.imov_id order by imsb_qteconomia desc limit 1) as catg_id, (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = pg.imov_id order by imsb_qteconomia desc limit 1) as scat_id, Case when pg.gpag_id is not null then coalesce(gppr_vlprestacao) else coalesce(pgmt_vlpagamento,0) end as pgmt_vlpagamento, gppr_dtvencimento as gpag_dtvencimento, gppr_amreferenciafaturamento as gpag_amreferenciacontabil, gppr.fntp_id, gppr.lict_id from gsan_admin.pagamento pg INNER JOIN gsan_admin.sistema_parametros on 1 = 1 LEFT JOIN gsan_admin.imovel im on im.imov_id = pg.imov_id LEFT JOIN gsan_admin.conta ct on ct.cnta_id = pg.cnta_id LEFT JOIN gsan_admin.ligacao_agua la on la.lagu_id = ct.imov_id LEFT JOIN gsan_admin.ligacao_esgoto le on le.lesg_id = ct.imov_id LEFT JOIN gsan_admin.guia_pagamento_prestacao gppr on gppr.gpag_id = pg.gpag_id and gppr_icpagamento=1 and gppr_nnprestacao=pgmt_nnprestacao and gppr_vlprestacao > 0 where pgmt_amreferenciaarrecadacao = parm_amreferenciaarrecadacao --------- UNION ALL --- UNIR OS PAGAMENTOS DAS TABELAS PAGAMENTO E PAGAMENTO_HISTORICO --------- select pghi_amreferenciaarrecadacao, ph.imov_id, ph.clie_id, pghi_id, pghi_dtpagamento, cast((substr(cast(pghi_dtpagamento as char(4)),1,4)||substr(cast(pghi_dtpagamento as char(7)),6,2)) as integer ) as anomes_pagamento, ph.avbc_id, ph.pgst_idatual, ph.dotp_id, ph.arfm_id, ph.cnta_id, ph.gpag_id, ph.dbac_id, coalesce(ch.last_id,0) as last_id, coalesce(ch.lest_id,0) as lest_id, coalesce(ch.iper_id,0) as iper_id, coalesce(ch.loca_id,0) as loca_id, coalesce(ch.qdra_id,0) as qdra_id, coalesce(ch.cnhi_nnquadra) as cnhi_nnquadra, coalesce(cnhi_vlagua,0) as cnhi_vlagua, coalesce(cnhi_vlesgoto,0) as cnhi_vlesgoto, coalesce(cnhi_vlimpostos,0) as cnhi_vlimpostos, coalesce(cnhi_vldebitos,0) as cnta_vldebitos, coalesce(cnhi_vlcreditos,0) as cnta_vlcreditos, cnhi_amreferenciaconta, cnhi_dtvencimentoconta, cast((substr(cast(cnhi_dtvencimentoconta as char(4)),1,4)||substr(cast(cnhi_dtvencimentoconta as char(7)),6,2)) as integer ) as anomes_vencimento, coalesce(lapf_id,0) as lapg_id, coalesce(lepf_id,0) as lepf_id, la.hidi_id, (select catg_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = ph.imov_id order by imsb_qteconomia desc limit 1) as catg_id, (select scat_id from gsan_admin.imovel_subcategoria cat where cat.imov_id = ph.imov_id order by imsb_qteconomia desc limit 1) as scat_id, Case when ph.gpag_id is not null then coalesce(gpph_vlprestacao) else coalesce(pghi_vlpagamento,0) end as pgmt_vlpagamento, gpph_dtvencimento as gpag_dtvencimento, gpph_amreferenciafaturamento as gpag_amreferenciacontabil, gpph.fntp_id, gpph.lict_id from gsan_admin.pagamento_historico ph INNER JOIN gsan_admin.sistema_parametros on 1 = 1 LEFT JOIN gsan_admin.imovel im on im.imov_id = ph.imov_id LEFT JOIN gsan_admin.conta_historico ch on ch.cnta_id = ph.cnta_id LEFT JOIN gsan_admin.ligacao_agua la on la.lagu_id = ch.imov_id LEFT JOIN gsan_admin.ligacao_esgoto le on le.lesg_id = ch.imov_id LEFT JOIN gsan_admin.guia_pagamento_prestacao_hist gpph on gpph.gpag_id = ph.gpag_id and gpph_icpagamento=1 and gpph_nnprestacao=pghi_nnprestacao and gpph_vlprestacao > 0 where pghi_amreferenciaarrecadacao = parm_amreferenciaarrecadacao -----------------------FIM DO SQL--------------------------------- + 0 + + N + N + N + + + 112 + 64 + Y + + + + + stage_paghist + TableOutput + + Y + + 1 + + none + + + comercial_gsan + gsan_admin +
stage_paghist
+ 1000 + Y + N + Y + N + N + + N + Y + N + + Y + N + + + + + + 352 + 64 + Y + + + + + + + + N + +
diff --git a/gerencial_pentaho-master/PSW/cagepa_acao_cobranca.xml b/gerencial_pentaho-master/PSW/cagepa_acao_cobranca.xml new file mode 100644 index 0000000..78b7048 --- /dev/null +++ b/gerencial_pentaho-master/PSW/cagepa_acao_cobranca.xml @@ -0,0 +1,248 @@ + + + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + + + +
+
+ + + +
+ + + + + + +
+
+ + + + + + + + + + + + + + +
+
diff --git a/gerencial_pentaho-master/PSW/cagepa_resumosgerenciais.xml b/gerencial_pentaho-master/PSW/cagepa_resumosgerenciais.xml new file mode 100644 index 0000000..e86987d --- /dev/null +++ b/gerencial_pentaho-master/PSW/cagepa_resumosgerenciais.xml @@ -0,0 +1,2662 @@ + + + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + + + + + +
+ + +
+ + + +
+ + + + + + + + + + + + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + + + +
+
+ + + +
+ + + + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + +
+ + +
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/gerencial_pentaho-master/README.md b/gerencial_pentaho-master/README.md new file mode 100644 index 0000000..6c81544 --- /dev/null +++ b/gerencial_pentaho-master/README.md @@ -0,0 +1,2 @@ +Ktr e XML Pentaho +https://github.com/consensotec?tab=repositories diff --git a/gsanas-master/.gitignore b/gsanas-master/.gitignore new file mode 100644 index 0000000..db2b0fa --- /dev/null +++ b/gsanas-master/.gitignore @@ -0,0 +1,3 @@ +.settings/ +bin/ +gen/ \ No newline at end of file diff --git a/gsanas-master/AndroidManifest.xml b/gsanas-master/AndroidManifest.xml new file mode 100644 index 0000000..4ce38d9 --- /dev/null +++ b/gsanas-master/AndroidManifest.xml @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gsanas-master/README.md b/gsanas-master/README.md new file mode 100644 index 0000000..cbba17b --- /dev/null +++ b/gsanas-master/README.md @@ -0,0 +1,2 @@ +Aplicativo Android de Acompanhamento de Serviço +https://github.com/consensotec?tab=repositories diff --git a/gsanas-master/res/drawable-hdpi/add.png b/gsanas-master/res/drawable-hdpi/add.png new file mode 100644 index 0000000..dc2e229 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/add.png differ diff --git a/gsanas-master/res/drawable-hdpi/addresstitle.png b/gsanas-master/res/drawable-hdpi/addresstitle.png new file mode 100644 index 0000000..6bae70d Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/addresstitle.png differ diff --git a/gsanas-master/res/drawable-hdpi/afterprograming.png b/gsanas-master/res/drawable-hdpi/afterprograming.png new file mode 100644 index 0000000..670c603 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/afterprograming.png differ diff --git a/gsanas-master/res/drawable-hdpi/bar.png b/gsanas-master/res/drawable-hdpi/bar.png new file mode 100644 index 0000000..346edd0 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/bar.png differ diff --git a/gsanas-master/res/drawable-hdpi/begin_icon.png b/gsanas-master/res/drawable-hdpi/begin_icon.png new file mode 100644 index 0000000..5e22de9 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/begin_icon.png differ diff --git a/gsanas-master/res/drawable-hdpi/bottonlogin.png b/gsanas-master/res/drawable-hdpi/bottonlogin.png new file mode 100644 index 0000000..79a6963 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/bottonlogin.png differ diff --git a/gsanas-master/res/drawable-hdpi/buttonlogin.png b/gsanas-master/res/drawable-hdpi/buttonlogin.png new file mode 100644 index 0000000..0dcd166 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/buttonlogin.png differ diff --git a/gsanas-master/res/drawable-hdpi/done.png b/gsanas-master/res/drawable-hdpi/done.png new file mode 100644 index 0000000..b853ffa Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/done.png differ diff --git a/gsanas-master/res/drawable-hdpi/during_icon.png b/gsanas-master/res/drawable-hdpi/during_icon.png new file mode 100644 index 0000000..9a058e6 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/during_icon.png differ diff --git a/gsanas-master/res/drawable-hdpi/edit.png b/gsanas-master/res/drawable-hdpi/edit.png new file mode 100644 index 0000000..d04a356 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/edit.png differ diff --git a/gsanas-master/res/drawable-hdpi/end_icon.png b/gsanas-master/res/drawable-hdpi/end_icon.png new file mode 100644 index 0000000..f41036a Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/end_icon.png differ diff --git a/gsanas-master/res/drawable-hdpi/execution.png b/gsanas-master/res/drawable-hdpi/execution.png new file mode 100644 index 0000000..8da3581 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/execution.png differ diff --git a/gsanas-master/res/drawable-hdpi/foundmaterial_title.png b/gsanas-master/res/drawable-hdpi/foundmaterial_title.png new file mode 100644 index 0000000..67f7a9b Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/foundmaterial_title.png differ diff --git a/gsanas-master/res/drawable-hdpi/gsan.png b/gsanas-master/res/drawable-hdpi/gsan.png new file mode 100644 index 0000000..8c8a45d Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/gsan.png differ diff --git a/gsanas-master/res/drawable-hdpi/hydrometertitle.png b/gsanas-master/res/drawable-hdpi/hydrometertitle.png new file mode 100644 index 0000000..2dd4224 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/hydrometertitle.png differ diff --git a/gsanas-master/res/drawable-hdpi/icon.png b/gsanas-master/res/drawable-hdpi/icon.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/icon.png differ diff --git a/gsanas-master/res/drawable-hdpi/icon_history.png b/gsanas-master/res/drawable-hdpi/icon_history.png new file mode 100644 index 0000000..26d30b1 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/icon_history.png differ diff --git a/gsanas-master/res/drawable-hdpi/icon_history_small.png b/gsanas-master/res/drawable-hdpi/icon_history_small.png new file mode 100644 index 0000000..f0abaec Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/icon_history_small.png differ diff --git a/gsanas-master/res/drawable-hdpi/infotitle.png b/gsanas-master/res/drawable-hdpi/infotitle.png new file mode 100644 index 0000000..e8bd727 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/infotitle.png differ diff --git a/gsanas-master/res/drawable-hdpi/login_button.xml b/gsanas-master/res/drawable-hdpi/login_button.xml new file mode 100644 index 0000000..c5665cc --- /dev/null +++ b/gsanas-master/res/drawable-hdpi/login_button.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gsanas-master/res/drawable-hdpi/message_gray.png b/gsanas-master/res/drawable-hdpi/message_gray.png new file mode 100644 index 0000000..ad815d6 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/message_gray.png differ diff --git a/gsanas-master/res/drawable-hdpi/notexecutedicon.png b/gsanas-master/res/drawable-hdpi/notexecutedicon.png new file mode 100644 index 0000000..2cbe2fc Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/notexecutedicon.png differ diff --git a/gsanas-master/res/drawable-hdpi/pause.png b/gsanas-master/res/drawable-hdpi/pause.png new file mode 100644 index 0000000..e987998 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/pause.png differ diff --git a/gsanas-master/res/drawable-hdpi/reasontitle.png b/gsanas-master/res/drawable-hdpi/reasontitle.png new file mode 100644 index 0000000..9d1a0ac Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/reasontitle.png differ diff --git a/gsanas-master/res/drawable-hdpi/start.png b/gsanas-master/res/drawable-hdpi/start.png new file mode 100644 index 0000000..a9b65d9 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/start.png differ diff --git a/gsanas-master/res/drawable-hdpi/title.psd b/gsanas-master/res/drawable-hdpi/title.psd new file mode 100644 index 0000000..afb7326 Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/title.psd differ diff --git a/gsanas-master/res/drawable-hdpi/tostart.png b/gsanas-master/res/drawable-hdpi/tostart.png new file mode 100644 index 0000000..25dd9ff Binary files /dev/null and b/gsanas-master/res/drawable-hdpi/tostart.png differ diff --git a/gsanas-master/res/drawable-ldpi/add.png b/gsanas-master/res/drawable-ldpi/add.png new file mode 100644 index 0000000..dc2e229 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/add.png differ diff --git a/gsanas-master/res/drawable-ldpi/addresstitle.png b/gsanas-master/res/drawable-ldpi/addresstitle.png new file mode 100644 index 0000000..6bae70d Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/addresstitle.png differ diff --git a/gsanas-master/res/drawable-ldpi/afterprograming.png b/gsanas-master/res/drawable-ldpi/afterprograming.png new file mode 100644 index 0000000..670c603 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/afterprograming.png differ diff --git a/gsanas-master/res/drawable-ldpi/bar.png b/gsanas-master/res/drawable-ldpi/bar.png new file mode 100644 index 0000000..346edd0 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/bar.png differ diff --git a/gsanas-master/res/drawable-ldpi/begin_icon.png b/gsanas-master/res/drawable-ldpi/begin_icon.png new file mode 100644 index 0000000..5e22de9 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/begin_icon.png differ diff --git a/gsanas-master/res/drawable-ldpi/bottonlogin.png b/gsanas-master/res/drawable-ldpi/bottonlogin.png new file mode 100644 index 0000000..79a6963 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/bottonlogin.png differ diff --git a/gsanas-master/res/drawable-ldpi/buttonlogin.png b/gsanas-master/res/drawable-ldpi/buttonlogin.png new file mode 100644 index 0000000..0dcd166 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/buttonlogin.png differ diff --git a/gsanas-master/res/drawable-ldpi/done.png b/gsanas-master/res/drawable-ldpi/done.png new file mode 100644 index 0000000..b853ffa Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/done.png differ diff --git a/gsanas-master/res/drawable-ldpi/during_icon.png b/gsanas-master/res/drawable-ldpi/during_icon.png new file mode 100644 index 0000000..9a058e6 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/during_icon.png differ diff --git a/gsanas-master/res/drawable-ldpi/edit.png b/gsanas-master/res/drawable-ldpi/edit.png new file mode 100644 index 0000000..d04a356 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/edit.png differ diff --git a/gsanas-master/res/drawable-ldpi/end_icon.png b/gsanas-master/res/drawable-ldpi/end_icon.png new file mode 100644 index 0000000..f41036a Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/end_icon.png differ diff --git a/gsanas-master/res/drawable-ldpi/execution.png b/gsanas-master/res/drawable-ldpi/execution.png new file mode 100644 index 0000000..8da3581 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/execution.png differ diff --git a/gsanas-master/res/drawable-ldpi/foundmaterial_title.png b/gsanas-master/res/drawable-ldpi/foundmaterial_title.png new file mode 100644 index 0000000..67f7a9b Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/foundmaterial_title.png differ diff --git a/gsanas-master/res/drawable-ldpi/gsan.png b/gsanas-master/res/drawable-ldpi/gsan.png new file mode 100644 index 0000000..8c8a45d Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/gsan.png differ diff --git a/gsanas-master/res/drawable-ldpi/hydrometertitle.png b/gsanas-master/res/drawable-ldpi/hydrometertitle.png new file mode 100644 index 0000000..2dd4224 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/hydrometertitle.png differ diff --git a/gsanas-master/res/drawable-ldpi/icon.png b/gsanas-master/res/drawable-ldpi/icon.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/icon.png differ diff --git a/gsanas-master/res/drawable-ldpi/icon_history.png b/gsanas-master/res/drawable-ldpi/icon_history.png new file mode 100644 index 0000000..26d30b1 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/icon_history.png differ diff --git a/gsanas-master/res/drawable-ldpi/icon_messages.png b/gsanas-master/res/drawable-ldpi/icon_messages.png new file mode 100644 index 0000000..9f414f6 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/icon_messages.png differ diff --git a/gsanas-master/res/drawable-ldpi/icon_photos.png b/gsanas-master/res/drawable-ldpi/icon_photos.png new file mode 100644 index 0000000..3d4ad74 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/icon_photos.png differ diff --git a/gsanas-master/res/drawable-ldpi/line.png b/gsanas-master/res/drawable-ldpi/line.png new file mode 100644 index 0000000..8918776 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/line.png differ diff --git a/gsanas-master/res/drawable-ldpi/materialtitle.png b/gsanas-master/res/drawable-ldpi/materialtitle.png new file mode 100644 index 0000000..31e2916 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/materialtitle.png differ diff --git a/gsanas-master/res/drawable-ldpi/message_gray.png b/gsanas-master/res/drawable-ldpi/message_gray.png new file mode 100644 index 0000000..ad815d6 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/message_gray.png differ diff --git a/gsanas-master/res/drawable-ldpi/notexecutedicon.png b/gsanas-master/res/drawable-ldpi/notexecutedicon.png new file mode 100644 index 0000000..2cbe2fc Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/notexecutedicon.png differ diff --git a/gsanas-master/res/drawable-ldpi/offline.png b/gsanas-master/res/drawable-ldpi/offline.png new file mode 100644 index 0000000..309a112 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/offline.png differ diff --git a/gsanas-master/res/drawable-ldpi/pending.png b/gsanas-master/res/drawable-ldpi/pending.png new file mode 100644 index 0000000..cd5137e Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/pending.png differ diff --git a/gsanas-master/res/drawable-ldpi/servicetitle.png b/gsanas-master/res/drawable-ldpi/servicetitle.png new file mode 100644 index 0000000..3c3f961 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/servicetitle.png differ diff --git a/gsanas-master/res/drawable-ldpi/start.png b/gsanas-master/res/drawable-ldpi/start.png new file mode 100644 index 0000000..a9b65d9 Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/start.png differ diff --git a/gsanas-master/res/drawable-ldpi/started.png b/gsanas-master/res/drawable-ldpi/started.png new file mode 100644 index 0000000..9619c4e Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/started.png differ diff --git a/gsanas-master/res/drawable-ldpi/toplogin.png b/gsanas-master/res/drawable-ldpi/toplogin.png new file mode 100644 index 0000000..6b957de Binary files /dev/null and b/gsanas-master/res/drawable-ldpi/toplogin.png differ diff --git a/gsanas-master/res/drawable-mdpi/add.png b/gsanas-master/res/drawable-mdpi/add.png new file mode 100644 index 0000000..dc2e229 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/add.png differ diff --git a/gsanas-master/res/drawable-mdpi/addresstitle.png b/gsanas-master/res/drawable-mdpi/addresstitle.png new file mode 100644 index 0000000..6bae70d Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/addresstitle.png differ diff --git a/gsanas-master/res/drawable-mdpi/afterprograming.png b/gsanas-master/res/drawable-mdpi/afterprograming.png new file mode 100644 index 0000000..670c603 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/afterprograming.png differ diff --git a/gsanas-master/res/drawable-mdpi/bar.png b/gsanas-master/res/drawable-mdpi/bar.png new file mode 100644 index 0000000..346edd0 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/bar.png differ diff --git a/gsanas-master/res/drawable-mdpi/begin_icon.png b/gsanas-master/res/drawable-mdpi/begin_icon.png new file mode 100644 index 0000000..5e22de9 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/begin_icon.png differ diff --git a/gsanas-master/res/drawable-mdpi/bottonlogin.png b/gsanas-master/res/drawable-mdpi/bottonlogin.png new file mode 100644 index 0000000..79a6963 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/bottonlogin.png differ diff --git a/gsanas-master/res/drawable-mdpi/buttonlogin.png b/gsanas-master/res/drawable-mdpi/buttonlogin.png new file mode 100644 index 0000000..0dcd166 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/buttonlogin.png differ diff --git a/gsanas-master/res/drawable-mdpi/done.png b/gsanas-master/res/drawable-mdpi/done.png new file mode 100644 index 0000000..b853ffa Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/done.png differ diff --git a/gsanas-master/res/drawable-mdpi/during_icon.png b/gsanas-master/res/drawable-mdpi/during_icon.png new file mode 100644 index 0000000..9a058e6 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/during_icon.png differ diff --git a/gsanas-master/res/drawable-mdpi/edit.png b/gsanas-master/res/drawable-mdpi/edit.png new file mode 100644 index 0000000..d04a356 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/edit.png differ diff --git a/gsanas-master/res/drawable-mdpi/end_icon.png b/gsanas-master/res/drawable-mdpi/end_icon.png new file mode 100644 index 0000000..f41036a Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/end_icon.png differ diff --git a/gsanas-master/res/drawable-mdpi/eviaarquivoicon.png b/gsanas-master/res/drawable-mdpi/eviaarquivoicon.png new file mode 100644 index 0000000..25a255f Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/eviaarquivoicon.png differ diff --git a/gsanas-master/res/drawable-mdpi/execution.png b/gsanas-master/res/drawable-mdpi/execution.png new file mode 100644 index 0000000..8da3581 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/execution.png differ diff --git a/gsanas-master/res/drawable-mdpi/foundmaterial_title.png b/gsanas-master/res/drawable-mdpi/foundmaterial_title.png new file mode 100644 index 0000000..67f7a9b Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/foundmaterial_title.png differ diff --git a/gsanas-master/res/drawable-mdpi/gsan.png b/gsanas-master/res/drawable-mdpi/gsan.png new file mode 100644 index 0000000..8c8a45d Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/gsan.png differ diff --git a/gsanas-master/res/drawable-mdpi/hydrometertitle.png b/gsanas-master/res/drawable-mdpi/hydrometertitle.png new file mode 100644 index 0000000..2dd4224 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/hydrometertitle.png differ diff --git a/gsanas-master/res/drawable-mdpi/icon.png b/gsanas-master/res/drawable-mdpi/icon.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/icon.png differ diff --git a/gsanas-master/res/drawable-mdpi/icon_history.png b/gsanas-master/res/drawable-mdpi/icon_history.png new file mode 100644 index 0000000..26d30b1 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/icon_history.png differ diff --git a/gsanas-master/res/drawable-mdpi/icon_history_small.png b/gsanas-master/res/drawable-mdpi/icon_history_small.png new file mode 100644 index 0000000..f0abaec Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/icon_history_small.png differ diff --git a/gsanas-master/res/drawable-mdpi/icon_messages.png b/gsanas-master/res/drawable-mdpi/icon_messages.png new file mode 100644 index 0000000..9f414f6 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/icon_messages.png differ diff --git a/gsanas-master/res/drawable-mdpi/icon_photos.png b/gsanas-master/res/drawable-mdpi/icon_photos.png new file mode 100644 index 0000000..3d4ad74 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/icon_photos.png differ diff --git a/gsanas-master/res/drawable-mdpi/icon_reason.png b/gsanas-master/res/drawable-mdpi/icon_reason.png new file mode 100644 index 0000000..f43c93b Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/icon_reason.png differ diff --git a/gsanas-master/res/drawable-mdpi/infotitle.png b/gsanas-master/res/drawable-mdpi/infotitle.png new file mode 100644 index 0000000..e8bd727 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/infotitle.png differ diff --git a/gsanas-master/res/drawable-mdpi/materialtitle.png b/gsanas-master/res/drawable-mdpi/materialtitle.png new file mode 100644 index 0000000..31e2916 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/materialtitle.png differ diff --git a/gsanas-master/res/drawable-mdpi/message_yellow.png b/gsanas-master/res/drawable-mdpi/message_yellow.png new file mode 100644 index 0000000..0e2eb5e Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/message_yellow.png differ diff --git a/gsanas-master/res/drawable-mdpi/reasontitle.png b/gsanas-master/res/drawable-mdpi/reasontitle.png new file mode 100644 index 0000000..9d1a0ac Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/reasontitle.png differ diff --git a/gsanas-master/res/drawable-mdpi/search.png b/gsanas-master/res/drawable-mdpi/search.png new file mode 100644 index 0000000..2f801a0 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/search.png differ diff --git a/gsanas-master/res/drawable-mdpi/start.png b/gsanas-master/res/drawable-mdpi/start.png new file mode 100644 index 0000000..a9b65d9 Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/start.png differ diff --git a/gsanas-master/res/drawable-mdpi/toplogin.png b/gsanas-master/res/drawable-mdpi/toplogin.png new file mode 100644 index 0000000..6b957de Binary files /dev/null and b/gsanas-master/res/drawable-mdpi/toplogin.png differ diff --git a/gsanas-master/res/drawable/login_button.xml b/gsanas-master/res/drawable/login_button.xml new file mode 100644 index 0000000..c5665cc --- /dev/null +++ b/gsanas-master/res/drawable/login_button.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gsanas-master/res/drawable/myprogress.xml b/gsanas-master/res/drawable/myprogress.xml new file mode 100644 index 0000000..ee9bac7 --- /dev/null +++ b/gsanas-master/res/drawable/myprogress.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + diff --git a/gsanas-master/res/layout/autocomplete_list.xml b/gsanas-master/res/layout/autocomplete_list.xml new file mode 100644 index 0000000..513a7f4 --- /dev/null +++ b/gsanas-master/res/layout/autocomplete_list.xml @@ -0,0 +1,8 @@ + + + \ No newline at end of file diff --git a/gsanas-master/res/layout/dados_rede_agua.xml b/gsanas-master/res/layout/dados_rede_agua.xml new file mode 100644 index 0000000..55c6859 --- /dev/null +++ b/gsanas-master/res/layout/dados_rede_agua.xml @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +