refatoração fixes bug#7405
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55421 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2aaefb5b19
commit
30e32bfd81
|
@ -55,14 +55,22 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
|
||||||
Labels.register(new MyLabelLocatorGeneral((ServletContext) wapp.getNativeContext()));
|
Labels.register(new MyLabelLocatorGeneral((ServletContext) wapp.getNativeContext()));
|
||||||
Labels.register(new MyLabelLocatorCliente((ServletContext) wapp.getNativeContext()));
|
Labels.register(new MyLabelLocatorCliente((ServletContext) wapp.getNativeContext()));
|
||||||
|
|
||||||
Constante constanteServidorException = getConstanteService().buscarPorNomeConstante("SERVIDOR_EXCEPCION_GENERACION_CORRIDA");
|
if (!ipBloqueadoGeracaoServico()) {
|
||||||
String ipConstante = constanteServidorException == null ? "" : constanteServidorException.getValorconstante();
|
|
||||||
if (!IPValidatorUtileria.ipExternoException(ipConstante)) {
|
|
||||||
// Generacion Automatica de Corridas
|
// Generacion Automatica de Corridas
|
||||||
jobGeneracionCorridas();
|
jobGeneracionCorridas();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean ipBloqueadoGeracaoServico() {
|
||||||
|
Constante constanteServidorException = getConstanteService().buscarPorNomeConstante("SERVIDOR_EXCEPCION_GENERACION_CORRIDA");
|
||||||
|
String ipConstante = constanteServidorException == null ? "" : constanteServidorException.getValorconstante();
|
||||||
|
if (ipConstante.equals("")){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return (IPValidatorUtileria.ipExternoException(ipConstante));
|
||||||
|
}
|
||||||
|
|
||||||
private Integer[] horaExecucion() {
|
private Integer[] horaExecucion() {
|
||||||
|
|
||||||
Constante constante = getConstanteService().buscarPorNomeConstante("HORA_GENERACION_CORRIDA");
|
Constante constante = getConstanteService().buscarPorNomeConstante("HORA_GENERACION_CORRIDA");
|
||||||
|
|
Loading…
Reference in New Issue