render( 'CacicRelatorioBundle:Default:autorizacoes.html.twig', array( 'registros' => $this->getDoctrine()->getRepository('CacicCommonBundle:SoftwareEstacao')->gerarRelatorioAutorizacoes() ) ); } /** * * Relatório de Informações Patrimoniais */ public function patrimonioAction() { $locais = $this->getDoctrine()->getRepository('CacicCommonBundle:Local')->listar(); $so = $this->getDoctrine()->getRepository('CacicCommonBundle:So')->listar(); $sw = $this->getDoctrine()->getRepository('CacicCommonBundle:Software')->listarSoftware(); $uorg = $this->getDoctrine()->getRepository('CacicCommonBundle:Uorg')->listar(); $conf = $this->getDoctrine()->getRepository('CacicCommonBundle:ComputadorColeta')->listarPropriedades('Patrimonio'); // return $this->render( 'CacicRelatorioBundle:Default:patrimonio.html.twig', array( 'sw' => $sw, 'locais' => $locais, 'so' => $so, 'conf' => $conf, 'uorg' => $uorg ) ); } /** * [RELATÓRIO] Relatório de Patrimônio gerado à partir dos filtros informados */ public function patrimonioRelatorioAction( Request $request ) { $filtros = $request->get('rel_filtro_patrimonio'); $locale = $request->getLocale(); $dados = $this->getDoctrine() ->getRepository('CacicCommonBundle:Software') ->gerarRelatorioPatrimonio( $filtros ); // Debug::dump($filtros);die; return $this->render( 'CacicRelatorioBundle:Default:rel_patrimonio.html.twig', array( 'idioma'=>$locale, 'dados' => $dados,/* 'menu' => (bool) strlen( $filtros['pci']),*/ 'exibirColunaSoftware' => (bool) strlen( $filtros['softwares'] ) ) ); } }