correções no código, melhorar os combobox estático
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@23915 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
0c66ac077d
commit
ab61644d89
|
@ -121,14 +121,33 @@ public class EsquemaCorrida implements Serializable {
|
|||
|
||||
|
||||
|
||||
private static List<String> tpGeneraFeriadoList = new ArrayList<String>();
|
||||
public enum gerarFeriado {
|
||||
// Declaração dos enum
|
||||
GERARSEMPRE ("GERAR SEMPRE", "S"),
|
||||
|
||||
static{
|
||||
GERARQUANDOFERIADO ("GERAR SÓ QUANDO FOR FERIADO", "F"),
|
||||
|
||||
tpGeneraFeriadoList.add("GERAR SEMPRE");
|
||||
tpGeneraFeriadoList.add("GERAR SO QUANDO FOR FERIADO");
|
||||
tpGeneraFeriadoList.add("GERAR QUANDO NAO FOR FERIADO");
|
||||
GERARQUANDONAOFERIADO ("GERAR QUANDO NÃO FOR FERIADO", "N");
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
private gerarFeriado( String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public String getTipocorrida() {
|
||||
return tipocorrida;
|
||||
|
@ -420,13 +439,7 @@ public class EsquemaCorrida implements Serializable {
|
|||
|
||||
|
||||
|
||||
public static List<String> getTpGeneraFeriadoList() {
|
||||
return tpGeneraFeriadoList;
|
||||
}
|
||||
|
||||
public static void setTpGeneraFeriadoList(List<String> tpGeneraFeriadoList) {
|
||||
EsquemaCorrida.tpGeneraFeriadoList = tpGeneraFeriadoList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
|
|
@ -88,15 +88,60 @@ public class PtovtaAgencia implements Serializable {
|
|||
this.ptovtaAgenciaId = ptovtaAgenciaId;
|
||||
}
|
||||
|
||||
private static List<String> pessoaList = new ArrayList<String>();
|
||||
private static List<String> tpContaList = new ArrayList<String>();
|
||||
|
||||
static{
|
||||
pessoaList.add("FÍSICA");
|
||||
pessoaList.add("JURÍDICA");
|
||||
|
||||
tpContaList.add("RECEITA LÍQUIDA");
|
||||
tpContaList.add("RECEITA BRUTA");
|
||||
public enum enumTipoConta {
|
||||
// Declaração dos enum
|
||||
RECEITALIQUIDA ("RECEITA LÍQUIDA", "RL"),
|
||||
|
||||
RECEITABRUTA ("RECEITA BRUTA", "RB");
|
||||
|
||||
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
private enumTipoConta( String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public enum enumTipoPessoa {
|
||||
// Declaração dos enum
|
||||
PESSOAFISICA ("PESSOA FÍSICA", "F"),
|
||||
|
||||
PESSOAJURIDICA ("PESSOA JURÍDICA", "J");
|
||||
|
||||
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
private enumTipoPessoa( String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public PtovtaAgencia(Integer ptovtaAgenciaId, String numagencia, String digito, String numconta, String pessoa, String tipo, String bilhetes, String carga, Boolean activo, Date fecmodif, int usuarioId) {
|
||||
|
@ -222,13 +267,13 @@ public class PtovtaAgencia implements Serializable {
|
|||
}
|
||||
|
||||
|
||||
public static List<String> getPessoaList() {
|
||||
return pessoaList;
|
||||
}
|
||||
|
||||
public static List<String> getTipoContaList() {
|
||||
return tpContaList;
|
||||
}
|
||||
// public static List<String> getPessoaList() {
|
||||
// return pessoaList;
|
||||
// }
|
||||
//
|
||||
// public static List<String> getTipoContaList() {
|
||||
// return tpContaList;
|
||||
// }
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
|
|
@ -95,14 +95,42 @@ public class PtovtaDiversos implements Serializable {
|
|||
public PtovtaDiversos() {
|
||||
}
|
||||
|
||||
private static List<String> posicaoList = new ArrayList<String>();
|
||||
public enum gerarEnum {
|
||||
// Declaração dos enum
|
||||
|
||||
|
||||
POSICAOFORAEIXO ("FORA DO EIXO DA LINHA", "FEL"),
|
||||
POSICAONOEIXO ("NO EIXO DA LINHA", "EL");
|
||||
|
||||
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
private gerarEnum( String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
static{
|
||||
posicaoList.add("FORA DO EIXO DA LINHA");
|
||||
posicaoList.add("NO EIXO DA LINHA");
|
||||
|
||||
}
|
||||
|
||||
// private static List<String> posicaoList = new ArrayList<String>();
|
||||
//
|
||||
// static{
|
||||
// posicaoList.add("FORA DO EIXO DA LINHA");
|
||||
// posicaoList.add("NO EIXO DA LINHA");
|
||||
//
|
||||
// }
|
||||
//
|
||||
|
||||
public PtovtaDiversos(Integer ptovtaDiversosId, String responAluguel, String responTelefone, String responEnergia, String posicao, Boolean informatizada, Boolean bilheteInfo, Boolean vendaInternet, Boolean digitacaoSeq, Boolean teleEntrega, Boolean trabalhaBilhete, Boolean ofpsPropria, Boolean ofpsTerceiros, Boolean activo, Date fecmodif, int usuarioId) {
|
||||
super();
|
||||
|
@ -265,15 +293,8 @@ public class PtovtaDiversos implements Serializable {
|
|||
}
|
||||
|
||||
|
||||
public static List<String> getPosicaoList() {
|
||||
return posicaoList;
|
||||
}
|
||||
|
||||
|
||||
public static void setPosicaoList(List<String> posicaoList) {
|
||||
PtovtaDiversos.posicaoList = posicaoList;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
|
|
@ -45,13 +45,13 @@ public class PtovtaEstoque implements Serializable {
|
|||
private String especie;
|
||||
|
||||
@Column(name = "FORMCONT")
|
||||
private String formCont;
|
||||
private Integer formCont;
|
||||
|
||||
@Column(name = "QUANTIDADE")
|
||||
private int quantidade;
|
||||
|
||||
@Column(name = "LOTEFORM")
|
||||
private String loteform;
|
||||
private Integer loteform;
|
||||
|
||||
@Basic(optional = false)
|
||||
@Column(name = "ACTIVO")
|
||||
|
@ -75,18 +75,36 @@ public class PtovtaEstoque implements Serializable {
|
|||
}
|
||||
|
||||
|
||||
private static List<String> formList = new ArrayList<String>();
|
||||
private static List<String> loteList = new ArrayList<String>();
|
||||
|
||||
static{
|
||||
formList.add("SIM");
|
||||
formList.add("NÃO");
|
||||
|
||||
loteList.add("SIM");
|
||||
loteList.add("NÃO");
|
||||
public enum gerarEnum {
|
||||
// Declaração dos enum
|
||||
SIM ("SIM", "1"),
|
||||
|
||||
NAO ("NAO", "0");
|
||||
|
||||
|
||||
|
||||
// Definição das constantes
|
||||
public final String valor;
|
||||
public final String descricao;
|
||||
|
||||
|
||||
public String valor() {
|
||||
return this.valor;
|
||||
}
|
||||
public String descricao() {
|
||||
return this.descricao;
|
||||
}
|
||||
private gerarEnum( String descricao, String valor) {
|
||||
this.descricao = descricao;
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
public PtovtaEstoque(Integer ptovtaEstoqueId, String especie, String formCont, int quantidade, String loteform, Boolean activo, Date fecmodif, int usuarioId) {
|
||||
|
||||
}
|
||||
|
||||
public PtovtaEstoque(Integer ptovtaEstoqueId, String especie, Integer formCont, int quantidade, Integer loteform, Boolean activo, Date fecmodif, int usuarioId) {
|
||||
this.ptovtaEstoqueId = ptovtaEstoqueId;
|
||||
this.especie = especie;
|
||||
this.formCont = formCont;
|
||||
|
@ -115,11 +133,11 @@ public class PtovtaEstoque implements Serializable {
|
|||
this.especie = especie;
|
||||
}
|
||||
|
||||
public String getFormCont() {
|
||||
public Integer getFormCont() {
|
||||
return formCont;
|
||||
}
|
||||
|
||||
public void setFormCont(String formCont) {
|
||||
public void setFormCont(Integer formCont) {
|
||||
this.formCont = formCont;
|
||||
}
|
||||
|
||||
|
@ -131,11 +149,11 @@ public class PtovtaEstoque implements Serializable {
|
|||
this.quantidade = quantidade;
|
||||
}
|
||||
|
||||
public String getLoteform() {
|
||||
public Integer getLoteform() {
|
||||
return loteform;
|
||||
}
|
||||
|
||||
public void setLoteform(String loteform) {
|
||||
public void setLoteform(Integer loteform) {
|
||||
this.loteform = loteform;
|
||||
}
|
||||
|
||||
|
@ -172,23 +190,6 @@ public class PtovtaEstoque implements Serializable {
|
|||
}
|
||||
|
||||
|
||||
|
||||
public static List<String> getFormList() {
|
||||
return formList;
|
||||
}
|
||||
|
||||
public static void setFormList(List<String> formList) {
|
||||
PtovtaEstoque.formList = formList;
|
||||
}
|
||||
|
||||
public static List<String> getLoteList() {
|
||||
return loteList;
|
||||
}
|
||||
|
||||
public static void setLoteList(List<String> loteList) {
|
||||
PtovtaEstoque.loteList = loteList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 0;
|
||||
|
|
Loading…
Reference in New Issue