Merge pull request 'bug#al-2855' (!69) from AL2855 into master
Reviewed-on: adm/ModelWeb#69 Reviewed-by: Wilian Domingues <wilian@rjconsultores.com.br>master
commit
d85dc9e946
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.6.1</version>
|
||||
<version>1.6.2</version>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>rj-releases</id>
|
||||
|
|
|
@ -19,6 +19,8 @@ import javax.persistence.Temporal;
|
|||
import javax.persistence.TemporalType;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
import com.rjconsultores.ventaboletos.vo.parada.ConexionCtrlVO;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author wallace
|
||||
|
@ -65,7 +67,7 @@ public class ConexionRutaTramoCtrl implements Serializable {
|
|||
private Integer grupo;
|
||||
|
||||
@Transient
|
||||
private Boolean indPricing;
|
||||
private ConexionCtrlVO conexionCtrl;
|
||||
|
||||
public ConexionRutaTramoCtrl() {
|
||||
super();
|
||||
|
@ -198,11 +200,11 @@ public class ConexionRutaTramoCtrl implements Serializable {
|
|||
this.ruta = ruta;
|
||||
}
|
||||
|
||||
public Boolean getIndPricing() {
|
||||
return indPricing == null ? false : indPricing;
|
||||
public ConexionCtrlVO getConexionCtrl() {
|
||||
return conexionCtrl;
|
||||
}
|
||||
|
||||
public void setIndPricing(Boolean indPricing) {
|
||||
this.indPricing = indPricing;
|
||||
public void setConexionCtrl(ConexionCtrlVO conexionCtrl) {
|
||||
this.conexionCtrl = conexionCtrl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -254,6 +254,11 @@ public class ConexionRutaConfServiceImpl implements ConexionRutaConfService {
|
|||
conexion.setNumsecuencia(conexionRutaTramoCtrl.getSecuencia());
|
||||
conexion.setRutaId(conexionRutaTramoCtrl.getRuta().getRutaId());
|
||||
conexion.setConexionRutaTramoId(conexionRutaTramoCtrl.getConexionRutaTramoId());
|
||||
|
||||
if(conexionRutaTramoCtrl.getConexionCtrl() != null) {
|
||||
conexionRutaTramoCtrl.getConexionCtrl().setConexionctrlId(conexionCtrl.getConexionctrlId());
|
||||
}
|
||||
|
||||
conexion = conexionService.suscribir(conexion);
|
||||
}
|
||||
}
|
||||
|
@ -265,7 +270,9 @@ public class ConexionRutaConfServiceImpl implements ConexionRutaConfService {
|
|||
ConexionRutaTramoCtrl aux = new ConexionRutaTramoCtrl(trecho.getConexionRutaTramoId());
|
||||
Integer idx = lsConexionRutaTramo.indexOf(aux);
|
||||
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