1013 |
} |
} |
1014 |
|
|
1015 |
$dossier_autorisation->modifier($valDossierAutorisation, $this->db, DEBUG); |
$dossier_autorisation->modifier($valDossierAutorisation, $this->db, DEBUG); |
1016 |
|
|
1017 |
|
// Suppression du liens entre les lots et le DA |
1018 |
|
$valLot['dossier_autorisation'] = NULL; |
1019 |
|
$this->db->autoExecute(DB_PREFIXE."lot", $valLot, DB_AUTOQUERY_UPDATE, "dossier_autorisation='".$IDdossier_autorisation."'"); |
1020 |
|
|
1021 |
|
// Liaison des lots du DI avec le DA |
1022 |
|
$sqlLot = "SELECT lot FROM ".DB_PREFIXE."lien_dossier_lot WHERE dossier='".$this->valF['dossier']."'"; |
1023 |
|
$res = $this->db->query($sqlLot); |
1024 |
|
$this->addToLog($sqlLot); |
1025 |
|
$this->f->isDatabaseError(); |
1026 |
|
while($rowLot = $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
1027 |
|
$valLot['dossier_autorisation'] = $IDdossier_autorisation; |
1028 |
|
$this->db->autoExecute(DB_PREFIXE."lot", $valLot, DB_AUTOQUERY_UPDATE, "lot=".$rowLot['lot']); |
1029 |
|
} |
1030 |
} |
} |
1031 |
|
|
1032 |
// Récupération de l'identifiant du dossier d'autorisation lié au dossier d'instruction |
// Récupération de l'identifiant du dossier d'autorisation lié au dossier d'instruction |