Merge pull request 'bug#al-3485' (!116) from AL3485 into master
Reviewed-on: adm/ModelWeb#116 Reviewed-by: pinheiro <valdevir@rjconsultores.com.br>master
commit
ae834f1425
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.22.1</version>
|
||||
<version>1.23.0</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue