52 |
); |
); |
53 |
|
|
54 |
|
|
55 |
function instruction($id, &$db, $debug) { |
function __construct($id, &$db, $debug) { |
56 |
$this->constructeur($id, $db, $debug); |
$this->constructeur($id, $db, $debug); |
57 |
} |
} |
58 |
|
|
1176 |
*/ |
*/ |
1177 |
// Initialisation |
// Initialisation |
1178 |
$valF = ""; |
$valF = ""; |
1179 |
|
// Initialisation du type d'événement |
1180 |
|
$type_evmt = ""; |
1181 |
// Récupération de l'action correspondante à l'événement |
// Récupération de l'action correspondante à l'événement |
1182 |
$sql = "SELECT action |
$sql = "SELECT action |
1183 |
FROM ".DB_PREFIXE."evenement |
FROM ".DB_PREFIXE."evenement |
1197 |
die($res->getMessage()); |
die($res->getMessage()); |
1198 |
} |
} |
1199 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
1200 |
|
// Récupération du type d'événement |
1201 |
|
$type_evmt = $row['type']; |
1202 |
// Si la date de retour signature est éditée on vérifie si il existe un événement automatique |
// Si la date de retour signature est éditée on vérifie si il existe un événement automatique |
1203 |
if ($this->getVal('date_retour_signature') == "" AND |
if ($this->getVal('date_retour_signature') == "" AND |
1204 |
$this->valF['date_retour_signature'] != "" AND |
$this->valF['date_retour_signature'] != "" AND |
1290 |
/** |
/** |
1291 |
* REFERENTIEL ARRETE |
* REFERENTIEL ARRETE |
1292 |
*/ |
*/ |
1293 |
if ($this->f->getParameter('option_referentiel_arrete') != "") { |
// Si l'option référentiel arrêté est activé et l'événement est de type |
1294 |
|
// arrêté |
1295 |
|
if ($this->f->getParameter('option_referentiel_arrete') != "" AND |
1296 |
|
$type_evmt == "arrete") { |
1297 |
if ($this->valF['date_retour_signature'] != $this->getVal('date_retour_signature')) { |
if ($this->valF['date_retour_signature'] != $this->getVal('date_retour_signature')) { |
1298 |
$msgenque = new MessageEnqueuer(); |
$msgenque = new MessageEnqueuer(); |
1299 |
$sqlArrete = "SELECT instruction.signataire_arrete as \"ws_DA_In_Signataire\", |
$sqlArrete = "SELECT instruction.signataire_arrete as \"ws_DA_In_Signataire\", |
1306 |
'' as \"ws_DA_In_Sigle\", |
'' as \"ws_DA_In_Sigle\", |
1307 |
instruction.etat as \"ws_DA_In_Decision\", |
instruction.etat as \"ws_DA_In_Decision\", |
1308 |
dossier.date_depot as \"ws_DA_In_Dte_Depot_Dem\", |
dossier.date_depot as \"ws_DA_In_Dte_Depot_Dem\", |
1309 |
dossier.terrain_numero as \"ws_DA_In_N_Voie\", |
dossier.terrain_adresse_voie_numero as \"ws_DA_In_N_Voie\", |
1310 |
'' as \"ws_DA_In_Type_Voie\", |
'' as \"ws_DA_In_Type_Voie\", |
1311 |
dossier.terrain_adresse_voie as \"ws_DA_In_Adresse1\", |
dossier.terrain_adresse_voie as \"ws_DA_In_Adresse1\", |
1312 |
dossier.terrain_adresse_lieu_dit as \"ws_DA_In_Adresse2\", |
dossier.terrain_adresse_lieu_dit as \"ws_DA_In_Adresse2\", |