bug#20993
dev: Valvevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@104533 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
204903ee57
commit
3077b1763d
|
@ -41,19 +41,18 @@ public class CorridaVO {
|
||||||
|
|
||||||
public CorridaVO( Corrida corrida ) {
|
public CorridaVO( Corrida corrida ) {
|
||||||
super();
|
super();
|
||||||
CorridaVO co = new CorridaVO();
|
this.corridaId = corrida.getId().getCorridaId();
|
||||||
co.setCorridaId(corrida.getId().getCorridaId());
|
this.feccorrida = DateUtil.getStringDate( corrida.getId().getFeccorrida());
|
||||||
co.setFeccorrida( DateUtil.getStringDate( corrida.getId().getFeccorrida()));
|
this.numCorrida = corrida.getId().getCorridaId();
|
||||||
co.setNumCorrida(corrida.getId().getCorridaId());
|
this.fechorsalida = DateUtil.getStringDate(corrida.getFechorsalida(), "dd/MM/yyyy HH:mm:ss.SSS");
|
||||||
co.setFechorsalida( DateUtil.getStringDate(corrida.getFechorsalida(), "dd/MM/yyyy HH:mm:ss.SSS") );
|
this.origenId = corrida.getOrigem().getParadaId();
|
||||||
co.setOrigenId(corrida.getOrigem().getParadaId());
|
this.destinoId = corrida.getDestino().getParadaId();
|
||||||
co.setDestinoId(corrida.getDestino().getParadaId());
|
this.tipoServicioId = corrida.getTipoServicio().intValue();
|
||||||
co.setTipoServicioId(corrida.getTipoServicio().intValue());
|
this.rolOperativoId = corrida.getRolOperativo().getRoloperativoId();
|
||||||
co.setRolOperativoId(corrida.getRolOperativo().getRoloperativoId());
|
this.marcaId = corrida.getMarca().getMarcaId().intValue();
|
||||||
co.setMarcaId( corrida.getMarca().getMarcaId().intValue() );
|
this.claseServicioId = corrida.getClaseServicio().getClaseservicioId();
|
||||||
co.setClaseServicioId( corrida.getClaseServicio().getClaseservicioId());
|
this.empresaId = corrida.getEmpresa().getEmpresaId();
|
||||||
co.setEmpresaId( corrida.getEmpresa().getEmpresaId());
|
this.rutaId = corrida.getRuta().getRutaId();
|
||||||
co.setRutaId( corrida.getRuta().getRutaId() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public CorridaVO(Integer corridaId, Integer numCorrida, String descServico, String fechorsalida,
|
public CorridaVO(Integer corridaId, Integer numCorrida, String descServico, String fechorsalida,
|
||||||
|
|
Loading…
Reference in New Issue