bug#24134
dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@112946 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
62463ab12c
commit
96ccd37e74
|
@ -11,7 +11,8 @@ public enum TipoImpressora {
|
||||||
DARUMA(4, Labels.getLabel("editarEstacionController.tipoImpressora.darumaFiscal"), true),
|
DARUMA(4, Labels.getLabel("editarEstacionController.tipoImpressora.darumaFiscal"), true),
|
||||||
DARUMA_BLINDADA(5, Labels.getLabel("editarEstacionController.tipoImpressora.darumaFiscalBlindada"), true),
|
DARUMA_BLINDADA(5, Labels.getLabel("editarEstacionController.tipoImpressora.darumaFiscalBlindada"), true),
|
||||||
STOCK_CENTRAL(6, Labels.getLabel("editarEstacionController.tipoImpressora.stockCentral"), 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 int codigo;
|
||||||
private final String nome;
|
private final String nome;
|
||||||
|
|
|
@ -136,7 +136,12 @@ public class ApplicationProperties {
|
||||||
*/
|
*/
|
||||||
public boolean isCustomHabilitado(String key, String defaultValue) {
|
public boolean isCustomHabilitado(String key, String defaultValue) {
|
||||||
String property = getValuefromCustom(key, 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 {
|
private InputStream readImagefromCustom(String imagene) throws FileNotFoundException, IOException {
|
||||||
|
|
|
@ -153,7 +153,9 @@ public enum CustomEnum {
|
||||||
|
|
||||||
IS_DESABILITA_USUARIO_ADMINISTRADORES_PERFIL("dasabilitaUsuarioAdministradoresPerfil"),
|
IS_DESABILITA_USUARIO_ADMINISTRADORES_PERFIL("dasabilitaUsuarioAdministradoresPerfil"),
|
||||||
|
|
||||||
INTEGRACION_SAFER("integracion.safer");
|
INTEGRACION_SAFER("integracion.safer"),
|
||||||
|
|
||||||
|
IS_VENDA_MACON("IsVendaMacon");
|
||||||
|
|
||||||
private String descricao;
|
private String descricao;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue