Commit a818fe7b3310fd862e93883c3bbcf2b2654143c8

Authored by Marcus Sacramento
0 parents
Exists in master

Publicação no SPB

Showing 776 changed files with 56499 additions and 0 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 776 files displayed.

CHANGELOG.md 0 → 100644
  1 +++ a/CHANGELOG.md
... ... @@ -0,0 +1,35 @@
  1 +Este Changelog foi gerado automaticamente.
  2 +Veja https://github.com/lkdjiin/git-changelog para mais informações.
  3 +
  4 +2015-01-22 Versão 2.0.0
  5 +=========================
  6 +
  7 +* 2015-11-27 OS007-2015: Entrega referente ao atendimento do SATI 70975 e 70979
  8 +* 2015-11-26 OS007-2015: Entrega referente ao atendimento do SATI 70974, 70975, 70978, 70979
  9 +* 2015-11-27 Correção de ISSUES demanda 53636
  10 +* 2015-11-23 Correção de ISSUES
  11 +
  12 +2015-11-23 Versão 1.1.1
  13 +=========================
  14 +* 2015-11-19 SATI 69661
  15 +* 2015-09-15 SATI 56363
  16 +* 2015-09-15 SATI 56361
  17 +* 2015-08-16 Script carga incial
  18 +* 2015-08-31 #OS007-2015: Atualização do cabeçalho.
  19 +* 2015-08-28 Issue #3 - Mudança de Grupo
  20 +* 2015-09-09 Contagem Detalhada
  21 +
  22 +2015-08-28 Versão 1.1.0
  23 +=========================
  24 +* 2015-08-28 Realização da contagem detalhada
  25 +* 2015-08-05 OS007-2015: Execução dos testes.
  26 +* 2015-07-15 Correção erro ao cadastrar um novo proponente.
  27 +
  28 +2015-07-15 Versão 1.0.1
  29 +=========================
  30 +* 2015-07-07 Correção de Erro ao recuperar senha
  31 +
  32 +2015-07-07 Versão 1.0.0
  33 +=========================
  34 +* 2015-06-08 Customização de Código para utilização no MJ
  35 +* 2015-04-20 Criação do Repositório
... ...
CONTRIBUTING.md 0 → 100644
  1 +++ a/CONTRIBUTING.md
... ... @@ -0,0 +1,30 @@
  1 +Como desenvolver para este projeto?
  2 +============
  3 +
  4 +Política de Mensagem de Commit's
  5 +-------
  6 +
  7 +Conforme definição DIPROS, as mensagens dos Commits deverão ter no mínimo 10 Caracteres ou seguir um dos padrões abaixo relacionados:
  8 +* SATI 12345 - Desenvolvimento de Demanda/Projeto
  9 +* SATI 12345,54321,123 - Desenvolvimento de Demanda/Projeto
  10 +* SATI 12345,SATI 54321,SATI 54321 - Desenvolvimento de Demanda/Projeto
  11 +* OS 1234567-2015 - Desenvolvimento de Demanda/Projeto
  12 +* Redmine 123456 - Desenvolvimento de Demanda/Projeto
  13 +* Redmine 123 - Desenvolvimento de Demanda/Projeto
  14 +* Issue #123 - Desenvolvimento de Demanda/Projeto
  15 +
  16 +Caso os commits se encontram errados corrija a última revisão ou use o commando ```git rebase -i```
  17 +
  18 +
  19 +Licença de Software
  20 +------
  21 +
  22 +Este programa é um software livre; você pode redistribuí-lo e/ou
  23 +modificá-lo dentro dos termos da Licença Pública Geral GNU como
  24 +publicada pela Fundação do Software Livre (FSF); na versão 3 da
  25 +Licença, ou (na sua opinião) qualquer versão.
  26 +
  27 +Este programa é distribuído na esperança de que possa ser útil,
  28 +mas SEM NENHUMA GARANTIA; sem uma garantia implícita de ADEQUAÇÃO
  29 +a qualquer MERCADO ou APLICAÇÃO EM PARTICULAR. Veja a
  30 +Licença Pública Geral GNU para maiores detalhes, [localizada neste repositório](LICENSE).
0 31 \ No newline at end of file
... ...
LICENSE 0 → 100644
  1 +++ a/LICENSE
... ... @@ -0,0 +1,674 @@
  1 + GNU GENERAL PUBLIC LICENSE
  2 + Version 3, 29 June 2007
  3 +
  4 + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  5 + Everyone is permitted to copy and distribute verbatim copies
  6 + of this license document, but changing it is not allowed.
  7 +
  8 + Preamble
  9 +
  10 + The GNU General Public License is a free, copyleft license for
  11 +software and other kinds of works.
  12 +
  13 + The licenses for most software and other practical works are designed
  14 +to take away your freedom to share and change the works. By contrast,
  15 +the GNU General Public License is intended to guarantee your freedom to
  16 +share and change all versions of a program--to make sure it remains free
  17 +software for all its users. We, the Free Software Foundation, use the
  18 +GNU General Public License for most of our software; it applies also to
  19 +any other work released this way by its authors. You can apply it to
  20 +your programs, too.
  21 +
  22 + When we speak of free software, we are referring to freedom, not
  23 +price. Our General Public Licenses are designed to make sure that you
  24 +have the freedom to distribute copies of free software (and charge for
  25 +them if you wish), that you receive source code or can get it if you
  26 +want it, that you can change the software or use pieces of it in new
  27 +free programs, and that you know you can do these things.
  28 +
  29 + To protect your rights, we need to prevent others from denying you
  30 +these rights or asking you to surrender the rights. Therefore, you have
  31 +certain responsibilities if you distribute copies of the software, or if
  32 +you modify it: responsibilities to respect the freedom of others.
  33 +
  34 + For example, if you distribute copies of such a program, whether
  35 +gratis or for a fee, you must pass on to the recipients the same
  36 +freedoms that you received. You must make sure that they, too, receive
  37 +or can get the source code. And you must show them these terms so they
  38 +know their rights.
  39 +
  40 + Developers that use the GNU GPL protect your rights with two steps:
  41 +(1) assert copyright on the software, and (2) offer you this License
  42 +giving you legal permission to copy, distribute and/or modify it.
  43 +
  44 + For the developers' and authors' protection, the GPL clearly explains
  45 +that there is no warranty for this free software. For both users' and
  46 +authors' sake, the GPL requires that modified versions be marked as
  47 +changed, so that their problems will not be attributed erroneously to
  48 +authors of previous versions.
  49 +
  50 + Some devices are designed to deny users access to install or run
  51 +modified versions of the software inside them, although the manufacturer
  52 +can do so. This is fundamentally incompatible with the aim of
  53 +protecting users' freedom to change the software. The systematic
  54 +pattern of such abuse occurs in the area of products for individuals to
  55 +use, which is precisely where it is most unacceptable. Therefore, we
  56 +have designed this version of the GPL to prohibit the practice for those
  57 +products. If such problems arise substantially in other domains, we
  58 +stand ready to extend this provision to those domains in future versions
  59 +of the GPL, as needed to protect the freedom of users.
  60 +
  61 + Finally, every program is threatened constantly by software patents.
  62 +States should not allow patents to restrict development and use of
  63 +software on general-purpose computers, but in those that do, we wish to
  64 +avoid the special danger that patents applied to a free program could
  65 +make it effectively proprietary. To prevent this, the GPL assures that
  66 +patents cannot be used to render the program non-free.
  67 +
  68 + The precise terms and conditions for copying, distribution and
  69 +modification follow.
  70 +
  71 + TERMS AND CONDITIONS
  72 +
  73 + 0. Definitions.
  74 +
  75 + "This License" refers to version 3 of the GNU General Public License.
  76 +
  77 + "Copyright" also means copyright-like laws that apply to other kinds of
  78 +works, such as semiconductor masks.
  79 +
  80 + "The Program" refers to any copyrightable work licensed under this
  81 +License. Each licensee is addressed as "you". "Licensees" and
  82 +"recipients" may be individuals or organizations.
  83 +
  84 + To "modify" a work means to copy from or adapt all or part of the work
  85 +in a fashion requiring copyright permission, other than the making of an
  86 +exact copy. The resulting work is called a "modified version" of the
  87 +earlier work or a work "based on" the earlier work.
  88 +
  89 + A "covered work" means either the unmodified Program or a work based
  90 +on the Program.
  91 +
  92 + To "propagate" a work means to do anything with it that, without
  93 +permission, would make you directly or secondarily liable for
  94 +infringement under applicable copyright law, except executing it on a
  95 +computer or modifying a private copy. Propagation includes copying,
  96 +distribution (with or without modification), making available to the
  97 +public, and in some countries other activities as well.
  98 +
  99 + To "convey" a work means any kind of propagation that enables other
  100 +parties to make or receive copies. Mere interaction with a user through
  101 +a computer network, with no transfer of a copy, is not conveying.
  102 +
  103 + An interactive user interface displays "Appropriate Legal Notices"
  104 +to the extent that it includes a convenient and prominently visible
  105 +feature that (1) displays an appropriate copyright notice, and (2)
  106 +tells the user that there is no warranty for the work (except to the
  107 +extent that warranties are provided), that licensees may convey the
  108 +work under this License, and how to view a copy of this License. If
  109 +the interface presents a list of user commands or options, such as a
  110 +menu, a prominent item in the list meets this criterion.
  111 +
  112 + 1. Source Code.
  113 +
  114 + The "source code" for a work means the preferred form of the work
  115 +for making modifications to it. "Object code" means any non-source
  116 +form of a work.
  117 +
  118 + A "Standard Interface" means an interface that either is an official
  119 +standard defined by a recognized standards body, or, in the case of
  120 +interfaces specified for a particular programming language, one that
  121 +is widely used among developers working in that language.
  122 +
  123 + The "System Libraries" of an executable work include anything, other
  124 +than the work as a whole, that (a) is included in the normal form of
  125 +packaging a Major Component, but which is not part of that Major
  126 +Component, and (b) serves only to enable use of the work with that
  127 +Major Component, or to implement a Standard Interface for which an
  128 +implementation is available to the public in source code form. A
  129 +"Major Component", in this context, means a major essential component
  130 +(kernel, window system, and so on) of the specific operating system
  131 +(if any) on which the executable work runs, or a compiler used to
  132 +produce the work, or an object code interpreter used to run it.
  133 +
  134 + The "Corresponding Source" for a work in object code form means all
  135 +the source code needed to generate, install, and (for an executable
  136 +work) run the object code and to modify the work, including scripts to
  137 +control those activities. However, it does not include the work's
  138 +System Libraries, or general-purpose tools or generally available free
  139 +programs which are used unmodified in performing those activities but
  140 +which are not part of the work. For example, Corresponding Source
  141 +includes interface definition files associated with source files for
  142 +the work, and the source code for shared libraries and dynamically
  143 +linked subprograms that the work is specifically designed to require,
  144 +such as by intimate data communication or control flow between those
  145 +subprograms and other parts of the work.
  146 +
  147 + The Corresponding Source need not include anything that users
  148 +can regenerate automatically from other parts of the Corresponding
  149 +Source.
  150 +
  151 + The Corresponding Source for a work in source code form is that
  152 +same work.
  153 +
  154 + 2. Basic Permissions.
  155 +
  156 + All rights granted under this License are granted for the term of
  157 +copyright on the Program, and are irrevocable provided the stated
  158 +conditions are met. This License explicitly affirms your unlimited
  159 +permission to run the unmodified Program. The output from running a
  160 +covered work is covered by this License only if the output, given its
  161 +content, constitutes a covered work. This License acknowledges your
  162 +rights of fair use or other equivalent, as provided by copyright law.
  163 +
  164 + You may make, run and propagate covered works that you do not
  165 +convey, without conditions so long as your license otherwise remains
  166 +in force. You may convey covered works to others for the sole purpose
  167 +of having them make modifications exclusively for you, or provide you
  168 +with facilities for running those works, provided that you comply with
  169 +the terms of this License in conveying all material for which you do
  170 +not control copyright. Those thus making or running the covered works
  171 +for you must do so exclusively on your behalf, under your direction
  172 +and control, on terms that prohibit them from making any copies of
  173 +your copyrighted material outside their relationship with you.
  174 +
  175 + Conveying under any other circumstances is permitted solely under
  176 +the conditions stated below. Sublicensing is not allowed; section 10
  177 +makes it unnecessary.
  178 +
  179 + 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
  180 +
  181 + No covered work shall be deemed part of an effective technological
  182 +measure under any applicable law fulfilling obligations under article
  183 +11 of the WIPO copyright treaty adopted on 20 December 1996, or
  184 +similar laws prohibiting or restricting circumvention of such
  185 +measures.
  186 +
  187 + When you convey a covered work, you waive any legal power to forbid
  188 +circumvention of technological measures to the extent such circumvention
  189 +is effected by exercising rights under this License with respect to
  190 +the covered work, and you disclaim any intention to limit operation or
  191 +modification of the work as a means of enforcing, against the work's
  192 +users, your or third parties' legal rights to forbid circumvention of
  193 +technological measures.
  194 +
  195 + 4. Conveying Verbatim Copies.
  196 +
  197 + You may convey verbatim copies of the Program's source code as you
  198 +receive it, in any medium, provided that you conspicuously and
  199 +appropriately publish on each copy an appropriate copyright notice;
  200 +keep intact all notices stating that this License and any
  201 +non-permissive terms added in accord with section 7 apply to the code;
  202 +keep intact all notices of the absence of any warranty; and give all
  203 +recipients a copy of this License along with the Program.
  204 +
  205 + You may charge any price or no price for each copy that you convey,
  206 +and you may offer support or warranty protection for a fee.
  207 +
  208 + 5. Conveying Modified Source Versions.
  209 +
  210 + You may convey a work based on the Program, or the modifications to
  211 +produce it from the Program, in the form of source code under the
  212 +terms of section 4, provided that you also meet all of these conditions:
  213 +
  214 + a) The work must carry prominent notices stating that you modified
  215 + it, and giving a relevant date.
  216 +
  217 + b) The work must carry prominent notices stating that it is
  218 + released under this License and any conditions added under section
  219 + 7. This requirement modifies the requirement in section 4 to
  220 + "keep intact all notices".
  221 +
  222 + c) You must license the entire work, as a whole, under this
  223 + License to anyone who comes into possession of a copy. This
  224 + License will therefore apply, along with any applicable section 7
  225 + additional terms, to the whole of the work, and all its parts,
  226 + regardless of how they are packaged. This License gives no
  227 + permission to license the work in any other way, but it does not
  228 + invalidate such permission if you have separately received it.
  229 +
  230 + d) If the work has interactive user interfaces, each must display
  231 + Appropriate Legal Notices; however, if the Program has interactive
  232 + interfaces that do not display Appropriate Legal Notices, your
  233 + work need not make them do so.
  234 +
  235 + A compilation of a covered work with other separate and independent
  236 +works, which are not by their nature extensions of the covered work,
  237 +and which are not combined with it such as to form a larger program,
  238 +in or on a volume of a storage or distribution medium, is called an
  239 +"aggregate" if the compilation and its resulting copyright are not
  240 +used to limit the access or legal rights of the compilation's users
  241 +beyond what the individual works permit. Inclusion of a covered work
  242 +in an aggregate does not cause this License to apply to the other
  243 +parts of the aggregate.
  244 +
  245 + 6. Conveying Non-Source Forms.
  246 +
  247 + You may convey a covered work in object code form under the terms
  248 +of sections 4 and 5, provided that you also convey the
  249 +machine-readable Corresponding Source under the terms of this License,
  250 +in one of these ways:
  251 +
  252 + a) Convey the object code in, or embodied in, a physical product
  253 + (including a physical distribution medium), accompanied by the
  254 + Corresponding Source fixed on a durable physical medium
  255 + customarily used for software interchange.
  256 +
  257 + b) Convey the object code in, or embodied in, a physical product
  258 + (including a physical distribution medium), accompanied by a
  259 + written offer, valid for at least three years and valid for as
  260 + long as you offer spare parts or customer support for that product
  261 + model, to give anyone who possesses the object code either (1) a
  262 + copy of the Corresponding Source for all the software in the
  263 + product that is covered by this License, on a durable physical
  264 + medium customarily used for software interchange, for a price no
  265 + more than your reasonable cost of physically performing this
  266 + conveying of source, or (2) access to copy the
  267 + Corresponding Source from a network server at no charge.
  268 +
  269 + c) Convey individual copies of the object code with a copy of the
  270 + written offer to provide the Corresponding Source. This
  271 + alternative is allowed only occasionally and noncommercially, and
  272 + only if you received the object code with such an offer, in accord
  273 + with subsection 6b.
  274 +
  275 + d) Convey the object code by offering access from a designated
  276 + place (gratis or for a charge), and offer equivalent access to the
  277 + Corresponding Source in the same way through the same place at no
  278 + further charge. You need not require recipients to copy the
  279 + Corresponding Source along with the object code. If the place to
  280 + copy the object code is a network server, the Corresponding Source
  281 + may be on a different server (operated by you or a third party)
  282 + that supports equivalent copying facilities, provided you maintain
  283 + clear directions next to the object code saying where to find the
  284 + Corresponding Source. Regardless of what server hosts the
  285 + Corresponding Source, you remain obligated to ensure that it is
  286 + available for as long as needed to satisfy these requirements.
  287 +
  288 + e) Convey the object code using peer-to-peer transmission, provided
  289 + you inform other peers where the object code and Corresponding
  290 + Source of the work are being offered to the general public at no
  291 + charge under subsection 6d.
  292 +
  293 + A separable portion of the object code, whose source code is excluded
  294 +from the Corresponding Source as a System Library, need not be
  295 +included in conveying the object code work.
  296 +
  297 + A "User Product" is either (1) a "consumer product", which means any
  298 +tangible personal property which is normally used for personal, family,
  299 +or household purposes, or (2) anything designed or sold for incorporation
  300 +into a dwelling. In determining whether a product is a consumer product,
  301 +doubtful cases shall be resolved in favor of coverage. For a particular
  302 +product received by a particular user, "normally used" refers to a
  303 +typical or common use of that class of product, regardless of the status
  304 +of the particular user or of the way in which the particular user
  305 +actually uses, or expects or is expected to use, the product. A product
  306 +is a consumer product regardless of whether the product has substantial
  307 +commercial, industrial or non-consumer uses, unless such uses represent
  308 +the only significant mode of use of the product.
  309 +
  310 + "Installation Information" for a User Product means any methods,
  311 +procedures, authorization keys, or other information required to install
  312 +and execute modified versions of a covered work in that User Product from
  313 +a modified version of its Corresponding Source. The information must
  314 +suffice to ensure that the continued functioning of the modified object
  315 +code is in no case prevented or interfered with solely because
  316 +modification has been made.
  317 +
  318 + If you convey an object code work under this section in, or with, or
  319 +specifically for use in, a User Product, and the conveying occurs as
  320 +part of a transaction in which the right of possession and use of the
  321 +User Product is transferred to the recipient in perpetuity or for a
  322 +fixed term (regardless of how the transaction is characterized), the
  323 +Corresponding Source conveyed under this section must be accompanied
  324 +by the Installation Information. But this requirement does not apply
  325 +if neither you nor any third party retains the ability to install
  326 +modified object code on the User Product (for example, the work has
  327 +been installed in ROM).
  328 +
  329 + The requirement to provide Installation Information does not include a
  330 +requirement to continue to provide support service, warranty, or updates
  331 +for a work that has been modified or installed by the recipient, or for
  332 +the User Product in which it has been modified or installed. Access to a
  333 +network may be denied when the modification itself materially and
  334 +adversely affects the operation of the network or violates the rules and
  335 +protocols for communication across the network.
  336 +
  337 + Corresponding Source conveyed, and Installation Information provided,
  338 +in accord with this section must be in a format that is publicly
  339 +documented (and with an implementation available to the public in
  340 +source code form), and must require no special password or key for
  341 +unpacking, reading or copying.
  342 +
  343 + 7. Additional Terms.
  344 +
  345 + "Additional permissions" are terms that supplement the terms of this
  346 +License by making exceptions from one or more of its conditions.
  347 +Additional permissions that are applicable to the entire Program shall
  348 +be treated as though they were included in this License, to the extent
  349 +that they are valid under applicable law. If additional permissions
  350 +apply only to part of the Program, that part may be used separately
  351 +under those permissions, but the entire Program remains governed by
  352 +this License without regard to the additional permissions.
  353 +
  354 + When you convey a copy of a covered work, you may at your option
  355 +remove any additional permissions from that copy, or from any part of
  356 +it. (Additional permissions may be written to require their own
  357 +removal in certain cases when you modify the work.) You may place
  358 +additional permissions on material, added by you to a covered work,
  359 +for which you have or can give appropriate copyright permission.
  360 +
  361 + Notwithstanding any other provision of this License, for material you
  362 +add to a covered work, you may (if authorized by the copyright holders of
  363 +that material) supplement the terms of this License with terms:
  364 +
  365 + a) Disclaiming warranty or limiting liability differently from the
  366 + terms of sections 15 and 16 of this License; or
  367 +
  368 + b) Requiring preservation of specified reasonable legal notices or
  369 + author attributions in that material or in the Appropriate Legal
  370 + Notices displayed by works containing it; or
  371 +
  372 + c) Prohibiting misrepresentation of the origin of that material, or
  373 + requiring that modified versions of such material be marked in
  374 + reasonable ways as different from the original version; or
  375 +
  376 + d) Limiting the use for publicity purposes of names of licensors or
  377 + authors of the material; or
  378 +
  379 + e) Declining to grant rights under trademark law for use of some
  380 + trade names, trademarks, or service marks; or
  381 +
  382 + f) Requiring indemnification of licensors and authors of that
  383 + material by anyone who conveys the material (or modified versions of
  384 + it) with contractual assumptions of liability to the recipient, for
  385 + any liability that these contractual assumptions directly impose on
  386 + those licensors and authors.
  387 +
  388 + All other non-permissive additional terms are considered "further
  389 +restrictions" within the meaning of section 10. If the Program as you
  390 +received it, or any part of it, contains a notice stating that it is
  391 +governed by this License along with a term that is a further
  392 +restriction, you may remove that term. If a license document contains
  393 +a further restriction but permits relicensing or conveying under this
  394 +License, you may add to a covered work material governed by the terms
  395 +of that license document, provided that the further restriction does
  396 +not survive such relicensing or conveying.
  397 +
  398 + If you add terms to a covered work in accord with this section, you
  399 +must place, in the relevant source files, a statement of the
  400 +additional terms that apply to those files, or a notice indicating
  401 +where to find the applicable terms.
  402 +
  403 + Additional terms, permissive or non-permissive, may be stated in the
  404 +form of a separately written license, or stated as exceptions;
  405 +the above requirements apply either way.
  406 +
  407 + 8. Termination.
  408 +
  409 + You may not propagate or modify a covered work except as expressly
  410 +provided under this License. Any attempt otherwise to propagate or
  411 +modify it is void, and will automatically terminate your rights under
  412 +this License (including any patent licenses granted under the third
  413 +paragraph of section 11).
  414 +
  415 + However, if you cease all violation of this License, then your
  416 +license from a particular copyright holder is reinstated (a)
  417 +provisionally, unless and until the copyright holder explicitly and
  418 +finally terminates your license, and (b) permanently, if the copyright
  419 +holder fails to notify you of the violation by some reasonable means
  420 +prior to 60 days after the cessation.
  421 +
  422 + Moreover, your license from a particular copyright holder is
  423 +reinstated permanently if the copyright holder notifies you of the
  424 +violation by some reasonable means, this is the first time you have
  425 +received notice of violation of this License (for any work) from that
  426 +copyright holder, and you cure the violation prior to 30 days after
  427 +your receipt of the notice.
  428 +
  429 + Termination of your rights under this section does not terminate the
  430 +licenses of parties who have received copies or rights from you under
  431 +this License. If your rights have been terminated and not permanently
  432 +reinstated, you do not qualify to receive new licenses for the same
  433 +material under section 10.
  434 +
  435 + 9. Acceptance Not Required for Having Copies.
  436 +
  437 + You are not required to accept this License in order to receive or
  438 +run a copy of the Program. Ancillary propagation of a covered work
  439 +occurring solely as a consequence of using peer-to-peer transmission
  440 +to receive a copy likewise does not require acceptance. However,
  441 +nothing other than this License grants you permission to propagate or
  442 +modify any covered work. These actions infringe copyright if you do
  443 +not accept this License. Therefore, by modifying or propagating a
  444 +covered work, you indicate your acceptance of this License to do so.
  445 +
  446 + 10. Automatic Licensing of Downstream Recipients.
  447 +
  448 + Each time you convey a covered work, the recipient automatically
  449 +receives a license from the original licensors, to run, modify and
  450 +propagate that work, subject to this License. You are not responsible
  451 +for enforcing compliance by third parties with this License.
  452 +
  453 + An "entity transaction" is a transaction transferring control of an
  454 +organization, or substantially all assets of one, or subdividing an
  455 +organization, or merging organizations. If propagation of a covered
  456 +work results from an entity transaction, each party to that
  457 +transaction who receives a copy of the work also receives whatever
  458 +licenses to the work the party's predecessor in interest had or could
  459 +give under the previous paragraph, plus a right to possession of the
  460 +Corresponding Source of the work from the predecessor in interest, if
  461 +the predecessor has it or can get it with reasonable efforts.
  462 +
  463 + You may not impose any further restrictions on the exercise of the
  464 +rights granted or affirmed under this License. For example, you may
  465 +not impose a license fee, royalty, or other charge for exercise of
  466 +rights granted under this License, and you may not initiate litigation
  467 +(including a cross-claim or counterclaim in a lawsuit) alleging that
  468 +any patent claim is infringed by making, using, selling, offering for
  469 +sale, or importing the Program or any portion of it.
  470 +
  471 + 11. Patents.
  472 +
  473 + A "contributor" is a copyright holder who authorizes use under this
  474 +License of the Program or a work on which the Program is based. The
  475 +work thus licensed is called the contributor's "contributor version".
  476 +
  477 + A contributor's "essential patent claims" are all patent claims
  478 +owned or controlled by the contributor, whether already acquired or
  479 +hereafter acquired, that would be infringed by some manner, permitted
  480 +by this License, of making, using, or selling its contributor version,
  481 +but do not include claims that would be infringed only as a
  482 +consequence of further modification of the contributor version. For
  483 +purposes of this definition, "control" includes the right to grant
  484 +patent sublicenses in a manner consistent with the requirements of
  485 +this License.
  486 +
  487 + Each contributor grants you a non-exclusive, worldwide, royalty-free
  488 +patent license under the contributor's essential patent claims, to
  489 +make, use, sell, offer for sale, import and otherwise run, modify and
  490 +propagate the contents of its contributor version.
  491 +
  492 + In the following three paragraphs, a "patent license" is any express
  493 +agreement or commitment, however denominated, not to enforce a patent
  494 +(such as an express permission to practice a patent or covenant not to
  495 +sue for patent infringement). To "grant" such a patent license to a
  496 +party means to make such an agreement or commitment not to enforce a
  497 +patent against the party.
  498 +
  499 + If you convey a covered work, knowingly relying on a patent license,
  500 +and the Corresponding Source of the work is not available for anyone
  501 +to copy, free of charge and under the terms of this License, through a
  502 +publicly available network server or other readily accessible means,
  503 +then you must either (1) cause the Corresponding Source to be so
  504 +available, or (2) arrange to deprive yourself of the benefit of the
  505 +patent license for this particular work, or (3) arrange, in a manner
  506 +consistent with the requirements of this License, to extend the patent
  507 +license to downstream recipients. "Knowingly relying" means you have
  508 +actual knowledge that, but for the patent license, your conveying the
  509 +covered work in a country, or your recipient's use of the covered work
  510 +in a country, would infringe one or more identifiable patents in that
  511 +country that you have reason to believe are valid.
  512 +
  513 + If, pursuant to or in connection with a single transaction or
  514 +arrangement, you convey, or propagate by procuring conveyance of, a
  515 +covered work, and grant a patent license to some of the parties
  516 +receiving the covered work authorizing them to use, propagate, modify
  517 +or convey a specific copy of the covered work, then the patent license
  518 +you grant is automatically extended to all recipients of the covered
  519 +work and works based on it.
  520 +
  521 + A patent license is "discriminatory" if it does not include within
  522 +the scope of its coverage, prohibits the exercise of, or is
  523 +conditioned on the non-exercise of one or more of the rights that are
  524 +specifically granted under this License. You may not convey a covered
  525 +work if you are a party to an arrangement with a third party that is
  526 +in the business of distributing software, under which you make payment
  527 +to the third party based on the extent of your activity of conveying
  528 +the work, and under which the third party grants, to any of the
  529 +parties who would receive the covered work from you, a discriminatory
  530 +patent license (a) in connection with copies of the covered work
  531 +conveyed by you (or copies made from those copies), or (b) primarily
  532 +for and in connection with specific products or compilations that
  533 +contain the covered work, unless you entered into that arrangement,
  534 +or that patent license was granted, prior to 28 March 2007.
  535 +
  536 + Nothing in this License shall be construed as excluding or limiting
  537 +any implied license or other defenses to infringement that may
  538 +otherwise be available to you under applicable patent law.
  539 +
  540 + 12. No Surrender of Others' Freedom.
  541 +
  542 + If conditions are imposed on you (whether by court order, agreement or
  543 +otherwise) that contradict the conditions of this License, they do not
  544 +excuse you from the conditions of this License. If you cannot convey a
  545 +covered work so as to satisfy simultaneously your obligations under this
  546 +License and any other pertinent obligations, then as a consequence you may
  547 +not convey it at all. For example, if you agree to terms that obligate you
  548 +to collect a royalty for further conveying from those to whom you convey
  549 +the Program, the only way you could satisfy both those terms and this
  550 +License would be to refrain entirely from conveying the Program.
  551 +
  552 + 13. Use with the GNU Affero General Public License.
  553 +
  554 + Notwithstanding any other provision of this License, you have
  555 +permission to link or combine any covered work with a work licensed
  556 +under version 3 of the GNU Affero General Public License into a single
  557 +combined work, and to convey the resulting work. The terms of this
  558 +License will continue to apply to the part which is the covered work,
  559 +but the special requirements of the GNU Affero General Public License,
  560 +section 13, concerning interaction through a network will apply to the
  561 +combination as such.
  562 +
  563 + 14. Revised Versions of this License.
  564 +
  565 + The Free Software Foundation may publish revised and/or new versions of
  566 +the GNU General Public License from time to time. Such new versions will
  567 +be similar in spirit to the present version, but may differ in detail to
  568 +address new problems or concerns.
  569 +
  570 + Each version is given a distinguishing version number. If the
  571 +Program specifies that a certain numbered version of the GNU General
  572 +Public License "or any later version" applies to it, you have the
  573 +option of following the terms and conditions either of that numbered
  574 +version or of any later version published by the Free Software
  575 +Foundation. If the Program does not specify a version number of the
  576 +GNU General Public License, you may choose any version ever published
  577 +by the Free Software Foundation.
  578 +
  579 + If the Program specifies that a proxy can decide which future
  580 +versions of the GNU General Public License can be used, that proxy's
  581 +public statement of acceptance of a version permanently authorizes you
  582 +to choose that version for the Program.
  583 +
  584 + Later license versions may give you additional or different
  585 +permissions. However, no additional obligations are imposed on any
  586 +author or copyright holder as a result of your choosing to follow a
  587 +later version.
  588 +
  589 + 15. Disclaimer of Warranty.
  590 +
  591 + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
  592 +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  593 +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
  594 +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
  595 +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  596 +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
  597 +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
  598 +ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  599 +
  600 + 16. Limitation of Liability.
  601 +
  602 + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  603 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
  604 +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
  605 +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
  606 +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  607 +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
  608 +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
  609 +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
  610 +SUCH DAMAGES.
  611 +
  612 + 17. Interpretation of Sections 15 and 16.
  613 +
  614 + If the disclaimer of warranty and limitation of liability provided
  615 +above cannot be given local legal effect according to their terms,
  616 +reviewing courts shall apply local law that most closely approximates
  617 +an absolute waiver of all civil liability in connection with the
  618 +Program, unless a warranty or assumption of liability accompanies a
  619 +copy of the Program in return for a fee.
  620 +
  621 + END OF TERMS AND CONDITIONS
  622 +
  623 + How to Apply These Terms to Your New Programs
  624 +
  625 + If you develop a new program, and you want it to be of the greatest
  626 +possible use to the public, the best way to achieve this is to make it
  627 +free software which everyone can redistribute and change under these terms.
  628 +
  629 + To do so, attach the following notices to the program. It is safest
  630 +to attach them to the start of each source file to most effectively
  631 +state the exclusion of warranty; and each file should have at least
  632 +the "copyright" line and a pointer to where the full notice is found.
  633 +
  634 + <one line to give the program's name and a brief idea of what it does.>
  635 + Copyright (C) <year> <name of author>
  636 +
  637 + This program is free software: you can redistribute it and/or modify
  638 + it under the terms of the GNU General Public License as published by
  639 + the Free Software Foundation, either version 3 of the License, or
  640 + (at your option) any later version.
  641 +
  642 + This program is distributed in the hope that it will be useful,
  643 + but WITHOUT ANY WARRANTY; without even the implied warranty of
  644 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  645 + GNU General Public License for more details.
  646 +
  647 + You should have received a copy of the GNU General Public License
  648 + along with this program. If not, see <http://www.gnu.org/licenses/>.
  649 +
  650 +Also add information on how to contact you by electronic and paper mail.
  651 +
  652 + If the program does terminal interaction, make it output a short
  653 +notice like this when it starts in an interactive mode:
  654 +
  655 + <program> Copyright (C) <year> <name of author>
  656 + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  657 + This is free software, and you are welcome to redistribute it
  658 + under certain conditions; type `show c' for details.
  659 +
  660 +The hypothetical commands `show w' and `show c' should show the appropriate
  661 +parts of the General Public License. Of course, your program's commands
  662 +might be different; for a GUI interface, you would use an "about box".
  663 +
  664 + You should also get your employer (if you work as a programmer) or school,
  665 +if any, to sign a "copyright disclaimer" for the program, if necessary.
  666 +For more information on this, and how to apply and follow the GNU GPL, see
  667 +<http://www.gnu.org/licenses/>.
  668 +
  669 + The GNU General Public License does not permit incorporating your program
  670 +into proprietary programs. If your program is a subroutine library, you
  671 +may consider it more useful to permit linking proprietary applications with
  672 +the library. If this is what you want to do, use the GNU Lesser General
  673 +Public License instead of this License. But first, please read
  674 +<http://www.gnu.org/philosophy/why-not-lgpl.html>.
0 675 \ No newline at end of file
... ...
Readme.md 0 → 100644
  1 +++ a/Readme.md
... ... @@ -0,0 +1,25 @@
  1 +Protocolo Eletrônico - Evolução do Sistema CADSEI
  2 +==========================
  3 +
  4 +
  5 +* [Licença](LICENSE)
  6 +* [Como contribuir com este Projeto](CONTRIBUTING.md)
  7 +* [Changelog](CHANGELOG.md)
  8 +
  9 +
  10 +
  11 +1.0 - Objetivo e demais informações
  12 +------------
  13 +
  14 +> Objetivo Geral: O Protocolo Eletrônico do Ministério da Justiça é uma evolução do software CADSEI, desenvolvido pelo Ministério das Comunicações.
  15 +
  16 +Agradecemos a gentileza deste ministério em compartilhar os referidos códigos, bem como louvar a iniciativa colaborativa tomada nessa ocasião.
  17 +
  18 +
  19 +2.0 - Responsáveis e Interessados
  20 +------------
  21 +
  22 +| Papel | Interessados | Responsável |
  23 +|-----------------------|-----------------------------------------------------|----------------------------------------|
  24 +| Patrocinador | Coordenação-Geral de Tecnologia da Informação do Ministério da Justiça | Vitor Reis da Costa da Silva [:e-mail:](<mailto:vitor.reis@mj.gov.br>) |
  25 +| Patrocinador | Secretaria-Executiva do Ministério da Justiça | Marco Antonio Konopacki,Assessor [:e-mail:](<mailto:marco.konopacki@mj.gov.br>) |
0 26 \ No newline at end of file
... ...
VERSION 0 → 100644
  1 +++ a/VERSION
... ... @@ -0,0 +1 @@
  1 +1.2.0
0 2 \ No newline at end of file
... ...
banco_de_dados/Scrip_atualizacao_2015_09_12.sql 0 → 100644
  1 +++ a/banco_de_dados/Scrip_atualizacao_2015_09_12.sql
... ... @@ -0,0 +1,70 @@
  1 +CREATE TABLE
  2 + cadsei.CAD_PARAMETRO
  3 + (
  4 + ID_PARAMETRO bigint NOT NULL AUTO_INCREMENT,
  5 + NOME_PARAMETRO VARCHAR(200),
  6 + VALOR_PARAMETRO VARCHAR(1000),
  7 + PRIMARY KEY (ID_PARAMETRO)
  8 + )
  9 + ENGINE=InnoDB DEFAULT CHARSET=utf8;
  10 +
  11 +insert into CAD_PARAMETRO (NOME_PARAMETRO, VALOR_PARAMETRO) values ('URL_WEB_SERVICE_SEI', 'http://sei.treinamento.mj.gov.br/sei/ws/SeiWS.php');
  12 +
  13 +
  14 +
  15 +ALTER TABLE cadsei.cad_solicitacao MODIFY COLUMN ID_SOLICITACAO INT NOT NULL;
  16 +
  17 +
  18 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (295, 'Requerimento');
  19 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (504, 'Carta');
  20 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (596, 'Petição');
  21 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (431, 'Nota Fiscal');
  22 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (910, 'Ordem de Serviço');
  23 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (713, 'Denúncia');
  24 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (1172, 'Fatura');
  25 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (290, 'Ofício');
  26 +insert into cadsei.cad_solicitacao (ID_SOLICITACAO, DSC_SOLICITACAO) values (292, 'Ofício-Circular');
  27 +
  28 +delete from cadsei.cad_servico_solicitacao;
  29 +
  30 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (1, 1, 295);
  31 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (2, 1, 504);
  32 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (3, 1, 596);
  33 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (4, 1, 431);
  34 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (5, 1, 910);
  35 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (6, 1, 290);
  36 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (7, 1, 292);
  37 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (8, 1, 1172);
  38 +insert into cadsei.cad_servico_solicitacao (ID_SERVICO_SOLICITACAO, ID_SERVICO, ID_SOLICITACAO) values (9, 1, 713);
  39 +
  40 +
  41 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  42 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 295);
  43 +
  44 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  45 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 504);
  46 +
  47 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  48 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 596);
  49 +
  50 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  51 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 431);
  52 +
  53 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  54 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 910);
  55 +
  56 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  57 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 290);
  58 +
  59 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  60 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 1172);
  61 +
  62 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  63 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 713);
  64 +
  65 +insert into cadsei.cad_sei_integracao (ID_TIPO_PROCEDIMENTO, NUM_ASSUNTO, NUM_NIVEL_ACESSO,
  66 + ID_UNIDADE, ID_AREA, ID_SERVICO, ID_SOLICITACAO) values ('100001202', '063.2', '', '110000834', 1, 1, 292);
  67 +
  68 +
  69 +
  70 +
