0022815: Empresa Operadora - WebMobi /Arca
bug#22815 dev:valdevir qua: Alterações da ADM git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@108382 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
0d2a21a97a
commit
dd1e53c01c
|
@ -33,4 +33,5 @@ public class ConstantesFuncionSistema {
|
|||
public static final String CLAVE_MANUTENCAO_FLEXBUS = "COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.FLEXBUS";
|
||||
public static final String CLAVE_RELATORIO_PRICING_ESPECIFICO = "COM.RJCONSULTORES.ADMINISTRACION.GUI.PRICING.MENU.RELATORIOPRICINGESPECIFICO";
|
||||
public static final String CLAVE_MODIFICACAO_EMBARCADA = "COM.RJCONSULTORES.ADMINISTRACION.GUI.TARIFAS.MENU.MODIFICACIONMASIVAEMBARCADA";
|
||||
public static final String CLAVE_AUTORIZACAO_RUTA = "COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.AUTORIZACAORUTA";
|
||||
}
|
||||
|
|
|
@ -163,6 +163,9 @@ public class Ruta implements Serializable, Comparable<Ruta>, Auditavel<Ruta> {
|
|||
@NaoAuditar
|
||||
private Ruta rutaClone;
|
||||
|
||||
@Column(name = "STATUS_AUTORIZADORA")
|
||||
private Integer statusAutorizadora;
|
||||
|
||||
public Ruta() {
|
||||
super();
|
||||
indRutaCancelada = false;
|
||||
|
@ -653,4 +656,11 @@ public class Ruta implements Serializable, Comparable<Ruta>, Auditavel<Ruta> {
|
|||
return this.getIndSentidoIda() == null || Boolean.TRUE.equals(this.getIndSentidoIda()) ? "IDA" : "VOLTA";
|
||||
}
|
||||
|
||||
public Integer getStatusAutorizadora() {
|
||||
return statusAutorizadora;
|
||||
}
|
||||
|
||||
public void setStatusAutorizadora(Integer statusAutorizadora) {
|
||||
this.statusAutorizadora = statusAutorizadora;
|
||||
}
|
||||
}
|
|
@ -45,6 +45,10 @@ public class RutaEmpresa implements Cloneable {
|
|||
@ManyToOne
|
||||
private Ruta ruta;
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "EMPRESA_AUTORIZADORA_ID")
|
||||
private Empresa empresaAutorizadora;
|
||||
|
||||
public Integer getRutaEmpresaId() {
|
||||
return rutaEmpresaId;
|
||||
}
|
||||
|
@ -102,4 +106,12 @@ public class RutaEmpresa implements Cloneable {
|
|||
public Object clone() throws CloneNotSupportedException {
|
||||
return super.clone();
|
||||
}
|
||||
|
||||
public Empresa getEmpresaAutorizadora() {
|
||||
return empresaAutorizadora;
|
||||
}
|
||||
|
||||
public void setEmpresaAutorizadora(Empresa empresaAutorizadora) {
|
||||
this.empresaAutorizadora = empresaAutorizadora;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
package com.rjconsultores.ventaboletos.enums;
|
||||
|
||||
public enum StatusAutorizacaoRuta {
|
||||
EM_ANALISE(0, "EM ANALISE"),
|
||||
LIBERADO(1, "LIBERADO"),
|
||||
BLOQUEADO(2, "BLOQUEADO");
|
||||
|
||||
private Integer status;
|
||||
private String descricao;
|
||||
|
||||
private StatusAutorizacaoRuta(Integer status, String descricao) {
|
||||
this.descricao = descricao;
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public static String buscarStatus(Integer id) {
|
||||
for (StatusAutorizacaoRuta status : StatusAutorizacaoRuta.values()) {
|
||||
if (status.getStatus() == id) {
|
||||
return status.getDescricao();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static StatusAutorizacaoRuta buscarPorStatus(Integer id) {
|
||||
for (StatusAutorizacaoRuta status : StatusAutorizacaoRuta.values()) {
|
||||
if (status.getStatus() == id) {
|
||||
return status;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return descricao;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue