/**
  * Método trocarproponente()
  * UC 89 - Fluxo FA1 - Trocar Proponente
  * @access public
  * @param void
  * @return void
  */
 public function trocarproponenteAction()
 {
     $tbVinculoPropostaDAO = new tbVinculoPropostaResponsavelProjeto();
     $PreProjetoDAO = new PreProjeto();
     $dadosPropronente = $this->_request->getParam("propronente");
     $parte = explode(":", $dadosPropronente);
     $idNovoVinculo = $parte[0];
     $idNovoPropronente = $parte[1];
     $idVinculoProposta = $this->_request->getParam("idVinculoProposta");
     // Vinculo a alterar
     $idPreProjeto = $this->_request->getParam("idPreProjeto");
     // idPreProjeto
     $mecanismo = $this->_request->getParam("mecanismo");
     try {
         $dados['siVinculoProposta'] = 3;
         $where['idVinculoProposta = ?'] = $idVinculoProposta;
         $alteraVP = $tbVinculoPropostaDAO->alterar($dados, $where, false);
         $novosDados = array('idVinculo' => $idNovoVinculo, 'idPreProjeto' => $idPreProjeto, 'siVinculoProposta' => 2);
         $insere = $tbVinculoPropostaDAO->inserir($novosDados, false);
         $alteraPP = $PreProjetoDAO->alteraproponente($idPreProjeto, $idNovoPropronente);
         if ($mecanismo == 2) {
             parent::message("Proponente trocado com sucesso!", "manterpropostaedital/dadospropostaedital?idPreProjeto=" . $idPreProjeto, "CONFIRM");
         } else {
             parent::message("Proponente trocado com sucesso!", "manterpropostaincentivofiscal/editar?idPreProjeto=" . $idPreProjeto, "CONFIRM");
         }
     } catch (Exception $e) {
         parent::message("Erro. " . $e->getMessage(), "manterpropostaincentivofiscal/editar?idPreProjeto=" . $idPreProjeto, "ERROR");
     }
 }