... ...
codigos_fonte/.classpath 0 → 100644
  1 +++ a/codigos_fonte/.classpath
... ... @@ -0,0 +1,24 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry kind="src" path="src"/>
  4 + <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
  5 + <classpathentry kind="src" path="src-arq"/>
  6 + <classpathentry kind="src" path="resources"/>
  7 + <classpathentry kind="src" path="src-client"/>
  8 + <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 4.2 Runtime">
  9 + <attributes>
  10 + <attribute name="owner.project.facets" value="#system#;jst.web"/>
  11 + </attributes>
  12 + </classpathentry>
  13 + <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
  14 + <classpathentry kind="lib" path="WebApp/WEB-INF/lib/cxf-xjc-ts-2.2.9.jar"/>
  15 + <classpathentry kind="lib" path="/home/sebast/Aplicativos/Java/jboss-4.2.3_MJ/server/default/deploy/mj/03comp/MJ_Corporativo.jar"/>
  16 + <classpathentry kind="lib" path="/home/sebast/Aplicativos/Java/jboss-4.2.3_MJ/server/default/deploy/mj/03comp/MJSeguranca2.jar" sourcepath="/CompSeguranca2"/>
  17 + <classpathentry kind="lib" path="WebApp/WEB-INF/lib/cxf-2.2.9.jar"/>
  18 + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-6-oracle">
  19 + <attributes>
  20 + <attribute name="owner.project.facets" value="java"/>
  21 + </attributes>
  22 + </classpathentry>
  23 + <classpathentry kind="output" path="WebApp/WEB-INF/classes"/>
  24 +</classpath>
... ...
codigos_fonte/.gitignore 0 → 100644
  1 +++ a/codigos_fonte/.gitignore
... ... @@ -0,0 +1 @@
  1 +/build
... ...
codigos_fonte/.project 0 → 100644
  1 +++ a/codigos_fonte/.project
... ... @@ -0,0 +1,47 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>cadmj</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>tern.eclipse.ide.core.ternBuilder</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + <buildCommand>
  14 + <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
  15 + <arguments>
  16 + </arguments>
  17 + </buildCommand>
  18 + <buildCommand>
  19 + <name>org.eclipse.jdt.core.javabuilder</name>
  20 + <arguments>
  21 + </arguments>
  22 + </buildCommand>
  23 + <buildCommand>
  24 + <name>org.eclipse.wst.common.project.facet.core.builder</name>
  25 + <arguments>
  26 + </arguments>
  27 + </buildCommand>
  28 + <buildCommand>
  29 + <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
  30 + <arguments>
  31 + </arguments>
  32 + </buildCommand>
  33 + <buildCommand>
  34 + <name>org.eclipse.wst.validation.validationbuilder</name>
  35 + <arguments>
  36 + </arguments>
  37 + </buildCommand>
  38 + </buildSpec>
  39 + <natures>
  40 + <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
  41 + <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
  42 + <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
  43 + <nature>org.eclipse.jdt.core.javanature</nature>
  44 + <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
  45 + <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
  46 + </natures>
  47 +</projectDescription>
... ...
codigos_fonte/.settings/org.eclipse.core.resources.prefs 0 → 100644
  1 +++ a/codigos_fonte/.settings/org.eclipse.core.resources.prefs
... ... @@ -0,0 +1,3 @@
  1 +eclipse.preferences.version=1
  2 +encoding//src/br/gov/mc/cadsei/util/CpfCnpjUtil.java=UTF-8
  3 +encoding//src/br/gov/mc/cadsei/util/EnvioMail.java=ISO-8859-1
... ...
codigos_fonte/.settings/org.eclipse.jdt.core.prefs 0 → 100644
  1 +++ a/codigos_fonte/.settings/org.eclipse.jdt.core.prefs
... ... @@ -0,0 +1,12 @@
  1 +eclipse.preferences.version=1
  2 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
  3 +org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
  4 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
  5 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
  6 +org.eclipse.jdt.core.compiler.compliance=1.5
  7 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate
  8 +org.eclipse.jdt.core.compiler.debug.localVariable=generate
  9 +org.eclipse.jdt.core.compiler.debug.sourceFile=generate
  10 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
  11 +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
  12 +org.eclipse.jdt.core.compiler.source=1.5
... ...
codigos_fonte/.settings/org.eclipse.ltk.core.refactoring.prefs 0 → 100644
  1 +++ a/codigos_fonte/.settings/org.eclipse.ltk.core.refactoring.prefs
... ... @@ -0,0 +1,2 @@
  1 +eclipse.preferences.version=1
  2 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
... ...
codigos_fonte/.settings/org.eclipse.wst.common.component 0 → 100644
  1 +++ a/codigos_fonte/.settings/org.eclipse.wst.common.component
... ... @@ -0,0 +1,11 @@
  1 +<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
  2 + <wb-module deploy-name="cadmj">
  3 + <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
  4 + <wb-resource deploy-path="/WEB-INF/classes" source-path="/src-arq"/>
  5 + <wb-resource deploy-path="/WEB-INF/classes" source-path="/resources"/>
  6 + <wb-resource deploy-path="/WEB-INF/classes" source-path="/src-client"/>
  7 + <wb-resource deploy-path="/" source-path="/WebApp" tag="defaultRootSource"/>
  8 + <property name="context-root" value="cadmj"/>
  9 + <property name="java-output-path" value="/cadmj/WebApp/WEB-INF/classes"/>
  10 + </wb-module>
  11 +</project-modules>
... ...
codigos_fonte/.settings/org.eclipse.wst.common.project.facet.core.xml 0 → 100644
  1 +++ a/codigos_fonte/.settings/org.eclipse.wst.common.project.facet.core.xml
... ... @@ -0,0 +1,8 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<faceted-project>
  3 + <runtime name="JBoss 4.2 Runtime"/>
  4 + <fixed facet="wst.jsdt.web"/>
  5 + <installed facet="java" version="1.5"/>
  6 + <installed facet="jst.web" version="2.5"/>
  7 + <installed facet="wst.jsdt.web" version="1.0"/>
  8 +</faceted-project>
... ...
codigos_fonte/.settings/org.eclipse.wst.ws.service.policy.prefs 0 → 100644
  1 +++ a/codigos_fonte/.settings/org.eclipse.wst.ws.service.policy.prefs
... ... @@ -0,0 +1,2 @@
  1 +eclipse.preferences.version=1
  2 +org.eclipse.wst.ws.service.policy.projectEnabled=false
... ...
codigos_fonte/.tern-project 0 → 100644
  1 +++ a/codigos_fonte/.tern-project
... ... @@ -0,0 +1 @@
  1 +{"ide":{},"libs":["ecma5","browser"],"plugins":{"guess-types":{},"angular":{}}}
0 2 \ No newline at end of file
... ...
codigos_fonte/Códigos Fonte.md 0 → 100644
  1 +++ a/codigos_fonte/Códigos Fonte.md
... ... @@ -0,0 +1,9 @@
  1 +Códigos Fonte
  2 +==========================
  3 +
  4 +
  5 +### Atenção!
  6 +
  7 +Este diretório contém os Códigos fonte relacionados ao projeto. Neste repositório poderão constar documentos como:
  8 +
  9 +-Código fonte
0 10 \ No newline at end of file
... ...
codigos_fonte/WebApp/META-INF/MANIFEST.MF 0 → 100644
  1 +++ a/codigos_fonte/WebApp/META-INF/MANIFEST.MF
... ... @@ -0,0 +1,3 @@
  1 +Manifest-Version: 1.0
  2 +Class-Path:
  3 +
... ...
codigos_fonte/WebApp/WEB-INF/.faces-config.xml.jsfdia 0 → 100644
  1 +++ a/codigos_fonte/WebApp/WEB-INF/.faces-config.xml.jsfdia
... ... @@ -0,0 +1,6 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<PROCESS model-entity="JSFProcess">
  3 + <PROCESS-ITEM NAME="rules:#pages#externo#recuperar-senha.xhtml"
  4 + PATH="/pages/externo/recuperar-senha.xhtml" SHAPE="235,91,0,0"
  5 + model-entity="JSFProcessGroup" persistent="true"/>
  6 +</PROCESS>
... ...
codigos_fonte/WebApp/WEB-INF/.gitignore 0 → 100644
  1 +++ a/codigos_fonte/WebApp/WEB-INF/.gitignore
... ... @@ -0,0 +1 @@
  1 +/classes
... ...
codigos_fonte/WebApp/WEB-INF/faces-config.xml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/WEB-INF/faces-config.xml
... ... @@ -0,0 +1,30 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
  4 +
  5 + <application>
  6 +
  7 + <!-- Aplicação do Listener -->
  8 + <action-listener>br.gov.arquitetura.excecao.ExceptionHandler</action-listener>
  9 +
  10 + <!-- Arquivo de mensagens do fluxo de negócio do sistema interno -->
  11 + <resource-bundle>
  12 + <base-name>messages</base-name>
  13 + <var>messages</var>
  14 + </resource-bundle>
  15 +
  16 + <!-- Arquivo de Mensagem. Mensagem.properties -->
  17 + <message-bundle>constantes</message-bundle>
  18 +
  19 + <!-- EL para integração com Spring Framework -->
  20 + <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
  21 +
  22 + </application>
  23 +
  24 + <!-- Mecanimo para tratamento da sessão da aplicação externa -->
  25 + <lifecycle>
  26 + <phase-listener>br.gov.mc.cadsei.util.AuthorizationListener</phase-listener>
  27 + </lifecycle>
  28 +
  29 +
  30 +</faces-config>
0 31 \ No newline at end of file
... ...
codigos_fonte/WebApp/WEB-INF/jboss-web.xml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/WEB-INF/jboss-web.xml
... ... @@ -0,0 +1,5 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 4.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
  3 +<jboss-web>
  4 + <context-root>/protocolo_eletronico</context-root>
  5 +</jboss-web>
0 6 \ No newline at end of file
... ...
codigos_fonte/WebApp/WEB-INF/lib/all-themes-1.0.9.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/axis-1.4.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/axis-jaxrpc-1.4.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/axis-saaj-1.4.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/axis-wsdl4j-1.5.1.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/com.springsource.org.aopalliance-1.0.0.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/commons-beanutils-1.7.0.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/commons-digester-1.8.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/commons-discovery-0.4.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/commons-fileupload-1.2.2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/commons-io-2.1.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/cxf-2.2.9.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/cxf-xjc-ts-2.2.9.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/envers-1.2.2.ga-hibernate-3.3.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/geronimo-annotation_1.0_spec-1.1.1.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/itext-2.1.0.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/jasperreports-4.1.1.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/javax.faces.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/jboss-faces.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/jboss-mc-int-servlet.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/jtds-1.2.5.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/mail-plugin.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/mail.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.aop-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.asm-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.aspects-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.beans-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.context-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.context.support-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.core-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.expression-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.instrument-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.instrument.tomcat-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.jdbc-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.jms-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.orm-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.oxm-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.test-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.transaction-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.web-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.web.portlet-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.web.servlet-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/org.springframework.web.struts-3.1.0.M2.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/poi-3.10-FINAL-20140208.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/poi-ooxml-3.10-FINAL-20140208.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/poi-ooxml-schemas-3.10-FINAL-20140208.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/primefaces-2.2.1.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/receita-client.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/rockframework-core-1.0.0-SNAPSHOT.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/rockframework-web-1.0.0-SNAPSHOT.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/seg-client.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/lib/versionador0.1.jar 0 → 100644
No preview for this file type
codigos_fonte/WebApp/WEB-INF/web.xml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/WEB-INF/web.xml
... ... @@ -0,0 +1,280 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  3 + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
  4 +
  5 + <display-name>PROTOCOLO_ELETRONICO</display-name>
  6 +
  7 + <welcome-file-list>
  8 + <welcome-file>index.html</welcome-file>
  9 + </welcome-file-list>
  10 +
  11 + <listener>
  12 + <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  13 + </listener>
  14 + <servlet>
  15 + <servlet-name>Faces Servlet</servlet-name>
  16 + <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  17 + <load-on-startup>1</load-on-startup>
  18 + </servlet>
  19 +
  20 + <servlet-mapping>
  21 + <servlet-name>Faces Servlet</servlet-name>
  22 + <url-pattern>*.jsf</url-pattern>
  23 + </servlet-mapping>
  24 +
  25 + <session-config>
  26 + <session-timeout>120</session-timeout>
  27 + </session-config>
  28 +
  29 + <!-- - This is useful because current browsers typically do not - set a character encoding even if specified in the HTML page or form -->
  30 + <!-- - Usado para resolver os problemas de encoding dos browser
  31 + <filter>
  32 + <filter-name>encodingFilter</filter-name>
  33 + <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  34 + <init-param>
  35 + <param-name>encoding</param-name>
  36 + <param-value>UTF-8</param-value>
  37 + </init-param>
  38 + <init-param>
  39 + <param-name>forceEncoding</param-name>
  40 + <param-value>true</param-value>
  41 + </init-param>
  42 + </filter>
  43 + <filter-mapping>
  44 + <filter-name>encodingFilter</filter-name>
  45 + <url-pattern>*.jsf</url-pattern>
  46 + </filter-mapping>
  47 + -->
  48 +
  49 + <!-- Filter criado definir compatibilidade do documento com IE8
  50 + <filter>
  51 + <filter-name>IE8CompatablityFixFilter</filter-name>
  52 + <filter-class>br.gov.arquitetura.filter.IE8CompatablityFix</filter-class>
  53 + </filter>
  54 + <filter-mapping>
  55 + <filter-name>IE8CompatablityFixFilter</filter-name>
  56 + <url-pattern>*.jsf</url-pattern>
  57 + </filter-mapping>
  58 + -->
  59 +
  60 + <!-- Filter criado para retirar a view quando o usuario usar o voltar do browser -->
  61 + <filter>
  62 + <filter-name>filterBackBrowser</filter-name>
  63 + <filter-class>br.gov.arquitetura.filter.FilterBackBrowser</filter-class>
  64 + </filter>
  65 + <filter-mapping>
  66 + <filter-name>filterBackBrowser</filter-name>
  67 + <url-pattern>*.jsf</url-pattern>
  68 + </filter-mapping>
  69 +
  70 + <!-- PARA ADICIONAR ARQUIVOS -->
  71 + <filter>
  72 + <filter-name>PrimeFaces FileUpload Filter</filter-name>
  73 + <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
  74 + </filter>
  75 + <filter-mapping>
  76 + <filter-name>PrimeFaces FileUpload Filter</filter-name>
  77 + <servlet-name>Faces Servlet</servlet-name>
  78 + </filter-mapping>
  79 +
  80 +
  81 + <!-- Usado para o captcha -->
  82 + <context-param>
  83 + <param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name>
  84 + <param-value>6LekVMkSAAAAAEBlVYVmFsB7g6W8EdEBdRpdIcDW</param-value>
  85 + </context-param>
  86 + <context-param>
  87 + <param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name>
  88 + <param-value>6LekVMkSAAAAAAqhBzaebLZTZH5MhoCAFXFXHiAA</param-value>
  89 + </context-param>
  90 +
  91 + <!-- alteracao necessaria para o uso do viewscope do JSF -->
  92 + <context-param>
  93 + <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
  94 + <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  95 + <param-value>server</param-value>
  96 + </context-param>
  97 +
  98 + <context-param>
  99 + <param-name>com.sun.faces.numberOfViewsInSession</param-name>
  100 + <param-value>100</param-value>
  101 + </context-param>
  102 +
  103 + <context-param>
  104 + <param-name>com.sun.faces.numberOfLogicalViews</param-name>
  105 + <param-value>200</param-value>
  106 + </context-param>
  107 +
  108 + <context-param>
  109 + <param-name>com.sun.faces.compressViewState</param-name>
  110 + <param-value>false</param-value>
  111 + </context-param>
  112 +
  113 + <context-param>
  114 + <param-name>com.sun.faces.serializeServerState</param-name>
  115 + <param-value>false</param-value>
  116 + </context-param>
  117 +
  118 + <!-- Fim das alteracoes viewscope -->
  119 +
  120 + <!-- Arquivo de mensagens -->
  121 + <context-param>
  122 + <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
  123 + <param-value>resources.application</param-value>
  124 + </context-param>
  125 +
  126 + <!-- Prime layout gerado -->
  127 + <context-param>
  128 + <param-name>primefaces.THEME</param-name>
  129 + <param-value>none</param-value>
  130 + <!--
  131 + <param-value>excite-bike</param-value>
  132 + -->
  133 +
  134 + </context-param>
  135 +
  136 + <!-- JSF 2: this tells JBoss 5 to use the jsf jars included in the app -->
  137 + <context-param>
  138 + <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
  139 + <param-value>true</param-value>
  140 + </context-param>
  141 +
  142 + <!-- JSF 2: this needs to be included to avoid an error message
  143 + <context-param>
  144 + <param-name>com.sun.faces.injectionProvider</param-name>
  145 + <param-value>org.jboss.web.jsf.integration.injection.JBossInjectionProvider</param-value>
  146 + </context-param>
  147 + -->
  148 + <!-- JSF 2: use pages named .xhtml instead of .jsp-->
  149 + <context-param>
  150 + <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  151 + <param-value>.xhtml</param-value>
  152 + </context-param>
  153 +
  154 + <!-- Parâmetros de configuração do PhaseListener de segurança do CADSEI para acesso externo -->
  155 + <!-- Endereço da página de login do sistema para redirecionamente quando o usuário não for autenticado -->
  156 + <context-param>
  157 + <param-name>login-page</param-name>
  158 + <param-value>/pages/externo/login_externo.xhtml</param-value>
  159 + </context-param>
  160 + <!-- URL's não verificadas pelo PhaseListener sempre que houver uma request capturada pelo Faces -->
  161 + <context-param>
  162 + <param-name>authorization-exceptions</param-name>
  163 + <param-value>/pages/externo/login_externo.xhtml,/pages/externo/recuperar-senha.xhtml,/pages/externo/declaracao-cadastro.xhtml,/pages/externo/cadastro-proponente.xhtml</param-value>
  164 + </context-param>
  165 + <context-param>
  166 + <param-name>javax.faces.PROJECT_STAGE</param-name>
  167 + <!-- <param-value>Development</param-value> -->
  168 + <param-value>Production</param-value>
  169 + </context-param>
  170 +
  171 + <!-- Spring -->
  172 + <listener>
  173 + <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  174 + </listener>
  175 + <filter>
  176 + <filter-name>spring</filter-name>
  177 + <filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
  178 + </filter>
  179 +
  180 + <filter>
  181 + <filter-name>hibernateSession</filter-name>
  182 + <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
  183 + <init-param>
  184 + <param-name>singleSession</param-name>
  185 + <!-- true: executa o flush no final da requisicao -->
  186 + <!-- false: cada chamada usa sua propria sessao e flush -->
  187 + <param-value>false</param-value>
  188 + </init-param>
  189 + </filter>
  190 +
  191 + <filter-mapping>
  192 + <filter-name>hibernateSession</filter-name>
  193 + <url-pattern>*.jsf</url-pattern>
  194 + </filter-mapping>
  195 +
  196 + <context-param>
  197 + <param-name>contextConfigLocation</param-name>
  198 + <param-value>classpath:applicationContext.xml</param-value>
  199 + </context-param>
  200 +
  201 + <context-param>
  202 + <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>
  203 + <param-value>true</param-value>
  204 + </context-param>
  205 +
  206 + <!-- SEG
  207 + <filter>
  208 + <filter-name>acesso</filter-name>
  209 + <filter-class>br.gov.mc.seg.client.web.filter.SegurancaFilter</filter-class>
  210 + <init-param>
  211 + <param-name>sistema</param-name>
  212 + <param-value>CADSEI</param-value>
  213 + </init-param>
  214 + <init-param>
  215 + <param-name>padrao</param-name>
  216 + <param-value>NEGAR</param-value>
  217 + </init-param>
  218 + <init-param>
  219 + <param-name>urlSeguranca</param-name>
  220 + <param-value>http://sistema.teste.mc.gov.br:8080/SEGWeb/logon/LogonServlet</param-value>
  221 + </init-param>
  222 + <init-param>
  223 + <param-name>urlSegurancaWS</param-name>
  224 + <param-value>http://sistema.teste.mc.gov.br:8080/SEGWeb/SegurancaWS</param-value>
  225 + </init-param>
  226 + <init-param>
  227 + <param-name>urlExcecoes</param-name>
  228 + <param-value>/templates/template.jsf,/pages/principal.jsf,/sair.jsf,/javax.faces.resource/*,</param-value>
  229 + </init-param>
  230 + <init-param>
  231 + <param-name>urlAcessoInvalido</param-name>
  232 + <param-value>/pages/error/acesso-invalido.jsf</param-value>
  233 + </init-param>
  234 + <init-param>
  235 + <param-name>urlLivres</param-name>
  236 + <param-value>/pages/externo/*.jsf,/javax.faces.resource/*,/pages/error/acesso-invalido.jsf,/pages/error/error.jsf,/pages/error/view-expired.jsf</param-value>
  237 + </init-param>
  238 + </filter>
  239 +
  240 + <filter-mapping>
  241 + <filter-name>acesso</filter-name>
  242 + <url-pattern>*.jsf</url-pattern>
  243 + </filter-mapping>
  244 + -->
  245 +
  246 + <!--
  247 + <servlet>
  248 + <servlet-name>Resource Servlet</servlet-name>
  249 + <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
  250 + <load-on-startup>1</load-on-startup>
  251 + </servlet>
  252 + <servlet-mapping>
  253 + <servlet-name>Resource Servlet</servlet-name>
  254 + <url-pattern>/primefaces_resource/*</url-pattern>
  255 + </servlet-mapping>
  256 + -->
  257 +
  258 + <!-- Paginas de erro -->
  259 + <error-page>
  260 + <exception-type>javax.faces.application.ViewExpiredException</exception-type>
  261 + <location>/pages/error/view-expired.jsf</location>
  262 + </error-page>
  263 + <error-page>
  264 + <exception-type>java.lang.Throwable</exception-type>
  265 + <location>/pages/error/error.jsf</location>
  266 + </error-page>
  267 + <error-page>
  268 + <error-code>404</error-code>
  269 + <location>/pages/error/error.jsf</location>
  270 + </error-page>
  271 + <error-page>
  272 + <error-code>405</error-code>
  273 + <location>/pages/error/error.jsf</location>
  274 + </error-page>
  275 + <error-page>
  276 + <error-code>500</error-code>
  277 + <location>/pages/error/error.jsf</location>
  278 + </error-page>
  279 +
  280 +</web-app>
0 281 \ No newline at end of file
... ...
codigos_fonte/WebApp/index.html 0 → 100644
  1 +++ a/codigos_fonte/WebApp/index.html
... ... @@ -0,0 +1,6 @@
  1 +<html>
  2 +<head>
  3 +<meta http-equiv="refresh"
  4 + content="0;url=../protocolo_eletronico/pages/login.jsf">
  5 +</head>
  6 +</html>
... ...
codigos_fonte/WebApp/modelos/modelo_declaracao_veracidade.pdf 0 → 100644
No preview for this file type
codigos_fonte/WebApp/pages/analisar-cadastro-pessoajuridica.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/analisar-cadastro-pessoajuridica.xhtml
... ... @@ -0,0 +1,892 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  8 + template="/templates/template.xhtml">
  9 +
  10 + <ui:define name="body">
  11 +
  12 + <style type="text/css">
  13 +.coluna5 {
  14 + border: 0 none !important;
  15 + font-size: 12px !important;
  16 + width: 5%;
  17 + line-height: 23px;
  18 +}
  19 +</style>
  20 +
  21 + <p:tabView id="tabs">
  22 +
  23 + <p:tab id="tabProponente" title="Pessoa física">
  24 +
  25 + <h:form id="form-proponente" prependId="false">
  26 +
  27 + <script type="text/javascript">
  28 + $ = jQuery;
  29 + $(document).ready(function() {
  30 +
  31 + //mascara para fixos de são paulo.
  32 + if($("#telefoneDDDProponente").val() == 11){
  33 + $("#telefone").mask("99999-9999");
  34 + }else{
  35 + $("#telefone").mask("9999-9999");
  36 + }
  37 + $("#telefoneDDDProponente").blur(function(){
  38 + if($("#telefoneDDDProponente").val() == 11){
  39 + $("#telefone").val("");
  40 + $("#telefone").attr('maxlength',10);
  41 + $("#telefone").unmask();
  42 + $("#telefone").mask("99999-9999");
  43 + }else{
  44 + $("#telefone").unmask();
  45 + $("#telefone").mask("9999-9999");
  46 + }
  47 + });
  48 +
  49 + $("#telefone").blur(function(){
  50 + qtdNum = $(this).val();
  51 + rs = qtdNum.substr(0,1);
  52 + if($("#telefoneDDDProponente").val() == 11){
  53 + if(rs != 9){
  54 + $("#telefone").val("9"+$(this).val());
  55 + }
  56 + }
  57 +
  58 + });
  59 +
  60 + //mascaras para celulares de são paulo
  61 + if($("#DDDcelular").val() == 11){
  62 + $("#celularProponente").mask("99999-9999");
  63 + }else{
  64 + $("#celularProponente").mask("9999-9999");
  65 + }
  66 + $("#DDDcelular").blur(function(){
  67 + if($("#DDDcelular").val() == 11){
  68 + $("#celularProponente").val("");
  69 + $("#celularProponente").attr('maxlength',10);
  70 + $("#celularProponente").unmask();
  71 + $("#celularProponente").mask("99999-9999");
  72 + }else{
  73 + $("#celularProponente").unmask();
  74 + $("#celularProponente").mask("9999-9999");
  75 + }
  76 + });
  77 +
  78 + $("#celularProponente").blur(function(){
  79 + qtdNum = $(this).val();
  80 + rs = qtdNum.substr(0,1);
  81 + if($("#DDDcelular").val() == 11){
  82 + if(rs != 9){
  83 + $("#celularProponente").val("9"+$(this).val());
  84 + }
  85 + }
  86 +
  87 + });
  88 +
  89 + });
  90 + </script>
  91 +
  92 + <p:fieldset legend="Informações da pessoa física">
  93 + <h:panelGrid id="panelPessoa" columns="6"
  94 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  95 + width="100%">
  96 + <h:outputText value="CPF:" />
  97 + <p:inputMask disabled="true"
  98 + value="#{analisarCadastroPessoaJuridicaBean.dto.cpf.numero}" size="18"
  99 + mask="999.999.999-99" />
  100 + <h:outputText />
  101 + <h:outputText />
  102 + <h:outputText />
  103 + <h:outputText />
  104 + </h:panelGrid>
  105 + <h:panelGrid columns="6"
  106 + columnClasses="coluna20,coluna60,coluna5,coluna5,coluna5,coluna5"
  107 + width="100%">
  108 + <h:outputText value="Nome:" />
  109 + <p:inputText disabled="true"
  110 + value="#{analisarCadastroPessoaJuridicaBean.dto.representante.pessoaFisica.nome}"
  111 + size="68" />
  112 + <h:outputText />
  113 + <h:outputText />
  114 + <h:outputText />
  115 + <h:outputText />
  116 + </h:panelGrid>
  117 + <h:panelGrid columns="6"
  118 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  119 + width="100%">
  120 + <h:outputText value="RG:" />
  121 + <p:inputText disabled="true"
  122 + value="#{analisarCadastroPessoaJuridicaBean.dto.rg.numero}" size="15" />
  123 + <h:outputText value="Órgão expedidor:" />
  124 + <p:inputText disabled="true"
  125 + value="#{analisarCadastroPessoaJuridicaBean.dto.rg.orgaoEmissor}" size="15" />
  126 + <h:outputText value="UF:" />
  127 + <p:inputText disabled="true"
  128 + value="#{analisarCadastroPessoaJuridicaBean.model.siglaUF.sigla}" size="3" />
  129 + </h:panelGrid>
  130 + <h:panelGrid columns="6"
  131 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  132 + width="100%">
  133 + <h:outputText value="Data de nascimento:" />
  134 + <p:calendar disabled="true"
  135 + value="#{analisarCadastroPessoaJuridicaBean.model.pessoaProponente.dataNascimento}"
  136 + size="15" pattern="dd/MM/yyyy" />
  137 + <h:outputText value="Sexo:" />
  138 + <h:selectOneRadio disabled="true"
  139 + value="#{analisarCadastroPessoaJuridicaBean.model.pessoaProponente.sexo}">
  140 + <f:selectItem itemLabel="Masculino" itemValue="M" />
  141 + <f:selectItem itemLabel="Feminino" itemValue="F" />
  142 + </h:selectOneRadio>
  143 + <h:outputText value="Cor ou raça:" />
  144 + <p:inputText disabled="true"
  145 + value="#{analisarCadastroPessoaJuridicaBean.model.pessoaProponente.corRaca.nomCorRaca}"
  146 + size="18" />
  147 + </h:panelGrid>
  148 + <h:panelGrid columns="6"
  149 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  150 + width="100%">
  151 + <h:outputText value="Telefone:" />
  152 + <h:panelGroup>
  153 + <p:inputMask id="telefoneDDDProponente" mask="99"
  154 + value="#{analisarCadastroPessoaJuridicaBean.dto.telefone.numDdd}" size="2"
  155 + disabled="true" />
  156 + <h:outputText value="&#160;-&#160;" />
  157 + <p:inputText id="telefone"
  158 + value="#{analisarCadastroPessoaJuridicaBean.dto.telefone.numTelefone}"
  159 + size="15" disabled="true" />
  160 + </h:panelGroup>
  161 + <h:outputText value="Celular:" />
  162 + <h:panelGroup>
  163 + <p:inputMask id="DDDcelular" mask="99"
  164 + value="#{analisarCadastroPessoaJuridicaBean.dto.celular.numDdd}" size="2"
  165 + disabled="true" />
  166 + <h:outputText value="&#160;-&#160;" />
  167 + <p:inputText id="celularProponente"
  168 + value="#{analisarCadastroPessoaJuridicaBean.dto.celular.numTelefone}"
  169 + size="15" disabled="true" />
  170 + </h:panelGroup>
  171 + <h:outputText />
  172 + <h:outputText />
  173 + </h:panelGrid>
  174 + <h:panelGrid columns="4"
  175 + columnClasses="coluna20,coluna60,coluna5,coluna15" width="100%">
  176 + <h:outputText value="Endereço:" />
  177 + <p:inputText disabled="true"
  178 + value="#{analisarCadastroPessoaJuridicaBean.dto.endereco.logradouro}"
  179 + size="68" />
  180 + <h:outputText value="Nº:" />
  181 + <p:inputText disabled="true"
  182 + value="#{analisarCadastroPessoaJuridicaBean.dto.endereco.numero}" size="5" />
  183 + </h:panelGrid>
  184 + <h:panelGrid columns="4"
  185 + columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  186 + <h:outputText value="CEP:" />
  187 + <p:inputMask disabled="true" mask="99.999-999"
  188 + value="#{analisarCadastroPessoaJuridicaBean.dto.endereco.cep}" size="10" />
  189 + <h:outputText value="Bairro/Distrito/Setor:" />
  190 + <p:inputText disabled="true"
  191 + value="#{analisarCadastroPessoaJuridicaBean.dto.endereco.bairro}" size="38" />
  192 + </h:panelGrid>
  193 + <h:panelGrid columns="4"
  194 + columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  195 + <h:outputText value="UF:" />
  196 + <p:inputText disabled="true"
  197 + value="#{analisarCadastroPessoaJuridicaBean.dto.endereco.municipio.uf.sigla}"
  198 + size="5" />
  199 + <h:outputText value="Município:&#160;&#160;" />
  200 + <p:inputText disabled="true"
  201 + value="#{analisarCadastroPessoaJuridicaBean.dto.endereco.municipio.nome}"
  202 + size="38" />
  203 + </h:panelGrid>
  204 + <h:panelGrid columns="6"
  205 + columnClasses="coluna20,coluna60,coluna5,coluna5,coluna5,coluna5"
  206 + width="100%">
  207 + <h:outputText value="E-mail da pessoa física:" />
  208 + <p:inputText disabled="true"
  209 + value="#{analisarCadastroPessoaJuridicaBean.dto.emailPessoaFisica.descricao}" size="68" />
  210 + <h:outputText />
  211 + <h:outputText />
  212 + <h:outputText />
  213 + <h:outputText />
  214 + </h:panelGrid>
  215 + <br />
  216 +
  217 + <p:fieldset legend="Cadastro OAB">
  218 + <h:panelGrid columns="4"
  219 + columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  220 + <h:outputText value="Possui OAB?" />
  221 + <h:selectOneRadio disabled="true"
  222 + value="#{analisarCadastroPessoaJuridicaBean.model.possuiOab}">
  223 + <f:selectItem itemLabel="Sim" itemValue="true" />
  224 + <f:selectItem itemLabel="Não" itemValue="false" />
  225 + </h:selectOneRadio>
  226 + <h:outputText value="Número OAB:" />
  227 + <h:panelGrid columns="1">
  228 + <p:inputText disabled="true" size="25"
  229 + value="#{analisarCadastroPessoaJuridicaBean.model.numeroRegistroOab}" />
  230 + </h:panelGrid>
  231 + </h:panelGrid>
  232 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80"
  233 + width="100%">
  234 + <h:outputText value="Documento - Registro OAB:" />
  235 + <h:panelGrid columns="2">
  236 + <p:inputText disabled="true" size="50"
  237 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoOab.nomDocumento}" />
  238 + <h:commandLink
  239 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoOab.nomDocumento ne null}">
  240 + <h:graphicImage library="design/imagem"
  241 + name="icone-download.png" title="Baixar documento" />
  242 + <f:setPropertyActionListener
  243 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  244 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoOab}" />
  245 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  246 + </h:commandLink>
  247 + </h:panelGrid>
  248 + </h:panelGrid>
  249 + </p:fieldset>
  250 + <br />
  251 +
  252 + <p:fieldset legend="Documentos">
  253 +
  254 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75"
  255 + width="100%">
  256 + <h:outputText value="Documento de identidade:" />
  257 + <h:panelGrid columns="2">
  258 + <p:inputText disabled="true"
  259 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoRg.nomDocumento}"
  260 + size="50" />
  261 + <h:commandLink
  262 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoRg.nomDocumento ne null}">
  263 + <h:graphicImage library="design/imagem"
  264 + name="icone-download.png" title="Baixar documento" />
  265 + <f:setPropertyActionListener
  266 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  267 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoRg}" />
  268 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  269 + </h:commandLink>
  270 + </h:panelGrid>
  271 + <!--
  272 + <h:outputText value="Cadastro de Pessoa Física - CPF:" />
  273 + <h:panelGrid columns="2">
  274 + <p:inputText disabled="true"
  275 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoCpf.nomDocumento}"
  276 + size="50" />
  277 + <h:commandLink
  278 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoCpf.nomDocumento ne null}">
  279 + <h:graphicImage library="design/imagem"
  280 + name="icone-download.png" title="Baixar documento" />
  281 + <f:setPropertyActionListener
  282 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  283 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoCpf}" />
  284 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  285 + </h:commandLink>
  286 + </h:panelGrid>
  287 + -->
  288 + <h:outputText value="Comprovante de endereço:" />
  289 + <h:panelGrid columns="2">
  290 + <p:inputText disabled="true"
  291 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoResidencia.nomDocumento}"
  292 + size="50" />
  293 + <h:commandLink
  294 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoResidencia.nomDocumento ne null}">
  295 + <h:graphicImage library="design/imagem"
  296 + name="icone-download.png" title="Baixar documento" />
  297 + <f:setPropertyActionListener
  298 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  299 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoResidencia}" />
  300 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  301 + </h:commandLink>
  302 + </h:panelGrid>
  303 + </h:panelGrid>
  304 +
  305 + </p:fieldset>
  306 + <br />
  307 + </p:fieldset>
  308 + </h:form>
  309 + <h:form id="form-analise-pf" prependId="false">
  310 + <br />
  311 + <p:fieldset legend="Análise técnica">
  312 +
  313 + <h:panelGroup id="messages">
  314 +
  315 + <p:message id="msgsaprovarPf" for="aprovarPf" />
  316 +
  317 + <p:message id="msgsreprovarPf" for="reprovarPf" />
  318 +
  319 + <p:message id="msgExgStatusPf" for="emExgStatusPf" />
  320 + </h:panelGroup>
  321 + <br />
  322 + <h:panelGrid columns="2" columnClasses="coluna15,coluna35">
  323 + <h:outputText value="Situação do cadastro:" />
  324 +
  325 + <h:outputText id="status"
  326 + value="#{analisarCadastroPessoaJuridicaBean.model.situacaoCadastro.descricao}"
  327 + style="font-weight: bold;" />
  328 + </h:panelGrid>
  329 +
  330 + <h:panelGrid columns="1">
  331 + <h:outputText value="Comentário:" style="font-size: 12px;" />
  332 + <p:inputTextarea id="comentarioPf" rows="7" maxlength="2000"
  333 + style="width: 800px;"
  334 + value="#{analisarCadastroPessoaJuridicaBean.model.descricaoAnaliseTecnica}" >
  335 + <f:ajax execute="comentarioPf" event="keyup" />
  336 + </p:inputTextarea>
  337 + </h:panelGrid>
  338 + </p:fieldset>
  339 +
  340 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80"
  341 + width="100%">
  342 + <h:outputText value="Situação da análise técnica:" />
  343 + <h:panelGrid columns="3">
  344 + <p:commandButton id="aprovarPf" value="Aprovado"
  345 + onclick="confirmarAprovacaoProponente.show()"
  346 + process="aprovarPf" />
  347 + <p:commandButton id="reprovarPf" value="Reprovado"
  348 + process="reprovarPf"
  349 + onclick="confirmarReprovacaoProponente.show()" />
  350 +
  351 + <p:commandButton id="determinarEmExPF" value="Em exigência"
  352 + ajax="true" process="determinarEmExPF"
  353 + onclick="confirmarEmexigenciaProponente.show()" />
  354 +
  355 + </h:panelGrid>
  356 + </h:panelGrid>
  357 +
  358 + <br />
  359 + <p:fieldset legend="Histórico de alteração"
  360 + rendered="#{not empty analisarCadastroPessoaJuridicaBean.model.listaHistorico}">
  361 + <p:dataTable value="#{analisarCadastroPessoaJuridicaBean.model.listaHistorico}"
  362 + var="i" emptyMessage="#{listarProponenteBean.emptyMessage}"
  363 + paginator="true" rowsPerPageTemplate="5,10,20,50,100" rows="10"
  364 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  365 + paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
  366 + currentPageReportTemplate="{currentPage} / {totalPages}"
  367 + rowIndexVar="rowIx"
  368 + style="max-width: 950px; overflow: auto; min-height:0%">
  369 + <p:column headerText="Campo alterado" sortBy="#{i.campoAlterado}">
  370 + <h:outputText value="#{i.campoAlterado}" />
  371 + </p:column>
  372 + <p:column headerText="Histórico da análise"
  373 + sortBy="#{i.situacaoCadastro.id}">
  374 + <h:outputText value="#{i.situacaoCadastro.descricao}" />
  375 + </p:column>
  376 + <p:column headerText="Data da alteração"
  377 + sortBy="#{i.dtAlteracao}">
  378 + <h:outputText value="#{i.dtAlteracao}">
  379 + <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss"
  380 + timeZone="GMT-3" locale="pt_BR" />
  381 + </h:outputText>
  382 + </p:column>
  383 + </p:dataTable>
  384 + </p:fieldset>
  385 + <br />
  386 +
  387 + <p:confirmDialog widgetVar="confirmarAprovacaoProponente"
  388 + message="Deseja confirmar a aprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  389 + position="center" header="Aprovação" severity="alert" modal="true"
  390 + width="325">
  391 + <p:commandButton value="Não"
  392 + onclick="confirmarAprovacaoProponente.hide()" type="button" />
  393 +
  394 + <p:commandButton value="Sim" id="aprovarPF"
  395 + update="status messages msgsaprovarPf comentarioPf"
  396 + oncomplete="confirmarAprovacaoProponente.hide();"
  397 + action="#{analisarCadastroPessoaJuridicaBean.aprovarProponente}"
  398 + process="form-analise-pf" />
  399 + </p:confirmDialog>
  400 +
  401 + <p:confirmDialog widgetVar="confirmarReprovacaoProponente"
  402 + message="Deseja confirmar a reprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  403 + position="center" header="Reprovação" severity="alert"
  404 + modal="true" width="325">
  405 +
  406 + <p:commandButton value="Não"
  407 + onclick="confirmarReprovacaoProponente.hide()" type="button" />
  408 +
  409 + <p:commandButton value="Sim" id="reprovarPF"
  410 + update="status messages msgsreprovarPf comentarioPf"
  411 + oncomplete="confirmarReprovacaoProponente.hide();"
  412 + action="#{analisarCadastroPessoaJuridicaBean.reprovarProponente}"
  413 + process="form-analise-pf" />
  414 + </p:confirmDialog>
  415 +
  416 + <p:confirmDialog widgetVar="confirmarEmexigenciaProponente"
  417 + message="Deseja confirmar a mudan&ccedil;a de status do cadastro para em Exig&ecirc;ncia?"
  418 + position="center" header="Reprovação" severity="alert"
  419 + modal="true" width="325">
  420 +
  421 + <p:commandButton value="Não"
  422 + onclick="confirmarEmexigenciaProponente.hide()" type="button" />
  423 +
  424 + <p:commandButton value="Sim" id="emExgStatusPf"
  425 + update="msgExgStatusPf messages status comentarioPf"
  426 + oncomplete="confirmarEmexigenciaProponente.hide();"
  427 + action="#{analisarCadastroPessoaJuridicaBean.determinarStatusEmExigenciaProponente}"
  428 + process="form-analise-pf" >
  429 + </p:commandButton>
  430 + </p:confirmDialog>
  431 + <div align="center"></div>
  432 + </h:form>
  433 + </p:tab>
  434 +
  435 + <p:tab id="tabEmpresa" title="Pessoa jurídica"
  436 + rendered="#{analisarCadastroPessoaJuridicaBean.renderTabEmpresa}">
  437 +
  438 + <h:form id="form-empresa" prependId="false">
  439 +
  440 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80"
  441 + width="100%"
  442 + rendered="#{fn:length(analisarCadastroPessoaJuridicaBean.model.empresas) > 1}">
  443 + <h:outputText styleClass="icoObrigatorio"
  444 + value="Empresa para análise:" />
  445 + <h:selectOneMenu id="empresa" converter="#{empresaConverter}"
  446 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa}">
  447 + <f:selectItems value="#{analisarCadastroPessoaJuridicaBean.model.empresas}"
  448 + var="e"
  449 + itemLabel="#{e.pessoaTitular.cnpjFormat}&#160;-&#160;#{e.pessoaTitular.razaoSocial}"
  450 + itemValue="#{e}" />
  451 + <f:ajax execute="empresa" event="change" listener="#{analisarCadastroPessoaJuridicaBean.changeEmpresa}"
  452 + render=":form-empresa :form-analise :form-analise:mensagensPj :form-analise:comentario
  453 +:form-analise-pf:comentarioPf"/>
  454 + </h:selectOneMenu>
  455 + </h:panelGrid>
  456 +
  457 + <h:panelGroup id="panel-empresa" layout="block">
  458 +
  459 + <p:fieldset legend="Informações da pessoa jurídica"
  460 + rendered="#{analisarCadastroPessoaJuridicaBean.renderDadosEmpresa}">
  461 +
  462 + <br />
  463 + <h:panelGroup id="pg-pj" layout="block">
  464 + <h:panelGrid id="panelGridPJ" columns="2"
  465 + columnClasses="coluna30,coluna70" width="100%">
  466 +
  467 + <h:outputText value="CNPJ:" />
  468 + <p:inputMask disabled="true" size="30"
  469 + mask="99.999.999/9999-99"
  470 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.pessoaTitular.cnpj}" />
  471 +
  472 + <h:outputText value="Nome comercial:" />
  473 + <p:inputText disabled="true" size="70"
  474 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.pessoaTitular.nomeFantasia}" />
  475 +
  476 + <h:outputText value="Razão social:" />
  477 + <p:inputText disabled="true" size="70"
  478 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.pessoaTitular.razaoSocial}" />
  479 +
  480 + <h:outputText value="Ano de constituição:" />
  481 + <p:inputText disabled="true" size="30"
  482 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.anoConstituicao}" />
  483 +
  484 + <h:outputText value="Quantidade de empregados:" />
  485 + <p:inputText disabled="true" size="30"
  486 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.qtdEmpregados}">
  487 + <f:convertNumber pattern="#,##0" type="number" />
  488 + </p:inputText>
  489 +
  490 + <h:outputText value="Capital social:" />
  491 + <p:inputText disabled="true" size="30"
  492 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.pessoaTitular.capitalSocial}">
  493 + <f:convertNumber type="currency" locale="pt_BR"
  494 + pattern="#,##0.00" />
  495 + </p:inputText>
  496 +
  497 + </h:panelGrid>
  498 + <br />
  499 + <!--
  500 + <p:fieldset legend="Tipo de serviço">
  501 + <h:panelGrid columnClasses="coluna25,coluna25" width="50%">
  502 + <h:selectManyCheckbox
  503 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.servicos}"
  504 + layout="pageDirection" disabled="true"
  505 + style="width:500px; height:100px;">
  506 + <f:selectItems value="#{analisarCadastroPessoaJuridicaBean.dto.servicos}"
  507 + var="i" itemLabel="#{i.dscServico}" itemValue="#{i}" />
  508 + </h:selectManyCheckbox>
  509 + </h:panelGrid>
  510 +
  511 + </p:fieldset>
  512 + <br />
  513 + -->
  514 +
  515 + <p:fieldset legend="Endereço">
  516 +
  517 + <script type="text/javascript">
  518 + $ = jQuery;
  519 + $(document).ready(function() {
  520 + // Ajusta layout de acordo com o navegador
  521 + adjustLayoutPosition();
  522 + });
  523 + function adjustLayoutPosition(){
  524 + if($.browser.msie){
  525 + $('#logradouro').css('width', '319px');
  526 + $('#numero').css('width', '48px');
  527 + $('#bairro').css('width', '400px');
  528 + $('#uf').css('width', '412px');
  529 + $('#cidade').css('width', '412px');
  530 + if(document.documentMode == 8){
  531 + $('#numero').css('width', '45px');
  532 + }
  533 + }else if($.browser.mozilla){
  534 + $('#numero').css('width', '50px');
  535 + }else if($.browser.webkit){
  536 + $('#numero').css('width', '47px');
  537 + }else if($.browser.opera){
  538 + $('#numero').css('width', '46px');
  539 + }
  540 + }
  541 + </script>
  542 +
  543 + <h:panelGrid columns="2" columnClasses="coluna30,coluna70"
  544 + width="100%">
  545 +
  546 + <h:outputText value="Endereço:" />
  547 + <h:panelGroup>
  548 + <p:inputText disabled="true" id="logradouro"
  549 + style="width: 331px;"
  550 + value="#{analisarCadastroPessoaJuridicaBean.dto.enderecoEmpresa.logradouro}" />
  551 + <h:outputText value="&#160;Nº&#160;" />
  552 + <p:inputText id="numero" style="width: 50px;" disabled="true"
  553 + value="#{analisarCadastroPessoaJuridicaBean.dto.enderecoEmpresa.numero}" />
  554 + </h:panelGroup>
  555 +
  556 + <h:outputText value="Bairro/Distrito/Setor:" />
  557 + <p:inputText id="bairro" style="width: 400px;" disabled="true"
  558 + value="#{analisarCadastroPessoaJuridicaBean.dto.enderecoEmpresa.bairro}" />
  559 +
  560 + <h:outputText value="UF:" />
  561 + <p:inputText id="uf" style="width: 400px;" disabled="true"
  562 + value="#{analisarCadastroPessoaJuridicaBean.dto.enderecoEmpresa.municipio.uf.sigla}" />
  563 +
  564 + <h:outputText value="Município:" />
  565 + <p:inputText id="cidade" style="width: 400px;" disabled="true"
  566 + value="#{analisarCadastroPessoaJuridicaBean.dto.enderecoEmpresa.municipio.nome}" />
  567 +
  568 + </h:panelGrid>
  569 +
  570 + </p:fieldset>
  571 + <br />
  572 +
  573 + <p:fieldset id="fsetRepLegal" legend="Representante legal">
  574 +
  575 + <h:panelGrid columns="2" columnClasses="coluna30,coluna70"
  576 + width="100%">
  577 +
  578 + <h:outputText value="CPF:" />
  579 + <p:inputMask id="cpfRepresentante" mask="999.999.999-99"
  580 + disabled="true" size="25"
  581 + value="#{analisarCadastroPessoaJuridicaBean.dto.cpfRepresentanteEmpresa.numero}" />
  582 +
  583 + <h:outputText value="Representante legal:" />
  584 + <p:inputText id="representanteLegal" style="width: 400px;"
  585 + maxlength="100" disabled="true"
  586 + value="#{analisarCadastroPessoaJuridicaBean.dto.representanteEmpresa.pessoaFisica.nome}" />
  587 +
  588 + <h:outputText value="RG:" />
  589 + <p:inputText id="rgRepresentante" maxlength="14"
  590 + value="#{analisarCadastroPessoaJuridicaBean.dto.rgRepresentanteEmpresa.numero}"
  591 + size="25" disabled="true" />
  592 +
  593 + <h:outputText value="Órgão expedidor:" />
  594 + <p:inputText id="orgaoEmissor" maxlength="5"
  595 + value="#{analisarCadastroPessoaJuridicaBean.dto.rgRepresentanteEmpresa.orgaoEmissor}"
  596 + size="25" disabled="true" />
  597 +
  598 + </h:panelGrid>
  599 +
  600 + </p:fieldset>
  601 + <br />
  602 +
  603 + <p:fieldset id="fsetComunicacaoOficial"
  604 + legend="Comunicação oficial">
  605 +
  606 + <script type="text/javascript">
  607 + $ = jQuery;
  608 + $(document).ready(function() {
  609 +
  610 + // Mascara para fixos de são paulo.
  611 + if($("#numDddTelefone").val() == 11){
  612 + $("#numTelefone").mask("99999-9999");
  613 + }else{
  614 + $("#numTelefone").mask("9999-9999");
  615 + }
  616 + $("#numDddTelefone").blur(function(){
  617 + if($("#numDddTelefone").val() == 11){
  618 + $("#numTelefone").val("");
  619 + $("#numTelefone").attr('maxlength',10);
  620 + $("#numTelefone").unmask();
  621 + $("#numTelefone").mask("99999-9999");
  622 + }else{
  623 + $("#numTelefone").unmask();
  624 + $("#numTelefone").mask("9999-9999");
  625 + }
  626 + });
  627 +
  628 + $("#numTelefone").blur(function(){
  629 + qtdNum = $(this).val();
  630 + rs = qtdNum.substr(0,1);
  631 + if($("#numDddTelefone").val() == 11){
  632 + if(rs != 9){
  633 + $("#numTelefone").val("9"+$(this).val());
  634 + }
  635 + }
  636 + });
  637 +
  638 + });
  639 + </script>
  640 +
  641 + <h:panelGrid columns="2" columnClasses="coluna30,coluna70"
  642 + width="100%">
  643 + <h:outputText value="Telefone:" />
  644 + <h:panelGroup layout="block">
  645 + <p:inputMask id="numDddTelefone" style="width: 30px;"
  646 + mask="99"
  647 + value="#{analisarCadastroPessoaJuridicaBean.dto.telefoneEmpresa.numDdd}"
  648 + disabled="true" />
  649 + <h:outputText value="&#160;-&#160;" />
  650 + <p:inputText id="numTelefone" style="width: 100px;"
  651 + maxlength="9"
  652 + value="#{analisarCadastroPessoaJuridicaBean.dto.telefoneEmpresa.numTelefone}"
  653 + disabled="true" />
  654 + </h:panelGroup>
  655 +
  656 + <h:outputText value="E-mail principal:" />
  657 + <p:inputText id="emailPj" style="width: 400px;"
  658 + value="#{analisarCadastroPessoaJuridicaBean.dto.emailEmpresa.descricao}"
  659 + disabled="true" />
  660 +
  661 + <h:outputText value="E-mail adicional 1:" />
  662 + <p:inputText id="emailAdicional1" style="width: 400px;"
  663 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.emailAdicional1}"
  664 + disabled="true" />
  665 +
  666 + <h:outputText value="E-mail adicional 2:" />
  667 + <p:inputText id="emailAdicional2" style="width: 400px;"
  668 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.emailAdicional2}"
  669 + disabled="true" />
  670 +
  671 + <h:outputText value="E-mail adicional 3:" />
  672 + <p:inputText id="emailAdicional3" style="width: 400px;"
  673 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.emailAdicional3}"
  674 + disabled="true" />
  675 +
  676 + <h:outputText value="E-mail adicional 4:" />
  677 + <p:inputText id="emailAdicional4" style="width: 400px;"
  678 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.emailAdicional4}"
  679 + disabled="true" />
  680 + </h:panelGrid>
  681 +
  682 + </p:fieldset>
  683 + <br />
  684 +
  685 + <script type="text/javascript">
  686 + $ = jQuery;
  687 + $(document).ready(function() {
  688 + // Configuração para campos de Real.
  689 + $("#capitalSocial").maskMoney({showSymbol:false, decimal:",", thousands:"."});
  690 + $("#anoConstituicao").numeric({decimal: false, negative: false});
  691 + $("#qtdEmpregados").maskMoney({thousands:".", precision:0});
  692 + });
  693 + </script>
  694 +
  695 + </h:panelGroup>
  696 +
  697 + <p:fieldset legend="Documentos">
  698 + <h:panelGrid columns="1">
  699 + <h:outputText style="font-size: 12px;" escape="false"
  700 + value="Atos constitutivos - Atos constitutivos, estatutos ou contratos sociais em vigor, devidamente registrados, em se tratando de sociedades comerciais, e, no caso de sociedades por ações, acompanhados de documentos de eleição de seus administradores:" />
  701 + <h:panelGrid columns="2">
  702 + <p:inputText
  703 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoAtosConstitutivos.nomDocumento}"
  704 + style="width: 370px;" disabled="true" />
  705 + <h:commandLink
  706 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoAtosConstitutivos.nomDocumento ne null }">
  707 + <h:graphicImage library="design/imagem"
  708 + name="icone-download.png" title="Baixar documento" />
  709 + <f:setPropertyActionListener
  710 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  711 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoAtosConstitutivos}" />
  712 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  713 + </h:commandLink>
  714 + </h:panelGrid>
  715 + </h:panelGrid>
  716 + <h:panelGrid columns="1">
  717 + <h:outputText style="font-size: 12px;" escape="false"
  718 + value="CNPJ - Comprovante de inscrição no Cadastro Nacional de Pessoas Jurídicas - CNPJ/MF:" />
  719 + <h:panelGrid columns="2">
  720 + <p:inputText
  721 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoCnpj.nomDocumento}"
  722 + style="width: 370px;" disabled="true" />
  723 + <h:commandLink
  724 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoCnpj.nomDocumento ne null }">
  725 + <h:graphicImage library="design/imagem"
  726 + name="icone-download.png" title="Baixar documento" />
  727 + <f:setPropertyActionListener
  728 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  729 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoCnpj}" />
  730 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  731 + </h:commandLink>
  732 + </h:panelGrid>
  733 + </h:panelGrid>
  734 + <h:panelGrid columns="1">
  735 + <h:outputText style="font-size: 12px;" escape="false"
  736 + value="Representante legal - Documento que comprove os poderes do representante para assinatura do projeto:" />
  737 + <h:panelGrid columns="2">
  738 + <p:inputText
  739 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoRepresentanteLegal.nomDocumento}"
  740 + style="width: 370px;" disabled="true" />
  741 + <h:commandLink
  742 + rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoRepresentanteLegal.nomDocumento ne null}">
  743 + <h:graphicImage library="design/imagem"
  744 + name="icone-download.png" title="Baixar documento" />
  745 + <f:setPropertyActionListener
  746 + target="#{analisarCadastroPessoaJuridicaBean.dto.documento}"
  747 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoRepresentanteLegal}" />
  748 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  749 + </h:commandLink>
  750 + </h:panelGrid>
  751 + </h:panelGrid>
  752 + </p:fieldset>
  753 + <br />
  754 +
  755 + </p:fieldset>
  756 + </h:panelGroup>
  757 + </h:form>
  758 +
  759 + <h:form id="form-analise" prependId="false">
  760 + <br />
  761 + <p:fieldset legend="Análise técnica">
  762 + <h:panelGroup id="mensagensPj">
  763 + <p:message id="msgsaprovarPj" for="aprovacaoPj" />
  764 +
  765 + <p:message id="msgsreprovarPj" for="reprovacaoPj" />
  766 +
  767 + <p:message id="msgExgStatusPj" for="emExgStatusPj" />
  768 + </h:panelGroup>
  769 + <h:panelGrid columns="2" columnClasses="coluna15,coluna35">
  770 + <h:outputText value="Situação do cadastro:" />
  771 +
  772 + <h:outputText id="stCad" value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.situacaoCadastro.descricao}" style="font-weight: bold;" />
  773 + </h:panelGrid>
  774 +
  775 + <h:panelGrid columns="1">
  776 + <h:outputText value="Comentário:" style="font-size: 12px;" />
  777 + <p:inputTextarea id="comentario" rows="7" maxlength="2000" style="width: 800px;"
  778 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.descricaoAnaliseTecnica}" >
  779 + <f:ajax execute="comentario" event="keyup" />
  780 + </p:inputTextarea>
  781 + </h:panelGrid>
  782 + </p:fieldset>
  783 +
  784 + <h:panelGroup id="panel-declaracao" layout="block">
  785 + <h:panelGrid columns="3" rendered="#{analisarCadastroPessoaJuridicaBean.renderTabEmpresa}">
  786 + <h:outputText style="font-size: 12px;" escape="false" value="Declaração de Veracidade das Informações Prestadas (obrigatório para Radiodifusão):" />
  787 + <h:outputText />
  788 + <h:outputText />
  789 + <h:panelGrid columns="3">
  790 + <p:inputText id="declaracao" style="width: 370px;" maxlength="100" disabled="true"
  791 + value="#{analisarCadastroPessoaJuridicaBean.dto.documentoDeclaracao.nomDocumento}" />
  792 + <p:fileUpload id="uploadDeclaracao" auto="true"
  793 + fileUploadListener="#{analisarCadastroPessoaJuridicaBean.uploadDeclaracaoVeracidade}"
  794 + allowTypes="*.pdf" description="*.pdf" height="26" width="26"
  795 + customUI="true" sizeLimit="15728640"
  796 + update="declaracao download-declaracao"
  797 + image="../resources/design/imagem/icone-upload.png"
  798 + cancelImage="../resources/design/imagem/icone-cancelar.png" />
  799 + <h:panelGroup id="download-declaracao">
  800 + <h:commandLink rendered="#{analisarCadastroPessoaJuridicaBean.dto.documentoDeclaracao.nomDocumento ne null }">
  801 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  802 + <f:setPropertyActionListener target="#{analisarCadastroPessoaJuridicaBean.dto.documento}" value="#{analisarCadastroPessoaJuridicaBean.dto.documentoDeclaracao}" />
  803 + <p:fileDownload value="#{analisarCadastroPessoaJuridicaBean.file}" />
  804 + </h:commandLink>
  805 + </h:panelGroup>
  806 + </h:panelGrid>
  807 + <p:message for="declaracao" />
  808 + <h:outputText />
  809 + <h:outputText style="font-size: 11px; color:#FF0000;" escape="false" value="* Tamanho máximo permitido 15Mb." />
  810 + </h:panelGrid>
  811 + </h:panelGroup>
  812 +
  813 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80" width="100%">
  814 + <h:outputText value="Situação da análise técnica:" />
  815 + <h:panelGrid columns="3">
  816 + <p:commandButton id="aprovarPj" value="Aprovado" type="button" onclick="confirmarAprovacao.show()" />
  817 + <p:commandButton id="reprovarPj" value="Reprovado" type="button" onclick="confirmarReprovacao.show()" />
  818 + <p:commandButton id="determinarEmExPJ" value="Em exigência" type="button" ajax="true" process="determinarEmExPJ"
  819 + onclick="confirmarEmexigenciaEmpresa.show()" />
  820 + </h:panelGrid>
  821 + </h:panelGrid>
  822 + <br />
  823 +
  824 + <p:fieldset legend="Histórico de alteração" rendered="#{not empty analisarCadastroPessoaJuridicaBean.dto.empresa.listaHistorico}">
  825 + <p:dataTable
  826 + value="#{analisarCadastroPessoaJuridicaBean.dto.empresa.listaHistorico}" var="i"
  827 + rendered="#{not empty analisarCadastroPessoaJuridicaBean.dto.empresa.listaHistorico}"
  828 + emptyMessage="#{listarProponenteBean.emptyMessage}"
  829 + paginator="true" rowsPerPageTemplate="5,10,20,50,100" rows="10"
  830 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  831 + paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
  832 + currentPageReportTemplate="{currentPage} / {totalPages}"
  833 + rowIndexVar="rowIx"
  834 + style="max-width: 950px; overflow: auto; min-height:0%">
  835 + <p:column headerText="Campo alterado" sortBy="#{i.campoAlterado}">
  836 + <h:outputText value="#{i.campoAlterado}" />
  837 + </p:column>
  838 + <p:column headerText="Histórico da análise" sortBy="#{i.situacaoCadastro.id}">
  839 + <h:outputText value="#{i.situacaoCadastro.descricao}" />
  840 + </p:column>
  841 + <p:column headerText="Data da alteração" sortBy="#{i.dtAlteracao}">
  842 + <h:outputText value="#{i.dtAlteracao}">
  843 + <f:convertDateTime pattern="dd/MM/yyyy HH:mm" locale="pt_BR" timeZone="GMT-3" />
  844 + </h:outputText>
  845 + </p:column>
  846 + </p:dataTable>
  847 +
  848 + </p:fieldset>
  849 + <br />
  850 +
  851 + <p:confirmDialog widgetVar="confirmarAprovacao"
  852 + message="Deseja confirmar a aprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  853 + position="center" header="Aprovação" severity="alert" modal="true" width="325">
  854 + <p:commandButton value="Não" onclick="confirmarAprovacao.hide()" type="button" />
  855 + <p:commandButton value="Sim" id="aprovacaoPj" update="mensagensPj msgsaprovarPj stCad comentario"
  856 + oncomplete="confirmarAprovacao.hide();"
  857 + action="#{analisarCadastroPessoaJuridicaBean.aprovarEmpresa}" process="form-analise" />
  858 + </p:confirmDialog>
  859 +
  860 + <p:confirmDialog widgetVar="confirmarReprovacao"
  861 + message="Deseja confirmar a reprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  862 + position="center" header="Reprovação" severity="alert"
  863 + modal="true" width="325">
  864 + <p:commandButton value="Não" onclick="confirmarReprovacao.hide()" type="button" />
  865 + <p:commandButton value="Sim" id="reprovacaoPj" update="mensagensPj stCad comentario"
  866 + oncomplete="confirmarReprovacao.hide();"
  867 + action="#{analisarCadastroPessoaJuridicaBean.reprovarEmpresa}" process="form-analise"/>
  868 + </p:confirmDialog>
  869 +
  870 + <p:confirmDialog widgetVar="confirmarEmexigenciaEmpresa"
  871 + message="Deseja confirmar a mudan&ccedil;a de status do cadastro para em Exig&ecirc;ncia?"
  872 + position="center" header="Reprovação" severity="alert"
  873 + modal="true" width="325">
  874 + <p:commandButton value="Não" onclick="confirmarEmexigenciaEmpresa.hide();" type="button" />
  875 + <p:commandButton value="Sim" id="emExgStatusPj"
  876 + update="mensagensPj msgExgStatusPj stCad comentario"
  877 + oncomplete="confirmarEmexigenciaEmpresa.hide();"
  878 + action="#{analisarCadastroPessoaJuridicaBean.determinarStatusEmExigenciaEmpresa}" process="form-analise" />
  879 + </p:confirmDialog>
  880 + <div align="center"></div>
  881 + </h:form>
  882 + </p:tab>
  883 + </p:tabView>
  884 + <br />
  885 + <h:form>
  886 + <center>
  887 + <p:commandButton id="voltar" value="Voltar" ajax="false" action="#{analisarCadastroPessoaJuridicaBean.voltar}" immediate="true" />
  888 + </center>
  889 + </h:form>
  890 + </ui:define>
  891 +
  892 +</ui:composition>
0 893 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/analisar-cadastro-proponente.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/analisar-cadastro-proponente.xhtml
... ... @@ -0,0 +1,472 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  8 + template="/templates/template.xhtml">
  9 +
  10 + <ui:define name="body">
  11 +
  12 + <style type="text/css">
  13 +.coluna5 {
  14 + border: 0 none !important;
  15 + font-size: 12px !important;
  16 + width: 5%;
  17 + line-height: 23px;
  18 +}
  19 +</style>
  20 +
  21 + <p:tabView id="tabs">
  22 + <p:tab id="tabProponente" title="Pessoa física">
  23 + <h:form id="form-proponente" prependId="false">
  24 +
  25 + <script type="text/javascript">
  26 + $ = jQuery;
  27 + $(document).ready(function() {
  28 + //mascara para fixos de são paulo.
  29 + if($("#telefoneDDDProponente").val() == 11){
  30 + $("#telefone").mask("99999-9999");
  31 + }else{
  32 + $("#telefone").mask("9999-9999");
  33 + }
  34 + $("#telefoneDDDProponente").blur(function(){
  35 + if($("#telefoneDDDProponente").val() == 11){
  36 + $("#telefone").val("");
  37 + $("#telefone").attr('maxlength',10);
  38 + $("#telefone").unmask();
  39 + $("#telefone").mask("99999-9999");
  40 + }else{
  41 + $("#telefone").unmask();
  42 + $("#telefone").mask("9999-9999");
  43 + }
  44 + });
  45 +
  46 + $("#telefone").blur(function(){
  47 + qtdNum = $(this).val();
  48 + rs = qtdNum.substr(0,1);
  49 + if($("#telefoneDDDProponente").val() == 11){
  50 + if(rs != 9){
  51 + $("#telefone").val("9"+$(this).val());
  52 + }
  53 + }
  54 +
  55 + });
  56 +
  57 + //mascaras para celulares de são paulo
  58 + if($("#DDDcelular").val() == 11){
  59 + $("#celularProponente").mask("99999-9999");
  60 + }else{
  61 + $("#celularProponente").mask("9999-9999");
  62 + }
  63 + $("#DDDcelular").blur(function(){
  64 + if($("#DDDcelular").val() == 11){
  65 + $("#celularProponente").val("");
  66 + $("#celularProponente").attr('maxlength',10);
  67 + $("#celularProponente").unmask();
  68 + $("#celularProponente").mask("99999-9999");
  69 + }else{
  70 + $("#celularProponente").unmask();
  71 + $("#celularProponente").mask("9999-9999");
  72 + }
  73 + });
  74 +
  75 + $("#celularProponente").blur(function(){
  76 + qtdNum = $(this).val();
  77 + rs = qtdNum.substr(0,1);
  78 + if($("#DDDcelular").val() == 11){
  79 + if(rs != 9){
  80 + $("#celularProponente").val("9"+$(this).val());
  81 + }
  82 + }
  83 +
  84 + });
  85 +
  86 + });
  87 + </script>
  88 +
  89 + <p:fieldset legend="Informações da pessoa física">
  90 + <h:panelGrid id="panelPessoa" columns="6"
  91 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  92 + width="100%">
  93 + <h:outputText value="CPF:" />
  94 + <p:inputMask disabled="true"
  95 + value="#{analisarCadastroProponenteBean.dto.cpf.numero}"
  96 + size="18" mask="999.999.999-99" />
  97 + <h:outputText />
  98 + <h:outputText />
  99 + <h:outputText />
  100 + <h:outputText />
  101 + </h:panelGrid>
  102 + <h:panelGrid columns="6"
  103 + columnClasses="coluna20,coluna60,coluna5,coluna5,coluna5,coluna5"
  104 + width="100%">
  105 + <h:outputText value="Nome:" />
  106 + <p:inputText disabled="true"
  107 + value="#{analisarCadastroProponenteBean.model.pessoaProponente.nome}"
  108 + size="68" />
  109 + <h:outputText />
  110 + <h:outputText />
  111 + <h:outputText />
  112 + <h:outputText />
  113 + </h:panelGrid>
  114 + <h:panelGrid columns="6"
  115 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  116 + width="100%">
  117 + <h:outputText value="RG:" />
  118 + <p:inputText disabled="true"
  119 + value="#{analisarCadastroProponenteBean.dto.rg.numero}"
  120 + size="15" />
  121 + <h:outputText value="Órgão expedidor:" />
  122 + <p:inputText disabled="true"
  123 + value="#{analisarCadastroProponenteBean.dto.rg.orgaoEmissor}"
  124 + size="15" />
  125 + <h:outputText value="UF:" />
  126 + <p:inputText disabled="true"
  127 + value="#{analisarCadastroProponenteBean.model.siglaUF.sigla}"
  128 + size="3" />
  129 + </h:panelGrid>
  130 + <h:panelGrid columns="6"
  131 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  132 + width="100%">
  133 + <h:outputText value="Data de nascimento:" />
  134 + <p:calendar disabled="true"
  135 + value="#{analisarCadastroProponenteBean.model.pessoaProponente.dataNascimento}"
  136 + size="15" pattern="dd/MM/yyyy" />
  137 + <h:outputText value="Sexo:" />
  138 + <h:selectOneRadio disabled="true"
  139 + value="#{analisarCadastroProponenteBean.model.pessoaProponente.sexo}">
  140 + <f:selectItem itemLabel="Masculino" itemValue="M" />
  141 + <f:selectItem itemLabel="Feminino" itemValue="F" />
  142 + </h:selectOneRadio>
  143 + <h:outputText value="Cor ou raça:" />
  144 + <p:inputText disabled="true"
  145 + value="#{analisarCadastroProponenteBean.model.pessoaProponente.corRaca.nomCorRaca}"
  146 + size="18" />
  147 + </h:panelGrid>
  148 + <h:panelGrid columns="6"
  149 + columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15"
  150 + width="100%">
  151 + <h:outputText value="Telefone:" />
  152 + <h:panelGroup>
  153 + <p:inputMask id="telefoneDDDProponente" mask="99"
  154 + value="#{analisarCadastroProponenteBean.dto.telefone.numDdd}"
  155 + size="2" disabled="true" />
  156 + <h:outputText value="&#160;-&#160;" />
  157 + <p:inputText id="telefone"
  158 + value="#{analisarCadastroProponenteBean.dto.telefone.numTelefone}"
  159 + size="15" disabled="true" />
  160 + </h:panelGroup>
  161 + <h:outputText value="Celular:" />
  162 + <h:panelGroup>
  163 + <p:inputMask id="DDDcelular" mask="99"
  164 + value="#{analisarCadastroProponenteBean.dto.celular.numDdd}"
  165 + size="2" disabled="true" />
  166 + <h:outputText value="&#160;-&#160;" />
  167 + <p:inputText id="celularProponente"
  168 + value="#{analisarCadastroProponenteBean.dto.celular.numTelefone}"
  169 + size="15" disabled="true" />
  170 + </h:panelGroup>
  171 + <h:outputText />
  172 + <h:outputText />
  173 + </h:panelGrid>
  174 + <h:panelGrid columns="4"
  175 + columnClasses="coluna20,coluna60,coluna5,coluna15" width="100%">
  176 + <h:outputText value="Endereço:" />
  177 + <p:inputText disabled="true"
  178 + value="#{analisarCadastroProponenteBean.dto.endereco.logradouro}"
  179 + size="68" />
  180 + <h:outputText value="Nº:" />
  181 + <p:inputText disabled="true"
  182 + value="#{analisarCadastroProponenteBean.dto.endereco.numero}"
  183 + size="5" />
  184 + </h:panelGrid>
  185 + <h:panelGrid columns="4"
  186 + columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  187 + <h:outputText value="CEP:" />
  188 + <p:inputMask disabled="true" mask="99.999-999"
  189 + value="#{analisarCadastroProponenteBean.dto.endereco.cep}"
  190 + size="10" />
  191 + <h:outputText value="Bairro/Distrito/Setor:" />
  192 + <p:inputText disabled="true"
  193 + value="#{analisarCadastroProponenteBean.dto.endereco.bairro}"
  194 + size="38" />
  195 + </h:panelGrid>
  196 + <h:panelGrid columns="4"
  197 + columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  198 + <h:outputText value="UF:" />
  199 + <p:inputText disabled="true"
  200 + value="#{analisarCadastroProponenteBean.dto.endereco.municipio.uf.sigla}"
  201 + size="5" />
  202 + <h:outputText value="Município:&#160;&#160;" />
  203 + <p:inputText disabled="true"
  204 + value="#{analisarCadastroProponenteBean.dto.endereco.municipio.nome}"
  205 + size="38" />
  206 + </h:panelGrid>
  207 + <h:panelGrid columns="6"
  208 + columnClasses="coluna20,coluna60,coluna5,coluna5,coluna5,coluna5"
  209 + width="100%">
  210 + <h:outputText value="E-mail da pessoa física:" />
  211 + <p:inputText disabled="true"
  212 + value="#{analisarCadastroProponenteBean.model.emailProponente}"
  213 + size="68" />
  214 + <h:outputText />
  215 + <h:outputText />
  216 + <h:outputText />
  217 + <h:outputText />
  218 + </h:panelGrid>
  219 + <br />
  220 +
  221 + <p:fieldset legend="Recadastrar Senha">
  222 + <h:panelGroup id="messages_senha">
  223 + <p:message id="msgsalterarSenhaPf" for="atualiza_senha"/>
  224 + </h:panelGroup>
  225 + <h:panelGrid columns="3"
  226 + columnClasses="coluna20,coluna50,coluna30" width="100%">
  227 + <h:outputText value="Nova senha:" />
  228 + <p:password id="novaSenha" feedback="true" maxLength="9"
  229 + value="#{analisarCadastroProponenteBean.novaSenha}">
  230 + <f:ajax execute="novaSenha" event="keyup" />
  231 + </p:password>
  232 + <p:message for="novaSenha" />
  233 +
  234 + <h:outputText value="Confirmar nova senha:" />
  235 +
  236 + <p:password id="confirmarSenha" feedback="true" maxLength="9"
  237 + value="#{analisarCadastroProponenteBean.confirmarSenha}">
  238 + <f:ajax execute="novaSenha" event="keyup" />
  239 + </p:password>
  240 + <p:message for="confirmarSenha" />
  241 +
  242 + </h:panelGrid>
  243 + <h:panelGrid columns="1">
  244 + <p:commandButton id="atualiza_senha" value="Confirma"
  245 + onclick="confirmarAlterarSenha.show()" process="atualiza_senha" />
  246 + </h:panelGrid>
  247 + </p:fieldset>
  248 +
  249 + <p:fieldset legend="Cadastro OAB">
  250 + <h:panelGrid columns="4"
  251 + columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  252 + <h:outputText value="Possui OAB?" />
  253 + <h:selectOneRadio disabled="true"
  254 + value="#{analisarCadastroProponenteBean.model.possuiOab}">
  255 + <f:selectItem itemLabel="Sim" itemValue="true" />
  256 + <f:selectItem itemLabel="Não" itemValue="false" />
  257 + </h:selectOneRadio>
  258 + <h:outputText value="Número OAB:" />
  259 + <h:panelGrid columns="1">
  260 + <p:inputText disabled="true" size="25"
  261 + value="#{analisarCadastroProponenteBean.model.numeroRegistroOab}" />
  262 + </h:panelGrid>
  263 + </h:panelGrid>
  264 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80"
  265 + width="100%">
  266 + <h:outputText value="Documento - Registro OAB:" />
  267 + <h:panelGrid columns="2">
  268 + <p:inputText disabled="true" size="50"
  269 + value="#{analisarCadastroProponenteBean.dto.documentoOab.nomDocumento}" />
  270 + <h:commandLink
  271 + rendered="#{analisarCadastroProponenteBean.dto.documentoOab.nomDocumento ne null}">
  272 + <h:graphicImage library="design/imagem"
  273 + name="icone-download.png" title="Baixar documento" />
  274 + <f:setPropertyActionListener
  275 + target="#{analisarCadastroProponenteBean.dto.documento}"
  276 + value="#{analisarCadastroProponenteBean.dto.documentoOab}" />
  277 + <p:fileDownload value="#{analisarCadastroProponenteBean.file}" />
  278 + </h:commandLink>
  279 + </h:panelGrid>
  280 + </h:panelGrid>
  281 + </p:fieldset>
  282 + <br />
  283 +
  284 + <p:fieldset legend="Documentos">
  285 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75"
  286 + width="100%">
  287 + <h:outputText value="Documento de identidade:" />
  288 + <h:panelGrid columns="2">
  289 + <p:inputText disabled="true"
  290 + value="#{analisarCadastroProponenteBean.dto.documentoRg.nomDocumento}"
  291 + size="50" />
  292 + <h:commandLink
  293 + rendered="#{analisarCadastroProponenteBean.dto.documentoRg.nomDocumento ne null}">
  294 + <h:graphicImage library="design/imagem"
  295 + name="icone-download.png" title="Baixar documento" />
  296 + <f:setPropertyActionListener
  297 + target="#{analisarCadastroProponenteBean.dto.documento}"
  298 + value="#{analisarCadastroProponenteBean.dto.documentoRg}" />
  299 + <p:fileDownload value="#{analisarCadastroProponenteBean.file}" />
  300 + </h:commandLink>
  301 + </h:panelGrid>
  302 + <h:outputText value="Cadastro de Pessoa Física - CPF:" />
  303 + <h:panelGrid columns="2">
  304 + <p:inputText disabled="true"
  305 + value="#{analisarCadastroProponenteBean.dto.documentoCpf.nomDocumento}"
  306 + size="50" />
  307 + <h:commandLink
  308 + rendered="#{analisarCadastroProponenteBean.dto.documentoCpf.nomDocumento ne null}">
  309 + <h:graphicImage library="design/imagem"
  310 + name="icone-download.png" title="Baixar documento" />
  311 + <f:setPropertyActionListener
  312 + target="#{analisarCadastroProponenteBean.dto.documento}"
  313 + value="#{analisarCadastroProponenteBean.dto.documentoCpf}" />
  314 + <p:fileDownload value="#{analisarCadastroProponenteBean.file}" />
  315 + </h:commandLink>
  316 + </h:panelGrid>
  317 + <h:outputText value="Comprovante de endereço:" />
  318 + <h:panelGrid columns="2">
  319 + <p:inputText disabled="true"
  320 + value="#{analisarCadastroProponenteBean.dto.documentoResidencia.nomDocumento}"
  321 + size="50" />
  322 + <h:commandLink
  323 + rendered="#{analisarCadastroProponenteBean.dto.documentoResidencia.nomDocumento ne null}">
  324 + <h:graphicImage library="design/imagem"
  325 + name="icone-download.png" title="Baixar documento" />
  326 + <f:setPropertyActionListener
  327 + target="#{analisarCadastroProponenteBean.dto.documento}"
  328 + value="#{analisarCadastroProponenteBean.dto.documentoResidencia}" />
  329 + <p:fileDownload value="#{analisarCadastroProponenteBean.file}" />
  330 + </h:commandLink>
  331 + </h:panelGrid>
  332 + </h:panelGrid>
  333 + </p:fieldset>
  334 + <br />
  335 + </p:fieldset>
  336 + </h:form>
  337 + <h:form id="form-analise-pf" prependId="false">
  338 + <br />
  339 + <p:fieldset legend="Análise técnica">
  340 + <h:panelGroup id="messages">
  341 + <p:message id="msgsaprovarPf" for="aprovarPf" />
  342 + <p:message id="msgsreprovarPf" for="reprovarPf" />
  343 + <p:message id="msgExgStatusPf" for="emExgStatusPf" />
  344 + </h:panelGroup>
  345 + <br />
  346 + <h:panelGrid columns="2" columnClasses="coluna15,coluna35">
  347 + <h:outputText value="Situação do cadastro:" />
  348 + <h:outputText id="status"
  349 + value="#{analisarCadastroProponenteBean.model.situacaoCadastro.descricao}"
  350 + style="font-weight: bold;" />
  351 + </h:panelGrid>
  352 +
  353 + <h:panelGrid columns="1">
  354 + <h:outputText value="Comentário:" style="font-size: 12px;" />
  355 + <p:inputTextarea id="comentarioPf" rows="7" maxlength="2000"
  356 + style="width: 800px;"
  357 + value="#{analisarCadastroProponenteBean.model.descricaoAnaliseTecnica}">
  358 + <f:ajax execute="comentarioPf" event="keyup" />
  359 + </p:inputTextarea>
  360 + </h:panelGrid>
  361 + </p:fieldset>
  362 +
  363 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80"
  364 + width="100%">
  365 + <h:outputText value="Situação da análise técnica:" />
  366 + <h:panelGrid columns="3">
  367 + <p:commandButton id="aprovarPf" value="Aprovado"
  368 + onclick="confirmarAprovacaoProponente.show()"
  369 + process="aprovarPf" />
  370 + <p:commandButton id="reprovarPf" value="Reprovado"
  371 + process="reprovarPf"
  372 + onclick="confirmarReprovacaoProponente.show()" />
  373 + <p:commandButton id="determinarEmExPF" value="Em exigência"
  374 + ajax="true" process="determinarEmExPF"
  375 + onclick="confirmarEmexigenciaProponente.show()" />
  376 + </h:panelGrid>
  377 + </h:panelGrid>
  378 + <br />
  379 + <p:fieldset legend="Histórico de alteração"
  380 + rendered="#{not empty analisarCadastroProponenteBean.model.listaHistorico}">
  381 + <p:dataTable
  382 + value="#{analisarCadastroProponenteBean.model.listaHistorico}"
  383 + var="i" emptyMessage="#{listarProponenteBean.emptyMessage}"
  384 + paginator="true" rowsPerPageTemplate="5,10,20,50,100" rows="10"
  385 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  386 + paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
  387 + currentPageReportTemplate="{currentPage} / {totalPages}"
  388 + rowIndexVar="rowIx"
  389 + style="max-width: 950px; overflow: auto; min-height:0%">
  390 + <p:column headerText="Campo alterado" sortBy="#{i.campoAlterado}">
  391 + <h:outputText value="#{i.campoAlterado}" />
  392 + </p:column>
  393 + <p:column headerText="Histórico da análise"
  394 + sortBy="#{i.situacaoCadastro.id}">
  395 + <h:outputText value="#{i.situacaoCadastro.descricao}" />
  396 + </p:column>
  397 + <p:column headerText="Data da alteração"
  398 + sortBy="#{i.dtAlteracao}">
  399 + <h:outputText value="#{i.dtAlteracao}">
  400 + <f:convertDateTime pattern="dd/MM/yyyy HH:mm:ss"
  401 + timeZone="GMT-3" locale="pt_BR" />
  402 + </h:outputText>
  403 + </p:column>
  404 + </p:dataTable>
  405 + </p:fieldset>
  406 + <br />
  407 +
  408 + <p:confirmDialog widgetVar="confirmarAprovacaoProponente"
  409 + message="Deseja confirmar a aprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  410 + position="center" header="Aprovação" severity="alert" modal="true"
  411 + width="325">
  412 + <p:commandButton value="Não"
  413 + onclick="confirmarAprovacaoProponente.hide()" type="button" />
  414 + <p:commandButton value="Sim" id="aprovarPF"
  415 + update="status messages msgsaprovarPf comentarioPf"
  416 + oncomplete="confirmarAprovacaoProponente.hide();"
  417 + action="#{analisarCadastroProponenteBean.aprovarProponente}"
  418 + process="form-analise-pf" />
  419 + </p:confirmDialog>
  420 +
  421 + <p:confirmDialog widgetVar="confirmarAlterarSenha"
  422 + message="Confirmar a atualização da senha?" position="center"
  423 + header="Aprovação" severity="alert" modal="true" width="325">
  424 + <p:commandButton value="Não"
  425 + onclick="confirmarAlterarSenha.hide()" type="button" />
  426 + <p:commandButton value="Sim" id="atualiza_senha_"
  427 + update="status messages_senha msgsalterarSenhaPf novaSenha confirmarSenha"
  428 + oncomplete="confirmarAlterarSenha.hide()"
  429 + action="#{analisarCadastroProponenteBean.alterarSenhaProponente}"
  430 + process="form-analise-pf" />
  431 + </p:confirmDialog>
  432 +
  433 + <p:confirmDialog widgetVar="confirmarReprovacaoProponente"
  434 + message="Deseja confirmar a reprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  435 + position="center" header="Reprovação" severity="alert"
  436 + modal="true" width="325">
  437 +
  438 + <p:commandButton value="Não"
  439 + onclick="confirmarReprovacaoProponente.hide()" type="button" />
  440 + <p:commandButton value="Sim" id="reprovarPF"
  441 + update="status messages msgsreprovarPf comentarioPf"
  442 + oncomplete="confirmarReprovacaoProponente.hide();"
  443 + action="#{analisarCadastroProponenteBean.reprovarProponente}"
  444 + process="form-analise-pf" />
  445 + </p:confirmDialog>
  446 + <p:confirmDialog widgetVar="confirmarEmexigenciaProponente"
  447 + message="Deseja confirmar a mudan&ccedil;a de status do cadastro para em Exig&ecirc;ncia?"
  448 + position="center" header="Reprovação" severity="alert"
  449 + modal="true" width="325">
  450 + <p:commandButton value="Não"
  451 + onclick="confirmarEmexigenciaProponente.hide()" type="button" />
  452 + <p:commandButton value="Sim" id="emExgStatusPf"
  453 + update="msgExgStatusPf messages status comentarioPf"
  454 + oncomplete="confirmarEmexigenciaProponente.hide();"
  455 + action="#{analisarCadastroProponenteBean.determinarStatusEmExigenciaProponente}"
  456 + process="form-analise-pf">
  457 + </p:commandButton>
  458 + </p:confirmDialog>
  459 + <div align="center"></div>
  460 + </h:form>
  461 + </p:tab>
  462 + </p:tabView>
  463 + <br />
  464 + <h:form>
  465 + <center>
  466 + <p:commandButton id="voltar" value="Voltar" ajax="false"
  467 + action="#{analisarCadastroProponenteBean.voltar}" immediate="true" />
  468 + </center>
  469 + </h:form>
  470 + </ui:define>
  471 +
  472 +</ui:composition>
0 473 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/analisar-cadastro.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/analisar-cadastro.xhtml
... ... @@ -0,0 +1,586 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  8 + template="/templates/template.xhtml">
  9 +
  10 +<ui:define name="body">
  11 +
  12 + <style type="text/css">
  13 + .coluna5 {
  14 + border: 0 none !important;
  15 + font-size: 12px !important;
  16 + width: 5%;
  17 + line-height: 23px;
  18 + }
  19 + </style>
  20 +
  21 + <p:tabView id="tabs">
  22 +
  23 + <p:tab id="tabProponente" title="Pessoa física">
  24 +
  25 + <h:form id="form-proponente" prependId="false">
  26 +
  27 + <script type="text/javascript">
  28 + $ = jQuery;
  29 + $(document).ready(function() {
  30 +
  31 + //mascara para fixos de são paulo.
  32 + if($("#telefoneDDDProponente").val() == 11){
  33 + $("#telefone").mask("99999-9999");
  34 + }else{
  35 + $("#telefone").mask("9999-9999");
  36 + }
  37 + $("#telefoneDDDProponente").blur(function(){
  38 + if($("#telefoneDDDProponente").val() == 11){
  39 + $("#telefone").val("");
  40 + $("#telefone").attr('maxlength',10);
  41 + $("#telefone").unmask();
  42 + $("#telefone").mask("99999-9999");
  43 + }else{
  44 + $("#telefone").unmask();
  45 + $("#telefone").mask("9999-9999");
  46 + }
  47 + });
  48 +
  49 + $("#telefone").blur(function(){
  50 + qtdNum = $(this).val();
  51 + rs = qtdNum.substr(0,1);
  52 + if($("#telefoneDDDProponente").val() == 11){
  53 + if(rs != 9){
  54 + $("#telefone").val("9"+$(this).val());
  55 + }
  56 + }
  57 +
  58 + });
  59 +
  60 + //mascaras para celulares de são paulo
  61 + if($("#DDDcelular").val() == 11){
  62 + $("#celularProponente").mask("99999-9999");
  63 + }else{
  64 + $("#celularProponente").mask("9999-9999");
  65 + }
  66 + $("#DDDcelular").blur(function(){
  67 + if($("#DDDcelular").val() == 11){
  68 + $("#celularProponente").val("");
  69 + $("#celularProponente").attr('maxlength',10);
  70 + $("#celularProponente").unmask();
  71 + $("#celularProponente").mask("99999-9999");
  72 + }else{
  73 + $("#celularProponente").unmask();
  74 + $("#celularProponente").mask("9999-9999");
  75 + }
  76 + });
  77 +
  78 + $("#celularProponente").blur(function(){
  79 + qtdNum = $(this).val();
  80 + rs = qtdNum.substr(0,1);
  81 + if($("#DDDcelular").val() == 11){
  82 + if(rs != 9){
  83 + $("#celularProponente").val("9"+$(this).val());
  84 + }
  85 + }
  86 +
  87 + });
  88 +
  89 + });
  90 + </script>
  91 +
  92 + <p:fieldset legend="Informações da pessoa física">
  93 + <h:panelGrid columns="6" columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15" width="100%">
  94 + <h:outputText value="CPF:" />
  95 + <p:inputMask disabled="true" value="#{analisarCadastroBean.cpf.numero}" size="18" mask="999.999.999-99"/>
  96 + <h:outputText />
  97 + <h:outputText />
  98 + <h:outputText />
  99 + <h:outputText />
  100 + </h:panelGrid>
  101 + <h:panelGrid columns="6" columnClasses="coluna20,coluna60,coluna5,coluna5,coluna5,coluna5" width="100%">
  102 + <h:outputText value="Nome:" />
  103 + <p:inputText disabled="true" value="#{analisarCadastroBean.model.pessoaProponente.nome}" size="68" />
  104 + <h:outputText />
  105 + <h:outputText />
  106 + <h:outputText />
  107 + <h:outputText />
  108 + </h:panelGrid>
  109 + <h:panelGrid columns="6" columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15" width="100%">
  110 + <h:outputText value="RG:" />
  111 + <p:inputText disabled="true" value="#{analisarCadastroBean.rg.numero}" size="15"/>
  112 + <h:outputText value="Órgão expedidor:" />
  113 + <p:inputText disabled="true" value="#{analisarCadastroBean.rg.orgaoEmissor}" size="15"/>
  114 + <h:outputText value="UF:" />
  115 + <p:inputText disabled="true" value="#{analisarCadastroBean.model.siglaUF.sigla}" size="3"/>
  116 + </h:panelGrid>
  117 + <h:panelGrid columns="6" columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15" width="100%">
  118 + <h:outputText value="Data de nascimento:" />
  119 + <p:calendar disabled="true" value="#{analisarCadastroBean.model.pessoaProponente.dataNascimento}" size="15" pattern="dd/MM/yyyy"/>
  120 + <h:outputText value="Sexo:" />
  121 + <h:selectOneRadio disabled="true" value="#{analisarCadastroBean.model.pessoaProponente.sexo}">
  122 + <f:selectItem itemLabel="Masculino" itemValue="M" />
  123 + <f:selectItem itemLabel="Feminino" itemValue="F" />
  124 + </h:selectOneRadio>
  125 + <h:outputText value="Cor ou raça:" />
  126 + <p:inputText disabled="true" value="#{analisarCadastroBean.model.pessoaProponente.corRaca.nomCorRaca}" size="18"/>
  127 + </h:panelGrid>
  128 + <h:panelGrid columns="6" columnClasses="coluna20,coluna20,coluna15,coluna20,coluna10,coluna15" width="100%">
  129 + <h:outputText value="Telefone:" />
  130 + <h:panelGroup>
  131 + <p:inputMask id="telefoneDDDProponente" mask="99" value="#{analisarCadastroBean.telefone.numDdd}" size="2" disabled="true"/>
  132 + <h:outputText value="&#160;-&#160;"/>
  133 + <p:inputText id="telefone" value="#{analisarCadastroBean.telefone.numTelefone}" size="15" disabled="true" />
  134 + </h:panelGroup>
  135 + <h:outputText value="Celular:" />
  136 + <h:panelGroup>
  137 + <p:inputMask id="DDDcelular" mask="99" value="#{analisarCadastroBean.celular.numDdd}" size="2" disabled="true"/>
  138 + <h:outputText value="&#160;-&#160;"/>
  139 + <p:inputText id="celularProponente" value="#{analisarCadastroBean.celular.numTelefone}" size="15" disabled="true" />
  140 + </h:panelGroup>
  141 + <h:outputText />
  142 + <h:outputText />
  143 + </h:panelGrid>
  144 + <h:panelGrid columns="4" columnClasses="coluna20,coluna60,coluna5,coluna15" width="100%">
  145 + <h:outputText value="Endereço:" />
  146 + <p:inputText disabled="true" value="#{analisarCadastroBean.endereco.logradouro}" size="68"/>
  147 + <h:outputText value="Nº:" />
  148 + <p:inputText disabled="true" value="#{analisarCadastroBean.endereco.numero}" size="5"/>
  149 + </h:panelGrid>
  150 + <h:panelGrid columns="4" columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  151 + <h:outputText value="CEP:" />
  152 + <p:inputMask disabled="true" mask="99.999-999" value="#{analisarCadastroBean.endereco.cep}" size="10"/>
  153 + <h:outputText value="Bairro/Distrito/Setor:" />
  154 + <p:inputText disabled="true" value="#{analisarCadastroBean.endereco.bairro}" size="38"/>
  155 + </h:panelGrid>
  156 + <h:panelGrid columns="4" columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  157 + <h:outputText value="UF:" />
  158 + <p:inputText disabled="true" value="#{analisarCadastroBean.endereco.municipio.uf.sigla}" size="5"/>
  159 + <h:outputText value="Município:&#160;&#160;" />
  160 + <p:inputText disabled="true" value="#{analisarCadastroBean.endereco.municipio.nome}" size="38"/>
  161 + </h:panelGrid>
  162 + <h:panelGrid columns="6" columnClasses="coluna20,coluna60,coluna5,coluna5,coluna5,coluna5" width="100%">
  163 + <h:outputText value="E-mail da pessoa física:" />
  164 + <p:inputText disabled="true" value="#{analisarCadastroBean.model.emailProponente}" size="68" />
  165 + <h:outputText />
  166 + <h:outputText />
  167 + <h:outputText />
  168 + <h:outputText />
  169 + </h:panelGrid>
  170 + <br/>
  171 +
  172 + <p:fieldset legend="Cadastro OAB">
  173 + <h:panelGrid columns="4" columnClasses="coluna20,coluna20,coluna15,coluna45" width="100%">
  174 + <h:outputText value="Possui OAB?" />
  175 + <h:selectOneRadio disabled="true" value="#{analisarCadastroBean.model.possuiOab}">
  176 + <f:selectItem itemLabel="Sim" itemValue="true" />
  177 + <f:selectItem itemLabel="Não" itemValue="false" />
  178 + </h:selectOneRadio>
  179 + <h:outputText value="Número OAB:" />
  180 + <h:panelGrid columns="1">
  181 + <p:inputText disabled="true" size="25" value="#{analisarCadastroBean.model.numeroRegistroOab}"/>
  182 + </h:panelGrid>
  183 + </h:panelGrid>
  184 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80" width="100%">
  185 + <h:outputText value="Documento - Registro OAB:" />
  186 + <h:panelGrid columns="2">
  187 + <p:inputText disabled="true" size="50" value="#{analisarCadastroBean.documentoOab.nomDocumento}"/>
  188 + <h:commandLink rendered="#{analisarCadastroBean.documentoOab.nomDocumento ne null}">
  189 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  190 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoOab}" />
  191 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  192 + </h:commandLink>
  193 + </h:panelGrid>
  194 + </h:panelGrid>
  195 + </p:fieldset>
  196 + <br/>
  197 +
  198 + <p:fieldset legend="Documentos">
  199 +
  200 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75" width="100%">
  201 + <h:outputText value="Documento de identidade:"/>
  202 + <h:panelGrid columns="2">
  203 + <p:inputText disabled="true" value="#{analisarCadastroBean.documentoRg.nomDocumento}" size="50"/>
  204 + <h:commandLink rendered="#{analisarCadastroBean.documentoRg.nomDocumento ne null}">
  205 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  206 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoRg}" />
  207 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  208 + </h:commandLink>
  209 + </h:panelGrid>
  210 + <h:outputText value="Cadastro de Pessoa Física - CPF:" />
  211 + <h:panelGrid columns="2">
  212 + <p:inputText disabled="true" value="#{analisarCadastroBean.documentoCpf.nomDocumento}" size="50" />
  213 + <h:commandLink rendered="#{analisarCadastroBean.documentoCpf.nomDocumento ne null}">
  214 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  215 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoCpf}" />
  216 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  217 + </h:commandLink>
  218 + </h:panelGrid>
  219 + <h:outputText value="Comprovante de endereço:" />
  220 + <h:panelGrid columns="2">
  221 + <p:inputText disabled="true" value="#{analisarCadastroBean.documentoResidencia.nomDocumento}" size="50" />
  222 + <h:commandLink rendered="#{analisarCadastroBean.documentoResidencia.nomDocumento ne null}">
  223 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  224 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoResidencia}" />
  225 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  226 + </h:commandLink>
  227 + </h:panelGrid>
  228 + </h:panelGrid>
  229 +
  230 + </p:fieldset>
  231 + <br/>
  232 +
  233 + </p:fieldset>
  234 +
  235 + </h:form>
  236 +
  237 + </p:tab>
  238 +
  239 + <p:tab id="tabEmpresa" title="Pessoa jurídica" rendered="#{analisarCadastroBean.renderTabEmpresa}">
  240 +
  241 + <h:form id="form-empresa" prependId="false">
  242 +
  243 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80" width="100%" rendered="#{fn:length(analisarCadastroBean.model.empresas) > 1}">
  244 + <h:outputText styleClass="icoObrigatorio" value="Empresa para análise:"/>
  245 + <h:selectOneMenu id="empresa" value="#{analisarCadastroBean.empresa.id}">
  246 + <f:selectItem itemLabel="[Selecione um empresa para analisar]" itemValue="0"/>
  247 + <f:selectItems value="#{analisarCadastroBean.model.empresas}" var="e" itemLabel="#{e.pessoaTitular.cnpjFormat}&#160;-&#160;#{e.pessoaTitular.razaoSocial}" itemValue="#{e.id}"/>
  248 + <p:ajax event="change" update="panel-empresa" listener="#{analisarCadastroBean.changeEmpresa}"/>
  249 + </h:selectOneMenu>
  250 + </h:panelGrid>
  251 +
  252 + <h:panelGroup id="panel-empresa" layout="block">
  253 +
  254 + <p:fieldset legend="Informações da pessoa jurídica" rendered="#{analisarCadastroBean.renderDadosEmpresa}">
  255 +
  256 + <br/>
  257 + <h:panelGroup id="pg-pj" layout="block">
  258 + <h:panelGrid id="panelGridPJ" columns="2" columnClasses="coluna30,coluna70" width="100%">
  259 +
  260 + <h:outputText value="CNPJ:" />
  261 + <p:inputMask disabled="true" size="30" mask="99.999.999/9999-99" value="#{analisarCadastroBean.empresa.pessoaTitular.cnpj}"/>
  262 +
  263 + <h:outputText value="Nome comercial:"/>
  264 + <p:inputText disabled="true" size="70" value="#{analisarCadastroBean.empresa.pessoaTitular.nomeFantasia}" />
  265 +
  266 + <h:outputText value="Razão social:"/>
  267 + <p:inputText disabled="true" size="70" value="#{analisarCadastroBean.empresa.pessoaTitular.razaoSocial}" />
  268 +
  269 + <h:outputText value="Ano de constituição:"/>
  270 + <p:inputText disabled="true" size="30" value="#{analisarCadastroBean.empresa.anoConstituicao}" />
  271 +
  272 + <h:outputText value="Quantidade de empregados:"/>
  273 + <p:inputText disabled="true" size="30" value="#{analisarCadastroBean.empresa.qtdEmpregados}">
  274 + <f:convertNumber pattern="#,##0" type="number" />
  275 + </p:inputText>
  276 +
  277 + <h:outputText value="Capital social:"/>
  278 + <p:inputText disabled="true" size="30" value="#{analisarCadastroBean.empresa.pessoaTitular.capitalSocial}">
  279 + <f:convertNumber type="currency" locale="pt_BR" pattern="#,##0.00"/>
  280 + </p:inputText>
  281 +
  282 + </h:panelGrid>
  283 + <br/>
  284 +
  285 + <p:fieldset legend="Tipo de serviço">
  286 + <h:panelGrid columns="2" columnClasses="coluna50,coluna50" width="100%">
  287 + <h:selectManyCheckbox value="#{analisarCadastroBean.tiposServico1}" layout="pageDirection" disabled="true">
  288 + <f:selectItems value="#{analisarCadastroBean.tiposServicoEmpresa1}" var="t1" itemLabel="#{t1.descricao}" itemValue="#{t1.id}"/>
  289 + </h:selectManyCheckbox>
  290 + <h:selectManyCheckbox value="#{analisarCadastroBean.tiposServico2}" layout="pageDirection" disabled="true">
  291 + <f:selectItems value="#{analisarCadastroBean.tiposServicoEmpresa2}" var="t2" itemLabel="#{t2.descricao}" itemValue="#{t2.id}"/>
  292 + </h:selectManyCheckbox>
  293 + </h:panelGrid>
  294 + <h:panelGrid columns="2" columnClasses="coluna10,coluna90" width="100%" rendered="#{analisarCadastroBean.tipoServicoOutros}">
  295 + <h:outputText value="Outros:"/>
  296 + <p:inputText size="70" value="#{analisarCadastroBean.empresa.outros}" disabled="true"/>
  297 + </h:panelGrid>
  298 + </p:fieldset>
  299 + <br/>
  300 +
  301 + <p:fieldset legend="Endereço">
  302 +
  303 + <script type="text/javascript">
  304 + $ = jQuery;
  305 + $(document).ready(function() {
  306 + // Ajusta layout de acordo com o navegador
  307 + adjustLayoutPosition();
  308 + });
  309 + function adjustLayoutPosition(){
  310 + if($.browser.msie){
  311 + $('#logradouro').css('width', '319px');
  312 + $('#numero').css('width', '48px');
  313 + $('#bairro').css('width', '400px');
  314 + $('#uf').css('width', '412px');
  315 + $('#cidade').css('width', '412px');
  316 + if(document.documentMode == 8){
  317 + $('#numero').css('width', '45px');
  318 + }
  319 + }else if($.browser.mozilla){
  320 + $('#numero').css('width', '50px');
  321 + }else if($.browser.webkit){
  322 + $('#numero').css('width', '47px');
  323 + }else if($.browser.opera){
  324 + $('#numero').css('width', '46px');
  325 + }
  326 + }
  327 + </script>
  328 +
  329 + <h:panelGrid columns="2" columnClasses="coluna30,coluna70" width="100%">
  330 +
  331 + <h:outputText value="Endereço:" />
  332 + <h:panelGroup>
  333 + <p:inputText disabled="true" id="logradouro" style="width: 331px;" value="#{analisarCadastroBean.enderecoEmpresa.logradouro}" />
  334 + <h:outputText value="&#160;Nº&#160;" />
  335 + <p:inputText id="numero" style="width: 50px;" disabled="true" value="#{analisarCadastroBean.enderecoEmpresa.numero}" />
  336 + </h:panelGroup>
  337 +
  338 + <h:outputText value="Bairro/Distrito/Setor:" />
  339 + <p:inputText id="bairro" style="width: 400px;" disabled="true" value="#{analisarCadastroBean.enderecoEmpresa.bairro}" />
  340 +
  341 + <h:outputText value="UF:" />
  342 + <p:inputText id="uf" style="width: 400px;" disabled="true" value="#{analisarCadastroBean.enderecoEmpresa.municipio.uf.sigla}" />
  343 +
  344 + <h:outputText value="Município:" />
  345 + <p:inputText id="cidade" style="width: 400px;" disabled="true" value="#{analisarCadastroBean.enderecoEmpresa.municipio.nome}" />
  346 +
  347 + </h:panelGrid>
  348 +
  349 + </p:fieldset>
  350 + <br/>
  351 +
  352 + <p:fieldset id="fsetRepLegal" legend="Representante legal">
  353 +
  354 + <h:panelGrid columns="2" columnClasses="coluna30,coluna70" width="100%">
  355 +
  356 + <h:outputText value="CPF:" />
  357 + <p:inputMask id="cpfRepresentante" mask="999.999.999-99" disabled="true" size="25" value="#{analisarCadastroBean.cpfRepresentanteEmpresa.numero}"/>
  358 +
  359 + <h:outputText value="Representante legal:" />
  360 + <p:inputText id="representanteLegal" style="width: 400px;" maxlength="100" disabled="true" value="#{analisarCadastroBean.empresa.representante.pessoaFisica.nome}" />
  361 +
  362 + <h:outputText value="RG:" />
  363 + <p:inputText id="rgRepresentante" maxlength="14" value="#{analisarCadastroBean.rgRepresentanteEmpresa.numero}" size="25" disabled="true"/>
  364 +
  365 + <h:outputText value="Órgão expedidor:" />
  366 + <p:inputText id="orgaoEmissor" maxlength="5" value="#{analisarCadastroBean.rgRepresentanteEmpresa.orgaoEmissor}" size="25" disabled="true"/>
  367 +
  368 + </h:panelGrid>
  369 +
  370 + </p:fieldset>
  371 + <br/>
  372 +
  373 + <p:fieldset id="fsetComunicacaoOficial" legend="Comunicação oficial">
  374 +
  375 + <script type="text/javascript">
  376 + $ = jQuery;
  377 + $(document).ready(function() {
  378 +
  379 + // Mascara para fixos de são paulo.
  380 + if($("#numDddTelefone").val() == 11){
  381 + $("#numTelefone").mask("99999-9999");
  382 + }else{
  383 + $("#numTelefone").mask("9999-9999");
  384 + }
  385 + $("#numDddTelefone").blur(function(){
  386 + if($("#numDddTelefone").val() == 11){
  387 + $("#numTelefone").val("");
  388 + $("#numTelefone").attr('maxlength',10);
  389 + $("#numTelefone").unmask();
  390 + $("#numTelefone").mask("99999-9999");
  391 + }else{
  392 + $("#numTelefone").unmask();
  393 + $("#numTelefone").mask("9999-9999");
  394 + }
  395 + });
  396 +
  397 + $("#numTelefone").blur(function(){
  398 + qtdNum = $(this).val();
  399 + rs = qtdNum.substr(0,1);
  400 + if($("#numDddTelefone").val() == 11){
  401 + if(rs != 9){
  402 + $("#numTelefone").val("9"+$(this).val());
  403 + }
  404 + }
  405 + });
  406 +
  407 + });
  408 + </script>
  409 +
  410 + <h:panelGrid columns="2" columnClasses="coluna30,coluna70" width="100%">
  411 + <h:outputText value="Telefone:" />
  412 + <h:panelGroup layout="block">
  413 + <p:inputMask id="numDddTelefone" style="width: 30px;" mask="99" value="#{analisarCadastroBean.telefoneEmpresa.numDdd}" disabled="true"/>
  414 + <h:outputText value="&#160;-&#160;" />
  415 + <p:inputText id="numTelefone" style="width: 100px;" maxlength="9" value="#{analisarCadastroBean.telefoneEmpresa.numTelefone}" disabled="true"/>
  416 + </h:panelGroup>
  417 +
  418 + <h:outputText value="E-mail principal:" />
  419 + <p:inputText id="emailPj" style="width: 400px;" value="#{analisarCadastroBean.emailEmpresa.descricao}" disabled="true"/>
  420 +
  421 + <h:outputText value="E-mail adicional 1:" />
  422 + <p:inputText id="emailAdicional1" style="width: 400px;" value="#{analisarCadastroBean.empresa.emailAdicional1}" disabled="true"/>
  423 +
  424 + <h:outputText value="E-mail adicional 2:" />
  425 + <p:inputText id="emailAdicional2" style="width: 400px;" value="#{analisarCadastroBean.empresa.emailAdicional2}" disabled="true"/>
  426 +
  427 + <h:outputText value="E-mail adicional 3:" />
  428 + <p:inputText id="emailAdicional3" style="width: 400px;" value="#{analisarCadastroBean.empresa.emailAdicional3}" disabled="true"/>
  429 +
  430 + <h:outputText value="E-mail adicional 4:" />
  431 + <p:inputText id="emailAdicional4" style="width: 400px;" value="#{analisarCadastroBean.empresa.emailAdicional4}" disabled="true"/>
  432 + </h:panelGrid>
  433 +
  434 + </p:fieldset>
  435 + <br/>
  436 +
  437 + <script type="text/javascript">
  438 + $ = jQuery;
  439 + $(document).ready(function() {
  440 + // Configuração para campos de Real.
  441 + $("#capitalSocial").maskMoney({showSymbol:false, decimal:",", thousands:"."});
  442 + $("#anoConstituicao").numeric({decimal: false, negative: false});
  443 + $("#qtdEmpregados").maskMoney({thousands:".", precision:0});
  444 + });
  445 + </script>
  446 +
  447 + </h:panelGroup>
  448 +
  449 + <p:fieldset legend="Documentos">
  450 + <h:panelGrid columns="1">
  451 + <h:outputText style="font-size: 12px;" escape="false" value="Atos constitutivos - Atos constitutivos, estatutos ou contratos sociais em vigor, devidamente registrados, em se tratando de sociedades comerciais, e, no caso de sociedades por ações, acompanhados de documentos de eleição de seus administradores:"/>
  452 + <h:panelGrid columns="2">
  453 + <p:inputText value="#{analisarCadastroBean.documentoAtosConstitutivos.nomDocumento}" style="width: 370px;" disabled="true"/>
  454 + <h:commandLink rendered="#{analisarCadastroBean.documentoAtosConstitutivos.nomDocumento ne null}">
  455 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  456 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoAtosConstitutivos}" />
  457 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  458 + </h:commandLink>
  459 + </h:panelGrid>
  460 + </h:panelGrid>
  461 + <h:panelGrid columns="1">
  462 + <h:outputText style="font-size: 12px;" escape="false" value="CNPJ - Comprovante de inscrição no Cadastro Nacional de Pessoas Jurídicas - CNPJ/MF:"/>
  463 + <h:panelGrid columns="2">
  464 + <p:inputText value="#{analisarCadastroBean.documentoCnpj.nomDocumento}" style="width: 370px;" disabled="true"/>
  465 + <h:commandLink rendered="#{analisarCadastroBean.documentoCnpj.nomDocumento ne null}">
  466 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  467 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoCnpj}" />
  468 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  469 + </h:commandLink>
  470 + </h:panelGrid>
  471 + </h:panelGrid>
  472 + <h:panelGrid columns="1">
  473 + <h:outputText style="font-size: 12px;" escape="false" value="Representante legal - Documento que comprove os poderes do representante para assinatura do projeto:"/>
  474 + <h:panelGrid columns="2">
  475 + <p:inputText value="#{analisarCadastroBean.documentoRepresentanteLegal.nomDocumento}" style="width: 370px;" disabled="true"/>
  476 + <h:commandLink rendered="#{analisarCadastroBean.documentoRepresentanteLegal.nomDocumento ne null}">
  477 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  478 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoRepresentanteLegal}" />
  479 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  480 + </h:commandLink>
  481 + </h:panelGrid>
  482 + </h:panelGrid>
  483 + </p:fieldset>
  484 + <br/>
  485 +
  486 + </p:fieldset>
  487 + </h:panelGroup>
  488 +
  489 + </h:form>
  490 + </p:tab>
  491 + </p:tabView>
  492 + <br/>
  493 +
  494 + <h:form id="form-analise" prependId="false">
  495 +
  496 + <p:messages id="msgsAnalise" showSummary="true" showDetail="true" globalOnly="true" />
  497 +
  498 + <p:fieldset legend="Análise técnica">
  499 +
  500 + <h:panelGrid columns="2" columnClasses="coluna15,coluna35" width="50%">
  501 + <h:outputText value="Situação do cadastro:" />
  502 + <h:outputText value="#{analisarCadastroBean.model.situacaoCadastro.descricao}" style="font-weight: bold;"/>
  503 + </h:panelGrid>
  504 +
  505 + <h:panelGrid columns="1">
  506 + <h:outputText value="Comentário:" style="font-size: 12px;"/>
  507 + <p:inputTextarea id="comentario" rows="7" maxlength="2000" style="width: 950px;" value="#{analisarCadastroBean.comentarioAnaliseTecnica}"/>
  508 + </h:panelGrid>
  509 +
  510 + <h:panelGroup id="panel-declaracao" layout="block">
  511 + <h:panelGrid columns="3" rendered="#{analisarCadastroBean.renderTabEmpresa}">
  512 + <h:outputText style="font-size: 12px;" escape="false" value="Declaração de Veracidade das Informações Prestadas:"/>
  513 + <h:outputText />
  514 + <h:outputText />
  515 + <h:panelGrid columns="3">
  516 + <p:inputText id="declaracao" style="width: 370px;" maxlength="100" disabled="true" value="#{analisarCadastroBean.documentoDeclaracao.nomDocumento}"/>
  517 + <p:fileUpload id="uploadDeclaracao" auto="true" fileUploadListener="#{analisarCadastroBean.uploadDeclaracaoVeracidade}"
  518 + allowTypes="*.pdf" description="*.pdf" height="26" width="26"
  519 + customUI="true" sizeLimit="15728640" update="declaracao download-declaracao"
  520 + image="../resources/design/imagem/icone-upload.png"
  521 + cancelImage="../resources/design/imagem/icone-cancelar.png"/>
  522 + <h:panelGroup id="download-declaracao">
  523 + <h:commandLink rendered="#{analisarCadastroBean.documentoDeclaracao.nomDocumento ne null}">
  524 + <h:graphicImage library="design/imagem" name="icone-download.png" title="Baixar documento" />
  525 + <f:setPropertyActionListener target="#{analisarCadastroBean.documento}" value="#{analisarCadastroBean.documentoDeclaracao}" />
  526 + <p:fileDownload value="#{analisarCadastroBean.file}"/>
  527 + </h:commandLink>
  528 + </h:panelGroup>
  529 + </h:panelGrid>
  530 + <p:message for="declaracao"/>
  531 + <h:outputText />
  532 + <h:outputText style="font-size: 11px; color:#FF0000;" escape="false" value="* Tamanho máximo permitido 15Mb."/>
  533 + </h:panelGrid>
  534 + </h:panelGroup>
  535 +
  536 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80" width="100%">
  537 + <h:outputText value="Situação da análise técnica:" />
  538 + <h:panelGrid columns="3">
  539 + <p:commandButton id="aprovar" value="Aprovado" type="button" onclick="confirmarAprovacao.show()"/>
  540 + <p:commandButton id="reprovar" value="Reprovado" type="button" onclick="confirmarReprovacao.show()"/>
  541 + <p:commandButton id="analisar" value="Em análise" action="#{analisarCadastroBean.analisar}" update="msgsAnalise @form" process="@form"/>
  542 + </h:panelGrid>
  543 + </h:panelGrid>
  544 +
  545 + </p:fieldset>
  546 + <br/>
  547 +
  548 + <p:dialog modal="true" widgetVar="statusDialog" header="Processando..." draggable="false" closable="false" height="75" width="120">
  549 + <h:graphicImage library="design/imagem" name="aguarde.gif" />
  550 + </p:dialog>
  551 +
  552 + <p:confirmDialog
  553 + widgetVar="confirmarAprovacao"
  554 + message="Deseja confirmar a aprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  555 + position="center"
  556 + header="Aprovação"
  557 + severity="alert"
  558 + modal="true"
  559 + width="325">
  560 + <p:commandButton value="Não" onclick="confirmarAprovacao.hide()" type="button" />
  561 + <p:commandButton value="Sim" update="@form" onclick="statusDialog.show(); confirmarAprovacao.hide()"
  562 + oncomplete="statusDialog.hide()" action="#{analisarCadastroBean.aprovar}" process="@form"/>
  563 + </p:confirmDialog>
  564 +
  565 + <p:confirmDialog
  566 + widgetVar="confirmarReprovacao"
  567 + message="Deseja confirmar a reprovação do cadastro?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  568 + position="center"
  569 + header="Reprovação"
  570 + severity="alert"
  571 + modal="true"
  572 + width="325">
  573 + <p:commandButton value="Não" onclick="confirmarReprovacao.hide()" type="button" />
  574 + <p:commandButton value="Sim" update="@form" onclick="statusDialog.show(); confirmarReprovacao.hide()"
  575 + oncomplete="statusDialog.hide()" action="#{analisarCadastroBean.reprovar}" process="@form"/>
  576 + </p:confirmDialog>
  577 +
  578 + <div align="center">
  579 + <p:commandButton id="voltar" value="Voltar" ajax="false" action="listar-proponente-empresa.jsf?faces-redirect=true" immediate="true"/>
  580 + </div>
  581 +
  582 + </h:form>
  583 +
  584 +</ui:define>
  585 +
  586 +</ui:composition>
0 587 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/analisar-peticao.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/analisar-peticao.xhtml
... ... @@ -0,0 +1,172 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + xmlns:fn="http://java.sun.com/jsp/jstl/functions"
  8 + template="/templates/template.xhtml">
  9 +
  10 +<ui:define name="body">
  11 +
  12 + <style type="text/css">
  13 + .coluna5 {
  14 + border: 0 none !important;
  15 + font-size: 12px !important;
  16 + width: 5%;
  17 + line-height: 23px;
  18 + }
  19 + </style>
  20 +
  21 + <h:outputScript target="head">
  22 + function handlePendencia(xhr, status, args) {
  23 + if( args.notValid || args.validationFailed ) {
  24 + statusDialog.hide();
  25 + return false;
  26 + } else {
  27 + confirmarPendente.hide();
  28 + statusDialog.hide();
  29 + }
  30 + }
  31 + </h:outputScript>
  32 + <h:form id="form-peticao" prependId="false">
  33 +
  34 + <p:messages id="msgsPeticao" showSummary="true" showDetail="true" globalOnly="true"/>
  35 +
  36 + <p:fieldset legend="Dados do peticionamento">
  37 +
  38 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80" width="100%">
  39 + <!--
  40 + <h:outputText value="Área:" />
  41 + <h:outputText value="#{analisarPeticaoBean.model.area.dscArea}"/>
  42 +
  43 + <h:outputText value="Serviço:" />
  44 + <h:outputText value="#{analisarPeticaoBean.model.servico.dscServico}"/>
  45 + -->
  46 + <h:outputText value="Solicitação:" />
  47 + <h:outputText value="#{analisarPeticaoBean.model.solicitacao.dscSolicitacao}"/>
  48 +
  49 + <h:outputText value="Em nome:" />
  50 + <h:outputText value="#{analisarPeticaoBean.model.proponente.pessoaProponente.nome}"
  51 + rendered="#{analisarPeticaoBean.model.empresa.id eq null}"/>
  52 + <h:outputText value="#{analisarPeticaoBean.model.empresa.pessoaTitular.razaoSocial}"
  53 + rendered="#{analisarPeticaoBean.model.empresa.id ne null}"/>
  54 +
  55 + <h:outputText value="Protocolo existente?" />
  56 + <h:outputText value="#{analisarPeticaoBean.model.existeProtocolo ? 'Sim' : 'Não'}" />
  57 +
  58 + <h:outputText value="Número do protocolo:" />
  59 + <h:outputText value="#{analisarPeticaoBean.model.numeroProcessoFormatado}" />
  60 +
  61 + <h:outputText value="Assunto:" />
  62 + <h:outputText value="#{analisarPeticaoBean.model.assunto}" />
  63 + </h:panelGrid>
  64 + <br/>
  65 +
  66 + <p:fieldset legend="Documentos">
  67 + <p:dataTable
  68 + id="dt-documentos"
  69 + value="#{analisarPeticaoBean.model.documentos}"
  70 + var="documento"
  71 + rowIndexVar="rowIx"
  72 + emptyMessage="#{analisarPeticaoBean.emptyMessage}"
  73 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}">
  74 + <p:column headerText="Nome do arquivo">
  75 + <h:outputText value="#{documento.nome}"/>
  76 + </p:column>
  77 + <p:column headerText="Ação" style="text-align: center; width: 15%;">
  78 + <h:commandLink immediate="true">
  79 + <h:graphicImage library="design/imagem" name="icone-download.png" alt="Baixar arquivo" title="Baixar arquivo"/>
  80 + <f:setPropertyActionListener target="#{analisarPeticaoBean.documento}" value="#{documento}" />
  81 + <p:fileDownload value="#{analisarPeticaoBean.file}"/>
  82 + </h:commandLink>
  83 + </p:column>
  84 + </p:dataTable>
  85 + </p:fieldset>
  86 + <br/>
  87 +
  88 + <h:panelGroup id="pg-info-pendente" layout="block">
  89 + <h:panelGrid columns="1" width="100%" rendered="#{analisarPeticaoBean.model.situacao.id eq 4}">
  90 + <h:outputText value="Pendência:" style="font-size: 12px; font-weight: bold;"/>
  91 + <h:outputText value="#{analisarPeticaoBean.model.pendencia}" style="font-size: 12px;"/>
  92 + <h:outputText value="Providência tomada:" style="font-size: 12px; font-weight: bold;"/>
  93 + <h:outputText value="#{analisarPeticaoBean.model.providencia}" style="font-size: 12px;"/>
  94 + </h:panelGrid>
  95 + </h:panelGroup>
  96 +
  97 + </p:fieldset>
  98 + <br/>
  99 +
  100 + <center>
  101 + <h:panelGrid id="pg-buttons" columns="4">
  102 + <p:commandButton id="aceitar" value="Sim" type="button" onclick="confirmarAceite.show()" disabled="#{!analisarPeticaoBean.situacaoAceitarRecusarLiberada}"/>
  103 + <p:commandButton id="recusar" value="Não" type="button" onclick="confirmarRecusa.show()" disabled="#{!analisarPeticaoBean.situacaoAceitarRecusarLiberada}"/>
  104 + <p:commandButton id="pendente" value="Pendente" oncomplete="confirmarPendente.show()" update="pg-enter-pendencia"
  105 + action="#{analisarPeticaoBean.limparPendente}" disabled="#{!analisarPeticaoBean.situacaoPendenteLiberada}"/>
  106 + <p:commandButton id="voltar" value="Voltar" ajax="false" action="listar-peticao.jsf?faces-redirect=true" immediate="true"/>
  107 + </h:panelGrid>
  108 + </center>
  109 + <br/>
  110 +
  111 + <p:dialog modal="true" widgetVar="statusDialog" header="Processando..." draggable="false" closable="false" height="75" width="120">
  112 + <h:graphicImage library="design/imagem" name="aguarde.gif" />
  113 + </p:dialog>
  114 +
  115 + <p:confirmDialog
  116 + widgetVar="confirmarAceite"
  117 + message="Tem certeza que deseja efetuar essa ação?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  118 + position="center"
  119 + header="Aceite"
  120 + severity="alert"
  121 + modal="true"
  122 + width="350">
  123 + <p:commandButton value="Não" onclick="confirmarAceite.hide()" type="button" />
  124 + <p:commandButton value="Sim" update="msgsPeticao pg-buttons pg-info-pendente" onclick="statusDialog.show(); confirmarAceite.hide()"
  125 + oncomplete="statusDialog.hide()" action="#{analisarPeticaoBean.aceitar}" />
  126 + </p:confirmDialog>
  127 +
  128 + <p:confirmDialog
  129 + widgetVar="confirmarRecusa"
  130 + message="Tem certeza que deseja efetuar essa ação?&lt;br /&gt;Esta operação não poderá ser desfeita!"
  131 + position="center"
  132 + header="Recusa"
  133 + severity="alert"
  134 + modal="true"
  135 + width="350">
  136 + <p:commandButton value="Não" onclick="confirmarRecusa.hide()" type="button" />
  137 + <p:commandButton value="Sim" update="msgsPeticao pg-buttons pg-info-pendente" onclick="statusDialog.show(); confirmarRecusa.hide()"
  138 + oncomplete="statusDialog.hide()" action="#{analisarPeticaoBean.recusar}" />
  139 + </p:confirmDialog>
  140 +
  141 + <p:confirmDialog
  142 + widgetVar="confirmarPendente"
  143 + message="Tem certeza que deseja efetuar essa ação? Esta operação não poderá ser desfeita!"
  144 + position="center"
  145 + header="Recusa"
  146 + severity="alert"
  147 + modal="true"
  148 + width="700">
  149 +
  150 + <h:panelGroup id="pg-enter-pendencia" layout="block">
  151 + <p:messages id="msgsPendencia" showSummary="true" showDetail="true" globalOnly="true"/>
  152 + <h:panelGrid id="pg-pendencia" columns="2" columnClasses="coluna20,coluna80" width="100%">
  153 + <h:outputText styleClass="icoObrigatorio" value="Descrever pendência:" />
  154 + <p:inputTextarea id="pendencia" maxlength="1000" value="#{analisarPeticaoBean.model.pendencia}" rows="5" cols="80" maxHeight="75" autoResize="false"/>
  155 + <h:outputText styleClass="icoObrigatorio" value="Providência tomada:" />
  156 + <p:inputTextarea id="providencia" maxlength="1000" value="#{analisarPeticaoBean.model.providencia}" rows="5" cols="80" maxHeight="75" autoResize="false"/>
  157 + </h:panelGrid>
  158 + </h:panelGroup>
  159 +
  160 + <center>
  161 + <p:commandButton value="Não" onclick="confirmarPendente.hide()" type="button" />
  162 + <p:commandButton value="Sim" oncomplete="handlePendencia(xhr, status, args)" onclick="statusDialog.show()"
  163 + action="#{analisarPeticaoBean.pendente}" process="@form"/>
  164 + </center>
  165 +
  166 + </p:confirmDialog>
  167 +
  168 + </h:form>
  169 +
  170 +</ui:define>
  171 +
  172 +</ui:composition>
0 173 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/consulta-email.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/consulta-email.xhtml
... ... @@ -0,0 +1,37 @@
  1 +<?xml version='1.0' encoding='UTF-8' ?>
  2 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  4 + xmlns:h="http://java.sun.com/jsf/html"
  5 + xmlns:f="http://java.sun.com/jsf/core"
  6 + xmlns:ui="http://java.sun.com/jsf/facelets"
  7 + xmlns:p="http://primefaces.prime.com.tr/ui"
  8 + template="/templates/template.xhtml">
  9 +
  10 +
  11 + <ui:define name="body">
  12 + <p:fieldset legend="Consultar e-mails">
  13 + <h:form id="formEmail" prependId="false">
  14 + <p:messages />
  15 + <br />
  16 + <h:panelGrid columns="2" width="30%">
  17 + <h:panelGroup id="panelTpConsulta" layout="block" style="text-align: center; margin: 0 auto; ">
  18 + <h:selectOneRadio id="tipoConsulta" value="#{listarEmailBean.filtroPesquisa.tipoConsulta}" style="width:300">
  19 + <f:selectItem itemLabel="CPF" itemValue="pessoaFisica" />
  20 + <f:selectItem itemLabel="CNPJ" itemValue="pessoaJuridica" />
  21 + <f:ajax execute="panelTpConsulta tipoConsulta" event="change" render="formListEmail" />
  22 + </h:selectOneRadio>
  23 + </h:panelGroup>
  24 + </h:panelGrid>
  25 +
  26 + <h:panelGroup id="formListEmail">
  27 + <h:panelGroup id="formPessoFisica" rendered="#{listarEmailBean.filtroPesquisa.listaPessoaFisica}">
  28 + <ui:include src="lista-email-pf.xhtml" />
  29 + </h:panelGroup>
  30 + <h:panelGroup id="formPessoJuridica" rendered="#{!listarEmailBean.filtroPesquisa.listaPessoaFisica}">
  31 + <ui:include src="lista-email-pj.xhtml"></ui:include>
  32 + </h:panelGroup>
  33 + </h:panelGroup>
  34 + </h:form>
  35 + </p:fieldset>
  36 + </ui:define>
  37 +</ui:composition>
... ...
codigos_fonte/WebApp/pages/error/acesso-invalido.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/error/acesso-invalido.xhtml
... ... @@ -0,0 +1,20 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
  5 + xmlns:p="http://primefaces.prime.com.tr/ui" template="/templates/template.xhtml">
  6 +
  7 + <ui:define name="body">
  8 + <h:form id="formAcesso">
  9 + <br />
  10 + <br />
  11 + <div class="error" style="width: 97%; height: 50px;">
  12 + <p class="error-icon">Acesso Negado.<br />
  13 + Prezado usu&#225;rio, verifique suas restri&#231;&#245;es de acesso ou contate o gestor do sistema."</p>
  14 + </div>
  15 + <br />
  16 + <br />
  17 + <br />
  18 + </h:form>
  19 + </ui:define>
  20 +</ui:composition>
0 21 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/error/error.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/error/error.xhtml
... ... @@ -0,0 +1,32 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  4 + xmlns:h="http://java.sun.com/jsf/html"
  5 + xmlns:f="http://java.sun.com/jsf/core"
  6 + xmlns:ui="http://java.sun.com/jsf/facelets"
  7 + xmlns:p="http://primefaces.prime.com.tr/ui"
  8 + template="/templates/template-sem-menu.xhtml">
  9 +
  10 + <ui:define name="body">
  11 + <h:form id="formError">
  12 + <br />
  13 + <br />
  14 + <f:loadBundle basename="constantes" var="msg" />
  15 + <div class="error" style="width: 97%; height: 100px;">
  16 + <p class="error-icon">
  17 + Desculpe-nos! Ocorreu uma falha durante o procedimento! <br />
  18 + Contactar o
  19 + <h:outputText value="#{msg.email_gestor}" />
  20 + </p>
  21 + </div>
  22 + <br />
  23 + <br />
  24 + <div align="center">
  25 + <h:outputLink value="../externo/login_externo.jsf">
  26 + <h:outputText value="Voltar" />
  27 + </h:outputLink>
  28 + </div>
  29 + <br />
  30 + </h:form>
  31 + </ui:define>
  32 +</ui:composition>
0 33 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/error/view-expired.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/error/view-expired.xhtml
... ... @@ -0,0 +1,20 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
  5 + xmlns:p="http://primefaces.prime.com.tr/ui" template="/templates/template.xhtml">
  6 + <ui:define name="body">
  7 +
  8 + <h:form id="formError">
  9 + <br />
  10 + <f:loadBundle basename="constantes" var="msg" />
  11 + <div class="error" style="width: 97%; height: 70px;">
  12 + <p class="error-icon">Sess&#227;o expirada!<br />
  13 + Sua sess&#227;o expirou devido ao tempo de inatividade. <br/>
  14 + Volte a p&#225;gina principal clicando <h:link outcome="/pages/principal" value="aqui."/>
  15 + </p>
  16 + </div>
  17 + </h:form>
  18 +
  19 + </ui:define>
  20 +</ui:composition>
0 21 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/cadastro-empresa.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/cadastro-empresa.xhtml
... ... @@ -0,0 +1,537 @@
  1 + <?xml version="1.0" encoding="UTF-8"?>
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 + <f:metadata>
  10 + <f:event type="preRenderView"
  11 + listener="#{cadastroEmpresaBean.preload}" />
  12 + </f:metadata>
  13 +
  14 + <ui:define name="body">
  15 + <style type="text/css">
  16 +.declaracao_modelo {
  17 + cursor: default;
  18 + width: 94%;
  19 + text-align: justify;
  20 + font-size: 12px;
  21 + height: 100%;
  22 + font-weight: normal;
  23 + margin-left: 20px;
  24 + margin-right: 20px;
  25 + font-family: "Trebuchet MS", Tahoma, Arial, Helvetica, sans-serif;
  26 +}
  27 +</style>
  28 +
  29 + <h:panelGroup layout="block" style="text-align: right;">
  30 + <h:outputText styleClass="msgObrigatorio"
  31 + value="#{const.alerta_campos_obrigatorios}" />
  32 + </h:panelGroup>
  33 +
  34 + <h:form id="FormPessoaJuridica" prependId="false">
  35 +
  36 + <p:fieldset id="fsetGeral" legend="#{cadastroEmpresaBean.pageTitle}">
  37 +
  38 + <h:panelGroup id="pg-pj" layout="block">
  39 + <h:panelGrid id="panelGridPJ" columns="3"
  40 + columnClasses="coluna30,coluna50,coluna20">
  41 +
  42 + <h:outputText styleClass="icoObrigatorio" value="CNPJ:" />
  43 + <h:panelGroup layout="block">
  44 + <p:inputMask id="cnpj" mask="99.999.999/9999-99" required="true"
  45 + size="30" disabled="#{cadastroEmpresaBean.editarPj}"
  46 + value="#{cadastroEmpresaBean.model.pessoaTitular.cnpj}"
  47 + requiredMessage="#{cadastroEmpresaBean.requiredMessage}">
  48 + <p:ajax event="blur" process="@this" update="pg-pj"
  49 + listener="#{cadastroEmpresaBean.validateCNPJ}" />
  50 + </p:inputMask>
  51 + </h:panelGroup>
  52 + <p:message id="cnpjMsgs" for="cnpj" />
  53 +
  54 + <h:outputText value="Nome comercial:" />
  55 + <p:inputText id="nomeFantasia" style="width: 400px;"
  56 + maxlength="250" disabled="false"
  57 + value="#{cadastroEmpresaBean.model.pessoaTitular.nomeFantasia}" />
  58 + <p:message for="nomeFantasia" />
  59 +
  60 + <h:outputText value="Razão social:" />
  61 + <p:inputText id="razaoSocial" style="width: 400px;"
  62 + maxlength="250" disabled="false"
  63 + value="#{cadastroEmpresaBean.model.pessoaTitular.razaoSocial}" />
  64 + <p:message for="razaoSocial" />
  65 +
  66 + <h:outputText value="Ano de constituição:" />
  67 + <p:inputText id="anoConstituicao" maxlength="4"
  68 + value="#{cadastroEmpresaBean.model.anoConstituicao}" size="30"
  69 + disabled="#{cadastroEmpresaBean.somenteConsulta}" />
  70 + <p:message for="anoConstituicao" />
  71 +
  72 + <h:outputText value="Quantidade de empregados:" />
  73 + <p:inputText id="qtdEmpregados" maxlength="7"
  74 + value="#{cadastroEmpresaBean.model.qtdEmpregados}"
  75 + validatorMessage="Permite somente números" size="30"
  76 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  77 + <f:validateLongRange for="qtdEmpregados" minimum="0"
  78 + maximum="999999" />
  79 + <f:convertNumber for="qtdEmpregados" pattern="#,##0"
  80 + type="number" />
  81 + </p:inputText>
  82 + <p:message for="qtdEmpregados" />
  83 +
  84 + <h:outputText value="Capital social:" />
  85 + <p:inputText id="capitalSocial" maxlength="22"
  86 + value="#{cadastroEmpresaBean.model.pessoaTitular.capitalSocial}"
  87 + validatorMessage="Máximo permitido 15 números inteiros e 2 decimais"
  88 + size="30" disabled="#{cadastroEmpresaBean.somenteConsulta}">
  89 + <f:convertNumber type="currency" locale="pt_BR"
  90 + pattern="#,##0.00" />
  91 + <f:validateLength maximum="22" />
  92 + </p:inputText>
  93 + <p:message for="capitalSocial" />
  94 +
  95 + </h:panelGrid>
  96 + <br />
  97 +
  98 + <!--
  99 + <p:fieldset legend="Tipo de serviço">
  100 + <h:panelGrid columns="2" columnClasses="coluna50,coluna50"
  101 + width="100%">
  102 + <h:selectManyCheckbox converter="#{servicoConverter}"
  103 + value="#{cadastroEmpresaBean.model.servicos}"
  104 + layout="pageDirection" id="servico"
  105 + style="width:500px; height:100px;">
  106 + <f:selectItems value="#{cadastroEmpresaBean.servicos}" var="i"
  107 + itemLabel="#{i.dscServico}" itemValue="#{i.id}" />
  108 + </h:selectManyCheckbox>
  109 + <p:message for="servico" />
  110 + </h:panelGrid>
  111 + </p:fieldset>
  112 + <br />
  113 +
  114 + -->
  115 + <p:fieldset legend="Endereço">
  116 +
  117 + <script type="text/javascript">
  118 + $ = jQuery;
  119 + $(document).ready(function() {
  120 + // Ajusta layout de acordo com o navegador
  121 + adjustLayoutPosition();
  122 + });
  123 + function adjustLayoutPosition(){
  124 + if($.browser.msie){
  125 + $('#logradouro').css('width', '319px');
  126 + $('#numero').css('width', '48px');
  127 + $('#bairro').css('width', '400px');
  128 + $('#uf').css('width', '412px');
  129 + $('#cidade').css('width', '412px');
  130 + if(document.documentMode == 8){
  131 + $('#numero').css('width', '45px');
  132 + }
  133 + }else if($.browser.mozilla){
  134 + $('#numero').css('width', '47px');
  135 + }else if($.browser.webkit){
  136 + $('#numero').css('width', '47px');
  137 + }else if($.browser.opera){
  138 + $('#numero').css('width', '46px');
  139 + }
  140 + }
  141 + </script>
  142 +
  143 + <h:panelGrid columns="3"
  144 + columnClasses="coluna30,coluna50,coluna20">
  145 +
  146 + <h:outputText value="Endereço:" />
  147 + <h:panelGroup>
  148 + <p:inputText id="logradouro" style="width: 331px;"
  149 + maxlength="500" disabled="false"
  150 + value="#{cadastroEmpresaBean.endereco.logradouro}" />
  151 + <h:outputText value="&#160;Nº&#160;" />
  152 + <p:inputText id="numero" style="width: 50px;" maxlength="10"
  153 + disabled="false" value="#{cadastroEmpresaBean.endereco.numero}" />
  154 + </h:panelGroup>
  155 + <h:panelGroup>
  156 + <p:message for="logradouro" />
  157 + <p:message for="numero" />
  158 + </h:panelGroup>
  159 +
  160 + <h:outputText value="Bairro/Distrito/Setor:" />
  161 + <p:inputText id="bairro" style="width: 400px;" maxlength="100"
  162 + disabled="false" value="#{cadastroEmpresaBean.endereco.bairro}" />
  163 + <p:message for="bairro" />
  164 +
  165 + <h:outputText value="UF:" />
  166 + <h:selectOneMenu id="uf" style="width: 400px; height: 25px;"
  167 + value="#{cadastroEmpresaBean.uf.id}" disabled="false">
  168 + <f:selectItem itemValue="" itemLabel=" -- " />
  169 + <f:selectItems value="#{cadastroEmpresaBean.listaUf}" var="vr"
  170 + itemLabel="#{vr.sigla}" itemValue="#{vr.id}" />
  171 + <p:ajax event="change" process="@this" update="cidade"
  172 + listener="#{cadastroEmpresaBean.changeUF}" />
  173 + </h:selectOneMenu>
  174 + <p:message for="uf" />
  175 +
  176 + <h:outputText value="Município:" />
  177 + <h:selectOneMenu style="width: 400px; height: 25px;" id="cidade"
  178 + value="#{cadastroEmpresaBean.municipio.id}" disabled="false">
  179 + <f:selectItem itemValue="" itemLabel=" -- " />
  180 + <f:selectItems value="#{cadastroEmpresaBean.listaMunicipio}"
  181 + var="vr" itemLabel="#{vr.nome}" itemValue="#{vr.id}" />
  182 + </h:selectOneMenu>
  183 + <p:message for="cidade" />
  184 +
  185 + </h:panelGrid>
  186 +
  187 + </p:fieldset>
  188 + <br />
  189 +
  190 + <p:fieldset id="fsetRepLegal" legend="Representante legal">
  191 +
  192 + <h:panelGrid columns="3"
  193 + columnClasses="coluna30,coluna50,coluna20">
  194 +
  195 + <h:outputText value="CPF:" />
  196 + <p:inputMask id="cpfRepresentante" mask="999.999.999-99"
  197 + disabled="true" size="25"
  198 + value="#{cadastroEmpresaBean.cpfRepresentante.numero}">
  199 + </p:inputMask>
  200 + <p:message id="cpfMsgs" for="cpfRepresentante" />
  201 +
  202 + <h:outputText value="Representante legal:" />
  203 + <p:inputText id="representanteLegal" style="width: 400px;"
  204 + maxlength="100" disabled="true"
  205 + value="#{cadastroEmpresaBean.model.representante.pessoaFisica.nome}" />
  206 + <p:message for="representanteLegal" />
  207 +
  208 + </h:panelGrid>
  209 +
  210 + </p:fieldset>
  211 + <br />
  212 +
  213 + <p:fieldset id="fsetComunicacaoOficial"
  214 + legend="Comunicação oficial">
  215 +
  216 + <script type="text/javascript">
  217 + $ = jQuery;
  218 + $(document).ready(function() {
  219 +
  220 + // Mascara para fixos de são paulo.
  221 + if($("#numDddTelefone").val() == 11){
  222 + $("#numTelefone").mask("99999-9999");
  223 + }else{
  224 + $("#numTelefone").mask("9999-9999");
  225 + }
  226 + $("#numDddTelefone").blur(function(){
  227 + if($("#numDddTelefone").val() == 11){
  228 + $("#numTelefone").val("");
  229 + $("#numTelefone").attr('maxlength',10);
  230 + $("#numTelefone").unmask();
  231 + $("#numTelefone").mask("99999-9999");
  232 + }else{
  233 + $("#numTelefone").unmask();
  234 + $("#numTelefone").mask("9999-9999");
  235 + }
  236 + });
  237 +
  238 + $("#numTelefone").blur(function(){
  239 + qtdNum = $(this).val();
  240 + rs = qtdNum.substr(0,1);
  241 + if($("#numDddTelefone").val() == 11){
  242 + if(rs != 9){
  243 + $("#numTelefone").val("9"+$(this).val());
  244 + }
  245 + }
  246 + });
  247 +
  248 + });
  249 + </script>
  250 +
  251 + <h:panelGrid columns="3"
  252 + columnClasses="coluna30,coluna50,coluna20">
  253 + <h:outputText styleClass="icoObrigatorio" value="Telefone:" />
  254 + <h:panelGroup layout="block">
  255 + <p:inputMask id="numDddTelefone" style="width: 30px;" mask="99"
  256 + value="#{cadastroEmpresaBean.telefone.numDdd}"
  257 + disabled="#{cadastroEmpresaBean.somenteConsulta}" />
  258 + <h:outputText value="&#160;-&#160;" />
  259 + <p:inputText id="numTelefone" style="width: 100px;"
  260 + maxlength="9"
  261 + value="#{cadastroEmpresaBean.telefone.numTelefone}"
  262 + disabled="#{cadastroEmpresaBean.somenteConsulta}" />
  263 + </h:panelGroup>
  264 + <h:panelGroup layout="block">
  265 + <p:message for="numDddTelefone" />
  266 + <p:message for="numTelefone" />
  267 + </h:panelGroup>
  268 +
  269 + <h:outputText styleClass="icoObrigatorio"
  270 + value="E-mail principal:" />
  271 + <p:inputText id="emailPj" style="width: 400px;" maxlength="200"
  272 + validatorMessage="E-mail inválido!"
  273 + value="#{cadastroEmpresaBean.email.descricao}"
  274 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  275 + <f:validateRegex for="emailPj"
  276 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  277 + </p:inputText>
  278 + <p:message for="emailPj" />
  279 +
  280 + <h:outputText styleClass="icoObrigatorio"
  281 + value="Confirmação do e-mail principal:" />
  282 + <p:inputText id="emailConfirmacao" style="width: 400px;"
  283 + maxlength="200" validatorMessage="E-mail inválido!"
  284 + value="#{cadastroEmpresaBean.emailConfirmacao}"
  285 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  286 + <f:validateRegex for="emailConfirmacao"
  287 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  288 + </p:inputText>
  289 + <p:message for="emailConfirmacao" />
  290 +
  291 + <h:outputText value="E-mail adicional 1:" />
  292 + <p:inputText id="emailAdicional1" style="width: 400px;"
  293 + maxlength="200" validatorMessage="E-mail inválido!"
  294 + value="#{cadastroEmpresaBean.model.emailAdicional1}"
  295 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  296 + <f:validateRegex
  297 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  298 + </p:inputText>
  299 + <p:message for="emailAdicional1" />
  300 +
  301 + <h:outputText value="Confirmação do e-mail 1:" />
  302 + <p:inputText id="emailConfirmacaoAdiciona1" style="width: 400px;"
  303 + maxlength="200" validatorMessage="E-mail inválido!"
  304 + value="#{cadastroEmpresaBean.confirmacaoEmailAdicional1}"
  305 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  306 + <f:validateRegex
  307 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  308 + </p:inputText>
  309 + <p:message for="emailConfirmacaoAdiciona1" />
  310 +
  311 + <h:outputText value="E-mail adicional 2:" />
  312 + <p:inputText id="emailAdicional2" style="width: 400px;"
  313 + maxlength="200" validatorMessage="E-mail inválido!"
  314 + value="#{cadastroEmpresaBean.model.emailAdicional2}"
  315 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  316 + <f:validateRegex
  317 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  318 + </p:inputText>
  319 + <p:message for="emailAdicional2" />
  320 +
  321 + <h:outputText value="Confirmação do e-mail 2:" />
  322 + <p:inputText id="emailConfirmacaoAdiciona2" style="width: 400px;"
  323 + maxlength="200" validatorMessage="E-mail inválido!"
  324 + value="#{cadastroEmpresaBean.confirmacaoEmailAdicional2}"
  325 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  326 + <f:validateRegex
  327 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  328 + </p:inputText>
  329 + <p:message for="emailConfirmacaoAdiciona2" />
  330 +
  331 + <h:outputText value="E-mail adicional 3:" />
  332 + <p:inputText id="emailAdicional3" style="width: 400px;"
  333 + maxlength="200" validatorMessage="E-mail inválido!"
  334 + value="#{cadastroEmpresaBean.model.emailAdicional3}"
  335 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  336 + <f:validateRegex
  337 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  338 + </p:inputText>
  339 + <p:message for="emailAdicional3" />
  340 +
  341 + <h:outputText value="Confirmação do e-mail 3:" />
  342 + <p:inputText id="emailConfirmacaoAdiciona3" style="width: 400px;"
  343 + maxlength="200" validatorMessage="E-mail inválido!"
  344 + value="#{cadastroEmpresaBean.confirmacaoEmailAdicional3}"
  345 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  346 + <f:validateRegex
  347 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  348 + </p:inputText>
  349 + <p:message for="emailConfirmacaoAdiciona3" />
  350 +
  351 + <h:outputText value="E-mail adicional 4:" />
  352 + <p:inputText id="emailAdicional4" style="width: 400px;"
  353 + maxlength="200" validatorMessage="E-mail inválido!"
  354 + value="#{cadastroEmpresaBean.model.emailAdicional4}"
  355 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  356 + <f:validateRegex
  357 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  358 + </p:inputText>
  359 + <p:message for="emailAdicional4" />
  360 +
  361 + <h:outputText value="Confirmação do e-mail 4:" />
  362 + <p:inputText id="emailConfirmacaoAdiciona4" style="width: 400px;"
  363 + maxlength="200" validatorMessage="E-mail inválido!"
  364 + value="#{cadastroEmpresaBean.confirmacaoEmailAdicional4}"
  365 + disabled="#{cadastroEmpresaBean.somenteConsulta}">
  366 + <f:validateRegex
  367 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  368 + </p:inputText>
  369 + <p:message for="emailConfirmacaoAdiciona4" />
  370 + </h:panelGrid>
  371 +
  372 + </p:fieldset>
  373 + <br />
  374 +
  375 + <script type="text/javascript">
  376 + $ = jQuery;
  377 + $(document).ready(function() {
  378 + // Configuração para campos de Real.
  379 + $("#capitalSocial").maskMoney({showSymbol:false, decimal:",", thousands:"."});
  380 + $("#anoConstituicao").numeric({decimal: false, negative: false});
  381 + $("#qtdEmpregados").maskMoney({thousands:".", precision:0});
  382 + });
  383 + </script>
  384 +
  385 + </h:panelGroup>
  386 +
  387 + <p:fieldset legend="Documentos">
  388 + <h:panelGrid columns="3">
  389 + <h:outputText styleClass="icoObrigatorio" style="font-size: 12px;"
  390 + escape="false"
  391 + value="Atos constitutivos - Atos constitutivos, estatutos ou contratos sociais em vigor, devidamente registrados, em se tratando de sociedades comerciais, e, no caso de sociedades por ações, acompanhados de documentos de eleição de seus administradores:" />
  392 + <h:outputText />
  393 + <h:outputText />
  394 + <h:panelGrid columns="2">
  395 + <p:inputText id="atosConstitutivos"
  396 + value="#{cadastroEmpresaBean.atosConstitutivos.nomDocumento}"
  397 + style="width: 370px;" maxlength="100" readonly="true" />
  398 + <p:fileUpload id="uploadAtosConstitutivos" widgetVar="uploader"
  399 + auto="true" height="26" width="26"
  400 + fileUploadListener="#{cadastroEmpresaBean.handleUploadAtosConstitutivos}"
  401 + allowTypes="*.*" description="*.*" customUI="true"
  402 + sizeLimit="15728640" update="atosConstitutivos"
  403 + image="../../resources/design/imagem/icone-upload.png"
  404 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  405 + rendered="#{cadastroEmpresaBean.renderizaUploadDocumentos}" />
  406 + </h:panelGrid>
  407 + <p:message for="atosConstitutivos" />
  408 + <h:outputText />
  409 + <h:outputText style="font-size: 11px; color:#FF0000;"
  410 + escape="false" value="* Tamanho máximo permitido 15Mb." />
  411 + </h:panelGrid>
  412 + <h:panelGrid columns="3">
  413 + <h:outputText styleClass="icoObrigatorio" style="font-size: 12px;"
  414 + escape="false"
  415 + value="CNPJ - Comprovante de inscrição no Cadastro Nacional de Pessoas Jurídicas - CNPJ/MF:" />
  416 + <h:outputText />
  417 + <h:outputText />
  418 + <h:panelGrid columns="2">
  419 + <p:inputText id="comprovanteCnpj"
  420 + value="#{cadastroEmpresaBean.comprovanteCnpj.nomDocumento}"
  421 + style="width: 370px;" maxlength="100" readonly="true" />
  422 + <p:fileUpload id="uploadComprovanteCnpj" widgetVar="uploader"
  423 + auto="true" height="26" width="26"
  424 + fileUploadListener="#{cadastroEmpresaBean.handleUploadComprovanteCnpj}"
  425 + allowTypes="*.*" description="*.*" customUI="true"
  426 + sizeLimit="15728640" update="comprovanteCnpj"
  427 + image="../../resources/design/imagem/icone-upload.png"
  428 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  429 + rendered="#{cadastroEmpresaBean.renderizaUploadDocumentos}" />
  430 + </h:panelGrid>
  431 + <p:message for="comprovanteCnpj" />
  432 + <h:outputText />
  433 + <h:outputText style="font-size: 11px; color:#FF0000;"
  434 + escape="false" value="* Tamanho máximo permitido 15Mb." />
  435 + </h:panelGrid>
  436 + <h:panelGrid columns="3">
  437 + <h:outputText styleClass="icoObrigatorio" style="font-size: 12px;"
  438 + escape="false"
  439 + value="Representante legal - Documento que comprove os poderes do representante:" />
  440 + <h:outputText />
  441 + <h:outputText />
  442 + <h:panelGrid columns="2">
  443 + <p:inputText id="comprovanteRepresentanteLegal"
  444 + value="#{cadastroEmpresaBean.comprovanteRepresentanteLegal.nomDocumento}"
  445 + style="width: 370px;" maxlength="100" readonly="true" />
  446 + <p:fileUpload id="uploadcomprovanteRepresentanteLegal"
  447 + widgetVar="uploader" auto="true" height="26" width="26"
  448 + fileUploadListener="#{cadastroEmpresaBean.handleUploadComprovanteRepresentanteLegal}"
  449 + allowTypes="*.*" description="*.*" customUI="true"
  450 + sizeLimit="15728640" update="comprovanteRepresentanteLegal"
  451 + image="../../resources/design/imagem/icone-upload.png"
  452 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  453 + rendered="#{cadastroEmpresaBean.renderizaUploadDocumentos}" />
  454 + </h:panelGrid>
  455 + <p:message for="comprovanteRepresentanteLegal" />
  456 + <h:outputText />
  457 + <h:outputText style="font-size: 11px; color:#FF0000;"
  458 + escape="false" value="* Tamanho máximo permitido 15Mb." />
  459 + </h:panelGrid>
  460 + </p:fieldset>
  461 + <br />
  462 +
  463 + <!--
  464 + <div id="comunicado" class="declaracao_modelo">
  465 + <script type="text/javascript">
  466 + $ = jQuery;
  467 + $(document).ready(function() {
  468 + $('#obterModelo').attr('download', 'modelo_declaracao_veracidade.pdf');
  469 + });
  470 + </script>
  471 + <h:outputText value="Atenção, Radiodifusores!"
  472 + style="color:red; font-weight: bold;" />
  473 + <br />
  474 + <br />
  475 + <h:outputText
  476 + value="Para a conclusão desse procedimento, é necessário baixar o documento" />
  477 + <h:outputLink title="Obter modelo" target="_blank"
  478 + value="../../modelos/modelo_declaracao_veracidade.pdf">
  479 + <h:outputText style="padding-left:8px;" />
  480 + <h:outputText
  481 + value="Declaração de Veracidade das Informações Prestadas"></h:outputText>
  482 + </h:outputLink>
  483 + <h:outputText
  484 + value=", preenchê-lo e assiná-lo com firma reconhecida em cartório. Após, entregue pessoalmente ou envie o referido formulário para o seguinte endereço:" />
  485 + <br /> <br />
  486 + <h:outputText value="Ministério da Justiça" />
  487 + <br />
  488 + <h:outputText
  489 + value="Secretaria de Serviços de Comunicação Eletrônica" />
  490 + <br />
  491 + <h:outputText
  492 + value="Grupo de Trabalho de Documentação e Informação" />
  493 + <br />
  494 + <h:outputText
  495 + value="Serviço de Apoio Administrativo da Comunicação Eletrônica" />
  496 + <br />
  497 + <h:outputText
  498 + value="Esplanada dos Ministérios, Bloco T, Edifício Anexo I...." />
  499 + <br />
  500 + <h:outputText value="Brasília-DF" />
  501 + <br />
  502 + <h:outputText value="Cep: 70064-901" />
  503 + <br />
  504 + <br />
  505 + <h:outputText
  506 + value="A efetivação do seu cadastro no SEI-MC somente ocorrerá após o recebimento da declaração devidamente preenchido, com firma reconhecida em cartório e validado pelo Ministério das Comunicações. Você receberá um e-mail confirmando a efetivação do cadastro." />
  507 + <br />
  508 + <br />
  509 + <h:outputText
  510 + value="Atenção! O envio da referida declaração é obrigatório apenas para o cadastro de Pessoas Jurídicas na área de Radiodifusão. Os demais usuários externos não precisam enviar tal declaração para cadastrar suas pessoas jurídicas."
  511 + style="color:red; font-weight: bold;" />
  512 + </div>
  513 + -->
  514 +
  515 + </p:fieldset>
  516 + <br />
  517 +
  518 + <h:panelGroup layout="block" style="text-align: center;">
  519 + <p:commandButton id="saveButton" value="Salvar"
  520 + action="#{cadastroEmpresaBean.save}" ajax="false"
  521 + process="panelGridPJ servico"
  522 + disabled="#{cadastroEmpresaBean.somenteConsulta}" />
  523 + <p:commandButton value="Voltar" ajax="false" id="voltar"
  524 + action="pessoa-juridica.jsf?faces-redirect=true" immediate="true" />
  525 + <h:panelGroup id="backButton" style="float: right;">
  526 + <h:link title="Voltar para página principal"
  527 + outcome="principal.jsf?faces-redirect=true">
  528 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  529 + </h:link>
  530 + </h:panelGroup>
  531 + </h:panelGroup>
  532 +
  533 +
  534 + </h:form>
  535 +
  536 + </ui:define>
  537 +</ui:composition>
0 538 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/cadastro-peticao.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/cadastro-peticao.xhtml
... ... @@ -0,0 +1,185 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 +<ui:define name="body">
  10 +
  11 + <h:panelGroup layout="block" style="text-align: right;">
  12 + <h:outputText styleClass="msgObrigatorio" value="#{const.alerta_campos_obrigatorios}"/>
  13 + </h:panelGroup>
  14 +
  15 + <h:form id="form-peticao" prependId="false">
  16 +
  17 + <p:fieldset legend="Peticionamento">
  18 +
  19 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75" width="100%">
  20 + <h:outputText styleClass="icoObrigatorio" value="Em nome:" />
  21 + <h:panelGroup id="pgTipoPessoa" layout="block">
  22 + <h:selectOneRadio id="tipo-pessoa" value="#{cadastroPeticaoBean.tipoPessoa}" disabled="#{cadastroPeticaoBean.disableTipoPessoa or cadastroPeticaoBean.visualizar}">
  23 + <f:selectItem itemValue="F" itemLabel="Pessoa física"/>
  24 + <f:selectItem itemValue="J" itemLabel="Pessoa jurídica"/>
  25 + <!--
  26 + <f:selectItem itemValue="P" itemLabel="Procuração"/>
  27 + -->
  28 + <p:ajax event="change" update="pessoa-juridica,pgTipoPessoa,labelEmpresa,labelProcuracao,pg-procuracao,pg-area,pg-servico" listener="#{cadastroPeticaoBean.exibirListaPessoaJuridica}"/>
  29 + </h:selectOneRadio>
  30 + </h:panelGroup>
  31 + </h:panelGrid>
  32 +
  33 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75" width="100%">
  34 + <h:panelGroup id="labelEmpresa">
  35 + <h:outputText styleClass="icoObrigatorio" value="Empresas:" rendered="#{cadastroPeticaoBean.tipoPessoa eq 'J'}" />
  36 + </h:panelGroup>
  37 + <h:panelGroup id="pessoa-juridica" layout="block">
  38 + <h:selectOneMenu value="#{cadastroPeticaoBean.model.empresa.id}" rendered="#{cadastroPeticaoBean.tipoPessoa eq 'J'}" style="width: 335px;" disabled="#{cadastroPeticaoBean.visualizar}">
  39 + <f:selectItems value="#{cadastroPeticaoBean.empresas}"/>
  40 + </h:selectOneMenu>
  41 + </h:panelGroup>
  42 + </h:panelGrid>
  43 +
  44 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75" width="100%">
  45 + <h:panelGroup id="labelProcuracao">
  46 + <h:outputText styleClass="icoObrigatorio" value="Outorgante:" rendered="#{cadastroPeticaoBean.tipoPessoa eq 'P'}"/>
  47 + </h:panelGroup>
  48 + <h:panelGroup id="pg-procuracao" layout="block">
  49 + <h:selectOneMenu value="#{cadastroPeticaoBean.model.procuracao.id}" rendered="#{cadastroPeticaoBean.tipoPessoa eq 'P'}" style="width: 335px;" disabled="#{cadastroPeticaoBean.visualizar}">
  50 + <f:selectItem itemLabel="Selecione" itemValue="" />
  51 + <f:selectItems value="#{cadastroPeticaoBean.listProcuracoes}"/>
  52 + <p:ajax event="change" update="pg-area,pg-servico,pg-solicitacao" listener="#{cadastroPeticaoBean.exibirListaArea}"/>
  53 + </h:selectOneMenu>
  54 + </h:panelGroup>
  55 + </h:panelGrid>
  56 +
  57 +
  58 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75" width="100%">
  59 + <h:outputText styleClass="icoObrigatorio" value="Tipos de Documentos:"/>
  60 + <h:panelGroup id="pg-solicitacao" layout="block">
  61 + <h:selectOneMenu id="solicitacao" value="#{cadastroPeticaoBean.model.solicitacao.id}" style="width: 335px;" disabled="#{cadastroPeticaoBean.visualizar}">
  62 + <f:selectItem itemValue="" itemLabel="[Selecione]"/>
  63 + <f:selectItems value="#{cadastroPeticaoBean.listServicoSolicitacao}" var="solicitacao" itemLabel="#{solicitacao.solicitacao.dscSolicitacao}" itemValue="#{solicitacao.solicitacao.id}"/>
  64 + </h:selectOneMenu>
  65 + </h:panelGroup>
  66 +
  67 + </h:panelGrid>
  68 +
  69 + <h:panelGrid columns="2" columnClasses="coluna25,coluna75" width="100%">
  70 +
  71 + <h:outputText styleClass="icoObrigatorio" value="Protocolo existente?" />
  72 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  73 + <h:selectOneRadio id="existe-protocolo" value="#{cadastroPeticaoBean.model.existeProtocolo}" disabled="#{cadastroPeticaoBean.visualizar}">
  74 + <f:selectItem itemValue="true" itemLabel="Sim"/>
  75 + <f:selectItem itemValue="false" itemLabel="Não"/>
  76 + <p:ajax event="change" process="@this" update="pg-protocolo label-protocolo resumo-protocolo" listener="#{cadastroPeticaoBean.changeExisteProcesso}"/>
  77 + </h:selectOneRadio>
  78 + </h:panelGrid>
  79 +
  80 + <h:outputText id="label-protocolo" styleClass="#{cadastroPeticaoBean.model.existeProtocolo ? 'icoObrigatorio' : ''}" value="Número do protocolo:" />
  81 + <h:panelGrid id="pg-protocolo" columns="2" columnClasses="coluna50,coluna50" width="100%">
  82 + <h:panelGrid columns="7" cellspacing="0">
  83 + <p:inputMask id="protocolo" value="#{cadastroPeticaoBean.model.numeroProtocolo}" size="25" mask="99999.999999/9999"
  84 + disabled="#{!cadastroPeticaoBean.model.existeProtocolo or cadastroPeticaoBean.visualizar}"/>
  85 + <h:outputText value="-"/>
  86 +
  87 + <p:inputText id="digito" value="#{cadastroPeticaoBean.model.digitoNumeroProtocolo}" disabled="#{!cadastroPeticaoBean.model.existeProtocolo or cadastroPeticaoBean.visualizar}" size="2" maxlength="2">
  88 + <p:ajax event="blur" update="resumo-protocolo, msgs" process="@this, pg-protocolo" listener="#{cadastroPeticaoBean.pesquisarProtocolo}"/>
  89 + </p:inputText>
  90 +
  91 + <h:outputText value="&#160;&#160;"/>
  92 +
  93 + </h:panelGrid>
  94 + <p:message for="protocolo"/>
  95 + <p:message for="digito"/>
  96 + </h:panelGrid>
  97 +
  98 + <h:outputText styleClass="icoObrigatorio" value="Assunto:" />
  99 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  100 + <p:inputText id="assunto" value="#{cadastroPeticaoBean.model.assunto}" maxlength="50" style="width: 580px;" disabled="#{cadastroPeticaoBean.visualizar}"/>
  101 + </h:panelGrid>
  102 +
  103 + </h:panelGrid>
  104 +
  105 + <h:panelGroup id="resumo-protocolo" layout="block">
  106 + <h:panelGroup layout="block">
  107 + <br/>
  108 + </h:panelGroup>
  109 + </h:panelGroup>
  110 +
  111 + <br/>
  112 +
  113 + <p:fieldset legend="Documentos">
  114 + <h:panelGroup rendered="#{!cadastroPeticaoBean.visualizar}">
  115 + <br/>
  116 + <h:outputLink value="http://www.justica.gov.br" target="_blank">
  117 + <h:outputText value="Veja se há um formulário ou padrão de documento para sua solicitação" />
  118 + </h:outputLink>
  119 + <br/><br/>
  120 +
  121 + <h:outputText styleClass="icoObrigatorio" value="Documento:" />
  122 + <h:panelGroup id="pg-documento" layout="block">
  123 + <h:panelGroup layout="block">
  124 + <h:panelGrid columns="5">
  125 + <p:inputText id="documento" value="#{cadastroPeticaoBean.documento.nome}" readonly="true" size="60" maxlength="250"/>
  126 + <p:fileUpload id="upload" auto="true" height="26" width="26"
  127 + image="../../resources/design/imagem/icone-upload.png"
  128 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  129 + allowTypes="*.pdf*" description="Arquivos PDF (*.pdf)" customUI="true"
  130 + fileUploadListener="#{cadastroPeticaoBean.uploadDocumento}"
  131 + sizeLimit="20008800" update="documento msgDocumento dt-documentos"/>
  132 + <h:outputText value="&#160;&#160;&#160;" />
  133 + <p:message id="msgDocumento" for="documento"/>
  134 + </h:panelGrid>
  135 + </h:panelGroup>
  136 + </h:panelGroup>
  137 + <h:panelGroup layout="block">
  138 + <h:outputText value="Tamanho máximo permitido 50Mb,com extensões no formato: JPG, PNG ou PDF" style="font-size: 10px; color: red; font-weight: normal;"/>
  139 + </h:panelGroup>
  140 + <br/><br/>
  141 + </h:panelGroup>
  142 +
  143 + <h:panelGroup id="dt-documentos" layout="block">
  144 + <p:dataTable
  145 + value="#{cadastroPeticaoBean.model.documentos}"
  146 + var="docto"
  147 + rowIndexVar="rowIx"
  148 + emptyMessage="#{cadastroPeticaoBean.emptyMessage}"
  149 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}">
  150 + <p:column headerText="Nome do arquivo">
  151 + <h:outputText value="#{docto.nome}"/>
  152 + </p:column>
  153 + <p:column headerText="Ações" style="text-align: center; width: 15%;" rendered="#{!cadastroPeticaoBean.visualizar}">
  154 + <p:commandLink update="dt-documentos" process="@this" action="#{cadastroPeticaoBean.excluirDocumento}">
  155 + <h:graphicImage library="design/imagem" name="icone-excluir.png" alt="Excluir arquivo" title="Excluir arquivo"/>
  156 + <f:setPropertyActionListener target="#{cadastroPeticaoBean.documento}" value="#{docto}" />
  157 + </p:commandLink>
  158 + <h:outputText value="&#160;"/>
  159 + <h:commandLink immediate="true">
  160 + <h:graphicImage library="design/imagem" name="icone-download.png" alt="Baixar arquivo" title="Baixar arquivo"/>
  161 + <f:setPropertyActionListener target="#{cadastroPeticaoBean.documento}" value="#{docto}" />
  162 + <p:fileDownload value="#{cadastroPeticaoBean.file}"/>
  163 + </h:commandLink>
  164 + </p:column>
  165 + </p:dataTable>
  166 + </h:panelGroup>
  167 + </p:fieldset>
  168 + </p:fieldset>
  169 + <br/>
  170 +
  171 + <h:panelGroup layout="block" style="text-align: center;">
  172 + <p:commandButton id="enviarButton" value="Enviar" action="#{cadastroPeticaoBean.enviar}" ajax="false" rendered="#{!cadastroPeticaoBean.visualizar}"/>
  173 + <h:outputText value="&#160;&#160;&#160;&#160;"/>
  174 + <p:commandButton id="voltarButton" value="Voltar" action="consultar-peticao.jsf?faces-redirect=true" ajax="false"/>
  175 + <h:panelGroup id="backButton" style="float: right;">
  176 + <h:link title="Voltar para página principal" outcome="principal.jsf?faces-redirect=true" >
  177 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  178 + </h:link>
  179 + </h:panelGroup>
  180 + </h:panelGroup>
  181 +
  182 + </h:form>
  183 +
  184 +</ui:define>
  185 +</ui:composition>
0 186 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/cadastro-procuracao.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/cadastro-procuracao.xhtml
... ... @@ -0,0 +1,191 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 +<ui:define name="body">
  10 + <h:panelGroup layout="block" style="text-align: right;">
  11 + <h:outputText styleClass="msgObrigatorio" value="#{const.alerta_campos_obrigatorios}"/>
  12 + </h:panelGroup>
  13 +
  14 + <h:form id="form-procuracao" prependId="false">
  15 +
  16 + <p:fieldset legend="Procuração Eletrônica">
  17 +
  18 + <p:fieldset legend="Outorgante(s)">
  19 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  20 + <h:outputText value="Pessoa (Física/Jurídica) representada:"/>
  21 + </h:panelGrid>
  22 +
  23 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%" rendered="#{!cadastroProcuracaoBean.visualizacao}">
  24 + <h:selectManyCheckbox id="empresas" value="#{cadastroProcuracaoBean.empresasOutorganteSelecionadas}" layout="pageDirection" rendered="#{cadastroProcuracaoBean.renderTodos}">
  25 + <f:selectItem itemLabel="Todos" itemValue="T" />
  26 + <f:selectItems value="#{cadastroProcuracaoBean.listEmpresa}" var="emp" itemLabel="#{emp.pessoaTitular.razaoSocial}" itemValue="#{emp.id}"/>
  27 + <p:ajax event="click" process="@this" update="empresas, proponenteLogado" listener="#{cadastroProcuracaoBean.selecionarTodasEmpresas}"/>
  28 + </h:selectManyCheckbox>
  29 + <h:selectManyCheckbox id="proponenteLogado" value="#{cadastroProcuracaoBean.proponenteOutorganteSelecionado}" layout="pageDirection">
  30 + <f:selectItem itemLabel="#{cadastroProcuracaoBean.proponenteLogado.pessoaProponente.nome}" itemValue="#{cadastroProcuracaoBean.proponenteLogado.id}" />
  31 + </h:selectManyCheckbox>
  32 + </h:panelGrid>
  33 +
  34 + <h:panelGrid columns="2" columnClasses="coluna10,coluna80" width="100%" rendered="#{cadastroProcuracaoBean.visualizacao and cadastroProcuracaoBean.model.empresaOutorgante.id == null}">
  35 + <h:outputText value="CPF :"/>
  36 + <p:inputMask mask="999.999.999-99" size="20" value="#{cadastroProcuracaoBean.model.proponenteOutorgante.loginProponente}" disabled="true"/>
  37 + <h:outputText value="Nome :"/>
  38 + <h:outputText value="#{cadastroProcuracaoBean.model.proponenteOutorgante.pessoaProponente.nome}" />
  39 + </h:panelGrid>
  40 +
  41 + <h:panelGrid columns="2" columnClasses="coluna10,coluna80" width="100%" rendered="#{cadastroProcuracaoBean.visualizacao and cadastroProcuracaoBean.model.proponenteOutorgante.id == null}">
  42 + <h:outputText value="CNPJ :"/>
  43 + <p:inputMask mask="99.999.999/9999-99" size="25" value="#{cadastroProcuracaoBean.model.empresaOutorgante.pessoaTitular.cnpj}" disabled="true"/>
  44 + <h:outputText value="Nome :"/>
  45 + <h:outputText value="#{cadastroProcuracaoBean.model.empresaOutorgante.pessoaTitular.razaoSocial}" />
  46 + </h:panelGrid>
  47 +
  48 + </p:fieldset>
  49 +
  50 + <br/>
  51 +
  52 + <p:fieldset legend="Outorgado(s)">
  53 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  54 + <h:panelGroup id="pgTipoPessoa" layout="block">
  55 + <h:selectOneRadio id="tipo-pessoa" value="#{cadastroProcuracaoBean.tipoPessoa}" style="width:50%;" disabled="#{cadastroProcuracaoBean.visualizacao}">
  56 + <f:selectItem itemValue="F" itemLabel="Pessoa física"/>
  57 + <f:selectItem itemValue="J" itemLabel="Pessoa jurídica"/>
  58 + <p:ajax event="click" update="pg-cnpj,pg-cpf,pgTipoPessoa,pgroup-nomeCnpj,pgroup-nomeCpf" listener="#{cadastroProcuracaoBean.exibirPessoa}"/>
  59 + </h:selectOneRadio>
  60 + </h:panelGroup>
  61 + </h:panelGrid>
  62 +
  63 + <h:panelGroup id="pg-cpf">
  64 + <h:panelGrid columns="3" columnClasses="coluna20,coluna40,coluna40" width="100%" rendered="#{cadastroProcuracaoBean.tipoPessoa eq 'F'}">
  65 + <h:outputText styleClass="icoObrigatorio" value="CPF:" />
  66 + <h:panelGroup layout="block">
  67 + <p:inputMask id="cpf" mask="999.999.999-99" required="true" size="20"
  68 + value="#{cadastroProcuracaoBean.numCpf}" requiredMessage="#{cadastroProcuracaoBean.requiredMessage}" disabled="#{cadastroProcuracaoBean.visualizacao}">
  69 + <p:ajax event="blur" process="@this" update="pgroup-nomeCpf, cpfMsgs" listener="#{cadastroProcuracaoBean.validateCPF}" />
  70 + </p:inputMask>
  71 + </h:panelGroup>
  72 + <p:message id="cpfMsgs" for="cpf"/>
  73 + </h:panelGrid>
  74 + </h:panelGroup>
  75 +
  76 + <h:panelGroup id="pg-cnpj">
  77 + <h:panelGrid columns="3" columnClasses="coluna20,coluna40,coluna40" width="100%" rendered="#{cadastroProcuracaoBean.tipoPessoa eq 'J'}">
  78 + <h:outputText styleClass="icoObrigatorio" value="CNPJ:" />
  79 + <h:panelGroup layout="block">
  80 + <p:inputMask id="cnpj" mask="99.999.999/9999-99" required="true" size="25"
  81 + value="#{cadastroProcuracaoBean.numCnpj}" requiredMessage="#{cadastroProcuracaoBean.requiredMessage}" disabled="#{cadastroProcuracaoBean.visualizacao}">
  82 + <p:ajax event="blur" process="@this" update="pgroup-nomeCnpj, cnpjMsgs" listener="#{cadastroProcuracaoBean.validateCNPJ}" />
  83 + </p:inputMask>
  84 + </h:panelGroup>
  85 + <p:message id="cnpjMsgs" for="cnpj"/>
  86 + </h:panelGrid>
  87 + </h:panelGroup>
  88 +
  89 + <h:panelGroup id="pgroup-nomeCnpj">
  90 + <h:panelGrid id="pgrid-nomeCnpj" columns="2" columnClasses="coluna20,coluna80" width="100%" rendered="#{cadastroProcuracaoBean.cnpjValidado}">
  91 + <h:outputLabel value="Razão Social : "/>
  92 + <h:outputLabel value="#{cadastroProcuracaoBean.empresaValidado.pessoaTitular.razaoSocial}"/>
  93 + </h:panelGrid>
  94 + </h:panelGroup>
  95 +
  96 + <h:panelGroup id="pgroup-nomeCpf">
  97 + <h:panelGrid id="pgrid-nomeCpf" columns="2" columnClasses="coluna20,coluna80" width="100%" rendered="#{cadastroProcuracaoBean.cpfValidado}">
  98 + <h:outputLabel value="Nome : "/>
  99 + <h:outputLabel value="#{cadastroProcuracaoBean.proponenteValidado.pessoaProponente.nome}"/>
  100 + </h:panelGrid>
  101 + </h:panelGroup>
  102 + </p:fieldset>
  103 +
  104 + <br/>
  105 +
  106 + <p:fieldset legend="Poderes">
  107 +
  108 + <h:panelGroup rendered="#{!cadastroProcuracaoBean.visualizacao}">
  109 + <br/>
  110 + </h:panelGroup>
  111 +
  112 + <p:fieldset legend="Gerais" >
  113 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  114 + <h:selectManyCheckbox value="#{cadastroProcuracaoBean.selecionadoGeral}" disabled="#{cadastroProcuracaoBean.visualizacao}">
  115 + <f:selectItem itemLabel="Todos os poderes atualmente detidos pelo outorgante/substabelecedor." itemValue="T"/>
  116 + <p:ajax process="@this" update="pgEspecificos" listener="#{cadastroProcuracaoBean.renderizarEspecificos}"/>
  117 + </h:selectManyCheckbox>
  118 + </h:panelGrid>
  119 + </p:fieldset>
  120 +
  121 + <br/>
  122 +
  123 + <h:panelGroup id="pgEspecificos" >
  124 + <p:fieldset legend="Específicos" rendered="#{cadastroProcuracaoBean.renderEspecificios}">
  125 + <p:tree value="#{cadastroProcuracaoBean.list}" var="node" selectionMode="#{cadastroProcuracaoBean.visualizacao? 'single' : 'checkbox'}" propagateSelectionDown="true"
  126 + selection="#{cadastroProcuracaoBean.selectedSolicitacao}">
  127 + <p:treeNode type="area">
  128 + <h:outputText value="#{node.dscArea}"/>
  129 + </p:treeNode>
  130 + <p:treeNode type="servico" >
  131 + <h:outputText value="#{node.dscServico}"/>
  132 + </p:treeNode>
  133 + <p:treeNode type="solicitacao" >
  134 + <h:outputText value="#{node.dscSolicitacao}"/>
  135 + </p:treeNode>
  136 + </p:tree>
  137 + </p:fieldset>
  138 + </h:panelGroup>
  139 + </p:fieldset>
  140 +
  141 + <br/>
  142 +
  143 + <p:fieldset legend="Validade">
  144 +
  145 + <h:panelGrid columns="5" columnClasses="coluna10, coluna20, coluna10, coluna15, coluna20" width="80%">
  146 + <h:outputText value="Data Inicial:"/>
  147 + <p:calendar id="dtInicial" label="Data inicial" size="15" pattern="dd/MM/yyyy" navigator="true"
  148 + yearRange="1900:2050" value="#{cadastroProcuracaoBean.model.dataValidadeInicial}" disabled="true">
  149 + </p:calendar>
  150 + <h:outputText value="Data Final:" styleClass="icoObrigatorio"/>
  151 + <p:calendar id="dtFinal" label="Data inicial" size="15" pattern="dd/MM/yyyy" navigator="true"
  152 + yearRange="1900:2050" value="#{cadastroProcuracaoBean.model.dataValidadeFinal}" required="true" disabled="#{cadastroProcuracaoBean.visualizacao}">
  153 + </p:calendar>
  154 + <h:outputText value="#{const.data_prazo_maximo}"/>
  155 + </h:panelGrid>
  156 +
  157 + </p:fieldset>
  158 +
  159 + <br/>
  160 +
  161 + <p:fieldset legend="Substabelecimento">
  162 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  163 + <h:outputLabel value="O substabelecimento é a transferência, pelo mandátario (outorgado da procuração original), dos poderes que lhe foram outorgados no mandato (pelo outorgante da procuração original), em parte ou no todo, para outrem, a fim de que o substitua (substabelecido)."/>
  164 +
  165 + <br/>
  166 +
  167 + <h:selectOneRadio id="permiteSubstabelecimento" value="#{cadastroProcuracaoBean.flgPermiteSubstabelecimento}" style="width:70%;" disabled="#{cadastroProcuracaoBean.visualizacao}">
  168 + <f:selectItem itemValue="false" itemLabel="Vedado o substabelecimento"/>
  169 + <f:selectItem itemValue="true" itemLabel="Permitido o substabelecimento"/>
  170 + </h:selectOneRadio>
  171 + </h:panelGrid>
  172 + </p:fieldset>
  173 +
  174 + </p:fieldset>
  175 + <br/>
  176 +
  177 + <h:panelGroup layout="block" style="text-align: center;">
  178 + <p:commandButton id="bt-save" value="Salvar" action="#{cadastroProcuracaoBean.salvar}" ajax="false" disabled="#{cadastroProcuracaoBean.visualizacao}"/>
  179 + <h:outputText value="&#160;&#160;&#160;"/>
  180 + <p:commandButton value="Voltar" ajax="false" id="voltar" action="listar-procuracao.jsf?faces-redirect=true" immediate="true"/>
  181 + <h:panelGroup id="backButton" style="float: right;">
  182 + <h:link title="Voltar para página principal" outcome="principal.jsf?faces-redirect=true" >
  183 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  184 + </h:link>
  185 + </h:panelGroup>
  186 + </h:panelGroup>
  187 +
  188 + </h:form>
  189 +
  190 +</ui:define>
  191 +</ui:composition>
0 192 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/cadastro-proponente.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/cadastro-proponente.xhtml
... ... @@ -0,0 +1,575 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 + <f:metadata>
  10 + <f:event type="preRenderView"
  11 + listener="#{cadastroProponenteBean.buscaIp}" />
  12 + </f:metadata>
  13 +
  14 + <ui:define name="body">
  15 +
  16 + <style type="text/css">
  17 +.coluna5 {
  18 + border: 0 none !important;
  19 + font-size: 12px !important;
  20 + width: 5%;
  21 + line-height: 23px;
  22 +}
  23 +
  24 +.coluna2 {
  25 + border: 0 none !important;
  26 + font-size: 12px !important;
  27 + width: 2%;
  28 + line-height: 23px;
  29 +}
  30 +
  31 +.coluna16 {
  32 + border: 0 none !important;
  33 + font-size: 12px !important;
  34 + width: 16%;
  35 + line-height: 23px;
  36 +}
  37 +</style>
  38 +
  39 + <h:panelGroup layout="block" style="text-align: right;">
  40 + <h:outputText styleClass="msgObrigatorio" value="#{const.alerta_campos_obrigatorios}" />
  41 + </h:panelGroup>
  42 +
  43 + <h:form id="formCADSEI" prependId="false">
  44 +
  45 + <h:inputHidden value="#{cadastroProponenteBean.context}"
  46 + id="contextPath" />
  47 +
  48 + <p:fieldset id="dadosGerais"
  49 + legend="#{cadastroProponenteBean.tituloTela}">
  50 +
  51 + <script type="text/javascript">
  52 +
  53 + $ = jQuery;
  54 + $(document).ready(function() {
  55 +
  56 + $('[id$=dtNascimento_input]').attr('readonly', 'readonly');
  57 +
  58 + //oculta msg de erro de validação de email.
  59 + $("#erroEmail").hide();
  60 + $("#erroEmailConfirmacao").hide();
  61 +
  62 + // Ajusta o layout do quadro de endereço
  63 + adjustLayoutPosition();
  64 +
  65 + //valida email.
  66 + $("#emailProponente").blur(function(){
  67 +
  68 + if($(this).val() != ""){
  69 + if($(this).val() != ""){
  70 + er = /^[a-zA-Z0-9][a-zA-Z0-9\._-]+@([a-zA-Z0-9\._-]+\.)[a-zA-Z-0-9]{2}/;
  71 + if(er.exec($(this).val())){
  72 + $("#erroEmail").hide();
  73 + return true;
  74 + }else{
  75 + $("#erroEmail").show();
  76 + $("#erroEmailConfirmacao").hide();
  77 + $(this).val("");
  78 + return false;
  79 + }
  80 + }
  81 + }
  82 + });
  83 +
  84 + $("#confirmarEmailProponente").blur(function(){
  85 +
  86 + if($(this).val() != ""){
  87 + if($(this).val() != ""){
  88 + er = /^[a-zA-Z0-9][a-zA-Z0-9\._-]+@([a-zA-Z0-9\._-]+\.)[a-zA-Z-0-9]{2}/;
  89 + if(er.exec($(this).val())){
  90 + $("#erroEmailConfirmacao").hide();
  91 + return true;
  92 + }else{
  93 + $("#erroEmailConfirmacao").show();
  94 + $(this).val("");
  95 + return false;
  96 + }
  97 + }
  98 + }
  99 + });
  100 +
  101 + //mascara para fixos de são paulo.
  102 + if($("#telefoneDDDProponente").val() == 11){
  103 + $("#telefone").mask("99999-9999");
  104 + }else{
  105 + $("#telefone").mask("9999-9999");
  106 + }
  107 + $("#telefoneDDDProponente").blur(function(){
  108 + if($("#telefoneDDDProponente").val() == 11){
  109 + $("#telefone").val("");
  110 + $("#telefone").attr('maxlength',10);
  111 + $("#telefone").unmask();
  112 + $("#telefone").mask("99999-9999");
  113 + }else{
  114 + $("#telefone").unmask();
  115 + $("#telefone").mask("9999-9999");
  116 + }
  117 + });
  118 +
  119 + $("#telefone").blur(function(){
  120 + qtdNum = $(this).val();
  121 + rs = qtdNum.substr(0,1);
  122 + if($("#telefoneDDDProponente").val() == 11){
  123 + if(rs != 9){
  124 + $("#telefone").val("9"+$(this).val());
  125 + }
  126 + }
  127 +
  128 + });
  129 +
  130 + //mascaras para celulares de são paulo
  131 + if($("#DDDcelular").val() == 11){
  132 + $("#celularProponente").mask("99999-9999");
  133 + }else{
  134 + $("#celularProponente").mask("9999-9999");
  135 + }
  136 + $("#DDDcelular").blur(function(){
  137 + if($("#DDDcelular").val() == 11){
  138 + $("#celularProponente").val("");
  139 + $("#celularProponente").attr('maxlength',10);
  140 + $("#celularProponente").unmask();
  141 + $("#celularProponente").mask("99999-9999");
  142 + }else{
  143 + $("#celularProponente").unmask();
  144 + $("#celularProponente").mask("9999-9999");
  145 + }
  146 + });
  147 +
  148 + $("#celularProponente").blur(function(){
  149 + qtdNum = $(this).val();
  150 + rs = qtdNum.substr(0,1);
  151 + if($("#DDDcelular").val() == 11){
  152 + if(rs != 9){
  153 + $("#celularProponente").val("9"+$(this).val());
  154 + }
  155 + }
  156 +
  157 + });
  158 +
  159 + });
  160 +
  161 + function adjustLayoutPosition(){
  162 + if($.browser.msie){
  163 + $('#logradouro').css('width', '282px');
  164 + $('#uf').css('width', '380px');
  165 + $('#cidade').css('width', '380px');
  166 + if(document.documentMode == 8){
  167 + $('#numero').css('width', '49px');
  168 + $('#cep').css('width', '86px');
  169 + $('#bairro').css('width', '107px');
  170 + }else if(document.documentMode == 9){
  171 + $('#numero').css('width', '54px');
  172 + $('#cep').css('width', '86px');
  173 + $('#bairro').css('width', '125px');
  174 + }else if(document.documentMode == 10){
  175 + $('#numero').css('width', '54px');
  176 + $('#cep').css('width', '96px');
  177 + $('#bairro').css('width', '131px');
  178 + }else if(document.documentMode == 11){
  179 + $('#numero').css('width', '54px');
  180 + $('#cep').css('width', '96px');
  181 + $('#bairro').css('width', '131px');
  182 + }
  183 + }else if($.browser.mozilla){
  184 + $('#logradouro').css('width', '301px');
  185 + $('#numero').css('width', '46px');
  186 + $('#cep').css('width', '90px');
  187 + $('#bairro').css('width', '140px');
  188 + }else if($.browser.webkit){
  189 + if(navigator.appVersion.indexOf('Chrome/') == -1){
  190 + $('#logradouro').css('width', '301px');
  191 + $('#numero').css('width', '46px');
  192 + $('#cep').css('width', '90px');
  193 + $('#bairro').css('width', '140px');
  194 + }else{
  195 + $('#logradouro').css('width', '301px');
  196 + $('#cep').css('width', '90px');
  197 + $('#numero').css('width', '47px');
  198 + $('#bairro').css('width', '141px');
  199 + }
  200 + }else if($.browser.opera){
  201 + $('#logradouro').css('width', '301px');
  202 + $('#numero').css('width', '46px');
  203 + $('#cep').css('width', '90px');
  204 + $('#bairro').css('width', '140px');
  205 + }
  206 + }
  207 +
  208 + function voltarLogin(){
  209 + location.href = "SisCADSEI.jsf?faces-redirect=true";
  210 + }
  211 + </script>
  212 +
  213 + <h:panelGrid id="panelCPF" columns="4"
  214 + columnClasses="coluna20,coluna16,coluna35,coluna30" width="100%">
  215 + <h:outputText styleClass="icoObrigatorio" value="CPF:" />
  216 + <p:inputMask id="cpfProponente" required="true"
  217 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  218 + value="#{cadastroProponenteBean.cpfProponente}"
  219 + disabled="#{cadastroProponenteBean.cpfValidado}" size="18"
  220 + mask="999.999.999-99">
  221 + <p:ajax event="blur" process="@this" update="dadosGerais,msgs"
  222 + listener="${cadastroProponenteBean.validaCPFproponente}" />
  223 + </p:inputMask>
  224 + <p:commandLink process="@this" title="Limpar Documento"
  225 + update="dadosGerais" rendered="#{!cadastroProponenteBean.logged}">
  226 + <h:graphicImage name="icone-apagar.png" library="design/imagem" />
  227 + <f:setPropertyActionListener
  228 + target="#{cadastroProponenteBean.model}"
  229 + value="#{cadastroProponenteBean.createModel}" />
  230 + </p:commandLink>
  231 + <h:outputText rendered="#{cadastroProponenteBean.logged}" />
  232 + <p:message id="messageCPFProponente" for="cpfProponente" />
  233 + </h:panelGrid>
  234 +
  235 + <h:panelGrid id="panelNome" columns="3"
  236 + columnClasses="coluna20,coluna50,coluna30" width="100%">
  237 + <h:outputText styleClass="icoObrigatorio" value="Nome:" />
  238 + <p:inputText id="nomeProponente" required="true"
  239 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  240 + maxlength="199"
  241 + value="#{cadastroProponenteBean.model.pessoaProponente.nome}"
  242 + style="width: 370px; text-transform: uppercase;" />
  243 + <p:message for="nomeProponente" />
  244 + </h:panelGrid>
  245 +
  246 + <h:panelGroup id="dados" layout="block">
  247 +
  248 + <h:panelGrid columns="3" columnClasses="coluna20,coluna50,coluna30"
  249 + width="100%">
  250 + <h:outputText styleClass="icoObrigatorio" value="RG:" />
  251 + <p:inputText id="rgProponente" required="true"
  252 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  253 + maxlength="14" value="#{cadastroProponenteBean.rgProponente}"
  254 + size="18">
  255 + <p:ajax event="change" process="@this" update="rgMsgs"
  256 + listener="#{cadastroProponenteBean.validateRG}" />
  257 + </p:inputText>
  258 + <p:message id="rgMsgs" for="rgProponente" />
  259 + </h:panelGrid>
  260 +
  261 + <h:panelGrid columns="3" columnClasses="coluna20,coluna50,coluna30"
  262 + width="100%">
  263 + <h:outputText styleClass="icoObrigatorio"
  264 + value="&Oacute;rg&atilde;o expedidor:" />
  265 + <p:inputText id="orgaoEspedidor" required="true"
  266 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  267 + maxlength="15" value="#{cadastroProponenteBean.orgaoEmissor}"
  268 + size="15" style="text-transform: uppercase;" />
  269 + <p:message for="orgaoEspedidor" />
  270 + </h:panelGrid>
  271 +
  272 + <h:panelGrid columns="3" columnClasses="coluna20,coluna50,coluna30"
  273 + width="100%">
  274 + <h:outputText value="Data de nascimento:"
  275 + styleClass="icoObrigatorio" />
  276 + <p:inputMask mask="99/99/9999" id="dtNascimento" size="15"
  277 + maxlength="15"
  278 + value="#{cadastroProponenteBean.model.pessoaProponente.dataNascimento}"
  279 + required="true"
  280 + requiredMessage="#{cadastroProponenteBean.requiredMessage}">
  281 + <f:convertDateTime type="date" pattern="dd/MM/yyyy" />
  282 + </p:inputMask>
  283 + <p:message for="dtNascimento" />
  284 +
  285 + <h:outputText value="Sexo:" styleClass="icoObrigatorio" />
  286 + <h:selectOneRadio label="Sexo"
  287 + value="#{cadastroProponenteBean.model.pessoaProponente.sexo}"
  288 + id="sexo" required="true"
  289 + requiredMessage="#{cadastroProponenteBean.requiredMessage}">
  290 + <f:selectItem itemLabel="Masculino" itemValue="M" />
  291 + <f:selectItem itemLabel="Feminino" itemValue="F" />
  292 + </h:selectOneRadio>
  293 + <p:message for="sexo" />
  294 + <!--
  295 + <h:outputText styleClass="icoObrigatorio" value="Cor ou raça:" />
  296 + <h:selectOneMenu
  297 + value="#{cadastroProponenteBean.model.pessoaProponente.corRaca.id}"
  298 + label="Cor ou raça" id="corRaca" required="true"
  299 + requiredMessage="#{cadastroProponenteBean.requiredMessage}">
  300 + <f:selectItem itemValue="" itemLabel=" " />
  301 + <f:selectItems value="#{cadastroProponenteBean.listaCorRaca}"
  302 + var="vr" itemLabel="#{vr.nomCorRaca}" itemValue="#{vr.id}" />
  303 + </h:selectOneMenu>
  304 + <p:message for="corRaca" />
  305 + -->
  306 + </h:panelGrid>
  307 +
  308 + </h:panelGroup>
  309 +
  310 + <h:panelGrid id="contato" columns="2"
  311 + columnClasses="coluna20,coluna80" width="100%">
  312 + <h:outputText styleClass="icoObrigatorio" value="Telefone1:" />
  313 + <h:panelGroup>
  314 + <p:inputMask id="telefoneDDDProponente" mask="99" required="true"
  315 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  316 + value="#{cadastroProponenteBean.DDDtelefone}" size="2"
  317 + maxlength="2" />
  318 + <h:outputText value="&#160;-&#160;" />
  319 + <p:inputText id="telefone" required="true"
  320 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  321 + value="#{cadastroProponenteBean.telefone}" size="15"
  322 + maxlength="9" />
  323 + </h:panelGroup>
  324 +
  325 + <h:outputText value="Telefone2:" />
  326 + <h:panelGroup>
  327 + <p:inputMask id="DDDcelular" mask="99"
  328 + value="#{cadastroProponenteBean.DDDcelular}" size="2"
  329 + maxlength="2" />
  330 + <h:outputText value="&#160;-&#160;" />
  331 + <p:inputText id="celularProponente"
  332 + value="#{cadastroProponenteBean.celular}" size="15" maxlength="9" />
  333 + </h:panelGroup>
  334 + </h:panelGrid>
  335 +
  336 + <h:panelGroup id="pg-endereco" layout="block">
  337 + <h:panelGrid columns="3" columnClasses="coluna20,coluna50,coluna30"
  338 + width="100%">
  339 + <h:outputText value="Endereço:" />
  340 + <h:panelGroup>
  341 + <p:inputText id="logradouro" style="width: 301px;"
  342 + maxlength="500"
  343 + value="#{cadastroProponenteBean.endereco.logradouro}" />
  344 + <h:outputText value="&#160;Nº&#160;" />
  345 + <p:inputText id="numero" style="width: 48px;" maxlength="10"
  346 + value="#{cadastroProponenteBean.endereco.numero}" />
  347 + </h:panelGroup>
  348 + <h:outputText />
  349 +
  350 + <h:outputText value="CEP:" />
  351 + <h:panelGroup>
  352 + <p:inputMask id="cep" mask="99.999-999"
  353 + value="#{cadastroProponenteBean.endereco.cep}" size="9" />
  354 + <h:outputText value="&#160;&#160;" />
  355 + <h:outputText value="Bairro/Distrito/Setor:&#160;" />
  356 + <p:inputText id="bairro" style="width: 170px;" maxlength="100"
  357 + value="#{cadastroProponenteBean.endereco.bairro}" />
  358 + </h:panelGroup>
  359 + <h:outputText />
  360 +
  361 + <h:outputText value="UF:" />
  362 + <h:selectOneMenu id="uf" style="width: 370px; height: 25px;"
  363 + value="#{cadastroProponenteBean.uf.id}">
  364 + <f:selectItem itemValue="" itemLabel=" -- " />
  365 + <f:selectItems value="#{cadastroProponenteBean.listaUf}" var="vr"
  366 + itemLabel="#{vr.sigla}" itemValue="#{vr.id}" />
  367 + <p:ajax event="change" process="@this" update="cidade"
  368 + listener="#{cadastroProponenteBean.changeUF}" />
  369 + </h:selectOneMenu>
  370 + <h:outputLabel />
  371 +
  372 + <h:outputText value="Município:" />
  373 + <h:selectOneMenu id="cidade" style="width: 370px; height: 25px;"
  374 + value="#{cadastroProponenteBean.endereco.municipio.id}">
  375 + <f:selectItem itemValue="" itemLabel=" -- " />
  376 + <f:selectItems value="#{cadastroProponenteBean.listaMunicipio}"
  377 + var="vr" itemLabel="#{vr.nome}" itemValue="#{vr.id}" />
  378 + </h:selectOneMenu>
  379 + <h:outputText />
  380 +
  381 + <h:outputText styleClass="icoObrigatorio"
  382 + value="E-mail pessoa física:" />
  383 + <p:inputText id="emailProponente" required="true"
  384 + value="#{cadastroProponenteBean.model.emailProponente}"
  385 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  386 + style="width: 370px; text-transform: lowercase;" maxlength="200"
  387 + validatorMessage="E-mail inválido!">
  388 + <f:validateRegex
  389 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  390 + <p:ajax process="@this" event="change" update="emailProponente" />
  391 + </p:inputText>
  392 + <p:message for="emailProponente" />
  393 + <h:outputText styleClass="icoObrigatorio"
  394 + value="Confirmar e-mail:" />
  395 + <p:inputText id="confirmarEmailProponente" required="true"
  396 + value="#{cadastroProponenteBean.confirmarEmailProponente}"
  397 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  398 + style="width: 370px; text-transform: lowercase;" maxlength="200"
  399 + validatorMessage="E-mail inválido!">
  400 + <f:validateRegex
  401 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  402 + <p:ajax process="@this" event="change"
  403 + update="confirmarEmailProponente" />
  404 + </p:inputText>
  405 + <p:message for="confirmarEmailProponente" />
  406 +
  407 + </h:panelGrid>
  408 + </h:panelGroup>
  409 +
  410 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80"
  411 + width="100%">
  412 + <h:outputText />
  413 + <h:outputText style="color: red;"
  414 + value="O sistema enviará uma senha para este e-mail. Verifique sua caixa de entrada e de spam." />
  415 + </h:panelGrid>
  416 +
  417 + <h:panelGroup id="senhas" layout="block"
  418 + rendered="#{cadastroProponenteBean.logged}">
  419 + <h:panelGrid columns="3" columnClasses="coluna20,coluna50,coluna30"
  420 + width="100%">
  421 + <h:outputText value="Senha atual:" styleClass="icoObrigatorio" />
  422 + <p:password id="senhaAtual" feedback="false" maxLength="9"
  423 + value="#{cadastroProponenteBean.senhaAtual}" required="true"
  424 + requiredMessage="#{cadastroProponenteBean.requiredMessage}" />
  425 + <p:message for="senhaAtual" />
  426 +
  427 + <h:outputText value="Nova senha:" />
  428 + <p:password id="novaSenha" feedback="true" maxLength="9"
  429 + value="#{cadastroProponenteBean.novaSenha}" />
  430 + <p:message for="novaSenha" />
  431 +
  432 + <h:outputText value="Confirmar nova senha:" />
  433 + <p:password id="confirmarSenha" feedback="true" maxLength="9"
  434 + value="#{cadastroProponenteBean.confirmarSenha}" />
  435 + <p:message for="confirmarSenha" />
  436 + </h:panelGrid>
  437 + </h:panelGroup>
  438 + <br />
  439 +
  440 + <p:fieldset legend="Cadastro OAB">
  441 + <h:panelGrid columns="3" columnClasses="coluna20,coluna50,coluna30"
  442 + width="100%">
  443 + <h:outputText styleClass="icoObrigatorio" value="Possui OAB?" />
  444 + <h:selectOneRadio id="possuiOab"
  445 + value="#{cadastroProponenteBean.model.possuiOab}" required="true"
  446 + requiredMessage="#{cadastroProponenteBean.requiredMessage}">
  447 + <f:selectItem itemLabel="Sim" itemValue="true" />
  448 + <f:selectItem itemLabel="Não" itemValue="false" />
  449 + <p:ajax event="change"
  450 + listener="#{cadastroProponenteBean.changePossuiOab}"
  451 + update="numeroOab panelRegistroOab" />
  452 + </h:selectOneRadio>
  453 + <p:message for="possuiOab" />
  454 +
  455 + <h:outputText value="Número OAB:" />
  456 + <p:inputText id="numeroOab" size="25" maxlength="10"
  457 + value="#{cadastroProponenteBean.model.numeroRegistroOab}"
  458 + disabled="#{!cadastroProponenteBean.model.possuiOab}" />
  459 + <h:outputText />
  460 + </h:panelGrid>
  461 + <br />
  462 + <h:outputText value="Documento - Registro OAB" />
  463 + <h:panelGroup id="panelRegistroOab" layout="block">
  464 + <h:panelGrid columns="2">
  465 + <p:inputText readonly="true" id="registroOab"
  466 + style="width: 270px;" maxlength="200"
  467 + value="#{cadastroProponenteBean.registroOab.nomDocumento}"
  468 + requiredMessage="#{cadastroProponenteBean.requiredMessage}"
  469 + disabled="#{!cadastroProponenteBean.model.possuiOab}" />
  470 + <p:fileUpload id="uploadOab" auto="true" height="26" width="26"
  471 + image="../../resources/design/imagem/icone-upload.png"
  472 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  473 + allowTypes="*.*" description="Registro OAB" customUI="true"
  474 + fileUploadListener="#{cadastroProponenteBean.uploadRegistroOab}"
  475 + rendered="#{cadastroProponenteBean.renderizaUploadDocumentosOab}"
  476 + sizeLimit="15242880" update="registroOab" />
  477 + </h:panelGrid>
  478 + </h:panelGroup>
  479 + <h:panelGroup layout="block">
  480 + <h:outputText value="Tamanho máximo permitido 15Mb, com extensões no formato: JPG, PNG ou PDF"
  481 + style="font-size: 10px; color: red; font-weight: normal;" />
  482 + <p:message for="registroOab" />
  483 + </h:panelGroup>
  484 + </p:fieldset>
  485 + <br />
  486 +
  487 + <p:fieldset legend="Documentos da pessoa física">
  488 +
  489 + <h:outputText styleClass="icoObrigatorio"
  490 + value="RG/CPF/CNH" />
  491 + <h:panelGroup layout="block">
  492 + <h:panelGrid columns="3">
  493 + <p:inputText readonly="true" id="docIdentidade"
  494 + style="width: 270px;" maxlength="200" required="true"
  495 + value="#{cadastroProponenteBean.documentoIdentidade.nomDocumento}"
  496 + requiredMessage="#{cadastroProponenteBean.requiredMessage}" />
  497 +
  498 + <p:fileUpload id="uploadIdentidade" widgetVar="uploader"
  499 + auto="true" height="26" width="26" wmode=""
  500 + image="../../resources/design/imagem/icone-upload.png"
  501 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  502 + allowTypes="*.pdf,*.jpg,*.jpeg,*.png"
  503 + description="Documento de identidade" customUI="true"
  504 + fileUploadListener="#{cadastroProponenteBean.uploadIdentidade}"
  505 + rendered="#{cadastroProponenteBean.renderizaUploadDocumentos}"
  506 + sizeLimit="15242880" update="docIdentidade,ms_docIdentidade" />
  507 + <p:message for="uploadIdentidade" />
  508 + </h:panelGrid>
  509 + </h:panelGroup>
  510 + <h:panelGroup layout="block">
  511 + <h:outputText value="Tamanho máximo permitido 15Mb, com extensões no formato: JPG, PNG ou PDF"
  512 + style="font-size: 10px; color: red; font-weight: normal;" />
  513 + <p:message id="ms_docIdentidade" for="docIdentidade" />
  514 + </h:panelGroup>
  515 + <br />
  516 +
  517 + <h:outputText styleClass="icoObrigatorio"
  518 + value="Comprovante de Residência" />
  519 + <h:panelGroup layout="block">
  520 + <h:panelGrid columns="2">
  521 + <p:inputText readonly="true" id="docEndereco" style="width: 270px;"
  522 + maxlength="200" required="true"
  523 + value="#{cadastroProponenteBean.documentoEndereco.nomDocumento}"
  524 + requiredMessage="#{cadastroProponenteBean.requiredMessage}" />
  525 + <p:fileUpload id="uploadCpf" widgetVar="uploader" auto="true"
  526 + height="26" width="26"
  527 + image="../../resources/design/imagem/icone-upload.png"
  528 + cancelImage="../../resources/design/imagem/icone-cancelar.png"
  529 + allowTypes="pdf,png,jpg,jpeg" description="Endeereco" customUI="true"
  530 + rendered="#{cadastroProponenteBean.renderizaUploadDocumentos}"
  531 + fileUploadListener="#{cadastroProponenteBean.uploadEndereco}"
  532 + sizeLimit="15242880" update="docEndereco,ms_docEndereco" />
  533 + </h:panelGrid>
  534 +
  535 + </h:panelGroup>
  536 + <h:panelGroup layout="block">
  537 + <h:outputText value="Tamanho máximo permitido 15Mb, com extensões no formato: JPG, PNG ou PDF"
  538 + style="font-size: 10px; color: red; font-weight: normal;" />
  539 + <p:message id="ms_docEndereco" for="docEndereco" />
  540 + </h:panelGroup>
  541 + <br />
  542 +
  543 + </p:fieldset>
  544 + <br />
  545 +
  546 + <h:panelGrid columns="2"
  547 + rendered="#{!cadastroProponenteBean.logged}">
  548 + <h:graphicImage name="icone-sucesso.png" library="design/imagem" />
  549 + <h:outputText
  550 + value="Para realizar o cadastro de Pessoa Jurídica o usuário deverá finalizar esse cadastro e efetuar o login no sistema conforme usuário e senha encaminhados para o e-mail informado, acessando a opção Pessoa Jurídica."
  551 + style="font-size: 12px; font-weight: bold;" />
  552 + </h:panelGrid>
  553 +
  554 + </p:fieldset>
  555 + <br />
  556 +
  557 + <h:panelGroup layout="block" style="text-align: center;">
  558 + <p:commandButton value="#{cadastroProponenteBean.tituloBotaoSalvar}"
  559 + ajax="false" id="submitForm" disabled="false"
  560 + action="#{cadastroProponenteBean.save}" />
  561 + <p:commandButton value="Voltar" ajax="false" id="voltar"
  562 + action="#{cadastroProponenteBean.voltar}" immediate="true" />
  563 + <h:panelGroup id="backButton" style="float: right;"
  564 + rendered="#{cadastroProponenteBean.logged}">
  565 + <h:link title="Voltar para página principal"
  566 + outcome="principal.jsf?faces-redirect=true">
  567 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  568 + </h:link>
  569 + </h:panelGroup>
  570 + </h:panelGroup>
  571 +
  572 + </h:form>
  573 +
  574 + </ui:define>
  575 +</ui:composition>
0 576 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/cadastro-substabelecedor.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/cadastro-substabelecedor.xhtml
... ... @@ -0,0 +1,166 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 +<ui:define name="body">
  10 + <h:panelGroup layout="block" style="text-align: right;">
  11 + <h:outputText styleClass="msgObrigatorio" value="#{const.alerta_campos_obrigatorios}"/>
  12 + </h:panelGroup>
  13 +
  14 + <h:form id="form-substabelecimento" prependId="false">
  15 +
  16 + <p:fieldset legend="Substabelecimento">
  17 +
  18 + <h:panelGroup layout="block">
  19 + <div style="margin-left: 15px; width:95%; margin-top:10px;">
  20 + <div class="div_declaracao">
  21 + Prezado Usuário,
  22 + <br />
  23 + Esta fun&ccedil;&atilde;o permite que voc&ecirc; conceda poderes outorgados a voc&ecirc; por meio de uma procura&ccedil;&atilde;o a terceiros previamente cadastrados no CADSEI. No &acirc;mbito do Minist&eacute;rio das Comunica&ccedil;&otilde;es s&oacute; ser&aacute; aceito o substabelecimento COM RESERVA de poderes, em que s&atilde;o preservados os poderes do substabelecedor
  24 + <br /><br />
  25 + </div>
  26 + </div>
  27 + </h:panelGroup>
  28 + <br />
  29 + <p:fieldset legend="Informações da Procuração">
  30 + <h:panelGrid columns="2" columnClasses="coluna20,coluna80" width="100%">
  31 + <h:outputText value="Número:"/>
  32 + <h:outputText value="#{cadastroSubstabelecedorBean.numeroProcuracao}"/>
  33 +
  34 + <h:outputText value="Nome do Outorgante:"/>
  35 + <h:outputText value="#{cadastroSubstabelecedorBean.nomeOutorgante}"/>
  36 +
  37 + <h:outputText value="CPF/CNPJ do Outorgante:"/>
  38 + <h:outputText value="#{cadastroSubstabelecedorBean.cpfCnpjOutorgante}"/>
  39 +
  40 + <h:outputText value="Nome do Outorgado:"/>
  41 + <h:outputText value="#{cadastroSubstabelecedorBean.nomeOutorgado}"/>
  42 +
  43 + <h:outputText value="CPF/CNPJ do Outorgado:"/>
  44 + <h:outputText value="#{cadastroSubstabelecedorBean.cpfCnpjOutorgado}"/>
  45 + </h:panelGrid>
  46 +
  47 + <br/>
  48 +
  49 + <p:fieldset legend="Gerais">
  50 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  51 + <h:selectManyCheckbox value="#{cadastroSubstabelecedorBean.selecionadoGeral}">
  52 + <f:selectItem itemLabel="Todos os poderes atualmente detidos pelo outorgante/substabelecedor." itemValue="T"/>
  53 + <p:ajax process="@this" update="pgEspecificos" listener="#{cadastroSubstabelecedorBean.renderizarEspecificos}"/>
  54 + </h:selectManyCheckbox>
  55 + </h:panelGrid>
  56 + </p:fieldset>
  57 +
  58 + <br/>
  59 +
  60 + <h:panelGroup id="pgEspecificos" >
  61 + <p:fieldset legend="Específicos" rendered="#{cadastroSubstabelecedorBean.renderEspecificios}">
  62 + <p:tree value="#{cadastroSubstabelecedorBean.list}" var="node" selectionMode="checkbox" propagateSelectionDown="true"
  63 + selection="#{cadastroSubstabelecedorBean.selectedSolicitacao}">
  64 + <p:treeNode type="area">
  65 + <h:outputText value="#{node.dscArea}"/>
  66 + </p:treeNode>
  67 + <p:treeNode type="servico" >
  68 + <h:outputText value="#{node.dscServico}"/>
  69 + </p:treeNode>
  70 + <p:treeNode type="solicitacao" >
  71 + <h:outputText value="#{node.dscSolicitacao}"/>
  72 + </p:treeNode>
  73 + </p:tree>
  74 + </p:fieldset>
  75 + </h:panelGroup>
  76 +
  77 + <br/>
  78 +
  79 + <p:fieldset legend="Validade">
  80 + <h:panelGrid columns="5" columnClasses="coluna10, coluna20, coluna10, coluna15, coluna20" width="80%">
  81 + <h:outputText value="Data Inicial:"/>
  82 + <p:calendar id="dtInicial" label="Data inicial" size="15" pattern="dd/MM/yyyy" navigator="true"
  83 + yearRange="1900:2050" value="#{cadastroSubstabelecedorBean.model.dataValidadeInicial}" disabled="true">
  84 + </p:calendar>
  85 + <h:outputText value="Data Final:" styleClass="icoObrigatorio"/>
  86 + <p:calendar id="dtFinal" label="Data inicial" size="15" pattern="dd/MM/yyyy" navigator="true"
  87 + yearRange="1900:2050" value="#{cadastroSubstabelecedorBean.model.dataValidadeFinal}" required="true">
  88 + </p:calendar>
  89 + <h:outputText value="#{const.data_prazo_maximo}"/>
  90 + </h:panelGrid>
  91 + </p:fieldset>
  92 +
  93 + <br/>
  94 +
  95 + <p:fieldset legend="Outorgado(s)">
  96 + <h:panelGrid columns="1" columnClasses="coluna100" width="100%">
  97 + <h:panelGroup id="pgTipoPessoa" layout="block">
  98 + <h:selectOneRadio id="tipo-pessoa" value="#{cadastroSubstabelecedorBean.tipoPessoa}" style="width:50%;">
  99 + <f:selectItem itemValue="F" itemLabel="Pessoa física"/>
  100 + <f:selectItem itemValue="J" itemLabel="Pessoa jurídica"/>
  101 + <p:ajax event="click" update="pg-cnpj,pg-cpf,pgTipoPessoa,pgroup-nomeCnpj,pgroup-nomeCpf" listener="#{cadastroSubstabelecedorBean.exibirPessoa}"/>
  102 + </h:selectOneRadio>
  103 + </h:panelGroup>
  104 + </h:panelGrid>
  105 +
  106 + <h:panelGroup id="pg-cpf">
  107 + <h:panelGrid columns="3" columnClasses="coluna10,coluna60,coluna30" width="100%" rendered="#{cadastroSubstabelecedorBean.tipoPessoa eq 'F'}">
  108 + <h:outputText styleClass="icoObrigatorio" value="CPF:" />
  109 + <h:panelGroup layout="block">
  110 + <p:inputMask id="cpf" mask="999.999.999-99" required="true" size="20"
  111 + value="#{cadastroSubstabelecedorBean.numCpf}" requiredMessage="#{cadastroSubstabelecedorBean.requiredMessage}">
  112 + <p:ajax event="blur" process="@this" update="pgroup-nomeCpf, cpfMsgs" listener="#{cadastroSubstabelecedorBean.validateCPF}" />
  113 + </p:inputMask>
  114 + </h:panelGroup>
  115 + <p:message id="cpfMsgs" for="cpf"/>
  116 + </h:panelGrid>
  117 + </h:panelGroup>
  118 +
  119 + <h:panelGroup id="pg-cnpj">
  120 + <h:panelGrid columns="3" columnClasses="coluna10,coluna60,coluna30" width="100%" rendered="#{cadastroSubstabelecedorBean.tipoPessoa eq 'J'}">
  121 + <h:outputText styleClass="icoObrigatorio" value="CNPJ:" />
  122 + <h:panelGroup layout="block">
  123 + <p:inputMask id="cnpj" mask="99.999.999/9999-99" required="true" size="25"
  124 + value="#{cadastroSubstabelecedorBean.numCnpj}" requiredMessage="#{cadastroSubstabelecedorBean.requiredMessage}">
  125 + <p:ajax event="blur" process="@this" update="pgroup-nomeCnpj, cnpjMsgs" listener="#{cadastroSubstabelecedorBean.validateCNPJ}" />
  126 + </p:inputMask>
  127 + </h:panelGroup>
  128 + <p:message id="cnpjMsgs" for="cnpj"/>
  129 + </h:panelGrid>
  130 + </h:panelGroup>
  131 +
  132 + <h:panelGroup id="pgroup-nomeCnpj">
  133 + <h:panelGrid id="pgrid-nomeCnpj" columns="2" columnClasses="coluna10,coluna90" width="100%" rendered="#{cadastroSubstabelecedorBean.cnpjValidado}">
  134 + <h:outputLabel value="Razão Social : "/>
  135 + <h:outputLabel value="#{cadastroSubstabelecedorBean.empresaValidado.pessoaTitular.razaoSocial}"/>
  136 + </h:panelGrid>
  137 + </h:panelGroup>
  138 +
  139 + <h:panelGroup id="pgroup-nomeCpf">
  140 + <h:panelGrid id="pgrid-nomeCpf" columns="2" columnClasses="coluna10,coluna90" width="100%" rendered="#{cadastroSubstabelecedorBean.cpfValidado}">
  141 + <h:outputLabel value="Nome : "/>
  142 + <h:outputLabel value="#{cadastroSubstabelecedorBean.proponenteValidado.pessoaProponente.nome}"/>
  143 + </h:panelGrid>
  144 + </h:panelGroup>
  145 + </p:fieldset>
  146 +
  147 + </p:fieldset>
  148 +
  149 + </p:fieldset>
  150 + <br/>
  151 +
  152 + <h:panelGroup layout="block" style="text-align: center;">
  153 + <p:commandButton id="bt-save" value="Salvar" action="#{cadastroSubstabelecedorBean.salvar}" ajax="false"/>
  154 + <h:outputText value="&#160;&#160;&#160;"/>
  155 + <p:commandButton value="Voltar" ajax="false" id="voltar" action="listar-procuracao.jsf?faces-redirect=true" immediate="true"/>
  156 + <h:panelGroup id="backButton" style="float: right;">
  157 + <h:link title="Voltar para página principal" outcome="principal.jsf?faces-redirect=true" >
  158 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  159 + </h:link>
  160 + </h:panelGroup>
  161 + </h:panelGroup>
  162 +
  163 + </h:form>
  164 +
  165 +</ui:define>
  166 +</ui:composition>
0 167 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/consultar-peticao.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/consultar-peticao.xhtml
... ... @@ -0,0 +1,91 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 + <ui:define name="body">
  10 +
  11 + <p:fieldset legend="Consultar Petições">
  12 +
  13 + <h:form id="form-peticao" prependId="false">
  14 +
  15 + <br/>
  16 +
  17 + <h:panelGroup layout="block" style="text-align: right;">
  18 + <p:commandButton id="cadPeticao" value="Nova Petição Eletrônica" action="#{consultarPeticaoBean.novaPeticao}"/>
  19 + </h:panelGroup>
  20 +
  21 + <br/>
  22 +
  23 + <h:panelGroup>
  24 + <h:panelGrid columns="2" id="filtrar" columnClasses="coluna20,coluna80" width="80%">
  25 + <h:outputText value="Em nome de:" />
  26 + <h:selectOneMenu id="tipoPessoa" value="#{consultarPeticaoBean.tipoPessoa}" style="width: 165px;" styleClass="estiloPesquisa">
  27 + <f:selectItem itemLabel="" itemValue="" />
  28 + <f:selectItem itemLabel="Pessoa Física" itemValue="F" />
  29 + <f:selectItem itemLabel="Pessoa Jurídica" itemValue="J" />
  30 + <f:selectItem itemLabel="Procuração" itemValue="P" />
  31 + <p:ajax update="dt-peticoes" process="@this" event="click" listener="#{consultarPeticaoBean.pesquisar}"/>
  32 + </h:selectOneMenu>
  33 + </h:panelGrid>
  34 + </h:panelGroup>
  35 +
  36 + <p:dataTable
  37 + id="dt-peticoes"
  38 + var="peticao"
  39 + value="#{consultarPeticaoBean.listPeticoes}"
  40 + emptyMessage="#{consultarPeticaoBean.emptyMessage}"
  41 + paginator="true" rows="10" rowIndexVar="rowIx"
  42 + rowsPerPageTemplate="#{consultarPeticaoBean.paginacao}" lazy="false"
  43 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  44 + paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
  45 + currentPageReportTemplate="{currentPage} / {totalPages}"
  46 + style="max-width: 950px; overflow: auto; min-height:0%">
  47 +
  48 + <p:column headerText="Número do Protocolo">
  49 + <h:outputText value="#{peticao.numeroProcessoFormatado}" />
  50 + </p:column>
  51 +
  52 + <p:column style="text-align:center;" headerText="Data da petição" sortBy="#{peticao.dataPeticao}">
  53 + <h:outputText value="#{peticao.dataPeticao}">
  54 + <f:convertDateTime pattern="dd/MM/yyyy" locale="pt_BR"/>
  55 + </h:outputText>
  56 + </p:column>
  57 +
  58 + <p:column headerText="Solicitação" sortBy="#{peticao.analista.nomUsuario}">
  59 + <h:outputText value="#{peticao.solicitacao.dscSolicitacao}"/>
  60 + </p:column>
  61 +
  62 + <p:column headerText="Ações" style="text-align: center;" width="60">
  63 + <p:commandLink id="cl-visualizar-procuracao" process="@this" action="#{consultarPeticaoBean.visualizarPeticao}">
  64 + <h:graphicImage library="design/imagem" name="icone-visualizar.png" alt="Visualizar Petição" title="Visualizar Petição"/>
  65 + <f:setPropertyActionListener target="#{consultarPeticaoBean.model}" value="#{peticao}"/>
  66 + </p:commandLink>
  67 + <h:outputText value="&#160;"/>
  68 + <h:panelGroup rendered="#{peticao.protocolo != null}">
  69 + <h:outputLink id="consultarProcesso" title="Consultar Processo" target="_blank" value="http://www.justica.gov.br/acesso-a-sistemas/protocolo">
  70 + <h:graphicImage library="themes/imagem" name="icone-SCP.png" alt="Consultar Processo" title="Consultar Processo"/>
  71 + </h:outputLink>
  72 + </h:panelGroup>
  73 + </p:column>
  74 + </p:dataTable>
  75 +
  76 + <br/>
  77 +
  78 + <h:panelGroup layout="block" style="text-align: center;">
  79 + <p:commandButton id="voltarButton" value="Voltar" action="principal.jsf?faces-redirect=true" ajax="false"/>
  80 + <h:panelGroup id="backButton" style="float: right;">
  81 + <h:link title="Voltar para página principal" outcome="principal.jsf?faces-redirect=true" >
  82 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  83 + </h:link>
  84 + </h:panelGroup>
  85 + </h:panelGroup>
  86 +
  87 + </h:form>
  88 + </p:fieldset>
  89 + </ui:define>
  90 +
  91 +</ui:composition>
0 92 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/declaracao-cadastro-procuracao.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/declaracao-cadastro-procuracao.xhtml
... ... @@ -0,0 +1,145 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 + <ui:define name="body">
  10 +
  11 + <h:form id="formDeclaracao" prependId="false">
  12 +
  13 + <script type="text/javascript">
  14 + $ = jQuery;
  15 + $(document).ready(function() {
  16 + enableSubmit();
  17 +
  18 + });
  19 + function enableSubmit(){
  20 + if($('#checkDeclaracao').is(':checked')){
  21 + $("#aceitar").removeAttr("disabled");
  22 + $("#aceitar").attr("aria-disabled","true");
  23 + $("#aceitar").attr("class",'ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only');
  24 + }else{
  25 + $("#aceitar").attr("disabled", 'disabled');
  26 + $("#aceitar").attr("aria-disabled","false");
  27 + $("#aceitar").attr("class",'ui-button ui-widget ui-state-default ui-corner-all ui-button-disabled ui-state-disabled ui-button-text-only');
  28 + }
  29 + }
  30 + function voltarLogin(){
  31 + location.href = "listar-procuracao.jsf?faces-redirect=true";
  32 + }
  33 + </script>
  34 +
  35 + <h:panelGroup id="pg-declaracao" layout="block">
  36 +
  37 + <font class="sub_titulo"> Declara&ccedil;&atilde;o </font>
  38 + <div style="margin-left: 15px; width: 95%; margin-top: 10px;">
  39 + <div
  40 + onclick="$('#checkDeclaracao').attr('checked', !($('#checkDeclaracao').is(':checked')));enableSubmit();"
  41 + class="div_declaracao">
  42 + <p>
  43 + Declaro que as informações ora prestadas são verdadeiras, sob
  44 + pena de responsabilidade administrativa, civil e penal.
  45 + especialmente conforme <b>art. 299 do Código Penal Brasileiro
  46 + (falsidade ideológica).</b>
  47 + </p>
  48 +
  49 + <p>Comprometo-me a manter atualizadas tais informações junto
  50 + ao Ministério da Justiça.</p>
  51 +
  52 + <p>Art. 299 - Omitir, em documento público ou particular,
  53 + declaração que dele devia constar, ou nele inserir ou fazer
  54 + inserir declaração falsa ou diversa da que devia ser escrita, com
  55 + o fim de prejudicar direito, criar obrigação ou alterar a verdade
  56 + sobre fato juridicamente relevante: :</p>
  57 +
  58 + <p style="text-indent: 10mm;">Pena - reclusão, de um a cinco
  59 + anos, e multa, se o documento é público, e reclusão de um a três
  60 + anos, e multa, se o documento é particular.</p>
  61 +
  62 + <p style="text-indent: 10mm;">Parágrafo único - Se o agente é
  63 + funcionário público, e comete o crime prevalecendo-se do cargo,
  64 + ou se a falsificação ou alteração é de assentamento de registro
  65 + civil, aumenta-se a pena de sexta parte.</p>
  66 +
  67 + <p>Declaro ainda estar ciente que:</p>
  68 +
  69 + <p style="text-indent: 10mm;">1. O Ministério da Justiça
  70 + poderá solicitar documentação complementar para efetivação do
  71 + cadastro.</p>
  72 + <p style="text-indent: 10mm;">2. O resultado da análise da
  73 + documentação será informado ao usuário por mensagem eletrônica.</p>
  74 +
  75 + <p style="text-indent: 10mm;">3. O credenciamento de acesso
  76 + importará aceitação das condições regulamentares que disciplinam
  77 + o processo eletrônico (Portaria Nº 2.145, de 17 de dezembro de
  78 + 2014).</p>
  79 +
  80 + <p style="text-indent: 10mm;">4. São de exclusiva
  81 + responsabilidade do usuário:</p>
  82 +
  83 + <p style="text-indent: 15mm;">I - o sigilo da senha relativa à
  84 + assinatura eletrônica, não sendo oponível, em qualquer hipótese,
  85 + alegação de uso indevido;</p>
  86 +
  87 + <p style="text-indent: 15mm;">II - a equivalência entre os
  88 + dados informados para o envio do documento e os constantes do
  89 + documento protocolado;</p>
  90 +
  91 + <p style="text-indent: 15mm;">III - a edição dos documentos
  92 + enviados em conformidade com as especificações técnicas
  93 + estabelecidas pelo Ministério das Comunicações, no que se refere
  94 + à formatação e tamanho do arquivo enviado;</p>
  95 +
  96 + <p style="text-indent: 15mm;">IV - conservar os documentos
  97 + físicos originais objetos da digitalização, que estiverem em seu
  98 + poder, até que decaia o direito da Administração de rever os atos
  99 + praticados no processo;</p>
  100 +
  101 + <p style="text-indent: 15mm;">IV - a consulta periódica ao
  102 + endereço de e-mail cadastrado e ao SEI-MJ, a fim de verificar o
  103 + recebimento de comunicações eletrônicas relativas a atos
  104 + processuais;</p>
  105 +
  106 + <p style="text-indent: 15mm;">V - a atualização de seus dados
  107 + cadastrais no SEI-MJ; e</p>
  108 +
  109 + <p style="text-indent: 15mm;">VI - o acompanhamento da
  110 + divulgação dos períodos em que o SEI-MJ não estiver em
  111 + funcionamento em decorrência de indisponibilidade técnica do
  112 + serviço.</p>
  113 +
  114 + <p style="text-indent: 10mm;">5. A não obtenção de acesso ou
  115 + credenciamento no SEI-MJ, bem como eventual defeito de
  116 + transmissão ou recepção de dados e informações, não imputáveis à
  117 + falha do SEI-MJ, não servirão de escusa para o descumprimento de
  118 + obrigações e prazos legais.</p>
  119 +
  120 + <p style="text-indent: 10mm;">6. O Ministério da Justiça
  121 + poderá exigir no curso do processo, a seu critério, a exibição do
  122 + original do documento digitalizado enviado eletronicamente pelo
  123 + administrado</p>
  124 +
  125 + </div>
  126 + <div style="float: left; width: 2%; height: 100%;">
  127 + <input type="checkbox" style="margin-right: 5px;"
  128 + name="checkDeclaracao" id="checkDeclaracao"
  129 + onchange="enableSubmit()" value="OK"></input>
  130 + </div>
  131 + </div>
  132 + <div align="center">
  133 + <h:panelGrid id="panelActions" columns="2" width="100">
  134 + <p:commandButton value="CONCORDO" ajax="false" id="aceitar"
  135 + action="#{listarProcuracaoBean.aceitarDeclaracao}" />
  136 + <p:commandButton value="NÃO CONCORDO" ajax="false" id="voltar"
  137 + type="button" onclick="voltarLogin();" />
  138 + </h:panelGrid>
  139 + </div>
  140 +
  141 + </h:panelGroup>
  142 +
  143 + </h:form>
  144 + </ui:define>
  145 +</ui:composition>
0 146 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/declaracao-cadastro.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/declaracao-cadastro.xhtml
... ... @@ -0,0 +1,141 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 + <ui:define name="body">
  10 +
  11 + <h:form id="formDeclaracao" prependId="false">
  12 +
  13 + <script type="text/javascript">
  14 + $ = jQuery;
  15 + $(document).ready(function() {
  16 + enableSubmit();
  17 +
  18 + });
  19 + function enableSubmit(){
  20 + //if($('#checkDeclaracao').is(':checked')){
  21 + $("#aceitar").removeAttr("disabled");
  22 + $("#aceitar").attr("aria-disabled","true");
  23 + $("#aceitar").attr("class",'ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only');
  24 + //}else{
  25 + // $("#aceitar").attr("disabled", 'disabled');
  26 + // $("#aceitar").attr("aria-disabled","false");
  27 + // $("#aceitar").attr("class",'ui-button ui-widget ui-state-default ui-corner-all ui-button-disabled ui-state-disabled ui-button-text-only');
  28 + //}
  29 + }
  30 + function voltarLogin(){
  31 + location.href = "login_externo.jsf?faces-redirect=true";
  32 + }
  33 + </script>
  34 +
  35 + <h:panelGroup id="pg-declaracao" layout="block">
  36 +
  37 + <div align="center">
  38 + <h:panelGrid id="panelActions" columns="2" style=" width : 293px;">
  39 + <p:commandButton value="CONCORDO" ajax="false" id="aceitar"
  40 + action="#{loginUsuarioBean.aceitarDeclaracao}" />
  41 + <p:commandButton value="NÃO CONCORDO" ajax="false" id="voltar"
  42 + type="button" onclick="voltarLogin();" />
  43 + </h:panelGrid>
  44 + </div>
  45 + <br/>
  46 + <font class="sub_titulo"> Declara&ccedil;&atilde;o </font>
  47 + <div style="margin-left: 15px; width: 95%; margin-top: 10px;">
  48 +
  49 +
  50 +
  51 + <div class="div_declaracao">
  52 + <p>
  53 + Declaro que as informações ora prestadas são verdadeiras, sob
  54 + pena de responsabilidade administrativa, civil e penal.
  55 + especialmente conforme <b>art. 299 do Código Penal Brasileiro
  56 + (falsidade ideológica).</b>
  57 + </p>
  58 +
  59 + <p>Comprometo-me a manter atualizadas tais informações junto
  60 + ao Ministério da Justiça.</p>
  61 +
  62 + <p>Art. 299 - Omitir, em documento público ou particular,
  63 + declaração que dele devia constar, ou nele inserir ou fazer
  64 + inserir declaração falsa ou diversa da que devia ser escrita, com
  65 + o fim de prejudicar direito, criar obrigação ou alterar a verdade
  66 + sobre fato juridicamente relevante: :</p>
  67 +
  68 + <p style="text-indent: 10mm;">Pena - reclusão, de um a cinco
  69 + anos, e multa, se o documento é público, e reclusão de um a três
  70 + anos, e multa, se o documento é particular.</p>
  71 +
  72 + <p style="text-indent: 10mm;">Parágrafo único - Se o agente é
  73 + funcionário público, e comete o crime prevalecendo-se do cargo,
  74 + ou se a falsificação ou alteração é de assentamento de registro
  75 + civil, aumenta-se a pena de sexta parte.</p>
  76 +
  77 + <p>Declaro ainda estar ciente que:</p>
  78 +
  79 + <p style="text-indent: 10mm;">1. O Ministério da Justiça
  80 + poderá solicitar documentação complementar para efetivação do
  81 + cadastro.</p>
  82 + <p style="text-indent: 10mm;">2. O resultado da análise da
  83 + documentação será informado ao usuário por mensagem eletrônica.</p>
  84 +
  85 + <p style="text-indent: 10mm;">3. O credenciamento de acesso
  86 + importará aceitação das condições regulamentares que disciplinam
  87 + o processo eletrônico (Portaria Nº 2.145, de 17 de dezembro de
  88 + 2014).</p>
  89 +
  90 + <p style="text-indent: 10mm;">4. São de exclusiva
  91 + responsabilidade do usuário:</p>
  92 +
  93 + <p style="text-indent: 15mm;">I - o sigilo da senha relativa à
  94 + assinatura eletrônica, não sendo oponível, em qualquer hipótese,
  95 + alegação de uso indevido;</p>
  96 +
  97 + <p style="text-indent: 15mm;">II - a equivalência entre os
  98 + dados informados para o envio do documento e os constantes do
  99 + documento protocolado;</p>
  100 +
  101 + <p style="text-indent: 15mm;">III - a edição dos documentos
  102 + enviados em conformidade com as especificações técnicas
  103 + estabelecidas pelo Ministério da Justiça, no que se refere
  104 + à formatação e tamanho do arquivo enviado;</p>
  105 +
  106 + <p style="text-indent: 15mm;">IV - conservar os documentos
  107 + físicos originais objetos da digitalização, que estiverem em seu
  108 + poder, até que decaia o direito da Administração de rever os atos
  109 + praticados no processo;</p>
  110 +
  111 + <p style="text-indent: 15mm;">V - a consulta periódica ao
  112 + endereço de e-mail cadastrado e ao SEI-MJ, a fim de verificar o
  113 + recebimento de comunicações eletrônicas relativas a atos
  114 + processuais;</p>
  115 +
  116 + <p style="text-indent: 15mm;">VI - a atualização de seus dados
  117 + cadastrais no SEI-MJ; e</p>
  118 +
  119 + <p style="text-indent: 15mm;">VII - o acompanhamento da
  120 + divulgação dos períodos em que o SEI-MJ não estiver em
  121 + funcionamento em decorrência de indisponibilidade técnica do
  122 + serviço.</p>
  123 +
  124 + <p style="text-indent: 10mm;">5. A não obtenção de acesso ou
  125 + credenciamento no SEI-MJ, bem como eventual defeito de
  126 + transmissão ou recepção de dados e informações, não imputáveis à
  127 + falha do SEI-MJ, não servirão de escusa para o descumprimento de
  128 + obrigações e prazos legais.</p>
  129 +
  130 + <p style="text-indent: 10mm;">6. O Ministério da Justiça
  131 + poderá exigir no curso do processo, a seu critério, a exibição do
  132 + original do documento digitalizado enviado eletronicamente pelo
  133 + administrado</p>
  134 +
  135 + </div>
  136 + </div>
  137 + </h:panelGroup>
  138 +
  139 + </h:form>
  140 + </ui:define>
  141 +</ui:composition>
0 142 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/listar-procuracao.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/listar-procuracao.xhtml
... ... @@ -0,0 +1,258 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui"
  7 + template="/templates/template-sem-menu.xhtml">
  8 +
  9 + <ui:define name="body">
  10 +
  11 + <style type="text/css">
  12 + #filtrar td {
  13 + border: 0 none !important;
  14 + font-size: 12px !important;
  15 + text-align: left !important;
  16 + line-height: 23px !important;
  17 + }
  18 + .estiloPesquisa {
  19 + height: 23px;
  20 + margin-bottom: 7px;
  21 + }
  22 + </style>
  23 +
  24 + <p:fieldset>
  25 + <h:form id="form-procuracao" prependId="false">
  26 +
  27 + <br/>
  28 +
  29 + <h:panelGroup layout="block" style="text-align: right;">
  30 + <p:commandButton id="cadNovoProcuracao" value="Nova Procuração" action="#{listarProcuracaoBean.novaProcuracao}"/>
  31 + </h:panelGroup>
  32 +
  33 + <br/>
  34 +
  35 + <p:fieldset legend="Procurações Eletrônicas Outorgadas" toggleable="true">
  36 + <p:dataTable id="dt-outorgadas"
  37 + var="outorgadas"
  38 + value="#{listarProcuracaoBean.listOutorgadas}"
  39 + emptyMessage="#{listarProcuracaoBean.emptyMessage}"
  40 + rowIndexVar="rowIx"
  41 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  42 + style="max-width: 730px; overflow: auto; min-height:0%" >
  43 +
  44 + <p:columnGroup type="header">
  45 + <p:row>
  46 + <p:column colspan="1" headerText=""/>
  47 + <p:column colspan="1" headerText="Outorgado" />
  48 + <!-- <p:column colspan="2" headerText="Outorgante" /> -->
  49 + <p:column colspan="1" headerText="Substabelecimento" />
  50 + <p:column colspan="1" headerText="" />
  51 + <p:column colspan="1" headerText="" />
  52 + <p:column colspan="1" headerText="" />
  53 + <p:column colspan="1" headerText="" />
  54 + </p:row>
  55 +
  56 + <p:row>
  57 + <p:column headerText="Procuração" />
  58 + <!--<p:column headerText="CPF/CNPJ" /> -->
  59 + <p:column headerText="&#160; Nome Pessoa &lt;br /&gt; Fisica/Razão Social &lt;br /&gt; Pessoa Jurídica" />
  60 + <!--<p:column headerText="CPF/CNPJ" />
  61 + <p:column headerText="&#160; Nome Pessoa &lt;br /&gt; Fisica / Razão Social &lt;br /&gt; Pessoa Jurídica" /> -->
  62 + <!--<p:column headerText="CPF/CNPJ" /> -->
  63 + <p:column headerText="&#160; Nome Pessoa &lt;br /&gt; Fisica/Razão Social &lt;br /&gt; Pessoa Jurídica" />
  64 + <p:column headerText="Dt Inicio" />
  65 + <p:column headerText="Dt Término" />
  66 + <p:column headerText="Status" />
  67 + <p:column headerText="A&#231;&#245;es" />
  68 + </p:row>
  69 + </p:columnGroup>
  70 +
  71 + <p:column>
  72 + <p:commandLink id="cl-numero-procuracao" process="@this" action="#{listarProcuracaoBean.visualizarProcuracao}">
  73 + <!-- <h:outputText value="#{outorgadas.numeroOutorganteFormatado}" />
  74 + <h:outputText value="/" /> -->
  75 + <h:outputText value="#{outorgadas.procuracao.ano}"/>
  76 + <h:outputText value="#{outorgadas.procuracao.numeroSequencialZeros}" />
  77 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{outorgadas.procuracao}"/>
  78 + </p:commandLink>
  79 + </p:column>
  80 +
  81 + <!-- <p:column>
  82 + <h:outputText value="#{outorgadas.numeroOutorgadoFormatado}" />
  83 + </p:column> -->
  84 +
  85 + <p:column>
  86 + <h:outputText value="#{outorgadas.nomeOutorgado}" />
  87 + </p:column>
  88 +
  89 + <!-- <p:column>
  90 + <h:outputText value="#{outorgadas.numeroOutorganteFormatado}" />
  91 + </p:column>
  92 +
  93 + <p:column>
  94 + <h:outputText value="#{outorgadas.nomeOutorgante}" />
  95 + </p:column>
  96 +
  97 + <p:column>
  98 + <h:outputText value="#{outorgadas.numeroSubstabelecedorFormatado}" />
  99 + </p:column>-->
  100 +
  101 + <p:column>
  102 + <h:outputText value="#{outorgadas.nomeSubstabelecedor}" />
  103 + </p:column>
  104 +
  105 + <p:column>
  106 + <h:outputText value="#{outorgadas.procuracao.dataValidadeInicial}">
  107 + <f:convertDateTime pattern="dd/MM/yy" type="date"/>
  108 + </h:outputText>
  109 + </p:column>
  110 +
  111 + <p:column>
  112 + <h:outputText value="#{outorgadas.procuracao.dataValidadeFinal}">
  113 + <f:convertDateTime pattern="dd/MM/yy" type="date"/>
  114 + </h:outputText>
  115 + </p:column>
  116 +
  117 + <p:column>
  118 + <h:outputText value="#{outorgadas.procuracao.statusProcuracao.descricao}" />
  119 + </p:column>
  120 +
  121 + <p:column style="text-align: center;">
  122 + <p:commandLink id="cl-visualizar-procuracao" process="@this" action="#{listarProcuracaoBean.visualizarProcuracao}">
  123 + <h:graphicImage library="design/imagem" name="icone-visualizar.png" alt="Visualizar Procuração" title="Visualizar Procuração"/>
  124 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{outorgadas.procuracao}"/>
  125 + </p:commandLink>
  126 + <h:outputText value="&#160;"/>
  127 + <p:commandLink id="cl-revogar" process="@this" action="#{listarProcuracaoBean.revogarProcuracao}" immediate="true" ajax="false"
  128 + update="msgs,dt-recebidas,dt-outorgadas" rendered="#{outorgadas.procuracao.statusProcuracao.id eq listarProcuracaoBean.idStatusAtiva}">
  129 + <h:graphicImage library="design/imagem" name="icone-evento.jpg" alt="Revogas" title="Revogar"/>
  130 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{outorgadas.procuracao}"/>
  131 + </p:commandLink>
  132 + </p:column>
  133 +
  134 + </p:dataTable>
  135 +
  136 + </p:fieldset>
  137 +
  138 + <br/>
  139 +
  140 + <p:fieldset legend="Procurações Eletrônicas Recebidas">
  141 + <p:dataTable id="dt-recebidas"
  142 + var="recebidas"
  143 + value="#{listarProcuracaoBean.listRecebidas}"
  144 + emptyMessage="#{listarProcuracaoBean.emptyMessage}"
  145 + rowIndexVar="rowIx"
  146 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  147 + style="max-width: 730px; overflow: auto; min-height:0%" >
  148 +
  149 + <p:columnGroup type="header">
  150 + <p:row>
  151 + <p:column colspan="1" headerText="" />
  152 + <!-- <p:column colspan="2" headerText="Outorgado / Substabelecido/> -->
  153 + <p:column colspan="1" headerText="Outorgante" />
  154 + <p:column colspan="1" headerText="Substabelecimento" />
  155 + <p:column colspan="1" headerText="" />
  156 + <p:column colspan="1" headerText="" />
  157 + <p:column colspan="1" headerText="" />
  158 + <p:column colspan="1" headerText=""/>
  159 + </p:row>
  160 +
  161 + <p:row>
  162 + <p:column headerText="Procuração" />
  163 + <!--<p:column headerText="CPF/CNPJ" />
  164 + <p:column headerText="&#160; Nome Pessoa &lt;br /&gt; Fisica / Razão Social &lt;br /&gt; Pessoa Jurídica" />
  165 + <p:column headerText="CPF/CNPJ" /> -->
  166 + <p:column headerText="&#160; Nome Pessoa &lt;br /&gt; Fisica/Razão Social &lt;br /&gt; Pessoa Jurídica" />
  167 + <!-- <p:column headerText="CPF/CNPJ" /> -->
  168 + <p:column headerText="&#160; Nome Pessoa &lt;br /&gt; Fisica/Razão Social &lt;br /&gt; Pessoa Jurídica" />
  169 + <p:column headerText="Dt Inicio" />
  170 + <p:column headerText="Dt Término" />
  171 + <p:column headerText="Status" />
  172 + <p:column headerText="A&#231;&#245;es"/>
  173 + </p:row>
  174 + </p:columnGroup>
  175 +
  176 + <p:column>
  177 + <p:commandLink id="cl-numero-procuracao" process="@this" action="#{listarProcuracaoBean.visualizarProcuracao}">
  178 + <!-- <h:outputText value="#{recebidas.numeroOutorganteFormatado}" />
  179 + <h:outputText value="/" /> -->
  180 + <h:outputText value="#{recebidas.procuracao.ano}"/>
  181 + <h:outputText value="#{recebidas.procuracao.numeroSequencialZeros}" />
  182 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{recebidas.procuracao}"/>
  183 + </p:commandLink>
  184 + </p:column>
  185 +
  186 + <!--
  187 + <p:column>
  188 + <h:outputText value="#{recebidas.numeroOutorgadoFormatado}" />
  189 + </p:column>
  190 +
  191 + <p:column>
  192 + <h:outputText value="#{recebidas.nomeOutorgado}" />
  193 + </p:column>
  194 +
  195 + <p:column>
  196 + <h:outputText value="#{recebidas.numeroOutorganteFormatado}" />
  197 + </p:column>-->
  198 +
  199 + <p:column>
  200 + <h:outputText value="#{recebidas.nomeOutorgante}" />
  201 + </p:column>
  202 +
  203 + <!--<p:column>
  204 + <h:outputText value="#{recebidas.numeroSubstabelecedorFormatado}" />
  205 + </p:column> -->
  206 +
  207 + <p:column>
  208 + <h:outputText value="#{recebidas.nomeSubstabelecedor}" />
  209 + </p:column>
  210 +
  211 + <p:column>
  212 + <h:outputText value="#{recebidas.procuracao.dataValidadeInicial}">
  213 + <f:convertDateTime pattern="dd/MM/yy" type="date"/>
  214 + </h:outputText>
  215 + </p:column>
  216 +
  217 + <p:column>
  218 + <h:outputText value="#{recebidas.procuracao.dataValidadeFinal}">
  219 + <f:convertDateTime pattern="dd/MM/yy" type="date"/>
  220 + </h:outputText>
  221 + </p:column>
  222 +
  223 + <p:column>
  224 + <h:outputText value="#{recebidas.procuracao.statusProcuracao.descricao}" />
  225 + </p:column>
  226 +
  227 + <p:column style="text-align: center;">
  228 + <p:commandLink id="cl-visualizar-procuracao" process="@this" action="#{listarProcuracaoBean.visualizarProcuracao}">
  229 + <h:graphicImage library="design/imagem" name="icone-visualizar.png" alt="Visualizar Procuração" title="Visualizar Procuração"/>
  230 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{recebidas.procuracao}"/>
  231 + </p:commandLink>
  232 + <h:outputText value="&#160;"/>
  233 + <p:commandLink id="cl-substabelecer" process="@this" update="msgs" immediate="true" action="#{listarProcuracaoBean.substabelecer}">
  234 + <h:graphicImage library="design/imagem" name="#{recebidas.procuracao.statusProcuracao.id == listarProcuracaoBean.idStatusAtiva ? 'icone-detalhar-versao.png' : 'icone-detalhar-versao-desabilitado.png'}" alt="Substabelecer" title="Substabelecer"/>
  235 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{recebidas.procuracao}"/>
  236 + </p:commandLink>
  237 + <h:outputText value="&#160;"/>
  238 + <p:commandLink id="cl-renunciar" process="@this" action="#{listarProcuracaoBean.renunciarProcuracao}" ajax="false" immediate="true" update="msgs,dt-recebidas,dt-outorgadas">
  239 + <h:graphicImage library="design/imagem" name="#{recebidas.procuracao.statusProcuracao.id == listarProcuracaoBean.idStatusAtiva ? 'icone-evento.jpg' : 'icone-evento-desabilitado.jpg'}" alt="Renunciar" title="Renunciar"/>
  240 + <f:setPropertyActionListener target="#{listarProcuracaoBean.model}" value="#{recebidas.procuracao}"/>
  241 + </p:commandLink>
  242 + </p:column>
  243 +
  244 + </p:dataTable>
  245 +
  246 + </p:fieldset>
  247 +
  248 + <br/>
  249 + <center>
  250 + <p:commandButton value="Voltar" ajax="false" id="voltar" action="principal.jsf?faces-redirect=true" immediate="true"/>
  251 + </center>
  252 +
  253 + </h:form>
  254 +
  255 + </p:fieldset>
  256 + </ui:define>
  257 +
  258 +</ui:composition>
0 259 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/login_externo.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/login_externo.xhtml
... ... @@ -0,0 +1,111 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  4 + xmlns:h="http://java.sun.com/jsf/html"
  5 + xmlns:f="http://java.sun.com/jsf/core"
  6 + xmlns:ui="http://java.sun.com/jsf/facelets"
  7 + xmlns:p="http://primefaces.prime.com.tr/ui"
  8 + template="/templates/template-sem-menu.xhtml">
  9 +
  10 + <f:metadata>
  11 + <f:event type="preRenderView" listener="#{loginUsuarioBean.init}" />
  12 + </f:metadata>
  13 +
  14 + <ui:define name="body">
  15 +
  16 + <h:form id="form_login_externo">
  17 + <div align="center">
  18 + <font class="titulo"></font>
  19 + </div>
  20 + <h:panelGroup layout="block" style="text-align: right;">
  21 + <h:outputText styleClass="msgObrigatorio"
  22 + value="#{const.alerta_campos_obrigatorios}" />
  23 + </h:panelGroup>
  24 + <p:fieldset>
  25 +
  26 + <h:form>
  27 +
  28 + <center>
  29 + <h:panelGrid id="panelLogin" columns="3" columnClasses="coluna10"
  30 + style="width: 150px;">
  31 + <h:outputText styleClass="icoObrigatorio" value="CPF:" />
  32 + <p:inputMask id="loginProponente"
  33 + value="${loginUsuarioBean.model.loginProponente}" size="20"
  34 + mask="999.999.999-99" style="width: 125px;" required="false"
  35 + requiredMessage="${loginUsuarioBean.requiredMessage}" />
  36 + <p:message for="loginProponente" />
  37 + <h:outputText styleClass="icoObrigatorio" value="Senha:" />
  38 + <p:password feedback="false" id="senhaProponente"
  39 + value="${loginUsuarioBean.model.senhaProponente}" maxlength="30"
  40 + required="false"
  41 + requiredMessage="${loginUsuarioBean.requiredMessage}"
  42 + style="width: 125px;" />
  43 + <p:message for="senhaProponente" />
  44 + </h:panelGrid>
  45 +
  46 + </center>
  47 +
  48 + <br />
  49 + <br />
  50 + <!--
  51 + <div align="center">
  52 + <h:outputText style="font-family: Trebuchet MS,Tahoma ,Arial, Helvetica, sans-serif;" value="Seu endereço de IP é:" />
  53 + <br />
  54 + <h:outputText style="font-size: 22px;font-weight: bold; color: #000000;" value="#{loginUsuarioBean.ipUsuario}" />
  55 + <br />
  56 + <div style="font-size: 12px; font-family: Trebuchet MS,Tahoma,Arial,Helvetica,sans-serif;">
  57 + <h:outputText value="Para acessar o sistema, digite os caracteres abaixo." />
  58 + </div>
  59 + </div>
  60 +
  61 + <div align="center">
  62 + <h:panelGrid id="panelCaptcha" columns="2">
  63 + <p:captcha label="Captcha" id="idCaptcha" theme="white" required="false" requiredMessage="#{loginUsuarioBean.requiredMessage}" />
  64 + <h:outputText />
  65 + <p:message for="idCaptcha" showDetail="true" />
  66 + <h:outputText />
  67 + </h:panelGrid>
  68 + </div>
  69 + -->
  70 + <div align="center">
  71 + <h:panelGrid id="panelActions" columns="3" width="38%">
  72 + <p:commandButton id="btEntrar" value="Entrar"
  73 + action="${loginUsuarioBean.login}" ajax="false">
  74 + </p:commandButton>
  75 +
  76 + <p:commandButton value="Cadastrar-se" id="cadastrar_se"
  77 + action="#{loginUsuarioBean.cadastrar}" ajax="false" />
  78 +
  79 + <p:commandButton value="Recuperar senha" id="recuperar_senha"
  80 + action="#{loginUsuarioBean.recuperarSenha}" ajax="false" />
  81 +
  82 + </h:panelGrid>
  83 + <br />
  84 + </div>
  85 +
  86 + <div align="center"
  87 + style="font-size: 12px; font-family: Trebuchet MS, Tahoma, Arial, Helvetica, sans-serif; color: #FF0000;">
  88 +
  89 + <h:outputText
  90 + value="Este sistema &#233; melhor visualizado no Google Chrome ou Mozilla Firefox 24.0" />
  91 + <br />
  92 + <h:outputText
  93 + style="font-family: Trebuchet MS,Tahoma ,Arial, Helvetica, sans-serif;"
  94 + value="Seu endereço de IP é:" />
  95 + <br />
  96 + <h:outputText style="font-weight: bold; color: #000000;"
  97 + value="#{loginUsuarioBean.ipUsuario}" />
  98 + <br />
  99 + </div>
  100 +
  101 + </h:form>
  102 +
  103 + </p:fieldset>
  104 +
  105 +
  106 +
  107 + </h:form>
  108 +
  109 + </ui:define>
  110 +
  111 +</ui:composition>
0 112 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/pessoa-juridica.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/pessoa-juridica.xhtml
... ... @@ -0,0 +1,76 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
  3 + xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.prime.com.tr/ui" template="/templates/template-sem-menu.xhtml">
  4 +
  5 + <f:metadata>
  6 + <f:event type="preRenderView" listener="#{pessoaJuridicaBean.init}" />
  7 + </f:metadata>
  8 +
  9 + <ui:define name="body">
  10 +
  11 + <script type="text/javascript">
  12 + function voltarPrincipal(){
  13 + location.href = "principal.jsf?faces-redirect=true";
  14 + }
  15 + </script>
  16 +
  17 + <h:form id="formPessoaJuridica" prependId="false">
  18 + <p:fieldset legend="Pessoa jurídica">
  19 +
  20 + <p:dataTable id="dataTablePessoaJuridica" var="pj" value="#{pessoaJuridicaBean.empresas}"
  21 + emptyMessage="#{pessoaJuridicaBean.emptyMessage}" paginator="true"
  22 + rowsPerPageTemplate="#{pessoaJuridicaBean.paginacao}" lazy="false" rows="10"
  23 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  24 + selection="#{pessoaJuridicaBean.selected}" selectionMode="single"
  25 + rowIndexVar="rowIx" rowSelectListener="#{pessoaJuridicaBean.enableToolbar}"
  26 + rowUnselectListener="#{pessoaJuridicaBean.disableToolbar}"
  27 + onRowSelectUpdate="pgButton" onRowUnselectUpdate="pgButton">
  28 +
  29 + <p:column headerText="CNPJ" style="width: 155px;">
  30 + <h:outputText value="#{pj.pessoaTitular.cnpjFormat}" />
  31 + </p:column>
  32 +
  33 + <p:column headerText="Razão social">
  34 + <h:outputText value="#{pj.pessoaTitular.razaoSocial}"/>
  35 + </p:column>
  36 +
  37 + <p:column headerText="Ano de constituição" style="text-align: right;">
  38 + <h:outputText value="#{(pj.anoConstituicao eq 0)?'':pj.anoConstituicao}"/>
  39 + </p:column>
  40 +
  41 + <p:column headerText="Representante legal">
  42 + <h:outputText value="#{pj.nomeRepresentante}"/>
  43 + </p:column>
  44 +
  45 + </p:dataTable>
  46 +
  47 + <br />
  48 +
  49 + <center>
  50 + <h:panelGroup id="pgButton">
  51 + <p:commandButton id="novo" value="Nova PJ" ajax="false" action="#{pessoaJuridicaBean.novo}"/>
  52 + <p:commandButton id="editar" value="Editar" ajax="false" action="#{pessoaJuridicaBean.editar}" disabled="#{pessoaJuridicaBean.selectedRecord}"/>
  53 + <p:commandButton id="excluir" value="Excluir" disabled="#{pessoaJuridicaBean.selectedRecord}" oncomplete="confirmacao.show()"/>
  54 + <p:commandButton id="visualizar" value="Visualizar" ajax="false" action="#{pessoaJuridicaBean.visualizar}" disabled="#{pessoaJuridicaBean.selectedRecord}"/>
  55 + <p:commandButton id="voltar" value="Voltar" ajax="false" type="button" onclick="voltarPrincipal();"/>
  56 + </h:panelGroup>
  57 + </center>
  58 +
  59 + <p:confirmDialog id="confirmaExclusao" message="Tem certeza de que deseja excluir? Esta exclusão não poderá ser desfeita!"
  60 + position="center" header="Confirma&#231;&#227;o" severity="alert" modal="true" widgetVar="confirmacao">
  61 + <p:commandButton value="Não" onclick="confirmacao.hide()" type="button" />
  62 + <p:commandButton value="Sim" update="msgs,dataTablePessoaJuridica,pgButton" onclick="confirmacao.hide()"
  63 + actionListener="#{pessoaJuridicaBean.delete}" immediate="true" />
  64 + </p:confirmDialog>
  65 +
  66 + <h:panelGroup id="backButton" style="float: right;" >
  67 + <h:link title="Voltar para página principal" outcome="principal.jsf?faces-redirect=true" >
  68 + <h:graphicImage name="botao-principal.png" library="design/imagem" />
  69 + </h:link>
  70 + </h:panelGroup>
  71 +
  72 + </p:fieldset>
  73 + </h:form>
  74 +
  75 + </ui:define>
  76 +</ui:composition>
0 77 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/externo/principal.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/principal.xhtml
... ... @@ -0,0 +1,47 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
  3 + xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.prime.com.tr/ui" template="/templates/template-sem-menu.xhtml">
  4 +
  5 + <f:metadata>
  6 + <f:event type="preRenderView" listener="#{principalBean.populaTitulo}" />
  7 + </f:metadata>
  8 +
  9 + <ui:define name="body">
  10 + <br/>
  11 + <br/>
  12 + <div align="center" style="font-family: Lucida Sans; font-size: 20px; color: #377DB4; font-weight: normal;">
  13 + <h:outputText value="#{principalBean.saudacao}"/><b><h:outputText value="#{principalBean.nome}" /></b>
  14 + </div>
  15 + <div align="center" style="font-family: Lucida Sans; font-size: 14px; color: #377DB4; font-weight: normal;">
  16 + <h:outputText value="O seu cadastro está com a Situação em:"/><b><h:outputText value="#{principalBean.situacaoCadastro}"/>
  17 + <h:outputText value=", verifique o seu email."/></b>
  18 + </div>
  19 + <br/>
  20 + <br/>
  21 + <br/>
  22 + <div align="center">
  23 + <h:form id="principal" prependId="false">
  24 + <h:panelGrid id="panelLinks" columns="5">
  25 + <h:link title="Perfil" outcome="cadastro-proponente.jsf?faces-redirect=true" >
  26 + <h:graphicImage name="botao-perfil.png" library="design/imagem" />
  27 + </h:link>
  28 + <h:link title="Pessoa Jurídica" outcome="pessoa-juridica.jsf?faces-redirect=true" >
  29 + <h:graphicImage name="botao-pessoa-juridica.png" library="design/imagem" />
  30 + </h:link>
  31 + <h:link title="Peticionamento eletrônico" outcome="cadastro-peticao.jsf?faces-redirect=true"
  32 + rendered="#{principalBean.model.situacaoCadastro.id eq 3}">
  33 + <h:graphicImage name="botao-peticionamento.png" library="design/imagem" />
  34 + </h:link>
  35 + <h:link title="Petições Realizadas" outcome="consultar-peticao.jsf?faces-redirect=true"
  36 + rendered="#{principalBean.model.situacaoCadastro.id eq 3}">
  37 + <h:graphicImage name="botao-peticoes_realizadas.png" library="design/imagem" />
  38 + </h:link>
  39 + <p:commandLink action="#{principalBean.logout}" ajax="false" title="Sair do sistema">
  40 + <h:graphicImage name="botao-sair.png" library="design/imagem" />
  41 + </p:commandLink>
  42 + </h:panelGrid>
  43 + </h:form>
  44 + </div>
  45 + </ui:define>
  46 +</ui:composition>
  47 +
... ...
codigos_fonte/WebApp/pages/externo/recuperar-senha.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/externo/recuperar-senha.xhtml
... ... @@ -0,0 +1,103 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  4 + xmlns:h="http://java.sun.com/jsf/html"
  5 + xmlns:f="http://java.sun.com/jsf/core"
  6 + xmlns:ui="http://java.sun.com/jsf/facelets"
  7 + xmlns:p="http://primefaces.prime.com.tr/ui"
  8 + template="/templates/template-sem-menu.xhtml">
  9 +
  10 + <f:metadata>
  11 + <f:event type="preRenderView" listener="#{recuperarSenhaBean.buscaIp}" />
  12 + </f:metadata>
  13 +
  14 + <ui:define name="body">
  15 +
  16 + <script type="text/javascript">
  17 + $ = jQuery;
  18 + $(document).ready(function() {
  19 + $('[id$=dtNascimento_input]').attr('readonly', 'readonly');
  20 + });
  21 +
  22 + function voltarLogin(){
  23 + location.href = "login_externo.jsf?faces-redirect=true";
  24 + }
  25 + </script>
  26 +
  27 + <div align="center">
  28 + <font class="titulo">Recuperar Senha</font>
  29 + </div>
  30 + <h:panelGroup layout="block" style="text-align: right;">
  31 + <h:outputText styleClass="msgObrigatorio"
  32 + value="#{const.alerta_campos_obrigatorios}" />
  33 + </h:panelGroup>
  34 + <p:fieldset>
  35 +
  36 + <h:form>
  37 + <div>
  38 +
  39 + <h:panelGrid id="panelLogin" columns="3" columnClasses="coluna30"
  40 + style="margin-left: 100px; width: 600px;">
  41 + <h:outputText styleClass="icoObrigatorio" value="CPF :" />
  42 + <p:inputMask id="cpfProponente"
  43 + value="#{recuperarSenhaBean.cpfProponente}" size="18"
  44 + mask="999.999.999-99" style="width: 125px;" required="true"
  45 + requiredMessage="#{recuperarSenhaBean.requiredMessage}" />
  46 + <p:message for="cpfProponente" />
  47 +
  48 + <h:outputText styleClass="icoObrigatorio" value="E-mail:" />
  49 + <p:inputText id="emailProponente"
  50 + value="#{recuperarSenhaBean.email}" maxlength="200"
  51 + style="width: 250px;" required="true"
  52 + requiredMessage="#{recuperarSenhaBean.requiredMessage}"
  53 + validatorMessage="E-mail inv&aacute;lido!">
  54 + <f:validateRegex
  55 + pattern="^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$" />
  56 + </p:inputText>
  57 + <p:message for="emailProponente" />
  58 + <!--
  59 + <h:outputText styleClass="icoObrigatorio"
  60 + value="Data de nascimento:" />
  61 + <p:calendar size="15" pattern="dd/MM/yyyy" navigator="true"
  62 + yearRange="1900:2050" id="dtNascimento"
  63 + value="#{recuperarSenhaBean.dataNascimento}" required="false"
  64 + requiredMessage="#{recuperarSenhaBean.requiredMessage}">
  65 + </p:calendar>
  66 + <p:message for="dtNascimento" />
  67 + -->
  68 + </h:panelGrid>
  69 + </div>
  70 +
  71 + <br />
  72 + <!--
  73 + <div align="center">
  74 + <h:outputText style="font-family: Trebuchet MS,Tahoma ,Arial, Helvetica, sans-serif;" value="Seu endereço de IP é:" />
  75 + <br />
  76 + <h:outputText style="font-size: 22px;font-weight: bold; color: #000000;" value="#{recuperarSenhaBean.ipUsuario}" />
  77 + <br />
  78 + <div style="font-size: 12px; font-family: Trebuchet MS,Tahoma,Arial,Helvetica,sans-serif;">
  79 + <h:outputText value="Para acessar o sistema, digite os caracteres abaixo." />
  80 + </div>
  81 + </div>
  82 +
  83 + <div align="center">
  84 + <h:panelGrid id="panelCaptcha" columns="2">
  85 + <p:captcha label="Captcha" id="idCaptcha" theme="white" required="true" requiredMessage="#{recuperarSenhaBean.requiredMessage}" />
  86 + <h:outputText />
  87 + <p:message for="idCaptcha" showDetail="true" />
  88 + <h:outputText />
  89 + </h:panelGrid>
  90 + </div>
  91 + -->
  92 + <div align="center">
  93 + <h:panelGrid id="panelActions" columns="2" width="100">
  94 + <p:commandButton value="Recuperar"
  95 + action="${recuperarSenhaBean.recuperar}" ajax="false" />
  96 + <p:commandButton value="Voltar" ajax="false" id="voltar"
  97 + type="button" onclick="voltarLogin();" />
  98 + </h:panelGrid>
  99 + </div>
  100 + </h:form>
  101 + </p:fieldset>
  102 + </ui:define>
  103 +l</ui:composition>
0 104 \ No newline at end of file
... ...
codigos_fonte/WebApp/pages/lista-email-pf.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/lista-email-pf.xhtml
... ... @@ -0,0 +1,48 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui">
  7 +
  8 +
  9 + <h:panelGrid id="pg-pessoaFis" columns="2" columnClasses="coluna10,coluna90" width="100%">
  10 + <h:outputLabel value="CPF:" />
  11 + <p:inputMask id="idCPF" value="#{listarEmailBean.filtroPesquisa.cpfFiltroPesquisa}" mask="999.999.999-99" />
  12 +
  13 + <h:outputLabel value="Nome:" />
  14 + <p:autoComplete id="idNome" minQueryLength="3" onkeyup="this.value.toUpperCase();"
  15 + maxResults="9" size="40" value="#{listarEmailBean.filtroPesquisa.nomeFiltroPesquisa}"
  16 + completeMethod="#{listarEmailBean.autoCompleteNomePessoaFisica}" />
  17 + </h:panelGrid>
  18 + <center>
  19 + <p:commandButton action="#{listarEmailBean.pesquisar}" process="idCPF idNome pesqPf" id="pesqPf" update="emailsPF" value="Pesquisar" />
  20 + </center>
  21 + <br />
  22 +
  23 + <h:panelGroup>
  24 + <p:dataTable id="emailsPF" var="p" value="#{listarEmailBean.listaEmailsPessoaFisica}"
  25 + emptyMessage="Sem dados para exibir."
  26 + paginator="true"
  27 + lazy="true" rows="10" rowIndexVar="rowIx"
  28 + rowsPerPageTemplate="5,10,15"
  29 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  30 + paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
  31 + currentPageReportTemplate="{currentPage} / {totalPages}"
  32 + style="max-width: 950px; overflow: auto; min-height:0%"
  33 + selection="single">
  34 +
  35 + <p:column headerText="Nome" style="text-align: left;" sortBy="#{p.nome}" >
  36 + <h:outputText value="#{p.nome}" />
  37 + </p:column>
  38 +
  39 + <p:column headerText="CPF" style="text-align: left;" sortBy="#{p.CPFFormated}">
  40 + <h:outputText value="#{p.CPFFormated}" />
  41 + </p:column>
  42 +
  43 + <p:column headerText="Email" style="text-align: left;">
  44 + <h:outputText value="#{p.emailPF}" />
  45 + </p:column>
  46 + </p:dataTable>
  47 + </h:panelGroup>
  48 +</ui:composition>
... ...
codigos_fonte/WebApp/pages/lista-email-pj.xhtml 0 → 100644
  1 +++ a/codigos_fonte/WebApp/pages/lista-email-pj.xhtml
... ... @@ -0,0 +1,53 @@
  1 +<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  3 + xmlns:h="http://java.sun.com/jsf/html"
  4 + xmlns:f="http://java.sun.com/jsf/core"
  5 + xmlns:ui="http://java.sun.com/jsf/facelets"
  6 + xmlns:p="http://primefaces.prime.com.tr/ui">
  7 +
  8 + <h:panelGrid id="pg-pessoaJurd" columns="2" columnClasses="coluna10,coluna90" width="100%">
  9 + <h:outputLabel value="CNPJ:" />
  10 + <p:inputMask id="idCnpj" value="#{listarEmailBean.filtroPesquisa.cnpjFiltroPesquisa}" mask="99.999.999/9999-99" />
  11 +
  12 + <h:outputLabel value="Razão Social" />
  13 + <p:autoComplete id="idRazaoSocial"
  14 + minQueryLength="3"
  15 + onkeyup="this.value.toUpperCase();"
  16 + maxResults="9" size="40"
  17 + value="#{listarEmailBean.filtroPesquisa.razaoSocialFiltroPesquisa}"
  18 + completeMethod="#{listarEmailBean.autoCompleteNomePessoaJuridica}" />
  19 + </h:panelGrid>
  20 + <center>
  21 + <p:commandButton action="#{listarEmailBean.pesquisar}" process="idCnpj idRazaoSocial pesqPj" update="emailsPJ" id="pesqPj" value="Pesquisar"/>
  22 + </center>
  23 + <br />
  24 +
  25 + <h:panelGroup>
  26 + <p:dataTable id="emailsPJ" var="p" value="#{listarEmailBean.listaEmailsPessoaJuridica}"
  27 + emptyMessage="Sem dados para exibir."
  28 + paginator="true"
  29 + lazy="true" rows="10" rowIndexVar="rowIx"
  30 + rowsPerPageTemplate="5,10,15"
  31 + rowStyleClass="#{empty rowIx or rowIx mod 2 ne 0 ? 'linhaImpar' : 'linhaPar'}"
  32 + paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
  33 + currentPageReportTemplate="{currentPage} / {totalPages}"
  34 + style="max-width: 950px; overflow: auto; min-height:0%"
  35 + selection="single">
  36 + <p:column headerText="Razão Social" style="text-align:left;" sortBy="#{p.razaoSocial}" >
  37 + <h:outputText value="#{p.razaoSocial}" />
  38 + </p:column>
  39 +
  40 + <p:column headerText="CNPJ" style="text-align:left;" sortBy="#{p.cnpj}" >
  41 + <h:outputText value="#{p.CNPJFormated}" />
  42 + </p:column>
  43 +
  44 + <p:column headerText="Emails" style="text-align:left;">
  45 + <h:outputText value="#{p.emailPJ}" />
  46 + <h:outputText value=", &nbsp;#{p.emailPJ1}" rendered="#{p.emailPJ1 != null}" />
  47 + <h:outputText value=", &nbsp;#{p.emailPJ2}" rendered="#{p.emailPJ2 != null}" />
  48 + <h:outputText value=", &nbsp;#{p.emailPJ3}" rendered="#{p.emailPJ3 != null}" />
  49 + <h:outputText value=", &nbsp;#{p.emailPJ4}" rendered="#{p.emailPJ4 != null}" />
  50 + </p:column>
  51 + </p:dataTable>
  52 + </h:panelGroup>
  53 +</ui:composition>
... ...