/[openfoncier]/trunk/sql/pgsql/dossier.inc.php
ViewVC logotype

Annotation of /trunk/sql/pgsql/dossier.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2267 - (hide annotations)
Tue Sep 10 08:16:35 2013 UTC (11 years, 4 months ago) by softime
File size: 8824 byte(s)
- Création de la table dossier_parcelle qui contiendra le détail des parcelles d'un dossier
- Génération OM
- Traitement sur la table dossier_parcelle dans les fonctions triggerajouterapres(), triggermodifierapres() et triggersupprimerapres() de la classe dossier
- Modification du champ parcelle de la recherche avancée des DI
- Ajout du test de la recherche avancée des parcelles
- Modification de la fonction parseParcelle de utils.php pour mettre au bon format les parcelles
- Passage à la version suivante
- Création du fichier v3.9.0-a2-dev-init_data.sql pour l'init de données des tables tables ajoutées dans le fichier de version

1 fraynaud 3 <?php
2     //$Id$
3     //gen openMairie le 10/02/2011 20:39
4     include('../gen/sql/pgsql/dossier.inc.php');
5 vpihour 1058
6     /*Tables sur lesquels la requête va s'effectuer*/
7 fmichon 686 $table = DB_PREFIXE."dossier
8 nhaye 1400 LEFT JOIN ".DB_PREFIXE."lien_dossier_demandeur
9     ON lien_dossier_demandeur.dossier=dossier.dossier
10     AND lien_dossier_demandeur.petitionnaire_principal IS TRUE
11     LEFT JOIN ".DB_PREFIXE."demandeur
12     ON lien_dossier_demandeur.demandeur=demandeur.demandeur
13 fmichon 686 LEFT JOIN ".DB_PREFIXE."instructeur
14     ON dossier.instructeur = instructeur.instructeur
15     LEFT JOIN ".DB_PREFIXE."om_utilisateur
16     ON instructeur.om_utilisateur = om_utilisateur.om_utilisateur
17     LEFT JOIN ".DB_PREFIXE."avis_decision
18     ON avis_decision.avis_decision=dossier.avis_decision
19 fmichon 681 LEFT JOIN ".DB_PREFIXE."division
20 fmichon 686 ON dossier.division=division.division";
21 fmichon 681
22 vpihour 1058 /*Champs du début de la requête*/
23 nhaye 471 $champAffiche=array(
24     'dossier.dossier as "'._("dossier").'"',
25 nhaye 1400 'TRIM(CONCAT(personne_morale_denomination,\' \',personne_morale_nom,\' \',demandeur.particulier_nom)) as "'._("petitionaire").'"',
26 nhaye 602 'instructeur.nom as "'._("instructeur").'"',
27 nhaye 471 'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"',
28 nhaye 1571 'dossier.date_dernier_depot as "'._("date_dernier_depot").'"',
29 nhaye 471 'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"',
30     'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"',
31     'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
32     'etat as "'._("etat").'"',
33 vpihour 489 'avis_decision.libelle as "'._("avis_decision").'"',
34 nhaye 650 'CASE WHEN dossier.enjeu_erp is TRUE THEN \'<span class="om-icon om-icon-16 om-icon-fix enjeu_erp-16" title="'._('Enjeu ERP').'">ERP</span>\' ELSE \'\' END ||
35     CASE WHEN dossier.enjeu_urba is TRUE THEN \'<span class="om-icon om-icon-16 om-icon-fix enjeu_urba-16" title="'._('Enjeu Urba').'">URBA</span>\' ELSE \'\' END
36 nhaye 625 as "'._("enjeu").'"',
37 nhaye 471 );
38 nhaye 467
39 vpihour 1058 /*Tri*/
40 nhaye 467 $tri= "order by dossier.dossier";
41    
42 vpihour 1058 /*Recherche simple*/
43 fmichon 1081 $champRecherche=array( 'dossier.dossier as "'._("dossier").'"',
44 nhaye 1400 'personne_morale_denomination as "'._("personne_morale_denomination").'"',
45     'particulier_nom as "'._("particulier_nom").'"',
46     );
47 nhaye 467
48 vpihour 1058 /*Icone*/
49 nhaye 467 $ico = "../img/ico_dossier.png";
50    
51     $edition="";
52    
53 vpihour 1058 /*Si l'on se trouve dans le formulaire dossier_instruction*/
54 fmichon 647 if (isset($_GET["obj"]) && $_GET["obj"] == "dossier_instruction") {
55 fmichon 476 // Configuration de la recherche avancee
56     if (!isset($options)) {
57     $options = array();
58     }
59     // Options pour les select de faux booléens
60     $args = array(
61     0 => array("", "Oui", "Non", ),
62     1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ),
63     );
64 vpihour 1058 /*Champs pour la recherche avancée*/
65 fmichon 476 $champs['dossier'] = array(
66     'table' => 'dossier',
67     'colonne' => 'dossier',
68     'type' => 'text',
69     'taille' => 30,
70     'libelle' => _('dossier'));
71     //
72 nhaye 1138 $champs['dossier_autorisation_type_detaille'] = array(
73     'table' => 'dossier_autorisation_type_detaille',
74     'colonne' => 'dossier_autorisation_type_detaille',
75 fmichon 476 'type' => 'select',
76     'taille' => 30,
77 nhaye 1138 'libelle' => _('dossier_autorisation_type_detaille'));
78 nhaye 2243
79     $champs['particulier'] = array(
80     'table' => 'demandeur',
81 nhaye 2245 'colonne' => array('particulier_nom','particulier_prenom','particulier_nom','personne_morale_nom','personne_morale_prenom','personne_morale_denomination'),
82 nhaye 2242 'type' => 'text',
83     'taille' => 30,
84 nhaye 2245 'libelle' => _('Demandeur'));
85 fmichon 476 //
86     $champs['parcelle'] = array(
87 softime 2267 'table' => 'dossier_parcelle',
88     'colonne' => 'libelle',
89 fmichon 476 'type' => 'text',
90     'taille' => 30,
91     'libelle' => _('parcelle'));
92     //// COL2
93    
94 nhaye 2242
95 fmichon 476 //
96     $champs['etat'] = array(
97     'table' => 'dossier',
98     'colonne' => 'etat',
99     'type' => 'select',
100     'libelle' => _('etat'));
101     //
102     $champs['accord_tacite'] = array(
103     'table' => 'dossier',
104     'colonne' => 'accord_tacite',
105     'type' => 'select',
106     "subtype" => "manualselect",
107     'libelle' => _('accord_tacite'),
108     "args" => $args,
109     );
110    
111     //// COL3
112    
113    
114    
115    
116     //
117     $champs['instructeur'] = array(
118     'table' => 'dossier',
119     'colonne' => 'instructeur',
120     'type' => 'select',
121     'libelle' => _('instructeur'));
122     //
123     //$champs['architecte'] = array(
124     // 'table' => 'dossier',
125     // 'colonne' => 'architecte',
126     // 'type' => 'select',
127     // 'libelle' => _('architecte'));
128    
129     //
130     $champs['date_depot'] = array(
131     'colonne' => 'date_depot',
132     'table' => 'dossier',
133     'libelle' => _('date_depot'),
134     'lib1'=> _("debut"),
135     'lib2' => _("fin"),
136     'type' => 'date',
137     'taille' => 8,
138     'where' => 'intervaldate');
139     //
140     $champs['date_rejet'] = array(
141     'colonne' => 'date_rejet',
142     'table' => 'dossier',
143     'libelle' => _('date_rejet'),
144     'lib1'=> _("debut"),
145     'lib2' => _("fin"),
146     'type' => 'date',
147     'taille' => 8,
148     'where' => 'intervaldate');
149    
150     //
151     $champs['date_validite'] = array(
152     'colonne' => 'date_validite',
153     'table' => 'dossier',
154     'libelle' => _('date_validite'),
155     'lib1'=> _("debut"),
156     'lib2' => _("fin"),
157     'type' => 'date',
158     'taille' => 8,
159     'where' => 'intervaldate');
160    
161    
162    
163     //
164     $champs['date_complet'] = array(
165     'colonne' => 'date_complet',
166     'table' => 'dossier',
167     'libelle' => _('date_complet'),
168     'lib1'=> _("debut"),
169     'lib2' => _("fin"),
170     'type' => 'date',
171     'taille' => 8,
172     'where' => 'intervaldate');
173     //
174     $champs['date_decision'] = array(
175     'colonne' => 'date_decision',
176     'table' => 'dossier',
177     'libelle' => _('date_decision'),
178     'lib1'=> _("debut"),
179     'lib2' => _("fin"),
180     'type' => 'date',
181     'taille' => 8,
182     'where' => 'intervaldate');
183     //
184     $champs['date_limite'] = array(
185     'colonne' => 'date_limite',
186     'table' => 'dossier',
187     'libelle' => _('date_limite'),
188     'lib1'=> _("debut"),
189     'lib2' => _("fin"),
190     'type' => 'date',
191     'taille' => 8,
192     'where' => 'intervaldate');
193    
194    
195    
196    
197     //
198     $champs['date_chantier'] = array(
199     'colonne' => 'date_chantier',
200     'table' => 'dossier',
201     'libelle' => _('date_chantier'),
202     'lib1'=> _("debut"),
203     'lib2' => _("fin"),
204     'type' => 'date',
205     'taille' => 8,
206     'where' => 'intervaldate');
207     //
208     $champs['date_achevement'] = array(
209     'colonne' => 'date_achevement',
210     'table' => 'dossier',
211     'libelle' => _('date_achevement'),
212     'lib1'=> _("debut"),
213     'lib2' => _("fin"),
214     'type' => 'date',
215     'taille' => 8,
216     'where' => 'intervaldate');
217     //
218     $champs['date_conformite'] = array(
219     'colonne' => 'date_conformite',
220     'table' => 'dossier',
221     'libelle' => _('date_conformite'),
222     'lib1'=> _("debut"),
223     'lib2' => _("fin"),
224     'type' => 'date',
225     'taille' => 8,
226     'where' => 'intervaldate');
227 vpihour 1058 /*Configuration de la recherche avancée*/
228 fmichon 476 $options[] = array(
229     'type' => 'search',
230     'display' => true,
231     'advanced' => $champs,
232     'default_form' => 'advanced',
233     'absolute_object' => 'dossier');
234     }
235    
236 vpihour 1058 /*Ajout de sous-formulaire à notre objet*/
237 fmichon 1485 $sousformulaire=array(
238     //"donnees_techniques",
239 softime 1889 "document_numerise",
240 fmichon 1485 "instruction",
241     "consultation",
242     "lot",
243     "dossier_message",
244     "dossier_commission",
245     //"rapport_instruction",
246 fmichon 1761 "blocnote",
247 fmichon 1485 "dossier_autorisation",
248     );
249 fmichon 872
250 vpihour 1058 /*Ajout de paramètre à certains sous-formulaire*/
251 fmichon 872 $sousformulaire_parameters = array(
252     "consultation" => array(
253     "title" => _("consultation(s)"),
254     ),
255     "dossier_message" => array(
256     "title" => _("message(s)"),
257     ),
258 fmichon 1087 "dossier_commission" => array(
259     "title" => _("commission(s)"),
260     ),
261 vpihour 1218 "rapport_instruction" => array(
262     "title" => _("rapport d'instruction"),
263 vpihour 1265 "href" => "../app/redirection_onglet.php?idx=".((isset($idx))? $idx:"")."&obj=rapport_instruction&",
264 vpihour 1218 ),
265 vpihour 1233 "lot" => array(
266     "title" => _("lot(s)"),
267     ),
268 vpihour 1265 "donnees_techniques" => array(
269     "title" => _("donnees techniques"),
270     "href" => "../app/redirection_onglet.php?idx=".((isset($idx))? $idx:"")."&obj=donnees_techniques&",
271     ),
272 nhaye 1279 "dossier_autorisation" => array(
273 fmichon 1485 "title" => _("DA"),
274 nhaye 1279 "href" => "../app/display_da_di.php?iddi=".((isset($idx))? $idx:"")."&",
275     ),
276 softime 1875 "document_numerise" => array(
277 softime 1889 "title" => _("Piece(s)"),
278     "href" => "../app/document_numerise.view.php",
279 softime 1875 ),
280 fmichon 872 );
281 fmichon 476 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26