fixes bug#7768
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@58348 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4c2667c05b
commit
0d103fd5a6
|
@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.entidad;
|
|||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -377,12 +378,18 @@ public class EsquemaCorrida implements Serializable {
|
|||
}
|
||||
|
||||
public void clearEsquemaAsiento(){
|
||||
while(!esquemaAsientoList.isEmpty()) {
|
||||
esquemaAsientoList.remove(0);
|
||||
}
|
||||
if (esquemaAsientoList !=null){
|
||||
while(!esquemaAsientoList.isEmpty()) {
|
||||
esquemaAsientoList.remove(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
||||
if (esquemaAsientoList == null){
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
||||
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
||||
if (ec.getActivo()) {
|
||||
|
|
Loading…
Reference in New Issue