/[openfoncier]/branches/cleanup-old-openfoncier/sql/pgsql/dossier.import.inc.php
ViewVC logotype

Contents of /branches/cleanup-old-openfoncier/sql/pgsql/dossier.import.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4677 - (show annotations)
Thu Jun 30 11:18:54 2016 UTC (8 years, 7 months ago) by fmichon
File size: 9779 byte(s)
* Suppression des anciennes références openfoncier : les tables 'parcelle', 'rivoli', 'proprietaire', 'servitude_ligne', 'servitude_point', 'servitude_surfacique', 'parcelle_lot', 'pos' et les champs 'servitude', 'pos', 'parcelle', 'parcelle_lot', 'lot', 'sig', 'parcelle_lot_lotissement', 'batiment_nombre', 'logement_nombre', 'shon', 'shon_calcul', 'shob', 'hauteur', 'piece_nombre', 'amenagement' de la table dossier et de tout le code inutilisé s'y rattachant.

1 <?php
2 //$Id: dossier.import.inc.php 4587 2015-04-15 16:15:22Z stimezouaght $
3 //gen openMairie le 10/04/2015 20:10
4
5 $import= "Insertion dans la table dossier voir rec/import_utilisateur.inc";
6 $table= DB_PREFIXE."dossier";
7 $id=''; // numerotation non automatique
8 $verrou=1;// =0 pas de mise a jour de la base / =1 mise a jour
9 $fic_rejet=1; // =0 pas de fichier pour relance / =1 fichier relance traitement
10 $ligne1=1;// = 1 : 1ere ligne contient nom des champs / o sinon
11 /**
12 *
13 */
14 $fields = array(
15 "dossier" => array(
16 "notnull" => "1",
17 "type" => "string",
18 "len" => "30",
19 ),
20 "annee" => array(
21 "notnull" => "1",
22 "type" => "string",
23 "len" => "2",
24 ),
25 "etat" => array(
26 "notnull" => "",
27 "type" => "string",
28 "len" => "20",
29 "fkey" => array(
30 "foreign_table_name" => "etat",
31 "foreign_column_name" => "etat",
32 "sql_exist" => "select * from ".DB_PREFIXE."etat where etat = '",
33 ),
34 ),
35 "instructeur" => array(
36 "notnull" => "",
37 "type" => "int",
38 "len" => "11",
39 "fkey" => array(
40 "foreign_table_name" => "instructeur",
41 "foreign_column_name" => "instructeur",
42 "sql_exist" => "select * from ".DB_PREFIXE."instructeur where instructeur = '",
43 ),
44 ),
45 "date_demande" => array(
46 "notnull" => "",
47 "type" => "date",
48 "len" => "12",
49 ),
50 "date_depot" => array(
51 "notnull" => "1",
52 "type" => "date",
53 "len" => "12",
54 ),
55 "date_complet" => array(
56 "notnull" => "",
57 "type" => "date",
58 "len" => "12",
59 ),
60 "date_rejet" => array(
61 "notnull" => "",
62 "type" => "date",
63 "len" => "12",
64 ),
65 "date_notification_delai" => array(
66 "notnull" => "",
67 "type" => "date",
68 "len" => "12",
69 ),
70 "delai" => array(
71 "notnull" => "1",
72 "type" => "int",
73 "len" => "11",
74 ),
75 "date_limite" => array(
76 "notnull" => "",
77 "type" => "date",
78 "len" => "12",
79 ),
80 "accord_tacite" => array(
81 "notnull" => "1",
82 "type" => "string",
83 "len" => "3",
84 ),
85 "date_decision" => array(
86 "notnull" => "",
87 "type" => "date",
88 "len" => "12",
89 ),
90 "date_validite" => array(
91 "notnull" => "",
92 "type" => "date",
93 "len" => "12",
94 ),
95 "date_chantier" => array(
96 "notnull" => "",
97 "type" => "date",
98 "len" => "12",
99 ),
100 "date_achevement" => array(
101 "notnull" => "",
102 "type" => "date",
103 "len" => "12",
104 ),
105 "date_conformite" => array(
106 "notnull" => "",
107 "type" => "date",
108 "len" => "12",
109 ),
110 "description" => array(
111 "notnull" => "1",
112 "type" => "blob",
113 "len" => "-5",
114 ),
115 "temp1" => array(
116 "notnull" => "1",
117 "type" => "string",
118 "len" => "100",
119 ),
120 "temp2" => array(
121 "notnull" => "1",
122 "type" => "string",
123 "len" => "100",
124 ),
125 "temp3" => array(
126 "notnull" => "1",
127 "type" => "string",
128 "len" => "100",
129 ),
130 "temp4" => array(
131 "notnull" => "1",
132 "type" => "string",
133 "len" => "100",
134 ),
135 "temp5" => array(
136 "notnull" => "1",
137 "type" => "string",
138 "len" => "100",
139 ),
140 "erp" => array(
141 "notnull" => "",
142 "type" => "bool",
143 "len" => "1",
144 ),
145 "avis_decision" => array(
146 "notnull" => "",
147 "type" => "int",
148 "len" => "11",
149 "fkey" => array(
150 "foreign_table_name" => "avis_decision",
151 "foreign_column_name" => "avis_decision",
152 "sql_exist" => "select * from ".DB_PREFIXE."avis_decision where avis_decision = '",
153 ),
154 ),
155 "enjeu_erp" => array(
156 "notnull" => "",
157 "type" => "bool",
158 "len" => "1",
159 ),
160 "enjeu_urba" => array(
161 "notnull" => "",
162 "type" => "bool",
163 "len" => "1",
164 ),
165 "division" => array(
166 "notnull" => "",
167 "type" => "int",
168 "len" => "11",
169 "fkey" => array(
170 "foreign_table_name" => "division",
171 "foreign_column_name" => "division",
172 "sql_exist" => "select * from ".DB_PREFIXE."division where division = '",
173 ),
174 ),
175 "autorite_competente" => array(
176 "notnull" => "",
177 "type" => "int",
178 "len" => "11",
179 "fkey" => array(
180 "foreign_table_name" => "autorite_competente",
181 "foreign_column_name" => "autorite_competente",
182 "sql_exist" => "select * from ".DB_PREFIXE."autorite_competente where autorite_competente = '",
183 ),
184 ),
185 "a_qualifier" => array(
186 "notnull" => "",
187 "type" => "bool",
188 "len" => "1",
189 ),
190 "terrain_references_cadastrales" => array(
191 "notnull" => "",
192 "type" => "blob",
193 "len" => "-5",
194 ),
195 "terrain_adresse_voie_numero" => array(
196 "notnull" => "",
197 "type" => "string",
198 "len" => "20",
199 ),
200 "terrain_adresse_voie" => array(
201 "notnull" => "",
202 "type" => "string",
203 "len" => "30",
204 ),
205 "terrain_adresse_lieu_dit" => array(
206 "notnull" => "",
207 "type" => "string",
208 "len" => "30",
209 ),
210 "terrain_adresse_localite" => array(
211 "notnull" => "",
212 "type" => "string",
213 "len" => "30",
214 ),
215 "terrain_adresse_code_postal" => array(
216 "notnull" => "",
217 "type" => "string",
218 "len" => "5",
219 ),
220 "terrain_adresse_bp" => array(
221 "notnull" => "",
222 "type" => "string",
223 "len" => "15",
224 ),
225 "terrain_adresse_cedex" => array(
226 "notnull" => "",
227 "type" => "string",
228 "len" => "15",
229 ),
230 "terrain_superficie" => array(
231 "notnull" => "",
232 "type" => "float",
233 "len" => "20",
234 ),
235 "dossier_autorisation" => array(
236 "notnull" => "1",
237 "type" => "string",
238 "len" => "20",
239 "fkey" => array(
240 "foreign_table_name" => "dossier_autorisation",
241 "foreign_column_name" => "dossier_autorisation",
242 "sql_exist" => "select * from ".DB_PREFIXE."dossier_autorisation where dossier_autorisation = '",
243 ),
244 ),
245 "dossier_instruction_type" => array(
246 "notnull" => "1",
247 "type" => "int",
248 "len" => "11",
249 "fkey" => array(
250 "foreign_table_name" => "dossier_instruction_type",
251 "foreign_column_name" => "dossier_instruction_type",
252 "sql_exist" => "select * from ".DB_PREFIXE."dossier_instruction_type where dossier_instruction_type = '",
253 ),
254 ),
255 "date_dernier_depot" => array(
256 "notnull" => "1",
257 "type" => "date",
258 "len" => "12",
259 ),
260 "version" => array(
261 "notnull" => "",
262 "type" => "int",
263 "len" => "11",
264 ),
265 "incompletude" => array(
266 "notnull" => "1",
267 "type" => "bool",
268 "len" => "1",
269 ),
270 "evenement_suivant_tacite" => array(
271 "notnull" => "",
272 "type" => "int",
273 "len" => "11",
274 "fkey" => array(
275 "foreign_table_name" => "evenement",
276 "foreign_column_name" => "evenement",
277 "sql_exist" => "select * from ".DB_PREFIXE."evenement where evenement = '",
278 ),
279 ),
280 "evenement_suivant_tacite_incompletude" => array(
281 "notnull" => "",
282 "type" => "int",
283 "len" => "11",
284 "fkey" => array(
285 "foreign_table_name" => "evenement",
286 "foreign_column_name" => "evenement",
287 "sql_exist" => "select * from ".DB_PREFIXE."evenement where evenement = '",
288 ),
289 ),
290 "etat_pendant_incompletude" => array(
291 "notnull" => "",
292 "type" => "string",
293 "len" => "20",
294 "fkey" => array(
295 "foreign_table_name" => "etat",
296 "foreign_column_name" => "etat",
297 "sql_exist" => "select * from ".DB_PREFIXE."etat where etat = '",
298 ),
299 ),
300 "date_limite_incompletude" => array(
301 "notnull" => "",
302 "type" => "date",
303 "len" => "12",
304 ),
305 "delai_incompletude" => array(
306 "notnull" => "",
307 "type" => "int",
308 "len" => "11",
309 ),
310 "dossier_libelle" => array(
311 "notnull" => "",
312 "type" => "string",
313 "len" => "25",
314 ),
315 "numero_versement_archive" => array(
316 "notnull" => "",
317 "type" => "string",
318 "len" => "100",
319 ),
320 "duree_validite" => array(
321 "notnull" => "1",
322 "type" => "int",
323 "len" => "11",
324 ),
325 "quartier" => array(
326 "notnull" => "",
327 "type" => "int",
328 "len" => "11",
329 "fkey" => array(
330 "foreign_table_name" => "quartier",
331 "foreign_column_name" => "quartier",
332 "sql_exist" => "select * from ".DB_PREFIXE."quartier where quartier = '",
333 ),
334 ),
335 "incomplet_notifie" => array(
336 "notnull" => "",
337 "type" => "bool",
338 "len" => "1",
339 ),
340 "geom" => array(
341 "notnull" => "",
342 "type" => "geom",
343 "len" => "551424",
344 ),
345 "geom1" => array(
346 "notnull" => "",
347 "type" => "geom",
348 "len" => "551444",
349 ),
350 "om_collectivite" => array(
351 "notnull" => "1",
352 "type" => "int",
353 "len" => "11",
354 "fkey" => array(
355 "foreign_table_name" => "om_collectivite",
356 "foreign_column_name" => "om_collectivite",
357 "sql_exist" => "select * from ".DB_PREFIXE."om_collectivite where om_collectivite = '",
358 ),
359 ),
360 );
361 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26