/[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 586 - (hide annotations)
Fri Nov 2 17:27:11 2012 UTC (12 years, 3 months ago) by mlimic
File size: 7877 byte(s)
creation of messages table, add of messages tab for the dossier currently opened; bug: some fields are set or reinitalized when the modification to 'lu' is made
1 fraynaud 3 <?php
2     //$Id$
3     //gen openMairie le 10/02/2011 20:39
4     include('../gen/sql/pgsql/dossier.inc.php');
5 fraynaud 38 $table=DB_PREFIXE."dossier left join ".
6     DB_PREFIXE."om_utilisateur on dossier.instructeur = om_utilisateur.om_utilisateur left join ".
7 vpihour 489 DB_PREFIXE."avis_decision on avis_decision.avis_decision=dossier.avis_decision";
8 nhaye 471 $champAffiche=array(
9     'dossier.dossier as "'._("dossier").'"',
10     'dossier.demandeur_nom as "'._("demandeur_nom").'"',
11     'om_utilisateur.nom as "'._("instructeur").'"',
12     'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"',
13     'to_char(dossier.date_depot ,\'DD/MM/YYYY\') as "'._("date_depot").'"',
14     'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"',
15     'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"',
16     'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
17     'etat as "'._("etat").'"',
18 vpihour 489 'avis_decision.libelle as "'._("avis_decision").'"',
19 nhaye 471 );
20 nhaye 467
21     $tri= "order by dossier.dossier";
22    
23     $champRecherche=array("dossier","demandeur_nom");
24    
25     $ico = "../img/ico_dossier.png";
26    
27     $edition="";
28    
29 fraynaud 38 if ($retourformulaire== 'architecte'){
30 nhaye 467 $tab_actions['corner']['ajouter'] = NULL;
31     $tab_actions['left']['consulter'] = NULL;
32     $tab_actions['content'] =NULL;
33 fraynaud 38 $selection=" where dossier.architecte ='".$idx."'";
34     }
35     if ($retourformulaire== 'travaux'){
36 nhaye 467 $tab_actions['corner']['ajouter'] = NULL;
37     $tab_actions['left']['consulter'] = NULL;
38     $tab_actions['content'] =NULL;
39 fraynaud 38 $selection=" where dossier.travaux ='".$idx."'";
40     }
41 fmichon 476
42     if (isset($_GET["obj"]) && $_GET["obj"] == "dossier") {
43     // Configuration de la recherche avancee
44     if (!isset($options)) {
45     $options = array();
46     }
47     // Options pour les select de faux boolĂ©ens
48     $args = array(
49     0 => array("", "Oui", "Non", ),
50     1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ),
51     );
52     //
53     $champs['dossier'] = array(
54     'table' => 'dossier',
55     'colonne' => 'dossier',
56     'type' => 'text',
57     'taille' => 30,
58     'libelle' => _('dossier'));
59     //
60     $champs['nature'] = array(
61     'table' => 'dossier',
62     'colonne' => 'nature',
63     'type' => 'select',
64     'taille' => 30,
65     'libelle' => _('nature'));
66    
67    
68    
69     //
70     $champs['delegataire_nom'] = array(
71     'table' => 'dossier',
72     'colonne' => 'delegataire_nom',
73     'type' => 'text',
74     'taille' => 30,
75     'libelle' => _('nom delegataire'));
76     //
77     $champs['demandeur_nom'] = array(
78     'table' => 'dossier',
79     'colonne' => 'demandeur_nom',
80     'type' => 'text',
81     'taille' => 30,
82     'libelle' => _('nom demandeur'));
83    
84    
85     //
86     $champs['demandeur_societe'] = array(
87     'table' => 'dossier',
88     'colonne' => 'demandeur_societe',
89     'type' => 'text',
90     'taille' => 30,
91     'libelle' => _('demandeur_societe'));
92     //
93     $champs['parcelle'] = array(
94     'table' => 'dossier',
95     'colonne' => 'parcelle',
96     'type' => 'text',
97     'taille' => 30,
98     'libelle' => _('parcelle'));
99    
100     //
101     $champs['rivoli'] = array(
102     'table' => 'dossier',
103     'colonne' => 'rivoli',
104     'type' => 'text',
105     'taille' => 30,
106     'libelle' => _('rivoli'));
107     //
108     $champs['terrain_adresse'] = array(
109     'table' => 'dossier',
110     'colonne' => 'terrain_adresse',
111     'type' => 'text',
112     'taille' => 30,
113     'libelle' => _('terrain_adresse'));
114    
115    
116    
117    
118     //
119     $champs['terrain_adresse_complement'] = array(
120     'table' => 'dossier',
121     'colonne' => 'terrain_adresse_complement',
122     'type' => 'text',
123     'taille' => 30,
124     'libelle' => _('terrain_adresse_complement'));
125     //// COL2
126    
127     //
128     $champs['etat'] = array(
129     'table' => 'dossier',
130     'colonne' => 'etat',
131     'type' => 'select',
132     'libelle' => _('etat'));
133     //
134     $champs['accord_tacite'] = array(
135     'table' => 'dossier',
136     'colonne' => 'accord_tacite',
137     'type' => 'select',
138     "subtype" => "manualselect",
139     'libelle' => _('accord_tacite'),
140     "args" => $args,
141     );
142    
143     //
144     $champs['travaux'] = array(
145     'table' => 'dossier',
146     'colonne' => 'travaux',
147     'type' => 'select',
148     'libelle' => _('travaux'));
149    
150    
151     //// COL3
152    
153    
154    
155    
156     //
157     $champs['instructeur'] = array(
158     'table' => 'dossier',
159     'colonne' => 'instructeur',
160     'type' => 'select',
161     'libelle' => _('instructeur'));
162     //
163     //$champs['architecte'] = array(
164     // 'table' => 'dossier',
165     // 'colonne' => 'architecte',
166     // 'type' => 'select',
167     // 'libelle' => _('architecte'));
168    
169     //
170     $champs['date_depot'] = array(
171     'colonne' => 'date_depot',
172     'table' => 'dossier',
173     'libelle' => _('date_depot'),
174     'lib1'=> _("debut"),
175     'lib2' => _("fin"),
176     'type' => 'date',
177     'taille' => 8,
178     'where' => 'intervaldate');
179     //
180     $champs['date_rejet'] = array(
181     'colonne' => 'date_rejet',
182     'table' => 'dossier',
183     'libelle' => _('date_rejet'),
184     'lib1'=> _("debut"),
185     'lib2' => _("fin"),
186     'type' => 'date',
187     'taille' => 8,
188     'where' => 'intervaldate');
189    
190     //
191     $champs['date_validite'] = array(
192     'colonne' => 'date_validite',
193     'table' => 'dossier',
194     'libelle' => _('date_validite'),
195     'lib1'=> _("debut"),
196     'lib2' => _("fin"),
197     'type' => 'date',
198     'taille' => 8,
199     'where' => 'intervaldate');
200    
201    
202    
203     //
204     $champs['date_complet'] = array(
205     'colonne' => 'date_complet',
206     'table' => 'dossier',
207     'libelle' => _('date_complet'),
208     'lib1'=> _("debut"),
209     'lib2' => _("fin"),
210     'type' => 'date',
211     'taille' => 8,
212     'where' => 'intervaldate');
213     //
214     $champs['date_decision'] = array(
215     'colonne' => 'date_decision',
216     'table' => 'dossier',
217     'libelle' => _('date_decision'),
218     'lib1'=> _("debut"),
219     'lib2' => _("fin"),
220     'type' => 'date',
221     'taille' => 8,
222     'where' => 'intervaldate');
223     //
224     $champs['date_limite'] = array(
225     'colonne' => 'date_limite',
226     'table' => 'dossier',
227     'libelle' => _('date_limite'),
228     'lib1'=> _("debut"),
229     'lib2' => _("fin"),
230     'type' => 'date',
231     'taille' => 8,
232     'where' => 'intervaldate');
233    
234    
235    
236    
237     //
238     $champs['date_chantier'] = array(
239     'colonne' => 'date_chantier',
240     'table' => 'dossier',
241     'libelle' => _('date_chantier'),
242     'lib1'=> _("debut"),
243     'lib2' => _("fin"),
244     'type' => 'date',
245     'taille' => 8,
246     'where' => 'intervaldate');
247     //
248     $champs['date_achevement'] = array(
249     'colonne' => 'date_achevement',
250     'table' => 'dossier',
251     'libelle' => _('date_achevement'),
252     'lib1'=> _("debut"),
253     'lib2' => _("fin"),
254     'type' => 'date',
255     'taille' => 8,
256     'where' => 'intervaldate');
257     //
258     $champs['date_conformite'] = array(
259     'colonne' => 'date_conformite',
260     'table' => 'dossier',
261     'libelle' => _('date_conformite'),
262     'lib1'=> _("debut"),
263     'lib2' => _("fin"),
264     'type' => 'date',
265     'taille' => 8,
266     'where' => 'intervaldate');
267     //
268     $options[] = array(
269     'type' => 'search',
270     'display' => true,
271     'advanced' => $champs,
272     'default_form' => 'advanced',
273     'absolute_object' => 'dossier');
274     }
275    
276    
277 nhaye 467 $sousformulaire=array("instruction",
278     "consultation",
279     "terrain",
280     "blocnote",
281     "destination_shon",
282 mlimic 586 "statistique",
283     "messages");
284 fmichon 476 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26