bug #8485
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64470 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a4c8faf203
commit
c994bb9470
|
@ -63,4 +63,6 @@ public class Constantes {
|
|||
public static final int INTERVALO_FECHAMENTO_MENSAL = 30;
|
||||
public static final int LIMITE_EVENTO_EXTRA_EDITAVEL = 99000;//TipoEventoExtra com id >= 99000 não são editáveis.
|
||||
|
||||
public static final String DESCONTO_COMPONENTE_PRECO = "DESCONTO_COMPONENTE_PRECO";
|
||||
|
||||
}
|
||||
|
|
|
@ -27,12 +27,6 @@ import javax.persistence.Table;
|
|||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.enums.HorarioLiberacaoVendaPassagem;
|
||||
|
@ -121,6 +115,12 @@ public class CategoriaDescuento implements Serializable {
|
|||
@Column(name = "HORARIOLIBERACAOVENDAPESSAGEM")
|
||||
private HorarioLiberacaoVendaPassagem horarioLiberacaoVendaPassagem;
|
||||
|
||||
@Column(name = "TIPODESCCOMPPRECO")
|
||||
private Integer tipodesccomppreco;
|
||||
|
||||
@Column(name = "DESCCOMPPRECO")
|
||||
private BigDecimal desccomppreco;
|
||||
|
||||
public enum DisponibilidadeFeriado {
|
||||
// Declaração dos enum
|
||||
GERARSEMPRE("SEMPRE", "S"),
|
||||
|
@ -147,6 +147,23 @@ public class CategoriaDescuento implements Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
public enum TipoDescontoComponentePreco {
|
||||
|
||||
DESCONTO_COMPONENTE_PRECO_PERC(1),
|
||||
DESCONTO_COMPONENTE_PRECO_VALOR(2);
|
||||
|
||||
public final Integer valor;
|
||||
|
||||
public Integer getValor() {
|
||||
return valor;
|
||||
}
|
||||
|
||||
private TipoDescontoComponentePreco(Integer valor) {
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public CategoriaDescuento() {
|
||||
}
|
||||
|
||||
|
@ -501,4 +518,20 @@ public class CategoriaDescuento implements Serializable {
|
|||
this.horarioLiberacaoVendaPassagem = horarioLiberacaoVendaPassagem;
|
||||
}
|
||||
|
||||
public Integer getTipodesccomppreco() {
|
||||
return tipodesccomppreco;
|
||||
}
|
||||
|
||||
public void setTipodesccomppreco(Integer tipodesccomppreco) {
|
||||
this.tipodesccomppreco = tipodesccomppreco;
|
||||
}
|
||||
|
||||
public BigDecimal getDesccomppreco() {
|
||||
return desccomppreco;
|
||||
}
|
||||
|
||||
public void setDesccomppreco(BigDecimal desccomppreco) {
|
||||
this.desccomppreco = desccomppreco;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue