sticutils 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/Gemfile +6 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +43 -0
  7. data/Rakefile +2 -0
  8. data/app/models/intranet.rb +2 -0
  9. data/app/models/intranet/admin_log.rb +5 -0
  10. data/app/models/intranet/admin_module.rb +7 -0
  11. data/app/models/intranet/admin_param.rb +4 -0
  12. data/app/models/intranet/admin_profile.rb +10 -0
  13. data/app/models/intranet/admin_profile_allowedprofile.rb +4 -0
  14. data/app/models/intranet/admin_profile_module.rb +6 -0
  15. data/app/models/intranet/admin_profile_role.rb +6 -0
  16. data/app/models/intranet/admin_role.rb +7 -0
  17. data/app/models/intranet/admin_user.rb +15 -0
  18. data/app/models/intranet/aproc_anexomalote.rb +7 -0
  19. data/app/models/intranet/aproc_anotacaomanifestacao.rb +10 -0
  20. data/app/models/intranet/aproc_assuntodemanifestacao.rb +8 -0
  21. data/app/models/intranet/aproc_destino.rb +12 -0
  22. data/app/models/intranet/aproc_habilitacaomalote.rb +12 -0
  23. data/app/models/intranet/aproc_habilitacaomalote_tipoespecifico.rb +10 -0
  24. data/app/models/intranet/aproc_manifestacao.rb +21 -0
  25. data/app/models/intranet/aproc_movimentacaomanifestacao.rb +26 -0
  26. data/app/models/intranet/aproc_movimentaomanifestacao_anexo.rb +6 -0
  27. data/app/models/intranet/aproc_relacaomanifestacao.rb +8 -0
  28. data/app/models/intranet/aproc_tipomanifestacao.rb +13 -0
  29. data/app/models/intranet/aproc_viewhabilitacao.rb +3 -0
  30. data/app/models/intranet/concursos_remocao.rb +5 -0
  31. data/app/models/intranet/concursos_remocao_concorrencium.rb +8 -0
  32. data/app/models/intranet/concursos_remocao_disponibilidade.rb +6 -0
  33. data/app/models/intranet/concursos_remocao_inscricao.rb +10 -0
  34. data/app/models/intranet/concursos_remocao_opacaolotacao.rb +6 -0
  35. data/app/models/intranet/ferias_feria.rb +8 -0
  36. data/app/models/intranet/ferias_fracao.rb +7 -0
  37. data/app/models/intranet/ferias_registromudancafraco.rb +4 -0
  38. data/app/models/intranet/ferias_temp.rb +6 -0
  39. data/app/models/intranet/ferias_terco.rb +3 -0
  40. data/app/models/intranet/global_banco.rb +6 -0
  41. data/app/models/intranet/global_categoriatipoorgao.rb +6 -0
  42. data/app/models/intranet/global_categoriatipoorgao_tipoorgao.rb +6 -0
  43. data/app/models/intranet/global_cidade.rb +15 -0
  44. data/app/models/intranet/global_contabancarium.rb +8 -0
  45. data/app/models/intranet/global_contato.rb +7 -0
  46. data/app/models/intranet/global_endereco.rb +8 -0
  47. data/app/models/intranet/global_estado.rb +13 -0
  48. data/app/models/intranet/global_estadosvizinho.rb +6 -0
  49. data/app/models/intranet/global_feriado.rb +6 -0
  50. data/app/models/intranet/global_local.rb +5 -0
  51. data/app/models/intranet/global_orgao.rb +38 -0
  52. data/app/models/intranet/global_orgao_contato.rb +6 -0
  53. data/app/models/intranet/global_pai.rb +6 -0
  54. data/app/models/intranet/global_pessoafisica.rb +17 -0
  55. data/app/models/intranet/global_pessoafisica_contasbancaria.rb +6 -0
  56. data/app/models/intranet/global_pessoafisica_contato.rb +6 -0
  57. data/app/models/intranet/global_predio.rb +9 -0
  58. data/app/models/intranet/global_prepessoafisica.rb +12 -0
  59. data/app/models/intranet/global_prepessoafisica_contasbancaria.rb +6 -0
  60. data/app/models/intranet/global_prepessoafisica_contato.rb +6 -0
  61. data/app/models/intranet/global_regiao.rb +6 -0
  62. data/app/models/intranet/global_tipoorgao.rb +8 -0
  63. data/app/models/intranet/global_unidadeorganizacional.rb +13 -0
  64. data/app/models/intranet/intranet_record.rb +4 -0
  65. data/app/models/intranet/legislacao_documentocomprobatorio.rb +15 -0
  66. data/app/models/intranet/legislacao_norma.rb +7 -0
  67. data/app/models/intranet/pesquisas_opcao.rb +6 -0
  68. data/app/models/intranet/pesquisas_pesquisa.rb +6 -0
  69. data/app/models/intranet/pesquisas_pesquisa_categoriasenvolvida.rb +5 -0
  70. data/app/models/intranet/pesquisas_questao.rb +7 -0
  71. data/app/models/intranet/pesquisas_respostum.rb +7 -0
  72. data/app/models/intranet/presenca_calculodiario.rb +6 -0
  73. data/app/models/intranet/presenca_debitoremanscentenegociavel.rb +7 -0
  74. data/app/models/intranet/presenca_diaexcepcional.rb +6 -0
  75. data/app/models/intranet/presenca_direito.rb +8 -0
  76. data/app/models/intranet/presenca_estacao_predio.rb +6 -0
  77. data/app/models/intranet/presenca_estacaoponto.rb +8 -0
  78. data/app/models/intranet/presenca_frequentador.rb +17 -0
  79. data/app/models/intranet/presenca_historicotarefa.rb +3 -0
  80. data/app/models/intranet/presenca_regime.rb +7 -0
  81. data/app/models/intranet/presenca_regimefrequentador.rb +9 -0
  82. data/app/models/intranet/presenca_registroestacaoponto.rb +5 -0
  83. data/app/models/intranet/presenca_registrofrequencium.rb +9 -0
  84. data/app/models/intranet/presenca_registromensalfrequencium.rb +7 -0
  85. data/app/models/intranet/presenca_relatoriofrequenciafinal.rb +5 -0
  86. data/app/models/intranet/presenca_relatoriofrequentador.rb +6 -0
  87. data/app/models/intranet/presenca_valorretroativo.rb +5 -0
  88. data/app/models/intranet/presenca_versaoestacaoponto.rb +3 -0
  89. data/app/models/intranet/sistema_acessosistema.rb +7 -0
  90. data/app/models/intranet/sistema_situacaoperfil.rb +6 -0
  91. data/app/models/intranet/sistema_usuario.rb +32 -0
  92. data/app/models/intranet/temp_contrachequelegado_cpfs_errado.rb +4 -0
  93. data/app/models/intranet/temp_magistrado_gestorh.rb +3 -0
  94. data/app/models/intranet/templates_template.rb +4 -0
  95. data/app/models/intranet/tips_tip.rb +4 -0
  96. data/app/models/intranet/tjpi_areacarreira.rb +5 -0
  97. data/app/models/intranet/tjpi_areaestagio.rb +5 -0
  98. data/app/models/intranet/tjpi_campodeclaracaoprevinculado.rb +6 -0
  99. data/app/models/intranet/tjpi_cargo.rb +11 -0
  100. data/app/models/intranet/tjpi_cargo_embasamento.rb +6 -0
  101. data/app/models/intranet/tjpi_carreira.rb +10 -0
  102. data/app/models/intranet/tjpi_categoriavinculoconfig.rb +5 -0
  103. data/app/models/intranet/tjpi_comarca.rb +5 -0
  104. data/app/models/intranet/tjpi_contrachequeagrupado.rb +5 -0
  105. data/app/models/intranet/tjpi_contrachequelegado.rb +4 -0
  106. data/app/models/intranet/tjpi_contratocargotemporario.rb +5 -0
  107. data/app/models/intranet/tjpi_controlearquivocadastral.rb +5 -0
  108. data/app/models/intranet/tjpi_declaracaoprevinculado.rb +9 -0
  109. data/app/models/intranet/tjpi_diaexcepcional.rb +7 -0
  110. data/app/models/intranet/tjpi_exerciciofuncao.rb +9 -0
  111. data/app/models/intranet/tjpi_exerciciolotacao.rb +6 -0
  112. data/app/models/intranet/tjpi_frequencia_excepcional.rb +7 -0
  113. data/app/models/intranet/tjpi_funcao.rb +13 -0
  114. data/app/models/intranet/tjpi_funcao_embasamento.rb +6 -0
  115. data/app/models/intranet/tjpi_gestorexcepcional.rb +7 -0
  116. data/app/models/intranet/tjpi_grupofuncional.rb +6 -0
  117. data/app/models/intranet/tjpi_habilitacaovinculado.rb +7 -0
  118. data/app/models/intranet/tjpi_importacao_folha.rb +5 -0
  119. data/app/models/intranet/tjpi_migracaoformhash.rb +3 -0
  120. data/app/models/intranet/tjpi_nivelprogressao.rb +6 -0
  121. data/app/models/intranet/tjpi_nivelreferencium.rb +7 -0
  122. data/app/models/intranet/tjpi_opcaolotacao.rb +6 -0
  123. data/app/models/intranet/tjpi_orgaoopcaoselecao.rb +6 -0
  124. data/app/models/intranet/tjpi_pae.rb +3 -0
  125. data/app/models/intranet/tjpi_pae_magistrado.rb +6 -0
  126. data/app/models/intranet/tjpi_pae_magistrado_pensionistum.rb +5 -0
  127. data/app/models/intranet/tjpi_pae_memoriacalculo.rb +3 -0
  128. data/app/models/intranet/tjpi_pae_parametro.rb +3 -0
  129. data/app/models/intranet/tjpi_palavrareservada.rb +4 -0
  130. data/app/models/intranet/tjpi_predependente.rb +6 -0
  131. data/app/models/intranet/tjpi_previnculado.rb +17 -0
  132. data/app/models/intranet/tjpi_previnculado_anexo.rb +5 -0
  133. data/app/models/intranet/tjpi_previnculado_declaraco.rb +6 -0
  134. data/app/models/intranet/tjpi_previnculado_manifestaco.rb +7 -0
  135. data/app/models/intranet/tjpi_previnculadointervencao.rb +11 -0
  136. data/app/models/intranet/tjpi_previnculadopendencium.rb +7 -0
  137. data/app/models/intranet/tjpi_progressaocarreira.rb +6 -0
  138. data/app/models/intranet/tjpi_propagacaoemfolha.rb +4 -0
  139. data/app/models/intranet/tjpi_rh_arquivodeclarcaoirpf.rb +7 -0
  140. data/app/models/intranet/tjpi_rh_calculoprogressaonivel.rb +3 -0
  141. data/app/models/intranet/tjpi_rh_declaracaoirpf.rb +5 -0
  142. data/app/models/intranet/tjpi_rh_intervalo_diarium.rb +5 -0
  143. data/app/models/intranet/tjpi_rh_pae.rb +5 -0
  144. data/app/models/intranet/tjpi_rh_pae_pagamento.rb +5 -0
  145. data/app/models/intranet/tjpi_rh_pae_recebedore.rb +3 -0
  146. data/app/models/intranet/tjpi_rh_registro_diarium.rb +6 -0
  147. data/app/models/intranet/tjpi_selecaoarea.rb +5 -0
  148. data/app/models/intranet/tjpi_selecaopolo.rb +7 -0
  149. data/app/models/intranet/tjpi_selecaopoloarea.rb +8 -0
  150. data/app/models/intranet/tjpi_selecaovinculado.rb +6 -0
  151. data/app/models/intranet/tjpi_selecionado.rb +10 -0
  152. data/app/models/intranet/tjpi_tabelasubsidiovigente.rb +3 -0
  153. data/app/models/intranet/tjpi_terceirizacao_contrato.rb +7 -0
  154. data/app/models/intranet/tjpi_terceirizacao_empresa.rb +5 -0
  155. data/app/models/intranet/tjpi_terceirizacao_postodetrabalho.rb +7 -0
  156. data/app/models/intranet/tjpi_tipoatualizacaocadastral.rb +6 -0
  157. data/app/models/intranet/tjpi_tipoatualizacaocadastral_categoria.rb +5 -0
  158. data/app/models/intranet/tjpi_tipofuncao.rb +5 -0
  159. data/app/models/intranet/tjpi_unidadeorganizacionalfuncao.rb +8 -0
  160. data/app/models/intranet/tjpi_viewhabilitacaovinculado.rb +3 -0
  161. data/app/models/intranet/tjpi_vinculado.rb +13 -0
  162. data/app/models/intranet/tjpi_vinculadoemfolha.rb +4 -0
  163. data/app/models/intranet/tjpi_vinculo.rb +38 -0
  164. data/app/models/intranet/tjpi_vinculo_documento.rb +6 -0
  165. data/app/views/sticutils/_action_links.html.erb +30 -0
  166. data/app/views/sticutils/_form.html.erb +61 -0
  167. data/app/views/sticutils/_index.html.erb +68 -0
  168. data/app/views/sticutils/_list.html.erb +47 -0
  169. data/app/views/sticutils/_show.html.erb +80 -0
  170. data/bin/console +14 -0
  171. data/bin/setup +8 -0
  172. data/lib/sticutils.rb +6 -0
  173. data/lib/sticutils/engine.rb +5 -0
  174. data/lib/sticutils/version.rb +3 -0
  175. data/sticutils.gemspec +37 -0
  176. metadata +260 -0
