Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
48 righe
1.5 KiB
48 righe
1.5 KiB
<? |
|
if (isset($this) && is_a($this,"anac")) { |
|
$lotto = $this->getLotti()[0]; |
|
if (!empty($lotto)) { |
|
if ($operation == "get") { |
|
$codice_lotto = $lotto["codice"]; |
|
$return = []; |
|
$return["method"] = "annullaComunicazione"; |
|
$return["data"] = ["cig"=>$lotto["cig"]]; |
|
} else if ($operation == "put" && !empty($response)) { |
|
if (!empty($response->codiceRisultato->descrizione)) { |
|
if ($response->codiceRisultato->descrizione == "OK") { |
|
$this->updateStato("90"); |
|
$lotto["eliminato"] = "S"; |
|
$salva = new salva(); |
|
$salva->debug = false; |
|
|
|
$salva->nome_tabella = "b_simog_lotti"; |
|
$salva->operazione = "UPDATE"; |
|
$salva->oggetto = $lotto; |
|
$salva->save(); |
|
|
|
alertManager::printSuccessBox(__("Operazione effettuata con successo")); |
|
?> |
|
<script> |
|
$('#modal-helper').on('hidden.bs.modal', function (e) { |
|
window.location.reload(); |
|
}) |
|
</script> |
|
<? |
|
$return = true; |
|
} |
|
} else if (!empty($response->errore->errore)) { |
|
$errors = $response->errore->errore; |
|
} else { |
|
$errors = __("Errore nella risposta"); |
|
} |
|
} else { |
|
$errors = __("Operazione sconosciuta"); |
|
} |
|
} else { |
|
$errors = __("Impossibile trovare il lotto"); |
|
} |
|
if (!empty($errors)) { |
|
alertManager::printAlertBox($errors); |
|
} |
|
} |
|
?>
|