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

Contents of /trunk/sql/pgsql/dossier_validite.reqmo.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1138 - (show annotations)
Thu Jan 3 15:18:21 2013 UTC (12 years, 1 month ago) by nhaye
File size: 2369 byte(s)
Suppression de la colonne nature de la table dossier,
correction des requètes sql faisant appel à cette colonne.

1 <?php
2 $reqmo['libelle']="dossier_validite_reqmo";
3 $reqmo['sql']="SELECT dossier,
4 [dossier_autorisation_type_detaille.code as nature],
5 [dossier.etat as etat],
6 [accord_tacite],
7 [to_char(date_decision,'DD/MM/YYYY') as date_decision],
8 [avis_decision],
9 to_char(date_validite,'DD/MM/YYYY') as date_validite,
10 demandeur_civilite,
11 demandeur_nom,
12 demandeur_societe,
13 demandeur_adresse,
14 demandeur_cp,
15 demandeur_ville,
16 [demandeur_pays],
17 [demandeur_telephone],
18 [demandeur_email]
19 FROM ".DB_PREFIXE."dossier
20 INNER JOIN ".DB_PREFIXE."dossier_autorisation
21 ON dossier.dossier_autorisation=dossier_autorisation.dossier_autorisation
22 INNER JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille
23 ON dossier_autorisation.dossier_autorisation_type_detaille
24 = dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
25 LEFT JOIN ".DB_PREFIXE."travaux on travaux.travaux = dossier.travaux
26 LEFT JOIN ".DB_PREFIXE."categorie_demandeur on categorie_demandeur.categorie_demandeur= dossier.demandeur_categorie
27 WHERE dossier_autorisation_type_detaille.code = '[selection]'
28 and to_char(date_validite,'YYYY') = '[annee]'
29 and to_char(date_validite,'MM') = '[mois]'
30 and dossier.etat='accepter'
31 order by [tri]";
32
33 $reqmo['selection']= array('PCI','PCA','PD','DP','PA','CU','AZ','DAT');
34 $reqmo['mois']= array('01','02','03','04','05','06','07','08','09','10','11','12');
35 $reqmo['annee']= array(date('Y'),date('Y')+1,date('Y')+2,date('Y')+3,date('Y')+4);
36 $reqmo['tri']= array('dossier','etat','demandeur_nom');
37 //
38
39 $reqmo['nature']="checked";
40 $reqmo['etat']="checked";
41 $reqmo['accord_tacite']="checked";
42 $reqmo['date_decision']="checked";
43 $reqmo['avis_decision']="checked";
44 $reqmo['date_validite']="checked";
45 $reqmo['demandeur_pays']="checked";
46 $reqmo['demandeur_telephone']="checked";
47 $reqmo['demandeur_email']="checked";
48
49 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26