fixes bug #9105
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@71609 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d54b17790d
commit
0e6e2a079e
|
@ -7,6 +7,7 @@ package com.rjconsultores.ventaboletos.utilerias;
|
|||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
|
@ -129,6 +130,7 @@ public class ApplicationProperties {
|
|||
String property = p.getProperty("contrasena.validaComplejidad", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
public boolean habilitarCustomSequence() {
|
||||
String property = p.getProperty("custom.sequence", "0");
|
||||
return property.equals("1");
|
||||
|
@ -138,17 +140,17 @@ public class ApplicationProperties {
|
|||
String property = p.getProperty("integracion.totvs", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean integracionAG() {
|
||||
String property = p.getProperty("integracion.AG", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean integracionAGWS() {
|
||||
String property = p.getProperty("integracion.agws", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean integracionRioCard() {
|
||||
String property = p.getProperty("integracion.riocard", "0");
|
||||
return property.equals("1");
|
||||
|
@ -163,60 +165,60 @@ public class ApplicationProperties {
|
|||
String property = p.getProperty("validaEstadoNomeLocalidade", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean podeEditarClienteFidelidade() {
|
||||
String property = p.getProperty("podeEditarClienteFidelidade", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean validaSobreposicaoVigencia() {
|
||||
String property = p.getProperty("validaSobreposicaoVigencia", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean exibeTpp() {
|
||||
String property = p.getProperty("exibeTpp", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean codAnttNaoObrigatorio() {
|
||||
String property = p.getProperty("codAnttNaoObrigatorio", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean artespPedagioIdaVoltaDivPor2() {
|
||||
String property = p.getProperty("artespPedagioIdaVoltaDivPor2", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean calculoPeajeReunidasANTT() {
|
||||
String property = p.getProperty("calculoPeajeReunidasANTT", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
public Integer maxSizeNumCorrida(){
|
||||
|
||||
public Integer maxSizeNumCorrida() {
|
||||
String property = p.getProperty("maxSizeNumCorrida", "-1");
|
||||
return Integer.parseInt(property);
|
||||
}
|
||||
|
||||
|
||||
public boolean criarTarifaApenasTrechoVendido() {
|
||||
String property = p.getProperty("criarTarifaApenasTrechoVendido", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean exibirEstacaoCadastroUsuario() {
|
||||
String property = p.getProperty("exibirEstacaoCadastroUsuario", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean utillizaCartaoLiberCard() {
|
||||
String property = p.getProperty("utilizaLibercard", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Indica se ao salvar um ponto de venda será validado se para todas as empresas informadas
|
||||
* para venda também será necessário informar o fechamento.
|
||||
* Indica se ao salvar um ponto de venda será validado se para todas as empresas informadas para venda também será necessário informar o fechamento.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
@ -224,19 +226,15 @@ public class ApplicationProperties {
|
|||
String property = p.getProperty("puntoVenta.validaCtaCteEmpresa", "1");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
|
||||
public boolean isDataSourceComissaoBancoProducao() {
|
||||
String property = p.getProperty("datasource.conferencia.comissao", "0");
|
||||
return property.equals("0");
|
||||
}
|
||||
|
||||
|
||||
public boolean isPermiteVariasImpressorasMesmaEmpresa() {
|
||||
String property = p.getProperty("permiteVariasImpressorasMesmaEmpresa", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
public boolean isSerieSubserieSecretaria() {
|
||||
String property = p.getProperty("validaSerieSubserieSecretaria", "0");
|
||||
return property.equals("1");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue