/[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 1272 by vpihour, Wed Feb 20 17:05:58 2013 UTC revision 2243 by nhaye, Wed Sep 4 14:57:29 2013 UTC
# Line 5  include('../gen/sql/pgsql/dossier.inc.ph Line 5  include('../gen/sql/pgsql/dossier.inc.ph
5    
6  /*Tables sur lesquels la requête va s'effectuer*/  /*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 17  LEFT JOIN ".DB_PREFIXE."division Line 22  LEFT JOIN ".DB_PREFIXE."division
22  /*Champs du début de la requête*/  /*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 36  $tri= "order by dossier.dossier"; Line 41  $tri= "order by dossier.dossier";
41    
42  /*Recherche simple*/  /*Recherche simple*/
43  $champRecherche=array(    'dossier.dossier as "'._("dossier").'"',  $champRecherche=array(    'dossier.dossier as "'._("dossier").'"',
44      'dossier.demandeur_nom as "'._("demandeur_nom").'"',);      'personne_morale_denomination as "'._("personne_morale_denomination").'"',
45        'particulier_nom as "'._("particulier_nom").'"',
46        );
47    
48  /*Icone*/  /*Icone*/
49  $ico = "../img/ico_dossier.png";  $ico = "../img/ico_dossier.png";
50    
51  $edition="";  $edition="";
52    
 /*Si l'on se trouve dans le formulaire architecte, mettre certaines actions  
  * au tableau*/  
 if ($retourformulaire== 'architecte'){  
     $tab_actions['corner']['ajouter'] = NULL;  
     $tab_actions['left']['consulter'] = NULL;  
     $tab_actions['content'] =NULL;  
     $selection=" where dossier.architecte ='".$idx."'";  
 }  
 /*Si l'on se trouve dans le formulaire travaux, mettre certaines actions  
  * au tableau*/  
 if ($retourformulaire== 'travaux'){  
     $tab_actions['corner']['ajouter'] = NULL;  
     $tab_actions['left']['consulter'] = NULL;  
     $tab_actions['content'] =NULL;  
     $selection=" where dossier.travaux ='".$idx."'";  
 }  
   
53  /*Si l'on se trouve dans le formulaire dossier_instruction*/  /*Si l'on se trouve dans le formulaire dossier_instruction*/
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
# Line 86  if (isset($_GET["obj"]) && $_GET["obj"] Line 76  if (isset($_GET["obj"]) && $_GET["obj"]
76          'taille' => 30,          'taille' => 30,
77          'libelle' => _('dossier_autorisation_type_detaille'));          'libelle' => _('dossier_autorisation_type_detaille'));
78    
79        $champs['particulier'] = array(  
80            'table' => 'demandeur',
81      //          'colonne' => array('particulier_nom','particulier_prenom','particulier_nom'),
     $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',  
82          'type' => 'text',          'type' => 'text',
83          'taille' => 30,          'taille' => 30,
84          'libelle' => _('demandeur_societe'));          'libelle' => _('Particulier'));        
85        //      
86        $champs['societe'] = array(  
87            'table' => 'demandeur',  
88            'colonne' => array('personne_morale_nom','personne_morale_prenom','personne_morale_denomination'),
89            'type' => 'text',  
90            'taille' => 30,    
91            'libelle' => _('Personne morale'));
92      //      //
93      $champs['parcelle'] = array(      $champs['parcelle'] = array(
94          'table' => 'dossier',          'table' => 'dossier',
95          'colonne' => 'parcelle',          'colonne' => 'terrain_references_cadastrales',
96          'type' => 'text',          'type' => 'text',
97          'taille' => 30,          'taille' => 30,
98          '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'));  
99      //// COL2      //// COL2
100    
101    
102      //      //
103      $champs['etat'] = array(      $champs['etat'] = array(
104          'table' => 'dossier',          'table' => 'dossier',
# Line 162  if (isset($_GET["obj"]) && $_GET["obj"] Line 115  if (isset($_GET["obj"]) && $_GET["obj"]
115          "args" => $args,          "args" => $args,
116      );      );
117    
     //  
     $champs['travaux'] = array(  
         'table' => 'dossier',  
         'colonne' => 'travaux',  
         'type' => 'select',  
         'libelle' => _('travaux'));  
   
   
118      //// COL3      //// COL3
119    
120    
# Line 296  if (isset($_GET["obj"]) && $_GET["obj"] Line 241  if (isset($_GET["obj"]) && $_GET["obj"]
241  }  }
242    
243  /*Ajout de sous-formulaire à notre objet*/  /*Ajout de sous-formulaire à notre objet*/
244  $sousformulaire=array("donnees_techniques",  $sousformulaire=array(
245                        "instruction",      //"donnees_techniques",
246                        "consultation",      "document_numerise",
247                        "lot",      "instruction",
248                        "terrain",      "consultation",
249                        "blocnote",      "lot",
250                        "destination_shon",      "dossier_message",
251                        "statistique",      "dossier_commission",
252                        "dossier_message",      //"rapport_instruction",
253                        "dossier_commission",      "blocnote",
254                        "rapport_instruction",      "dossier_autorisation",
255                        "dossier_autorisation",);  );
256    
257  /*Ajout de paramètre à certains sous-formulaire*/  /*Ajout de paramètre à certains sous-formulaire*/
258  $sousformulaire_parameters = array(  $sousformulaire_parameters = array(
# Line 331  $sousformulaire_parameters = array( Line 276  $sousformulaire_parameters = array(
276          "title" => _("donnees techniques"),          "title" => _("donnees techniques"),
277          "href" => "../app/redirection_onglet.php?idx=".((isset($idx))? $idx:"")."&obj=donnees_techniques&",          "href" => "../app/redirection_onglet.php?idx=".((isset($idx))? $idx:"")."&obj=donnees_techniques&",
278      ),      ),
279        "dossier_autorisation" => array(
280            "title" => _("DA"),
281            "href" => "../app/display_da_di.php?iddi=".((isset($idx))? $idx:"")."&",
282        ),
283        "document_numerise" => array(
284            "title" => _("Piece(s)"),
285            "href" => "../app/document_numerise.view.php",
286        ),
287  );  );
288  ?>  ?>

Legend:
Removed from v.1272  
changed lines
  Added in v.2243

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26