forked from Claudio/integracao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
654 B
17 lines
654 B
3 years ago
|
<?php
|
||
|
|
||
|
require_once 'MKSolutions.php';
|
||
|
$mk = new MkSolutions();
|
||
|
|
||
|
$documento = $mk->agi()->get_variable('DOCUMENTO', true);
|
||
|
$retorno = $mk->consultaParadaTecnica($documento);
|
||
|
$nomenclatura = $mk->agi()->get_variable('NOMENCLATURA', true);
|
||
|
|
||
|
if ($retorno) {
|
||
|
$redirecionamento_dados = $mk->db()->redirectUraDestino("REDIR_PARADA_TECNICA", "SUCESSO", $nomenclatura); //PENDENTE
|
||
|
} else {
|
||
|
$redirecionamento_dados = $mk->db()->redirectUraDestino("REDIR_PARADA_TECNICA", "FALHA", $nomenclatura); //OK
|
||
|
}
|
||
|
|
||
|
$mk->executarFluxo($redirecionamento_dados["TIPO"], $redirecionamento_dados["NOME"]);
|
||
|
?>
|