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

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

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

revision 872 by fmichon, Wed Nov 28 21:47:03 2012 UTC revision 1761 by fmichon, Mon Apr 22 17:01:48 2013 UTC
# Line 2  Line 2 
2  //$Id$  //$Id$
3  //gen openMairie le 10/02/2011 20:39  //gen openMairie le 10/02/2011 20:39
4  include('../gen/sql/pgsql/dossier.inc.php');  include('../gen/sql/pgsql/dossier.inc.php');
5    
6    /*Tables sur lesquels la requête va s'effectuer*/
7  $table = DB_PREFIXE."dossier  $table = DB_PREFIXE."dossier
8    LEFT JOIN ".DB_PREFIXE."lien_dossier_demandeur
9            ON lien_dossier_demandeur.dossier=dossier.dossier
10                AND lien_dossier_demandeur.petitionnaire_principal IS TRUE
11    LEFT JOIN ".DB_PREFIXE."demandeur
12        ON lien_dossier_demandeur.demandeur=demandeur.demandeur
13  LEFT JOIN ".DB_PREFIXE."instructeur  LEFT JOIN ".DB_PREFIXE."instructeur
14      ON dossier.instructeur = instructeur.instructeur      ON dossier.instructeur = instructeur.instructeur
15  LEFT JOIN ".DB_PREFIXE."om_utilisateur  LEFT JOIN ".DB_PREFIXE."om_utilisateur
# Line 12  LEFT JOIN ".DB_PREFIXE."avis_decision Line 19  LEFT JOIN ".DB_PREFIXE."avis_decision
19  LEFT JOIN ".DB_PREFIXE."division  LEFT JOIN ".DB_PREFIXE."division
20      ON dossier.division=division.division";      ON dossier.division=division.division";
21    
22    /*Champs du début de la requête*/
23  $champAffiche=array(  $champAffiche=array(
24      'dossier.dossier as "'._("dossier").'"',      'dossier.dossier as "'._("dossier").'"',
25      'dossier.demandeur_nom as "'._("demandeur_nom").'"',      'TRIM(CONCAT(personne_morale_denomination,\' \',personne_morale_nom,\' \',demandeur.particulier_nom)) as "'._("petitionaire").'"',
26      'instructeur.nom as "'._("instructeur").'"',      'instructeur.nom as "'._("instructeur").'"',
27      'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"',      'to_char(dossier.date_demande ,\'DD/MM/YYYY\') as "'._("date_demande").'"',
28      'to_char(dossier.date_depot ,\'DD/MM/YYYY\') as "'._("date_depot").'"',      'dossier.date_dernier_depot as "'._("date_dernier_depot").'"',
29      'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"',      'to_char(dossier.date_complet ,\'DD/MM/YYYY\') as "'._("date_complet").'"',
30      'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"',      'to_char(dossier.date_notification_delai ,\'DD/MM/YYYY\') as "'._("date_notification_delai").'"',
31      'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',      'to_char(dossier.date_limite ,\'DD/MM/YYYY\') as "'._("date_limite").'"',
# Line 28  $champAffiche=array( Line 36  $champAffiche=array(
36       as "'._("enjeu").'"',       as "'._("enjeu").'"',
37  );  );
38    
39    /*Tri*/
40  $tri= "order by dossier.dossier";  $tri= "order by dossier.dossier";
41    
42  $champRecherche=array("dossier","demandeur_nom");  /*Recherche simple*/
43    $champRecherche=array(    'dossier.dossier as "'._("dossier").'"',
44        'personne_morale_denomination as "'._("personne_morale_denomination").'"',
45        'particulier_nom as "'._("particulier_nom").'"',
46        );
47    
48    /*Icone*/
49  $ico = "../img/ico_dossier.png";  $ico = "../img/ico_dossier.png";
50    
51  $edition="";  $edition="";
52    
53  if ($retourformulaire== 'architecte'){  /*Si l'on se trouve dans le formulaire dossier_instruction*/
     $tab_actions['corner']['ajouter'] = NULL;  
     $tab_actions['left']['consulter'] = NULL;  
     $tab_actions['content'] =NULL;  
     $selection=" where dossier.architecte ='".$idx."'";  
 }  
 if ($retourformulaire== 'travaux'){  
     $tab_actions['corner']['ajouter'] = NULL;  
     $tab_actions['left']['consulter'] = NULL;  
     $tab_actions['content'] =NULL;  
     $selection=" where dossier.travaux ='".$idx."'";  
 }  
   
54  if (isset($_GET["obj"]) && $_GET["obj"] == "dossier_instruction") {  if (isset($_GET["obj"]) && $_GET["obj"] == "dossier_instruction") {
55      // Configuration de la recherche avancee      // Configuration de la recherche avancee
56      if (!isset($options)) {      if (!isset($options)) {
# Line 59  if (isset($_GET["obj"]) && $_GET["obj"] Line 61  if (isset($_GET["obj"]) && $_GET["obj"]
61          0 => array("", "Oui", "Non", ),          0 => array("", "Oui", "Non", ),
62          1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ),          1 => array(_("choisir")." "._("accord_tacite"), _("Oui"), _("Non"), ),
63      );      );
64      //      /*Champs pour la recherche avancée*/
65      $champs['dossier'] = array(      $champs['dossier'] = array(
66          'table' => 'dossier',          'table' => 'dossier',
67          'colonne' => 'dossier',          'colonne' => 'dossier',
# Line 67  if (isset($_GET["obj"]) && $_GET["obj"] Line 69  if (isset($_GET["obj"]) && $_GET["obj"]
69          'taille' => 30,          'taille' => 30,
70          'libelle' => _('dossier'));          'libelle' => _('dossier'));
71      //      //
72      $champs['nature'] = array(      $champs['dossier_autorisation_type_detaille'] = array(
73          'table' => 'dossier',          'table' => 'dossier_autorisation_type_detaille',
74          'colonne' => 'nature',          'colonne' => 'dossier_autorisation_type_detaille',
75          'type' => 'select',          'type' => 'select',
76          'taille' => 30,          'taille' => 30,
77          'libelle' => _('nature'));          'libelle' => _('dossier_autorisation_type_detaille'));
   
   
78    
79      //      //
     $champs['delegataire_nom'] = array(  
         'table' => 'dossier',  
         'colonne' => 'delegataire_nom',  
         'type' => 'text',  
         'taille' => 30,  
         'libelle' => _('nom delegataire'));  
     //  
     $champs['demandeur_nom'] = array(  
         'table' => 'dossier',  
         'colonne' => 'demandeur_nom',  
         'type' => 'text',  
         'taille' => 30,  
         'libelle' => _('nom demandeur'));  
   
   
     //  
     $champs['demandeur_societe'] = array(  
         'table' => 'dossier',  
         'colonne' => 'demandeur_societe',  
         'type' => 'text',  
         'taille' => 30,  
         'libelle' => _('demandeur_societe'));  
     //  
80      $champs['parcelle'] = array(      $champs['parcelle'] = array(
81          'table' => 'dossier',          'table' => 'dossier',
82          'colonne' => 'parcelle',          'colonne' => 'parcelle',
83          'type' => 'text',          'type' => 'text',
84          'taille' => 30,          'taille' => 30,
85          'libelle' => _('parcelle'));          'libelle' => _('parcelle'));
   
     //  
     $champs['rivoli'] = array(  
         'table' => 'dossier',  
         'colonne' => 'rivoli',  
         'type' => 'text',  
         'taille' => 30,  
         'libelle' => _('rivoli'));  
     //  
     $champs['terrain_adresse'] = array(  
         'table' => 'dossier',  
         'colonne' => 'terrain_adresse',  
         'type' => 'text',  
         'taille' => 30,  
         'libelle' => _('terrain_adresse'));  
   
   
   
   
     //  
     $champs['terrain_adresse_complement'] = array(  
         'table' => 'dossier',  
         'colonne' => 'terrain_adresse_complement',  
         'type' => 'text',  
         'taille' => 30,  
         'libelle' => _('terrain_adresse_complement'));  
86      //// COL2      //// COL2
87    
88      //      //
# Line 150  if (isset($_GET["obj"]) && $_GET["obj"] Line 101  if (isset($_GET["obj"]) && $_GET["obj"]
101          "args" => $args,          "args" => $args,
102      );      );
103    
     //  
     $champs['travaux'] = array(  
         'table' => 'dossier',  
         'colonne' => 'travaux',  
         'type' => 'select',  
         'libelle' => _('travaux'));  
   
   
104      //// COL3      //// COL3
105    
106    
# Line 274  if (isset($_GET["obj"]) && $_GET["obj"] Line 217  if (isset($_GET["obj"]) && $_GET["obj"]
217          'type' => 'date',          'type' => 'date',
218          'taille' => 8,          'taille' => 8,
219          'where' => 'intervaldate');          'where' => 'intervaldate');
220      //      /*Configuration de la recherche avancée*/
221      $options[] = array(      $options[] = array(
222          'type' => 'search',          'type' => 'search',
223          'display' => true,          'display' => true,
# Line 283  if (isset($_GET["obj"]) && $_GET["obj"] Line 226  if (isset($_GET["obj"]) && $_GET["obj"]
226          'absolute_object' => 'dossier');          'absolute_object' => 'dossier');
227  }  }
228    
229    /*Ajout de sous-formulaire à notre objet*/
230    $sousformulaire=array(
231        //"donnees_techniques",
232        "instruction",
233        "consultation",
234        "lot",
235        "dossier_message",
236        "dossier_commission",
237        //"rapport_instruction",
238        "blocnote",
239        "dossier_autorisation",
240    );
241    
242  $sousformulaire=array("instruction",  /*Ajout de paramètre à certains sous-formulaire*/
                       "consultation",  
                       "terrain",  
                       "blocnote",  
                       "destination_shon",  
                       "statistique",  
                       "dossier_message");  
   
 //  
243  $sousformulaire_parameters = array(  $sousformulaire_parameters = array(
244      "consultation" => array(      "consultation" => array(
245          "title" => _("consultation(s)"),          "title" => _("consultation(s)"),
# Line 300  $sousformulaire_parameters = array( Line 247  $sousformulaire_parameters = array(
247      "dossier_message" => array(      "dossier_message" => array(
248          "title" => _("message(s)"),          "title" => _("message(s)"),
249      ),      ),
250        "dossier_commission" => array(
251            "title" => _("commission(s)"),
252        ),
253        "rapport_instruction" => array(
254            "title" => _("rapport d'instruction"),
255            "href" => "../app/redirection_onglet.php?idx=".((isset($idx))? $idx:"")."&obj=rapport_instruction&",
256        ),
257        "lot" => array(
258            "title" => _("lot(s)"),
259        ),
260        "donnees_techniques" => array(
261            "title" => _("donnees techniques"),
262            "href" => "../app/redirection_onglet.php?idx=".((isset($idx))? $idx:"")."&obj=donnees_techniques&",
263        ),
264        "dossier_autorisation" => array(
265            "title" => _("DA"),
266            "href" => "../app/display_da_di.php?iddi=".((isset($idx))? $idx:"")."&",
267        ),
268  );  );
   
269  ?>  ?>

Legend:
Removed from v.872  
changed lines
  Added in v.1761

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26