/[openfoncier]/trunk/data/pgsql/v3.8.0-a2.sql
ViewVC logotype

Contents of /trunk/data/pgsql/v3.8.0-a2.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2159 - (show annotations)
Mon Aug 12 13:05:53 2013 UTC (11 years, 5 months ago) by vpihour
File size: 107767 byte(s)
Préparation de la release 3.8.0-a2

1 -- Script de mise à jour vers la version v3.8.0-a2
2 --
3 -- XXX Ce fichier doit être renommé en v3.8.0-a2.sql au moment de la release
4 --
5 -- @package openads
6 -- @version SVN : $Id$
7 --------------------------------------------------------------------------------
8 --
9 -- Mise à jour des profils
10 --
11 INSERT INTO om_profil
12 (om_profil, libelle, hierarchie, om_validite_debut, om_validite_fin)
13 SELECT nextval('om_profil_seq'),'SERVICE CONSULTÉ INTERNE',0,NULL,NULL
14 WHERE
15 NOT EXISTS (
16 SELECT libelle FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE'
17 );
18 INSERT INTO om_profil
19 (om_profil, libelle, hierarchie, om_validite_debut, om_validite_fin)
20 SELECT nextval('om_profil_seq'),'VISUALISATION DA et DI',0,NULL,NULL
21 WHERE
22 NOT EXISTS (
23 SELECT libelle FROM om_profil WHERE libelle = 'VISUALISATION DA et DI'
24 );
25 INSERT INTO om_profil
26 (om_profil, libelle, hierarchie, om_validite_debut, om_validite_fin)
27 SELECT nextval('om_profil_seq'),'VISUALISATION DA',0,NULL,NULL
28 WHERE
29 NOT EXISTS (
30 SELECT libelle FROM om_profil WHERE libelle = 'VISUALISATION DA'
31 );
32 INSERT INTO om_profil
33 (om_profil, libelle, hierarchie, om_validite_debut, om_validite_fin)
34 SELECT nextval('om_profil_seq'),'DIVISIONNAIRE',0,NULL,NULL
35 WHERE
36 NOT EXISTS (
37 SELECT libelle FROM om_profil WHERE libelle = 'DIVISIONNAIRE'
38 );
39 INSERT INTO om_profil
40 (om_profil, libelle, hierarchie, om_validite_debut, om_validite_fin)
41 SELECT nextval('om_profil_seq'),'CHEF DE SERVICE',0,NULL,NULL
42 WHERE
43 NOT EXISTS (
44 SELECT libelle FROM om_profil WHERE libelle = 'CHEF DE SERVICE'
45 );
46
47 --
48 -- Mise à jour des widget
49 --
50 INSERT INTO om_widget (om_widget, om_collectivite, libelle, lien, texte, type)
51 SELECT nextval('om_widget_seq'),1,'Infos profil','infos_profil',NULL,'file'
52 WHERE
53 NOT EXISTS (
54 SELECT libelle FROM om_widget WHERE libelle = 'Infos profil'
55 );
56 INSERT INTO om_widget (om_widget, om_collectivite, libelle, lien, texte, type)
57 SELECT nextval('om_widget_seq'),1,'Redirection','redirection',NULL,'file'
58 WHERE
59 NOT EXISTS (
60 SELECT libelle FROM om_widget WHERE libelle = 'Redirection'
61 );
62
63 --
64 -- Mise à jour du tableau de bord
65 --
66 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
67 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR'), 'C1', 3, (SELECT om_widget FROM om_widget WHERE libelle = 'Nouveau dossier')
68 WHERE
69 NOT EXISTS (
70 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Nouveau dossier') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
71 );
72 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
73 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR'), 'C2', 3, (SELECT om_widget FROM om_widget WHERE libelle = 'Dossier existant')
74 WHERE
75 NOT EXISTS (
76 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Dossier existant') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
77 );
78 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
79 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE'), 'C2', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers limites à 15 jours')
80 WHERE
81 NOT EXISTS (
82 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers limites à 15 jours') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
83 );
84 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
85 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR'), 'C2', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers à qualifier')
86 WHERE
87 NOT EXISTS (
88 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers à qualifier') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
89 );
90 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
91 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR'), 'C1', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Infos profil')
92 WHERE
93 NOT EXISTS (
94 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Infos profil') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
95 );
96 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
97 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE'), 'C1', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Infos profil')
98 WHERE
99 NOT EXISTS (
100 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Infos profil') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
101 );
102 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
103 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ'), 'C1', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Redirection')
104 WHERE
105 NOT EXISTS (
106 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers limites à 15 jours') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
107 );
108 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
109 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE'), 'C1', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Redirection')
110 WHERE
111 NOT EXISTS (
112 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Redirection') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
113 );
114 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
115 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE'), 'C2', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers limites à 15 jours')
116 WHERE
117 NOT EXISTS (
118 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Dossiers limites à 15 jours') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
119 );
120 INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget)
121 SELECT nextval('om_dashboard_seq'),(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE'), 'C1', 1, (SELECT om_widget FROM om_widget WHERE libelle = 'Infos profil')
122 WHERE
123 NOT EXISTS (
124 SELECT om_dashboard FROM om_dashboard WHERE om_widget = (SELECT om_widget FROM om_widget WHERE libelle = 'Infos profil') AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
125 );
126
127 --
128 -- Mise à jour des utilisateurs
129 --
130 INSERT INTO om_utilisateur (om_utilisateur, nom, email, login, pwd, om_collectivite, om_type, om_profil)
131 SELECT nextval('om_utilisateur_seq'),'Service consulté interne','[email protected]','consuint','41f5107d08bf85431bf518a48315008b',1,'db',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
132 WHERE
133 NOT EXISTS (
134 SELECT nom FROM om_utilisateur WHERE nom = 'Service consulté interne'
135 );
136
137 INSERT INTO om_utilisateur (om_utilisateur, nom, email, login, pwd, om_collectivite, om_type, om_profil)
138 SELECT nextval('om_utilisateur_seq'),'Visualisation DA et DI','[email protected]','visudadi','f5482d356ab55aae5edf5e6146f44644',1,'db',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
139 WHERE
140 NOT EXISTS (
141 SELECT nom FROM om_utilisateur WHERE nom = 'Visualisation DA et DI'
142 );
143
144 INSERT INTO om_utilisateur (om_utilisateur, nom, email, login, pwd, om_collectivite, om_type, om_profil)
145 SELECT nextval('om_utilisateur_seq'),'Visualisation DA','[email protected]','visuda','f8d59fd856bf844a90f0968e8acd8cac',1,'db',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
146 WHERE
147 NOT EXISTS (
148 SELECT nom FROM om_utilisateur WHERE nom = 'Visualisation DA'
149 );
150
151 INSERT INTO om_utilisateur (om_utilisateur, nom, email, login, pwd, om_collectivite, om_type, om_profil)
152 SELECT nextval('om_utilisateur_seq'),'Qualificateur','[email protected]','qualif','c7f6e8776497fc37bc20c6eae9db1c9d',1,'db',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
153 WHERE
154 NOT EXISTS (
155 SELECT nom FROM om_utilisateur WHERE nom = 'Qualificateur'
156 );
157
158 INSERT INTO om_utilisateur (om_utilisateur, nom, email, login, pwd, om_collectivite, om_type, om_profil)
159 SELECT nextval('om_utilisateur_seq'),'Divisionnaire','[email protected]','divi','a8124c681eeedd309a78db78c6d087b9',1,'db',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
160 WHERE
161 NOT EXISTS (
162 SELECT nom FROM om_utilisateur WHERE nom = 'Divisionnaire'
163 );
164
165 INSERT INTO om_utilisateur (om_utilisateur, nom, email, login, pwd, om_collectivite, om_type, om_profil)
166 SELECT nextval('om_utilisateur_seq'),'Chef de service','[email protected]','chef','cbb4581ba3ada1ddef9b431eef2660ce',1,'db',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
167 WHERE
168 NOT EXISTS (
169 SELECT nom FROM om_utilisateur WHERE nom = 'Chef de service'
170 );
171
172 ---
173 --- Mise à jour des droits
174 ---
175 INSERT INTO om_droit (om_droit, libelle, om_profil)
176 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
177 WHERE
178 NOT EXISTS (
179 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
180 );
181
182 INSERT INTO om_droit (om_droit, libelle, om_profil)
183 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
184 WHERE
185 NOT EXISTS (
186 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
187 );
188
189 INSERT INTO om_droit (om_droit, libelle, om_profil)
190 SELECT nextval('om_droit_seq'),'dossier_instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
191 WHERE
192 NOT EXISTS (
193 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
194 );
195
196 INSERT INTO om_droit (om_droit, libelle, om_profil)
197 SELECT nextval('om_droit_seq'),'dossier_instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
198 WHERE
199 NOT EXISTS (
200 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
201 );
202
203 INSERT INTO om_droit (om_droit, libelle, om_profil)
204 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
205 WHERE
206 NOT EXISTS (
207 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'GUICHET UNIQUE')
208 );
209
210 INSERT INTO om_droit (om_droit, libelle, om_profil)
211 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
212 WHERE
213 NOT EXISTS (
214 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
215 );
216
217 INSERT INTO om_droit (om_droit, libelle, om_profil)
218 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
219 WHERE
220 NOT EXISTS (
221 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
222 );
223
224 INSERT INTO om_droit (om_droit, libelle, om_profil)
225 SELECT nextval('om_droit_seq'),'dossier_instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
226 WHERE
227 NOT EXISTS (
228 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
229 );
230
231 INSERT INTO om_droit (om_droit, libelle, om_profil)
232 SELECT nextval('om_droit_seq'),'dossier_instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
233 WHERE
234 NOT EXISTS (
235 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
236 );
237
238 INSERT INTO om_droit (om_droit, libelle, om_profil)
239 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
240 WHERE
241 NOT EXISTS (
242 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
243 );
244
245 INSERT INTO om_droit (om_droit, libelle, om_profil)
246 SELECT nextval('om_droit_seq'),'instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
247 WHERE
248 NOT EXISTS (
249 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
250 );
251
252 INSERT INTO om_droit (om_droit, libelle, om_profil)
253 SELECT nextval('om_droit_seq'),'instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
254 WHERE
255 NOT EXISTS (
256 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
257 );
258
259 INSERT INTO om_droit (om_droit, libelle, om_profil)
260 SELECT nextval('om_droit_seq'),'consultation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
261 WHERE
262 NOT EXISTS (
263 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
264 );
265
266 INSERT INTO om_droit (om_droit, libelle, om_profil)
267 SELECT nextval('om_droit_seq'),'lot_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
268 WHERE
269 NOT EXISTS (
270 SELECT om_droit FROM om_droit WHERE libelle = 'lot_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
271 );
272
273 INSERT INTO om_droit (om_droit, libelle, om_profil)
274 SELECT nextval('om_droit_seq'),'lot_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
275 WHERE
276 NOT EXISTS (
277 SELECT om_droit FROM om_droit WHERE libelle = 'lot_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
278 );
279
280 INSERT INTO om_droit (om_droit, libelle, om_profil)
281 SELECT nextval('om_droit_seq'),'demande_avis_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
282 WHERE
283 NOT EXISTS (
284 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
285 );
286
287 INSERT INTO om_droit (om_droit, libelle, om_profil)
288 SELECT nextval('om_droit_seq'),'demande_avis_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
289 WHERE
290 NOT EXISTS (
291 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
292 );
293
294 INSERT INTO om_droit (om_droit, libelle, om_profil)
295 SELECT nextval('om_droit_seq'),'demande_avis_exporter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
296 WHERE
297 NOT EXISTS (
298 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_exporter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
299 );
300
301 INSERT INTO om_droit (om_droit, libelle, om_profil)
302 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
303 WHERE
304 NOT EXISTS (
305 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
306 );
307
308 INSERT INTO om_droit (om_droit, libelle, om_profil)
309 SELECT nextval('om_droit_seq'),'menu_demande_avis',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
310 WHERE
311 NOT EXISTS (
312 SELECT om_droit FROM om_droit WHERE libelle = 'menu_demande_avis' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
313 );
314
315 INSERT INTO om_droit (om_droit, libelle, om_profil)
316 SELECT nextval('om_droit_seq'),'demande_avis_encours',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
317 WHERE
318 NOT EXISTS (
319 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_encours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
320 );
321
322 INSERT INTO om_droit (om_droit, libelle, om_profil)
323 SELECT nextval('om_droit_seq'),'demande_avis_passee',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
324 WHERE
325 NOT EXISTS (
326 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_passee' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
327 );
328
329 INSERT INTO om_droit (om_droit, libelle, om_profil)
330 SELECT nextval('om_droit_seq'),'demande_avis_encours_exporter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
331 WHERE
332 NOT EXISTS (
333 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_encours_exporter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
334 );
335
336 INSERT INTO om_droit (om_droit, libelle, om_profil)
337 SELECT nextval('om_droit_seq'),'demande_avis_passee_exporter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
338 WHERE
339 NOT EXISTS (
340 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_passee_exporter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
341 );
342
343 INSERT INTO om_droit (om_droit, libelle, om_profil)
344 SELECT nextval('om_droit_seq'),'consultation_retour_avis_service',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
345 WHERE
346 NOT EXISTS (
347 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_retour_avis_service' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
348 );
349
350 INSERT INTO om_droit (om_droit, libelle, om_profil)
351 SELECT nextval('om_droit_seq'),'consultation_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
352 WHERE
353 NOT EXISTS (
354 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
355 );
356
357 INSERT INTO om_droit (om_droit, libelle, om_profil)
358 SELECT nextval('om_droit_seq'),'dossier_document',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
359 WHERE
360 NOT EXISTS (
361 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_document' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
362 );
363
364 INSERT INTO om_droit (om_droit, libelle, om_profil)
365 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
366 WHERE
367 NOT EXISTS (
368 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
369 );
370
371 INSERT INTO om_droit (om_droit, libelle, om_profil)
372 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
373 WHERE
374 NOT EXISTS (
375 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
376 );
377
378 INSERT INTO om_droit (om_droit, libelle, om_profil)
379 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
380 WHERE
381 NOT EXISTS (
382 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
383 );
384
385 INSERT INTO om_droit (om_droit, libelle, om_profil)
386 SELECT nextval('om_droit_seq'),'demande_avis_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
387 WHERE
388 NOT EXISTS (
389 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
390 );
391
392 INSERT INTO om_droit (om_droit, libelle, om_profil)
393 SELECT nextval('om_droit_seq'),'demande_avis_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
394 WHERE
395 NOT EXISTS (
396 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
397 );
398
399 INSERT INTO om_droit (om_droit, libelle, om_profil)
400 SELECT nextval('om_droit_seq'),'demande_avis_exporter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
401 WHERE
402 NOT EXISTS (
403 SELECT om_droit FROM om_droit WHERE libelle = 'demande_avis_exporter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
404 );
405
406 INSERT INTO om_droit (om_droit, libelle, om_profil)
407 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
408 WHERE
409 NOT EXISTS (
410 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
411 );
412
413 INSERT INTO om_droit (om_droit, libelle, om_profil)
414 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
415 WHERE
416 NOT EXISTS (
417 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
418 );
419
420 INSERT INTO om_droit (om_droit, libelle, om_profil)
421 SELECT nextval('om_droit_seq'),'dossier_autorisation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
422 WHERE
423 NOT EXISTS (
424 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ INTERNE')
425 );
426
427 INSERT INTO om_droit (om_droit, libelle, om_profil)
428 SELECT nextval('om_droit_seq'),'dossier_autorisation_avis_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
429 WHERE
430 NOT EXISTS (
431 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_avis_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
432 );
433
434 INSERT INTO om_droit (om_droit, libelle, om_profil)
435 SELECT nextval('om_droit_seq'),'dossier_autorisation_avis_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
436 WHERE
437 NOT EXISTS (
438 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_avis_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
439 );
440
441 INSERT INTO om_droit (om_droit, libelle, om_profil)
442 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
443 WHERE
444 NOT EXISTS (
445 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'SERVICE CONSULTÉ')
446 );
447
448 INSERT INTO om_droit (om_droit, libelle, om_profil)
449 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
450 WHERE
451 NOT EXISTS (
452 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
453 );
454
455 INSERT INTO om_droit (om_droit, libelle, om_profil)
456 SELECT nextval('om_droit_seq'),'dossier_autorisation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
457 WHERE
458 NOT EXISTS (
459 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
460 );
461
462 INSERT INTO om_droit (om_droit, libelle, om_profil)
463 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
464 WHERE
465 NOT EXISTS (
466 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
467 );
468
469 INSERT INTO om_droit (om_droit, libelle, om_profil)
470 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
471 WHERE
472 NOT EXISTS (
473 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
474 );
475
476 INSERT INTO om_droit (om_droit, libelle, om_profil)
477 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
478 WHERE
479 NOT EXISTS (
480 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
481 );
482
483 INSERT INTO om_droit (om_droit, libelle, om_profil)
484 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
485 WHERE
486 NOT EXISTS (
487 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
488 );
489
490 INSERT INTO om_droit (om_droit, libelle, om_profil)
491 SELECT nextval('om_droit_seq'),'dossier_instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
492 WHERE
493 NOT EXISTS (
494 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
495 );
496
497 INSERT INTO om_droit (om_droit, libelle, om_profil)
498 SELECT nextval('om_droit_seq'),'dossier_instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
499 WHERE
500 NOT EXISTS (
501 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
502 );
503
504 INSERT INTO om_droit (om_droit, libelle, om_profil)
505 SELECT nextval('om_droit_seq'),'instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
506 WHERE
507 NOT EXISTS (
508 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
509 );
510
511 INSERT INTO om_droit (om_droit, libelle, om_profil)
512 SELECT nextval('om_droit_seq'),'instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
513 WHERE
514 NOT EXISTS (
515 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
516 );
517
518 INSERT INTO om_droit (om_droit, libelle, om_profil)
519 SELECT nextval('om_droit_seq'),'consultation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
520 WHERE
521 NOT EXISTS (
522 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
523 );
524
525 INSERT INTO om_droit (om_droit, libelle, om_profil)
526 SELECT nextval('om_droit_seq'),'consultation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
527 WHERE
528 NOT EXISTS (
529 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
530 );
531
532 INSERT INTO om_droit (om_droit, libelle, om_profil)
533 SELECT nextval('om_droit_seq'),'lot_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
534 WHERE
535 NOT EXISTS (
536 SELECT om_droit FROM om_droit WHERE libelle = 'lot_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
537 );
538
539 INSERT INTO om_droit (om_droit, libelle, om_profil)
540 SELECT nextval('om_droit_seq'),'lot_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
541 WHERE
542 NOT EXISTS (
543 SELECT om_droit FROM om_droit WHERE libelle = 'lot_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
544 );
545
546 INSERT INTO om_droit (om_droit, libelle, om_profil)
547 SELECT nextval('om_droit_seq'),'blocnote_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
548 WHERE
549 NOT EXISTS (
550 SELECT om_droit FROM om_droit WHERE libelle = 'blocnote_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
551 );
552
553 INSERT INTO om_droit (om_droit, libelle, om_profil)
554 SELECT nextval('om_droit_seq'),'blocnote_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
555 WHERE
556 NOT EXISTS (
557 SELECT om_droit FROM om_droit WHERE libelle = 'blocnote_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
558 );
559
560 INSERT INTO om_droit (om_droit, libelle, om_profil)
561 SELECT nextval('om_droit_seq'),'dossier_commission_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
562 WHERE
563 NOT EXISTS (
564 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
565 );
566
567 INSERT INTO om_droit (om_droit, libelle, om_profil)
568 SELECT nextval('om_droit_seq'),'dossier_commission_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
569 WHERE
570 NOT EXISTS (
571 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
572 );
573
574 INSERT INTO om_droit (om_droit, libelle, om_profil)
575 SELECT nextval('om_droit_seq'),'dossier_message_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
576 WHERE
577 NOT EXISTS (
578 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
579 );
580
581 INSERT INTO om_droit (om_droit, libelle, om_profil)
582 SELECT nextval('om_droit_seq'),'dossier_message_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
583 WHERE
584 NOT EXISTS (
585 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
586 );
587
588 INSERT INTO om_droit (om_droit, libelle, om_profil)
589 SELECT nextval('om_droit_seq'),'menu_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
590 WHERE
591 NOT EXISTS (
592 SELECT om_droit FROM om_droit WHERE libelle = 'menu_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA et DI')
593 );
594
595 INSERT INTO om_droit (om_droit, libelle, om_profil)
596 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
597 WHERE
598 NOT EXISTS (
599 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
600 );
601
602 INSERT INTO om_droit (om_droit, libelle, om_profil)
603 SELECT nextval('om_droit_seq'),'dossier_autorisation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
604 WHERE
605 NOT EXISTS (
606 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
607 );
608
609 INSERT INTO om_droit (om_droit, libelle, om_profil)
610 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
611 WHERE
612 NOT EXISTS (
613 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
614 );
615
616 INSERT INTO om_droit (om_droit, libelle, om_profil)
617 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
618 WHERE
619 NOT EXISTS (
620 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
621 );
622
623 INSERT INTO om_droit (om_droit, libelle, om_profil)
624 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
625 WHERE
626 NOT EXISTS (
627 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
628 );
629
630 INSERT INTO om_droit (om_droit, libelle, om_profil)
631 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
632 WHERE
633 NOT EXISTS (
634 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'VISUALISATION DA')
635 );
636
637 INSERT INTO om_droit (om_droit, libelle, om_profil)
638 SELECT nextval('om_droit_seq'),'demande_nouveau_dossier_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
639 WHERE
640 NOT EXISTS (
641 SELECT om_droit FROM om_droit WHERE libelle = 'demande_nouveau_dossier_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
642 );
643
644 INSERT INTO om_droit (om_droit, libelle, om_profil)
645 SELECT nextval('om_droit_seq'),'demande_dossier_existant_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
646 WHERE
647 NOT EXISTS (
648 SELECT om_droit FROM om_droit WHERE libelle = 'demande_dossier_existant_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
649 );
650
651 INSERT INTO om_droit (om_droit, libelle, om_profil)
652 SELECT nextval('om_droit_seq'),'demande_dossier_existant_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
653 WHERE
654 NOT EXISTS (
655 SELECT om_droit FROM om_droit WHERE libelle = 'demande_dossier_existant_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
656 );
657
658 INSERT INTO om_droit (om_droit, libelle, om_profil)
659 SELECT nextval('om_droit_seq'),'menu_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
660 WHERE
661 NOT EXISTS (
662 SELECT om_droit FROM om_droit WHERE libelle = 'menu_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
663 );
664
665 INSERT INTO om_droit (om_droit, libelle, om_profil)
666 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
667 WHERE
668 NOT EXISTS (
669 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
670 );
671
672 INSERT INTO om_droit (om_droit, libelle, om_profil)
673 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
674 WHERE
675 NOT EXISTS (
676 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
677 );
678
679 INSERT INTO om_droit (om_droit, libelle, om_profil)
680 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
681 WHERE
682 NOT EXISTS (
683 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
684 );
685
686 INSERT INTO om_droit (om_droit, libelle, om_profil)
687 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_encours_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
688 WHERE
689 NOT EXISTS (
690 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_encours_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
691 );
692
693 INSERT INTO om_droit (om_droit, libelle, om_profil)
694 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_encours_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
695 WHERE
696 NOT EXISTS (
697 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_encours_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
698 );
699
700 INSERT INTO om_droit (om_droit, libelle, om_profil)
701 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_encours_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
702 WHERE
703 NOT EXISTS (
704 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_encours_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
705 );
706
707 INSERT INTO om_droit (om_droit, libelle, om_profil)
708 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_clotures_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
709 WHERE
710 NOT EXISTS (
711 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_clotures_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
712 );
713
714 INSERT INTO om_droit (om_droit, libelle, om_profil)
715 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_clotures_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
716 WHERE
717 NOT EXISTS (
718 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_clotures_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
719 );
720
721 INSERT INTO om_droit (om_droit, libelle, om_profil)
722 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_clotures_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
723 WHERE
724 NOT EXISTS (
725 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_clotures_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
726 );
727
728 INSERT INTO om_droit (om_droit, libelle, om_profil)
729 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_clotures_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
730 WHERE
731 NOT EXISTS (
732 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_clotures_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
733 );
734
735 INSERT INTO om_droit (om_droit, libelle, om_profil)
736 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_clotures_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
737 WHERE
738 NOT EXISTS (
739 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_clotures_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
740 );
741
742 INSERT INTO om_droit (om_droit, libelle, om_profil)
743 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_clotures_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
744 WHERE
745 NOT EXISTS (
746 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_clotures_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
747 );
748
749 INSERT INTO om_droit (om_droit, libelle, om_profil)
750 SELECT nextval('om_droit_seq'),'dossier_instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
751 WHERE
752 NOT EXISTS (
753 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
754 );
755
756 INSERT INTO om_droit (om_droit, libelle, om_profil)
757 SELECT nextval('om_droit_seq'),'dossier_instruction_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
758 WHERE
759 NOT EXISTS (
760 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
761 );
762
763 INSERT INTO om_droit (om_droit, libelle, om_profil)
764 SELECT nextval('om_droit_seq'),'dossier_instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
765 WHERE
766 NOT EXISTS (
767 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
768 );
769
770 INSERT INTO om_droit (om_droit, libelle, om_profil)
771 SELECT nextval('om_droit_seq'),'messages_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
772 WHERE
773 NOT EXISTS (
774 SELECT om_droit FROM om_droit WHERE libelle = 'messages_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
775 );
776
777 INSERT INTO om_droit (om_droit, libelle, om_profil)
778 SELECT nextval('om_droit_seq'),'messages_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
779 WHERE
780 NOT EXISTS (
781 SELECT om_droit FROM om_droit WHERE libelle = 'messages_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
782 );
783
784 INSERT INTO om_droit (om_droit, libelle, om_profil)
785 SELECT nextval('om_droit_seq'),'dossier_message_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
786 WHERE
787 NOT EXISTS (
788 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
789 );
790
791 INSERT INTO om_droit (om_droit, libelle, om_profil)
792 SELECT nextval('om_droit_seq'),'dossier_message_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
793 WHERE
794 NOT EXISTS (
795 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
796 );
797
798 INSERT INTO om_droit (om_droit, libelle, om_profil)
799 SELECT nextval('om_droit_seq'),'dossier_message_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
800 WHERE
801 NOT EXISTS (
802 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
803 );
804
805 INSERT INTO om_droit (om_droit, libelle, om_profil)
806 SELECT nextval('om_droit_seq'),'commission_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
807 WHERE
808 NOT EXISTS (
809 SELECT om_droit FROM om_droit WHERE libelle = 'commission_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
810 );
811
812 INSERT INTO om_droit (om_droit, libelle, om_profil)
813 SELECT nextval('om_droit_seq'),'commission_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
814 WHERE
815 NOT EXISTS (
816 SELECT om_droit FROM om_droit WHERE libelle = 'commission_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
817 );
818
819 INSERT INTO om_droit (om_droit, libelle, om_profil)
820 SELECT nextval('om_droit_seq'),'dossier_commission',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
821 WHERE
822 NOT EXISTS (
823 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
824 );
825
826 INSERT INTO om_droit (om_droit, libelle, om_profil)
827 SELECT nextval('om_droit_seq'),'dossier_commission_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
828 WHERE
829 NOT EXISTS (
830 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
831 );
832
833 INSERT INTO om_droit (om_droit, libelle, om_profil)
834 SELECT nextval('om_droit_seq'),'instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
835 WHERE
836 NOT EXISTS (
837 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
838 );
839
840 INSERT INTO om_droit (om_droit, libelle, om_profil)
841 SELECT nextval('om_droit_seq'),'instruction_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
842 WHERE
843 NOT EXISTS (
844 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
845 );
846
847 INSERT INTO om_droit (om_droit, libelle, om_profil)
848 SELECT nextval('om_droit_seq'),'instruction_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
849 WHERE
850 NOT EXISTS (
851 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
852 );
853
854 INSERT INTO om_droit (om_droit, libelle, om_profil)
855 SELECT nextval('om_droit_seq'),'instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
856 WHERE
857 NOT EXISTS (
858 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
859 );
860
861 INSERT INTO om_droit (om_droit, libelle, om_profil)
862 SELECT nextval('om_droit_seq'),'blocnote',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
863 WHERE
864 NOT EXISTS (
865 SELECT om_droit FROM om_droit WHERE libelle = 'blocnote' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
866 );
867
868 INSERT INTO om_droit (om_droit, libelle, om_profil)
869 SELECT nextval('om_droit_seq'),'consultation',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
870 WHERE
871 NOT EXISTS (
872 SELECT om_droit FROM om_droit WHERE libelle = 'consultation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
873 );
874
875 INSERT INTO om_droit (om_droit, libelle, om_profil)
876 SELECT nextval('om_droit_seq'),'consultation_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
877 WHERE
878 NOT EXISTS (
879 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
880 );
881
882 INSERT INTO om_droit (om_droit, libelle, om_profil)
883 SELECT nextval('om_droit_seq'),'consultation_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
884 WHERE
885 NOT EXISTS (
886 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
887 );
888
889 INSERT INTO om_droit (om_droit, libelle, om_profil)
890 SELECT nextval('om_droit_seq'),'consultation_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
891 WHERE
892 NOT EXISTS (
893 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
894 );
895
896 INSERT INTO om_droit (om_droit, libelle, om_profil)
897 SELECT nextval('om_droit_seq'),'consultation_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
898 WHERE
899 NOT EXISTS (
900 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
901 );
902
903 INSERT INTO om_droit (om_droit, libelle, om_profil)
904 SELECT nextval('om_droit_seq'),'consultation_modifier_date_reception',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
905 WHERE
906 NOT EXISTS (
907 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier_date_reception' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
908 );
909
910 INSERT INTO om_droit (om_droit, libelle, om_profil)
911 SELECT nextval('om_droit_seq'),'consultation_consulter_autre_que_retour_avis',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
912 WHERE
913 NOT EXISTS (
914 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_consulter_autre_que_retour_avis' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
915 );
916
917 INSERT INTO om_droit (om_droit, libelle, om_profil)
918 SELECT nextval('om_droit_seq'),'rapport_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
919 WHERE
920 NOT EXISTS (
921 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
922 );
923
924 INSERT INTO om_droit (om_droit, libelle, om_profil)
925 SELECT nextval('om_droit_seq'),'rapport_instruction_rediger',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
926 WHERE
927 NOT EXISTS (
928 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_rediger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
929 );
930
931 INSERT INTO om_droit (om_droit, libelle, om_profil)
932 SELECT nextval('om_droit_seq'),'dossiers_limites',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
933 WHERE
934 NOT EXISTS (
935 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_limites' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
936 );
937
938 INSERT INTO om_droit (om_droit, libelle, om_profil)
939 SELECT nextval('om_droit_seq'),'dossiers_limites_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
940 WHERE
941 NOT EXISTS (
942 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_limites_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
943 );
944
945 INSERT INTO om_droit (om_droit, libelle, om_profil)
946 SELECT nextval('om_droit_seq'),'recherche_direct',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
947 WHERE
948 NOT EXISTS (
949 SELECT om_droit FROM om_droit WHERE libelle = 'recherche_direct' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
950 );
951
952 INSERT INTO om_droit (om_droit, libelle, om_profil)
953 SELECT nextval('om_droit_seq'),'recherche_direct_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
954 WHERE
955 NOT EXISTS (
956 SELECT om_droit FROM om_droit WHERE libelle = 'recherche_direct_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
957 );
958
959 INSERT INTO om_droit (om_droit, libelle, om_profil)
960 SELECT nextval('om_droit_seq'),'dossiers_evenement_incomplet_majoration',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
961 WHERE
962 NOT EXISTS (
963 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_evenement_incomplet_majoration' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
964 );
965
966 INSERT INTO om_droit (om_droit, libelle, om_profil)
967 SELECT nextval('om_droit_seq'),'rapport_instruction_edition',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
968 WHERE
969 NOT EXISTS (
970 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_edition' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
971 );
972
973 INSERT INTO om_droit (om_droit, libelle, om_profil)
974 SELECT nextval('om_droit_seq'),'lot',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
975 WHERE
976 NOT EXISTS (
977 SELECT om_droit FROM om_droit WHERE libelle = 'lot' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
978 );
979
980 INSERT INTO om_droit (om_droit, libelle, om_profil)
981 SELECT nextval('om_droit_seq'),'lot_transferer',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
982 WHERE
983 NOT EXISTS (
984 SELECT om_droit FROM om_droit WHERE libelle = 'lot_transferer' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
985 );
986
987 INSERT INTO om_droit (om_droit, libelle, om_profil)
988 SELECT nextval('om_droit_seq'),'donnees_techniques',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
989 WHERE
990 NOT EXISTS (
991 SELECT om_droit FROM om_droit WHERE libelle = 'donnees_techniques' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
992 );
993
994 INSERT INTO om_droit (om_droit, libelle, om_profil)
995 SELECT nextval('om_droit_seq'),'dossier_qualifier',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
996 WHERE
997 NOT EXISTS (
998 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_qualifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
999 );
1000
1001 INSERT INTO om_droit (om_droit, libelle, om_profil)
1002 SELECT nextval('om_droit_seq'),'dossier_qualifier_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1003 WHERE
1004 NOT EXISTS (
1005 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_qualifier_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1006 );
1007
1008 INSERT INTO om_droit (om_droit, libelle, om_profil)
1009 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1010 WHERE
1011 NOT EXISTS (
1012 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1013 );
1014
1015 INSERT INTO om_droit (om_droit, libelle, om_profil)
1016 SELECT nextval('om_droit_seq'),'dossier_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1017 WHERE
1018 NOT EXISTS (
1019 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1020 );
1021
1022 INSERT INTO om_droit (om_droit, libelle, om_profil)
1023 SELECT nextval('om_droit_seq'),'dossier_autorisation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1024 WHERE
1025 NOT EXISTS (
1026 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1027 );
1028
1029 INSERT INTO om_droit (om_droit, libelle, om_profil)
1030 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1031 WHERE
1032 NOT EXISTS (
1033 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1034 );
1035
1036 INSERT INTO om_droit (om_droit, libelle, om_profil)
1037 SELECT nextval('om_droit_seq'),'demandeur',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1038 WHERE
1039 NOT EXISTS (
1040 SELECT om_droit FROM om_droit WHERE libelle = 'demandeur' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1041 );
1042
1043 INSERT INTO om_droit (om_droit, libelle, om_profil)
1044 SELECT nextval('om_droit_seq'),'petitionnaire',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1045 WHERE
1046 NOT EXISTS (
1047 SELECT om_droit FROM om_droit WHERE libelle = 'petitionnaire' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1048 );
1049
1050 INSERT INTO om_droit (om_droit, libelle, om_profil)
1051 SELECT nextval('om_droit_seq'),'delegataire',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1052 WHERE
1053 NOT EXISTS (
1054 SELECT om_droit FROM om_droit WHERE libelle = 'delegataire' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1055 );
1056
1057 INSERT INTO om_droit (om_droit, libelle, om_profil)
1058 SELECT nextval('om_droit_seq'),'profil_instructeur',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1059 WHERE
1060 NOT EXISTS (
1061 SELECT om_droit FROM om_droit WHERE libelle = 'profil_instructeur' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1062 );
1063
1064 INSERT INTO om_droit (om_droit, libelle, om_profil)
1065 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1066 WHERE
1067 NOT EXISTS (
1068 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1069 );
1070
1071 INSERT INTO om_droit (om_droit, libelle, om_profil)
1072 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1073 WHERE
1074 NOT EXISTS (
1075 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1076 );
1077
1078 INSERT INTO om_droit (om_droit, libelle, om_profil)
1079 SELECT nextval('om_droit_seq'),'document_numerise_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1080 WHERE
1081 NOT EXISTS (
1082 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1083 );
1084
1085 INSERT INTO om_droit (om_droit, libelle, om_profil)
1086 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1087 WHERE
1088 NOT EXISTS (
1089 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1090 );
1091
1092 INSERT INTO om_droit (om_droit, libelle, om_profil)
1093 SELECT nextval('om_droit_seq'),'rapport_instruction_finaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1094 WHERE
1095 NOT EXISTS (
1096 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_finaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1097 );
1098
1099 INSERT INTO om_droit (om_droit, libelle, om_profil)
1100 SELECT nextval('om_droit_seq'),'rapport_instruction_definaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1101 WHERE
1102 NOT EXISTS (
1103 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_definaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1104 );
1105
1106 INSERT INTO om_droit (om_droit, libelle, om_profil)
1107 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_finaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1108 WHERE
1109 NOT EXISTS (
1110 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_finaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1111 );
1112
1113 INSERT INTO om_droit (om_droit, libelle, om_profil)
1114 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_definaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1115 WHERE
1116 NOT EXISTS (
1117 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_definaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1118 );
1119
1120 INSERT INTO om_droit (om_droit, libelle, om_profil)
1121 SELECT nextval('om_droit_seq'),'instruction_om_fichier_instruction_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1122 WHERE
1123 NOT EXISTS (
1124 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_om_fichier_instruction_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1125 );
1126
1127 INSERT INTO om_droit (om_droit, libelle, om_profil)
1128 SELECT nextval('om_droit_seq'),'consultation_om_fichier_consultation_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1129 WHERE
1130 NOT EXISTS (
1131 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_om_fichier_consultation_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1132 );
1133
1134 INSERT INTO om_droit (om_droit, libelle, om_profil)
1135 SELECT nextval('om_droit_seq'),'commission_om_fichier_commission_ordre_jour_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1136 WHERE
1137 NOT EXISTS (
1138 SELECT om_droit FROM om_droit WHERE libelle = 'commission_om_fichier_commission_ordre_jour_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1139 );
1140
1141 INSERT INTO om_droit (om_droit, libelle, om_profil)
1142 SELECT nextval('om_droit_seq'),'commission_om_fichier_commission_compte_rendu_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1143 WHERE
1144 NOT EXISTS (
1145 SELECT om_droit FROM om_droit WHERE libelle = 'commission_om_fichier_commission_compte_rendu_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1146 );
1147
1148 INSERT INTO om_droit (om_droit, libelle, om_profil)
1149 SELECT nextval('om_droit_seq'),'demande_nouveau_dossier_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1150 WHERE
1151 NOT EXISTS (
1152 SELECT om_droit FROM om_droit WHERE libelle = 'demande_nouveau_dossier_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1153 );
1154
1155 INSERT INTO om_droit (om_droit, libelle, om_profil)
1156 SELECT nextval('om_droit_seq'),'demande_dossier_existant_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1157 WHERE
1158 NOT EXISTS (
1159 SELECT om_droit FROM om_droit WHERE libelle = 'demande_dossier_existant_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1160 );
1161
1162 INSERT INTO om_droit (om_droit, libelle, om_profil)
1163 SELECT nextval('om_droit_seq'),'demande_dossier_existant_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1164 WHERE
1165 NOT EXISTS (
1166 SELECT om_droit FROM om_droit WHERE libelle = 'demande_dossier_existant_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1167 );
1168
1169 INSERT INTO om_droit (om_droit, libelle, om_profil)
1170 SELECT nextval('om_droit_seq'),'menu_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1171 WHERE
1172 NOT EXISTS (
1173 SELECT om_droit FROM om_droit WHERE libelle = 'menu_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1174 );
1175
1176 INSERT INTO om_droit (om_droit, libelle, om_profil)
1177 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1178 WHERE
1179 NOT EXISTS (
1180 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1181 );
1182
1183 INSERT INTO om_droit (om_droit, libelle, om_profil)
1184 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1185 WHERE
1186 NOT EXISTS (
1187 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1188 );
1189
1190 INSERT INTO om_droit (om_droit, libelle, om_profil)
1191 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1192 WHERE
1193 NOT EXISTS (
1194 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1195 );
1196
1197 INSERT INTO om_droit (om_droit, libelle, om_profil)
1198 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_encours_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1199 WHERE
1200 NOT EXISTS (
1201 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_encours_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1202 );
1203
1204 INSERT INTO om_droit (om_droit, libelle, om_profil)
1205 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_encours_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1206 WHERE
1207 NOT EXISTS (
1208 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_encours_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1209 );
1210
1211 INSERT INTO om_droit (om_droit, libelle, om_profil)
1212 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_encours_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1213 WHERE
1214 NOT EXISTS (
1215 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_encours_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1216 );
1217
1218 INSERT INTO om_droit (om_droit, libelle, om_profil)
1219 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_clotures_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1220 WHERE
1221 NOT EXISTS (
1222 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_clotures_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1223 );
1224
1225 INSERT INTO om_droit (om_droit, libelle, om_profil)
1226 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_clotures_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1227 WHERE
1228 NOT EXISTS (
1229 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_clotures_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1230 );
1231
1232 INSERT INTO om_droit (om_droit, libelle, om_profil)
1233 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_clotures_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1234 WHERE
1235 NOT EXISTS (
1236 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_clotures_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1237 );
1238
1239 INSERT INTO om_droit (om_droit, libelle, om_profil)
1240 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_clotures_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1241 WHERE
1242 NOT EXISTS (
1243 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_clotures_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1244 );
1245
1246 INSERT INTO om_droit (om_droit, libelle, om_profil)
1247 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_clotures_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1248 WHERE
1249 NOT EXISTS (
1250 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_clotures_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1251 );
1252
1253 INSERT INTO om_droit (om_droit, libelle, om_profil)
1254 SELECT nextval('om_droit_seq'),'dossier_instruction_tous_clotures_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1255 WHERE
1256 NOT EXISTS (
1257 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tous_clotures_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1258 );
1259
1260 INSERT INTO om_droit (om_droit, libelle, om_profil)
1261 SELECT nextval('om_droit_seq'),'dossier_instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1262 WHERE
1263 NOT EXISTS (
1264 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1265 );
1266
1267 INSERT INTO om_droit (om_droit, libelle, om_profil)
1268 SELECT nextval('om_droit_seq'),'dossier_instruction_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1269 WHERE
1270 NOT EXISTS (
1271 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1272 );
1273
1274 INSERT INTO om_droit (om_droit, libelle, om_profil)
1275 SELECT nextval('om_droit_seq'),'dossier_instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1276 WHERE
1277 NOT EXISTS (
1278 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1279 );
1280
1281 INSERT INTO om_droit (om_droit, libelle, om_profil)
1282 SELECT nextval('om_droit_seq'),'messages_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1283 WHERE
1284 NOT EXISTS (
1285 SELECT om_droit FROM om_droit WHERE libelle = 'messages_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1286 );
1287
1288 INSERT INTO om_droit (om_droit, libelle, om_profil)
1289 SELECT nextval('om_droit_seq'),'messages_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')dossier_message_consulter
1290 WHERE
1291 NOT EXISTS (
1292 SELECT om_droit FROM om_droit WHERE libelle = 'messages_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1293 );
1294
1295 INSERT INTO om_droit (om_droit, libelle, om_profil)
1296 SELECT nextval('om_droit_seq'),'dossier_message_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1297 WHERE
1298 NOT EXISTS (
1299 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1300 );
1301
1302 INSERT INTO om_droit (om_droit, libelle, om_profil)
1303 SELECT nextval('om_droit_seq'),'dossier_message_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1304 WHERE
1305 NOT EXISTS (
1306 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1307 );
1308
1309 INSERT INTO om_droit (om_droit, libelle, om_profil)
1310 SELECT nextval('om_droit_seq'),'dossier_message_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1311 WHERE
1312 NOT EXISTS (
1313 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_message_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1314 );
1315
1316 INSERT INTO om_droit (om_droit, libelle, om_profil)
1317 SELECT nextval('om_droit_seq'),'commission_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1318 WHERE
1319 NOT EXISTS (
1320 SELECT om_droit FROM om_droit WHERE libelle = 'commission_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1321 );
1322
1323 INSERT INTO om_droit (om_droit, libelle, om_profil)
1324 SELECT nextval('om_droit_seq'),'commission_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1325 WHERE
1326 NOT EXISTS (
1327 SELECT om_droit FROM om_droit WHERE libelle = 'commission_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1328 );
1329
1330 INSERT INTO om_droit (om_droit, libelle, om_profil)
1331 SELECT nextval('om_droit_seq'),'dossier_commission',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1332 WHERE
1333 NOT EXISTS (
1334 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1335 );
1336
1337 INSERT INTO om_droit (om_droit, libelle, om_profil)
1338 SELECT nextval('om_droit_seq'),'dossier_commission_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1339 WHERE
1340 NOT EXISTS (
1341 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1342 );
1343
1344 INSERT INTO om_droit (om_droit, libelle, om_profil)
1345 SELECT nextval('om_droit_seq'),'instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1346 WHERE
1347 NOT EXISTS (
1348 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1349 );
1350
1351 INSERT INTO om_droit (om_droit, libelle, om_profil)
1352 SELECT nextval('om_droit_seq'),'instruction_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1353 WHERE
1354 NOT EXISTS (
1355 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1356 );
1357
1358 INSERT INTO om_droit (om_droit, libelle, om_profil)
1359 SELECT nextval('om_droit_seq'),'instruction_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1360 WHERE
1361 NOT EXISTS (
1362 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1363 );
1364
1365 INSERT INTO om_droit (om_droit, libelle, om_profil)
1366 SELECT nextval('om_droit_seq'),'instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1367 WHERE
1368 NOT EXISTS (
1369 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1370 );
1371
1372 INSERT INTO om_droit (om_droit, libelle, om_profil)
1373 SELECT nextval('om_droit_seq'),'blocnote',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1374 WHERE
1375 NOT EXISTS (
1376 SELECT om_droit FROM om_droit WHERE libelle = 'blocnote' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1377 );
1378
1379 INSERT INTO om_droit (om_droit, libelle, om_profil)
1380 SELECT nextval('om_droit_seq'),'consultation',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1381 WHERE
1382 NOT EXISTS (
1383 SELECT om_droit FROM om_droit WHERE libelle = 'consultation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1384 );
1385
1386 INSERT INTO om_droit (om_droit, libelle, om_profil)
1387 SELECT nextval('om_droit_seq'),'consultation_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1388 WHERE
1389 NOT EXISTS (
1390 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1391 );
1392
1393 INSERT INTO om_droit (om_droit, libelle, om_profil)
1394 SELECT nextval('om_droit_seq'),'consultation_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1395 WHERE
1396 NOT EXISTS (
1397 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1398 );
1399
1400 INSERT INTO om_droit (om_droit, libelle, om_profil)
1401 SELECT nextval('om_droit_seq'),'consultation_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1402 WHERE
1403 NOT EXISTS (
1404 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1405 );
1406
1407 INSERT INTO om_droit (om_droit, libelle, om_profil)
1408 SELECT nextval('om_droit_seq'),'consultation_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1409 WHERE
1410 NOT EXISTS (
1411 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1412 );
1413
1414 INSERT INTO om_droit (om_droit, libelle, om_profil)
1415 SELECT nextval('om_droit_seq'),'consultation_modifier_date_reception',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1416 WHERE
1417 NOT EXISTS (
1418 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier_date_reception' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1419 );
1420
1421 INSERT INTO om_droit (om_droit, libelle, om_profil)
1422 SELECT nextval('om_droit_seq'),'consultation_consulter_autre_que_retour_avis',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1423 WHERE
1424 NOT EXISTS (
1425 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_consulter_autre_que_retour_avis' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1426 );
1427
1428 INSERT INTO om_droit (om_droit, libelle, om_profil)
1429 SELECT nextval('om_droit_seq'),'rapport_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1430 WHERE
1431 NOT EXISTS (
1432 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1433 );
1434
1435 INSERT INTO om_droit (om_droit, libelle, om_profil)
1436 SELECT nextval('om_droit_seq'),'rapport_instruction_rediger',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1437 WHERE
1438 NOT EXISTS (
1439 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_rediger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1440 );
1441
1442 INSERT INTO om_droit (om_droit, libelle, om_profil)
1443 SELECT nextval('om_droit_seq'),'dossiers_limites',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1444 WHERE
1445 NOT EXISTS (
1446 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_limites' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1447 );
1448
1449 INSERT INTO om_droit (om_droit, libelle, om_profil)
1450 SELECT nextval('om_droit_seq'),'dossiers_limites_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1451 WHERE
1452 NOT EXISTS (
1453 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_limites_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1454 );
1455
1456 INSERT INTO om_droit (om_droit, libelle, om_profil)
1457 SELECT nextval('om_droit_seq'),'recherche_direct',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1458 WHERE
1459 NOT EXISTS (
1460 SELECT om_droit FROM om_droit WHERE libelle = 'recherche_direct' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1461 );
1462
1463 INSERT INTO om_droit (om_droit, libelle, om_profil)
1464 SELECT nextval('om_droit_seq'),'recherche_direct_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1465 WHERE
1466 NOT EXISTS (
1467 SELECT om_droit FROM om_droit WHERE libelle = 'recherche_direct_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1468 );
1469
1470 INSERT INTO om_droit (om_droit, libelle, om_profil)
1471 SELECT nextval('om_droit_seq'),'dossiers_evenement_incomplet_majoration',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1472 WHERE
1473 NOT EXISTS (
1474 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_evenement_incomplet_majoration' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1475 );
1476
1477 INSERT INTO om_droit (om_droit, libelle, om_profil)
1478 SELECT nextval('om_droit_seq'),'rapport_instruction_edition',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1479 WHERE
1480 NOT EXISTS (
1481 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_edition' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1482 );
1483
1484 INSERT INTO om_droit (om_droit, libelle, om_profil)
1485 SELECT nextval('om_droit_seq'),'lot',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1486 WHERE
1487 NOT EXISTS (
1488 SELECT om_droit FROM om_droit WHERE libelle = 'lot' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1489 );
1490
1491 INSERT INTO om_droit (om_droit, libelle, om_profil)
1492 SELECT nextval('om_droit_seq'),'lot_transferer',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1493 WHERE
1494 NOT EXISTS (
1495 SELECT om_droit FROM om_droit WHERE libelle = 'lot_transferer' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1496 );
1497
1498 INSERT INTO om_droit (om_droit, libelle, om_profil)
1499 SELECT nextval('om_droit_seq'),'donnees_techniques',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1500 WHERE
1501 NOT EXISTS (
1502 SELECT om_droit FROM om_droit WHERE libelle = 'donnees_techniques' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1503 );
1504
1505 INSERT INTO om_droit (om_droit, libelle, om_profil)
1506 SELECT nextval('om_droit_seq'),'dossier_qualifier',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1507 WHERE
1508 NOT EXISTS (
1509 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_qualifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1510 );
1511
1512 INSERT INTO om_droit (om_droit, libelle, om_profil)
1513 SELECT nextval('om_droit_seq'),'dossier_qualifier_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1514 WHERE
1515 NOT EXISTS (
1516 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_qualifier_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1517 );
1518
1519 INSERT INTO om_droit (om_droit, libelle, om_profil)
1520 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1521 WHERE
1522 NOT EXISTS (
1523 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1524 );
1525
1526 INSERT INTO om_droit (om_droit, libelle, om_profil)
1527 SELECT nextval('om_droit_seq'),'dossier_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1528 WHERE
1529 NOT EXISTS (
1530 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1531 );
1532
1533 INSERT INTO om_droit (om_droit, libelle, om_profil)
1534 SELECT nextval('om_droit_seq'),'dossier_autorisation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1535 WHERE
1536 NOT EXISTS (
1537 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1538 );
1539
1540 INSERT INTO om_droit (om_droit, libelle, om_profil)
1541 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1542 WHERE
1543 NOT EXISTS (
1544 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1545 );
1546
1547 INSERT INTO om_droit (om_droit, libelle, om_profil)
1548 SELECT nextval('om_droit_seq'),'demandeur',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1549 WHERE
1550 NOT EXISTS (
1551 SELECT om_droit FROM om_droit WHERE libelle = 'demandeur' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1552 );
1553
1554 INSERT INTO om_droit (om_droit, libelle, om_profil)
1555 SELECT nextval('om_droit_seq'),'petitionnaire',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1556 WHERE
1557 NOT EXISTS (
1558 SELECT om_droit FROM om_droit WHERE libelle = 'petitionnaire' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1559 );
1560
1561 INSERT INTO om_droit (om_droit, libelle, om_profil)
1562 SELECT nextval('om_droit_seq'),'delegataire',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1563 WHERE
1564 NOT EXISTS (
1565 SELECT om_droit FROM om_droit WHERE libelle = 'delegataire' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1566 );
1567
1568 INSERT INTO om_droit (om_droit, libelle, om_profil)
1569 SELECT nextval('om_droit_seq'),'profil_instructeur',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1570 WHERE
1571 NOT EXISTS (
1572 SELECT om_droit FROM om_droit WHERE libelle = 'profil_instructeur' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1573 );
1574
1575 INSERT INTO om_droit (om_droit, libelle, om_profil)
1576 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1577 WHERE
1578 NOT EXISTS (
1579 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1580 );
1581
1582 INSERT INTO om_droit (om_droit, libelle, om_profil)
1583 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1584 WHERE
1585 NOT EXISTS (
1586 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1587 );
1588
1589 INSERT INTO om_droit (om_droit, libelle, om_profil)
1590 SELECT nextval('om_droit_seq'),'document_numerise_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1591 WHERE
1592 NOT EXISTS (
1593 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1594 );
1595
1596 INSERT INTO om_droit (om_droit, libelle, om_profil)
1597 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1598 WHERE
1599 NOT EXISTS (
1600 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1601 );
1602
1603 INSERT INTO om_droit (om_droit, libelle, om_profil)
1604 SELECT nextval('om_droit_seq'),'rapport_instruction_finaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1605 WHERE
1606 NOT EXISTS (
1607 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_finaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1608 );
1609
1610 INSERT INTO om_droit (om_droit, libelle, om_profil)
1611 SELECT nextval('om_droit_seq'),'rapport_instruction_definaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1612 WHERE
1613 NOT EXISTS (
1614 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_definaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1615 );
1616
1617 INSERT INTO om_droit (om_droit, libelle, om_profil)
1618 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_finaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1619 WHERE
1620 NOT EXISTS (
1621 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_finaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1622 );
1623
1624 INSERT INTO om_droit (om_droit, libelle, om_profil)
1625 SELECT nextval('om_droit_seq'),'dossier_instruction_mes_encours_definaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1626 WHERE
1627 NOT EXISTS (
1628 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_mes_encours_definaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1629 );
1630
1631 INSERT INTO om_droit (om_droit, libelle, om_profil)
1632 SELECT nextval('om_droit_seq'),'instruction_om_fichier_instruction_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1633 WHERE
1634 NOT EXISTS (
1635 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_om_fichier_instruction_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1636 );
1637
1638 INSERT INTO om_droit (om_droit, libelle, om_profil)
1639 SELECT nextval('om_droit_seq'),'consultation_om_fichier_consultation_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1640 WHERE
1641 NOT EXISTS (
1642 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_om_fichier_consultation_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1643 );
1644
1645 INSERT INTO om_droit (om_droit, libelle, om_profil)
1646 SELECT nextval('om_droit_seq'),'commission_om_fichier_commission_ordre_jour_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1647 WHERE
1648 NOT EXISTS (
1649 SELECT om_droit FROM om_droit WHERE libelle = 'commission_om_fichier_commission_ordre_jour_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1650 );
1651
1652 INSERT INTO om_droit (om_droit, libelle, om_profil)
1653 SELECT nextval('om_droit_seq'),'commission_om_fichier_commission_compte_rendu_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1654 WHERE
1655 NOT EXISTS (
1656 SELECT om_droit FROM om_droit WHERE libelle = 'commission_om_fichier_commission_compte_rendu_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1657 );
1658
1659 INSERT INTO om_droit (om_droit, libelle, om_profil)
1660 SELECT nextval('om_droit_seq'),'demande_nouveau_dossier_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1661 WHERE
1662 NOT EXISTS (
1663 SELECT om_droit FROM om_droit WHERE libelle = 'demande_nouveau_dossier_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1664 );
1665
1666 INSERT INTO om_droit (om_droit, libelle, om_profil)
1667 SELECT nextval('om_droit_seq'),'demande_dossier_existant_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1668 WHERE
1669 NOT EXISTS (
1670 SELECT om_droit FROM om_droit WHERE libelle = 'demande_dossier_existant_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1671 );
1672
1673 INSERT INTO om_droit (om_droit, libelle, om_profil)
1674 SELECT nextval('om_droit_seq'),'demande_dossier_existant_ajouter',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1675 WHERE
1676 NOT EXISTS (
1677 SELECT om_droit FROM om_droit WHERE libelle = 'demande_dossier_existant_ajouter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1678 );
1679
1680 INSERT INTO om_droit (om_droit, libelle, om_profil)
1681 SELECT nextval('om_droit_seq'),'dossier_instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1682 WHERE
1683 NOT EXISTS (
1684 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1685 );
1686
1687 INSERT INTO om_droit (om_droit, libelle, om_profil)
1688 SELECT nextval('om_droit_seq'),'dossier_instruction_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1689 WHERE
1690 NOT EXISTS (
1691 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1692 );
1693
1694 INSERT INTO om_droit (om_droit, libelle, om_profil)
1695 SELECT nextval('om_droit_seq'),'dossier_instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1696 WHERE
1697 NOT EXISTS (
1698 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1699 );
1700
1701 INSERT INTO om_droit (om_droit, libelle, om_profil)
1702 SELECT nextval('om_droit_seq'),'instruction_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1703 WHERE
1704 NOT EXISTS (
1705 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1706 );
1707
1708 INSERT INTO om_droit (om_droit, libelle, om_profil)
1709 SELECT nextval('om_droit_seq'),'instruction_modifier',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1710 WHERE
1711 NOT EXISTS (
1712 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_modifier' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1713 );
1714
1715 INSERT INTO om_droit (om_droit, libelle, om_profil)
1716 SELECT nextval('om_droit_seq'),'instruction_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1717 WHERE
1718 NOT EXISTS (
1719 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1720 );
1721
1722 INSERT INTO om_droit (om_droit, libelle, om_profil)
1723 SELECT nextval('om_droit_seq'),'consultation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1724 WHERE
1725 NOT EXISTS (
1726 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1727 );
1728
1729 INSERT INTO om_droit (om_droit, libelle, om_profil)
1730 SELECT nextval('om_droit_seq'),'consultation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1731 WHERE
1732 NOT EXISTS (
1733 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1734 );
1735
1736 INSERT INTO om_droit (om_droit, libelle, om_profil)
1737 SELECT nextval('om_droit_seq'),'consultation_mes_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1738 WHERE
1739 NOT EXISTS (
1740 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_mes_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1741 );
1742
1743 INSERT INTO om_droit (om_droit, libelle, om_profil)
1744 SELECT nextval('om_droit_seq'),'consultation_tous_retours',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1745 WHERE
1746 NOT EXISTS (
1747 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_tous_retours' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1748 );
1749
1750 INSERT INTO om_droit (om_droit, libelle, om_profil)
1751 SELECT nextval('om_droit_seq'),'consultation_modifier_lu',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1752 WHERE
1753 NOT EXISTS (
1754 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier_lu' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1755 );
1756
1757 INSERT INTO om_droit (om_droit, libelle, om_profil)
1758 SELECT nextval('om_droit_seq'),'consultation_modifier_date_reception',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1759 WHERE
1760 NOT EXISTS (
1761 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_modifier_date_reception' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1762 );
1763
1764 INSERT INTO om_droit (om_droit, libelle, om_profil)
1765 SELECT nextval('om_droit_seq'),'consultation_consulter_autre_que_retour_avis',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1766 WHERE
1767 NOT EXISTS (
1768 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_consulter_autre_que_retour_avis' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1769 );
1770
1771 INSERT INTO om_droit (om_droit, libelle, om_profil)
1772 SELECT nextval('om_droit_seq'),'rapport_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1773 WHERE
1774 NOT EXISTS (
1775 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1776 );
1777
1778 INSERT INTO om_droit (om_droit, libelle, om_profil)
1779 SELECT nextval('om_droit_seq'),'rapport_instruction_rediger',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1780 WHERE
1781 NOT EXISTS (
1782 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_rediger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1783 );
1784
1785 INSERT INTO om_droit (om_droit, libelle, om_profil)
1786 SELECT nextval('om_droit_seq'),'rapport_instruction_edition',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1787 WHERE
1788 NOT EXISTS (
1789 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_edition' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1790 );
1791
1792 INSERT INTO om_droit (om_droit, libelle, om_profil)
1793 SELECT nextval('om_droit_seq'),'menu_autorisation',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1794 WHERE
1795 NOT EXISTS (
1796 SELECT om_droit FROM om_droit WHERE libelle = 'menu_autorisation' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1797 );
1798
1799 INSERT INTO om_droit (om_droit, libelle, om_profil)
1800 SELECT nextval('om_droit_seq'),'document_numerise_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1801 WHERE
1802 NOT EXISTS (
1803 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1804 );
1805
1806 INSERT INTO om_droit (om_droit, libelle, om_profil)
1807 SELECT nextval('om_droit_seq'),'document_numerise_view',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1808 WHERE
1809 NOT EXISTS (
1810 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_view' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1811 );
1812
1813 INSERT INTO om_droit (om_droit, libelle, om_profil)
1814 SELECT nextval('om_droit_seq'),'document_numerise_uid_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1815 WHERE
1816 NOT EXISTS (
1817 SELECT om_droit FROM om_droit WHERE libelle = 'document_numerise_uid_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1818 );
1819
1820 INSERT INTO om_droit (om_droit, libelle, om_profil)
1821 SELECT nextval('om_droit_seq'),'rapport_instruction_finaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1822 WHERE
1823 NOT EXISTS (
1824 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_finaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1825 );
1826
1827 INSERT INTO om_droit (om_droit, libelle, om_profil)
1828 SELECT nextval('om_droit_seq'),'rapport_instruction_definaliser',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1829 WHERE
1830 NOT EXISTS (
1831 SELECT om_droit FROM om_droit WHERE libelle = 'rapport_instruction_definaliser' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1832 );
1833
1834 INSERT INTO om_droit (om_droit, libelle, om_profil)
1835 SELECT nextval('om_droit_seq'),'instruction_om_fichier_instruction_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1836 WHERE
1837 NOT EXISTS (
1838 SELECT om_droit FROM om_droit WHERE libelle = 'instruction_om_fichier_instruction_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1839 );
1840
1841 INSERT INTO om_droit (om_droit, libelle, om_profil)
1842 SELECT nextval('om_droit_seq'),'consultation_om_fichier_consultation_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1843 WHERE
1844 NOT EXISTS (
1845 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_om_fichier_consultation_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1846 );
1847
1848 INSERT INTO om_droit (om_droit, libelle, om_profil)
1849 SELECT nextval('om_droit_seq'),'dossier_qualifier_qualificateur_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1850 WHERE
1851 NOT EXISTS (
1852 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_qualifier_qualificateur_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1853 );
1854
1855 INSERT INTO om_droit (om_droit, libelle, om_profil)
1856 SELECT nextval('om_droit_seq'),'dossier_qualifier_qualificateur_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1857 WHERE
1858 NOT EXISTS (
1859 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_qualifier_qualificateur_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1860 );
1861
1862 INSERT INTO om_droit (om_droit, libelle, om_profil)
1863 SELECT nextval('om_droit_seq'),'dossier_autorisation_tab',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1864 WHERE
1865 NOT EXISTS (
1866 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_tab' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1867 );
1868
1869 INSERT INTO om_droit (om_droit, libelle, om_profil)
1870 SELECT nextval('om_droit_seq'),'dossier_autorisation_consulter',(SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1871 WHERE
1872 NOT EXISTS (
1873 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_autorisation_consulter' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'QUALIFICATEUR')
1874 );
1875
1876 INSERT INTO om_droit (om_droit, libelle, om_profil)
1877 SELECT nextval('om_droit_seq'),'menu_guichet_unique',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1878 WHERE
1879 NOT EXISTS (
1880 SELECT om_droit FROM om_droit WHERE libelle = 'menu_guichet_unique' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1881 );
1882
1883 INSERT INTO om_droit (om_droit, libelle, om_profil)
1884 SELECT nextval('om_droit_seq'),'menu_guichet_unique',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1885 WHERE
1886 NOT EXISTS (
1887 SELECT om_droit FROM om_droit WHERE libelle = 'menu_guichet_unique' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1888 );
1889
1890 INSERT INTO om_droit (om_droit, libelle, om_profil)
1891 SELECT nextval('om_droit_seq'),'consultation_om_fichier_consultation_telecharger',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
1892 WHERE
1893 NOT EXISTS (
1894 SELECT om_droit FROM om_droit WHERE libelle = 'consultation_om_fichier_consultation_telecharger' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
1895 );
1896
1897 INSERT INTO om_droit (om_droit, libelle, om_profil)
1898 SELECT nextval('om_droit_seq'),'dossier_commission_possible',(SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
1899 WHERE
1900 NOT EXISTS (
1901 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_possible' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CELLULE SUIVI')
1902 );
1903
1904 INSERT INTO om_droit (om_droit, libelle, om_profil)
1905 SELECT nextval('om_droit_seq'),'menu_guichet_unique',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1906 WHERE
1907 NOT EXISTS (
1908 SELECT om_droit FROM om_droit WHERE libelle = 'menu_guichet_unique' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1909 );
1910
1911 INSERT INTO om_droit (om_droit, libelle, om_profil)
1912 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1913 WHERE
1914 NOT EXISTS (
1915 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1916 );
1917
1918 INSERT INTO om_droit (om_droit, libelle, om_profil)
1919 SELECT nextval('om_droit_seq'),'dossier_commission_modifier_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1920 WHERE
1921 NOT EXISTS (
1922 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_modifier_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1923 );
1924
1925 INSERT INTO om_droit (om_droit, libelle, om_profil)
1926 SELECT nextval('om_droit_seq'),'dossier_commission_supprimer_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1927 WHERE
1928 NOT EXISTS (
1929 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_supprimer_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'INSTRUCTEUR')
1930 );
1931
1932 INSERT INTO om_droit (om_droit, libelle, om_profil)
1933 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1934 WHERE
1935 NOT EXISTS (
1936 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1937 );
1938
1939 INSERT INTO om_droit (om_droit, libelle, om_profil)
1940 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1941 WHERE
1942 NOT EXISTS (
1943 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1944 );
1945
1946 INSERT INTO om_droit (om_droit, libelle, om_profil)
1947 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1948 WHERE
1949 NOT EXISTS (
1950 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1951 );
1952
1953 INSERT INTO om_droit (om_droit, libelle, om_profil)
1954 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1955 WHERE
1956 NOT EXISTS (
1957 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1958 );
1959
1960 INSERT INTO om_droit (om_droit, libelle, om_profil)
1961 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1962 WHERE
1963 NOT EXISTS (
1964 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1965 );
1966
1967 INSERT INTO om_droit (om_droit, libelle, om_profil)
1968 SELECT nextval('om_droit_seq'),'dossier_commission_ajouter_instruction',(SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1969 WHERE
1970 NOT EXISTS (
1971 SELECT om_droit FROM om_droit WHERE libelle = 'dossier_commission_ajouter_instruction' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'DIVISIONNAIRE')
1972 );
1973
1974 INSERT INTO om_droit (om_droit, libelle, om_profil)
1975 SELECT nextval('om_droit_seq'),'dossiers_tous_limites',(SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1976 WHERE
1977 NOT EXISTS (
1978 SELECT om_droit FROM om_droit WHERE libelle = 'dossiers_tous_limites' AND om_profil = (SELECT om_profil FROM om_profil WHERE libelle = 'CHEF DE SERVICE')
1979 );

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26