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

Diff of /trunk/sql/pgsql/dossier.reqmo.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 489 by vpihour, Thu Oct 11 08:27:21 2012 UTC revision 1138 by nhaye, Thu Jan 3 15:18:21 2013 UTC
# Line 1  Line 1 
1  <?php  <?php
2  $reqmo['libelle']="dossier";  $reqmo['libelle']="dossier";
3  $reqmo['sql']="select dossier,  $reqmo['sql']="select dossier,
4                        [dossier.nature as nature],                        [dossier_autorisation_type_detaille.code as dossier_autorisation_type_detaille],
5                        [etat],                        [dossier.etat as etat],
6                        [types],                        [types],
7                        [objet_dossier],                        [objet_dossier],
8                        [instructeur],                        [instructeur],
9                        [to_char(date_demande,'DD/MM/YYYY') as date_demande],                        [to_char(date_demande,'DD/MM/YYYY') as date_demande],
10                        [to_char(date_depot,'DD/MM/YYYY')as date_depot],                        [to_char(date_depot,'DD/MM/YYYY') as date_depot],
11                        [to_char(date_complet,'DD/MM/YYYY') as date_complet],                        [to_char(date_complet,'DD/MM/YYYY') as date_complet],
12                        [to_char(date_rejet,'DD/MM/YYYY') as date_rejet],                        [to_char(date_rejet,'DD/MM/YYYY') as date_rejet],
13                        [to_char(date_notification_delai,'DD/MM/YYYY') as date_notification_delai],                        [to_char(date_notification_delai,'DD/MM/YYYY') as date_notification_delai],
# Line 44  $reqmo['sql']="select dossier, Line 44  $reqmo['sql']="select dossier,
44                        [terrain_adresse_complement],                        [terrain_adresse_complement],
45                        [terrain_cp],                        [terrain_cp],
46                        [terrain_ville],                        [terrain_ville],
47                        [terrain_surface],                                                                       [terrain_surface_calcul],                        [terrain_surface],
48                          [terrain_surface_calcul],
49                        [rivoli],                        [rivoli],
50                        [travaux.libelle as travaux],                        [travaux.libelle as travaux],
51                        [parcelle],                        [parcelle],
52                        [batiment_nombre],                        [batiment_nombre],
53                        [logement_nombre],                        [logement_nombre],
54                        [shon],                        [shon],
55                        [shon_calcul],                                                                        [shon_calcul],
56                        [shob],                          [shob],
57                        [lot],                        [lot],
58                        [hauteur],                        [hauteur],
59                        [piece_nombre],                                                                        [piece_nombre],
60                        [amenagement]                                                    [amenagement]
61                         from ".DB_PREFIXE."dossier left join ".DB_PREFIXE."travaux on travaux.travaux = dossier.travaux                         FROM ".DB_PREFIXE."dossier
62                         where dossier.nature = '[selection]'                         INNER JOIN ".DB_PREFIXE."dossier_autorisation
63                          order by [tri]";                         ON dossier.dossier_autorisation=dossier_autorisation.dossier_autorisation
64                           INNER JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille
65                           ON dossier_autorisation.dossier_autorisation_type_detaille
66                            = dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
67                           LEFT JOIN ".DB_PREFIXE."travaux on travaux.travaux = dossier.travaux
68                           WHERE dossier_autorisation_type_detaille.code = '[selection]'
69                           ORDER BY [tri]";
70    
71  $reqmo['selection']= array('PC','PD','DP','PA','CU');  $reqmo['selection']= array('PCI','PCA','PD','DP','PA','CU','AZ','DAT');
72  $reqmo['tri']= array('dossier','etat','demandeur_nom');  $reqmo['tri']= array('dossier','etat','demandeur_nom');
73  //  //
74    
75  $reqmo['nature']="checked";  $reqmo['dossier_autorisation_type_detaille']="checked";
76  $reqmo['etat']="checked";  $reqmo['etat']="checked";
77  $reqmo['types']="checked";  $reqmo['types']="checked";
78  $reqmo['objet_dossier']="checked";  $reqmo['objet_dossier']="checked";

Legend:
Removed from v.489  
changed lines
  Added in v.1138

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26