sticutils 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +2 -0
- data/app/models/intranet.rb +2 -0
- data/app/models/intranet/admin_log.rb +5 -0
- data/app/models/intranet/admin_module.rb +7 -0
- data/app/models/intranet/admin_param.rb +4 -0
- data/app/models/intranet/admin_profile.rb +10 -0
- data/app/models/intranet/admin_profile_allowedprofile.rb +4 -0
- data/app/models/intranet/admin_profile_module.rb +6 -0
- data/app/models/intranet/admin_profile_role.rb +6 -0
- data/app/models/intranet/admin_role.rb +7 -0
- data/app/models/intranet/admin_user.rb +15 -0
- data/app/models/intranet/aproc_anexomalote.rb +7 -0
- data/app/models/intranet/aproc_anotacaomanifestacao.rb +10 -0
- data/app/models/intranet/aproc_assuntodemanifestacao.rb +8 -0
- data/app/models/intranet/aproc_destino.rb +12 -0
- data/app/models/intranet/aproc_habilitacaomalote.rb +12 -0
- data/app/models/intranet/aproc_habilitacaomalote_tipoespecifico.rb +10 -0
- data/app/models/intranet/aproc_manifestacao.rb +21 -0
- data/app/models/intranet/aproc_movimentacaomanifestacao.rb +26 -0
- data/app/models/intranet/aproc_movimentaomanifestacao_anexo.rb +6 -0
- data/app/models/intranet/aproc_relacaomanifestacao.rb +8 -0
- data/app/models/intranet/aproc_tipomanifestacao.rb +13 -0
- data/app/models/intranet/aproc_viewhabilitacao.rb +3 -0
- data/app/models/intranet/concursos_remocao.rb +5 -0
- data/app/models/intranet/concursos_remocao_concorrencium.rb +8 -0
- data/app/models/intranet/concursos_remocao_disponibilidade.rb +6 -0
- data/app/models/intranet/concursos_remocao_inscricao.rb +10 -0
- data/app/models/intranet/concursos_remocao_opacaolotacao.rb +6 -0
- data/app/models/intranet/ferias_feria.rb +8 -0
- data/app/models/intranet/ferias_fracao.rb +7 -0
- data/app/models/intranet/ferias_registromudancafraco.rb +4 -0
- data/app/models/intranet/ferias_temp.rb +6 -0
- data/app/models/intranet/ferias_terco.rb +3 -0
- data/app/models/intranet/global_banco.rb +6 -0
- data/app/models/intranet/global_categoriatipoorgao.rb +6 -0
- data/app/models/intranet/global_categoriatipoorgao_tipoorgao.rb +6 -0
- data/app/models/intranet/global_cidade.rb +15 -0
- data/app/models/intranet/global_contabancarium.rb +8 -0
- data/app/models/intranet/global_contato.rb +7 -0
- data/app/models/intranet/global_endereco.rb +8 -0
- data/app/models/intranet/global_estado.rb +13 -0
- data/app/models/intranet/global_estadosvizinho.rb +6 -0
- data/app/models/intranet/global_feriado.rb +6 -0
- data/app/models/intranet/global_local.rb +5 -0
- data/app/models/intranet/global_orgao.rb +38 -0
- data/app/models/intranet/global_orgao_contato.rb +6 -0
- data/app/models/intranet/global_pai.rb +6 -0
- data/app/models/intranet/global_pessoafisica.rb +17 -0
- data/app/models/intranet/global_pessoafisica_contasbancaria.rb +6 -0
- data/app/models/intranet/global_pessoafisica_contato.rb +6 -0
- data/app/models/intranet/global_predio.rb +9 -0
- data/app/models/intranet/global_prepessoafisica.rb +12 -0
- data/app/models/intranet/global_prepessoafisica_contasbancaria.rb +6 -0
- data/app/models/intranet/global_prepessoafisica_contato.rb +6 -0
- data/app/models/intranet/global_regiao.rb +6 -0
- data/app/models/intranet/global_tipoorgao.rb +8 -0
- data/app/models/intranet/global_unidadeorganizacional.rb +13 -0
- data/app/models/intranet/intranet_record.rb +4 -0
- data/app/models/intranet/legislacao_documentocomprobatorio.rb +15 -0
- data/app/models/intranet/legislacao_norma.rb +7 -0
- data/app/models/intranet/pesquisas_opcao.rb +6 -0
- data/app/models/intranet/pesquisas_pesquisa.rb +6 -0
- data/app/models/intranet/pesquisas_pesquisa_categoriasenvolvida.rb +5 -0
- data/app/models/intranet/pesquisas_questao.rb +7 -0
- data/app/models/intranet/pesquisas_respostum.rb +7 -0
- data/app/models/intranet/presenca_calculodiario.rb +6 -0
- data/app/models/intranet/presenca_debitoremanscentenegociavel.rb +7 -0
- data/app/models/intranet/presenca_diaexcepcional.rb +6 -0
- data/app/models/intranet/presenca_direito.rb +8 -0
- data/app/models/intranet/presenca_estacao_predio.rb +6 -0
- data/app/models/intranet/presenca_estacaoponto.rb +8 -0
- data/app/models/intranet/presenca_frequentador.rb +17 -0
- data/app/models/intranet/presenca_historicotarefa.rb +3 -0
- data/app/models/intranet/presenca_regime.rb +7 -0
- data/app/models/intranet/presenca_regimefrequentador.rb +9 -0
- data/app/models/intranet/presenca_registroestacaoponto.rb +5 -0
- data/app/models/intranet/presenca_registrofrequencium.rb +9 -0
- data/app/models/intranet/presenca_registromensalfrequencium.rb +7 -0
- data/app/models/intranet/presenca_relatoriofrequenciafinal.rb +5 -0
- data/app/models/intranet/presenca_relatoriofrequentador.rb +6 -0
- data/app/models/intranet/presenca_valorretroativo.rb +5 -0
- data/app/models/intranet/presenca_versaoestacaoponto.rb +3 -0
- data/app/models/intranet/sistema_acessosistema.rb +7 -0
- data/app/models/intranet/sistema_situacaoperfil.rb +6 -0
- data/app/models/intranet/sistema_usuario.rb +32 -0
- data/app/models/intranet/temp_contrachequelegado_cpfs_errado.rb +4 -0
- data/app/models/intranet/temp_magistrado_gestorh.rb +3 -0
- data/app/models/intranet/templates_template.rb +4 -0
- data/app/models/intranet/tips_tip.rb +4 -0
- data/app/models/intranet/tjpi_areacarreira.rb +5 -0
- data/app/models/intranet/tjpi_areaestagio.rb +5 -0
- data/app/models/intranet/tjpi_campodeclaracaoprevinculado.rb +6 -0
- data/app/models/intranet/tjpi_cargo.rb +11 -0
- data/app/models/intranet/tjpi_cargo_embasamento.rb +6 -0
- data/app/models/intranet/tjpi_carreira.rb +10 -0
- data/app/models/intranet/tjpi_categoriavinculoconfig.rb +5 -0
- data/app/models/intranet/tjpi_comarca.rb +5 -0
- data/app/models/intranet/tjpi_contrachequeagrupado.rb +5 -0
- data/app/models/intranet/tjpi_contrachequelegado.rb +4 -0
- data/app/models/intranet/tjpi_contratocargotemporario.rb +5 -0
- data/app/models/intranet/tjpi_controlearquivocadastral.rb +5 -0
- data/app/models/intranet/tjpi_declaracaoprevinculado.rb +9 -0
- data/app/models/intranet/tjpi_diaexcepcional.rb +7 -0
- data/app/models/intranet/tjpi_exerciciofuncao.rb +9 -0
- data/app/models/intranet/tjpi_exerciciolotacao.rb +6 -0
- data/app/models/intranet/tjpi_frequencia_excepcional.rb +7 -0
- data/app/models/intranet/tjpi_funcao.rb +13 -0
- data/app/models/intranet/tjpi_funcao_embasamento.rb +6 -0
- data/app/models/intranet/tjpi_gestorexcepcional.rb +7 -0
- data/app/models/intranet/tjpi_grupofuncional.rb +6 -0
- data/app/models/intranet/tjpi_habilitacaovinculado.rb +7 -0
- data/app/models/intranet/tjpi_importacao_folha.rb +5 -0
- data/app/models/intranet/tjpi_migracaoformhash.rb +3 -0
- data/app/models/intranet/tjpi_nivelprogressao.rb +6 -0
- data/app/models/intranet/tjpi_nivelreferencium.rb +7 -0
- data/app/models/intranet/tjpi_opcaolotacao.rb +6 -0
- data/app/models/intranet/tjpi_orgaoopcaoselecao.rb +6 -0
- data/app/models/intranet/tjpi_pae.rb +3 -0
- data/app/models/intranet/tjpi_pae_magistrado.rb +6 -0
- data/app/models/intranet/tjpi_pae_magistrado_pensionistum.rb +5 -0
- data/app/models/intranet/tjpi_pae_memoriacalculo.rb +3 -0
- data/app/models/intranet/tjpi_pae_parametro.rb +3 -0
- data/app/models/intranet/tjpi_palavrareservada.rb +4 -0
- data/app/models/intranet/tjpi_predependente.rb +6 -0
- data/app/models/intranet/tjpi_previnculado.rb +17 -0
- data/app/models/intranet/tjpi_previnculado_anexo.rb +5 -0
- data/app/models/intranet/tjpi_previnculado_declaraco.rb +6 -0
- data/app/models/intranet/tjpi_previnculado_manifestaco.rb +7 -0
- data/app/models/intranet/tjpi_previnculadointervencao.rb +11 -0
- data/app/models/intranet/tjpi_previnculadopendencium.rb +7 -0
- data/app/models/intranet/tjpi_progressaocarreira.rb +6 -0
- data/app/models/intranet/tjpi_propagacaoemfolha.rb +4 -0
- data/app/models/intranet/tjpi_rh_arquivodeclarcaoirpf.rb +7 -0
- data/app/models/intranet/tjpi_rh_calculoprogressaonivel.rb +3 -0
- data/app/models/intranet/tjpi_rh_declaracaoirpf.rb +5 -0
- data/app/models/intranet/tjpi_rh_intervalo_diarium.rb +5 -0
- data/app/models/intranet/tjpi_rh_pae.rb +5 -0
- data/app/models/intranet/tjpi_rh_pae_pagamento.rb +5 -0
- data/app/models/intranet/tjpi_rh_pae_recebedore.rb +3 -0
- data/app/models/intranet/tjpi_rh_registro_diarium.rb +6 -0
- data/app/models/intranet/tjpi_selecaoarea.rb +5 -0
- data/app/models/intranet/tjpi_selecaopolo.rb +7 -0
- data/app/models/intranet/tjpi_selecaopoloarea.rb +8 -0
- data/app/models/intranet/tjpi_selecaovinculado.rb +6 -0
- data/app/models/intranet/tjpi_selecionado.rb +10 -0
- data/app/models/intranet/tjpi_tabelasubsidiovigente.rb +3 -0
- data/app/models/intranet/tjpi_terceirizacao_contrato.rb +7 -0
- data/app/models/intranet/tjpi_terceirizacao_empresa.rb +5 -0
- data/app/models/intranet/tjpi_terceirizacao_postodetrabalho.rb +7 -0
- data/app/models/intranet/tjpi_tipoatualizacaocadastral.rb +6 -0
- data/app/models/intranet/tjpi_tipoatualizacaocadastral_categoria.rb +5 -0
- data/app/models/intranet/tjpi_tipofuncao.rb +5 -0
- data/app/models/intranet/tjpi_unidadeorganizacionalfuncao.rb +8 -0
- data/app/models/intranet/tjpi_viewhabilitacaovinculado.rb +3 -0
- data/app/models/intranet/tjpi_vinculado.rb +13 -0
- data/app/models/intranet/tjpi_vinculadoemfolha.rb +4 -0
- data/app/models/intranet/tjpi_vinculo.rb +38 -0
- data/app/models/intranet/tjpi_vinculo_documento.rb +6 -0
- data/app/views/sticutils/_action_links.html.erb +30 -0
- data/app/views/sticutils/_form.html.erb +61 -0
- data/app/views/sticutils/_index.html.erb +68 -0
- data/app/views/sticutils/_list.html.erb +47 -0
- data/app/views/sticutils/_show.html.erb +80 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/sticutils.rb +6 -0
- data/lib/sticutils/engine.rb +5 -0
- data/lib/sticutils/version.rb +3 -0
- data/sticutils.gemspec +37 -0
- metadata +260 -0
@@ -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,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,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,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,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,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,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,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
|