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.
184 righe
7.1 KiB
184 righe
7.1 KiB
<? |
|
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia < 100) { |
|
if (isset($estrazione) && isset($relazioni)) { |
|
$note = json_decode($estrazione["note"],true); |
|
?> |
|
<h1><?= __("Verbale Estrazione") ?> - <?= mysql2datetime($estrazione["timestamp"]) ?></h1> |
|
<h2><?= $note["descrizione"] ?></h2> |
|
<table width="100%" class="table table-striped table-bordered"> |
|
<tr> |
|
<th><?= __("Partecipanti richiesti") ?></th> |
|
<td><?= $estrazione["numero_partecipanti"] ?></td> |
|
<th><?= __("Conteggio rotazione") ?></th> |
|
<td><?= __($note["ambito_rotazione"]) ?></td> |
|
</tr> |
|
<tr> |
|
<th><?= __("Sequenza") ?></th> |
|
<td colspan="3"><?= $estrazione["sequenza"] ?></td> |
|
</tr> |
|
<? if (!empty($note["cpv"])) { ?> |
|
<tr> |
|
<th><?= __("CPV") ?></th> |
|
<td colspan="3"><?= implode(" - ",$note["cpv"]) ?></td> |
|
</tr> |
|
<? } |
|
if (!empty($note["elenco"])) { |
|
$note["elenco"] = explode("|",$note["elenco"]); |
|
$elenchi = oeManager::getElenchi($_SESSION["ente"]->codice,$_SESSION["ente"]->getInfo()["sua"]); |
|
$tipiElenco = oeManager::tipiElenco(); |
|
foreach($elenchi[$note["elenco"][0]] AS $elenco) { |
|
if ($note["elenco"][1] == $elenco["codice"]) { |
|
?> |
|
<tr> |
|
<th><?= __("Elenco") ?></th> |
|
<td colspan="3"><?= $elenco["denominazione"] ?></td> |
|
</tr> |
|
<? |
|
break; |
|
} |
|
} |
|
} |
|
if (!empty($note["soa"])) { |
|
$categorieSoa = getCategorieSOA(); |
|
$classificheSoa = getClassificheSOA(); |
|
?> |
|
<tr> |
|
<th>SOA</th> |
|
<td colspan="3"> |
|
<? |
|
foreach($note["soa"] AS $soa) { |
|
echo $categorieSoa[$soa["codice_categoria"]]["id"]; |
|
if (!empty($soa["codice_classifica"])) { |
|
echo "-" . $classificheSoa[$soa["codice_classifica"]]["id"]; |
|
} |
|
echo "<br>"; |
|
} |
|
?> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
if (!empty($note["servizioTecnico"])) { |
|
$categorieST = getCategorieServiziTecnici(); |
|
?> |
|
<tr> |
|
<th><?= __("Servizi tecnici") ?></th> |
|
<td colspan="3"> |
|
<? |
|
foreach($note["servizioTecnico"] AS $servizio) { |
|
echo $servizioTecnico[$servizio]["id"] . " " . $servizioTecnico[$servizio]["descrizione"]; |
|
echo "<br>"; |
|
} |
|
?> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
if (!empty($note["vendorRatingMinimo"])) { ?> |
|
<tr> |
|
<th><?= __("Vendor Rating Minimo") ?></th> |
|
<td colspan="3"><?= $note["vendorRatingMinimo"] ?></td> |
|
</tr> |
|
<? } |
|
if (isset($note["conteggio_rotazione"])) { ?> |
|
<tr> |
|
<th><?= __("Conteggio rotazione") ?></th> |
|
<td colspan="3"> |
|
<? |
|
switch($note["conteggio_rotazione"]) { |
|
case "cpv_2": |
|
echo __("CPV 2 cifre (es. 03)"); |
|
break; |
|
case "cpv_3": |
|
echo __("CPV 3 cifre (es. 031)"); |
|
break; |
|
case "cpv_4": |
|
echo __("CPV 4 cifre (es. 0311)"); |
|
break; |
|
case "soa": |
|
echo "SOA"; |
|
break; |
|
case "soa_classifica": |
|
echo __("SOA e classifica"); |
|
break; |
|
case "servizi_tecnici": |
|
echo __("Servizi Tecnici"); |
|
break; |
|
default: echo __("Generale"); |
|
} |
|
?> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</table> |
|
<br> |
|
<? if ($printButton && !$exportVersion) { ?> |
|
<button type="button" onclick="$('.labelInfoOESorteggio').slideToggle()" class="btn btn-block btn-info"><?= __("Mostra/Nascondi informazioni OOEE") ?></button> |
|
<? } ?> |
|
<table style="width:100%" class="table table-striped table-condensed"> |
|
<thead> |
|
<tr style="text-align:center"> |
|
<th width="10">#</th> |
|
<? if ($exportVersion) { ?> |
|
<th><?= __("Identificativo OE") ?></th> |
|
<? } else { ?> |
|
<th width="200"><?= __("Codice fiscale impresa") ?></th> |
|
<th><?= __("Ragione Sociale") ?></th> |
|
<? } ?> |
|
<th width="200"><?= __("Esito") ?></th> |
|
<th width="10"><?= __("Conteggio Rotazione") ?></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
$i = 0; |
|
$ids = array_column($relazioni,"codice_operatore"); |
|
$ooee = oeManager::getOE($ids); |
|
foreach($relazioni AS $relazione) { |
|
$i++; |
|
$class= "even"; |
|
if ($i%2!=0) { $class = "odd"; } |
|
$stato = ""; |
|
$style = ""; |
|
if ($relazione["escluso"] == "S") { |
|
$stato = "Escluso"; |
|
$style = "style='background-color:#C00; color:#FFF'"; |
|
} else { |
|
if ($relazione["selezionato"] == "A") { |
|
$stato = "Selezionato automaticamente"; |
|
$style = "style='background-color:#04F; color:#FFF'"; |
|
} else if ($relazione["selezionato"] == "S") { |
|
$stato = "Selezionato"; |
|
$style = "style='background-color:#0C0; color:#FFF'"; |
|
} |
|
} |
|
$operatore = $ooee[$relazione["codice_operatore"]]; |
|
?> |
|
<tr class="<?= $class ?>" <?= $style ?>> |
|
<td width="10"><?= $relazione["identificativo"] ?></td> |
|
<? if ($exportVersion) { ?> |
|
<td><?= $operatore["codice"] ?></td> |
|
<? } else { ?> |
|
<td width="200"> |
|
<span class="labelInfoOESorteggio"><?= __("Codice operatore") ?>: <?= $operatore["codice"] ?></span> |
|
<span class="labelInfoOESorteggio collapse"><?= $operatore["codice_fiscale_impresa"] ?></span> |
|
</td> |
|
<td> |
|
<span class="labelInfoOESorteggio badge badge-danger"><?= __("Oscurato") ?></span> |
|
<span class="labelInfoOESorteggio collapse"><?= $operatore["ragione_sociale"] ?></span> |
|
</td> |
|
<? } ?> |
|
<td width="200" style="text-align:center"><?= $stato ?></td> |
|
<td width="10" style="text-align:center"><?= $relazione["conteggio"] ?></td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
<? |
|
} |
|
} |
|
?>
|