FIXES BUG #0006935
FIXES BUG #0006936 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@51248 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6653ba8e54
commit
e2c82619ba
|
@ -208,6 +208,9 @@ public class Corrida implements Serializable {
|
||||||
|
|
||||||
@Column(name = "CODPRODUTOFISCAL")
|
@Column(name = "CODPRODUTOFISCAL")
|
||||||
private String codProdutoFiscal;
|
private String codProdutoFiscal;
|
||||||
|
|
||||||
|
@Column(name = "INFOCORRIDA")
|
||||||
|
private String infoCorrida;
|
||||||
|
|
||||||
public String getIndTipoVenta() {
|
public String getIndTipoVenta() {
|
||||||
return indTipoVenta;
|
return indTipoVenta;
|
||||||
|
@ -520,6 +523,14 @@ public class Corrida implements Serializable {
|
||||||
this.codProdutoFiscal = codProdutoFiscal;
|
this.codProdutoFiscal = codProdutoFiscal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInfoCorrida() {
|
||||||
|
return infoCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInfoCorrida(String infoCorrida) {
|
||||||
|
this.infoCorrida = infoCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return id.toString();
|
return id.toString();
|
||||||
|
|
|
@ -122,6 +122,10 @@ public class EsquemaCorrida implements Serializable {
|
||||||
private Integer cantDiasGeneracion;
|
private Integer cantDiasGeneracion;
|
||||||
@Column(name = "ESQUEMAAGRUPACION_ID")
|
@Column(name = "ESQUEMAAGRUPACION_ID")
|
||||||
private Integer esquemaAgrupacionId;
|
private Integer esquemaAgrupacionId;
|
||||||
|
@Column(name = "INFOCORRIDA")
|
||||||
|
private String infoCorrida;
|
||||||
|
@Column(name = "INDCORRIDAEXTRA")
|
||||||
|
private Boolean indCorridaExtra;
|
||||||
|
|
||||||
public enum GerarFeriado {
|
public enum GerarFeriado {
|
||||||
// Declaração dos enum
|
// Declaração dos enum
|
||||||
|
@ -453,6 +457,22 @@ public class EsquemaCorrida implements Serializable {
|
||||||
this.esquemaAgrupacionId = esquemaAgrupacionId;
|
this.esquemaAgrupacionId = esquemaAgrupacionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInfoCorrida() {
|
||||||
|
return infoCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInfoCorrida(String infoCorrida) {
|
||||||
|
this.infoCorrida = infoCorrida;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIndCorridaExtra() {
|
||||||
|
return indCorridaExtra;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndCorridaExtra(Boolean indCorridaExtra) {
|
||||||
|
this.indCorridaExtra = indCorridaExtra;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hash = 0;
|
int hash = 0;
|
||||||
|
|
|
@ -506,7 +506,12 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
corrida.setAutobus(null);
|
corrida.setAutobus(null);
|
||||||
corrida.setClaseServicio(esquemaCorrida.getClaseServicio());
|
corrida.setClaseServicio(esquemaCorrida.getClaseServicio());
|
||||||
corrida.setConductor(null);
|
corrida.setConductor(null);
|
||||||
corrida.setTipoServicio(new Short("1"));
|
if(esquemaCorrida.getIndCorridaExtra()){
|
||||||
|
corrida.setTipoServicio(new Short("2"));
|
||||||
|
}else{
|
||||||
|
corrida.setTipoServicio(new Short("1"));
|
||||||
|
}
|
||||||
|
corrida.setInfoCorrida(esquemaCorrida.getInfoCorrida());
|
||||||
Integer cantparados = esquemaCorrida.getCantparados();
|
Integer cantparados = esquemaCorrida.getCantparados();
|
||||||
if (cantparados != null) {
|
if (cantparados != null) {
|
||||||
corrida.setCantParados(cantparados.shortValue());
|
corrida.setCantParados(cantparados.shortValue());
|
||||||
|
|
Loading…
Reference in New Issue