valdevir 2017-07-20 13:44:17 +00:00
parent d54b17790d
commit 0e6e2a079e
1 changed files with 21 additions and 23 deletions

View File

@ -7,6 +7,7 @@ package com.rjconsultores.ventaboletos.utilerias;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.Properties; import java.util.Properties;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
@ -129,6 +130,7 @@ public class ApplicationProperties {
String property = p.getProperty("contrasena.validaComplejidad", "0"); String property = p.getProperty("contrasena.validaComplejidad", "0");
return property.equals("1"); return property.equals("1");
} }
public boolean habilitarCustomSequence() { public boolean habilitarCustomSequence() {
String property = p.getProperty("custom.sequence", "0"); String property = p.getProperty("custom.sequence", "0");
return property.equals("1"); return property.equals("1");
@ -194,7 +196,7 @@ public class ApplicationProperties {
return property.equals("1"); return property.equals("1");
} }
public Integer maxSizeNumCorrida(){ public Integer maxSizeNumCorrida() {
String property = p.getProperty("maxSizeNumCorrida", "-1"); String property = p.getProperty("maxSizeNumCorrida", "-1");
return Integer.parseInt(property); return Integer.parseInt(property);
} }
@ -213,10 +215,10 @@ public class ApplicationProperties {
String property = p.getProperty("utilizaLibercard", "0"); String property = p.getProperty("utilizaLibercard", "0");
return property.equals("1"); return property.equals("1");
} }
/** /**
* *
* Indica se ao salvar um ponto de venda será validado se para todas as empresas informadas * 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.
* para venda também será necessário informar o fechamento.
* *
* @return * @return
*/ */
@ -235,8 +237,4 @@ public class ApplicationProperties {
return property.equals("1"); return property.equals("1");
} }
public boolean isSerieSubserieSecretaria() {
String property = p.getProperty("validaSerieSubserieSecretaria", "0");
return property.equals("1");
}
} }