From 3077b1763da90e666594cac7f51116989963d36e Mon Sep 17 00:00:00 2001 From: fabio Date: Thu, 26 Nov 2020 21:11:51 +0000 Subject: [PATCH] bug#20993 dev: Valvevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@104533 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/vo/corrida/CorridaVO.java | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java b/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java index 5be965192..0f28bbd4a 100644 --- a/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java +++ b/src/com/rjconsultores/ventaboletos/vo/corrida/CorridaVO.java @@ -41,19 +41,18 @@ public class CorridaVO { public CorridaVO( Corrida corrida ) { super(); - CorridaVO co = new CorridaVO(); - co.setCorridaId(corrida.getId().getCorridaId()); - co.setFeccorrida( DateUtil.getStringDate( corrida.getId().getFeccorrida())); - co.setNumCorrida(corrida.getId().getCorridaId()); - co.setFechorsalida( DateUtil.getStringDate(corrida.getFechorsalida(), "dd/MM/yyyy HH:mm:ss.SSS") ); - co.setOrigenId(corrida.getOrigem().getParadaId()); - co.setDestinoId(corrida.getDestino().getParadaId()); - co.setTipoServicioId(corrida.getTipoServicio().intValue()); - co.setRolOperativoId(corrida.getRolOperativo().getRoloperativoId()); - co.setMarcaId( corrida.getMarca().getMarcaId().intValue() ); - co.setClaseServicioId( corrida.getClaseServicio().getClaseservicioId()); - co.setEmpresaId( corrida.getEmpresa().getEmpresaId()); - co.setRutaId( corrida.getRuta().getRutaId() ); + this.corridaId = corrida.getId().getCorridaId(); + this.feccorrida = DateUtil.getStringDate( corrida.getId().getFeccorrida()); + this.numCorrida = corrida.getId().getCorridaId(); + this.fechorsalida = DateUtil.getStringDate(corrida.getFechorsalida(), "dd/MM/yyyy HH:mm:ss.SSS"); + this.origenId = corrida.getOrigem().getParadaId(); + this.destinoId = corrida.getDestino().getParadaId(); + this.tipoServicioId = corrida.getTipoServicio().intValue(); + this.rolOperativoId = corrida.getRolOperativo().getRoloperativoId(); + this.marcaId = corrida.getMarca().getMarcaId().intValue(); + this.claseServicioId = corrida.getClaseServicio().getClaseservicioId(); + this.empresaId = corrida.getEmpresa().getEmpresaId(); + this.rutaId = corrida.getRuta().getRutaId(); } public CorridaVO(Integer corridaId, Integer numCorrida, String descServico, String fechorsalida,