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::TjpiPrevinculadoDeclaraco < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_previnculado_declaracoes'
|
3
|
+
|
4
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :preVinculado_id
|
5
|
+
belongs_to :tjpi_declaracaoprevinculado, :class_name => 'TjpiDeclaracaoprevinculado', :foreign_key => :declaracoes_id
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::TjpiPrevinculadoManifestaco < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_previnculado_manifestacoes'
|
3
|
+
|
4
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
|
5
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :preVinculado_id
|
6
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
|
7
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class Intranet::TjpiPrevinculadointervencao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_previnculadointervencao'
|
3
|
+
|
4
|
+
has_many :presenca_direitos, :class_name => 'PresencaDireito'
|
5
|
+
has_many :presenca_registrofrequencia, :class_name => 'PresencaRegistrofrequencium'
|
6
|
+
has_many :tjpi_previnculados, :class_name => 'TjpiPrevinculado'
|
7
|
+
has_many :tjpi_previnculado_anexos, :class_name => 'TjpiPrevinculadoAnexo'
|
8
|
+
belongs_to :tjpi_previnculadointervencao, :class_name => 'TjpiPrevinculadointervencao', :foreign_key => :anterior_id
|
9
|
+
belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :responsavel_login
|
10
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :preVinculado_id
|
11
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::TjpiPrevinculadopendencium < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_previnculadopendencia'
|
3
|
+
|
4
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :autor_id
|
5
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :preVinculado_id
|
6
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :preVinculado_id
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::TjpiProgressaocarreira < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_progressaocarreira'
|
3
|
+
|
4
|
+
belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculoCargo_id
|
5
|
+
belongs_to :tjpi_nivelprogressao, :class_name => 'TjpiNivelprogressao', :foreign_key => :nivelProgressao_id
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::TjpiRhArquivodeclarcaoirpf < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_rh_arquivodeclarcaoirpf'
|
3
|
+
|
4
|
+
belongs_to :tjpi_rh_declaracaoirpf, :class_name => 'TjpiRhDeclaracaoirpf', :foreign_key => :declaracaoIRPF_id
|
5
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :avaliador_id
|
6
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :avaliador_id
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::TjpiRhRegistroDiarium < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_rh_registro_diaria'
|
3
|
+
|
4
|
+
has_many :tjpi_rh_intervalo_diaria, :class_name => 'TjpiRhIntervaloDiarium'
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgaoPagador_id
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::TjpiSelecaopolo < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_selecaopolo'
|
3
|
+
|
4
|
+
has_many :tjpi_orgaoopcaoselecaos, :class_name => 'TjpiOrgaoopcaoselecao'
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
|
6
|
+
has_many :tjpi_selecaopoloareas, :class_name => 'TjpiSelecaopoloarea'
|
7
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::TjpiSelecaopoloarea < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_selecaopoloarea'
|
3
|
+
|
4
|
+
belongs_to :tjpi_selecaopolo, :class_name => 'TjpiSelecaopolo', :foreign_key => :selecaoPolo_id
|
5
|
+
belongs_to :tjpi_selecaoarea, :class_name => 'TjpiSelecaoarea', :foreign_key => :selecaoArea_id
|
6
|
+
belongs_to :tjpi_selecaovinculado, :class_name => 'TjpiSelecaovinculado', :foreign_key => :selecaoVinculado_id
|
7
|
+
has_many :tjpi_selecionados, :class_name => 'TjpiSelecionado'
|
8
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Intranet::TjpiSelecionado < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_selecionado'
|
3
|
+
|
4
|
+
has_many :tjpi_opcaolotacaos, :class_name => 'TjpiOpcaolotacao'
|
5
|
+
belongs_to :tjpi_selecaovinculado, :class_name => 'TjpiSelecaovinculado', :foreign_key => :selecao_id
|
6
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :respondeuLotacaoResultado_id
|
7
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :vagaOrigem_id
|
8
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :lotacaoPreferencial_id
|
9
|
+
belongs_to :tjpi_selecaopoloarea, :class_name => 'TjpiSelecaopoloarea', :foreign_key => :selecaoPoloArea_id
|
10
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::TjpiTerceirizacaoContrato < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_terceirizacao_contrato'
|
3
|
+
|
4
|
+
belongs_to :tjpi_terceirizacao_empresa, :class_name => 'TjpiTerceirizacaoEmpresa', :foreign_key => :empresa_id
|
5
|
+
has_many :tjpi_terceirizacao_postodetrabalhos, :class_name => 'TjpiTerceirizacaoPostodetrabalho'
|
6
|
+
has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
|
7
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::TjpiTerceirizacaoPostodetrabalho < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_terceirizacao_postodetrabalho'
|
3
|
+
|
4
|
+
belongs_to :tjpi_terceirizacao_contrato, :class_name => 'TjpiTerceirizacaoContrato', :foreign_key => :contrato_id
|
5
|
+
belongs_to :tjpi_terceirizacao_empresa, :class_name => 'TjpiTerceirizacaoEmpresa', :foreign_key => :empresa_id
|
6
|
+
has_many :tjpi_vinculos, :class_name => 'TjpiVinculo'
|
7
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::TjpiTipoatualizacaocadastral < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_tipoatualizacaocadastral'
|
3
|
+
|
4
|
+
has_many :tjpi_previnculados, :class_name => 'TjpiPrevinculado'
|
5
|
+
has_many :tjpi_tipoatualizacaocadastral_categorias, :class_name => 'TjpiTipoatualizacaocadastralCategoria'
|
6
|
+
end
|
@@ -0,0 +1,5 @@
|
|
1
|
+
class Intranet::TjpiTipoatualizacaocadastralCategoria < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_tipoatualizacaocadastral_categoria'
|
3
|
+
|
4
|
+
belongs_to :tjpi_tipoatualizacaocadastral, :class_name => 'TjpiTipoatualizacaocadastral', :foreign_key => :tipoAtualizacao_id
|
5
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::TjpiUnidadeorganizacionalfuncao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_unidadeorganizacionalfuncao'
|
3
|
+
|
4
|
+
belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :funcaoGestorSubstituto_id
|
5
|
+
belongs_to :tjpi_gestorexcepcional, :class_name => 'TjpiGestorexcepcional', :foreign_key => :gestorExcepcional_id
|
6
|
+
belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :funcaoGestor_id
|
7
|
+
belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :unidadeOrganizacional_id
|
8
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Intranet::TjpiVinculado < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_vinculado'
|
3
|
+
|
4
|
+
has_many :presenca_frequentadors, :class_name => 'PresencaFrequentador'
|
5
|
+
has_many :sistema_usuarios, :class_name => 'SistemaUsuario'
|
6
|
+
has_many :tjpi_habilitacaovinculados, :class_name => 'TjpiHabilitacaovinculado'
|
7
|
+
has_many :tjpi_previnculados, :class_name => 'TjpiPrevinculado'
|
8
|
+
belongs_to :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :pessoaFisica_id
|
9
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :preVinculado_id
|
10
|
+
belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculoPrincipal_id
|
11
|
+
belongs_to :tjpi_funcao, :class_name => 'TjpiFuncao', :foreign_key => :funcaoAtual_id
|
12
|
+
has_many :tjpi_vinculos, :class_name => 'TjpiVinculo', :foreign_key => :vinculado_id
|
13
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Intranet::TjpiVinculo < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_vinculo'
|
3
|
+
|
4
|
+
has_many :concursos_remocao_inscricaos, :class_name => 'ConcursosRemocaoInscricao'
|
5
|
+
has_many :ferias_ferias, :class_name => 'FeriasFeria'
|
6
|
+
has_many :ferias_temps, :class_name => 'FeriasTemp'
|
7
|
+
has_many :sistema_acessosistemas, :class_name => 'SistemaAcessosistema'
|
8
|
+
has_many :sistema_usuarios, :class_name => 'SistemaUsuario'
|
9
|
+
has_many :tjpi_exerciciofuncaos, :class_name => 'TjpiExerciciofuncao', :foreign_key => :vinculo_id
|
10
|
+
has_many :tjpi_exerciciolotacaos, :class_name => 'TjpiExerciciolotacao'
|
11
|
+
has_many :tjpi_gestorexcepcionals, :class_name => 'TjpiGestorexcepcional'
|
12
|
+
has_many :tjpi_previnculados, :class_name => 'TjpiPrevinculado'
|
13
|
+
has_many :tjpi_progressaocarreiras, :class_name => 'TjpiProgressaocarreira'
|
14
|
+
has_many :tjpi_vinculados, :class_name => 'TjpiVinculado'
|
15
|
+
belongs_to :tjpi_previnculado, :class_name => 'TjpiPrevinculado', :foreign_key => :cadastro_id
|
16
|
+
belongs_to :tjpi_cargo, :class_name => 'TjpiCargo', :foreign_key => :cargo_id
|
17
|
+
belongs_to :tjpi_terceirizacao_contrato, :class_name => 'TjpiTerceirizacaoContrato', :foreign_key => :contratoTerceirizacao_id
|
18
|
+
belongs_to :tjpi_areaestagio, :class_name => 'TjpiAreaestagio', :foreign_key => :areaEstagio_id
|
19
|
+
belongs_to :tjpi_categoriavinculoconfig, :class_name => 'TjpiCategoriavinculoconfig', :foreign_key => :categoria
|
20
|
+
belongs_to :global_estado, :class_name => 'GlobalEstado', :foreign_key => :seccionalOAB_sigla
|
21
|
+
belongs_to :tjpi_terceirizacao_postodetrabalho, :class_name => 'TjpiTerceirizacaoPostodetrabalho', :foreign_key => :postoDeTrabalho_id
|
22
|
+
belongs_to :tjpi_contratocargotemporario, :class_name => 'TjpiContratocargotemporario', :foreign_key => :contrato_id
|
23
|
+
belongs_to :global_orgao_instituicao, :class_name => 'GlobalOrgao', :foreign_key => :instituicaoDeEnsino_id
|
24
|
+
belongs_to :tjpi_nivelreferencium, :class_name => 'TjpiNivelreferencium', :foreign_key => :nivelReferenciaAtual_id
|
25
|
+
belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculoOrigem_id
|
26
|
+
belongs_to :tjpi_vinculado, :class_name => 'TjpiVinculado', :foreign_key => :vinculado_id
|
27
|
+
has_one :tjpi_vinculado_principal, :class_name => 'TjpiVinculado', :foreign_key => :vinculoPrincipal_id
|
28
|
+
belongs_to :global_orgao_atual, :class_name => 'GlobalOrgao', :foreign_key => :lotacaoAtual_id
|
29
|
+
belongs_to :global_orgao_origem, :class_name => 'GlobalOrgao', :foreign_key => :orgaoOrigem_id
|
30
|
+
belongs_to :global_contabancarium, :class_name => 'GlobalContabancarium', :foreign_key => :contaBancaria_id
|
31
|
+
belongs_to :global_cidade, :class_name => 'GlobalCidade', :foreign_key => :vagaOrigem_id
|
32
|
+
has_many :tjpi_vinculo_documentos, :class_name => 'TjpiVinculoDocumento', :foreign_key => :vinculo_id
|
33
|
+
belongs_to :global_unidadeorganizacional, :class_name => 'GlobalUnidadeorganizacional', :foreign_key => :lotacaoAtual_id
|
34
|
+
belongs_to :orgao_origem_cargo, :class_name => 'GlobalOrgao', :foreign_key => :origemCargo_id
|
35
|
+
|
36
|
+
has_many :tjpi_contrachequeagrupados, class_name: "TjpiContrachequeagrupado", foreign_key: :matricula, primary_key: :matricula
|
37
|
+
has_many :tjpi_contrachequelegados, class_name: "TjpiContrachequelegado", foreign_key: :matricula, primary_key: :matricula
|
38
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::TjpiVinculoDocumento < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'tjpi_vinculo_documento'
|
3
|
+
|
4
|
+
belongs_to :legislacao_documentocomprobatorio, :class_name => 'LegislacaoDocumentocomprobatorio', :foreign_key => :documentos_id
|
5
|
+
belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculo_id
|
6
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<div class="btn-group">
|
2
|
+
<button type="button" class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
3
|
+
Ações
|
4
|
+
<span class="caret"></span>
|
5
|
+
<span class="sr-only">Toggle Dropdown</span>
|
6
|
+
</button>
|
7
|
+
<ul class="dropdown-menu" role="menu">
|
8
|
+
<li>
|
9
|
+
<%= link_to object, data: { toggle: 'tooltip', placement: 'top', title: 'Visualizar' } do %>
|
10
|
+
<i class="fa fa-eye"></i> Visualizar
|
11
|
+
<% end %>
|
12
|
+
</li>
|
13
|
+
<li>
|
14
|
+
<% if object.class == Array %>
|
15
|
+
<%= link_to eval_with_rescue("edit_#{[object].flatten.map{|x| x.class.to_s.underscore}.join("_")}_path(#{object[0].id}, #{object[1].id})"), data: { toggle: 'tooltip', placement: 'top', title: 'Editar' } do %>
|
16
|
+
<i class="fa fa-pencil"></i> Editar
|
17
|
+
<% end %>
|
18
|
+
<% else %>
|
19
|
+
<%= link_to eval_with_rescue("edit_#{[object].flatten.map{|x| x.class.to_s.underscore}.join("_")}_path(#{object.id})"), data: { toggle: 'tooltip', placement: 'top', title: 'Editar' } do %>
|
20
|
+
<i class="fa fa-pencil"></i> Editar
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
</li>
|
24
|
+
<li>
|
25
|
+
<%= link_to object, method: :delete, data: { confirm: 'Tem certeza?', toggle: 'tooltip', placement: 'top', title: 'Apagar' } do %>
|
26
|
+
<i class="fa fa-trash"></i> Apagar
|
27
|
+
<% end %>
|
28
|
+
</li>
|
29
|
+
</ul>
|
30
|
+
</div>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<% excluded_columns ||= [] %>
|
2
|
+
<% restricted_columns ||= {} %>
|
3
|
+
<% nested_resource ||= false %>
|
4
|
+
<% parent_resource ||= false %>
|
5
|
+
<% back_link ||= false %>
|
6
|
+
|
7
|
+
<% form_size_fields ||= (object.class.respond_to?('form_size_fields') ? object.class.form_size_fields : {}) %>
|
8
|
+
<% form_ordered_fields ||= (object.class.respond_to?('form_ordered_fields') ? object.class.form_ordered_fields : object.class.column_names) %>
|
9
|
+
|
10
|
+
<%= simple_form_for(nested_resource ? [parent_resource, object] : object) do |f| %>
|
11
|
+
<div class="box box-primary">
|
12
|
+
<div class="box-header with-border">
|
13
|
+
<h3 class="box-title">
|
14
|
+
Dados do <%=t object.class.model_name.human %>
|
15
|
+
<% if parent_resource %>
|
16
|
+
<%= link_to 'Cancelar', eval_with_rescue("#{parent_resource.class.model_name.to_s.downcase}_#{controller_name}_path(#{parent_resource.id})"), class: "btn btn-default btn-xs" %>
|
17
|
+
<% else %>
|
18
|
+
<%= link_to 'Cancelar', eval_with_rescue("#{controller_name}_path"), class: "btn btn-default btn-xs" %>
|
19
|
+
<% end %>
|
20
|
+
<%= f.submit 'Salvar', class: 'btn btn-primary btn-xs' %>
|
21
|
+
</h3>
|
22
|
+
</div>
|
23
|
+
<div class="box-body">
|
24
|
+
<div class="row">
|
25
|
+
<% (form_ordered_fields - ['id', 'created_at', 'updated_at', 'deleted_at'] - excluded_columns).each do |column| %>
|
26
|
+
<% wphtml = "col-md-#{form_size_fields[column.to_sym] || 12}" %>
|
27
|
+
<% if object.class.column_for_attribute(column).type == :text %>
|
28
|
+
<%= f.input column, input_html: { rows: 10, cols: 20 }, wrapper_html: { class: wphtml } %>
|
29
|
+
<% elsif [:date, :datetime].include?(object.class.column_for_attribute(column).type) %>
|
30
|
+
<%= f.input column, html5: true, wrapper_html: { class: wphtml } %>
|
31
|
+
<% elsif /_id$/ =~ column && object.respond_to?(column.split('_id')[0]) %>
|
32
|
+
<% if restricted_columns.keys.include?(column.to_sym) %>
|
33
|
+
<%= f.association column.split("_id")[0],
|
34
|
+
label: restricted_columns[column.to_sym][:label],
|
35
|
+
collection: restricted_columns[column.to_sym][:collection],
|
36
|
+
wrapper_html: { class: wphtml }
|
37
|
+
%>
|
38
|
+
<% else %>
|
39
|
+
<%= f.association column.split("_id")[0], wrapper_html: { class: wphtml } %>
|
40
|
+
<% end %>
|
41
|
+
<% else %>
|
42
|
+
<%= f.input column, wrapper_html: { class: wphtml } %>
|
43
|
+
<% end %>
|
44
|
+
<% end %>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<div class="box-footer">
|
48
|
+
<% if back_link %>
|
49
|
+
<%= link_to 'Cancelar', "javascript:history.back()", class: "btn btn-default" %>
|
50
|
+
<% else %>
|
51
|
+
<% if parent_resource %>
|
52
|
+
<%= link_to 'Cancelar', eval_with_rescue("#{parent_resource.class.model_name.to_s.downcase}_#{controller_name}_path(#{parent_resource.id})"), class: "btn btn-default" %>
|
53
|
+
<% else %>
|
54
|
+
<%= link_to 'Cancelar', eval_with_rescue("#{controller_name}_path"), class: "btn btn-default" %>
|
55
|
+
<% end %>
|
56
|
+
<% end %>
|
57
|
+
|
58
|
+
<%= f.submit class: "btn btn-primary" %>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<% end %>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
<% exceptions ||= ['id', 'created_at', 'updated_at', 'deleted_at'] %>
|
2
|
+
<% search_fields ||= [] %>
|
3
|
+
<% nested_resource ||= false %>
|
4
|
+
<% excluded_columns ||= [] %>
|
5
|
+
|
6
|
+
<div class='box box-primary'>
|
7
|
+
<div class="box-header with-border">
|
8
|
+
<h3 class="box-title">
|
9
|
+
<%=t Kernel.const_get(controller_name.singularize.camelize).model_name.human.pluralize %>
|
10
|
+
</h3>
|
11
|
+
</div>
|
12
|
+
<div class="box-body">
|
13
|
+
<% unless search_fields.empty? %>
|
14
|
+
<div class="row">
|
15
|
+
<%= search_form_for @q, url: eval(nested_resource ? "#{parent_resource}_#{controller_name}_path" : "#{controller_name}_path") do |f| %>
|
16
|
+
<% search_fields.each do |sf| %>
|
17
|
+
<%= f.input sf[:field], label: sf[:label], required: false, as: sf[:as], collection: sf[:collection], wrapper_html: { class: 'col-md-3' } %>
|
18
|
+
<% end %>
|
19
|
+
<div class="col-md-4 top-25">
|
20
|
+
<%= f.submit "Pesquisar", class: 'btn btn-primary' %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
<hr>
|
25
|
+
<% end %>
|
26
|
+
<% if list.empty? %>
|
27
|
+
<table class="table table-striped datatables">
|
28
|
+
<tbody>
|
29
|
+
<tr>
|
30
|
+
<td>Nenhum registro encontrado</td>
|
31
|
+
</tr>
|
32
|
+
</tbody>
|
33
|
+
</table>
|
34
|
+
<% else %>
|
35
|
+
<%= render 'shared/list', list: list, exceptions: exceptions, excluded_columns: excluded_columns %>
|
36
|
+
<% if defined? list.total_pages %>
|
37
|
+
<div class='col-md-4'>
|
38
|
+
<%= page_entries_info list, entry_name: 'resultado(s)' %>
|
39
|
+
</div>
|
40
|
+
<div class='col-md-8 text-right hidden-xs'>
|
41
|
+
<%= paginate list, window: 4 %>
|
42
|
+
</div>
|
43
|
+
<div class='col-md-8 text-center visible-xs'>
|
44
|
+
<%= paginate list, window: 1 %>
|
45
|
+
</div>
|
46
|
+
<% end %>
|
47
|
+
<% end %>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div class="box-footer">
|
51
|
+
<% unless controller_name == 'users' %>
|
52
|
+
<% if can? :new, controller_name.singularize %>
|
53
|
+
<% if nested_resource == true %>
|
54
|
+
<% if parent_resource %>
|
55
|
+
<%= link_to eval("new_#{parent_resource}_#{controller_name.singularize}_path"), class: "btn btn-primary" do %>
|
56
|
+
<%= t('.new', default: t("helpers.links.new")) %> <%= Kernel.const_get(controller_name.singularize.camelize).model_name.human %> <i class='fa fa-plus'></i>
|
57
|
+
<% end %>
|
58
|
+
<% end %>
|
59
|
+
<% else %>
|
60
|
+
<%= link_to eval("new_#{controller_name.singularize}_path"), class: "btn btn-primary" do %>
|
61
|
+
<%= t('.new', default: t("helpers.links.new")) %> <%= Kernel.const_get(controller_name.singularize.camelize).model_name.human %> <i class='fa fa-plus'></i>
|
62
|
+
<% end %>
|
63
|
+
<% end %>
|
64
|
+
<% end %>
|
65
|
+
<% end %>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
</div>
|