@@ -0,0 +1,3 @@
1
+ class Intranet::PresencaHistoricotarefa < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_historicotarefa'
3
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::PresencaRegime < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_regime'
3
+
4
+ belongs_to :presenca_regime, :class_name => 'PresencaRegime', :foreign_key => :padrao_id
5
+ belongs_to :presenca_regime, :class_name => 'PresencaRegime', :foreign_key => :anterior_id
6
+ has_many :presenca_regimefrequentadors, :class_name => 'PresencaRegimefrequentador'
7
+ end
@@ -0,0 +1,9 @@
1
+ class Intranet::PresencaRegimefrequentador < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_regimefrequentador'
3
+
4
+ has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
5
+ has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
6
+ has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
7
+ belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
8
+ belongs_to :presenca_regime, :class_name => 'PresencaRegime', :foreign_key => :regime_id
9
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::PresencaRegistroestacaoponto < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_registroestacaoponto'
3
+
4
+ belongs_to :presenca_estacaoponto, :class_name => 'PresencaEstacaoponto', :foreign_key => :estacao_id
5
+ end
@@ -0,0 +1,9 @@
1
+ class Intranet::PresencaRegistrofrequencium < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_registrofrequencia'
3
+
4
+ belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
5
+ belongs_to :presenca_estacaoponto, :class_name => 'PresencaEstacaoponto', :foreign_key => :estacaoPonto_id
6
+ belongs_to :tjpi_previnculadointervencao, :class_name => 'TjpiPrevinculadointervencao', :foreign_key => :intervencao_id
7
+ belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
8
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :lotacaoEpoca_id
9
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::PresencaRegistromensalfrequencium < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_registromensalfrequencia'
3
+
4
+ has_many :presenca_calculodiarios, :class_name => 'PresencaCalculodiario'
5
+ has_many :presenca_debitoremanscentenegociavels, :class_name => 'PresencaDebitoremanscentenegociavel'
6
+ belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
7
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::PresencaRelatoriofrequenciafinal < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_relatoriofrequenciafinal'
3
+
4
+ has_many :presenca_relatoriofrequentadors, :class_name => 'PresencaRelatoriofrequentador'
5
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::PresencaRelatoriofrequentador < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_relatoriofrequentador'
3
+
4
+ belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
5
+ belongs_to :presenca_relatoriofrequenciafinal, :class_name => 'PresencaRelatoriofrequenciafinal', :foreign_key => :relatorioFrequenciaFinal_id
6
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::PresencaValorretroativo < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_valorretroativo'
3
+
4
+ belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
5
+ end
@@ -0,0 +1,3 @@
1
+ class Intranet::PresencaVersaoestacaoponto < Intranet::IntranetRecord
2
+ self.table_name = 'presenca_versaoestacaoponto'
3
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::SistemaAcessosistema < Intranet::IntranetRecord
2
+ self.table_name = 'sistema_acessosistema'
3
+
4
+ belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
5
+ belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculoDefinido_id
6
+ has_many :sistema_usuarios, :class_name => 'SistemaUsuario'
7
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::SistemaSituacaoperfil < Intranet::IntranetRecord
2
+ self.table_name = 'sistema_situacaoperfil'
3
+
4
+ belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
5
+ has_many :sistema_usuarios, :class_name => 'SistemaUsuario'
6
+ end
@@ -0,0 +1,32 @@
1
+ class Intranet::SistemaUsuario < Intranet::IntranetRecord
2
+ self.table_name = 'sistema_usuario'
3
+
4
+ has_many :aproc_anotacaomanifestacaos, :class_name => 'AprocAnotacaomanifestacao'
5
+ has_many :aproc_anotacaomanifestacaos, :class_name => 'AprocAnotacaomanifestacao'
6
+ has_many :aproc_anotacaomanifestacaos, :class_name => 'AprocAnotacaomanifestacao'
7
+ has_many :aproc_anotacaomanifestacaos, :class_name => 'AprocAnotacaomanifestacao'
8
+ has_many :aproc_habilitacaomalotes, :class_name => 'AprocHabilitacaomalote'
9
+ has_many :aproc_habilitacaomalotes, :class_name => 'AprocHabilitacaomalote'
10
+ has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
11
+ has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
12
+ has_many :concursos_remocao_inscricaos, :class_name => 'ConcursosRemocaoInscricao'
13
+ has_many :pesquisas_resposta, :class_name => 'PesquisasRespostum'
14
+ has_many :presenca_debitoremanscentenegociavels, :class_name => 'PresencaDebitoremanscentenegociavel'
15
+ has_many :presenca_diaexcepcionals, :class_name => 'PresencaDiaexcepcional'
16
+ has_many :presenca_direitos, :class_name => 'PresencaDireito'
17
+ has_many :presenca_estacaopontos, :class_name => 'PresencaEstacaoponto'
18
+ has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
19
+ has_many :sistema_acessosistemas, :class_name => 'SistemaAcessosistema'
20
+ has_many :sistema_situacaoperfils, :class_name => 'SistemaSituacaoperfil'
21
+ belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
22
+ belongs_to :sistema_acessosistema, :class_name => 'SistemaAcessosistema', :foreign_key => :ultimoAcesso_id
23
+ belongs_to :sistema_situacaoperfil, :class_name => 'SistemaSituacaoperfil', :foreign_key => :situacaoPerfil_id
24
+ belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :ultimoVinculoDefinido_id
25
+ has_many :tjpi_diaexcepcionals, :class_name => 'TjpiDiaexcepcional'
26
+ has_many :tjpi_frequencia_excepcionals, :class_name => 'TjpiFrequenciaExcepcional'
27
+ has_many :tjpi_habilitacaovinculados, :class_name => 'TjpiHabilitacaovinculado'
28
+ has_many :tjpi_importacao_folhas, :class_name => 'TjpiImportacaoFolha'
29
+ has_many :tjpi_previnculadopendencia, :class_name => 'TjpiPrevinculadopendencium'
30
+ has_many :tjpi_rh_arquivodeclarcaoirpfs, :class_name => 'TjpiRhArquivodeclarcaoirpf'
31
+ has_many :tjpi_rh_arquivodeclarcaoirpfs, :class_name => 'TjpiRhArquivodeclarcaoirpf'
32
+ end
@@ -0,0 +1,4 @@
1
+ class Intranet::TempContrachequelegadoCpfsErrado < Intranet::IntranetRecord
2
+ self.table_name = 'temp_contrachequelegado_cpfs_errados'
3
+ self.primary_key = :intContraChequeId
4
+ end
@@ -0,0 +1,3 @@
1
+ class Intranet::TempMagistradoGestorh < Intranet::IntranetRecord
2
+ self.table_name = 'temp_magistrado_gestorh'
3
+ end
@@ -0,0 +1,4 @@
1
+ class Intranet::TemplatesTemplate < Intranet::IntranetRecord
2
+ self.table_name = 'templates_template'
3
+ self.primary_key = :chave
4
+ end
@@ -0,0 +1,4 @@
1
+ class Intranet::TipsTip < Intranet::IntranetRecord
2
+ self.table_name = 'tips_tip'
3
+ self.primary_key = :keyWord
4
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiAreacarreira < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_areacarreira'
3
+
4
+ has_many :tjpi_carreiras, :class_name => 'TjpiCarreira'
5
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiAreaestagio < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_areaestagio'
3
+
4
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
5
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiCampodeclaracaoprevinculado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_campodeclaracaoprevinculado'
3
+
4
+ belongs_to :tjpi_declaracaoprevinculado, :class_name => 'TjpiDeclaracaoprevinculado', :foreign_key => :declaracao_id
5
+ belongs_to :tjpi_declaracaoprevinculado, :class_name => 'TjpiDeclaracaoprevinculado', :foreign_key => :declaracao_id
6
+ end
@@ -0,0 +1,11 @@
1
+ class Intranet::TjpiCargo < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_cargo'
3
+
4
+ has_many :concursos_remocao_concorrencia, :class_name => 'ConcursosRemocaoConcorrencium'
5
+ belongs_to :tjpi_carreira, :class_name => 'TjpiCarreira', :foreign_key => :carreira_id
6
+ belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :funcaoAtrelada_id
7
+ belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :lotacaoLegal_id
8
+ belongs_to :tjpi_cargo, :class_name => 'TjpiCargo', :foreign_key => :anterior_id
9
+ has_many :tjpi_cargo_embasamentos, :class_name => 'TjpiCargoEmbasamento'
10
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo', :foreign_key => :cargo_id
11
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiCargoEmbasamento < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_cargo_embasamento'
3
+
4
+ belongs_to :tjpi_cargo, :class_name => 'TjpiCargo', :foreign_key => :cargo_id
5
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :embasamento_id
6
+ end
@@ -0,0 +1,10 @@
1
+ class Intranet::TjpiCarreira < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_carreira'
3
+
4
+ has_many :tjpi_cargos, :class_name => 'TjpiCargo', foreign_key: :carreira_id
5
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :documentoComprobatorio_id
6
+ belongs_to :tjpi_areacarreira, :class_name => 'TjpiAreacarreira', :foreign_key => :areaCarreira_id
7
+ belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :lotacaoOriginal_id
8
+ belongs_to :tjpi_carreira, :class_name => 'TjpiCarreira', :foreign_key => :anterior_id
9
+ belongs_to :tjpi_grupofuncional, :class_name => 'TjpiGrupofuncional', :foreign_key => :grupoFuncional_id
10
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiCategoriavinculoconfig < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_categoriavinculoconfig'
3
+
4
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
5
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiComarca < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_comarca'
3
+
4
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
5
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiContrachequeagrupado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_contrachequeagrupado'
3
+
4
+ belongs_to :global_pessoafisica, class_name: "GlobalPessoafisica", foreign_key: "cpf", primary_key: "cpf"
5
+ end
@@ -0,0 +1,4 @@
1
+ class Intranet::TjpiContrachequelegado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_contrachequelegado'
3
+ self.primary_key = :intContraChequeId
4
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiContratocargotemporario < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_contratocargotemporario'
3
+
4
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
5
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiControlearquivocadastral < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_controlearquivocadastral'
3
+
4
+ belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :usuarioVisualizador_login
5
+ end
@@ -0,0 +1,9 @@
1
+ class Intranet::TjpiDeclaracaoprevinculado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_declaracaoprevinculado'
3
+
4
+ has_many :tjpi_campodeclaracaoprevinculados, :class_name => 'TjpiCampodeclaracaoprevinculado'
5
+ has_many :tjpi_campodeclaracaoprevinculados, :class_name => 'TjpiCampodeclaracaoprevinculado'
6
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :comprovante_id
7
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :comprovante_id
8
+ has_many :tjpi_previnculado_declaracoes, :class_name => 'TjpiPrevinculadoDeclaraco'
9
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::TjpiDiaexcepcional < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_diaexcepcional'
3
+
4
+ belongs_to :global_periodo, :class_name => 'GlobalPeriodo', :foreign_key => :periodo_id
5
+ belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :responsavel_id
6
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :setorAtingido_id
7
+ end
@@ -0,0 +1,9 @@
1
+ class Intranet::TjpiExerciciofuncao < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_exerciciofuncao'
3
+
4
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :documentoNomeacao_id
5
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :documentoExoneracao_id
6
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :origemFuncao_id
7
+ belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculo_id
8
+ belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :funcao_id
9
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiExerciciolotacao < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_exerciciolotacao'
3
+
4
+ belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculo_id
5
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
6
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::TjpiFrequenciaExcepcional < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_frequencia_excepcional'
3
+
4
+ belongs_to :global_periodo, :class_name => 'GlobalPeriodo', :foreign_key => :periodo_id
5
+ belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :responsavel_id
6
+ belongs_to :tjpi_frequentador, :class_name => 'TjpiFrequentador', :foreign_key => :frequentador_id
7
+ end
@@ -0,0 +1,13 @@
1
+ class Intranet::TjpiFuncao < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_funcao'
3
+
4
+ has_many :tjpi_cargos, :class_name => 'TjpiCargo', :foreign_key => :funcaoAtrelada_id
5
+ has_many :tjpi_exerciciofuncaos, :class_name => 'TjpiExerciciofuncao'
6
+ belongs_to :tjpi_tipofuncao, :class_name => 'TjpiTipofuncao', :foreign_key => :tipo_id
7
+ belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :anterior_id
8
+ belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :lotacaoLegal_id
9
+ has_many :tjpi_funcao_embasamentos, :class_name => 'TjpiFuncaoEmbasamento'
10
+ has_many :tjpi_unidadeorganizacionalfuncaos, :class_name => 'TjpiUnidadeorganizacionalfuncao'
11
+ has_many :tjpi_unidadeorganizacionalfuncaos, :class_name => 'TjpiUnidadeorganizacionalfuncao'
12
+ has_many :tjpi_vinculados, :class_name => 'TjpiVinculado'
13
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiFuncaoEmbasamento < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_funcao_embasamento'
3
+
4
+ belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :embasamento_id
5
+ belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :funcao_id
6
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::TjpiGestorexcepcional < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_gestorexcepcional'
3
+
4
+ belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
5
+ belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculo_id
6
+ has_many :tjpi_unidadeorganizacionalfuncaos, :class_name => 'TjpiUnidadeorganizacionalfuncao'
7
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiGrupofuncional < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_grupofuncional'
3
+
4
+ has_many :tjpi_carreiras, :class_name => 'TjpiCarreira', :foreign_key => :grupoFuncional_id
5
+ has_many :tjpi_nivelreferencia, :class_name => 'TjpiNivelreferencium'
6
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::TjpiHabilitacaovinculado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_habilitacaovinculado'
3
+
4
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgaoLotacaoPermitida_id
5
+ belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
6
+ belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :habilitador_id
7
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiImportacaoFolha < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_importacao_folha'
3
+
4
+ belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
5
+ end
@@ -0,0 +1,3 @@
1
+ class Intranet::TjpiMigracaoformhash < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_migracaoformhash'
3
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiNivelprogressao < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_nivelprogressao'
3
+
4
+ belongs_to :tjpi_nivelreferencium, :class_name => 'TjpiNivelreferencium', :foreign_key => :nivelReferencia_id
5
+ has_many :tjpi_progressaocarreiras, :class_name => 'TjpiProgressaocarreira'
6
+ end
@@ -0,0 +1,7 @@
1
+ class Intranet::TjpiNivelreferencium < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_nivelreferencia'
3
+
4
+ has_many :tjpi_nivelprogressaos, :class_name => 'TjpiNivelprogressao', :foreign_key => :nivelReferencia_id
5
+ belongs_to :tjpi_grupofuncional, :class_name => 'TjpiGrupofuncional', :foreign_key => :grupoFuncional_id
6
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
7
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiOpcaolotacao < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_opcaolotacao'
3
+
4
+ belongs_to :tjpi_selecionado, :class_name => 'TjpiSelecionado', :foreign_key => :selecionado_id
5
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
6
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiOrgaoopcaoselecao < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_orgaoopcaoselecao'
3
+
4
+ belongs_to :tjpi_selecaopolo, :class_name => 'TjpiSelecaopolo', :foreign_key => :selecaoPolo_id
5
+ belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
6
+ end
@@ -0,0 +1,3 @@
1
+ class Intranet::TjpiPae < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_pae'
3
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiPaeMagistrado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_pae_magistrado'
3
+ self.primary_key = :matricula
4
+
5
+ has_many :tjpi_pae_magistrado_pensionista, :class_name => 'TjpiPaeMagistradoPensionistum'
6
+ end
@@ -0,0 +1,5 @@
1
+ class Intranet::TjpiPaeMagistradoPensionistum < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_pae_magistrado_pensionista'
3
+
4
+ belongs_to :tjpi_pae_magistrado, :class_name => 'TjpiPaeMagistrado', :foreign_key => :matricula_instituidor
5
+ end
@@ -0,0 +1,3 @@
1
+ class Intranet::TjpiPaeMemoriacalculo < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_pae_memoriacalculo'
3
+ end
@@ -0,0 +1,3 @@
1
+ class Intranet::TjpiPaeParametro < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_pae_parametros'
3
+ end
@@ -0,0 +1,4 @@
1
+ class Intranet::TjpiPalavrareservada < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_palavrareservada'
3
+ self.primary_key = :label
4
+ end
@@ -0,0 +1,6 @@
1
+ class Intranet::TjpiPredependente < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_predependente'
3
+
4
+ belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :titular_id
5
+ belongs_to :global_prepessoafisica, :class_name => 'GlobalPrepessoafisica', :foreign_key => :prePessoaFisica_id
6
+ end
@@ -0,0 +1,17 @@
1
+ class Intranet::TjpiPrevinculado < Intranet::IntranetRecord
2
+ self.table_name = 'tjpi_previnculado'
3
+
4
+ has_many :tjpi_predependentes, :class_name => 'TjpiPredependente'
5
+ belongs_to :tjpi_previnculadointervencao, :class_name => 'TjpiPrevinculadointervencao', :foreign_key => :intervencao_id
6
+ belongs_to :tjpi_tipoatualizacaocadastral, :class_name => 'TjpiTipoatualizacaocadastral', :foreign_key => :tipoAtualizacaoAtual_id
7
+ belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculoPrincipal_id
8
+ belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
9
+ belongs_to :global_prepessoafisica, :class_name => 'GlobalPrepessoafisica', :foreign_key => :prePessoaFisica_id
10
+ has_many :tjpi_previnculado_declaracoes, :class_name => 'TjpiPrevinculadoDeclaraco'
11
+ has_many :tjpi_previnculado_manifestacoes, :class_name => 'TjpiPrevinculadoManifestaco'
12
+ has_many :tjpi_previnculadointervencaos, :class_name => 'TjpiPrevinculadointervencao'
13
+ has_many :tjpi_previnculadopendencia, :class_name => 'TjpiPrevinculadopendencium'
14
+ has_many :tjpi_previnculadopendencia, :class_name => 'TjpiPrevinculadopendencium'
15
+ has_many :tjpi_vinculados, :class_name => 'TjpiVinculado'
16
+ has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
17
+ end