gestione gare pubbliche
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.
 
 
 
 
 

123 righe
4.0 KiB

<?
if (isset($this) && is_a($this,"anac")) {
if ($this->info["smart_cig"] == "S") {
$smart_cig = true;
$lotto = $this->getLotti()[0] ?? FALSE;
$dati = $this->getDati();
} else {
$smart_cig = false;
$lotto = $this->getLotti($codice_lotto)[0] ?? FALSE;
$dati = json_decode($lotto["dati"],true);
}
if (!empty($lotto["cig"]) && !empty($dati)) {
?>
<table border=1 class="table table-striped">
<tr>
<th width="200"><?= __("Codice Fiscale Richiedente") ?>:</th>
<td><?= $this->info["cf_utente_simog"] ?></td>
</tr>
<tr>
<th>CIG:</th>
<td><?= $lotto["cig"] ?></td>
</tr>
<? if ($smart_cig) { ?>
<tr>
<th><?= __("Fattispecie contrattuale") ?>:</th>
<td>
<?= anac::getOptions("tipo_fattispecie_contrattuale",$this->info["data_invio_simog"])[$dati["codiceFattispecieContrattuale"]]; ?>
</td>
</tr>
<? } ?>
<tr>
<th><?= __("Importo") ?>:</th>
<td>
&euro; <?= number_format($lotto["importo"], 2, ",", ".") ?>
</td>
</tr>
<tr>
<th><?= __("Oggetto") ?>:</th>
<td><?= $lotto["oggetto"] ?></td>
</tr>
<tr>
<th><?= __("Scelta del contraente") ?>:</th>
<td>
<?
if ($smart_cig) {
foreach(anac::getOptions("tipo_procedura",$this->info["data_invio_simog"]) AS $key => $value) {
if ($key == $lotto["id_scelta_contraente"]) { echo $value; }
}
} else {
echo anac::getListeSIMOG("SceltaContraenteType",$this->info["data_invio_simog"])[$lotto["id_scelta_contraente"]];
}
?>
</td>
</tr>
<tr>
<th><?= __("Oggetto principale del contratto") ?>:</th>
<td>
<?
if ($smart_cig) {
echo anac::getOptions("classificazione_gara",$this->info["data_invio_simog"])[$dati["codiceClassificazioneGara"]];
} else {
switch($dati["tipo_contratto"]) {
case "F": echo __("Forniture"); break;
case "S": echo __("Servizi"); break;
case "L": echo __("Lavori"); break;
}
}
?>
</td>
</tr>
<tr>
<th><?= __("CIG relativo all'accordo quadro/convenzione cui si aderisce") ?>:</th>
<td>
<? if ($smart_cig) {
echo $dati["cigAccordoQuadro"];
} else {
echo $this->getDati()["cig_acc_quadro"];
} ?>
</td>
</tr>
<tr>
<th>CUP:</th>
<td><?= $lotto["cup"] ?></td>
</tr>
<tr>
<th><?= __("Categorie merceologiche oggetto della fornitura di cui al DPCM soggetti aggregatori") ?>:</th>
<td>
<?
if ($smart_cig) {
$categorie = anac::getOptions("lotto_merceologia_aggregatori",$this->info["data_invio_simog"]);
$selezionate = $dati["categorie_merc"];
} else {
$categorie = anac::getListeSIMOG("CategorieMerceologicheType",$this->info["data_invio_simog"]);
$selezionate = [$dati["categoria_merc"]];
}
foreach($categorie AS $id => $categoria) {
if (!empty($selezionate)) {
if (in_array($id,$selezionate)) {
echo $categoria . "<br>";
}
}
}
?>
</td>
</tr>
<?
if ($smart_cig) {
?>
<tr>
<th><?= __("Motivo richiesta CIG") ?>:</th>
<td>
<?= anac::getOptions("tipo_indicatore",$this->info["data_invio_simog"])[$dati["motivo_rich_cig_catmerc"]]; ?>
</td>
</tr>
<? }
?>
</table>
<?
return true;
}
}
?>