From e5d26578e3c797b848e525cc73bf1c5074275534 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Fri, 17 Nov 2023 11:12:50 -0300 Subject: [PATCH] =?UTF-8?q?bug#al-3485=20Continua=C3=A7=C3=A3o=2066363=20-?= =?UTF-8?q?=20Ajustes=20na=20Tela=20de=20Configura=C3=A7=C3=A3o=20de=20Ser?= =?UTF-8?q?vi=C3=A7o=20na=20ADM=20dev:=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../impl/HeaderEsquemaCorridaServiceImpl.java | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 0c7076fd4..721b3305c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 br.com.rjconsultores ModelWeb - 1.22.1 + 1.23.0 diff --git a/src/com/rjconsultores/ventaboletos/service/impl/HeaderEsquemaCorridaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/HeaderEsquemaCorridaServiceImpl.java index 0f959881e..644363d0b 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/HeaderEsquemaCorridaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/HeaderEsquemaCorridaServiceImpl.java @@ -32,14 +32,14 @@ public class HeaderEsquemaCorridaServiceImpl implements HeaderEsquemaCorridaServ if(header == null) { //Se for nulo retorna com o valor padrao - header = new HeaderTabelaEsquemaCorrida(1, "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"); + header = new HeaderTabelaEsquemaCorrida(1, "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16"); } String headerString = header.getSequenciaHeader(); String[] arrayString = headerString.split(","); - - Integer[] arrayInt = new Integer[15]; + + Integer[] arrayInt = new Integer[16]; int i = 0; for(String pos : arrayString) { @@ -47,6 +47,10 @@ public class HeaderEsquemaCorridaServiceImpl implements HeaderEsquemaCorridaServ i++; } + if(arrayString.length == 15) { + arrayInt[15] = 16; + } + return arrayInt; } @@ -80,7 +84,7 @@ public class HeaderEsquemaCorridaServiceImpl implements HeaderEsquemaCorridaServ int i = 1; for(Integer posicao : posicoesColunasTabela) { - if(i < 15) { + if(i < 16) { pos.append(posicao).append(","); } else { pos.append(posicao);