Commit f17e9804274449644d7162a3a06bceb44a7d1c3b
1 parent
777333b6
Exists in
master
and in
1 other branch
modulo timeForcaColeta
Showing
1 changed file
with
12 additions
and
8 deletions
Show diff stats
src/Cacic/WSBundle/Controller/DefaultController.php
... | ... | @@ -511,13 +511,16 @@ class DefaultController extends Controller |
511 | 511 | if($request->get('AgenteLinux')) |
512 | 512 | $agente_py = true; |
513 | 513 | |
514 | - //verifica se o modulo de patrimonio está habilitado | |
515 | - $patr = $this->getDoctrine()->getRepository('CacicCommonBundle:AcaoRede')->findOneBy( array('rede'=>$rede->getIdRede(), 'acao'=>'col_patr')); | |
516 | -// error_log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>:".$patr->getRede()->getIdRede()); | |
517 | - if (!empty($patr)) | |
518 | - $modPatrimonio = "S"; | |
519 | - else | |
520 | - $modPatrimonio = "N"; | |
514 | + /** | |
515 | + * Mensagem a ser exibida na tela de Pop-Up do patrimônio | |
516 | + */ | |
517 | + $em = $this->getDoctrine()->getManager(); | |
518 | + $query = $em->createQuery( | |
519 | + 'SELECT cp.vlConfiguracao FROM CacicCommonBundle:ConfiguracaoPadrao cp WHERE cp.idConfiguracao = :idconfig' | |
520 | + )->setParameter('idconfig', 'nu_intervalo_forca_coleta'); | |
521 | + | |
522 | + $result = $query->getSingleResult(); | |
523 | + $timerForcaColeta = implode('',$result); | |
521 | 524 | |
522 | 525 | $configs = $this->getDoctrine()->getRepository('CacicCommonBundle:ConfiguracaoLocal')->listarPorLocal($local->getIdLocal()); |
523 | 526 | //informações dos modulos do agente, nome, versao, hash |
... | ... | @@ -545,7 +548,8 @@ class DefaultController extends Controller |
545 | 548 | 'v_te_fila_ftp'=>$v_te_fila_ftp, |
546 | 549 | 'rede_grupos_ftp'=>$rede_grupos_ftp, |
547 | 550 | 'strPatrimonio'=>$strPatrimonio, |
548 | - 'modPatrimonio'=> $modPatrimonio, | |
551 | + 'timerForcaColeta'=>$timerForcaColeta, | |
552 | + // 'modPatrimonio'=> $modPatrimonio, | |
549 | 553 | ), $response); |
550 | 554 | } |
551 | 555 | } | ... | ... |