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.
33 righe
1.1 KiB
33 righe
1.1 KiB
<? |
|
if (isset($this) && is_a($this,"anac")) { |
|
$simogMethod = "cancellaGara"; |
|
if ($operation == "get") { |
|
$return = []; |
|
$return["method"] = $simogMethod; |
|
$return["data"] = []; |
|
$return["data"]["id_gara"] = $this->info["id_gara"]; |
|
$dati = $this->getDati(); |
|
$return["data"]["id_motivazione"] = $dati["id_motivazione"]; |
|
$return["data"]["note_canc"] = ""; |
|
} else if ($operation == "put" && !empty($response)) { |
|
if (!empty($response->return->success)) { |
|
$this->updateSimogLog($simogMethod,1,""); |
|
if (!empty($response->return->success)) { |
|
$this->updateStato("90"); |
|
} |
|
alertManager::printSuccessBox(__("Operazione effettuata con successo")); |
|
$return = true; |
|
} else if (!empty($response->return->error)) { |
|
$errors = $response->return->error; |
|
} else { |
|
$errors = __("Errore nella risposta"); |
|
} |
|
} else { |
|
$errors = __("Operazione sconosciuta"); |
|
} |
|
if (!empty($errors)) { |
|
$this->updateSimogLog($simogMethod,2,$errors); |
|
alertManager::printAlertBox($errors); |
|
} |
|
} |
|
?>
|