public function imprimirChecklistPublicacaoAction()
 {
     //DEFINE PARAMETROS DE ORDENACAO / QTDE. REG POR PAG. / PAGINACAO
     if ($this->_request->getParam("qtde")) {
         $this->intTamPag = $this->_request->getParam("qtde");
     }
     $order = array();
     //==== parametro de ordenacao  ======//
     if ($this->_request->getParam("ordem")) {
         $ordem = $this->_request->getParam("ordem");
         if ($ordem == "ASC") {
             $novaOrdem = "DESC";
         } else {
             $novaOrdem = "ASC";
         }
     } else {
         $ordem = "ASC";
         $novaOrdem = "ASC";
     }
     //==== campo de ordenacao  ======//
     if ($this->_request->getParam("campo")) {
         $campo = $this->_request->getParam("campo");
         $order = array($campo . " " . $ordem);
         $ordenacao = "&campo=" . $campo . "&ordem=" . $ordem;
     } else {
         $campo = null;
         $order = array(1);
         //NomeProjeto
         $ordenacao = null;
     }
     $pag = 1;
     $get = Zend_Registry::get('post');
     if (isset($get->pag)) {
         $pag = $get->pag;
     }
     $inicio = $pag > 1 ? ($pag - 1) * $this->intTamPag : 0;
     /* ================== PAGINACAO ======================*/
     $where = array();
     $where['pr.Situacao = ?'] = 'D03';
     $where['pr.Orgao = ?'] = $this->codOrgao;
     if ($this->blnCoordenador == 'false') {
         $where['vp.idUsuario = ?'] = $this->getIdUsuario;
     }
     if (isset($_POST['tipoFiltro']) || isset($_GET['tipoFiltro'])) {
         $filtro = isset($_POST['tipoFiltro']) ? $_POST['tipoFiltro'] : $_GET['tipoFiltro'];
         $this->view->filtro = $filtro;
         switch ($filtro) {
             case '':
                 $where['NOT EXISTS(SELECT TOP 1 * FROM SAC.dbo.tbDiligencia WHERE idPronac = pr.idPronac AND idTipoDiligencia = 181 AND DtSolicitacao IS NOT NULL AND DtResposta IS NULL AND stEstado = 0 AND stEnviado = \'S\')'] = '';
                 break;
             case 'diligenciados':
                 $this->view->nmPagina = 'Proponentes Diligenciados';
                 $where['pr.Situacao = ?'] = 'D25';
                 $where['EXISTS(SELECT TOP 1 * FROM SAC.dbo.tbDiligencia WHERE idPronac = pr.idPronac AND idTipoDiligencia = 181 AND DtSolicitacao IS NOT NULL AND DtResposta IS NULL AND stEstado = 0 AND stEnviado = \'S\')'] = '';
                 break;
             case 'irregulares':
                 $this->view->nmPagina = 'Proponentes Irregulares';
                 $where['pr.Situacao = ?'] = 'D11';
                 break;
             case 'respondidos':
                 $this->view->nmPagina = 'Diligencias Respondidas';
                 $where['pr.Situacao = ?'] = 'D03';
                 $where['EXISTS(SELECT TOP 1 * FROM SAC.dbo.tbDiligencia WHERE idPronac = pr.idPronac AND idTipoDiligencia = 181 AND DtSolicitacao IS NOT NULL AND DtResposta IS NOT NULL AND stEstado = 0)'] = '';
                 break;
             case 'finalizados':
                 $this->view->nmPagina = 'Projetos Finalizados';
                 $where['pr.Situacao = ?'] = 'D03';
                 break;
         }
     }
     if ($this->view->filtro == 'finalizados') {
         $where['vp.stAnaliseProjeto = ?'] = 3;
     } else {
         $where['vp.stAnaliseProjeto != ?'] = 3;
     }
     if (isset($_POST['pronac']) && !empty($_POST['pronac']) || isset($_GET['pronac']) && !empty($_GET['pronac'])) {
         $where['pr.AnoProjeto+pr.Sequencial = ?'] = isset($_POST['pronac']) ? $_POST['pronac'] : $_GET['pronac'];
         $this->view->pronacProjeto = isset($_POST['pronac']) ? $_POST['pronac'] : $_GET['pronac'];
     }
     $projetos = new Projetos();
     $busca = $projetos->painelAguardandoAnaliseDocumental($where, $order);
     $this->view->dados = $busca;
     $this->_helper->layout->disableLayout();
     // Desabilita o Zend Layout
 }