/[openfoncier]/trunk/obj/consultation.class.php
ViewVC logotype

Diff of /trunk/obj/consultation.class.php

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

revision 6271 by nhaye, Fri Nov 25 10:59:14 2016 UTC revision 6272 by softime, Fri Mar 3 15:27:53 2017 UTC
# Line 23  class consultation extends consultation_ Line 23  class consultation extends consultation_
23              "dateEvenementDocument" => "getDateEvenementDocument",              "dateEvenementDocument" => "getDateEvenementDocument",
24              "groupeInstruction" => 'getGroupeInstruction',              "groupeInstruction" => 'getGroupeInstruction',
25              "title" => 'getTitle',              "title" => 'getTitle',
26                'concerneERP' => 'get_concerne_erp',
27          ),          ),
28          "fichier" => array(          "fichier" => array(
29              "filename" => "getFichierFilename",              "filename" => "getFichierFilename",
# Line 36  class consultation extends consultation_ Line 37  class consultation extends consultation_
37              "dateEvenementDocument" => "getDateEvenementDocument",              "dateEvenementDocument" => "getDateEvenementDocument",
38              "groupeInstruction" => 'getGroupeInstruction',              "groupeInstruction" => 'getGroupeInstruction',
39              "title" => 'getTitle',              "title" => 'getTitle',
40                'concerneERP' => 'get_concerne_erp',
41          ),          ),
42      );      );
43    
# Line 2495  class consultation extends consultation_ Line 2497  class consultation extends consultation_
2497          }          }
2498      }      }
2499    
2500    
2501        /**
2502         * Récupération du champ ERP du dossier d'instruction.
2503         *
2504         * @return boolean
2505         */
2506        public function get_concerne_erp() {
2507            //
2508            if(empty($this->specificMetadata)) {
2509                $this->getSpecificMetadata();
2510            }
2511            //
2512            return $this->specificMetadata->erp;
2513        }
2514    
2515    
2516      /**      /**
2517       * Cette méthode permet de stocker en attribut toutes les métadonnées       * Cette méthode permet de stocker en attribut toutes les métadonnées
2518       * nécessaire à l'ajout d'un document.       * nécessaire à l'ajout d'un document.
# Line 2512  class consultation extends consultation_ Line 2530  class consultation extends consultation_
2530                          dossier_instruction_type.code as dossier_instruction_type,                          dossier_instruction_type.code as dossier_instruction_type,
2531                          etat_dossier_autorisation.libelle as statut,                          etat_dossier_autorisation.libelle as statut,
2532                          dossier_autorisation_type.code as dossier_autorisation_type,                          dossier_autorisation_type.code as dossier_autorisation_type,
2533                          groupe.code as groupe_instruction                          groupe.code as groupe_instruction,
2534                            CASE WHEN dossier.erp IS TRUE
2535                                THEN 'true'
2536                                ELSE 'false'
2537                            END as erp
2538                  FROM ".DB_PREFIXE."dossier                  FROM ".DB_PREFIXE."dossier
2539                      LEFT JOIN ".DB_PREFIXE."dossier_instruction_type                        LEFT JOIN ".DB_PREFIXE."dossier_instruction_type  
2540                          ON dossier.dossier_instruction_type = dossier_instruction_type.dossier_instruction_type                          ON dossier.dossier_instruction_type = dossier_instruction_type.dossier_instruction_type

Legend:
Removed from v.6271  
changed lines
  Added in v.6272

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26