public function vinculoproponenteAction()
 {
     $tbVinculo = new TbVinculo();
     $tbVinculoProposta = new tbVinculoPropostaResponsavelProjeto();
     $PreProjetoDAO = new PreProjeto();
     $idVinculo = $this->_request->getParam("idVinculo");
     $siVinculo = $this->_request->getParam("siVinculo");
     $idUsuarioR = $this->_request->getParam("idUsuario");
     $dados = array('siVinculo' => $siVinculo, 'dtVinculo' => new Zend_Db_Expr("GETDATE()"));
     $where['idVinculo = ?'] = $idVinculo;
     $msg = '';
     if ($siVinculo == 1) {
         $msg = 'O responsável foi rejeitado.';
     } else {
         if ($siVinculo == 2) {
             $msg = 'Responsável vinculado com sucesso!';
         } else {
             if ($siVinculo == 3) {
                 $msg = 'O responsável foi desvinculado.';
             }
         }
     }
     try {
         $alterar = $tbVinculo->alterar($dados, $where);
         if ($siVinculo == 3) {
             $alterarVinculoProposta = $PreProjetoDAO->retirarProjetosVinculos($siVinculo, $idVinculo);
             $retirarPropostas = $PreProjetoDAO->retirarProjetos($this->idResponsavel, $idUsuarioR, $this->idAgente);
         }
         parent::message($msg, "manterpropostaincentivofiscal/consultarresponsaveis", "CONFIRM");
     } catch (Exception $e) {
         parent::message("Falha na recuperação dos dados!", "manterpropostaincentivofiscal/consultarresponsaveis", "ERROR");
     }
 }