Método Operador
bug#14250 dev:trevezani qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@92828 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ec2de54648
commit
882a8ba620
|
@ -2,7 +2,10 @@ package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FormaPagoDet;
|
||||||
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcada;
|
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVentaVO;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVentaVO;
|
||||||
|
|
||||||
public interface OperadorEmbarcadaDAO extends GenericDAO<OperadorEmbarcada, Long> {
|
public interface OperadorEmbarcadaDAO extends GenericDAO<OperadorEmbarcada, Long> {
|
||||||
|
@ -14,4 +17,11 @@ public interface OperadorEmbarcadaDAO extends GenericDAO<OperadorEmbarcada, Long
|
||||||
public OperadorEmbarcada buscarOperadorEmbarcadaPorUsuario(Integer idUsuario);
|
public OperadorEmbarcada buscarOperadorEmbarcadaPorUsuario(Integer idUsuario);
|
||||||
|
|
||||||
public PuntoVentaVO getPuntoVentaVO(Integer operador, Integer empresa);
|
public PuntoVentaVO getPuntoVentaVO(Integer operador, Integer empresa);
|
||||||
|
|
||||||
|
public List<FormaPagoDet> getListaFormaPago(Integer puntoventaId);
|
||||||
|
|
||||||
|
public List<PtoVtaSeguro> getListaSeguroTaxaEmbarque(Integer puntoventaId);
|
||||||
|
|
||||||
|
public List<PtovtaCatInd> getListaTiposPassagensBloqueadas(Integer puntoventaId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.dao;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FormaPagoDet;
|
||||||
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcada;
|
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcadaLinha;
|
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcadaLinha;
|
||||||
import com.rjconsultores.ventaboletos.vo.ruta.RutaVO;
|
import com.rjconsultores.ventaboletos.vo.ruta.RutaVO;
|
||||||
|
|
|
@ -3,6 +3,7 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.hibernate.Criteria;
|
import org.hibernate.Criteria;
|
||||||
|
import org.hibernate.Query;
|
||||||
import org.hibernate.SQLQuery;
|
import org.hibernate.SQLQuery;
|
||||||
import org.hibernate.SessionFactory;
|
import org.hibernate.SessionFactory;
|
||||||
import org.hibernate.criterion.Restrictions;
|
import org.hibernate.criterion.Restrictions;
|
||||||
|
@ -14,7 +15,10 @@ import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.dao.OperadorEmbarcadaDAO;
|
import com.rjconsultores.ventaboletos.dao.OperadorEmbarcadaDAO;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.FormaPagoDet;
|
||||||
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcada;
|
import com.rjconsultores.ventaboletos.entidad.OperadorEmbarcada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVentaVO;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVentaVO;
|
||||||
|
|
||||||
@Repository("operadorEmbarcadaDAO")
|
@Repository("operadorEmbarcadaDAO")
|
||||||
|
@ -77,4 +81,33 @@ public class OperadorEmbarcadaHibernateDAO extends GenericHibernateDAO<OperadorE
|
||||||
return puntoVentaVO;
|
return puntoVentaVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<FormaPagoDet> getListaFormaPago(Integer puntoventaId) {
|
||||||
|
String queryStr = "from FormaPagoDet fp where fp.activo = true and fp.indEmbarcada = true and fp.puntoVenta.puntoventaId = :puntoventaId";
|
||||||
|
|
||||||
|
Query query = getSession().createQuery(queryStr);
|
||||||
|
query.setInteger("puntoventaId", puntoventaId);
|
||||||
|
|
||||||
|
return (List<FormaPagoDet>)query.list();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PtoVtaSeguro> getListaSeguroTaxaEmbarque(Integer puntoventaId) {
|
||||||
|
String queryStr = "from PtoVtaSeguro x where x.activo = true and x.puntoventaId.puntoventaId = :puntoventaId";
|
||||||
|
|
||||||
|
Query query = getSession().createQuery(queryStr);
|
||||||
|
query.setInteger("puntoventaId", puntoventaId);
|
||||||
|
|
||||||
|
return (List<PtoVtaSeguro>)query.list();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PtovtaCatInd> getListaTiposPassagensBloqueadas(Integer puntoventaId) {
|
||||||
|
String queryStr = "from PtovtaCatInd x where x.activo = true and x.indEmbarcada = true and x.puntoVenta.puntoventaId = :puntoventaId";
|
||||||
|
|
||||||
|
Query query = getSession().createQuery(queryStr);
|
||||||
|
query.setInteger("puntoventaId", puntoventaId);
|
||||||
|
|
||||||
|
return (List<PtovtaCatInd>)query.list();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.rjconsultores.ventaboletos.vo.embarcada;
|
||||||
|
|
||||||
|
public class FormaPagamentoVO {
|
||||||
|
private Integer empresaId;
|
||||||
|
private String nombempresa;
|
||||||
|
private Integer formapagoId;
|
||||||
|
private String descpago;
|
||||||
|
|
||||||
|
public FormaPagamentoVO() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormaPagamentoVO(Integer empresaId, String nombempresa, Integer formapagoId, String descpago) {
|
||||||
|
super();
|
||||||
|
this.empresaId = empresaId;
|
||||||
|
this.nombempresa = nombempresa;
|
||||||
|
this.formapagoId = formapagoId;
|
||||||
|
this.descpago = descpago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpresaId() {
|
||||||
|
return empresaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaId(Integer empresaId) {
|
||||||
|
this.empresaId = empresaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNombempresa() {
|
||||||
|
return nombempresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNombempresa(String nombempresa) {
|
||||||
|
this.nombempresa = nombempresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getFormapagoId() {
|
||||||
|
return formapagoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormapagoId(Integer formapagoId) {
|
||||||
|
this.formapagoId = formapagoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescpago() {
|
||||||
|
return descpago;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescpago(String descpago) {
|
||||||
|
this.descpago = descpago;
|
||||||
|
}
|
||||||
|
}
|
|
@ -13,6 +13,9 @@ public class OperadorEmbarcadaVO {
|
||||||
private String descAgencia;
|
private String descAgencia;
|
||||||
private List<RutaVO>lsRutas;
|
private List<RutaVO>lsRutas;
|
||||||
private List<CorridaVO>lsCorridas;
|
private List<CorridaVO>lsCorridas;
|
||||||
|
private List<FormaPagamentoVO> lsFormasPagamento;
|
||||||
|
private List<SeguroTaxaEmbarqueVO> lsSeguroTaxaEmbarque;
|
||||||
|
private List<TiposPassagensBloqueadasVO> lsTiposPassagensBloqueadas;
|
||||||
|
|
||||||
public Integer getIdOperador() {
|
public Integer getIdOperador() {
|
||||||
return idOperador;
|
return idOperador;
|
||||||
|
@ -56,6 +59,24 @@ public class OperadorEmbarcadaVO {
|
||||||
public void setLsCorridas(List<CorridaVO> lsCorridas) {
|
public void setLsCorridas(List<CorridaVO> lsCorridas) {
|
||||||
this.lsCorridas = lsCorridas;
|
this.lsCorridas = lsCorridas;
|
||||||
}
|
}
|
||||||
|
public List<FormaPagamentoVO> getLsFormasPagamento() {
|
||||||
|
return lsFormasPagamento;
|
||||||
|
}
|
||||||
|
public void setLsFormasPagamento(List<FormaPagamentoVO> lsFormasPagamento) {
|
||||||
|
this.lsFormasPagamento = lsFormasPagamento;
|
||||||
|
}
|
||||||
|
public List<SeguroTaxaEmbarqueVO> getLsSeguroTaxaEmbarque() {
|
||||||
|
return lsSeguroTaxaEmbarque;
|
||||||
|
}
|
||||||
|
public void setLsSeguroTaxaEmbarque(List<SeguroTaxaEmbarqueVO> lsSeguroTaxaEmbarque) {
|
||||||
|
this.lsSeguroTaxaEmbarque = lsSeguroTaxaEmbarque;
|
||||||
|
}
|
||||||
|
public List<TiposPassagensBloqueadasVO> getLsTiposPassagensBloqueadas() {
|
||||||
|
return lsTiposPassagensBloqueadas;
|
||||||
|
}
|
||||||
|
public void setLsTiposPassagensBloqueadas(List<TiposPassagensBloqueadasVO> lsTiposPassagensBloqueadas) {
|
||||||
|
this.lsTiposPassagensBloqueadas = lsTiposPassagensBloqueadas;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// private Long idAgencia;
|
// private Long idAgencia;
|
||||||
|
|
|
@ -0,0 +1,52 @@
|
||||||
|
package com.rjconsultores.ventaboletos.vo.embarcada;
|
||||||
|
|
||||||
|
public class SeguroTaxaEmbarqueVO {
|
||||||
|
private Integer empresaId;
|
||||||
|
private Boolean indVendeSeguroOpcEmbarcada;
|
||||||
|
private Boolean indVendeSeguroTabelaEmbarcada;
|
||||||
|
private Boolean indTaxaEmbarqueEmbarcada;
|
||||||
|
|
||||||
|
public SeguroTaxaEmbarqueVO() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public SeguroTaxaEmbarqueVO(Integer empresaId, Boolean indVendeSeguroOpcEmbarcada, Boolean indVendeSeguroTabelaEmbarcada, Boolean indTaxaEmbarqueEmbarcada) {
|
||||||
|
super();
|
||||||
|
this.empresaId = empresaId;
|
||||||
|
this.indVendeSeguroOpcEmbarcada = indVendeSeguroOpcEmbarcada;
|
||||||
|
this.indVendeSeguroTabelaEmbarcada = indVendeSeguroTabelaEmbarcada;
|
||||||
|
this.indTaxaEmbarqueEmbarcada = indTaxaEmbarqueEmbarcada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpresaId() {
|
||||||
|
return empresaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaId(Integer empresaId) {
|
||||||
|
this.empresaId = empresaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIndVendeSeguroOpcEmbarcada() {
|
||||||
|
return indVendeSeguroOpcEmbarcada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndVendeSeguroOpcEmbarcada(Boolean indVendeSeguroOpcEmbarcada) {
|
||||||
|
this.indVendeSeguroOpcEmbarcada = indVendeSeguroOpcEmbarcada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIndVendeSeguroTabelaEmbarcada() {
|
||||||
|
return indVendeSeguroTabelaEmbarcada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndVendeSeguroTabelaEmbarcada(Boolean indVendeSeguroTabelaEmbarcada) {
|
||||||
|
this.indVendeSeguroTabelaEmbarcada = indVendeSeguroTabelaEmbarcada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIndTaxaEmbarqueEmbarcada() {
|
||||||
|
return indTaxaEmbarqueEmbarcada;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndTaxaEmbarqueEmbarcada(Boolean indTaxaEmbarqueEmbarcada) {
|
||||||
|
this.indTaxaEmbarqueEmbarcada = indTaxaEmbarqueEmbarcada;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
package com.rjconsultores.ventaboletos.vo.embarcada;
|
||||||
|
|
||||||
|
public class TiposPassagensBloqueadasVO {
|
||||||
|
private Integer categoriaId;
|
||||||
|
private Integer usuarioId;
|
||||||
|
private Integer empresaId;
|
||||||
|
|
||||||
|
public TiposPassagensBloqueadasVO() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public TiposPassagensBloqueadasVO(Integer categoriaId, Integer usuarioId, Integer empresaId) {
|
||||||
|
super();
|
||||||
|
this.categoriaId = categoriaId;
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
this.empresaId = empresaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getCategoriaId() {
|
||||||
|
return categoriaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoriaId(Integer categoriaId) {
|
||||||
|
this.categoriaId = categoriaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getUsuarioId() {
|
||||||
|
return usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
|
this.usuarioId = usuarioId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEmpresaId() {
|
||||||
|
return empresaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaId(Integer empresaId) {
|
||||||
|
this.empresaId = empresaId;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue