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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 935 - (hide annotations)
Fri Nov 30 11:49:30 2012 UTC (12 years, 2 months ago) by nhaye
File size: 4090 byte(s)
Ajout de la colonne type_consultation dans les tableaux de consultation

1 nhaye 509 <?php
2 fmichon 644
3     //
4 nhaye 509 include('../gen/sql/pgsql/consultation.inc.php');
5    
6 fmichon 644 //
7     $ent = _("instruction")." -> "._("tous les retours de consultation");
8    
9     //
10     $tab_description = _("Les consultations qui sont notees comme non lues qui".
11     " concernent des dossiers d'instruction situes dans ma".
12     " division.");
13    
14     //
15 nhaye 509 $champAffiche = array(
16 nhaye 525 'consultation.consultation as "'._("consultation").'"',
17 nhaye 509 'consultation.dossier as "'._("dossier").'"',
18 nhaye 935 'service.abrege as "'._("service abrege").'"',
19 nhaye 509 'service.libelle as "'._("service").'"',
20 nhaye 935 'service.type_consultation as "'._("type_consultation").'"',
21 nhaye 509 'to_char(consultation.date_reception ,\'DD/MM/YYYY\') as "'._("date_reception").'"',
22     'to_char(consultation.date_retour ,\'DD/MM/YYYY\') as "'._("date_retour").'"',
23     'to_char(consultation.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
24     'avis_consultation.libelle as "'._("avis_consultation").'"',
25 fmichon 890 'instructeur.nom as "'._("instructeur").'"',
26 nhaye 650 'CASE WHEN dossier.enjeu_erp is TRUE THEN \'<span class="om-icon om-icon-16 om-icon-fix enjeu_erp-16" title="'._('Enjeu ERP').'">ERP</span>\' ELSE \'\' END ||
27     CASE WHEN dossier.enjeu_urba is TRUE THEN \'<span class="om-icon om-icon-16 om-icon-fix enjeu_urba-16" title="'._('Enjeu Urba').'">URBA</span>\' ELSE \'\' END
28 nhaye 615 as "'._("enjeu").'"',
29 nhaye 509 );
30    
31 fmichon 890 $table .= "
32     LEFT JOIN ".DB_PREFIXE."instructeur
33     ON instructeur.instructeur=dossier.instructeur
34     LEFT JOIN ".DB_PREFIXE."om_utilisateur
35     ON instructeur.om_utilisateur = om_utilisateur.om_utilisateur";
36 nhaye 509
37 fmichon 890 //
38     $selection=" WHERE
39     consultation.lu IS FALSE
40     AND dossier.division = ".$_SESSION['division']."";
41 nhaye 509
42 nhaye 615 $tri=" ORDER BY dossier.enjeu_erp, dossier.enjeu_urba, consultation.date_retour";
43 nhaye 509
44     $champRecherche = array(
45     'dossier.dossier as "'._("dossier").'"',
46 fmichon 890 'instructeur.nom as "'._("instructeur").'"',
47 nhaye 509 );
48    
49     $tab_actions['corner']['ajouter']=NULL;
50 nhaye 661 $tab_actions['left']['consulter']=array('lien' => '../spg/direct_link.php?obj=dossier_instruction_tous_encours&amp;action=3'.
51     '&amp;direct_field=dossier&direct_form=consultation&direct_action=3&direct_idx=',
52 nhaye 525 'id' => '',
53 nhaye 509 'lib' => '<span class="om-icon om-icon-16 om-icon-fix consult-16" title="'._('Consulter').'">'._('Consulter').'</span>',
54     'rights' => array('list' => array($obj, $obj.'_consulter'), 'operator' => 'OR'),
55     'ordre' => 10,);
56     $tab_actions['content'] = $tab_actions['left']['consulter'];
57    
58    
59     $champs = array();
60    
61     $champs['service_abrege'] = array(
62     'table' => 'service',
63     'colonne' => 'abrege',
64     'type' => 'text',
65     'libelle' => _('Service (abrege)'));
66    
67     $champs['service'] = array(
68     'table' => 'service',
69     'colonne' => 'libelle',
70     'type' => 'text',
71     'libelle' => _('Service'));
72    
73 fmichon 890 $champs['instructeur'] =
74     array('colonne' => 'instructeur',
75     'table' => 'dossier',
76     'libelle' => _('Instructeur'),
77     'type' => 'text');
78    
79 nhaye 509 $champs['date_envoi'] =
80     array('colonne' => 'date_envoi',
81     'table' => 'consultation',
82     'libelle' => _('Date d\'envoi'),
83     'type' => 'date',
84     'where' => 'intervaldate');
85     $champs['date_retour'] =
86     array('colonne' => 'date_retour',
87     'table' => 'consultation',
88     'libelle' => _('Date de retour'),
89     'type' => 'date',
90     'where' => 'intervaldate');
91    
92     $champs['date_limite'] =
93     array('colonne' => 'date_limite',
94     'table' => 'consultation',
95     'libelle' => _('Date limite'),
96     'type' => 'date',
97     'where' => 'intervaldate');
98    
99     $options[] = array('type' => 'search',
100     'display' => true,
101     'advanced' => $champs,
102     'absolute_object' => 'consultation');
103    
104     /**
105     * Options
106     */
107    
108     $options[] = array(
109     "type" => "condition",
110     "field" => "case consultation.lu when 't' then 'Oui' else 'Non' end",
111     "case" => array(
112     "0" => array(
113     "values" => array("Non", ),
114     "style" => "consultation_non_lue",
115     ),
116     ),
117     );
118    
119     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26