Commit 8c0b89f0b46ac46e432428765c2408f4ef8a0fd3
1 parent
08a48e03
Exists in
master
Correção da inserção dos dados institucionais.
Showing
2 changed files
with
26 additions
and
42 deletions
Show diff stats
WebContent/WEB-INF/jsp/index/formulario.jsp
... | ... | @@ -626,14 +626,14 @@ |
626 | 626 | </div> |
627 | 627 | |
628 | 628 | <input type="hidden" name="idQuestionario" value="${questionario.idQuestionario}" /> |
629 | - <input type="hidden" name="nomePessoa" value="${nomePessoa}" /> | |
630 | - <input type="hidden" name="hNomePessoa" value="${hNomePessoa}" /> | |
631 | - <input type="hidden" name="hCargo" value="${hCargo}" /> | |
632 | - <input type="hidden" name="cargo" value="${cargo}" /> | |
633 | - <input type="hidden" name="telefone" value="${telefone}" /> | |
634 | - <input type="hidden" name="hTelefone" value="${hTelefone}" /> | |
635 | - <input type="hidden" name="email" value="${email}" /> | |
636 | - <input type="hidden" name="hEmail" value="${hEmail}" /> | |
629 | + <input type="hidden" id="noPessoa" name="noPessoa" value="${nomePessoa}" /> | |
630 | + <input type="hidden" id="hNoPessoa" name="hNoPessoa" value="${hNomePessoa}" /> | |
631 | + <input type="hidden" id="hCargoNovo" name="hCargoNovo" value="${hCargo}" /> | |
632 | + <input type="hidden" id="cargoNovo" name="cargoNovo" value="${cargo}" /> | |
633 | + <input type="hidden" id="telefoneNovo" name="telefoneNovo" value="${telefone}" /> | |
634 | + <input type="hidden" id="hTelefoneNovo" name="hTelefoneNovo" value="${hTelefone}" /> | |
635 | + <input type="hidden" id="emailNovo" name="emailNovo" value="${email}" /> | |
636 | + <input type="hidden" id="hEmailNovo" name="hEmailNovo" value="${hEmail}" /> | |
637 | 637 | |
638 | 638 | </form> |
639 | 639 | ... | ... |
src/br/com/controller/indexController.java
... | ... | @@ -416,19 +416,7 @@ public class indexController { |
416 | 416 | switch (respostaQuestionario.getPergunta().getIdPergunta()) { |
417 | 417 | case 1: |
418 | 418 | result.include("nomeOrgao", respostaQuestionario.getTextoResposta()); |
419 | - break; | |
420 | - case 2: | |
421 | - result.include("nomePessoa", respostaQuestionario.getTextoResposta()); | |
422 | - break; | |
423 | - case 3: | |
424 | - result.include("cargo", respostaQuestionario.getTextoResposta()); | |
425 | - break; | |
426 | - case 4: | |
427 | - result.include("telefone", respostaQuestionario.getTextoResposta()); | |
428 | - break; | |
429 | - case 5: | |
430 | - result.include("email", respostaQuestionario.getTextoResposta()); | |
431 | - break; | |
419 | + break; | |
432 | 420 | case 7: |
433 | 421 | result.include("perguntaAcessibilidade", respostaQuestionario.getOpcaoResposta() |
434 | 422 | .getIdOpcaoResposta()); |
... | ... | @@ -471,11 +459,7 @@ public class indexController { |
471 | 459 | break; |
472 | 460 | case 18: |
473 | 461 | result.include("outroAvaliador", respostaQuestionario.getTextoResposta()); |
474 | - break; | |
475 | - /*case 19: | |
476 | - result.include(respostaQuestionario.getAmostragemSiteQuestionario().getNomeCampo(), | |
477 | - respostaQuestionario.getTextoResposta()); | |
478 | - break;*/ | |
462 | + break; | |
479 | 463 | case 20: |
480 | 464 | result.include("nivelWcag", respostaQuestionario.getOpcaoResposta() |
481 | 465 | .getIdOpcaoResposta()); |
... | ... | @@ -521,8 +505,8 @@ public class indexController { |
521 | 505 | } |
522 | 506 | |
523 | 507 | @Post("/salvar-formulario") |
524 | - public void FormularioControllerSalvar(String hNomePessoa, String nomePessoa, String hCargo, | |
525 | - String cargo, String hTelefone, String telefone, String hEmail, String email, | |
508 | + public void FormularioControllerSalvar(String hNoPessoa, String noPessoa, String hCargoNovo, | |
509 | + String cargoNovo, String hTelefoneNovo, String telefoneNovo, String hEmailNovo, String emailNovo, | |
526 | 510 | String hPerguntaAcessibilidade, String perguntaAcessibilidade, String hReclamacao, |
527 | 511 | String reclamacao, String hEspacoReclamacao, String espacoReclamacao, |
528 | 512 | String hPerguntaEstimulo, String perguntaEstimulo, String hCurso, String[] curso, |
... | ... | @@ -566,10 +550,10 @@ public class indexController { |
566 | 550 | questionario = new Questionario(idQuestionario); |
567 | 551 | |
568 | 552 | |
569 | - formulario.setNomePessoa(nomePessoa); | |
570 | - formulario.setCargo(cargo); | |
571 | - formulario.setTelefone(telefone); | |
572 | - formulario.setEmail(email); | |
553 | + formulario.setNomePessoa(noPessoa); | |
554 | + formulario.setCargo(cargoNovo); | |
555 | + formulario.setTelefone(telefoneNovo); | |
556 | + formulario.setEmail(emailNovo); | |
573 | 557 | formulario.setPerguntaAcessibilidade(perguntaAcessibilidade); |
574 | 558 | formulario.setReclamacao(reclamacao); |
575 | 559 | formulario.setEspacoReclamacao(espacoReclamacao); |
... | ... | @@ -599,8 +583,8 @@ public class indexController { |
599 | 583 | if (this.mensagemValidacaoCampos.size() > 0) { |
600 | 584 | result.include("mensagemValidacaoCampos", mensagemValidacaoCampos); |
601 | 585 | this.validator.add(new ValidationMessage("", "")); |
602 | - this.validator.onErrorUsePageOf(indexController.class).formulario(hNomePessoa, nomePessoa, | |
603 | - hCargo, cargo, hTelefone, telefone, hEmail, email, ases_hAmbiente1, hAmbiente1, | |
586 | + this.validator.onErrorUsePageOf(indexController.class).formulario(hNoPessoa, noPessoa, | |
587 | + hCargoNovo, cargoNovo, hTelefoneNovo, telefoneNovo, hEmailNovo, emailNovo, ases_hAmbiente1, hAmbiente1, | |
604 | 588 | ases_hPagina11, hPagina11, ases_hPagina12, hPagina12, ases_hPagina13, hPagina13, |
605 | 589 | ases_hPagina14, hPagina14, ases_hAmbiente2, hAmbiente2, ases_hPagina21, hPagina21, |
606 | 590 | ases_hPagina22, hPagina22, ases_hPagina23, hPagina23, ases_hPagina24, hPagina24, |
... | ... | @@ -614,17 +598,17 @@ public class indexController { |
614 | 598 | |
615 | 599 | List<RespostaQuestionario> lsRespostaQuestionario = new ArrayList<RespostaQuestionario>(); |
616 | 600 | |
617 | - lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hNomePessoa), | |
618 | - Integer.valueOf(1), nomePessoa, questionario, null, null)); | |
601 | + lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hNoPessoa), | |
602 | + Integer.valueOf(1), noPessoa, questionario, null, null)); | |
619 | 603 | |
620 | - lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hCargo), | |
621 | - Integer.valueOf(1), cargo, questionario, null, null)); | |
604 | + lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hCargoNovo), | |
605 | + Integer.valueOf(1), cargoNovo, questionario, null, null)); | |
622 | 606 | |
623 | - lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hTelefone), | |
624 | - Integer.valueOf(1), telefone, questionario, null, null)); | |
607 | + lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hTelefoneNovo), | |
608 | + Integer.valueOf(1), telefoneNovo, questionario, null, null)); | |
625 | 609 | |
626 | - lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hEmail), | |
627 | - Integer.valueOf(1), email, questionario, null, null)); | |
610 | + lsRespostaQuestionario.add(retornarRespostaQuestionario(Integer.valueOf(hEmailNovo), | |
611 | + Integer.valueOf(1), emailNovo, questionario, null, null)); | |
628 | 612 | |
629 | 613 | lsRespostaQuestionario.add(retornarRespostaQuestionario( |
630 | 614 | Integer.valueOf(hPerguntaAcessibilidade), Integer.valueOf(perguntaAcessibilidade), "", | ... | ... |