Facebook
From Morose Pig, 2 Years ago, written in Java.
This paste is a reply to Re: Untitled from Colorant Baboon - view diff
Embed
Download Paste or View Raw
Hits: 178
  1. public void ordernarServicoExternoTotal(List<RelatorioRecolhimentoServicoTotalTO> listaRecolhimentoServicoTotalTOList) {
  2. if (!CollectionUtil.isNullOrEmpty(listaRecolhimentoServicoTotalTOList)) {
  3. for (RelatorioRecolhimentoServicoTotalTO recolhimentoServicoTotalTO : listaRecolhimentoServicoTotalTOList) {
  4. if (recolhimentoServicoTotalTO.getNomeRecebedor() != null) {
  5. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Tabelião")) {
  6. recolhimentoServicoTotalTO.setOrdemExibicao(1);
  7. }
  8. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Estado")) {
  9. recolhimentoServicoTotalTO.setOrdemExibicao(2);
  10. }
  11. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Secretaria da Fazenda")) {
  12. recolhimentoServicoTotalTO.setOrdemExibicao(3);
  13. }
  14.  
  15. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Município")) {
  16. recolhimentoServicoTotalTO.setOrdemExibicao(4);
  17. }
  18.  
  19. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Ministério Público")) {
  20. recolhimentoServicoTotalTO.setOrdemExibicao(5);
  21. }
  22.  
  23. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Registro Civil")) {
  24. recolhimentoServicoTotalTO.setOrdemExibicao(6);
  25. }
  26.  
  27. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Tribunal de Justiça")) {
  28. recolhimentoServicoTotalTO.setOrdemExibicao(7);
  29. }
  30.  
  31. if (recolhimentoServicoTotalTO.getNomeRecebedor().equalsIgnoreCase("Sta. Casa")) {
  32. recolhimentoServicoTotalTO.setOrdemExibicao(8);
  33. }
  34. }
  35. }
  36. listaRecolhimentoServicoTotalTOList.sort(Comparator.comparing(RelatorioRecolhimentoServicoTotalTO::getOrdemExibicao));
  37. listaRecolhimentoServicoTotalTOList.sort(Comparator.comparing(RelatorioRecolhimentoServicoTotalTO::getIdOrcamentoAto));
  38. }
  39. }

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Sloppy Dormouse java 2 Years ago.