bug#al-3485

Continuação 66363 - Ajustes na Tela de Configuração de Serviço na ADM
dev:
qua:
master
valdir.cordeiro 2023-11-17 11:12:50 -03:00
parent d5f44fdc1a
commit e5d26578e3
2 changed files with 9 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ModelWeb</artifactId> <artifactId>ModelWeb</artifactId>
<version>1.22.1</version> <version>1.23.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -32,14 +32,14 @@ public class HeaderEsquemaCorridaServiceImpl implements HeaderEsquemaCorridaServ
if(header == null) { if(header == null) {
//Se for nulo retorna com o valor padrao //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 headerString = header.getSequenciaHeader();
String[] arrayString = headerString.split(","); String[] arrayString = headerString.split(",");
Integer[] arrayInt = new Integer[15]; Integer[] arrayInt = new Integer[16];
int i = 0; int i = 0;
for(String pos : arrayString) { for(String pos : arrayString) {
@ -47,6 +47,10 @@ public class HeaderEsquemaCorridaServiceImpl implements HeaderEsquemaCorridaServ
i++; i++;
} }
if(arrayString.length == 15) {
arrayInt[15] = 16;
}
return arrayInt; return arrayInt;
} }
@ -80,7 +84,7 @@ public class HeaderEsquemaCorridaServiceImpl implements HeaderEsquemaCorridaServ
int i = 1; int i = 1;
for(Integer posicao : posicoesColunasTabela) { for(Integer posicao : posicoesColunasTabela) {
if(i < 15) { if(i < 16) {
pos.append(posicao).append(","); pos.append(posicao).append(",");
} else { } else {
pos.append(posicao); pos.append(posicao);