bug#24134

dev:lucas

qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@112946 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2022-06-24 23:22:41 +00:00
parent 62463ab12c
commit 96ccd37e74
3 changed files with 11 additions and 3 deletions

View File

@ -11,7 +11,8 @@ public enum TipoImpressora {
DARUMA(4, Labels.getLabel("editarEstacionController.tipoImpressora.darumaFiscal"), true),
DARUMA_BLINDADA(5, Labels.getLabel("editarEstacionController.tipoImpressora.darumaFiscalBlindada"), true),
STOCK_CENTRAL(6, Labels.getLabel("editarEstacionController.tipoImpressora.stockCentral"), true),
BPE(7, Labels.getLabel("editarEstacionController.tipoImpressora.bpe"), true);
BPE(7, Labels.getLabel("editarEstacionController.tipoImpressora.bpe"), true),
MACON(8, Labels.getLabel("editarEstacionController.tipoImpressora.macon"), true);
private final int codigo;
private final String nome;

View File

@ -136,7 +136,12 @@ public class ApplicationProperties {
*/
public boolean isCustomHabilitado(String key, String defaultValue) {
String property = getValuefromCustom(key, defaultValue);
return property.equals("1");
return property.equals("1") ;
}
public boolean isCustomHabilitado(String key, Boolean defaultValue) {
String property = getValuefromCustom(key, defaultValue.toString());
return property.equals("true") ;
}
private InputStream readImagefromCustom(String imagene) throws FileNotFoundException, IOException {

View File

@ -153,7 +153,9 @@ public enum CustomEnum {
IS_DESABILITA_USUARIO_ADMINISTRADORES_PERFIL("dasabilitaUsuarioAdministradoresPerfil"),
INTEGRACION_SAFER("integracion.safer");
INTEGRACION_SAFER("integracion.safer"),
IS_VENDA_MACON("IsVendaMacon");
private String descricao;