Exemplo n.º 1
0
     } catch (Exception $e) {
         $out = array('success' => 'false', 'error' => $e->getMessage());
     }
     break;
 case 'responder-prazo':
     try {
         $prazo = new Prazo($_POST);
         $out = DaoPrazoDemanda::responderPrazo($prazo)->toArray();
     } catch (Exception $e) {
         $out = array('success' => 'false', 'error' => $e->getMessage());
     }
     break;
 case 'salvar-resposta-ppa':
     try {
         $prazo = new Prazo($_POST);
         $out = DaoPrazoDemanda::salvarPpaResposta($prazo)->toArray();
     } catch (Exception $e) {
         $out = array('success' => 'false', 'error' => $e->getMessage());
     }
     break;
 case 'excluir-resposta-ppa':
     try {
         $tipoVinculo = $_POST['tipo_vinculo'];
         $idVinculo = $_POST['id_vinculo'];
         $out = DaoPrazoDemanda::excluirPpaResposta($tipoVinculo, $idVinculo)->toArray();
     } catch (Exception $e) {
         $out = array('success' => 'false', 'error' => $e->getMessage());
     }
     break;
 case 'incluir-anexo-resposta':
     try {