refatoração fixes bug#7405

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55422 d1611594-4594-4d17-8e1d-87c2c4800839
master
gleimar 2016-04-29 20:53:08 +00:00
parent 30e32bfd81
commit c92d017cf5
1 changed files with 10 additions and 3 deletions

View File

@ -55,7 +55,13 @@ 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()));
if (!ipBloqueadoGeracaoServico()) { boolean ipBloqueadoGeracaoServico = ipBloqueadoGeracaoServico();
log.info("ipBloqueadoGeracaoServico="+ipBloqueadoGeracaoServico);
if (!ipBloqueadoGeracaoServico) {
log.info("ip liberado");
// Generacion Automatica de Corridas // Generacion Automatica de Corridas
jobGeneracionCorridas(); jobGeneracionCorridas();
} }
@ -119,11 +125,12 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
Integer[] hora = horaExecucion(); Integer[] hora = horaExecucion();
if (hora == null) { if (hora == null) {
log.debug("constante HORA_GENERACION_CORRIDA não habilitada."); log.info("constante HORA_GENERACION_CORRIDA não habilitada.");
return; return;
} }
log.debug("Horario de geracao de corrida : " + hora[0] + ":" + hora[1]); log.info("Horario de geracao de corrida : " + hora[0] + ":" + hora[1]);
Trigger trigger = TriggerUtils.makeDailyTrigger("generacionCorridasTrigger", hora[0], hora[1]); Trigger trigger = TriggerUtils.makeDailyTrigger("generacionCorridasTrigger", hora[0], hora[1]);