0004770: Caixa - Ajustes diversos
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@32813 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
150628a5fb
commit
69340dea0f
|
@ -6,6 +6,6 @@ import com.rjconsultores.ventaboletos.entidad.ConexionExcepcion;
|
||||||
|
|
||||||
public interface ConexionExcepcionDAO extends GenericDAO<ConexionExcepcion, Long> {
|
public interface ConexionExcepcionDAO extends GenericDAO<ConexionExcepcion, Long> {
|
||||||
|
|
||||||
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo();
|
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo(Long conexionctrlId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,9 @@ public class ConexionExcepcionHibernateDAO extends GenericHibernateDAO<ConexionE
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo() {
|
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo(Long conexionctrlId) {
|
||||||
Criteria c = getSession().createCriteria(getPersistentClass());
|
Criteria c = getSession().createCriteria(getPersistentClass());
|
||||||
|
c.add(Restrictions.eq("conexionctrlId", conexionctrlId));
|
||||||
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
c.add(Restrictions.eq("activo", Boolean.TRUE));
|
||||||
return c.list();
|
return c.list();
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class ConexionHibernateDAO extends GenericHibernateDAO<Conexion, Integer>
|
||||||
public List<ConexionVO> buscarConexionesValidas() {
|
public List<ConexionVO> buscarConexionesValidas() {
|
||||||
|
|
||||||
StringBuffer sb = new StringBuffer();
|
StringBuffer sb = new StringBuffer();
|
||||||
sb.append(" select ");
|
sb.append(" select distinct ");
|
||||||
sb.append(" cct.conexionctrl_id as conexionCtrlId, ");
|
sb.append(" cct.conexionctrl_id as conexionCtrlId, ");
|
||||||
sb.append(" po1.descparada as conOrigen, ");
|
sb.append(" po1.descparada as conOrigen, ");
|
||||||
sb.append(" pd1.descparada as conDestino, ");
|
sb.append(" pd1.descparada as conDestino, ");
|
||||||
|
|
|
@ -34,6 +34,10 @@ public class ConexionConf implements Serializable {
|
||||||
private BigDecimal porSec1;
|
private BigDecimal porSec1;
|
||||||
@Column(name = "PORSEC2")
|
@Column(name = "PORSEC2")
|
||||||
private BigDecimal porSec2;
|
private BigDecimal porSec2;
|
||||||
|
@Column(name = "PORSEC3")
|
||||||
|
private BigDecimal porSec3;
|
||||||
|
@Column(name = "PORSEC4")
|
||||||
|
private BigDecimal porSec4;
|
||||||
@Column(name = "TIEMPOMIN")
|
@Column(name = "TIEMPOMIN")
|
||||||
private Integer tiempoMin;
|
private Integer tiempoMin;
|
||||||
@Column(name = "TIEMPOMAX")
|
@Column(name = "TIEMPOMAX")
|
||||||
|
@ -88,6 +92,22 @@ public class ConexionConf implements Serializable {
|
||||||
this.porSec2 = porSec2;
|
this.porSec2 = porSec2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPorSec3() {
|
||||||
|
return porSec3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPorSec3(BigDecimal porSec3) {
|
||||||
|
this.porSec3 = porSec3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPorSec4() {
|
||||||
|
return porSec4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPorSec4(BigDecimal porSec4) {
|
||||||
|
this.porSec4 = porSec4;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getTiempoMin() {
|
public Integer getTiempoMin() {
|
||||||
return tiempoMin;
|
return tiempoMin;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,6 @@ import com.rjconsultores.ventaboletos.entidad.ConexionExcepcion;
|
||||||
|
|
||||||
public interface ConexionExcepcionService extends GenericService<ConexionExcepcion, Long> {
|
public interface ConexionExcepcionService extends GenericService<ConexionExcepcion, Long> {
|
||||||
|
|
||||||
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo();
|
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo(Long conexionctrlId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,8 @@ public class ConexionExcepcionServiceImpl implements ConexionExcepcionService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo() {
|
public List<ConexionExcepcion> obtenerConexionExcepcionsActivo(Long conexionctrlId) {
|
||||||
return conexionExcepcionDAO.obtenerConexionExcepcionsActivo();
|
return conexionExcepcionDAO.obtenerConexionExcepcionsActivo(conexionctrlId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue