1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
nhaye |
3059 |
//gen openMairie le 04/06/2014 12:16 |
4 |
nhaye |
428 |
|
5 |
atreal |
307 |
require_once ("../obj/om_dbform.class.php"); |
6 |
fraynaud |
3 |
|
7 |
atreal |
307 |
class instruction_gen extends om_dbform { |
8 |
|
|
var $table="instruction"; |
9 |
|
|
var $clePrimaire="instruction"; |
10 |
|
|
var $typeCle="N"; |
11 |
nhaye |
428 |
var $required_field=array( |
12 |
vpihour |
1127 |
"date_evenement", |
13 |
fmichon |
475 |
"evenement", |
14 |
|
|
"instruction" |
15 |
nhaye |
428 |
); |
16 |
atreal |
307 |
var $retourformulaire; |
17 |
fraynaud |
3 |
|
18 |
atreal |
307 |
function setvalF($val) { |
19 |
fraynaud |
342 |
//affectation valeur formulaire |
20 |
fmichon |
456 |
if (!is_numeric($val['instruction'])) { |
21 |
|
|
$this->valF['instruction'] = ""; // -> requis |
22 |
nhaye |
428 |
} else { |
23 |
fraynaud |
342 |
$this->valF['instruction'] = $val['instruction']; |
24 |
nhaye |
428 |
} |
25 |
fmichon |
456 |
if ($val['destinataire'] == "") { |
26 |
|
|
$this->valF['destinataire'] = ""; // -> default |
27 |
|
|
} else { |
28 |
|
|
$this->valF['destinataire'] = $val['destinataire']; |
29 |
|
|
} |
30 |
vpihour |
1127 |
if ($val['date_evenement'] != "") { |
31 |
|
|
$this->valF['date_evenement'] = $this->dateDB($val['date_evenement']); |
32 |
nhaye |
428 |
} |
33 |
fmichon |
456 |
if (!is_numeric($val['evenement'])) { |
34 |
|
|
$this->valF['evenement'] = ""; // -> requis |
35 |
nhaye |
428 |
} else { |
36 |
fraynaud |
342 |
$this->valF['evenement'] = $val['evenement']; |
37 |
nhaye |
428 |
} |
38 |
fmichon |
456 |
if ($val['lettretype'] == "") { |
39 |
|
|
$this->valF['lettretype'] = ""; // -> default |
40 |
|
|
} else { |
41 |
|
|
$this->valF['lettretype'] = $val['lettretype']; |
42 |
|
|
} |
43 |
nhaye |
2644 |
$this->valF['complement_om_html'] = $val['complement_om_html']; |
44 |
|
|
$this->valF['complement2_om_html'] = $val['complement2_om_html']; |
45 |
fmichon |
456 |
if ($val['dossier'] == "") { |
46 |
nhaye |
446 |
$this->valF['dossier'] = NULL; |
47 |
|
|
} else { |
48 |
|
|
$this->valF['dossier'] = $val['dossier']; |
49 |
|
|
} |
50 |
fmichon |
456 |
if ($val['action'] == "") { |
51 |
nhaye |
446 |
$this->valF['action'] = NULL; |
52 |
|
|
} else { |
53 |
|
|
$this->valF['action'] = $val['action']; |
54 |
|
|
} |
55 |
fmichon |
456 |
if (!is_numeric($val['delai'])) { |
56 |
|
|
$this->valF['delai'] = NULL; |
57 |
nhaye |
428 |
} else { |
58 |
fraynaud |
342 |
$this->valF['delai'] = $val['delai']; |
59 |
nhaye |
428 |
} |
60 |
fmichon |
456 |
if ($val['etat'] == "") { |
61 |
nhaye |
446 |
$this->valF['etat'] = NULL; |
62 |
|
|
} else { |
63 |
|
|
$this->valF['etat'] = $val['etat']; |
64 |
|
|
} |
65 |
fmichon |
456 |
if ($val['accord_tacite'] == "") { |
66 |
|
|
$this->valF['accord_tacite'] = ""; // -> default |
67 |
nhaye |
428 |
} else { |
68 |
fmichon |
456 |
$this->valF['accord_tacite'] = $val['accord_tacite']; |
69 |
|
|
} |
70 |
|
|
if (!is_numeric($val['delai_notification'])) { |
71 |
|
|
$this->valF['delai_notification'] = 0; // -> default |
72 |
|
|
} else { |
73 |
fraynaud |
342 |
$this->valF['delai_notification'] = $val['delai_notification']; |
74 |
nhaye |
428 |
} |
75 |
fmichon |
456 |
if (!is_numeric($val['archive_delai'])) { |
76 |
|
|
$this->valF['archive_delai'] = 0; // -> default |
77 |
nhaye |
428 |
} else { |
78 |
fraynaud |
342 |
$this->valF['archive_delai'] = $val['archive_delai']; |
79 |
nhaye |
428 |
} |
80 |
|
|
if ($val['archive_date_complet'] != "") { |
81 |
|
|
$this->valF['archive_date_complet'] = $this->dateDB($val['archive_date_complet']); |
82 |
|
|
} else { |
83 |
|
|
$this->valF['archive_date_complet'] = NULL; |
84 |
|
|
} |
85 |
|
|
if ($val['archive_date_rejet'] != "") { |
86 |
|
|
$this->valF['archive_date_rejet'] = $this->dateDB($val['archive_date_rejet']); |
87 |
|
|
} else { |
88 |
|
|
$this->valF['archive_date_rejet'] = NULL; |
89 |
|
|
} |
90 |
|
|
if ($val['archive_date_limite'] != "") { |
91 |
|
|
$this->valF['archive_date_limite'] = $this->dateDB($val['archive_date_limite']); |
92 |
|
|
} else { |
93 |
|
|
$this->valF['archive_date_limite'] = NULL; |
94 |
|
|
} |
95 |
|
|
if ($val['archive_date_notification_delai'] != "") { |
96 |
|
|
$this->valF['archive_date_notification_delai'] = $this->dateDB($val['archive_date_notification_delai']); |
97 |
|
|
} else { |
98 |
|
|
$this->valF['archive_date_notification_delai'] = NULL; |
99 |
|
|
} |
100 |
fmichon |
456 |
if ($val['archive_accord_tacite'] == "") { |
101 |
|
|
$this->valF['archive_accord_tacite'] = ""; // -> default |
102 |
|
|
} else { |
103 |
|
|
$this->valF['archive_accord_tacite'] = $val['archive_accord_tacite']; |
104 |
|
|
} |
105 |
|
|
if ($val['archive_etat'] == "") { |
106 |
|
|
$this->valF['archive_etat'] = ""; // -> default |
107 |
|
|
} else { |
108 |
|
|
$this->valF['archive_etat'] = $val['archive_etat']; |
109 |
|
|
} |
110 |
nhaye |
428 |
if ($val['archive_date_decision'] != "") { |
111 |
|
|
$this->valF['archive_date_decision'] = $this->dateDB($val['archive_date_decision']); |
112 |
|
|
} else { |
113 |
|
|
$this->valF['archive_date_decision'] = NULL; |
114 |
|
|
} |
115 |
fmichon |
456 |
if ($val['archive_avis'] == "") { |
116 |
|
|
$this->valF['archive_avis'] = ""; // -> default |
117 |
|
|
} else { |
118 |
|
|
$this->valF['archive_avis'] = $val['archive_avis']; |
119 |
|
|
} |
120 |
nhaye |
428 |
if ($val['archive_date_validite'] != "") { |
121 |
|
|
$this->valF['archive_date_validite'] = $this->dateDB($val['archive_date_validite']); |
122 |
|
|
} else { |
123 |
|
|
$this->valF['archive_date_validite'] = NULL; |
124 |
|
|
} |
125 |
|
|
if ($val['archive_date_achevement'] != "") { |
126 |
|
|
$this->valF['archive_date_achevement'] = $this->dateDB($val['archive_date_achevement']); |
127 |
|
|
} else { |
128 |
|
|
$this->valF['archive_date_achevement'] = NULL; |
129 |
|
|
} |
130 |
|
|
if ($val['archive_date_chantier'] != "") { |
131 |
|
|
$this->valF['archive_date_chantier'] = $this->dateDB($val['archive_date_chantier']); |
132 |
|
|
} else { |
133 |
|
|
$this->valF['archive_date_chantier'] = NULL; |
134 |
|
|
} |
135 |
|
|
if ($val['archive_date_conformite'] != "") { |
136 |
|
|
$this->valF['archive_date_conformite'] = $this->dateDB($val['archive_date_conformite']); |
137 |
|
|
} else { |
138 |
|
|
$this->valF['archive_date_conformite'] = NULL; |
139 |
|
|
} |
140 |
nhaye |
2644 |
$this->valF['complement3_om_html'] = $val['complement3_om_html']; |
141 |
|
|
$this->valF['complement4_om_html'] = $val['complement4_om_html']; |
142 |
|
|
$this->valF['complement5_om_html'] = $val['complement5_om_html']; |
143 |
|
|
$this->valF['complement6_om_html'] = $val['complement6_om_html']; |
144 |
|
|
$this->valF['complement7_om_html'] = $val['complement7_om_html']; |
145 |
|
|
$this->valF['complement8_om_html'] = $val['complement8_om_html']; |
146 |
|
|
$this->valF['complement9_om_html'] = $val['complement9_om_html']; |
147 |
|
|
$this->valF['complement10_om_html'] = $val['complement10_om_html']; |
148 |
|
|
$this->valF['complement11_om_html'] = $val['complement11_om_html']; |
149 |
|
|
$this->valF['complement12_om_html'] = $val['complement12_om_html']; |
150 |
|
|
$this->valF['complement13_om_html'] = $val['complement13_om_html']; |
151 |
|
|
$this->valF['complement14_om_html'] = $val['complement14_om_html']; |
152 |
|
|
$this->valF['complement15_om_html'] = $val['complement15_om_html']; |
153 |
vpihour |
489 |
if (!is_numeric($val['avis_decision'])) { |
154 |
|
|
$this->valF['avis_decision'] = NULL; |
155 |
|
|
} else { |
156 |
|
|
$this->valF['avis_decision'] = $val['avis_decision']; |
157 |
|
|
} |
158 |
vpihour |
1128 |
if ($val['date_finalisation_courrier'] != "") { |
159 |
|
|
$this->valF['date_finalisation_courrier'] = $this->dateDB($val['date_finalisation_courrier']); |
160 |
vpihour |
1127 |
} else { |
161 |
vpihour |
1128 |
$this->valF['date_finalisation_courrier'] = NULL; |
162 |
vpihour |
1127 |
} |
163 |
|
|
if ($val['date_envoi_signature'] != "") { |
164 |
|
|
$this->valF['date_envoi_signature'] = $this->dateDB($val['date_envoi_signature']); |
165 |
|
|
} else { |
166 |
|
|
$this->valF['date_envoi_signature'] = NULL; |
167 |
|
|
} |
168 |
|
|
if ($val['date_retour_signature'] != "") { |
169 |
|
|
$this->valF['date_retour_signature'] = $this->dateDB($val['date_retour_signature']); |
170 |
|
|
} else { |
171 |
|
|
$this->valF['date_retour_signature'] = NULL; |
172 |
|
|
} |
173 |
|
|
if ($val['date_envoi_rar'] != "") { |
174 |
|
|
$this->valF['date_envoi_rar'] = $this->dateDB($val['date_envoi_rar']); |
175 |
|
|
} else { |
176 |
|
|
$this->valF['date_envoi_rar'] = NULL; |
177 |
|
|
} |
178 |
|
|
if ($val['date_retour_rar'] != "") { |
179 |
|
|
$this->valF['date_retour_rar'] = $this->dateDB($val['date_retour_rar']); |
180 |
|
|
} else { |
181 |
|
|
$this->valF['date_retour_rar'] = NULL; |
182 |
|
|
} |
183 |
|
|
if ($val['date_envoi_controle_legalite'] != "") { |
184 |
|
|
$this->valF['date_envoi_controle_legalite'] = $this->dateDB($val['date_envoi_controle_legalite']); |
185 |
|
|
} else { |
186 |
|
|
$this->valF['date_envoi_controle_legalite'] = NULL; |
187 |
|
|
} |
188 |
|
|
if ($val['date_retour_controle_legalite'] != "") { |
189 |
|
|
$this->valF['date_retour_controle_legalite'] = $this->dateDB($val['date_retour_controle_legalite']); |
190 |
|
|
} else { |
191 |
|
|
$this->valF['date_retour_controle_legalite'] = NULL; |
192 |
|
|
} |
193 |
vpihour |
1226 |
if (!is_numeric($val['signataire_arrete'])) { |
194 |
|
|
$this->valF['signataire_arrete'] = NULL; |
195 |
|
|
} else { |
196 |
|
|
$this->valF['signataire_arrete'] = $val['signataire_arrete']; |
197 |
|
|
} |
198 |
vpihour |
1289 |
if ($val['numero_arrete'] == "") { |
199 |
|
|
$this->valF['numero_arrete'] = NULL; |
200 |
|
|
} else { |
201 |
|
|
$this->valF['numero_arrete'] = $val['numero_arrete']; |
202 |
|
|
} |
203 |
nhaye |
1571 |
if ($val['archive_date_dernier_depot'] != "") { |
204 |
|
|
$this->valF['archive_date_dernier_depot'] = $this->dateDB($val['archive_date_dernier_depot']); |
205 |
|
|
} else { |
206 |
|
|
$this->valF['archive_date_dernier_depot'] = NULL; |
207 |
|
|
} |
208 |
nhaye |
1717 |
if ($val['archive_incompletude'] == 1 || $val['archive_incompletude'] == "t" || $val['archive_incompletude'] == "Oui") { |
209 |
|
|
$this->valF['archive_incompletude'] = true; |
210 |
|
|
} else { |
211 |
|
|
$this->valF['archive_incompletude'] = false; |
212 |
|
|
} |
213 |
|
|
if (!is_numeric($val['archive_evenement_suivant_tacite'])) { |
214 |
|
|
$this->valF['archive_evenement_suivant_tacite'] = NULL; |
215 |
|
|
} else { |
216 |
|
|
$this->valF['archive_evenement_suivant_tacite'] = $val['archive_evenement_suivant_tacite']; |
217 |
|
|
} |
218 |
|
|
if (!is_numeric($val['archive_evenement_suivant_tacite_incompletude'])) { |
219 |
|
|
$this->valF['archive_evenement_suivant_tacite_incompletude'] = NULL; |
220 |
|
|
} else { |
221 |
|
|
$this->valF['archive_evenement_suivant_tacite_incompletude'] = $val['archive_evenement_suivant_tacite_incompletude']; |
222 |
|
|
} |
223 |
|
|
if ($val['archive_etat_pendant_incompletude'] == "") { |
224 |
|
|
$this->valF['archive_etat_pendant_incompletude'] = NULL; |
225 |
|
|
} else { |
226 |
|
|
$this->valF['archive_etat_pendant_incompletude'] = $val['archive_etat_pendant_incompletude']; |
227 |
|
|
} |
228 |
|
|
if ($val['archive_date_limite_incompletude'] != "") { |
229 |
|
|
$this->valF['archive_date_limite_incompletude'] = $this->dateDB($val['archive_date_limite_incompletude']); |
230 |
|
|
} else { |
231 |
|
|
$this->valF['archive_date_limite_incompletude'] = NULL; |
232 |
|
|
} |
233 |
|
|
if (!is_numeric($val['archive_delai_incompletude'])) { |
234 |
|
|
$this->valF['archive_delai_incompletude'] = NULL; |
235 |
|
|
} else { |
236 |
|
|
$this->valF['archive_delai_incompletude'] = $val['archive_delai_incompletude']; |
237 |
|
|
} |
238 |
vpihour |
1783 |
if ($val['code_barres'] == "") { |
239 |
vpihour |
1782 |
$this->valF['code_barres'] = NULL; |
240 |
|
|
} else { |
241 |
|
|
$this->valF['code_barres'] = $val['code_barres']; |
242 |
|
|
} |
243 |
vpihour |
1894 |
if ($val['om_fichier_instruction'] == "") { |
244 |
|
|
$this->valF['om_fichier_instruction'] = NULL; |
245 |
|
|
} else { |
246 |
|
|
$this->valF['om_fichier_instruction'] = $val['om_fichier_instruction']; |
247 |
|
|
} |
248 |
|
|
if ($val['om_final_instruction'] == 1 || $val['om_final_instruction'] == "t" || $val['om_final_instruction'] == "Oui") { |
249 |
|
|
$this->valF['om_final_instruction'] = true; |
250 |
|
|
} else { |
251 |
|
|
$this->valF['om_final_instruction'] = false; |
252 |
|
|
} |
253 |
softime |
2030 |
if (!is_numeric($val['document_numerise'])) { |
254 |
|
|
$this->valF['document_numerise'] = NULL; |
255 |
nhaye |
1945 |
} else { |
256 |
softime |
2030 |
$this->valF['document_numerise'] = $val['document_numerise']; |
257 |
nhaye |
1945 |
} |
258 |
nhaye |
2099 |
if (!is_numeric($val['archive_autorite_competente'])) { |
259 |
|
|
$this->valF['archive_autorite_competente'] = NULL; |
260 |
|
|
} else { |
261 |
|
|
$this->valF['archive_autorite_competente'] = $val['archive_autorite_competente']; |
262 |
|
|
} |
263 |
nhaye |
2101 |
if (!is_numeric($val['autorite_competente'])) { |
264 |
|
|
$this->valF['autorite_competente'] = NULL; |
265 |
|
|
} else { |
266 |
|
|
$this->valF['autorite_competente'] = $val['autorite_competente']; |
267 |
|
|
} |
268 |
softime |
2142 |
if (!is_numeric($val['duree_validite_parametrage'])) { |
269 |
|
|
$this->valF['duree_validite_parametrage'] = 0; // -> default |
270 |
|
|
} else { |
271 |
|
|
$this->valF['duree_validite_parametrage'] = $val['duree_validite_parametrage']; |
272 |
|
|
} |
273 |
|
|
if (!is_numeric($val['duree_validite'])) { |
274 |
|
|
$this->valF['duree_validite'] = 0; // -> default |
275 |
|
|
} else { |
276 |
|
|
$this->valF['duree_validite'] = $val['duree_validite']; |
277 |
|
|
} |
278 |
nhaye |
3059 |
if ($val['archive_incomplet_notifie'] == 1 || $val['archive_incomplet_notifie'] == "t" || $val['archive_incomplet_notifie'] == "Oui") { |
279 |
|
|
$this->valF['archive_incomplet_notifie'] = true; |
280 |
|
|
} else { |
281 |
|
|
$this->valF['archive_incomplet_notifie'] = false; |
282 |
|
|
} |
283 |
atreal |
307 |
} |
284 |
fraynaud |
3 |
|
285 |
atreal |
307 |
//================================================= |
286 |
|
|
//cle primaire automatique [automatic primary key] |
287 |
|
|
//================================================== |
288 |
fraynaud |
3 |
|
289 |
atreal |
307 |
function setId(&$db) { |
290 |
|
|
//numero automatique |
291 |
nhaye |
428 |
$this->valF[$this->clePrimaire] = $db->nextId(DB_PREFIXE.$this->table); |
292 |
atreal |
307 |
} |
293 |
fraynaud |
3 |
|
294 |
atreal |
307 |
function setValFAjout($val) { |
295 |
|
|
//numero automatique -> pas de controle ajout cle primaire |
296 |
|
|
} |
297 |
fraynaud |
3 |
|
298 |
atreal |
307 |
function verifierAjout() { |
299 |
|
|
//numero automatique -> pas de verfication de cle primaire |
300 |
|
|
} |
301 |
fraynaud |
3 |
|
302 |
atreal |
307 |
//========================== |
303 |
|
|
// Formulaire [form] |
304 |
|
|
//========================== |
305 |
fraynaud |
3 |
|
306 |
atreal |
307 |
function setType(&$form,$maj) { |
307 |
|
|
//type |
308 |
|
|
if ($maj==0){ //ajout |
309 |
|
|
$form->setType('instruction','hidden');// cle automatique |
310 |
|
|
$form->setType('destinataire','text'); |
311 |
|
|
if($this->retourformulaire=='') |
312 |
vpihour |
1127 |
$form->setType('date_evenement','date'); |
313 |
atreal |
307 |
else |
314 |
vpihour |
1127 |
$form->setType('date_evenement','date2'); |
315 |
nhaye |
428 |
|
316 |
|
|
if($this->retourformulaire=='evenement' |
317 |
|
|
and $form->val['evenement'] == $this->getParameter('idxformulaire')) { |
318 |
|
|
$form->setType('evenement','selecthiddenstatic'); |
319 |
|
|
} else { |
320 |
atreal |
307 |
$form->setType('evenement','select'); |
321 |
nhaye |
428 |
} |
322 |
atreal |
307 |
$form->setType('lettretype','text'); |
323 |
nhaye |
2644 |
$form->setType('complement_om_html','html'); |
324 |
|
|
$form->setType('complement2_om_html','html'); |
325 |
nhaye |
428 |
|
326 |
|
|
if($this->retourformulaire=='dossier' |
327 |
|
|
and $form->val['dossier'] == $this->getParameter('idxformulaire')) { |
328 |
|
|
$form->setType('dossier','selecthiddenstatic'); |
329 |
|
|
} else { |
330 |
atreal |
307 |
$form->setType('dossier','select'); |
331 |
nhaye |
428 |
} |
332 |
|
|
|
333 |
|
|
if($this->retourformulaire=='action' |
334 |
|
|
and $form->val['action'] == $this->getParameter('idxformulaire')) { |
335 |
|
|
$form->setType('action','selecthiddenstatic'); |
336 |
|
|
} else { |
337 |
atreal |
307 |
$form->setType('action','select'); |
338 |
nhaye |
428 |
} |
339 |
atreal |
307 |
$form->setType('delai','text'); |
340 |
nhaye |
428 |
|
341 |
|
|
if($this->retourformulaire=='etat' |
342 |
|
|
and $form->val['etat'] == $this->getParameter('idxformulaire')) { |
343 |
|
|
$form->setType('etat','selecthiddenstatic'); |
344 |
|
|
} else { |
345 |
atreal |
307 |
$form->setType('etat','select'); |
346 |
nhaye |
428 |
} |
347 |
atreal |
307 |
$form->setType('accord_tacite','text'); |
348 |
|
|
$form->setType('delai_notification','text'); |
349 |
|
|
$form->setType('archive_delai','text'); |
350 |
|
|
if($this->retourformulaire=='') |
351 |
|
|
$form->setType('archive_date_complet','date'); |
352 |
|
|
else |
353 |
|
|
$form->setType('archive_date_complet','date2'); |
354 |
|
|
if($this->retourformulaire=='') |
355 |
|
|
$form->setType('archive_date_rejet','date'); |
356 |
|
|
else |
357 |
|
|
$form->setType('archive_date_rejet','date2'); |
358 |
|
|
if($this->retourformulaire=='') |
359 |
|
|
$form->setType('archive_date_limite','date'); |
360 |
|
|
else |
361 |
|
|
$form->setType('archive_date_limite','date2'); |
362 |
|
|
if($this->retourformulaire=='') |
363 |
|
|
$form->setType('archive_date_notification_delai','date'); |
364 |
|
|
else |
365 |
|
|
$form->setType('archive_date_notification_delai','date2'); |
366 |
|
|
$form->setType('archive_accord_tacite','text'); |
367 |
|
|
$form->setType('archive_etat','text'); |
368 |
|
|
if($this->retourformulaire=='') |
369 |
|
|
$form->setType('archive_date_decision','date'); |
370 |
|
|
else |
371 |
|
|
$form->setType('archive_date_decision','date2'); |
372 |
|
|
$form->setType('archive_avis','text'); |
373 |
|
|
if($this->retourformulaire=='') |
374 |
|
|
$form->setType('archive_date_validite','date'); |
375 |
|
|
else |
376 |
|
|
$form->setType('archive_date_validite','date2'); |
377 |
|
|
if($this->retourformulaire=='') |
378 |
|
|
$form->setType('archive_date_achevement','date'); |
379 |
|
|
else |
380 |
|
|
$form->setType('archive_date_achevement','date2'); |
381 |
|
|
if($this->retourformulaire=='') |
382 |
|
|
$form->setType('archive_date_chantier','date'); |
383 |
|
|
else |
384 |
|
|
$form->setType('archive_date_chantier','date2'); |
385 |
|
|
if($this->retourformulaire=='') |
386 |
|
|
$form->setType('archive_date_conformite','date'); |
387 |
|
|
else |
388 |
|
|
$form->setType('archive_date_conformite','date2'); |
389 |
nhaye |
2644 |
$form->setType('complement3_om_html','html'); |
390 |
|
|
$form->setType('complement4_om_html','html'); |
391 |
|
|
$form->setType('complement5_om_html','html'); |
392 |
|
|
$form->setType('complement6_om_html','html'); |
393 |
|
|
$form->setType('complement7_om_html','html'); |
394 |
|
|
$form->setType('complement8_om_html','html'); |
395 |
|
|
$form->setType('complement9_om_html','html'); |
396 |
|
|
$form->setType('complement10_om_html','html'); |
397 |
|
|
$form->setType('complement11_om_html','html'); |
398 |
|
|
$form->setType('complement12_om_html','html'); |
399 |
|
|
$form->setType('complement13_om_html','html'); |
400 |
|
|
$form->setType('complement14_om_html','html'); |
401 |
|
|
$form->setType('complement15_om_html','html'); |
402 |
vpihour |
489 |
|
403 |
|
|
if($this->retourformulaire=='avis_decision' |
404 |
|
|
and $form->val['avis_decision'] == $this->getParameter('idxformulaire')) { |
405 |
|
|
$form->setType('avis_decision','selecthiddenstatic'); |
406 |
|
|
} else { |
407 |
|
|
$form->setType('avis_decision','select'); |
408 |
|
|
} |
409 |
vpihour |
1127 |
if($this->retourformulaire=='') |
410 |
vpihour |
1128 |
$form->setType('date_finalisation_courrier','date'); |
411 |
vpihour |
1127 |
else |
412 |
vpihour |
1128 |
$form->setType('date_finalisation_courrier','date2'); |
413 |
vpihour |
1127 |
if($this->retourformulaire=='') |
414 |
|
|
$form->setType('date_envoi_signature','date'); |
415 |
|
|
else |
416 |
|
|
$form->setType('date_envoi_signature','date2'); |
417 |
|
|
if($this->retourformulaire=='') |
418 |
|
|
$form->setType('date_retour_signature','date'); |
419 |
|
|
else |
420 |
|
|
$form->setType('date_retour_signature','date2'); |
421 |
|
|
if($this->retourformulaire=='') |
422 |
|
|
$form->setType('date_envoi_rar','date'); |
423 |
|
|
else |
424 |
|
|
$form->setType('date_envoi_rar','date2'); |
425 |
|
|
if($this->retourformulaire=='') |
426 |
|
|
$form->setType('date_retour_rar','date'); |
427 |
|
|
else |
428 |
|
|
$form->setType('date_retour_rar','date2'); |
429 |
|
|
if($this->retourformulaire=='') |
430 |
|
|
$form->setType('date_envoi_controle_legalite','date'); |
431 |
|
|
else |
432 |
|
|
$form->setType('date_envoi_controle_legalite','date2'); |
433 |
|
|
if($this->retourformulaire=='') |
434 |
|
|
$form->setType('date_retour_controle_legalite','date'); |
435 |
|
|
else |
436 |
|
|
$form->setType('date_retour_controle_legalite','date2'); |
437 |
vpihour |
1226 |
|
438 |
|
|
if($this->retourformulaire=='signataire_arrete' |
439 |
|
|
and $form->val['signataire_arrete'] == $this->getParameter('idxformulaire')) { |
440 |
|
|
$form->setType('signataire_arrete','selecthiddenstatic'); |
441 |
|
|
} else { |
442 |
|
|
$form->setType('signataire_arrete','select'); |
443 |
|
|
} |
444 |
vpihour |
1289 |
$form->setType('numero_arrete','text'); |
445 |
nhaye |
1571 |
if($this->retourformulaire=='') |
446 |
|
|
$form->setType('archive_date_dernier_depot','date'); |
447 |
|
|
else |
448 |
|
|
$form->setType('archive_date_dernier_depot','date2'); |
449 |
nhaye |
1717 |
$form->setType('archive_incompletude','checkbox'); |
450 |
|
|
|
451 |
|
|
if($this->retourformulaire=='evenement' |
452 |
|
|
and $form->val['archive_evenement_suivant_tacite'] == $this->getParameter('idxformulaire')) { |
453 |
|
|
$form->setType('archive_evenement_suivant_tacite','selecthiddenstatic'); |
454 |
|
|
} else { |
455 |
|
|
$form->setType('archive_evenement_suivant_tacite','select'); |
456 |
|
|
} |
457 |
|
|
|
458 |
|
|
if($this->retourformulaire=='evenement' |
459 |
|
|
and $form->val['archive_evenement_suivant_tacite_incompletude'] == $this->getParameter('idxformulaire')) { |
460 |
|
|
$form->setType('archive_evenement_suivant_tacite_incompletude','selecthiddenstatic'); |
461 |
|
|
} else { |
462 |
|
|
$form->setType('archive_evenement_suivant_tacite_incompletude','select'); |
463 |
|
|
} |
464 |
|
|
|
465 |
|
|
if($this->retourformulaire=='etat' |
466 |
|
|
and $form->val['archive_etat_pendant_incompletude'] == $this->getParameter('idxformulaire')) { |
467 |
|
|
$form->setType('archive_etat_pendant_incompletude','selecthiddenstatic'); |
468 |
|
|
} else { |
469 |
|
|
$form->setType('archive_etat_pendant_incompletude','select'); |
470 |
|
|
} |
471 |
|
|
if($this->retourformulaire=='') |
472 |
|
|
$form->setType('archive_date_limite_incompletude','date'); |
473 |
|
|
else |
474 |
|
|
$form->setType('archive_date_limite_incompletude','date2'); |
475 |
|
|
$form->setType('archive_delai_incompletude','text'); |
476 |
vpihour |
1782 |
$form->setType('code_barres','text'); |
477 |
vpihour |
1894 |
$form->setType('om_fichier_instruction','text'); |
478 |
|
|
$form->setType('om_final_instruction','checkbox'); |
479 |
softime |
2030 |
|
480 |
|
|
if($this->retourformulaire=='document_numerise' |
481 |
|
|
and $form->val['document_numerise'] == $this->getParameter('idxformulaire')) { |
482 |
|
|
$form->setType('document_numerise','selecthiddenstatic'); |
483 |
|
|
} else { |
484 |
|
|
$form->setType('document_numerise','select'); |
485 |
|
|
} |
486 |
nhaye |
2099 |
$form->setType('archive_autorite_competente','text'); |
487 |
nhaye |
2101 |
|
488 |
|
|
if($this->retourformulaire=='autorite_competente' |
489 |
|
|
and $form->val['autorite_competente'] == $this->getParameter('idxformulaire')) { |
490 |
|
|
$form->setType('autorite_competente','selecthiddenstatic'); |
491 |
|
|
} else { |
492 |
|
|
$form->setType('autorite_competente','select'); |
493 |
|
|
} |
494 |
softime |
2142 |
$form->setType('duree_validite_parametrage','text'); |
495 |
|
|
$form->setType('duree_validite','text'); |
496 |
nhaye |
3059 |
$form->setType('archive_incomplet_notifie','checkbox'); |
497 |
atreal |
307 |
}// fin ajout |
498 |
|
|
if ($maj==1){ //modifier |
499 |
|
|
$form->setType('instruction','hiddenstatic'); |
500 |
|
|
$form->setType('destinataire','text'); |
501 |
|
|
if($this->retourformulaire=='') |
502 |
vpihour |
1127 |
$form->setType('date_evenement','date'); |
503 |
atreal |
307 |
else |
504 |
vpihour |
1127 |
$form->setType('date_evenement','date2'); |
505 |
nhaye |
428 |
|
506 |
|
|
if($this->retourformulaire=='evenement' |
507 |
|
|
and $form->val['evenement'] == $this->getParameter('idxformulaire')) { |
508 |
|
|
$form->setType('evenement','selecthiddenstatic'); |
509 |
|
|
} else { |
510 |
atreal |
307 |
$form->setType('evenement','select'); |
511 |
nhaye |
428 |
} |
512 |
atreal |
307 |
$form->setType('lettretype','text'); |
513 |
nhaye |
2644 |
$form->setType('complement_om_html','html'); |
514 |
|
|
$form->setType('complement2_om_html','html'); |
515 |
nhaye |
428 |
|
516 |
|
|
if($this->retourformulaire=='dossier' |
517 |
|
|
and $form->val['dossier'] == $this->getParameter('idxformulaire')) { |
518 |
|
|
$form->setType('dossier','selecthiddenstatic'); |
519 |
|
|
} else { |
520 |
atreal |
307 |
$form->setType('dossier','select'); |
521 |
nhaye |
428 |
} |
522 |
|
|
|
523 |
|
|
if($this->retourformulaire=='action' |
524 |
|
|
and $form->val['action'] == $this->getParameter('idxformulaire')) { |
525 |
|
|
$form->setType('action','selecthiddenstatic'); |
526 |
|
|
} else { |
527 |
atreal |
307 |
$form->setType('action','select'); |
528 |
nhaye |
428 |
} |
529 |
atreal |
307 |
$form->setType('delai','text'); |
530 |
nhaye |
428 |
|
531 |
|
|
if($this->retourformulaire=='etat' |
532 |
|
|
and $form->val['etat'] == $this->getParameter('idxformulaire')) { |
533 |
|
|
$form->setType('etat','selecthiddenstatic'); |
534 |
|
|
} else { |
535 |
atreal |
307 |
$form->setType('etat','select'); |
536 |
nhaye |
428 |
} |
537 |
atreal |
307 |
$form->setType('accord_tacite','text'); |
538 |
|
|
$form->setType('delai_notification','text'); |
539 |
|
|
$form->setType('archive_delai','text'); |
540 |
|
|
if($this->retourformulaire=='') |
541 |
|
|
$form->setType('archive_date_complet','date'); |
542 |
|
|
else |
543 |
|
|
$form->setType('archive_date_complet','date2'); |
544 |
|
|
if($this->retourformulaire=='') |
545 |
|
|
$form->setType('archive_date_rejet','date'); |
546 |
|
|
else |
547 |
|
|
$form->setType('archive_date_rejet','date2'); |
548 |
|
|
if($this->retourformulaire=='') |
549 |
|
|
$form->setType('archive_date_limite','date'); |
550 |
|
|
else |
551 |
|
|
$form->setType('archive_date_limite','date2'); |
552 |
|
|
if($this->retourformulaire=='') |
553 |
|
|
$form->setType('archive_date_notification_delai','date'); |
554 |
|
|
else |
555 |
|
|
$form->setType('archive_date_notification_delai','date2'); |
556 |
|
|
$form->setType('archive_accord_tacite','text'); |
557 |
|
|
$form->setType('archive_etat','text'); |
558 |
|
|
if($this->retourformulaire=='') |
559 |
|
|
$form->setType('archive_date_decision','date'); |
560 |
|
|
else |
561 |
|
|
$form->setType('archive_date_decision','date2'); |
562 |
|
|
$form->setType('archive_avis','text'); |
563 |
|
|
if($this->retourformulaire=='') |
564 |
|
|
$form->setType('archive_date_validite','date'); |
565 |
|
|
else |
566 |
|
|
$form->setType('archive_date_validite','date2'); |
567 |
|
|
if($this->retourformulaire=='') |
568 |
|
|
$form->setType('archive_date_achevement','date'); |
569 |
|
|
else |
570 |
|
|
$form->setType('archive_date_achevement','date2'); |
571 |
|
|
if($this->retourformulaire=='') |
572 |
|
|
$form->setType('archive_date_chantier','date'); |
573 |
|
|
else |
574 |
|
|
$form->setType('archive_date_chantier','date2'); |
575 |
|
|
if($this->retourformulaire=='') |
576 |
|
|
$form->setType('archive_date_conformite','date'); |
577 |
|
|
else |
578 |
|
|
$form->setType('archive_date_conformite','date2'); |
579 |
nhaye |
2644 |
$form->setType('complement3_om_html','html'); |
580 |
|
|
$form->setType('complement4_om_html','html'); |
581 |
|
|
$form->setType('complement5_om_html','html'); |
582 |
|
|
$form->setType('complement6_om_html','html'); |
583 |
|
|
$form->setType('complement7_om_html','html'); |
584 |
|
|
$form->setType('complement8_om_html','html'); |
585 |
|
|
$form->setType('complement9_om_html','html'); |
586 |
|
|
$form->setType('complement10_om_html','html'); |
587 |
|
|
$form->setType('complement11_om_html','html'); |
588 |
|
|
$form->setType('complement12_om_html','html'); |
589 |
|
|
$form->setType('complement13_om_html','html'); |
590 |
|
|
$form->setType('complement14_om_html','html'); |
591 |
|
|
$form->setType('complement15_om_html','html'); |
592 |
vpihour |
489 |
|
593 |
|
|
if($this->retourformulaire=='avis_decision' |
594 |
|
|
and $form->val['avis_decision'] == $this->getParameter('idxformulaire')) { |
595 |
|
|
$form->setType('avis_decision','selecthiddenstatic'); |
596 |
|
|
} else { |
597 |
|
|
$form->setType('avis_decision','select'); |
598 |
|
|
} |
599 |
vpihour |
1127 |
if($this->retourformulaire=='') |
600 |
vpihour |
1128 |
$form->setType('date_finalisation_courrier','date'); |
601 |
vpihour |
1127 |
else |
602 |
vpihour |
1128 |
$form->setType('date_finalisation_courrier','date2'); |
603 |
vpihour |
1127 |
if($this->retourformulaire=='') |
604 |
|
|
$form->setType('date_envoi_signature','date'); |
605 |
|
|
else |
606 |
|
|
$form->setType('date_envoi_signature','date2'); |
607 |
|
|
if($this->retourformulaire=='') |
608 |
|
|
$form->setType('date_retour_signature','date'); |
609 |
|
|
else |
610 |
|
|
$form->setType('date_retour_signature','date2'); |
611 |
|
|
if($this->retourformulaire=='') |
612 |
|
|
$form->setType('date_envoi_rar','date'); |
613 |
|
|
else |
614 |
|
|
$form->setType('date_envoi_rar','date2'); |
615 |
|
|
if($this->retourformulaire=='') |
616 |
|
|
$form->setType('date_retour_rar','date'); |
617 |
|
|
else |
618 |
|
|
$form->setType('date_retour_rar','date2'); |
619 |
|
|
if($this->retourformulaire=='') |
620 |
|
|
$form->setType('date_envoi_controle_legalite','date'); |
621 |
|
|
else |
622 |
|
|
$form->setType('date_envoi_controle_legalite','date2'); |
623 |
|
|
if($this->retourformulaire=='') |
624 |
|
|
$form->setType('date_retour_controle_legalite','date'); |
625 |
|
|
else |
626 |
|
|
$form->setType('date_retour_controle_legalite','date2'); |
627 |
vpihour |
1226 |
|
628 |
|
|
if($this->retourformulaire=='signataire_arrete' |
629 |
|
|
and $form->val['signataire_arrete'] == $this->getParameter('idxformulaire')) { |
630 |
|
|
$form->setType('signataire_arrete','selecthiddenstatic'); |
631 |
|
|
} else { |
632 |
|
|
$form->setType('signataire_arrete','select'); |
633 |
|
|
} |
634 |
vpihour |
1289 |
$form->setType('numero_arrete','text'); |
635 |
nhaye |
1571 |
if($this->retourformulaire=='') |
636 |
|
|
$form->setType('archive_date_dernier_depot','date'); |
637 |
|
|
else |
638 |
|
|
$form->setType('archive_date_dernier_depot','date2'); |
639 |
nhaye |
1717 |
$form->setType('archive_incompletude','checkbox'); |
640 |
|
|
|
641 |
|
|
if($this->retourformulaire=='evenement' |
642 |
|
|
and $form->val['archive_evenement_suivant_tacite'] == $this->getParameter('idxformulaire')) { |
643 |
|
|
$form->setType('archive_evenement_suivant_tacite','selecthiddenstatic'); |
644 |
|
|
} else { |
645 |
|
|
$form->setType('archive_evenement_suivant_tacite','select'); |
646 |
|
|
} |
647 |
|
|
|
648 |
|
|
if($this->retourformulaire=='evenement' |
649 |
|
|
and $form->val['archive_evenement_suivant_tacite_incompletude'] == $this->getParameter('idxformulaire')) { |
650 |
|
|
$form->setType('archive_evenement_suivant_tacite_incompletude','selecthiddenstatic'); |
651 |
|
|
} else { |
652 |
|
|
$form->setType('archive_evenement_suivant_tacite_incompletude','select'); |
653 |
|
|
} |
654 |
|
|
|
655 |
|
|
if($this->retourformulaire=='etat' |
656 |
|
|
and $form->val['archive_etat_pendant_incompletude'] == $this->getParameter('idxformulaire')) { |
657 |
|
|
$form->setType('archive_etat_pendant_incompletude','selecthiddenstatic'); |
658 |
|
|
} else { |
659 |
|
|
$form->setType('archive_etat_pendant_incompletude','select'); |
660 |
|
|
} |
661 |
|
|
if($this->retourformulaire=='') |
662 |
|
|
$form->setType('archive_date_limite_incompletude','date'); |
663 |
|
|
else |
664 |
|
|
$form->setType('archive_date_limite_incompletude','date2'); |
665 |
|
|
$form->setType('archive_delai_incompletude','text'); |
666 |
vpihour |
1782 |
$form->setType('code_barres','text'); |
667 |
vpihour |
1894 |
$form->setType('om_fichier_instruction','text'); |
668 |
|
|
$form->setType('om_final_instruction','checkbox'); |
669 |
softime |
2030 |
|
670 |
|
|
if($this->retourformulaire=='document_numerise' |
671 |
|
|
and $form->val['document_numerise'] == $this->getParameter('idxformulaire')) { |
672 |
|
|
$form->setType('document_numerise','selecthiddenstatic'); |
673 |
|
|
} else { |
674 |
|
|
$form->setType('document_numerise','select'); |
675 |
|
|
} |
676 |
nhaye |
2099 |
$form->setType('archive_autorite_competente','text'); |
677 |
nhaye |
2101 |
|
678 |
|
|
if($this->retourformulaire=='autorite_competente' |
679 |
|
|
and $form->val['autorite_competente'] == $this->getParameter('idxformulaire')) { |
680 |
|
|
$form->setType('autorite_competente','selecthiddenstatic'); |
681 |
|
|
} else { |
682 |
|
|
$form->setType('autorite_competente','select'); |
683 |
|
|
} |
684 |
softime |
2142 |
$form->setType('duree_validite_parametrage','text'); |
685 |
|
|
$form->setType('duree_validite','text'); |
686 |
nhaye |
3059 |
$form->setType('archive_incomplet_notifie','checkbox'); |
687 |
atreal |
307 |
}// fin modifier |
688 |
|
|
if ($maj==2){ //supprimer |
689 |
|
|
$form->setType('instruction','hiddenstatic'); |
690 |
|
|
$form->setType('destinataire','hiddenstatic'); |
691 |
vpihour |
1127 |
$form->setType('date_evenement','hiddenstatic'); |
692 |
nhaye |
428 |
$form->setType('evenement','selectstatic'); |
693 |
atreal |
307 |
$form->setType('lettretype','hiddenstatic'); |
694 |
nhaye |
2644 |
$form->setType('complement_om_html','hiddenstatic'); |
695 |
|
|
$form->setType('complement2_om_html','hiddenstatic'); |
696 |
nhaye |
428 |
$form->setType('dossier','selectstatic'); |
697 |
|
|
$form->setType('action','selectstatic'); |
698 |
atreal |
307 |
$form->setType('delai','hiddenstatic'); |
699 |
nhaye |
428 |
$form->setType('etat','selectstatic'); |
700 |
atreal |
307 |
$form->setType('accord_tacite','hiddenstatic'); |
701 |
|
|
$form->setType('delai_notification','hiddenstatic'); |
702 |
|
|
$form->setType('archive_delai','hiddenstatic'); |
703 |
|
|
$form->setType('archive_date_complet','hiddenstatic'); |
704 |
|
|
$form->setType('archive_date_rejet','hiddenstatic'); |
705 |
|
|
$form->setType('archive_date_limite','hiddenstatic'); |
706 |
|
|
$form->setType('archive_date_notification_delai','hiddenstatic'); |
707 |
|
|
$form->setType('archive_accord_tacite','hiddenstatic'); |
708 |
|
|
$form->setType('archive_etat','hiddenstatic'); |
709 |
|
|
$form->setType('archive_date_decision','hiddenstatic'); |
710 |
|
|
$form->setType('archive_avis','hiddenstatic'); |
711 |
|
|
$form->setType('archive_date_validite','hiddenstatic'); |
712 |
|
|
$form->setType('archive_date_achevement','hiddenstatic'); |
713 |
|
|
$form->setType('archive_date_chantier','hiddenstatic'); |
714 |
|
|
$form->setType('archive_date_conformite','hiddenstatic'); |
715 |
nhaye |
2644 |
$form->setType('complement3_om_html','hiddenstatic'); |
716 |
|
|
$form->setType('complement4_om_html','hiddenstatic'); |
717 |
|
|
$form->setType('complement5_om_html','hiddenstatic'); |
718 |
|
|
$form->setType('complement6_om_html','hiddenstatic'); |
719 |
|
|
$form->setType('complement7_om_html','hiddenstatic'); |
720 |
|
|
$form->setType('complement8_om_html','hiddenstatic'); |
721 |
|
|
$form->setType('complement9_om_html','hiddenstatic'); |
722 |
|
|
$form->setType('complement10_om_html','hiddenstatic'); |
723 |
|
|
$form->setType('complement11_om_html','hiddenstatic'); |
724 |
|
|
$form->setType('complement12_om_html','hiddenstatic'); |
725 |
|
|
$form->setType('complement13_om_html','hiddenstatic'); |
726 |
|
|
$form->setType('complement14_om_html','hiddenstatic'); |
727 |
|
|
$form->setType('complement15_om_html','hiddenstatic'); |
728 |
vpihour |
489 |
$form->setType('avis_decision','selectstatic'); |
729 |
vpihour |
1128 |
$form->setType('date_finalisation_courrier','hiddenstatic'); |
730 |
vpihour |
1127 |
$form->setType('date_envoi_signature','hiddenstatic'); |
731 |
|
|
$form->setType('date_retour_signature','hiddenstatic'); |
732 |
|
|
$form->setType('date_envoi_rar','hiddenstatic'); |
733 |
|
|
$form->setType('date_retour_rar','hiddenstatic'); |
734 |
|
|
$form->setType('date_envoi_controle_legalite','hiddenstatic'); |
735 |
|
|
$form->setType('date_retour_controle_legalite','hiddenstatic'); |
736 |
vpihour |
1226 |
$form->setType('signataire_arrete','selectstatic'); |
737 |
vpihour |
1289 |
$form->setType('numero_arrete','hiddenstatic'); |
738 |
nhaye |
1571 |
$form->setType('archive_date_dernier_depot','hiddenstatic'); |
739 |
nhaye |
1717 |
$form->setType('archive_incompletude','hiddenstatic'); |
740 |
|
|
$form->setType('archive_evenement_suivant_tacite','selectstatic'); |
741 |
|
|
$form->setType('archive_evenement_suivant_tacite_incompletude','selectstatic'); |
742 |
|
|
$form->setType('archive_etat_pendant_incompletude','selectstatic'); |
743 |
|
|
$form->setType('archive_date_limite_incompletude','hiddenstatic'); |
744 |
|
|
$form->setType('archive_delai_incompletude','hiddenstatic'); |
745 |
vpihour |
1782 |
$form->setType('code_barres','hiddenstatic'); |
746 |
vpihour |
1894 |
$form->setType('om_fichier_instruction','hiddenstatic'); |
747 |
|
|
$form->setType('om_final_instruction','hiddenstatic'); |
748 |
softime |
2030 |
$form->setType('document_numerise','selectstatic'); |
749 |
nhaye |
2099 |
$form->setType('archive_autorite_competente','hiddenstatic'); |
750 |
nhaye |
2101 |
$form->setType('autorite_competente','selectstatic'); |
751 |
softime |
2142 |
$form->setType('duree_validite_parametrage','hiddenstatic'); |
752 |
|
|
$form->setType('duree_validite','hiddenstatic'); |
753 |
nhaye |
3059 |
$form->setType('archive_incomplet_notifie','hiddenstatic'); |
754 |
atreal |
307 |
}//fin supprimer |
755 |
nhaye |
428 |
if ($maj==3){ //consulter |
756 |
|
|
$form->setType('instruction','static'); |
757 |
|
|
$form->setType('destinataire','static'); |
758 |
vpihour |
1127 |
$form->setType('date_evenement','datestatic'); |
759 |
nhaye |
428 |
$form->setType('evenement','selectstatic'); |
760 |
|
|
$form->setType('lettretype','static'); |
761 |
nhaye |
2644 |
$form->setType('complement_om_html','htmlstatic'); |
762 |
|
|
$form->setType('complement2_om_html','htmlstatic'); |
763 |
nhaye |
428 |
$form->setType('dossier','selectstatic'); |
764 |
|
|
$form->setType('action','selectstatic'); |
765 |
|
|
$form->setType('delai','static'); |
766 |
|
|
$form->setType('etat','selectstatic'); |
767 |
|
|
$form->setType('accord_tacite','static'); |
768 |
|
|
$form->setType('delai_notification','static'); |
769 |
|
|
$form->setType('archive_delai','static'); |
770 |
|
|
$form->setType('archive_date_complet','datestatic'); |
771 |
|
|
$form->setType('archive_date_rejet','datestatic'); |
772 |
|
|
$form->setType('archive_date_limite','datestatic'); |
773 |
|
|
$form->setType('archive_date_notification_delai','datestatic'); |
774 |
|
|
$form->setType('archive_accord_tacite','static'); |
775 |
|
|
$form->setType('archive_etat','static'); |
776 |
|
|
$form->setType('archive_date_decision','datestatic'); |
777 |
|
|
$form->setType('archive_avis','static'); |
778 |
|
|
$form->setType('archive_date_validite','datestatic'); |
779 |
|
|
$form->setType('archive_date_achevement','datestatic'); |
780 |
|
|
$form->setType('archive_date_chantier','datestatic'); |
781 |
|
|
$form->setType('archive_date_conformite','datestatic'); |
782 |
nhaye |
2644 |
$form->setType('complement3_om_html','htmlstatic'); |
783 |
|
|
$form->setType('complement4_om_html','htmlstatic'); |
784 |
|
|
$form->setType('complement5_om_html','htmlstatic'); |
785 |
|
|
$form->setType('complement6_om_html','htmlstatic'); |
786 |
|
|
$form->setType('complement7_om_html','htmlstatic'); |
787 |
|
|
$form->setType('complement8_om_html','htmlstatic'); |
788 |
|
|
$form->setType('complement9_om_html','htmlstatic'); |
789 |
|
|
$form->setType('complement10_om_html','htmlstatic'); |
790 |
|
|
$form->setType('complement11_om_html','htmlstatic'); |
791 |
|
|
$form->setType('complement12_om_html','htmlstatic'); |
792 |
|
|
$form->setType('complement13_om_html','htmlstatic'); |
793 |
|
|
$form->setType('complement14_om_html','htmlstatic'); |
794 |
|
|
$form->setType('complement15_om_html','htmlstatic'); |
795 |
vpihour |
489 |
$form->setType('avis_decision','selectstatic'); |
796 |
vpihour |
1128 |
$form->setType('date_finalisation_courrier','datestatic'); |
797 |
vpihour |
1127 |
$form->setType('date_envoi_signature','datestatic'); |
798 |
|
|
$form->setType('date_retour_signature','datestatic'); |
799 |
|
|
$form->setType('date_envoi_rar','datestatic'); |
800 |
|
|
$form->setType('date_retour_rar','datestatic'); |
801 |
|
|
$form->setType('date_envoi_controle_legalite','datestatic'); |
802 |
|
|
$form->setType('date_retour_controle_legalite','datestatic'); |
803 |
vpihour |
1226 |
$form->setType('signataire_arrete','selectstatic'); |
804 |
vpihour |
1289 |
$form->setType('numero_arrete','static'); |
805 |
nhaye |
1571 |
$form->setType('archive_date_dernier_depot','datestatic'); |
806 |
nhaye |
1717 |
$form->setType('archive_incompletude','checkboxstatic'); |
807 |
|
|
$form->setType('archive_evenement_suivant_tacite','selectstatic'); |
808 |
|
|
$form->setType('archive_evenement_suivant_tacite_incompletude','selectstatic'); |
809 |
|
|
$form->setType('archive_etat_pendant_incompletude','selectstatic'); |
810 |
|
|
$form->setType('archive_date_limite_incompletude','datestatic'); |
811 |
|
|
$form->setType('archive_delai_incompletude','static'); |
812 |
vpihour |
1782 |
$form->setType('code_barres','static'); |
813 |
vpihour |
1894 |
$form->setType('om_fichier_instruction','static'); |
814 |
|
|
$form->setType('om_final_instruction','checkboxstatic'); |
815 |
softime |
2030 |
$form->setType('document_numerise','selectstatic'); |
816 |
nhaye |
2099 |
$form->setType('archive_autorite_competente','static'); |
817 |
nhaye |
2101 |
$form->setType('autorite_competente','selectstatic'); |
818 |
softime |
2142 |
$form->setType('duree_validite_parametrage','static'); |
819 |
|
|
$form->setType('duree_validite','static'); |
820 |
nhaye |
3059 |
$form->setType('archive_incomplet_notifie','checkboxstatic'); |
821 |
nhaye |
428 |
}//fin consulter |
822 |
atreal |
307 |
} |
823 |
fraynaud |
3 |
|
824 |
atreal |
307 |
function setOnchange(&$form,$maj) { |
825 |
|
|
//javascript controle client |
826 |
|
|
$form->setOnchange('instruction','VerifNum(this)'); |
827 |
vpihour |
1127 |
$form->setOnchange('date_evenement','fdate(this)'); |
828 |
atreal |
307 |
$form->setOnchange('evenement','VerifNum(this)'); |
829 |
|
|
$form->setOnchange('delai','VerifNum(this)'); |
830 |
|
|
$form->setOnchange('delai_notification','VerifNum(this)'); |
831 |
|
|
$form->setOnchange('archive_delai','VerifNum(this)'); |
832 |
|
|
$form->setOnchange('archive_date_complet','fdate(this)'); |
833 |
|
|
$form->setOnchange('archive_date_rejet','fdate(this)'); |
834 |
|
|
$form->setOnchange('archive_date_limite','fdate(this)'); |
835 |
|
|
$form->setOnchange('archive_date_notification_delai','fdate(this)'); |
836 |
|
|
$form->setOnchange('archive_date_decision','fdate(this)'); |
837 |
|
|
$form->setOnchange('archive_date_validite','fdate(this)'); |
838 |
|
|
$form->setOnchange('archive_date_achevement','fdate(this)'); |
839 |
|
|
$form->setOnchange('archive_date_chantier','fdate(this)'); |
840 |
|
|
$form->setOnchange('archive_date_conformite','fdate(this)'); |
841 |
vpihour |
489 |
$form->setOnchange('avis_decision','VerifNum(this)'); |
842 |
vpihour |
1128 |
$form->setOnchange('date_finalisation_courrier','fdate(this)'); |
843 |
vpihour |
1127 |
$form->setOnchange('date_envoi_signature','fdate(this)'); |
844 |
|
|
$form->setOnchange('date_retour_signature','fdate(this)'); |
845 |
|
|
$form->setOnchange('date_envoi_rar','fdate(this)'); |
846 |
|
|
$form->setOnchange('date_retour_rar','fdate(this)'); |
847 |
|
|
$form->setOnchange('date_envoi_controle_legalite','fdate(this)'); |
848 |
|
|
$form->setOnchange('date_retour_controle_legalite','fdate(this)'); |
849 |
vpihour |
1226 |
$form->setOnchange('signataire_arrete','VerifNum(this)'); |
850 |
nhaye |
1571 |
$form->setOnchange('archive_date_dernier_depot','fdate(this)'); |
851 |
nhaye |
1717 |
$form->setOnchange('archive_evenement_suivant_tacite','VerifNum(this)'); |
852 |
|
|
$form->setOnchange('archive_evenement_suivant_tacite_incompletude','VerifNum(this)'); |
853 |
|
|
$form->setOnchange('archive_date_limite_incompletude','fdate(this)'); |
854 |
|
|
$form->setOnchange('archive_delai_incompletude','VerifNum(this)'); |
855 |
softime |
2030 |
$form->setOnchange('document_numerise','VerifNum(this)'); |
856 |
nhaye |
2099 |
$form->setOnchange('archive_autorite_competente','VerifNum(this)'); |
857 |
nhaye |
2101 |
$form->setOnchange('autorite_competente','VerifNum(this)'); |
858 |
softime |
2142 |
$form->setOnchange('duree_validite_parametrage','VerifNum(this)'); |
859 |
|
|
$form->setOnchange('duree_validite','VerifNum(this)'); |
860 |
atreal |
307 |
} |
861 |
|
|
/** |
862 |
|
|
* Methode setTaille |
863 |
|
|
*/ |
864 |
|
|
function setTaille(&$form, $maj) { |
865 |
fraynaud |
342 |
$form->setTaille("instruction", 11); |
866 |
atreal |
307 |
$form->setTaille("destinataire", 30); |
867 |
vpihour |
1127 |
$form->setTaille("date_evenement", 12); |
868 |
fraynaud |
342 |
$form->setTaille("evenement", 11); |
869 |
atreal |
307 |
$form->setTaille("lettretype", 30); |
870 |
nhaye |
2644 |
$form->setTaille("complement_om_html", 80); |
871 |
|
|
$form->setTaille("complement2_om_html", 80); |
872 |
softime |
2142 |
$form->setTaille("dossier", 30); |
873 |
atreal |
307 |
$form->setTaille("action", 20); |
874 |
fraynaud |
342 |
$form->setTaille("delai", 11); |
875 |
atreal |
307 |
$form->setTaille("etat", 20); |
876 |
|
|
$form->setTaille("accord_tacite", 10); |
877 |
fraynaud |
342 |
$form->setTaille("delai_notification", 11); |
878 |
nhaye |
428 |
$form->setTaille("archive_delai", 20); |
879 |
atreal |
307 |
$form->setTaille("archive_date_complet", 12); |
880 |
|
|
$form->setTaille("archive_date_rejet", 12); |
881 |
|
|
$form->setTaille("archive_date_limite", 12); |
882 |
|
|
$form->setTaille("archive_date_notification_delai", 12); |
883 |
|
|
$form->setTaille("archive_accord_tacite", 10); |
884 |
|
|
$form->setTaille("archive_etat", 20); |
885 |
|
|
$form->setTaille("archive_date_decision", 12); |
886 |
|
|
$form->setTaille("archive_avis", 20); |
887 |
|
|
$form->setTaille("archive_date_validite", 12); |
888 |
|
|
$form->setTaille("archive_date_achevement", 12); |
889 |
|
|
$form->setTaille("archive_date_chantier", 12); |
890 |
|
|
$form->setTaille("archive_date_conformite", 12); |
891 |
nhaye |
2644 |
$form->setTaille("complement3_om_html", 80); |
892 |
|
|
$form->setTaille("complement4_om_html", 80); |
893 |
|
|
$form->setTaille("complement5_om_html", 80); |
894 |
|
|
$form->setTaille("complement6_om_html", 80); |
895 |
|
|
$form->setTaille("complement7_om_html", 80); |
896 |
|
|
$form->setTaille("complement8_om_html", 80); |
897 |
|
|
$form->setTaille("complement9_om_html", 80); |
898 |
|
|
$form->setTaille("complement10_om_html", 80); |
899 |
|
|
$form->setTaille("complement11_om_html", 80); |
900 |
|
|
$form->setTaille("complement12_om_html", 80); |
901 |
|
|
$form->setTaille("complement13_om_html", 80); |
902 |
|
|
$form->setTaille("complement14_om_html", 80); |
903 |
|
|
$form->setTaille("complement15_om_html", 80); |
904 |
vpihour |
489 |
$form->setTaille("avis_decision", 11); |
905 |
vpihour |
1128 |
$form->setTaille("date_finalisation_courrier", 12); |
906 |
vpihour |
1127 |
$form->setTaille("date_envoi_signature", 12); |
907 |
|
|
$form->setTaille("date_retour_signature", 12); |
908 |
|
|
$form->setTaille("date_envoi_rar", 12); |
909 |
|
|
$form->setTaille("date_retour_rar", 12); |
910 |
|
|
$form->setTaille("date_envoi_controle_legalite", 12); |
911 |
|
|
$form->setTaille("date_retour_controle_legalite", 12); |
912 |
vpihour |
1226 |
$form->setTaille("signataire_arrete", 11); |
913 |
vpihour |
1289 |
$form->setTaille("numero_arrete", 30); |
914 |
nhaye |
1571 |
$form->setTaille("archive_date_dernier_depot", 12); |
915 |
nhaye |
1717 |
$form->setTaille("archive_incompletude", 1); |
916 |
|
|
$form->setTaille("archive_evenement_suivant_tacite", 11); |
917 |
|
|
$form->setTaille("archive_evenement_suivant_tacite_incompletude", 11); |
918 |
|
|
$form->setTaille("archive_etat_pendant_incompletude", 20); |
919 |
|
|
$form->setTaille("archive_date_limite_incompletude", 12); |
920 |
|
|
$form->setTaille("archive_delai_incompletude", 11); |
921 |
vpihour |
1783 |
$form->setTaille("code_barres", 12); |
922 |
vpihour |
1894 |
$form->setTaille("om_fichier_instruction", 30); |
923 |
|
|
$form->setTaille("om_final_instruction", 1); |
924 |
softime |
2030 |
$form->setTaille("document_numerise", 11); |
925 |
nhaye |
2099 |
$form->setTaille("archive_autorite_competente", 11); |
926 |
nhaye |
2101 |
$form->setTaille("autorite_competente", 11); |
927 |
softime |
2142 |
$form->setTaille("duree_validite_parametrage", 11); |
928 |
|
|
$form->setTaille("duree_validite", 11); |
929 |
nhaye |
3059 |
$form->setTaille("archive_incomplet_notifie", 1); |
930 |
atreal |
307 |
} |
931 |
fraynaud |
3 |
|
932 |
atreal |
307 |
/** |
933 |
|
|
* Methode setMax |
934 |
|
|
*/ |
935 |
|
|
function setMax(&$form, $maj) { |
936 |
fraynaud |
342 |
$form->setMax("instruction", 11); |
937 |
atreal |
307 |
$form->setMax("destinataire", 30); |
938 |
vpihour |
1127 |
$form->setMax("date_evenement", 12); |
939 |
fraynaud |
342 |
$form->setMax("evenement", 11); |
940 |
atreal |
307 |
$form->setMax("lettretype", 40); |
941 |
nhaye |
2644 |
$form->setMax("complement_om_html", 6); |
942 |
|
|
$form->setMax("complement2_om_html", 6); |
943 |
softime |
2142 |
$form->setMax("dossier", 30); |
944 |
atreal |
307 |
$form->setMax("action", 20); |
945 |
fraynaud |
342 |
$form->setMax("delai", 11); |
946 |
atreal |
307 |
$form->setMax("etat", 20); |
947 |
|
|
$form->setMax("accord_tacite", 3); |
948 |
fraynaud |
342 |
$form->setMax("delai_notification", 11); |
949 |
nhaye |
428 |
$form->setMax("archive_delai", 20); |
950 |
atreal |
307 |
$form->setMax("archive_date_complet", 12); |
951 |
|
|
$form->setMax("archive_date_rejet", 12); |
952 |
|
|
$form->setMax("archive_date_limite", 12); |
953 |
|
|
$form->setMax("archive_date_notification_delai", 12); |
954 |
|
|
$form->setMax("archive_accord_tacite", 3); |
955 |
|
|
$form->setMax("archive_etat", 20); |
956 |
|
|
$form->setMax("archive_date_decision", 12); |
957 |
|
|
$form->setMax("archive_avis", 20); |
958 |
|
|
$form->setMax("archive_date_validite", 12); |
959 |
|
|
$form->setMax("archive_date_achevement", 12); |
960 |
|
|
$form->setMax("archive_date_chantier", 12); |
961 |
|
|
$form->setMax("archive_date_conformite", 12); |
962 |
nhaye |
2644 |
$form->setMax("complement3_om_html", 6); |
963 |
|
|
$form->setMax("complement4_om_html", 6); |
964 |
|
|
$form->setMax("complement5_om_html", 6); |
965 |
|
|
$form->setMax("complement6_om_html", 6); |
966 |
|
|
$form->setMax("complement7_om_html", 6); |
967 |
|
|
$form->setMax("complement8_om_html", 6); |
968 |
|
|
$form->setMax("complement9_om_html", 6); |
969 |
|
|
$form->setMax("complement10_om_html", 6); |
970 |
|
|
$form->setMax("complement11_om_html", 6); |
971 |
|
|
$form->setMax("complement12_om_html", 6); |
972 |
|
|
$form->setMax("complement13_om_html", 6); |
973 |
|
|
$form->setMax("complement14_om_html", 6); |
974 |
|
|
$form->setMax("complement15_om_html", 6); |
975 |
vpihour |
489 |
$form->setMax("avis_decision", 11); |
976 |
vpihour |
1128 |
$form->setMax("date_finalisation_courrier", 12); |
977 |
vpihour |
1127 |
$form->setMax("date_envoi_signature", 12); |
978 |
|
|
$form->setMax("date_retour_signature", 12); |
979 |
|
|
$form->setMax("date_envoi_rar", 12); |
980 |
|
|
$form->setMax("date_retour_rar", 12); |
981 |
|
|
$form->setMax("date_envoi_controle_legalite", 12); |
982 |
|
|
$form->setMax("date_retour_controle_legalite", 12); |
983 |
vpihour |
1226 |
$form->setMax("signataire_arrete", 11); |
984 |
vpihour |
1289 |
$form->setMax("numero_arrete", 100); |
985 |
nhaye |
1571 |
$form->setMax("archive_date_dernier_depot", 12); |
986 |
nhaye |
1717 |
$form->setMax("archive_incompletude", 1); |
987 |
|
|
$form->setMax("archive_evenement_suivant_tacite", 11); |
988 |
|
|
$form->setMax("archive_evenement_suivant_tacite_incompletude", 11); |
989 |
|
|
$form->setMax("archive_etat_pendant_incompletude", 20); |
990 |
|
|
$form->setMax("archive_date_limite_incompletude", 12); |
991 |
|
|
$form->setMax("archive_delai_incompletude", 11); |
992 |
vpihour |
1783 |
$form->setMax("code_barres", 12); |
993 |
vpihour |
1894 |
$form->setMax("om_fichier_instruction", 64); |
994 |
|
|
$form->setMax("om_final_instruction", 1); |
995 |
softime |
2030 |
$form->setMax("document_numerise", 11); |
996 |
nhaye |
2099 |
$form->setMax("archive_autorite_competente", 11); |
997 |
nhaye |
2101 |
$form->setMax("autorite_competente", 11); |
998 |
softime |
2142 |
$form->setMax("duree_validite_parametrage", 11); |
999 |
|
|
$form->setMax("duree_validite", 11); |
1000 |
nhaye |
3059 |
$form->setMax("archive_incomplet_notifie", 1); |
1001 |
atreal |
307 |
} |
1002 |
fraynaud |
3 |
|
1003 |
|
|
|
1004 |
atreal |
307 |
function setLib(&$form,$maj) { |
1005 |
|
|
//libelle des champs |
1006 |
|
|
$form->setLib('instruction',_('instruction')); |
1007 |
|
|
$form->setLib('destinataire',_('destinataire')); |
1008 |
vpihour |
1127 |
$form->setLib('date_evenement',_('date_evenement')); |
1009 |
atreal |
307 |
$form->setLib('evenement',_('evenement')); |
1010 |
|
|
$form->setLib('lettretype',_('lettretype')); |
1011 |
nhaye |
2644 |
$form->setLib('complement_om_html',_('complement_om_html')); |
1012 |
|
|
$form->setLib('complement2_om_html',_('complement2_om_html')); |
1013 |
atreal |
307 |
$form->setLib('dossier',_('dossier')); |
1014 |
|
|
$form->setLib('action',_('action')); |
1015 |
|
|
$form->setLib('delai',_('delai')); |
1016 |
|
|
$form->setLib('etat',_('etat')); |
1017 |
|
|
$form->setLib('accord_tacite',_('accord_tacite')); |
1018 |
|
|
$form->setLib('delai_notification',_('delai_notification')); |
1019 |
|
|
$form->setLib('archive_delai',_('archive_delai')); |
1020 |
|
|
$form->setLib('archive_date_complet',_('archive_date_complet')); |
1021 |
|
|
$form->setLib('archive_date_rejet',_('archive_date_rejet')); |
1022 |
|
|
$form->setLib('archive_date_limite',_('archive_date_limite')); |
1023 |
|
|
$form->setLib('archive_date_notification_delai',_('archive_date_notification_delai')); |
1024 |
|
|
$form->setLib('archive_accord_tacite',_('archive_accord_tacite')); |
1025 |
|
|
$form->setLib('archive_etat',_('archive_etat')); |
1026 |
|
|
$form->setLib('archive_date_decision',_('archive_date_decision')); |
1027 |
|
|
$form->setLib('archive_avis',_('archive_avis')); |
1028 |
|
|
$form->setLib('archive_date_validite',_('archive_date_validite')); |
1029 |
|
|
$form->setLib('archive_date_achevement',_('archive_date_achevement')); |
1030 |
|
|
$form->setLib('archive_date_chantier',_('archive_date_chantier')); |
1031 |
|
|
$form->setLib('archive_date_conformite',_('archive_date_conformite')); |
1032 |
nhaye |
2644 |
$form->setLib('complement3_om_html',_('complement3_om_html')); |
1033 |
|
|
$form->setLib('complement4_om_html',_('complement4_om_html')); |
1034 |
|
|
$form->setLib('complement5_om_html',_('complement5_om_html')); |
1035 |
|
|
$form->setLib('complement6_om_html',_('complement6_om_html')); |
1036 |
|
|
$form->setLib('complement7_om_html',_('complement7_om_html')); |
1037 |
|
|
$form->setLib('complement8_om_html',_('complement8_om_html')); |
1038 |
|
|
$form->setLib('complement9_om_html',_('complement9_om_html')); |
1039 |
|
|
$form->setLib('complement10_om_html',_('complement10_om_html')); |
1040 |
|
|
$form->setLib('complement11_om_html',_('complement11_om_html')); |
1041 |
|
|
$form->setLib('complement12_om_html',_('complement12_om_html')); |
1042 |
|
|
$form->setLib('complement13_om_html',_('complement13_om_html')); |
1043 |
|
|
$form->setLib('complement14_om_html',_('complement14_om_html')); |
1044 |
|
|
$form->setLib('complement15_om_html',_('complement15_om_html')); |
1045 |
vpihour |
489 |
$form->setLib('avis_decision',_('avis_decision')); |
1046 |
vpihour |
1128 |
$form->setLib('date_finalisation_courrier',_('date_finalisation_courrier')); |
1047 |
vpihour |
1127 |
$form->setLib('date_envoi_signature',_('date_envoi_signature')); |
1048 |
|
|
$form->setLib('date_retour_signature',_('date_retour_signature')); |
1049 |
|
|
$form->setLib('date_envoi_rar',_('date_envoi_rar')); |
1050 |
|
|
$form->setLib('date_retour_rar',_('date_retour_rar')); |
1051 |
|
|
$form->setLib('date_envoi_controle_legalite',_('date_envoi_controle_legalite')); |
1052 |
|
|
$form->setLib('date_retour_controle_legalite',_('date_retour_controle_legalite')); |
1053 |
vpihour |
1226 |
$form->setLib('signataire_arrete',_('signataire_arrete')); |
1054 |
vpihour |
1289 |
$form->setLib('numero_arrete',_('numero_arrete')); |
1055 |
nhaye |
1571 |
$form->setLib('archive_date_dernier_depot',_('archive_date_dernier_depot')); |
1056 |
nhaye |
1717 |
$form->setLib('archive_incompletude',_('archive_incompletude')); |
1057 |
|
|
$form->setLib('archive_evenement_suivant_tacite',_('archive_evenement_suivant_tacite')); |
1058 |
|
|
$form->setLib('archive_evenement_suivant_tacite_incompletude',_('archive_evenement_suivant_tacite_incompletude')); |
1059 |
|
|
$form->setLib('archive_etat_pendant_incompletude',_('archive_etat_pendant_incompletude')); |
1060 |
|
|
$form->setLib('archive_date_limite_incompletude',_('archive_date_limite_incompletude')); |
1061 |
|
|
$form->setLib('archive_delai_incompletude',_('archive_delai_incompletude')); |
1062 |
vpihour |
1782 |
$form->setLib('code_barres',_('code_barres')); |
1063 |
vpihour |
1894 |
$form->setLib('om_fichier_instruction',_('om_fichier_instruction')); |
1064 |
|
|
$form->setLib('om_final_instruction',_('om_final_instruction')); |
1065 |
softime |
2030 |
$form->setLib('document_numerise',_('document_numerise')); |
1066 |
nhaye |
2099 |
$form->setLib('archive_autorite_competente',_('archive_autorite_competente')); |
1067 |
nhaye |
2101 |
$form->setLib('autorite_competente',_('autorite_competente')); |
1068 |
softime |
2142 |
$form->setLib('duree_validite_parametrage',_('duree_validite_parametrage')); |
1069 |
|
|
$form->setLib('duree_validite',_('duree_validite')); |
1070 |
nhaye |
3059 |
$form->setLib('archive_incomplet_notifie',_('archive_incomplet_notifie')); |
1071 |
atreal |
307 |
} |
1072 |
fraynaud |
3 |
|
1073 |
atreal |
307 |
function setSelect(&$form, $maj,&$db,$debug) { |
1074 |
|
|
if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php")) |
1075 |
|
|
include ("../sql/".$db->phptype."/".$this->table.".form.inc.php"); |
1076 |
|
|
elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc")) |
1077 |
|
|
include ("../sql/".$db->phptype."/".$this->table.".form.inc"); |
1078 |
nhaye |
428 |
|
1079 |
fmichon |
455 |
// action |
1080 |
|
|
$this->init_select($form, $db, $maj, $debug, "action", |
1081 |
|
|
$sql_action, $sql_action_by_id, false); |
1082 |
|
|
|
1083 |
nhaye |
1717 |
// archive_etat_pendant_incompletude |
1084 |
|
|
$this->init_select($form, $db, $maj, $debug, "archive_etat_pendant_incompletude", |
1085 |
|
|
$sql_archive_etat_pendant_incompletude, $sql_archive_etat_pendant_incompletude_by_id, false); |
1086 |
|
|
|
1087 |
|
|
// archive_evenement_suivant_tacite |
1088 |
|
|
$this->init_select($form, $db, $maj, $debug, "archive_evenement_suivant_tacite", |
1089 |
|
|
$sql_archive_evenement_suivant_tacite, $sql_archive_evenement_suivant_tacite_by_id, false); |
1090 |
|
|
|
1091 |
|
|
// archive_evenement_suivant_tacite_incompletude |
1092 |
|
|
$this->init_select($form, $db, $maj, $debug, "archive_evenement_suivant_tacite_incompletude", |
1093 |
|
|
$sql_archive_evenement_suivant_tacite_incompletude, $sql_archive_evenement_suivant_tacite_incompletude_by_id, false); |
1094 |
|
|
|
1095 |
nhaye |
2101 |
// autorite_competente |
1096 |
|
|
$this->init_select($form, $db, $maj, $debug, "autorite_competente", |
1097 |
|
|
$sql_autorite_competente, $sql_autorite_competente_by_id, false); |
1098 |
|
|
|
1099 |
vpihour |
489 |
// avis_decision |
1100 |
|
|
$this->init_select($form, $db, $maj, $debug, "avis_decision", |
1101 |
|
|
$sql_avis_decision, $sql_avis_decision_by_id, false); |
1102 |
fmichon |
455 |
|
1103 |
softime |
2030 |
// document_numerise |
1104 |
|
|
$this->init_select($form, $db, $maj, $debug, "document_numerise", |
1105 |
|
|
$sql_document_numerise, $sql_document_numerise_by_id, false); |
1106 |
|
|
|
1107 |
nhaye |
428 |
// dossier |
1108 |
|
|
$this->init_select($form, $db, $maj, $debug, "dossier", |
1109 |
|
|
$sql_dossier, $sql_dossier_by_id, false); |
1110 |
|
|
|
1111 |
|
|
// etat |
1112 |
|
|
$this->init_select($form, $db, $maj, $debug, "etat", |
1113 |
|
|
$sql_etat, $sql_etat_by_id, false); |
1114 |
|
|
|
1115 |
fmichon |
455 |
// evenement |
1116 |
|
|
$this->init_select($form, $db, $maj, $debug, "evenement", |
1117 |
|
|
$sql_evenement, $sql_evenement_by_id, false); |
1118 |
vpihour |
1226 |
|
1119 |
|
|
// signataire_arrete |
1120 |
|
|
$this->init_select($form, $db, $maj, $debug, "signataire_arrete", |
1121 |
nhaye |
1297 |
$sql_signataire_arrete, $sql_signataire_arrete_by_id, true); |
1122 |
atreal |
307 |
}// fin select |
1123 |
fraynaud |
3 |
|
1124 |
atreal |
307 |
//================================== |
1125 |
|
|
// sous Formulaire [subform] |
1126 |
|
|
//================================== |
1127 |
fraynaud |
3 |
|
1128 |
atreal |
307 |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire,&$db,$DEBUG=null){ |
1129 |
|
|
$this->retourformulaire = $retourformulaire; |
1130 |
nhaye |
428 |
if($validation == 0) { |
1131 |
fmichon |
455 |
if($retourformulaire =='action') |
1132 |
|
|
$form->setVal('action', $idxformulaire); |
1133 |
nhaye |
2101 |
if($retourformulaire =='autorite_competente') |
1134 |
|
|
$form->setVal('autorite_competente', $idxformulaire); |
1135 |
vpihour |
489 |
if($retourformulaire =='avis_decision') |
1136 |
|
|
$form->setVal('avis_decision', $idxformulaire); |
1137 |
softime |
2030 |
if($retourformulaire =='document_numerise') |
1138 |
|
|
$form->setVal('document_numerise', $idxformulaire); |
1139 |
nhaye |
428 |
if($retourformulaire =='dossier') |
1140 |
|
|
$form->setVal('dossier', $idxformulaire); |
1141 |
nhaye |
1717 |
if($retourformulaire =='signataire_arrete') |
1142 |
|
|
$form->setVal('signataire_arrete', $idxformulaire); |
1143 |
|
|
}// fin validation |
1144 |
|
|
if ($validation == 0 and $maj == 0) { |
1145 |
fmichon |
455 |
if($retourformulaire =='etat') |
1146 |
nhaye |
1717 |
$form->setVal('archive_etat_pendant_incompletude', $idxformulaire); |
1147 |
|
|
if($retourformulaire =='evenement') |
1148 |
|
|
$form->setVal('archive_evenement_suivant_tacite', $idxformulaire); |
1149 |
|
|
if($retourformulaire =='evenement') |
1150 |
|
|
$form->setVal('archive_evenement_suivant_tacite_incompletude', $idxformulaire); |
1151 |
|
|
if($retourformulaire =='etat') |
1152 |
fmichon |
455 |
$form->setVal('etat', $idxformulaire); |
1153 |
atreal |
307 |
if($retourformulaire =='evenement') |
1154 |
|
|
$form->setVal('evenement', $idxformulaire); |
1155 |
|
|
}// fin validation |
1156 |
|
|
}// fin setValsousformulaire |
1157 |
fraynaud |
3 |
|
1158 |
atreal |
307 |
//================================== |
1159 |
|
|
// cle secondaire [secondary key] |
1160 |
|
|
//================================== |
1161 |
fmichon |
1005 |
/** |
1162 |
|
|
* Methode clesecondaire |
1163 |
|
|
*/ |
1164 |
|
|
function cleSecondaire($id, &$db = NULL, $val = array(), $DEBUG = false) { |
1165 |
|
|
// On appelle la methode de la classe parent |
1166 |
|
|
parent::cleSecondaire($id, $db, $val, $DEBUG); |
1167 |
|
|
// Verification de la cle secondaire : demande |
1168 |
|
|
$this->rechercheTable($db, "demande", "instruction_recepisse", $id); |
1169 |
|
|
} |
1170 |
fraynaud |
3 |
|
1171 |
fmichon |
1005 |
|
1172 |
fraynaud |
3 |
}// fin classe |
1173 |
|
|
?> |