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.
18 lines
760 B
18 lines
760 B
3 years ago
|
<?php
|
||
|
include 'IxcSoft.php';
|
||
|
$ixc = new IxcSoft();
|
||
|
|
||
|
$latitude = $ixc->agi()->get_variable('LATITUDE', true);
|
||
|
$longitude = $ixc->agi()->get_variable('LONGITUDE', true);
|
||
|
$nomenclatura = $ixc->agi()->get_variable('NOMENCLATURA', true);
|
||
|
|
||
|
$manuntencao = $ixc->consultaManutencao($latitude, $longitude);
|
||
|
|
||
|
if ($manuntencao['em_manutencao'] != 'N' ) {
|
||
|
$redirecionamento_dados = $ixc->db()->redirectUraDestino("REDIR_PARADA_TECNICA", "SUCESSO", $nomenclatura); //PENDENTE
|
||
|
} else {
|
||
|
$redirecionamento_dados = $ixc->db()->redirectUraDestino("REDIR_PARADA_TECNICA", "FALHA", $nomenclatura); //OK
|
||
|
}
|
||
|
|
||
|
$ixc->executarFluxo($redirecionamento_dados["TIPO"], $redirecionamento_dados["NOME"]);
|
||
|
?>
|