Num Corrida
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@22089 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3c5310a512
commit
649ace9410
|
@ -33,373 +33,383 @@ import javax.persistence.TemporalType;
|
||||||
@Table(name = "ESQUEMA_CORRIDA")
|
@Table(name = "ESQUEMA_CORRIDA")
|
||||||
public class EsquemaCorrida implements Serializable {
|
public class EsquemaCorrida implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
@Id
|
@Id
|
||||||
@Basic(optional = false)
|
@Basic(optional = false)
|
||||||
@Column(name = "ESQUEMACORRIDA_ID")
|
@Column(name = "ESQUEMACORRIDA_ID")
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_SEQ")
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "ESQUEMA_CORRIDA_SEQ")
|
||||||
private Integer esquemacorridaId;
|
private Integer esquemacorridaId;
|
||||||
@Column(name = "HORASALIDA")
|
@Column(name = "HORASALIDA")
|
||||||
@Temporal(TemporalType.TIME)
|
@Temporal(TemporalType.TIME)
|
||||||
private Date horasalida;
|
private Date horasalida;
|
||||||
@Column(name = "INDPISOEXTRA")
|
@Column(name = "NUMCORRIDA")
|
||||||
private Boolean pisoExtra;
|
private Integer numCorrida;
|
||||||
@Column(name = "INDLUNES")
|
@Column(name = "INDPISOEXTRA")
|
||||||
private Boolean indlunes;
|
private Boolean pisoExtra;
|
||||||
@Column(name = "INDMARTES")
|
@Column(name = "INDLUNES")
|
||||||
private Boolean indmartes;
|
private Boolean indlunes;
|
||||||
@Column(name = "INDMIERCOLES")
|
@Column(name = "INDMARTES")
|
||||||
private Boolean indmiercoles;
|
private Boolean indmartes;
|
||||||
@Column(name = "INDJUEVES")
|
@Column(name = "INDMIERCOLES")
|
||||||
private Boolean indjueves;
|
private Boolean indmiercoles;
|
||||||
@Column(name = "INDVIERNES")
|
@Column(name = "INDJUEVES")
|
||||||
private Boolean indviernes;
|
private Boolean indjueves;
|
||||||
@Column(name = "INDSABADO")
|
@Column(name = "INDVIERNES")
|
||||||
private Boolean indsabado;
|
private Boolean indviernes;
|
||||||
@Column(name = "INDDOMINGO")
|
@Column(name = "INDSABADO")
|
||||||
private Boolean inddomingo;
|
private Boolean indsabado;
|
||||||
@Column(name = "CANTPARADOS")
|
@Column(name = "INDDOMINGO")
|
||||||
private Integer cantparados;
|
private Boolean inddomingo;
|
||||||
@Column(name = "ACTIVO")
|
@Column(name = "CANTPARADOS")
|
||||||
private Boolean activo;
|
private Integer cantparados;
|
||||||
@Column(name = "FECMODIF")
|
@Column(name = "ACTIVO")
|
||||||
@Temporal(TemporalType.TIMESTAMP)
|
private Boolean activo;
|
||||||
private Date fecmodif;
|
@Column(name = "FECMODIF")
|
||||||
@Column(name = "USUARIO_ID")
|
@Temporal(TemporalType.TIMESTAMP)
|
||||||
private Integer usuarioId;
|
private Date fecmodif;
|
||||||
@Column(name = "DIAGRAMAAUTOBUS_ID")
|
@Column(name = "USUARIO_ID")
|
||||||
private Integer diagramaAutobusId;
|
private Integer usuarioId;
|
||||||
@Column(name = "STATUSCORRIDA")
|
@Column(name = "DIAGRAMAAUTOBUS_ID")
|
||||||
private String statusCorrida;
|
private Integer diagramaAutobusId;
|
||||||
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
@Column(name = "STATUSCORRIDA")
|
||||||
@ManyToOne
|
private String statusCorrida;
|
||||||
private Ruta ruta;
|
@JoinColumn(name = "RUTA_ID", referencedColumnName = "RUTA_ID")
|
||||||
@JoinColumn(name = "ROLOPERATIVO_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
@ManyToOne
|
||||||
@ManyToOne(cascade = CascadeType.ALL)
|
private Ruta ruta;
|
||||||
private RolOperativo rolOperativo;
|
@JoinColumn(name = "ROLOPERATIVO_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||||
@JoinColumn(name = "ROLOPERATIVO2_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
@ManyToOne(cascade = CascadeType.ALL)
|
private RolOperativo rolOperativo;
|
||||||
private RolOperativo rolOperativo2;
|
@JoinColumn(name = "ROLOPERATIVO2_ID", referencedColumnName = "ROLOPERATIVO_ID")
|
||||||
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
@ManyToOne
|
private RolOperativo rolOperativo2;
|
||||||
private Marca marca;
|
@JoinColumn(name = "MARCA_ID", referencedColumnName = "MARCA_ID")
|
||||||
@JoinColumn(name = "ESQUEMAOPERACIONAL_ID", referencedColumnName = "ESQUEMAOPERACIONAL_ID")
|
@ManyToOne
|
||||||
@ManyToOne(cascade = CascadeType.ALL)
|
private Marca marca;
|
||||||
private EsquemaOperacional esquemaOperacional;
|
@JoinColumn(name = "ESQUEMAOPERACIONAL_ID", referencedColumnName = "ESQUEMAOPERACIONAL_ID")
|
||||||
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
@ManyToOne(cascade = CascadeType.ALL)
|
||||||
@ManyToOne
|
private EsquemaOperacional esquemaOperacional;
|
||||||
private Empresa empresa;
|
@JoinColumn(name = "EMPRESACORRIDA_ID", referencedColumnName = "EMPRESA_ID")
|
||||||
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
@ManyToOne
|
||||||
@ManyToOne
|
private Empresa empresa;
|
||||||
private Empresa empresa1;
|
@JoinColumn(name = "EMPRESAINGRESO_ID", referencedColumnName = "EMPRESA_ID")
|
||||||
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
@ManyToOne
|
||||||
@ManyToOne
|
private Empresa empresa1;
|
||||||
private ClaseServicio claseServicio;
|
@JoinColumn(name = "CLASESERVICIO_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||||
@JoinColumn(name = "CLASESERVICIO2_ID", referencedColumnName = "CLASESERVICIO_ID")
|
@ManyToOne
|
||||||
@ManyToOne
|
private ClaseServicio claseServicio;
|
||||||
private ClaseServicio claseServicio2;
|
@JoinColumn(name = "CLASESERVICIO2_ID", referencedColumnName = "CLASESERVICIO_ID")
|
||||||
@OneToMany(cascade = CascadeType.ALL)
|
@ManyToOne
|
||||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
private ClaseServicio claseServicio2;
|
||||||
private List<EsquemaTramo> esquemaTramoList;
|
@OneToMany(cascade = CascadeType.ALL)
|
||||||
@OneToMany
|
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||||
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
private List<EsquemaTramo> esquemaTramoList;
|
||||||
private List<EsquemaAsiento> esquemaAsientoList;
|
@OneToMany
|
||||||
@Column(name = "tipocorrida")
|
@JoinColumn(name = "ESQUEMACORRIDA_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||||
private String tipocorrida;
|
private List<EsquemaAsiento> esquemaAsientoList;
|
||||||
@JoinColumn(name = "ESQUEMAREBOTE_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
@Column(name = "tipocorrida")
|
||||||
@ManyToOne
|
private String tipocorrida;
|
||||||
private EsquemaCorrida esquemaCorridaRebote;
|
@JoinColumn(name = "ESQUEMAREBOTE_ID", referencedColumnName = "ESQUEMACORRIDA_ID")
|
||||||
@JoinColumn(name = "DIVISION_ID", referencedColumnName = "DIVISION_ID")
|
@ManyToOne
|
||||||
@ManyToOne
|
private EsquemaCorrida esquemaCorridaRebote;
|
||||||
private Division division;
|
@JoinColumn(name = "DIVISION_ID", referencedColumnName = "DIVISION_ID")
|
||||||
|
@ManyToOne
|
||||||
public String getTipocorrida() {
|
private Division division;
|
||||||
return tipocorrida;
|
|
||||||
}
|
public String getTipocorrida() {
|
||||||
|
return tipocorrida;
|
||||||
public void setTipocorrida(String tipocorrida) {
|
}
|
||||||
this.tipocorrida = tipocorrida;
|
|
||||||
}
|
public void setTipocorrida(String tipocorrida) {
|
||||||
|
this.tipocorrida = tipocorrida;
|
||||||
public EsquemaCorrida() {
|
}
|
||||||
}
|
|
||||||
|
public EsquemaCorrida() {
|
||||||
public EsquemaCorrida(Integer esquemacorridaId) {
|
}
|
||||||
this.esquemacorridaId = esquemacorridaId;
|
|
||||||
}
|
public EsquemaCorrida(Integer esquemacorridaId) {
|
||||||
|
this.esquemacorridaId = esquemacorridaId;
|
||||||
public Integer getEsquemacorridaId() {
|
}
|
||||||
return esquemacorridaId;
|
|
||||||
}
|
public Integer getEsquemacorridaId() {
|
||||||
|
return esquemacorridaId;
|
||||||
public void setEsquemacorridaId(Integer esquemacorridaId) {
|
}
|
||||||
this.esquemacorridaId = esquemacorridaId;
|
|
||||||
}
|
public void setEsquemacorridaId(Integer esquemacorridaId) {
|
||||||
|
this.esquemacorridaId = esquemacorridaId;
|
||||||
public Date getHorasalida() {
|
}
|
||||||
return horasalida;
|
|
||||||
}
|
public Date getHorasalida() {
|
||||||
|
return horasalida;
|
||||||
public void setHorasalida(Date horasalida) {
|
}
|
||||||
this.horasalida = horasalida;
|
|
||||||
}
|
public void setHorasalida(Date horasalida) {
|
||||||
|
this.horasalida = horasalida;
|
||||||
public Integer getCantparados() {
|
}
|
||||||
return cantparados;
|
|
||||||
}
|
public Integer getCantparados() {
|
||||||
|
return cantparados;
|
||||||
public void setCantparados(Integer cantparados) {
|
}
|
||||||
this.cantparados = cantparados;
|
|
||||||
}
|
public void setCantparados(Integer cantparados) {
|
||||||
|
this.cantparados = cantparados;
|
||||||
public Boolean getInddomingo() {
|
}
|
||||||
return inddomingo;
|
|
||||||
}
|
public Boolean getInddomingo() {
|
||||||
|
return inddomingo;
|
||||||
public void setInddomingo(Boolean inddomingo) {
|
}
|
||||||
this.inddomingo = inddomingo;
|
|
||||||
}
|
public void setInddomingo(Boolean inddomingo) {
|
||||||
|
this.inddomingo = inddomingo;
|
||||||
public Boolean getIndjueves() {
|
}
|
||||||
return indjueves;
|
|
||||||
}
|
public Boolean getIndjueves() {
|
||||||
|
return indjueves;
|
||||||
public void setIndjueves(Boolean indjueves) {
|
}
|
||||||
this.indjueves = indjueves;
|
|
||||||
}
|
public void setIndjueves(Boolean indjueves) {
|
||||||
|
this.indjueves = indjueves;
|
||||||
public Boolean getIndlunes() {
|
}
|
||||||
return indlunes;
|
|
||||||
}
|
public Boolean getIndlunes() {
|
||||||
|
return indlunes;
|
||||||
public void setIndlunes(Boolean indlunes) {
|
}
|
||||||
this.indlunes = indlunes;
|
|
||||||
}
|
public void setIndlunes(Boolean indlunes) {
|
||||||
|
this.indlunes = indlunes;
|
||||||
public Boolean getIndmartes() {
|
}
|
||||||
return indmartes;
|
|
||||||
}
|
public Boolean getIndmartes() {
|
||||||
|
return indmartes;
|
||||||
public void setIndmartes(Boolean indmartes) {
|
}
|
||||||
this.indmartes = indmartes;
|
|
||||||
}
|
public void setIndmartes(Boolean indmartes) {
|
||||||
|
this.indmartes = indmartes;
|
||||||
public Boolean getIndmiercoles() {
|
}
|
||||||
return indmiercoles;
|
|
||||||
}
|
public Boolean getIndmiercoles() {
|
||||||
|
return indmiercoles;
|
||||||
public void setIndmiercoles(Boolean indmiercoles) {
|
}
|
||||||
this.indmiercoles = indmiercoles;
|
|
||||||
}
|
public void setIndmiercoles(Boolean indmiercoles) {
|
||||||
|
this.indmiercoles = indmiercoles;
|
||||||
public Boolean getIndsabado() {
|
}
|
||||||
return indsabado;
|
|
||||||
}
|
public Boolean getIndsabado() {
|
||||||
|
return indsabado;
|
||||||
public void setIndsabado(Boolean indsabado) {
|
}
|
||||||
this.indsabado = indsabado;
|
|
||||||
}
|
public void setIndsabado(Boolean indsabado) {
|
||||||
|
this.indsabado = indsabado;
|
||||||
public Boolean getIndviernes() {
|
}
|
||||||
return indviernes;
|
|
||||||
}
|
public Boolean getIndviernes() {
|
||||||
|
return indviernes;
|
||||||
public void setIndviernes(Boolean indviernes) {
|
}
|
||||||
this.indviernes = indviernes;
|
|
||||||
}
|
public void setIndviernes(Boolean indviernes) {
|
||||||
|
this.indviernes = indviernes;
|
||||||
|
}
|
||||||
|
|
||||||
public Date getFecmodif() {
|
public Date getFecmodif() {
|
||||||
return fecmodif;
|
return fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getActivo() {
|
public Boolean getActivo() {
|
||||||
return activo;
|
return activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setActivo(Boolean activo) {
|
public void setActivo(Boolean activo) {
|
||||||
this.activo = activo;
|
this.activo = activo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFecmodif(Date fecmodif) {
|
public void setFecmodif(Date fecmodif) {
|
||||||
this.fecmodif = fecmodif;
|
this.fecmodif = fecmodif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getUsuarioId() {
|
public Integer getUsuarioId() {
|
||||||
return usuarioId;
|
return usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsuarioId(Integer usuarioId) {
|
public void setUsuarioId(Integer usuarioId) {
|
||||||
this.usuarioId = usuarioId;
|
this.usuarioId = usuarioId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Ruta getRuta() {
|
public Ruta getRuta() {
|
||||||
return ruta;
|
return ruta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRuta(Ruta ruta) {
|
public void setRuta(Ruta ruta) {
|
||||||
this.ruta = ruta;
|
this.ruta = ruta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RolOperativo getRolOperativo() {
|
public RolOperativo getRolOperativo() {
|
||||||
return rolOperativo;
|
return rolOperativo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRolOperativo(RolOperativo rolOperativo) {
|
public void setRolOperativo(RolOperativo rolOperativo) {
|
||||||
this.rolOperativo = rolOperativo;
|
this.rolOperativo = rolOperativo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Marca getMarca() {
|
public Marca getMarca() {
|
||||||
return marca;
|
return marca;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMarca(Marca marca) {
|
public void setMarca(Marca marca) {
|
||||||
this.marca = marca;
|
this.marca = marca;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EsquemaOperacional getEsquemaOperacional() {
|
public EsquemaOperacional getEsquemaOperacional() {
|
||||||
return esquemaOperacional;
|
return esquemaOperacional;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEsquemaOperacional(EsquemaOperacional esquemaOperacional) {
|
public void setEsquemaOperacional(EsquemaOperacional esquemaOperacional) {
|
||||||
this.esquemaOperacional = esquemaOperacional;
|
this.esquemaOperacional = esquemaOperacional;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Empresa getEmpresa() {
|
public Empresa getEmpresa() {
|
||||||
return empresa;
|
return empresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmpresa(Empresa empresa) {
|
public void setEmpresa(Empresa empresa) {
|
||||||
this.empresa = empresa;
|
this.empresa = empresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Empresa getEmpresa1() {
|
public Empresa getEmpresa1() {
|
||||||
return empresa1;
|
return empresa1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmpresa1(Empresa empresa1) {
|
public void setEmpresa1(Empresa empresa1) {
|
||||||
this.empresa1 = empresa1;
|
this.empresa1 = empresa1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ClaseServicio getClaseServicio() {
|
public ClaseServicio getClaseServicio() {
|
||||||
return claseServicio;
|
return claseServicio;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClaseServicio(ClaseServicio claseServicio) {
|
public void setClaseServicio(ClaseServicio claseServicio) {
|
||||||
this.claseServicio = claseServicio;
|
this.claseServicio = claseServicio;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStatusCorrida() {
|
public String getStatusCorrida() {
|
||||||
return statusCorrida;
|
return statusCorrida;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStatusCorrida(String statusCorrida) {
|
public void setStatusCorrida(String statusCorrida) {
|
||||||
this.statusCorrida = statusCorrida;
|
this.statusCorrida = statusCorrida;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getDiagramaAutobusId() {
|
public Integer getDiagramaAutobusId() {
|
||||||
return diagramaAutobusId;
|
return diagramaAutobusId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDiagramaAutobusId(Integer diagramaAutobusId) {
|
public void setDiagramaAutobusId(Integer diagramaAutobusId) {
|
||||||
this.diagramaAutobusId = diagramaAutobusId;
|
this.diagramaAutobusId = diagramaAutobusId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Division getDivision() {
|
public Division getDivision() {
|
||||||
return division;
|
return division;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDivision(Division division) {
|
public void setDivision(Division division) {
|
||||||
this.division = division;
|
this.division = division;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean getPisoExtra() {
|
public Boolean getPisoExtra() {
|
||||||
return pisoExtra;
|
return pisoExtra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPisoExtra(Boolean pisoExtra) {
|
public void setPisoExtra(Boolean pisoExtra) {
|
||||||
this.pisoExtra = pisoExtra;
|
this.pisoExtra = pisoExtra;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<EsquemaTramo> getEsquemaTramoList() {
|
public List<EsquemaTramo> getEsquemaTramoList() {
|
||||||
if (this.esquemaTramoList != null) {
|
if (this.esquemaTramoList != null) {
|
||||||
List<EsquemaTramo> esquemaList = new ArrayList<EsquemaTramo>();
|
List<EsquemaTramo> esquemaList = new ArrayList<EsquemaTramo>();
|
||||||
|
|
||||||
for (EsquemaTramo ec : this.esquemaTramoList) {
|
for (EsquemaTramo ec : this.esquemaTramoList) {
|
||||||
if (ec.getActivo() == Boolean.TRUE) {
|
if (ec.getActivo() == Boolean.TRUE) {
|
||||||
esquemaList.add(ec);
|
esquemaList.add(ec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return esquemaList;
|
return esquemaList;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEsquemaTramoList(List<EsquemaTramo> esquemaTramoList) {
|
public void setEsquemaTramoList(List<EsquemaTramo> esquemaTramoList) {
|
||||||
this.esquemaTramoList = esquemaTramoList;
|
this.esquemaTramoList = esquemaTramoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
public List<EsquemaAsiento> getEsquemaAsientoList() {
|
||||||
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
List<EsquemaAsiento> esquemaList = new ArrayList<EsquemaAsiento>();
|
||||||
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
for (EsquemaAsiento ec : this.esquemaAsientoList) {
|
||||||
if (ec.getActivo() == Boolean.TRUE) {
|
if (ec.getActivo() == Boolean.TRUE) {
|
||||||
esquemaList.add(ec);
|
esquemaList.add(ec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return esquemaList;
|
return esquemaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEsquemaAsientoList(List<EsquemaAsiento> esquemaAsientoList) {
|
public void setEsquemaAsientoList(List<EsquemaAsiento> esquemaAsientoList) {
|
||||||
this.esquemaAsientoList = esquemaAsientoList;
|
this.esquemaAsientoList = esquemaAsientoList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public EsquemaCorrida getEsquemaCorridaRebote() {
|
public EsquemaCorrida getEsquemaCorridaRebote() {
|
||||||
return esquemaCorridaRebote;
|
return esquemaCorridaRebote;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEsquemaCorridaRebote(EsquemaCorrida esquemaCorridaRebote) {
|
public void setEsquemaCorridaRebote(EsquemaCorrida esquemaCorridaRebote) {
|
||||||
this.esquemaCorridaRebote = esquemaCorridaRebote;
|
this.esquemaCorridaRebote = esquemaCorridaRebote;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ClaseServicio getClaseServicio2() {
|
public ClaseServicio getClaseServicio2() {
|
||||||
return claseServicio2;
|
return claseServicio2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setClaseServicio2(ClaseServicio claseServicio2) {
|
public void setClaseServicio2(ClaseServicio claseServicio2) {
|
||||||
this.claseServicio2 = claseServicio2;
|
this.claseServicio2 = claseServicio2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RolOperativo getRolOperativo2() {
|
public RolOperativo getRolOperativo2() {
|
||||||
return rolOperativo2;
|
return rolOperativo2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRolOperativo2(RolOperativo rolOperativo2) {
|
public void setRolOperativo2(RolOperativo rolOperativo2) {
|
||||||
this.rolOperativo2 = rolOperativo2;
|
this.rolOperativo2 = rolOperativo2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
public Integer getNumCorrida() {
|
||||||
public int hashCode() {
|
return numCorrida;
|
||||||
int hash = 0;
|
}
|
||||||
hash += (esquemacorridaId != null ? esquemacorridaId.hashCode() : 0);
|
|
||||||
return hash;
|
public void setNumCorrida(Integer numCorrida) {
|
||||||
}
|
this.numCorrida = numCorrida;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public boolean equals(Object object) {
|
@Override
|
||||||
// TODO: Warning - this method won't work in the case the id fields are
|
public int hashCode() {
|
||||||
// not set
|
int hash = 0;
|
||||||
if (!(object instanceof EsquemaCorrida)) {
|
hash += (esquemacorridaId != null ? esquemacorridaId.hashCode() : 0);
|
||||||
return false;
|
return hash;
|
||||||
}
|
}
|
||||||
EsquemaCorrida other = (EsquemaCorrida) object;
|
|
||||||
if ((this.esquemacorridaId == null && other.esquemacorridaId != null) || (this.esquemacorridaId != null && !this.esquemacorridaId.equals(other.esquemacorridaId))) {
|
@Override
|
||||||
return false;
|
public boolean equals(Object object) {
|
||||||
}
|
// TODO: Warning - this method won't work in the case the id fields are
|
||||||
return true;
|
// not set
|
||||||
}
|
if (!(object instanceof EsquemaCorrida)) {
|
||||||
|
return false;
|
||||||
@Override
|
}
|
||||||
public String toString() {
|
EsquemaCorrida other = (EsquemaCorrida) object;
|
||||||
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaCorrida[esquemacorridaId=" + esquemacorridaId + "]";
|
if ((this.esquemacorridaId == null && other.esquemacorridaId != null) || (this.esquemacorridaId != null && !this.esquemacorridaId.equals(other.esquemacorridaId))) {
|
||||||
}
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "com.rjconsultores.ventaboletos.entidad.test.EsquemaCorrida[esquemacorridaId=" + esquemacorridaId + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,6 +323,7 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
CorridaCtrl corridaCtrl = corridaCtrlService.buscar(ruta, claseServicio, marca, horario, isPisoExtra);
|
CorridaCtrl corridaCtrl = corridaCtrlService.buscar(ruta, claseServicio, marca, horario, isPisoExtra);
|
||||||
if (corridaCtrl == null) {
|
if (corridaCtrl == null) {
|
||||||
corridaCtrl = new CorridaCtrl();
|
corridaCtrl = new CorridaCtrl();
|
||||||
|
corridaCtrl.setCorridaId(esquemaCorrida.getNumCorrida());
|
||||||
corridaCtrl.setMarca(marca);
|
corridaCtrl.setMarca(marca);
|
||||||
corridaCtrl.setRuta(ruta);
|
corridaCtrl.setRuta(ruta);
|
||||||
corridaCtrl.setClaseServicio(claseServicio);
|
corridaCtrl.setClaseServicio(claseServicio);
|
||||||
|
@ -519,7 +520,7 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
Corrida corrida = generarCorrida(esquemaCorrida, dataGeracao, false);
|
Corrida corrida = generarCorrida(esquemaCorrida, dataGeracao, false);
|
||||||
Corrida corridaPisoExtra = null;
|
Corrida corridaPisoExtra = null;
|
||||||
|
|
||||||
if (corrida == null) {// Si no generó la corrida, no va a
|
if (corrida == null) {// Si no gener<EFBFBD> la corrida, no va a
|
||||||
// generar el rebote
|
// generar el rebote
|
||||||
log.info("No fue generado corrida. Esquema " + esquemaCorrida.getEsquemacorridaId() + " Data" + dataGeracao);
|
log.info("No fue generado corrida. Esquema " + esquemaCorrida.getEsquemacorridaId() + " Data" + dataGeracao);
|
||||||
continue;
|
continue;
|
||||||
|
@ -527,7 +528,7 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
|
|
||||||
// PISO EXTRA
|
// PISO EXTRA
|
||||||
if (esquemaCorrida.getPisoExtra() != null && esquemaCorrida.getPisoExtra()) {
|
if (esquemaCorrida.getPisoExtra() != null && esquemaCorrida.getPisoExtra()) {
|
||||||
// Invertendo RolOperativo e Classe de Serviço para o Piso
|
// Invertendo RolOperativo e Classe de Servi<EFBFBD>o para o Piso
|
||||||
// Extra
|
// Extra
|
||||||
RolOperativo ro = esquemaCorrida.getRolOperativo();
|
RolOperativo ro = esquemaCorrida.getRolOperativo();
|
||||||
ClaseServicio cs = esquemaCorrida.getClaseServicio();
|
ClaseServicio cs = esquemaCorrida.getClaseServicio();
|
||||||
|
@ -537,7 +538,7 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
|
|
||||||
corridaPisoExtra = generarCorrida(esquemaCorrida, dataGeracao, true);
|
corridaPisoExtra = generarCorrida(esquemaCorrida, dataGeracao, true);
|
||||||
if (corrida != null && corridaPisoExtra != null) {
|
if (corrida != null && corridaPisoExtra != null) {
|
||||||
// Voltando RolOperativo e Classe de Serviço
|
// Voltando RolOperativo e Classe de Servi<EFBFBD>o
|
||||||
esquemaCorrida.setRolOperativo(ro);
|
esquemaCorrida.setRolOperativo(ro);
|
||||||
esquemaCorrida.setClaseServicio(cs);
|
esquemaCorrida.setClaseServicio(cs);
|
||||||
|
|
||||||
|
@ -565,7 +566,7 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
if (corridaRebote != null) {
|
if (corridaRebote != null) {
|
||||||
EsquemaCorrida ecRebote = esquemaCorrida.getEsquemaCorridaRebote();
|
EsquemaCorrida ecRebote = esquemaCorrida.getEsquemaCorridaRebote();
|
||||||
if (ecRebote.getPisoExtra() != null && ecRebote.getPisoExtra()) {
|
if (ecRebote.getPisoExtra() != null && ecRebote.getPisoExtra()) {
|
||||||
// Invertendo RolOperativo e Classe de Serviço para
|
// Invertendo RolOperativo e Classe de Servi<EFBFBD>o para
|
||||||
// o Piso Extra
|
// o Piso Extra
|
||||||
RolOperativo ro = ecRebote.getRolOperativo();
|
RolOperativo ro = ecRebote.getRolOperativo();
|
||||||
ClaseServicio cs = ecRebote.getClaseServicio();
|
ClaseServicio cs = ecRebote.getClaseServicio();
|
||||||
|
@ -596,17 +597,17 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
// con una
|
// con una
|
||||||
// fechamenor tienes
|
// fechamenor tienes
|
||||||
// que generar para
|
// que generar para
|
||||||
// el día seguinte
|
// el d<EFBFBD>a seguinte
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
generaReboteDiaSeguinte = true;// si no fue encontrado
|
generaReboteDiaSeguinte = true;// si no fue encontrado
|
||||||
// para el día de
|
// para el d<EFBFBD>a de
|
||||||
// hoy,genera para
|
// hoy,genera para
|
||||||
// mañana
|
// ma<EFBFBD>ana
|
||||||
}
|
}
|
||||||
|
|
||||||
if (generaReboteDiaSeguinte) {
|
if (generaReboteDiaSeguinte) {
|
||||||
log.info("Haciendo la búsqueda por el esquema rebote para el dia seguiente pues ya existe al dia de hoy");
|
log.info("Haciendo la b<EFBFBD>squeda por el esquema rebote para el dia seguiente pues ya existe al dia de hoy");
|
||||||
|
|
||||||
corridaRebote = generarReboteDiaSeguinte(esquemaCorrida, dataGeracao);
|
corridaRebote = generarReboteDiaSeguinte(esquemaCorrida, dataGeracao);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue