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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ee07a070f9aa3e026cd9beb196565bcbeb5cafb8f629dec298f988ea8e3c1519
|
4
|
+
data.tar.gz: 3829e47a8bda5e3406449f664d052f759421c64fd6d032be7b0798127ccaa344
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3cfc7b48196063b670d8ef10bdb5164ba564154aea41b2dcf57a1b6cccbd4057c31f76ef2b972dd95840088d47e347c3059f7a7c6b5cf139088a9a845db6e3e7
|
7
|
+
data.tar.gz: 8c5853711250b87ea3070312f9ae58e26773f4424fa861b3debb7a3e17f533fc6680928bd23f0e1254f519b6c4883e5a2199de4928c103feac5b977cf2430749
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at ricardo.viana@tjpi.jus.br. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Ricardo Viana
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Sticutils
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sticutils`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'sticutils'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install sticutils
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sticutils. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the Sticutils project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/sticutils/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::AdminModule < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'admin_module'
|
3
|
+
self.primary_key = :moduleId
|
4
|
+
|
5
|
+
has_many :admin_profile_modules, :class_name => 'AdminProfileModule', :foreign_key => :moduleId
|
6
|
+
has_many :admin_roles, :class_name => 'AdminRole'
|
7
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Intranet::AdminProfile < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'admin_profile'
|
3
|
+
self.primary_key = :profileId
|
4
|
+
|
5
|
+
has_many :admin_profile_allowedprofiles, :class_name => 'AdminProfileAllowedprofile', :foreign_key => :profileId
|
6
|
+
has_many :admin_profile_allowedprofiles, :class_name => 'AdminProfileAllowedprofile'
|
7
|
+
has_many :admin_profile_modules, :class_name => 'AdminProfileModule', :foreign_key => :profileId
|
8
|
+
has_many :admin_profile_roles, :class_name => 'AdminProfileRole', :foreign_key => :profileId
|
9
|
+
has_many :admin_users, :class_name => 'AdminUser'
|
10
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::AdminProfileModule < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'admin_profile_module'
|
3
|
+
|
4
|
+
belongs_to :admin_module, :class_name => 'AdminModule', :foreign_key => :moduleId
|
5
|
+
belongs_to :admin_profile, :class_name => 'AdminProfile', :foreign_key => :profileId
|
6
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::AdminProfileRole < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'admin_profile_role'
|
3
|
+
|
4
|
+
belongs_to :admin_profile, :class_name => 'AdminProfile', :foreign_key => :profileId
|
5
|
+
belongs_to :admin_role, :class_name => 'AdminRole', :foreign_key => :roleId
|
6
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::AdminRole < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'admin_role'
|
3
|
+
self.primary_key = :roleId
|
4
|
+
|
5
|
+
has_many :admin_profile_roles, :class_name => 'AdminProfileRole', :foreign_key => :roleId
|
6
|
+
belongs_to :admin_module, :class_name => 'AdminModule', :foreign_key => :module_moduleId
|
7
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Intranet::AdminUser < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'admin_user'
|
3
|
+
self.primary_key = :login
|
4
|
+
|
5
|
+
has_many :admin_logs, :class_name => 'AdminLog'
|
6
|
+
belongs_to :admin_profile, :class_name => 'AdminProfile', :foreign_key => :profile_profileId
|
7
|
+
has_many :aproc_habilitacaomalotes, :class_name => 'AprocHabilitacaomalote'
|
8
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
9
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
10
|
+
has_many :legislacao_normas, :class_name => 'LegislacaoNorma'
|
11
|
+
has_many :tjpi_controlearquivocadastrals, :class_name => 'TjpiControlearquivocadastral'
|
12
|
+
has_many :tjpi_previnculadointervencaos, :class_name => 'TjpiPrevinculadointervencao'
|
13
|
+
|
14
|
+
has_one :global_pessoafisica, :class_name => 'GlobalPessoafisica', :foreign_key => :user_login
|
15
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
class Intranet::AprocAnexomalote < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_anexomalote'
|
3
|
+
|
4
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
5
|
+
has_many :aproc_movimentaomanifestacao_anexos, :class_name => 'AprocMovimentaomanifestacaoAnexo'
|
6
|
+
has_many :aproc_movimentaomanifestacao_anexos, :class_name => 'AprocMovimentaomanifestacaoAnexo'
|
7
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Intranet::AprocAnotacaomanifestacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_anotacaomanifestacao'
|
3
|
+
|
4
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuarioExclusao_id
|
5
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
|
6
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacao_id
|
7
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuarioExclusao_id
|
8
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacao_id
|
9
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
|
10
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::AprocAssuntodemanifestacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_assuntodemanifestacao'
|
3
|
+
|
4
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipo_id
|
5
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipo_id
|
6
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
7
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
8
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class Intranet::AprocDestino < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_destino'
|
3
|
+
|
4
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :setor_id
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :setor_id
|
6
|
+
has_many :aproc_habilitacaomalotes, :class_name => 'AprocHabilitacaomalote'
|
7
|
+
has_many :aproc_habilitacaomalotes, :class_name => 'AprocHabilitacaomalote'
|
8
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
9
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
10
|
+
has_many :aproc_tipomanifestacaos, :class_name => 'AprocTipomanifestacao'
|
11
|
+
has_many :aproc_tipomanifestacaos, :class_name => 'AprocTipomanifestacao'
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class Intranet::AprocHabilitacaomalote < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_habilitacaomalote'
|
3
|
+
|
4
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
|
5
|
+
belongs_to :aproc_destino, :class_name => 'AprocDestino', :foreign_key => :destino_id
|
6
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :usuario_id
|
7
|
+
belongs_to :aproc_destino, :class_name => 'AprocDestino', :foreign_key => :destino_id
|
8
|
+
belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :habilitador_login
|
9
|
+
has_many :aproc_habilitacaomalote_tipoespecificos, :class_name => 'AprocHabilitacaomaloteTipoespecifico'
|
10
|
+
has_many :aproc_habilitacaomalote_tipoespecificos, :class_name => 'AprocHabilitacaomaloteTipoespecifico'
|
11
|
+
has_many :aproc_habilitacaomalote_tipoespecificos, :class_name => 'AprocHabilitacaomaloteTipoespecifico'
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Intranet::AprocHabilitacaomaloteTipoespecifico < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_habilitacaomalote_tipoespecifico'
|
3
|
+
|
4
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipoEspecificoId
|
5
|
+
belongs_to :aproc_habilitacaomalote, :class_name => 'AprocHabilitacaomalote', :foreign_key => :habilitacaoMaloteId
|
6
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipoEspecificoId
|
7
|
+
belongs_to :aproc_habilitacaomalote, :class_name => 'AprocHabilitacaomalote', :foreign_key => :habilitacaoMaloteId
|
8
|
+
belongs_to :aproc_habilitacaomalote, :class_name => 'AprocHabilitacaomalote', :foreign_key => :habilitacaoMaloteId
|
9
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipoEspecificoId
|
10
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Intranet::AprocManifestacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_manifestacao'
|
3
|
+
|
4
|
+
belongs_to :aproc_assuntodemanifestacao, :class_name => 'AprocAssuntodemanifestacao', :foreign_key => :assunto_id
|
5
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :ultimaMovimentacao_id
|
6
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :primeiraMovimentacao_id
|
7
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :primeiraMovimentacao_id
|
8
|
+
belongs_to :aproc_anexomalote, :class_name => 'AprocAnexomalote', :foreign_key => :anexo_id
|
9
|
+
belongs_to :aproc_assuntodemanifestacao, :class_name => 'AprocAssuntodemanifestacao', :foreign_key => :assunto_id
|
10
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :ultimaMovimentacao_id
|
11
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
12
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
13
|
+
has_many :aproc_relacaomanifestacaos, :class_name => 'AprocRelacaomanifestacao'
|
14
|
+
has_many :aproc_relacaomanifestacaos, :class_name => 'AprocRelacaomanifestacao'
|
15
|
+
has_many :presenca_debitoremanscentenegociavels, :class_name => 'PresencaDebitoremanscentenegociavel'
|
16
|
+
has_many :presenca_direitos, :class_name => 'PresencaDireito'
|
17
|
+
has_many :presenca_registrofrequencia, :class_name => 'PresencaRegistrofrequencium'
|
18
|
+
has_many :tjpi_gestorexcepcionals, :class_name => 'TjpiGestorexcepcional'
|
19
|
+
has_many :tjpi_previnculado_manifestacoes, :class_name => 'TjpiPrevinculadoManifestaco'
|
20
|
+
has_many :tjpi_previnculado_manifestacoes, :class_name => 'TjpiPrevinculadoManifestaco'
|
21
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Intranet::AprocMovimentacaomanifestacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_movimentacaomanifestacao'
|
3
|
+
|
4
|
+
has_many :aproc_anotacaomanifestacaos, :class_name => 'AprocAnotacaomanifestacao'
|
5
|
+
has_many :aproc_anotacaomanifestacaos, :class_name => 'AprocAnotacaomanifestacao'
|
6
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
7
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
8
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
9
|
+
has_many :aproc_manifestacaos, :class_name => 'AprocManifestacao'
|
10
|
+
belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :atribuido_login
|
11
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
|
12
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacaoAnterior_id
|
13
|
+
belongs_to :aproc_destino, :class_name => 'AprocDestino', :foreign_key => :destino_id
|
14
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipoManifestacao_id
|
15
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :gestorEnvolvido_id
|
16
|
+
belongs_to :aproc_tipomanifestacao, :class_name => 'AprocTipomanifestacao', :foreign_key => :tipoManifestacao_id
|
17
|
+
belongs_to :aproc_destino, :class_name => 'AprocDestino', :foreign_key => :destino_id
|
18
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacao_id
|
19
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :gestorEnvolvido_id
|
20
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacaoAnterior_id
|
21
|
+
belongs_to :admin_user, :class_name => 'AdminUser', :foreign_key => :usuario_login
|
22
|
+
has_many :aproc_movimentaomanifestacao_anexos, :class_name => 'AprocMovimentaomanifestacaoAnexo'
|
23
|
+
has_many :aproc_movimentaomanifestacao_anexos, :class_name => 'AprocMovimentaomanifestacaoAnexo'
|
24
|
+
has_many :aproc_relacaomanifestacaos, :class_name => 'AprocRelacaomanifestacao'
|
25
|
+
has_many :aproc_relacaomanifestacaos, :class_name => 'AprocRelacaomanifestacao'
|
26
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::AprocMovimentaomanifestacaoAnexo < Intranet::IntranetRecord
|
2
|
+
belongs_to :aproc_anexomalote, :class_name => 'AprocAnexomalote', :foreign_key => :anexo_id
|
3
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacao_id
|
4
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacao_id
|
5
|
+
belongs_to :aproc_anexomalote, :class_name => 'AprocAnexomalote', :foreign_key => :anexo_id
|
6
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::AprocRelacaomanifestacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_relacaomanifestacao'
|
3
|
+
|
4
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacaoRelacionada_id
|
5
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacao_id
|
6
|
+
belongs_to :aproc_movimentacaomanifestacao, :class_name => 'AprocMovimentacaomanifestacao', :foreign_key => :movimentacao_id
|
7
|
+
belongs_to :aproc_manifestacao, :class_name => 'AprocManifestacao', :foreign_key => :manifestacaoRelacionada_id
|
8
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class Intranet::AprocTipomanifestacao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'aproc_tipomanifestacao'
|
3
|
+
|
4
|
+
has_many :aproc_assuntodemanifestacaos, :class_name => 'AprocAssuntodemanifestacao'
|
5
|
+
has_many :aproc_assuntodemanifestacaos, :class_name => 'AprocAssuntodemanifestacao'
|
6
|
+
has_many :aproc_habilitacaomalote_tipoespecificos, :class_name => 'AprocHabilitacaomaloteTipoespecifico'
|
7
|
+
has_many :aproc_habilitacaomalote_tipoespecificos, :class_name => 'AprocHabilitacaomaloteTipoespecifico'
|
8
|
+
has_many :aproc_habilitacaomalote_tipoespecificos, :class_name => 'AprocHabilitacaomaloteTipoespecifico'
|
9
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
10
|
+
has_many :aproc_movimentacaomanifestacaos, :class_name => 'AprocMovimentacaomanifestacao'
|
11
|
+
belongs_to :aproc_destino, :class_name => 'AprocDestino', :foreign_key => :destino_id
|
12
|
+
belongs_to :aproc_destino, :class_name => 'AprocDestino', :foreign_key => :destino_id
|
13
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
class Intranet::ConcursosRemocaoConcorrencium < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'concursos_remocao_concorrencia'
|
3
|
+
|
4
|
+
belongs_to :tjpi_cargo, :class_name => 'TjpiCargo', :foreign_key => :cargo_id
|
5
|
+
belongs_to :concursos_remocao, :class_name => 'ConcursosRemocao', :foreign_key => :concurso_id
|
6
|
+
has_many :concursos_remocao_disponibilidades, :class_name => 'ConcursosRemocaoDisponibilidade'
|
7
|
+
has_many :concursos_remocao_inscricaos, :class_name => 'ConcursosRemocaoInscricao'
|
8
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
class Intranet::ConcursosRemocaoDisponibilidade < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'concursos_remocao_disponibilidade'
|
3
|
+
|
4
|
+
belongs_to :concursos_remocao_concorrencium, :class_name => 'ConcursosRemocaoConcorrencium', :foreign_key => :concorrencia_id
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :orgao_id
|
6
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class Intranet::ConcursosRemocaoInscricao < Intranet::IntranetRecord
|
2
|
+
self.table_name = 'concursos_remocao_inscricao'
|
3
|
+
|
4
|
+
belongs_to :concursos_remocao_concorrencium, :class_name => 'ConcursosRemocaoConcorrencium', :foreign_key => :concorrencia_id
|
5
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :origemAtual_id
|
6
|
+
belongs_to :global_orgao, :class_name => 'GlobalOrgao', :foreign_key => :resultadoDestino_id
|
7
|
+
belongs_to :sistema_usuario, :class_name => 'SistemaUsuario', :foreign_key => :ultimoValidador_id
|
8
|
+
belongs_to :tjpi_vinculo, :class_name => 'TjpiVinculo', :foreign_key => :vinculo_id
|
9
|
+
has_many :concursos_remocao_opacaolotacaos, :class_name => 'ConcursosRemocaoOpacaolotacao'
|
10
|
+
end
|