fixes bug #9684
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@73102 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
394f989eb3
commit
0e994d6e59
|
@ -500,7 +500,15 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
|||
@Override
|
||||
public String toString() {
|
||||
if (getDescruta() != null || getRutaId() != null) {
|
||||
return this.getDescruta() + " - " + this.getRutaId();
|
||||
if (getRutaId() != -1) {
|
||||
String sentido = this.getIndSentidoIda() == null || Boolean.TRUE.equals(this.getIndSentidoIda()) ? "IDA" : "VOLTA";
|
||||
String numRuta = this.getNumRuta() != null ? this.getNumRuta() : "null";
|
||||
String descClaseServicio = this.getClaseServicio() != null ? this.getClaseServicio().getDescclase() : "null";
|
||||
String descLinha = numRuta + " - " + this.getDescruta() + " - " + descClaseServicio + " - " + this.getRutaId().toString() + " - " + sentido;
|
||||
return descLinha;
|
||||
} else {
|
||||
return this.getRutaId() + " - " + this.getDescruta();
|
||||
}
|
||||
}
|
||||
return " ";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue