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,6 @@
|
|
1
|
+
class Intranet::ConcursosRemocaoOpacaolotacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'concursos_remocao_opacaolotacao'
|
3
|
+
|
4
|
+
belongs_to :concursos_remocao_inscricao, :class_name => 'ConcursosRemocaoInscricao', :foreign_key => :inscricao_id
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
|
6
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::FeriasFeria < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'ferias_ferias'
|
3
|
+
|
4
|
+
belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :documentoComprobatorio_id
|
5
|
+
belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculo_id
|
6
|
+
has_many :ferias_fracaos, :class_name => 'FeriasFracao'
|
7
|
+
has_many :ferias_registromudancafracoes, :class_name => 'FeriasRegistromudancafraco'
|
8
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::FeriasFracao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'ferias_fracao'
|
3
|
+
|
4
|
+
belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :DocumentoFerias_id
|
5
|
+
belongs_to :ferias_registromudancafraco, :class_name => 'FeriasRegistromudancafraco', :foreign_key => :registroMudanca_id
|
6
|
+
belongs_to :ferias_feria, :class_name => 'FeriasFeria', :foreign_key => :ferias_id
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalCategoriatipoorgaoTipoorgao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_categoriatipoorgao_tipoorgao'
|
3
|
+
|
4
|
+
belongs_to :global_tipoorgao, :class_name => 'GlobalTipoorgao', :foreign_key => :tipos_id
|
5
|
+
belongs_to :global_categoriatipoorgao, :class_name => 'GlobalCategoriatipoorgao', :foreign_key => :categorias_identificador
|
6
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Intranet::GlobalCidade < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_cidade'
|
3
|
+
|
4
|
+
belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :estado_sigla
|
5
|
+
belongs_to :global_pai, :class_name => 'GlobalPai', :foreign_key => :pais_sigla
|
6
|
+
has_many :global_enderecos, :class_name => 'GlobalEndereco'
|
7
|
+
has_many :global_estados, :class_name => 'GlobalEstado'
|
8
|
+
has_many :global_feriados, :class_name => 'GlobalFeriado'
|
9
|
+
has_many :global_locals, :class_name => 'GlobalLocal'
|
10
|
+
has_many :global_pessoafisicas, :class_name => 'GlobalPessoafisica'
|
11
|
+
has_many :global_pessoafisicas, :class_name => 'GlobalPessoafisica'
|
12
|
+
has_many :global_prepessoafisicas, :class_name => 'GlobalPrepessoafisica'
|
13
|
+
has_many :global_prepessoafisicas, :class_name => 'GlobalPrepessoafisica'
|
14
|
+
has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
|
15
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::GlobalContabancarium < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_contabancaria'
|
3
|
+
|
4
|
+
belongs_to :global_banco, :class_name => 'GlobalBanco', :foreign_key => :banco_codigo
|
5
|
+
has_many :global_pessoafisica_contasbancarias, :class_name => 'GlobalPessoafisicaContasbancaria'
|
6
|
+
has_many :global_prepessoafisica_contasbancarias, :class_name => 'GlobalPrepessoafisicaContasbancaria'
|
7
|
+
has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
|
8
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::GlobalContato < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_contato'
|
3
|
+
|
4
|
+
has_many :global_orgao_contatos, :class_name => 'GlobalOrgaoContato'
|
5
|
+
has_many :global_pessoafisica_contatos, :class_name => 'GlobalPessoafisicaContato', foreign_key: :contato_id
|
6
|
+
has_many :global_prepessoafisica_contatos, :class_name => 'GlobalPrepessoafisicaContato'
|
7
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::GlobalEndereco < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_endereco'
|
3
|
+
|
4
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :cidade_id
|
5
|
+
has_many :global_pessoafisicas, :class_name => 'GlobalPessoafisica'
|
6
|
+
has_many :global_predios, :class_name => 'GlobalPredio'
|
7
|
+
has_many :global_prepessoafisicas, :class_name => 'GlobalPrepessoafisica'
|
8
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Intranet::GlobalEstado < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_estado'
|
3
|
+
self.primary_key = :sigla
|
4
|
+
|
5
|
+
has_many :global_cidades, :class_name => 'GlobalCidade'
|
6
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :capital_id
|
7
|
+
belongs_to :global_regiao, :class_name => 'GlobalRegiao', :foreign_key => :regiao_sigla
|
8
|
+
has_many :global_estadosvizinhos, :class_name => 'GlobalEstadosvizinho'
|
9
|
+
has_many :global_estadosvizinhos, :class_name => 'GlobalEstadosvizinho'
|
10
|
+
has_many :global_pessoafisicas, :class_name => 'GlobalPessoafisica'
|
11
|
+
has_many :global_prepessoafisicas, :class_name => 'GlobalPrepessoafisica'
|
12
|
+
has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
|
13
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalEstadosvizinho < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_estadosvizinhos'
|
3
|
+
|
4
|
+
belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :vizinho_sigla
|
5
|
+
belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :estado_sigla
|
6
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalFeriado < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_feriado'
|
3
|
+
|
4
|
+
belongs_to :global_periodo, :class_name => 'GlobalPeriodo', :foreign_key => :periodo_id
|
5
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :cidade_id
|
6
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Intranet::GlobalOrgao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_orgao'
|
3
|
+
|
4
|
+
has_many :aproc_destinos, :class_name => 'AprocDestino'
|
5
|
+
has_many :aproc_destinos, :class_name => 'AprocDestino'
|
6
|
+
has_many :concursos_remocao_disponibilidades, :class_name => 'ConcursosRemocaoDisponibilidade'
|
7
|
+
has_many :concursos_remocao_inscricaos, :class_name => 'ConcursosRemocaoInscricao'
|
8
|
+
has_many :concursos_remocao_inscricaos, :class_name => 'ConcursosRemocaoInscricao'
|
9
|
+
has_many :concursos_remocao_opacaolotacaos, :class_name => 'ConcursosRemocaoOpacaolotacao'
|
10
|
+
has_many :ferias_temps, :class_name => 'FeriasTemp'
|
11
|
+
belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :id
|
12
|
+
belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :gestorSubstitutoAtual_id
|
13
|
+
belongs_to :global_tipoorgao, :class_name => 'GlobalTipoorgao', :foreign_key => :tipo_id
|
14
|
+
belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :gestorAtual_id
|
15
|
+
belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :gestorExcepcionalAtual_id
|
16
|
+
belongs_to :global_predio, :class_name => 'GlobalPredio', :foreign_key => :predioSede_id
|
17
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :unidadeSuperior_id
|
18
|
+
has_many :global_orgao_contatos, :class_name => 'GlobalOrgaoContato'
|
19
|
+
has_many :legislacao_normas, :class_name => 'LegislacaoNorma'
|
20
|
+
has_many :presenca_diaexcepcionals, :class_name => 'PresencaDiaexcepcional'
|
21
|
+
has_many :presenca_registrofrequencia, :class_name => 'PresencaRegistrofrequencium'
|
22
|
+
has_many :tjpi_comarcas, :class_name => 'TjpiComarca'
|
23
|
+
has_many :tjpi_diaexcepcionals, :class_name => 'TjpiDiaexcepcional'
|
24
|
+
has_many :tjpi_exerciciofuncaos, :class_name => 'TjpiExerciciofuncao'
|
25
|
+
has_many :tjpi_exerciciolotacaos, :class_name => 'TjpiExerciciolotacao'
|
26
|
+
has_many :tjpi_habilitacaovinculados, :class_name => 'TjpiHabilitacaovinculado'
|
27
|
+
has_many :tjpi_opcaolotacaos, :class_name => 'TjpiOpcaolotacao'
|
28
|
+
has_many :tjpi_orgaoopcaoselecaos, :class_name => 'TjpiOrgaoopcaoselecao'
|
29
|
+
has_many :tjpi_rh_registro_diaria, :class_name => 'TjpiRhRegistroDiarium'
|
30
|
+
has_many :tjpi_selecaopolos, :class_name => 'TjpiSelecaopolo'
|
31
|
+
has_many :tjpi_selecionados, :class_name => 'TjpiSelecionado'
|
32
|
+
has_many :tjpi_selecionados, :class_name => 'TjpiSelecionado'
|
33
|
+
has_many :tjpi_selecionados, :class_name => 'TjpiSelecionado'
|
34
|
+
has_many :tjpi_vinculos_cargos, :class_name => 'TjpiVinculo', foreign_key: :origemCargo_id
|
35
|
+
has_many :tjpi_vinculos_ensino, :class_name => 'TjpiVinculo', foreign_key: :instituicaoDeEnsino_id
|
36
|
+
has_many :tjpi_vinculos_atuais, :class_name => 'TjpiVinculo', foreign_key: :lotacaoAtual_id
|
37
|
+
has_many :tjpi_vinculos_origem, :class_name => 'TjpiVinculo', foreign_key: :orgaoOrigem_id
|
38
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalOrgaoContato < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_orgao_contatos'
|
3
|
+
|
4
|
+
belongs_to :global_contato, :class_name => 'GlobalContato', :foreign_key => :contatos_id
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :global_orgao_id
|
6
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Intranet::GlobalPessoafisica < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_pessoafisica'
|
3
|
+
|
4
|
+
has_many :global_orgaos, :class_name => 'GlobalOrgao'
|
5
|
+
has_many :global_orgaos, :class_name => 'GlobalOrgao'
|
6
|
+
has_many :global_orgaos, :class_name => 'GlobalOrgao'
|
7
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :nascimentoCidade_id
|
8
|
+
belongs_to :global_endereco, :class_name => 'GlobalEndereco', :foreign_key => :endereco_id
|
9
|
+
belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :user_login
|
10
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :tituloEleitorCidade_id
|
11
|
+
belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :rgOrgaoExpedidorUF_sigla
|
12
|
+
has_many :global_pessoafisica_contasbancarias, :class_name => 'GlobalPessoafisicaContasbancaria'
|
13
|
+
has_many :global_pessoafisica_contatos, :class_name => 'GlobalPessoafisicaContato', foreign_key: :pessoaFisica_id
|
14
|
+
has_many :global_contatos, through: :global_pessoafisica_contatos
|
15
|
+
has_many :tjpi_vinculados, :class_name => 'TjpiVinculado', foreign_key: :pessoaFisica_id
|
16
|
+
has_one :tjpi_vinculado, :class_name => 'TjpiVinculado', foreign_key: :pessoaFisica_id
|
17
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalPessoafisicaContasbancaria < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_pessoafisica_contasbancarias'
|
3
|
+
|
4
|
+
belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :pessoaFisica_id
|
5
|
+
belongs_to :global_contabancarium, :class_name => 'GlobalContabancarium', :foreign_key => :contaBancaria_id
|
6
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalPessoafisicaContato < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_pessoafisica_contatos'
|
3
|
+
|
4
|
+
belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :pessoaFisica_id
|
5
|
+
belongs_to :global_contato, :class_name => 'GlobalContato', :foreign_key => :contato_id
|
6
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
class Intranet::GlobalPredio < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_predio'
|
3
|
+
|
4
|
+
|
5
|
+
has_many :global_orgaos, :class_name => 'GlobalOrgao'
|
6
|
+
belongs_to :global_endereco, :class_name => 'GlobalEndereco', :foreign_key => :endereco_id
|
7
|
+
has_many :presenca_estacao_predios, :class_name => 'PresencaEstacaoPredio'
|
8
|
+
has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
|
9
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class Intranet::GlobalPrepessoafisica < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_prepessoafisica'
|
3
|
+
|
4
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :nascimentoCidade_id
|
5
|
+
belongs_to :global_endereco, :class_name => 'GlobalEndereco', :foreign_key => :endereco_id
|
6
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :tituloEleitorCidade_id
|
7
|
+
belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :rgOrgaoExpedidorUF_sigla
|
8
|
+
has_many :global_prepessoafisica_contasbancarias, :class_name => 'GlobalPrepessoafisicaContasbancaria'
|
9
|
+
has_many :global_prepessoafisica_contatos, :class_name => 'GlobalPrepessoafisicaContato'
|
10
|
+
has_many :tjpi_predependentes, :class_name => 'TjpiPredependente'
|
11
|
+
has_many :tjpi_previnculados, :class_name => 'TjpiPrevinculado'
|
12
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalPrepessoafisicaContasbancaria < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_prepessoafisica_contasbancarias'
|
3
|
+
|
4
|
+
belongs_to :global_prepessoafisica, :class_name => 'GlobalPrepessoafisica', :foreign_key => :pessoaFisica_id
|
5
|
+
belongs_to :global_contabancarium, :class_name => 'GlobalContabancarium', :foreign_key => :contaBancaria_id
|
6
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::GlobalPrepessoafisicaContato < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_prepessoafisica_contatos'
|
3
|
+
|
4
|
+
belongs_to :global_contato, :class_name => 'GlobalContato', :foreign_key => :contato_id
|
5
|
+
belongs_to :global_prepessoafisica, :class_name => 'GlobalPrepessoafisica', :foreign_key => :pessoaFisica_id
|
6
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::GlobalTipoorgao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_tipoorgao'
|
3
|
+
|
4
|
+
has_many :global_categoriatipoorgao_tipoorgaos, :class_name => 'GlobalCategoriatipoorgaoTipoorgao'
|
5
|
+
has_many :global_orgaos, :class_name => 'GlobalOrgao'
|
6
|
+
belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :id
|
7
|
+
belongs_to :global_tipoorgao, :class_name => 'GlobalTipoorgao', :foreign_key => :unidadeSuperior_id
|
8
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Intranet::GlobalUnidadeorganizacional < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'global_unidadeorganizacional'
|
3
|
+
|
4
|
+
has_many :global_orgaos, :class_name => 'GlobalOrgao', :foreign_key => :id
|
5
|
+
has_many :global_tipoorgaos, :class_name => 'GlobalTipoorgao', :foreign_key => :id
|
6
|
+
has_many :tjpi_cargos, :class_name => 'TjpiCargo'
|
7
|
+
has_many :tjpi_carreiras, :class_name => 'TjpiCarreira'
|
8
|
+
has_many :tjpi_funcaos, :class_name => 'TjpiFuncao', :foreign_key => :lotacaoLegal_id
|
9
|
+
has_many :tjpi_unidadeorganizacionalfuncaos, :class_name => 'TjpiUnidadeorganizacionalfuncao'
|
10
|
+
has_many :tjpi_viculos, :class_name => "TjpiVinculo", :foreign_key => :id
|
11
|
+
|
12
|
+
has_many :global_predio, through: :global_orgaos
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Intranet::LegislacaoDocumentocomprobatorio < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'legislacao_documentocomprobatorio'
|
3
|
+
|
4
|
+
has_many :ferias_ferias, :class_name => 'FeriasFeria'
|
5
|
+
has_many :ferias_fracaos, :class_name => 'FeriasFracao'
|
6
|
+
belongs_to :legislacao_norma, :class_name => 'LegislacaoNorma', :foreign_key => :norma_id
|
7
|
+
has_many :tjpi_cargo_embasamentos, :class_name => 'TjpiCargoEmbasamento'
|
8
|
+
has_many :tjpi_carreiras, :class_name => 'TjpiCarreira'
|
9
|
+
has_many :tjpi_declaracaoprevinculados, :class_name => 'TjpiDeclaracaoprevinculado'
|
10
|
+
has_many :tjpi_declaracaoprevinculados, :class_name => 'TjpiDeclaracaoprevinculado'
|
11
|
+
has_many :tjpi_exerciciofuncaos, :class_name => 'TjpiExerciciofuncao'
|
12
|
+
has_many :tjpi_exerciciofuncaos, :class_name => 'TjpiExerciciofuncao'
|
13
|
+
has_many :tjpi_funcao_embasamentos, :class_name => 'TjpiFuncaoEmbasamento'
|
14
|
+
has_many :tjpi_vinculo_documentos, :class_name => 'TjpiVinculoDocumento', :foreign_key => :documentos_id
|
15
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::LegislacaoNorma < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'legislacao_norma'
|
3
|
+
|
4
|
+
has_many :legislacao_documentocomprobatorios, :class_name => 'LegislacaoDocumentocomprobatorio'
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :diarioOrgao_id
|
6
|
+
belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :cadastrador_login
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::PesquisasPesquisa < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'pesquisas_pesquisa'
|
3
|
+
|
4
|
+
has_many :pesquisas_pesquisa_categoriasenvolvidas, :class_name => 'PesquisasPesquisaCategoriasenvolvida'
|
5
|
+
has_many :pesquisas_questaos, :class_name => 'PesquisasQuestao'
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::PesquisasQuestao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'pesquisas_questao'
|
3
|
+
|
4
|
+
has_many :pesquisas_opcaos, :class_name => 'PesquisasOpcao'
|
5
|
+
belongs_to :pesquisas_pesquisa, :class_name => 'PesquisasPesquisa', :foreign_key => :pesquisa_id
|
6
|
+
has_many :pesquisas_resposta, :class_name => 'PesquisasRespostum'
|
7
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::PesquisasRespostum < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'pesquisas_resposta'
|
3
|
+
|
4
|
+
belongs_to :pesquisas_questao, :class_name => 'PesquisasQuestao', :foreign_key => :questao_id
|
5
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
|
6
|
+
belongs_to :pesquisas_opcao, :class_name => 'PesquisasOpcao', :foreign_key => :opcao_id
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::PresencaCalculodiario < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_calculodiario'
|
3
|
+
|
4
|
+
belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
|
5
|
+
belongs_to :presenca_registromensalfrequencium, :class_name => 'PresencaRegistromensalfrequencium', :foreign_key => :registroMensal_id
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::PresencaDebitoremanscentenegociavel < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_debitoremanscentenegociavel'
|
3
|
+
|
4
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :responsavel_id
|
5
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
|
6
|
+
belongs_to :presenca_registromensalfrequencium, :class_name => 'PresencaRegistromensalfrequencium', :foreign_key => :registroMensalFrequencia_id
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::PresencaDiaexcepcional < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_diaexcepcional'
|
3
|
+
|
4
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :responsavel_id
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :setorAtingido_id
|
6
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::PresencaDireito < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_direito'
|
3
|
+
|
4
|
+
belongs_to :presenca_frequentador, :class_name => 'PresencaFrequentador', :foreign_key => :frequentador_id
|
5
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :responsavel_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
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::PresencaEstacaoPredio < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_estacao_predio'
|
3
|
+
|
4
|
+
belongs_to :global_predio, :class_name => 'GlobalPredio', :foreign_key => :predio_id
|
5
|
+
belongs_to :presenca_estacaoponto, :class_name => 'PresencaEstacaoponto', :foreign_key => :estacaoPonto_id
|
6
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::PresencaEstacaoponto < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_estacaoponto'
|
3
|
+
|
4
|
+
has_many :presenca_estacao_predios, :class_name => 'PresencaEstacaoPredio'
|
5
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :responsavel_id
|
6
|
+
has_many :presenca_registroestacaopontos, :class_name => 'PresencaRegistroestacaoponto'
|
7
|
+
has_many :presenca_registrofrequencia, :class_name => 'PresencaRegistrofrequencium'
|
8
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Intranet::PresencaFrequentador < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'presenca_frequentador'
|
3
|
+
|
4
|
+
has_many :presenca_calculodiarios, :class_name => 'PresencaCalculodiario'
|
5
|
+
has_many :presenca_direitos, :class_name => 'PresencaDireito'
|
6
|
+
belongs_to :global_predio, :class_name => 'GlobalPredio', :foreign_key => :localTrabalhoPresenca_id
|
7
|
+
belongs_to :presenca_regimefrequentador, :class_name => 'PresencaRegimefrequentador', :foreign_key => :diferenciado_id
|
8
|
+
belongs_to :presenca_regimefrequentador, :class_name => 'PresencaRegimefrequentador', :foreign_key => :temporario_id
|
9
|
+
belongs_to :presenca_regimefrequentador, :class_name => 'PresencaRegimefrequentador', :foreign_key => :oficial_id
|
10
|
+
belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
|
11
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :cadastrador_id
|
12
|
+
has_many :presenca_regimefrequentadors, :class_name => 'PresencaRegimefrequentador'
|
13
|
+
has_many :presenca_registrofrequencia, :class_name => 'PresencaRegistrofrequencium'
|
14
|
+
has_many :presenca_registromensalfrequencia, :class_name => 'PresencaRegistromensalfrequencium'
|
15
|
+
has_many :presenca_relatoriofrequentadors, :class_name => 'PresencaRelatoriofrequentador'
|
16
|
+
has_many :presenca_valorretroativos, :class_name => 'PresencaValorretroativo'
|
17
|
+
end
|