Commit 14a6a8fdcb75f87bc1c2c85ab137c6170b1589b8

Authored by Bruno Menezes
1 parent d19c7143
Exists in master and in 1 other branch 3.1

Consultar versão do agente

src/Cacic/CommonBundle/Controller/ComputadorController.php
... ... @@ -189,6 +189,20 @@ class ComputadorController extends Controller
189 189  
190 190 }
191 191  
  192 + public function versaoagenteAction()
  193 + {
  194 + $estatisticas = array(
  195 + 'totalVersaoAgente' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countPorVersaoCacic(),
  196 + 'VersaoAgente30dias' => $this->getDoctrine()->getRepository('CacicCommonBundle:Computador')->countPorVersao30dias());
  197 +
  198 + return $this->render(
  199 + 'CacicCommonBundle:Computador:versaoagente.html.twig',
  200 + array(
  201 + 'estatisticas' => $estatisticas
  202 + )
  203 + );
  204 + }
  205 +
192 206 /**
193 207 *
194 208 * [AJAX][jqTree] Carrega as subredes, do local informado, com computadores monitorados
... ...