bug#al-2855
Aguia Branca - GLPI - 64914 [PROJETO] - ADM - ERRO AO SELECIONAR FLAG PRICING NO CADASTRO DE CONEXOES ENTRE LINHAS dev: qua: Melhoria de desempenho ao salvar as conexoes.master
parent
6d7620e1bc
commit
308125f427
2
pom.xml
2
pom.xml
|
@ -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.6.1</version>
|
<version>1.6.2</version>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>rj-releases</id>
|
<id>rj-releases</id>
|
||||||
|
|
|
@ -19,6 +19,8 @@ import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.vo.parada.ConexionCtrlVO;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author wallace
|
* @author wallace
|
||||||
|
@ -65,7 +67,7 @@ public class ConexionRutaTramoCtrl implements Serializable {
|
||||||
private Integer grupo;
|
private Integer grupo;
|
||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
private Boolean indPricing;
|
private ConexionCtrlVO conexionCtrl;
|
||||||
|
|
||||||
public ConexionRutaTramoCtrl() {
|
public ConexionRutaTramoCtrl() {
|
||||||
super();
|
super();
|
||||||
|
@ -198,11 +200,11 @@ public class ConexionRutaTramoCtrl implements Serializable {
|
||||||
this.ruta = ruta;
|
this.ruta = ruta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getIndPricing() {
|
public ConexionCtrlVO getConexionCtrl() {
|
||||||
return indPricing == null ? false : indPricing;
|
return conexionCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndPricing(Boolean indPricing) {
|
public void setConexionCtrl(ConexionCtrlVO conexionCtrl) {
|
||||||
this.indPricing = indPricing;
|
this.conexionCtrl = conexionCtrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,6 +254,11 @@ public class ConexionRutaConfServiceImpl implements ConexionRutaConfService {
|
||||||
conexion.setNumsecuencia(conexionRutaTramoCtrl.getSecuencia());
|
conexion.setNumsecuencia(conexionRutaTramoCtrl.getSecuencia());
|
||||||
conexion.setRutaId(conexionRutaTramoCtrl.getRuta().getRutaId());
|
conexion.setRutaId(conexionRutaTramoCtrl.getRuta().getRutaId());
|
||||||
conexion.setConexionRutaTramoId(conexionRutaTramoCtrl.getConexionRutaTramoId());
|
conexion.setConexionRutaTramoId(conexionRutaTramoCtrl.getConexionRutaTramoId());
|
||||||
|
|
||||||
|
if(conexionRutaTramoCtrl.getConexionCtrl() != null) {
|
||||||
|
conexionRutaTramoCtrl.getConexionCtrl().setConexionctrlId(conexionCtrl.getConexionctrlId());
|
||||||
|
}
|
||||||
|
|
||||||
conexion = conexionService.suscribir(conexion);
|
conexion = conexionService.suscribir(conexion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -265,7 +270,9 @@ public class ConexionRutaConfServiceImpl implements ConexionRutaConfService {
|
||||||
ConexionRutaTramoCtrl aux = new ConexionRutaTramoCtrl(trecho.getConexionRutaTramoId());
|
ConexionRutaTramoCtrl aux = new ConexionRutaTramoCtrl(trecho.getConexionRutaTramoId());
|
||||||
Integer idx = lsConexionRutaTramo.indexOf(aux);
|
Integer idx = lsConexionRutaTramo.indexOf(aux);
|
||||||
if(idx > -1) {
|
if(idx > -1) {
|
||||||
list.add(lsConexionRutaTramo.get(idx));
|
ConexionRutaTramoCtrl aux2 = lsConexionRutaTramo.get(idx);
|
||||||
|
aux2.setConexionCtrl(trecho.getConexionCtrl());
|
||||||
|
list.add(aux2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue