bug#20497
dev: Valvevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@103975 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1cb2219e33
commit
ede4a16ac8
|
@ -316,9 +316,14 @@ public class OperadorEmbarcadaServicoHibernateDAO extends GenericHibernateDAO<Op
|
||||||
}
|
}
|
||||||
|
|
||||||
return corridas;
|
return corridas;
|
||||||
}
|
}else {
|
||||||
|
List<String> corridasString = new ArrayList<String>();
|
||||||
|
for (Object[] chave : list) {
|
||||||
|
corridasString.add( (String)chave[0] );
|
||||||
|
}
|
||||||
|
|
||||||
return list;
|
return corridasString;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<Integer> obterListaTramo( String chave ) throws Exception{
|
private List<Integer> obterListaTramo( String chave ) throws Exception{
|
||||||
|
|
|
@ -0,0 +1,48 @@
|
||||||
|
package com.rjconsultores.ventaboletos.vo.tramo;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class TramoTarifaVO {
|
||||||
|
|
||||||
|
private Integer rutaId;
|
||||||
|
private String chaveCorrida;
|
||||||
|
private List<TramoVO> listTramos;
|
||||||
|
|
||||||
|
public TramoTarifaVO() {
|
||||||
|
//construtor default
|
||||||
|
}
|
||||||
|
|
||||||
|
public TramoTarifaVO(String chaveCorrida, Integer rutaId, List<TramoVO> listTramos) {
|
||||||
|
super();
|
||||||
|
this.chaveCorrida = chaveCorrida;
|
||||||
|
this.rutaId = rutaId;
|
||||||
|
this.listTramos = listTramos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getChaveCorrida() {
|
||||||
|
return chaveCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setChaveCorrida(String chaveCorrida) {
|
||||||
|
this.chaveCorrida = chaveCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TramoVO> getListTramos() {
|
||||||
|
return listTramos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setListTramos(List<TramoVO> listTramos) {
|
||||||
|
this.listTramos = listTramos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getRutaId() {
|
||||||
|
return rutaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRutaId(Integer rutaId) {
|
||||||
|
this.rutaId = rutaId;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -1,12 +1,14 @@
|
||||||
package com.rjconsultores.ventaboletos.vo.tramo;
|
package com.rjconsultores.ventaboletos.vo.tramo;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
||||||
import com.rjconsultores.ventaboletos.vo.parada.ParadaVO;
|
import com.rjconsultores.ventaboletos.vo.parada.ParadaVO;
|
||||||
import com.rjconsultores.ventaboletos.vo.via.ViaVO;
|
import com.rjconsultores.ventaboletos.vo.via.ViaVO;
|
||||||
|
|
||||||
public class TramoVO {
|
public class TramoVO implements Serializable{
|
||||||
|
private static final long serialVersionUID = -8840675316985686236L;
|
||||||
private Integer tramoId;
|
private Integer tramoId;
|
||||||
private String desctramo;
|
private String desctramo;
|
||||||
private ParadaVO origem;
|
private ParadaVO origem;
|
||||||
|
|
Loading…
Reference in New Issue