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

Diff of /trunk/sql/pgsql/demande.form.inc.php

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

revision 2502 by nhaye, Thu Sep 19 12:26:53 2013 UTC revision 2503 by softime, Fri Nov 22 14:50:55 2013 UTC
# Line 73  $sql_autreDossierEnCour = "SELECT count( Line 73  $sql_autreDossierEnCour = "SELECT count(
73    
74  $sql_arrondissement="SELECT arrondissement.arrondissement, arrondissement.libelle  $sql_arrondissement="SELECT arrondissement.arrondissement, arrondissement.libelle
75  FROM ".DB_PREFIXE."arrondissement ORDER BY NULLIF(arrondissement.libelle,'')::int ASC NULLS LAST";  FROM ".DB_PREFIXE."arrondissement ORDER BY NULLIF(arrondissement.libelle,'')::int ASC NULLS LAST";
76    
77    // Requête permettant de récupérer les types de demande par rapport au type
78    // détaillé du dossier d'autorisation et à la nature de la demande
79    $sql_demande_type_by_dossier_autorisation_type_detaille = "
80    SELECT
81      demande_type.demande_type, demande_type.libelle as lib
82    FROM ".DB_PREFIXE."demande_type
83      LEFT JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille
84          ON demande_type.dossier_autorisation_type_detaille=dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
85      LEFT JOIN ".DB_PREFIXE."lien_demande_type_etat_dossier_autorisation
86          ON lien_demande_type_etat_dossier_autorisation.demande_type=demande_type.demande_type
87      LEFT JOIN ".DB_PREFIXE."dossier_autorisation
88          ON lien_demande_type_etat_dossier_autorisation.etat_dossier_autorisation=
89              dossier_autorisation.etat_dossier_autorisation
90      LEFT JOIN ".DB_PREFIXE."dossier
91          ON dossier.dossier_autorisation=dossier_autorisation.dossier_autorisation
92    WHERE dossier_autorisation_type_detaille.dossier_autorisation_type_detaille = <idx_dossier_autorisation_type_detaille>
93    AND demande_type.demande_nature = <idx_demande_nature>
94    <ajout_condition_requête>
95    ORDER BY demande_type.libelle, demande_type.code
96    ";
97  ?>  ?>

Legend:
Removed from v.2502  
changed lines
  Added in v.2503

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26