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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 580 - (hide annotations)
Fri Nov 2 14:24:05 2012 UTC (12 years, 3 months ago) by nhaye
File size: 3940 byte(s)
Ajout d'un onglet dans les demandes d'avis,
cet onglet liste des documents numérisé du dossier en cours,
création d'une méthode dans utils.class.php pour lister les fichiers d'un dossier.

1 nhaye 544 <?php
2     //$Id$
3     //gen openMairie le 18/10/2012 16:21
4     include('../gen/sql/pgsql/consultation.inc.php');
5     $ent = _("Demandes d'avis")." -> "._("en cours");
6     // FROM
7     $table = DB_PREFIXE."consultation
8     INNER JOIN ".DB_PREFIXE."dossier
9     ON consultation.dossier=dossier.dossier
10     INNER JOIN ".DB_PREFIXE."service
11     ON service.service=consultation.service
12 nhaye 550 INNER JOIN lien_service_om_utilisateur
13     ON lien_service_om_utilisateur.service=service.service
14     INNER JOIN om_utilisateur
15     ON om_utilisateur.om_utilisateur=lien_service_om_utilisateur.om_utilisateur
16 nhaye 544 LEFT OUTER JOIN ".DB_PREFIXE."avis_consultation
17     ON consultation.avis_consultation=avis_consultation.avis_consultation
18     LEFT OUTER JOIN ".DB_PREFIXE."travaux
19     ON travaux.travaux=dossier.travaux
20     ";
21     // XXX LEFT OUTER JOIN pieces_complementaire
22     // SELECT
23     $champAffiche = array(
24     'consultation.consultation as "'._("consultation").'"',
25     'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
26     'consultation.dossier as "'._("dossier").'"',
27     // date de depots de piece complementaire
28     'travaux.libelle as "'._("Nature des travaux").'"',
29     'dossier.terrain_numero||dossier.terrain_numero_complement||\' \'||dossier.terrain_adresse
30     ||\' \'||dossier.terrain_adresse_complement||\' \'||terrain_cp||\' \'||terrain_ville as "'._("Adresse du terrain").'"',
31     'dossier.demandeur_nom as "'._("petitionaire").'"',
32     'dossier.shon as "'._("surface").'"',
33     'service.abrege as "'._("service").'"',
34     );
35     //
36     $champRecherche = array(
37     'consultation.consultation as "'._("consultation").'"',
38     'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
39     'consultation.dossier as "'._("dossier").'"',
40     // date de depots de piece complementaire
41     'traveaux.libelle as "'._("Nature des travaux").'"',
42     'dossier.terrain_adresse as "'._("Adresse du terrain").'"',
43     'dossier.terrain_cp as "'._("Adresse du terrain").'"',
44     'dossier.terrain_ville as "'._("Adresse du terrain").'"',
45     'dossier.demandeur_nom as "'._("petitionaire").'"',
46     'dossier.shon as "'._("surface").'"',
47     'service.abrege as "'._("service").'"',
48     );
49     $tri="ORDER BY consultation.date_limite::date ASC";
50     $edition="";
51 nhaye 550 $selection=' WHERE consultation.date_limite>=current_date
52     AND consultation.avis_consultation IS NULL
53     AND om_utilisateur.login=\''.$_SESSION['login'].'\'';
54 nhaye 544
55     //Suppression des liens
56     $tab_actions['corner']['ajouter']=NULL;
57     $tab_actions['left']['consulter']=NULL;
58    
59     //Recherche avancee
60    
61     $champs = array();
62    
63     $champs['date_limite'] =
64     array('colonne' => 'date_limite',
65     'table' => 'consultation',
66     'libelle' => _('Date limite'),
67     'type' => 'date',
68     'where' => 'intervaldate');
69    
70     $champs['dossier'] = array(
71     'table' => 'consultation',
72     'colonne' => 'dossier',
73     'type' => 'text',
74     'libelle' => _('dossier'));
75    
76     $champs['nature'] = array(
77     'table' => 'travaux',
78     'colonne' => 'libelle',
79     'type' => 'text',
80     'libelle' => _('nature des travaux'));
81    
82     $champs['adresse'] = array(
83     'table' => 'dossier',
84     'colonne' => 'terrain_adresse',
85     'type' => 'text',
86     'libelle' => _('terrain'));
87    
88     $champs['petitionnaire'] = array(
89     'table' => 'dossier',
90     'colonne' => 'demandeur_nom',
91     'type' => 'text',
92     'libelle' => _('petitionnaire'));
93    
94     $champs['service_abrege'] = array(
95     'table' => 'service',
96     'colonne' => 'abrege',
97     'type' => 'text',
98     'libelle' => _('Service (abrege)'));
99    
100     $options[] = array('type' => 'search',
101     'display' => true,
102     'advanced' => $champs,
103     'absolute_object' => 'consultation');
104    
105 nhaye 580 $sousformulaire=array("dossier_document");
106    
107     $sousformulaire_parameters = array(
108    
109     "dossier_document" => array(
110     "title" => _("Documents"),
111     "href" => "../app/dossier_document.view.php",
112     ),
113     );
114 nhaye 544 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26