781 |
if (database::isError($res)) { |
if (database::isError($res)) { |
782 |
die($res->getMessage()); |
die($res->getMessage()); |
783 |
} |
} |
784 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
$row=& $res->fetchRow(DB_FETCHMODE_ASSOC); |
785 |
// XXX On stocke la date de dépôt actuelle du dossier d'instruction |
$this->updateArchiveData($row); |
786 |
// dans un attribut de la classe |
$this->archive_date_depot = $row['date_depot']; |
787 |
$this->archive_date_depot = $row['date_depot']; |
|
|
// Récupération de la valeur actuelle du délai, de l'accord tacite, |
|
|
// de l'état et de l'avis du dossier d'instruction |
|
|
$this->valF['archive_delai']=$row['delai']; |
|
|
$this->valF['archive_accord_tacite']=$row['accord_tacite']; |
|
|
$this->valF['archive_etat']=$row['etat']; |
|
|
$this->valF['archive_avis']=$row['avis_decision']; |
|
|
// Récupération de la valeur actuelle des 9 dates du dossier |
|
|
// d'instruction |
|
|
if ($row['date_complet'] != '') { |
|
|
$this->valF['archive_date_complet']=$row['date_complet']; |
|
|
} |
|
|
if ($row['date_dernier_depot'] != '') { |
|
|
$this->valF['archive_date_dernier_depot']=$row['date_dernier_depot']; |
|
|
} |
|
|
if ($row['date_rejet']!='') { |
|
|
$this->valF['archive_date_rejet']= $row['date_rejet']; |
|
|
} |
|
|
if ($row['date_limite']!='') { |
|
|
$this->valF['archive_date_limite']= $row['date_limite']; |
|
|
} |
|
|
if ($row['date_notification_delai']!='') { |
|
|
$this->valF['archive_date_notification_delai']= $row['date_notification_delai']; |
|
|
} |
|
|
if ($row['date_decision']!='') { |
|
|
$this->valF['archive_date_decision']= $row['date_decision']; |
|
|
} |
|
|
if ($row['date_validite']!='') { |
|
|
$this->valF['archive_date_validite']= $row['date_validite']; |
|
|
} |
|
|
if ($row['date_achevement']!='') { |
|
|
$this->valF['archive_date_achevement']= $row['date_achevement']; |
|
|
} |
|
|
if ($row['date_chantier']!='') { |
|
|
$this->valF['archive_date_chantier']= $row['date_chantier']; |
|
|
} |
|
|
if ($row['date_conformite']!='') { |
|
|
$this->valF['archive_date_conformite']= $row['date_conformite']; |
|
|
} |
|
|
if ($row['incompletude']!='') { |
|
|
$this->valF['archive_incompletude']= $row['incompletude']; |
|
|
} |
|
|
if ($row['evenement_suivant_tacite']!='') { |
|
|
$this->valF['archive_evenement_suivant_tacite']= $row['evenement_suivant_tacite']; |
|
|
} |
|
|
if ($row['evenement_suivant_tacite_incompletude']!='') { |
|
|
$this->valF['archive_evenement_suivant_tacite_incompletude']= $row['evenement_suivant_tacite_incompletude']; |
|
|
} |
|
|
if ($row['etat_pendant_incompletude']!='') { |
|
|
$this->valF['archive_etat_pendant_incompletude']= $row['etat_pendant_incompletude']; |
|
|
} |
|
|
if ($row['date_limite_incompletude']!='') { |
|
|
$this->valF['archive_date_limite_incompletude']= $row['date_limite_incompletude']; |
|
|
} |
|
|
if ($row['delai_incompletude']!='') { |
|
|
$this->valF['archive_delai_incompletude']= $row['delai_incompletude']; |
|
|
} |
|
|
if ($row['autorite_competente']!='') { |
|
|
$this->valF['archive_autorite_competente']= $row['autorite_competente']; |
|
|
} |
|
|
if ($row['duree_validite']!='') { |
|
|
$this->valF['duree_validite']= $row['duree_validite']; |
|
|
} |
|
|
} |
|
788 |
// Récupération de la duree de validite du dossier d'autorisation |
// Récupération de la duree de validite du dossier d'autorisation |
789 |
$sql = "SELECT duree_validite_parametrage |
$sql = "SELECT duree_validite_parametrage |
790 |
FROM ".DB_PREFIXE."dossier_autorisation_type_detaille |
FROM ".DB_PREFIXE."dossier_autorisation_type_detaille |
2188 |
// Retourne résultat |
// Retourne résultat |
2189 |
return $non_verrouillable; |
return $non_verrouillable; |
2190 |
} |
} |
2191 |
|
|
2192 |
|
/** |
2193 |
|
* Mise à jour des champs archive_* |
2194 |
|
* @param mixed $row La ligne de données |
2195 |
|
*/ |
2196 |
|
public function updateArchiveData($row){ |
2197 |
|
|
2198 |
|
// Récupération de la valeur actuelle du délai, de l'accord tacite, |
2199 |
|
// de l'état et de l'avis du dossier d'instruction |
2200 |
|
$this->valF['archive_delai']=$row['delai']; |
2201 |
|
$this->valF['archive_accord_tacite']=$row['accord_tacite']; |
2202 |
|
$this->valF['archive_etat']=$row['etat']; |
2203 |
|
$this->valF['archive_avis']=$row['avis_decision']; |
2204 |
|
// Récupération de la valeur actuelle des 9 dates du dossier |
2205 |
|
// d'instruction |
2206 |
|
if ($row['date_complet'] != '') { |
2207 |
|
$this->valF['archive_date_complet']=$row['date_complet']; |
2208 |
|
} |
2209 |
|
if ($row['date_dernier_depot'] != '') { |
2210 |
|
$this->valF['archive_date_dernier_depot']=$row['date_dernier_depot']; |
2211 |
|
} |
2212 |
|
if ($row['date_rejet']!='') { |
2213 |
|
$this->valF['archive_date_rejet']= $row['date_rejet']; |
2214 |
|
} |
2215 |
|
if ($row['date_limite']!='') { |
2216 |
|
$this->valF['archive_date_limite']= $row['date_limite']; |
2217 |
|
} |
2218 |
|
if ($row['date_notification_delai']!='') { |
2219 |
|
$this->valF['archive_date_notification_delai']= $row['date_notification_delai']; |
2220 |
|
} |
2221 |
|
if ($row['date_decision']!='') { |
2222 |
|
$this->valF['archive_date_decision']= $row['date_decision']; |
2223 |
|
} |
2224 |
|
if ($row['date_validite']!='') { |
2225 |
|
$this->valF['archive_date_validite']= $row['date_validite']; |
2226 |
|
} |
2227 |
|
if ($row['date_achevement']!='') { |
2228 |
|
$this->valF['archive_date_achevement']= $row['date_achevement']; |
2229 |
|
} |
2230 |
|
if ($row['date_chantier']!='') { |
2231 |
|
$this->valF['archive_date_chantier']= $row['date_chantier']; |
2232 |
|
} |
2233 |
|
if ($row['date_conformite']!='') { |
2234 |
|
$this->valF['archive_date_conformite']= $row['date_conformite']; |
2235 |
|
} |
2236 |
|
if ($row['incompletude']!='') { |
2237 |
|
$this->valF['archive_incompletude']= $row['incompletude']; |
2238 |
|
} |
2239 |
|
if ($row['evenement_suivant_tacite']!='') { |
2240 |
|
$this->valF['archive_evenement_suivant_tacite']= $row['evenement_suivant_tacite']; |
2241 |
|
} |
2242 |
|
if ($row['evenement_suivant_tacite_incompletude']!='') { |
2243 |
|
$this->valF['archive_evenement_suivant_tacite_incompletude']= $row['evenement_suivant_tacite_incompletude']; |
2244 |
|
} |
2245 |
|
if ($row['etat_pendant_incompletude']!='') { |
2246 |
|
$this->valF['archive_etat_pendant_incompletude']= $row['etat_pendant_incompletude']; |
2247 |
|
} |
2248 |
|
if ($row['date_limite_incompletude']!='') { |
2249 |
|
$this->valF['archive_date_limite_incompletude']= $row['date_limite_incompletude']; |
2250 |
|
} |
2251 |
|
if ($row['delai_incompletude']!='') { |
2252 |
|
$this->valF['archive_delai_incompletude']= $row['delai_incompletude']; |
2253 |
|
} |
2254 |
|
if ($row['autorite_competente']!='') { |
2255 |
|
$this->valF['archive_autorite_competente']= $row['autorite_competente']; |
2256 |
|
} |
2257 |
|
if ($row['duree_validite']!='') { |
2258 |
|
$this->valF['duree_validite']= $row['duree_validite']; |
2259 |
|
} |
2260 |
|
} |
2261 |
}// fin classe |
}// fin classe |
2262 |
?> |
?> |