pen_procedimento_cancelar_expedir.php
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
require_once dirname(__FILE__) . '/../../SEI.php';
session_start();
$strMensagem = "O trâmite externo do processo foi cancelado com sucesso!";
try {
InfraDebug::getInstance()->setBolLigado(false);
InfraDebug::getInstance()->setBolDebugInfra(false);
InfraDebug::getInstance()->limpar();
SessaoSEI::getInstance()->validarLink();
$objPaginaSEI = PaginaSEI::getInstance();
$strParametros = '';
if (isset($_GET['arvore'])) {
$objPaginaSEI->setBolArvore($_GET['arvore']);
$strParametros .= '&arvore=' . $_GET['arvore'];
}
if (isset($_GET['id_procedimento'])) {
$strParametros .= '&id_procedimento=' . $_GET['id_procedimento'];
}
$idProcedimento = filter_var( $_GET['id_procedimento'], FILTER_SANITIZE_NUMBER_INT);
$objExpedirProcedimentosRN = new ExpedirProcedimentoRN();
$objExpedirProcedimentosRN->cancelarTramite($idProcedimento);
}
catch(InfraException $e){
$strMensagem = $e->getStrDescricao();
}
catch(Exception $e) {
$strMensagem = $e->getMessage();
}
?>
<?php
$objPaginaSEI->montarDocType();
$objPaginaSEI->abrirHtml();
$objPaginaSEI->abrirHead();
$objPaginaSEI->montarMeta();
$objPaginaSEI->montarTitle(':: ' . $objPaginaSEI->getStrNomeSistema() . ' - ' . $strTitulo . ' ::');
$objPaginaSEI->montarStyle();
$objPaginaSEI->fecharHead();
$objPaginaSEI->abrirBody();
?>
<link rel="stylesheet" href="<?php print PENIntegracao::getDiretorio(); ?>/css/style-modulos.css" type="text/css" />
<?php $objPaginaSEI->montarBarraComandosSuperior($arrComandos); ?>
<script type="text/javascript">
alert('<?php echo $strMensagem ?>');
parent.location.reload();
</script>
<?php
$objPaginaSEI->montarAreaDebug();
$objPaginaSEI->fecharBody();
$objPaginaSEI->fecharHtml();
?>