From 594f0c34f434c0d7d988f91b2063cf708e80673a Mon Sep 17 00:00:00 2001 From: Armand Bahi <armand.bahi@veremes.com> Date: Fri, 2 Nov 2018 09:32:47 +0100 Subject: [PATCH] Add right-click to termine drawing --- .gitignore | 2 - README.md | 2 +- _install/apache.conf | 4 - _install/dependency.xml | 25 +- .../anc_parametrage_anc_entreprise.json | 1329 ++++ .../anc_parametrage_anc_param_admin.json | 750 +++ .../anc_parametrage_anc_param_liste.json | 433 ++ .../anc_parametrage_anc_param_tarif.json | 481 ++ .../anc_saisie/anc_saisie_anc_controle.json | 3411 +++++++++++ ...isie_anc_controle_controle_conclusion.json | 522 ++ ...isie_anc_controle_controle_dispositif.json | 1100 ++++ ...aisie_anc_controle_controle_documents.json | 298 + ...isie_anc_controle_controle_evacuation.json | 2363 +++++++ ...saisie_anc_controle_controle_filieres.json | 5291 ++++++++++++++++ ...e_anc_controle_controle_pretraitement.json | 2182 +++++++ ...c_saisie_anc_controle_controle_schema.json | 303 + ...nc_saisie_anc_controle_controle_suivi.json | 272 + ...nc_controle_controle_toilettes_seches.json | 720 +++ ...isie_anc_controle_controle_traitement.json | 3407 +++++++++++ ...sie_anc_controle_controle_ventilation.json | 690 +++ .../anc_saisie_anc_evacuation_eaux.json | 2462 ++++++++ .../anc_saisie_anc_filieres_agree.json | 5420 +++++++++++++++++ .../anc_saisie_anc_installation.json | 2376 ++++++++ ...c_installation_installation_documents.json | 143 + ...e_anc_installation_installation_suivi.json | 414 ++ .../anc_saisie_anc_pretraitement.json | 2332 +++++++ .../anc_saisie/anc_saisie_anc_traitement.json | 3776 ++++++++++++ module/javascript/script_module.js | 1511 +++++ module/lang/lang-en.json | 441 ++ module/lang/lang-fr.json | 442 ++ web_service/class/majic_lib/CHANGE_LOG.txt | 11 - web_service/class/majic_lib/Mj.class.inc | 119 - web_service/class/majic_lib/Mj.sql.inc | 122 - web_service/class/majic_lib/Mj.sql_all.inc | 39 - .../class/majic_lib/Mj_Attribute.class.inc | 53 - .../class/majic_lib/Mj_Attributes.class.inc | 64 - web_service/class/majic_lib/Mj_Bati.class.inc | 605 -- .../majic_lib/Mj_Bati_Parcelle.class.inc | 162 - .../majic_lib/Mj_Bati_Parcelles.class.inc | 61 - .../majic_lib/Mj_Compte_Communal.class.inc | 727 --- .../Mj_Compte_Communal_Parcelle.class.inc | 145 - .../Mj_Compte_Communal_Parcelles.class.inc | 121 - .../class/majic_lib/Mj_Depend_Descr.class.inc | 102 - .../class/majic_lib/Mj_Emprise.class.inc | 101 - .../class/majic_lib/Mj_Emprises.class.inc | 125 - .../class/majic_lib/Mj_Exon_Suf.class.inc | 63 - .../class/majic_lib/Mj_Exone_Pev.class.inc | 90 - .../class/majic_lib/Mj_Habit_Descr.class.inc | 159 - .../class/majic_lib/Mj_Lot_Local.class.inc | 66 - .../class/majic_lib/Mj_Parcelle.class.inc | 567 -- web_service/class/majic_lib/Mj_Pev.class.inc | 270 - .../class/majic_lib/Mj_PosPlu.class.inc | 69 - .../class/majic_lib/Mj_Prof_Descr.class.inc | 54 - .../class/majic_lib/Mj_Proprietaire.class.inc | 135 - web_service/class/majic_lib/Mj_Suf.class.inc | 332 - web_service/class/majic_lib/xsl/FP.xslt | 1481 ----- web_service/class/majic_lib/xsl/FP_New.xslt | 1000 --- .../class/majic_lib/xsl/FP_fo_Complet.xsl | 1762 ------ .../class/majic_lib/xsl/FP_fo_Restreint.xsl | 593 -- .../class/majic_lib/xsl/FP_fo_SansNom.xsl | 394 -- .../class/majic_lib/xsl/Mj_Rapport.xsl | 303 - .../xsl/Mj_Rapport_Parcelle_BatieNonBatie.xsl | 176 - .../xsl/Mj_Rapport_Parcelle_EmprisePosPlu.xsl | 176 - .../xsl/Mj_Rapport_Parcelle_Locaux.xsl | 155 - .../xsl/Mj_Rapport_Parcelle_Proprietaire.xsl | 134 - ...Mj_Rapport_Parcelle_ProprietaireLocaux.xsl | 179 - ...Mj_Rapport_Parcelle_SubdivisionFiscale.xsl | 119 - web_service/class/majic_lib/xsl/Mj_fo.xsl | 2405 -------- .../class/majic_lib/xsl/Mj_fo_Restreint.xsl | 1791 ------ .../class/majic_lib/xsl/Mj_fo_tiers.xsl | 2037 ------- web_service/class/majic_lib/xsl/RP.xslt | 3036 --------- .../class/majic_lib/xsl/commande_fo2html.txt | 5 - web_service/class/majic_lib/xsl/fo2html.xsl | 643 -- web_service/conf/properties.inc | 10 + web_service/conf/selected_properties.inc | 14 + web_service/sql/sqlQueries.xml | 3118 ++++++++++ web_service/ws/Adresse.class.inc | 74 - web_service/ws/Adresses.class.inc | 131 - web_service/ws/Anc.class.inc | 41 + web_service/ws/Anc.class.sql.inc | 22 + web_service/ws/CHANGE_LOG.txt | 8 - web_service/ws/Cadastre.class.inc | 36 - web_service/ws/CadastreProperties.class.inc | 74 - web_service/ws/Commune.class.inc | 75 - web_service/ws/Communes.class.inc | 131 - web_service/ws/Composant.class.inc | 93 + .../ws/ComposantTypeFeatureStyle.class.inc | 92 + .../ws/ComposantTypeFeatureStyles.class.inc | 266 + web_service/ws/Composants.class.inc | 267 + web_service/ws/Controle.class.inc | 263 + web_service/ws/Controles.class.inc | 719 +++ web_service/ws/DescriptionParcelle.class.inc | 74 - web_service/ws/DescriptionParcelles.class.inc | 132 - web_service/ws/DownloadRapport.class.inc | 131 - web_service/ws/Entreprise.class.inc | 94 + web_service/ws/Entreprises.class.inc | 272 + web_service/ws/Evacuation_eaux.class.inc | 105 + web_service/ws/Evacuation_eauxs.class.inc | 297 + .../ws/FicheDescriptiveInvariant.class.inc | 142 - .../ws/FicheDescriptiveParcelle.class.inc | 214 - web_service/ws/FicheUrbanisme.class.inc | 187 - web_service/ws/Filieres_agree.class.inc | 105 + web_service/ws/Filieres_agrees.class.inc | 311 + web_service/ws/Installation.class.inc | 99 + web_service/ws/Installations.class.inc | 312 + web_service/ws/Invariant.class.inc | 74 - web_service/ws/Invariants.class.inc | 131 - web_service/ws/LieuDit.class.inc | 33 - web_service/ws/LieuDits.class.inc | 131 - web_service/ws/Param_admin.class.inc | 91 + web_service/ws/Param_admins.class.inc | 285 + web_service/ws/Param_liste.class.inc | 91 + web_service/ws/Param_listes.class.inc | 265 + web_service/ws/Param_tarif.class.inc | 94 + web_service/ws/Param_tarifs.class.inc | 266 + web_service/ws/Parcelle.class.inc | 74 - web_service/ws/Parcelles.class.inc | 131 - web_service/ws/Pretraitement.class.inc | 105 + web_service/ws/Pretraitements.class.inc | 320 + web_service/ws/Proprietaire.class.inc | 33 - web_service/ws/Proprietaires.class.inc | 131 - .../ws/RapportsCadastreParcelle.class.inc | 283 - web_service/ws/ReleveDePropriete.class.inc | 259 - web_service/ws/Section.class.inc | 75 - web_service/ws/Sections.class.inc | 132 - web_service/ws/Traitement.class.inc | 105 + web_service/ws/Traitements.class.inc | 300 + web_service/ws/Versions.class.inc | 10 +- web_service/ws/Voie.class.inc | 74 - web_service/ws/Voies.class.inc | 131 - web_service/ws/overview.phtml | 10 +- 131 files changed, 51326 insertions(+), 23870 deletions(-) delete mode 100755 _install/apache.conf create mode 100755 module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json create mode 100755 module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json create mode 100755 module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json create mode 100755 module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_installation.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_pretraitement.json create mode 100755 module/forms/anc_saisie/anc_saisie_anc_traitement.json create mode 100755 module/javascript/script_module.js create mode 100644 module/lang/lang-en.json create mode 100644 module/lang/lang-fr.json delete mode 100755 web_service/class/majic_lib/CHANGE_LOG.txt delete mode 100755 web_service/class/majic_lib/Mj.class.inc delete mode 100755 web_service/class/majic_lib/Mj.sql.inc delete mode 100755 web_service/class/majic_lib/Mj.sql_all.inc delete mode 100755 web_service/class/majic_lib/Mj_Attribute.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Attributes.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Bati.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Bati_Parcelle.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Bati_Parcelles.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Compte_Communal.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Compte_Communal_Parcelle.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Compte_Communal_Parcelles.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Depend_Descr.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Emprise.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Emprises.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Exon_Suf.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Exone_Pev.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Habit_Descr.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Lot_Local.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Parcelle.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Pev.class.inc delete mode 100755 web_service/class/majic_lib/Mj_PosPlu.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Prof_Descr.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Proprietaire.class.inc delete mode 100755 web_service/class/majic_lib/Mj_Suf.class.inc delete mode 100755 web_service/class/majic_lib/xsl/FP.xslt delete mode 100755 web_service/class/majic_lib/xsl/FP_New.xslt delete mode 100755 web_service/class/majic_lib/xsl/FP_fo_Complet.xsl delete mode 100755 web_service/class/majic_lib/xsl/FP_fo_Restreint.xsl delete mode 100755 web_service/class/majic_lib/xsl/FP_fo_SansNom.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_BatieNonBatie.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_EmprisePosPlu.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Locaux.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Proprietaire.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_ProprietaireLocaux.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_SubdivisionFiscale.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_fo.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_fo_Restreint.xsl delete mode 100755 web_service/class/majic_lib/xsl/Mj_fo_tiers.xsl delete mode 100755 web_service/class/majic_lib/xsl/RP.xslt delete mode 100755 web_service/class/majic_lib/xsl/commande_fo2html.txt delete mode 100755 web_service/class/majic_lib/xsl/fo2html.xsl create mode 100755 web_service/conf/properties.inc create mode 100755 web_service/conf/selected_properties.inc create mode 100644 web_service/sql/sqlQueries.xml delete mode 100755 web_service/ws/Adresse.class.inc delete mode 100755 web_service/ws/Adresses.class.inc create mode 100755 web_service/ws/Anc.class.inc create mode 100755 web_service/ws/Anc.class.sql.inc delete mode 100755 web_service/ws/CHANGE_LOG.txt delete mode 100755 web_service/ws/Cadastre.class.inc delete mode 100755 web_service/ws/CadastreProperties.class.inc delete mode 100755 web_service/ws/Commune.class.inc delete mode 100755 web_service/ws/Communes.class.inc create mode 100755 web_service/ws/Composant.class.inc create mode 100755 web_service/ws/ComposantTypeFeatureStyle.class.inc create mode 100755 web_service/ws/ComposantTypeFeatureStyles.class.inc create mode 100755 web_service/ws/Composants.class.inc create mode 100755 web_service/ws/Controle.class.inc create mode 100755 web_service/ws/Controles.class.inc delete mode 100755 web_service/ws/DescriptionParcelle.class.inc delete mode 100755 web_service/ws/DescriptionParcelles.class.inc delete mode 100755 web_service/ws/DownloadRapport.class.inc create mode 100755 web_service/ws/Entreprise.class.inc create mode 100755 web_service/ws/Entreprises.class.inc create mode 100755 web_service/ws/Evacuation_eaux.class.inc create mode 100755 web_service/ws/Evacuation_eauxs.class.inc delete mode 100755 web_service/ws/FicheDescriptiveInvariant.class.inc delete mode 100755 web_service/ws/FicheDescriptiveParcelle.class.inc delete mode 100755 web_service/ws/FicheUrbanisme.class.inc create mode 100755 web_service/ws/Filieres_agree.class.inc create mode 100755 web_service/ws/Filieres_agrees.class.inc create mode 100755 web_service/ws/Installation.class.inc create mode 100755 web_service/ws/Installations.class.inc delete mode 100755 web_service/ws/Invariant.class.inc delete mode 100755 web_service/ws/Invariants.class.inc delete mode 100755 web_service/ws/LieuDit.class.inc delete mode 100755 web_service/ws/LieuDits.class.inc create mode 100755 web_service/ws/Param_admin.class.inc create mode 100755 web_service/ws/Param_admins.class.inc create mode 100755 web_service/ws/Param_liste.class.inc create mode 100755 web_service/ws/Param_listes.class.inc create mode 100755 web_service/ws/Param_tarif.class.inc create mode 100755 web_service/ws/Param_tarifs.class.inc delete mode 100755 web_service/ws/Parcelle.class.inc delete mode 100755 web_service/ws/Parcelles.class.inc create mode 100755 web_service/ws/Pretraitement.class.inc create mode 100755 web_service/ws/Pretraitements.class.inc delete mode 100755 web_service/ws/Proprietaire.class.inc delete mode 100755 web_service/ws/Proprietaires.class.inc delete mode 100755 web_service/ws/RapportsCadastreParcelle.class.inc delete mode 100755 web_service/ws/ReleveDePropriete.class.inc delete mode 100755 web_service/ws/Section.class.inc delete mode 100755 web_service/ws/Sections.class.inc create mode 100755 web_service/ws/Traitement.class.inc create mode 100755 web_service/ws/Traitements.class.inc delete mode 100755 web_service/ws/Voie.class.inc delete mode 100755 web_service/ws/Voies.class.inc diff --git a/.gitignore b/.gitignore index 98ef169d..e69de29b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +0,0 @@ -web_service/conf/properties* -web_service/conf/version.inc diff --git a/README.md b/README.md index c850ab70..db41d726 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Web service cadastre \ No newline at end of file +Module ANC 2018.03.00 for Vitis \ No newline at end of file diff --git a/_install/apache.conf b/_install/apache.conf deleted file mode 100755 index da7bc6a8..00000000 --- a/_install/apache.conf +++ /dev/null @@ -1,4 +0,0 @@ - - <Directory "[VASDIRECTORY]/public/cadastre"> - Require all denied - </Directory> \ No newline at end of file diff --git a/_install/dependency.xml b/_install/dependency.xml index 441f5546..0b43e654 100755 --- a/_install/dependency.xml +++ b/_install/dependency.xml @@ -1,10 +1,33 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- WS GTF --> <installer> + <schema> + <name>s_anc</name> + <dependenciesCollection> + <dependency> + <nature>schema</nature> + <name>s_vitis</name> + <object>vitis</object> + </dependency> + <dependency> + <nature>schema</nature> + <name>s_cadastre</name> + <object>module_cadastreV2</object> + </dependency> + <dependency> + <name>postgis</name> + <version>2.0</version> + <nature>extern-pre</nature> + </dependency> + </dependenciesCollection> + </schema> <dependenciesCollection> <dependency> <nature>framework</nature> <name>vitis</name> </dependency> + <dependency> + <nature>modules</nature> + <name>module_vmap</name> + </dependency> </dependenciesCollection> </installer> diff --git a/module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json b/module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json new file mode 100755 index 00000000..27f8a47c --- /dev/null +++ b/module/forms/anc_parametrage/anc_parametrage_anc_entreprise.json @@ -0,0 +1,1329 @@ +{ + "display":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_entreprises", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_entreprises_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_com", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_com_2_1" + }, + { + "type":"label", + "name":"siret", + "label":"SIRET", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"siret_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"raison_sociale", + "label":"Raison Sociale", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"raison_sociale_4_1" + }, + { + "type":"label", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_entreprise_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"nom_contact", + "label":"Contact", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nom_contact_6_1" + }, + { + "type":"label", + "name":"telephone_fixe", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"telephone_fixe_7_1" + }, + { + "type":"label", + "name":"telephone_mobile", + "label":"Mobile", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"telephone_mobile_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"web", + "label":"Site internet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"web_9_1" + }, + { + "type":"label", + "name":"mail", + "label":"Email", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"mail_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"voie", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"voie_12_1" + }, + { + "type":"label", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bureau_etude", + "label":"Bureau d'étude", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"bureau_etude_13_1" + }, + { + "type":"label", + "name":"concepteur", + "label":"Concepteur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"concepteur_14_1" + }, + { + "type":"label", + "name":"constructeur", + "label":"Contructeur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"constructeur_15_1" + }, + { + "type":"label", + "name":"installateur", + "label":"Installateur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"installateur_16_1" + }, + { + "type":"label", + "name":"vidangeur", + "label":"Vidangeur", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"vidangeur_17_1" + }, + { + "type":"label", + "name":"en_activite", + "label":"En activité", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"en_activite_18_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Obsevations", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"observations_19_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"creat", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"creat_20_1" + }, + { + "type":"label", + "name":"creat_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"creat_date_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_22_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_23_1" + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Maps", + "required":false, + "nb_cols":12, + "id":"geom_24_1", + "style":{ + "height":"350px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 106035.20950928, + 6702357.4186523, + 653689.58829346, + 6974242.5712402 + ], + "coord":[ + 379862.39890137, + 6838299.9949462 + ], + "scale":2931385 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":false, + "ED":false, + "DP":false, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageEntrepriseForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_entreprises", + "id_com", + "siret", + "raison_sociale", + "nom_entreprise", + "nom_contact", + "telephone_fixe", + "telephone_mobile", + "web", + "mail", + "code_postal", + "voie", + "bureau_etude", + "concepteur", + "constructeur", + "installateur", + "vidangeur", + "en_activite", + "observations", + "creat", + "creat_date", + "maj", + "maj_date", + "geom", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "id_from":"Element_0_1_1_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + } + }, + { + "type":"text", + "name":"raison_sociale", + "label":"Raison sociale", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_1_2" + }, + { + "type":"text", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_2_1_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_com", + "raison_sociale", + "nom_entreprise" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":6, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"text", + "name":"siret", + "label":"SIRET", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{5}$", + "id":"siret_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"raison_sociale", + "label":"Raison sociale", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"raison_sociale_4_1" + }, + { + "type":"text", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_entreprise_5_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"nom_contact", + "label":"Contact", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nom_contact_6_1" + }, + { + "type":"text", + "name":"telephone_fixe", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"telephone_fixe_7_1" + }, + { + "type":"text", + "name":"telephone_mobile", + "label":"Mobile", + "disabled":false, + "required":false, + "nb_cols":4, + "pattern" : "^((\\+\\d{1,3}(| )?\\(?\\d\\)?(| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(| )?(\\d{3,4})(| )?(\\d{4})(( x| ext)\\d{1,5}){0,1}$", + "id":"telephone_mobile_8_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"web", + "label":"Site internet", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$", + "id":"web_9_1" + }, + { + "type":"text", + "name":"mail", + "label":"Email", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^(([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})(\\s*(\n)\\s*))*([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})$", + "id":"mail_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"voie", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"voie_12_1" + }, + { + "type":"integer", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_11_1", + "max_length": 5 + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"bureau_etude", + "label":"Bureau d'étude", + "nb_cols":2, + "id":"bureau_etude_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"concepteur", + "label":"Concepteur", + "nb_cols":2, + "id":"concepteur_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"constructeur", + "label":"Constructeur", + "nb_cols":2, + "id":"constructeur_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"installateur", + "label":"Installateur", + "nb_cols":2, + "id":"installateur_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"vidangeur", + "label":"Vidangeur", + "nb_cols":2, + "id":"vidangeur_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + }, + { + "type":"radio", + "name":"en_activite", + "label":"En activité", + "nb_cols":2, + "id":"en_activite_18_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Observations", + "nb_cols":12, + "id":"observations_19_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Maps", + "required":false, + "nb_cols":12, + "id":"geom_24_1", + "style":{ + "height":"450px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 147983.20447998, + 6654194.9059082, + 686315.806604, + 7003761.5306641 + ], + "coord":[ + 417149.50554199, + 6828978.2182862 + ], + "scale":2931512 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":true, + "ED":true, + "DP":true, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "siret", + "raison_sociale", + "nom_entreprise", + "nom_contact", + "telephone_fixe", + "telephone_mobile", + "web", + "mail", + "code_postal", + "voie", + "bureau_etude", + "concepteur", + "constructeur", + "installateur", + "vidangeur", + "en_activite", + "observations", + "geom", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_entreprise-form", + "title":"ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_entreprises", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_entreprises_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":6, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"text", + "name":"siret", + "label":"SIRET", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{3}[ \\.\\-]?[0-9]{5}$", + "id":"siret_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"raison_sociale", + "label":"Raison sociale", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"raison_sociale_4_1" + }, + { + "type":"text", + "name":"nom_entreprise", + "label":"Nom de l'entreprise", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_entreprise_5_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"nom_contact", + "label":"Contact", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nom_contact_6_1" + }, + { + "type":"text", + "name":"telephone_fixe", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"telephone_fixe_7_1" + }, + { + "type":"text", + "name":"telephone_mobile", + "label":"Mobile", + "disabled":false, + "required":false, + "nb_cols":4, + "pattern" : "^((\\+\\d{1,3}(| )?\\(?\\d\\)?(| )?\\d{1,5})|(\\(?\\d{2,6}\\)?))(| )?(\\d{3,4})(| )?(\\d{4})(( x| ext)\\d{1,5}){0,1}$", + "id":"telephone_mobile_8_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"web", + "label":"Site internet", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}$", + "id":"web_9_1" + }, + { + "type":"text", + "name":"mail", + "label":"Email", + "disabled":false, + "required":false, + "nb_cols":6, + "pattern" : "^(([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})(\\s*(\n)\\s*))*([A-Za-z0-9_\\+\\-]+\\.)*[A-Za-z0-9_\\+\\-]+@([A-Za-z0-9_\\+\\-]+\\.)+([A-Za-z]{2,4})$", + "id":"mail_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"voie", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"voie_12_1" + }, + { + "type":"integer", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_11_1", + "max_length": 5 + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"bureau_etude", + "label":"Bureau d'étude", + "nb_cols":2, + "id":"bureau_etude_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13416" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13417" + } + ] + } + }, + { + "type":"radio", + "name":"concepteur", + "label":"Concepteur", + "nb_cols":2, + "id":"concepteur_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13424" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13425" + } + ] + } + }, + { + "type":"radio", + "name":"constructeur", + "label":"Constructeur", + "nb_cols":2, + "id":"constructeur_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13432" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13433" + } + ] + } + }, + { + "type":"radio", + "name":"installateur", + "label":"Installateur", + "nb_cols":2, + "id":"installateur_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13440" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13441" + } + ] + } + }, + { + "type":"radio", + "name":"vidangeur", + "label":"Vidangeur", + "nb_cols":2, + "id":"vidangeur_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13448" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13449" + } + ] + } + }, + { + "type":"radio", + "name":"en_activite", + "label":"En activité", + "nb_cols":2, + "id":"en_activite_18_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:13456" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:13457" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Observations", + "nb_cols":12, + "id":"observations_19_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"creat", + "label":"Auteur", + "nb_cols":6, + "id":"creat_20_1" + }, + { + "type":"label", + "name":"creat_date", + "label":"Date de création", + "nb_cols":6, + "id":"creat_date_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "id":"maj_22_1", + "nb_cols":6, + "label":"Mise à jour" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_23_1" + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Maps", + "required":false, + "nb_cols":12, + "id":"geom_24_1", + "style":{ + "height":"400px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 97101.84020996303, + 6672838.459228512, + 701463.69367676, + 6983564.347900387 + ], + "coord":[ + 399282.7669433615, + 6828201.403564449 + ], + "scale":2931544 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":true, + "ED":true, + "DP":true, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageEntrepriseForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_entreprises", + "id_com", + "siret", + "raison_sociale", + "nom_entreprise", + "nom_contact", + "telephone_fixe", + "telephone_mobile", + "web", + "mail", + "code_postal", + "voie", + "bureau_etude", + "concepteur", + "constructeur", + "installateur", + "vidangeur", + "en_activite", + "observations", + "creat", + "creat_date", + "maj", + "maj_date", + "geom", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"id_com", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json b/module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json new file mode 100755 index 00000000..aa595125 --- /dev/null +++ b/module/forms/anc_parametrage/anc_parametrage_anc_param_admin.json @@ -0,0 +1,750 @@ +{ + "display":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_admin", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_admin_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_com", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_com_2_1" + }, + { + "type":"label", + "name":"type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"type_3_1" + }, + { + "type":"label", + "name":"sous_type", + "label":"Sous type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"sous type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"civilite", + "label":"Civilité", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"civilite_8_1" + }, + { + "type":"label", + "name":"nom", + "label":"Nom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"nom_5_1" + }, + { + "type":"label", + "name":"prenom", + "label":"Prénom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"prenom_6_1" + }, + { + "type":"label", + "name":"qualite", + "label":"Qualité", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"qualite_10_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"description", + "label":"Description", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"description_7_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"date_fin_validite", + "label":"Date de fin de validité", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"date_fin_validite_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"signature", + "label":"Signature", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"signature_11_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageAdministrateurForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_admin", + "id_com", + "type", + "sous_type", + "nom", + "prenom", + "description", + "civilite", + "date_fin_validite", + "qualite", + "signature", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"Element_0_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + } + }, + { + "type":"text", + "name":"nom", + "label":"Nom", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_0_1_2" + }, + { + "type":"select", + "name":"type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"type_3_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"type_3_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"sous_type", + "label":"Sous type", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_0_1_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_com", + "nom", + "type", + "sous_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"select", + "name":"type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"type_3_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"type_3_1_from" + }, + { + "type":"text", + "name":"sous_type", + "label":"Sous type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"sous type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"civilite", + "label":"Civilité", + "required":false, + "nb_cols":3, + "id":"civilite_8_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"civilite_8_1_from" + }, + { + "type":"text", + "name":"nom", + "label":"Nom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"nom_5_1" + }, + { + "type":"text", + "name":"prenom", + "label":"Prénom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"prenom_6_1" + }, + { + "type":"select", + "name":"qualite", + "label":"Qualité", + "required":false, + "nb_cols":3, + "id":"qualite_10_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"qualite_10_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"description", + "label":"Description", + "nb_cols":12, + "id":"description_7_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"date_fin_validite", + "label":"Fin de validité", + "nb_cols":12, + "id":"date_fin_validite_9_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"signature", + "label":"Signature", + "nb_cols":12, + "id":"signature_11_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "type", + "sous_type", + "nom", + "prenom", + "description", + "civilite", + "date_fin_validite", + "qualite", + "signature", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_param_admin-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_admin", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_admin_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":4, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"select", + "name":"type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"type_3_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"type_3_1_from" + }, + { + "type":"text", + "name":"sous_type", + "label":"Sous type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"sous type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"civilite", + "label":"Civilité", + "required":false, + "nb_cols":3, + "id":"civilite_8_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"civilite_8_1_from" + }, + { + "type":"text", + "name":"nom", + "label":"Nom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"nom_5_1" + }, + { + "type":"text", + "name":"prenom", + "label":"Prénom", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"prenom_6_1" + }, + { + "type":"select", + "name":"qualite", + "label":"Qualité", + "required":false, + "nb_cols":3, + "id":"qualite_10_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"qualite_10_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"description", + "label":"Description", + "nb_cols":12, + "id":"description_7_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"date_fin_validite", + "label":"Fin de validité", + "nb_cols":12, + "id":"date_fin_validite_9_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"signature", + "label":"ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SIGNATURE", + "nb_cols":12, + "id":"signature_11_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent":"initAncParametrageAdministrateurForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_admin", + "id_com", + "type", + "sous_type", + "nom", + "prenom", + "description", + "civilite", + "date_fin_validite", + "qualite", + "signature", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"commune", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"civilité", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "param_admin", "nom_liste": "civilite"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"qualite", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "param_admin", "nom_liste": "qualite"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "param_admin", "nom_liste": "type"} + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json b/module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json new file mode 100755 index 00000000..23dbc3f4 --- /dev/null +++ b/module/forms/anc_parametrage/anc_parametrage_anc_param_liste.json @@ -0,0 +1,433 @@ +{ + "display":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_liste", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_liste_1_1", + "default_value":"36" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_nom_table", + "label":"Nom de table", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_nom_table_2_1", + "default_value":"installation" + }, + { + "type":"label", + "name":"nom_liste", + "label":"Nom de liste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_liste_3_1", + "default_value":"cont_zone_enjeu" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"valeur", + "label":"Valeur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"valeurs_4_1", + "default_value":"SANITAIRE" + }, + { + "type":"label", + "name":"alias", + "label":"Alias", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"alias_5_1", + "default_value":"Sanitaire" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_liste", + "id_nom_table", + "nom_liste", + "valeur", + "alias", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_nom_table", + "label":"Nom de table", + "required":false, + "nb_cols":6, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_nom_table", + "order_by":"id_nom_table", + "id_key":"id_nom_table", + "attributs":"id_nom_table" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"nom_liste", + "label":"Nom de liste", + "required":false, + "nb_cols":6, + "id":"Element_0_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_liste", + "order_by":"nom_liste", + "id_key":"nom_liste", + "attributs":"nom_liste|nom_liste", + "parents":[ + { + "name":"id_nom_table", + "filter_attr":"id_nom_table", + "filter_equality":"=", + "wait_for_parent":false + } + ] + }, + "id_from":"Element_0_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_nom_table", + "nom_liste" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"text", + "name":"id_nom_table", + "label":"Nom de la table", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_nom_table_2_1" + }, + { + "type":"text", + "name":"nom_liste", + "label":"Nom de la liste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_liste_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"valeur", + "label":"Valeur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"valeurs_4_1" + }, + { + "type":"text", + "name":"alias", + "label":"Alias", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"alias_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_nom_table", + "nom_liste", + "valeur", + "alias", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_param_liste-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_liste", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_liste_1_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"id_nom_table", + "label":"Nom de la table", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_nom_table_2_1" + }, + { + "type":"text", + "name":"nom_liste", + "label":"Nom de la liste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"nom_liste_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"valeur", + "label":"Valeur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"valeurs_4_1" + }, + { + "type":"text", + "name":"alias", + "label":"Alias", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"alias_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_liste", + "id_nom_table", + "nom_liste", + "valeur", + "alias", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"id_nom_table", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"nom_table" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"nom_liste", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json b/module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json new file mode 100755 index 00000000..2ca3c28a --- /dev/null +++ b/module/forms/anc_parametrage/anc_parametrage_anc_param_tarif.json @@ -0,0 +1,481 @@ +{ + "display":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_tarif", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"id_parametre_tarif_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"id_com", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_com_2_1" + }, + { + "type":"label", + "name":"controle_type", + "label":"Type de contrôle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"controle_type_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"montant", + "label":"Montant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"montant_4_1" + }, + { + "type":"label", + "name":"annee_validite", + "label":"Année de validité", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"annee_validite_5_1" + }, + { + "type":"label", + "name":"devise", + "label":"Devise", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"devise_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_tarif", + "id_com", + "controle_type", + "montant", + "annee_validite", + "devise", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":6, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"Element_0_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"alias|valeur" + }, + "id_from":"Element_0_1_2_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_com", + "controle_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":6, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"nom|id_com" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"alias|valeur" + }, + "id_from":"controle_type_3_1_from" + } + ] + }, + { + "fields":[ + { + "type":"float", + "name":"montant", + "label":"Montant", + "nb_cols":4, + "id":"montant_4_1" + }, + { + "type":"integer", + "name":"annee_validite", + "label":"Année de validité", + "nb_cols":4, + "id":"annee_validite_5_1" + }, + { + "type":"text", + "name":"devise", + "label":"Devise", + "disabled":false, + "required":false, + "nb_cols":4, + "default_value":"euros", + "id":"devise_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "controle_type", + "montant", + "annee_validite", + "devise", + "insert_button" + ] + } + ] + } + }, + "update":{ + "name":"anc_parametrage_anc_param_tarif-form", + "title":"ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_parametre_tarif", + "label":"ID", + "nb_cols":12, + "id":"id_parametre_tarif_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":6, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + } + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"alias|valeur" + }, + "id_from":"controle_type_3_1_from" + } + ] + }, + { + "fields":[ + { + "type":"float", + "name":"montant", + "label":"Montant", + "nb_cols":4, + "id":"montant_4_1" + }, + { + "type":"integer", + "name":"annee_validite", + "label":"Année de validité", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"annee_validite_5_1" + }, + { + "type":"text", + "name":"devise", + "label":"Devise", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"devise_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_parametre_tarif", + "id_com", + "controle_type", + "montant", + "annee_validite", + "devise", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"communes", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"control_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "controle_type"} + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle.json b/module/forms/anc_saisie/anc_saisie_anc_controle.json new file mode 100755 index 00000000..6f4fa166 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle.json @@ -0,0 +1,3411 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_controle", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_controle_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"id_installation_2_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dossier", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"controle_type", + "label":"Type de contrôle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"controle_type_3_1" + }, + { + "type":"label", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"controle_ss_type_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_date_control", + "label":"Date de contrôle", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"des_date_control_5_1" + }, + { + "type":"label", + "name":"des_interval_control", + "label":"Intervalle avec le prochain contrôle", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"des_interval_control_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_pers_control", + "label":"Personnes présentes lors du contrôle", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"des_pers_control_7_1" + }, + { + "type":"label", + "name":"des_agent_control", + "label":"Nom du contrôleur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_agent_control_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_installateur", + "label":"Installateur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_installateur_9_1" + }, + { + "type":"label", + "name":"des_date_installation", + "label":"Date de réalisation de la filière", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"des_date_installation_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_date_recommande", + "label":"Date du recommandé", + "disabled":false, + "required":true, + "nb_cols":4, + "id":"des_date_recommande_12_1" + }, + { + "type":"label", + "name":"des_numero_recommande", + "label":"Numéro du recommandé", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_numero_recommande_13_1" + }, + { + "type":"label", + "name":"des_refus_visite", + "label":"Refus de visite", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_refus_visite_10_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Dépôt", + "nb_cols":12, + "id":"Element_1_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"dep_date_depot", + "label":"Date du dépôt du dossier", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"dep_date_depot_14_1" + }, + { + "type":"label", + "name":"dep_liste_piece", + "label":"Liste des pièces", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"dep_liste_piece_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"dep_dossier_complet", + "label":"Le dossier est-il complet ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_dossier_complet_16_1" + }, + { + "type":"label", + "name":"dep_date_envoi_incomplet", + "label":"Date de rappel du dossier incomplet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_date_envoi_incomplet_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_nature_projet", + "label":"Nature du projet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_nature_projet_18_1" + }, + { + "type":"label", + "name":"des_concepteur", + "label":"Concepteur du projet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_concepteur_19_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Caractéristique du terrain", + "nb_cols":12, + "id":"Element_2_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_surface_dispo_m2", + "label":"Surface disponible pour l'installation (en m²)", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"car_surface_dispo_m2_21_1" + }, + { + "type":"label", + "name":"car_permea", + "label":"Perméabilité", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"car_permea_22_1" + }, + { + "type":"label", + "name":"car_valeur_permea", + "label":"Valeur de Perméabilité (k en mm/h)", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"car_valeur_permea_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_hydromorphie", + "label":"Hydromorphie", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_hydromorphie_24_1" + }, + { + "type":"label", + "name":"car_prof_app", + "label":"Profondeur d’apparition en cm", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_prof_app_25_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_nappe_fond", + "label":"Nappe d’eau présente à moins de 1 mètre du fond de fouille", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_nappe_fond_26_1" + }, + { + "type":"label", + "name":"car_terrain_innondable", + "label":"Terrain innondable ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_terrain_innondable_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_roche_sol", + "label":"Présence de la roche à moins de 1 mètre de la surface du sol", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"car_roche_sol_28_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Implantation", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_dist_hab", + "label":"Distance de l’habitation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_hab_29_1" + }, + { + "type":"label", + "name":"car_dist_lim_par", + "label":"Distance limite de la parcelle ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_lim_par_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"car_dist_veget", + "label":"Distance de la végétation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_veget_31_1" + }, + { + "type":"label", + "name":"car_dist_puit", + "label":"Distance du puit ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_dist_puit_32_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Modification intervenu", + "nb_cols":12, + "id":"Element_4_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_reamenage_terrain", + "label":"Réaménagement du terrain sur et aux abords de l'installation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_reamenage_terrain_33_1" + }, + { + "type":"label", + "name":"des_reamenage_immeuble", + "label":"Réaménagement de l'immeuble:augmentation du nombre de PP", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_reamenage_immeuble_34_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_real_trvx", + "label":"Réalisation des travaux notifiés dans le précédent rapport de visite.", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"des_real_trvx_35_1" + }, + { + "type":"label", + "name":"des_anc_ss_accord", + "label":"Réalisation d'un anc sans accord du SPANC", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"des_anc_ss_accord_36_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Collecte des eaux pluviales", + "nb_cols":12, + "id":"Element_5_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_collecte_ep", + "label":"Destination des eaux pluviales", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_collecte_ep_37_1" + }, + { + "type":"label", + "name":"des_sep_ep_eu", + "label":"Séparation des eaux pluviales et des eaux usées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_sep_ep_eu_38_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Collecte EU", + "nb_cols":12, + "id":"Element_8_26_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_nb_sortie", + "label":"Nombre de sorties eaux usées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_nb_sortie_39_1" + }, + { + "type":"label", + "name":"des_eu_tes_regards", + "label":"Nombre de regard de collecte ou té de visite", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_tes_regards_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_pente_ecoul", + "label":"Pente des canalisations suffisante pour permettre un bon écoulement ?", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"des_eu_pente_ecoul_41_1" + }, + { + "type":"label", + "name":"des_eu_regars_acces", + "label":"Regard accessible", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"des_eu_regars_acces_42_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_alteration", + "label":"Signes d'altération", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_alteration_43_1" + }, + { + "type":"label", + "name":"des_eu_ecoulement", + "label":"L'écoulement se fait il correctement?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"des_eu_ecoulement_44_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"des_eu_depot_regard", + "label":"Dépot de matière en fond de regard?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"des_eu_depot_regard_45_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Commentaires", + "nb_cols":12, + "id":"Element_7_31_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"des_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"des_commentaire_46_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "num_dossier", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_interval_control", + "des_pers_control", + "des_agent_control", + "des_refus_visite", + "des_date_installation", + "des_date_recommande", + "des_numero_recommande", + "dep_date_depot", + "dep_liste_piece", + "dep_dossier_complet", + "dep_date_envoi_incomplet", + "des_nature_projet", + "des_concepteur", + "car_surface_dispo_m2", + "car_permea", + "car_valeur_permea", + "car_hydromorphie", + "car_prof_app", + "car_nappe_fond", + "car_terrain_innondable", + "car_roche_sol", + "car_dist_hab", + "car_dist_lim_par", + "car_dist_veget", + "car_dist_puit", + "des_reamenage_terrain", + "des_reamenage_immeuble", + "des_real_trvx", + "des_anc_ss_accord", + "des_collecte_ep", + "des_sep_ep_eu", + "des_eu_nb_sortie", + "des_eu_tes_regards", + "des_eu_pente_ecoul", + "des_eu_regars_acces", + "des_eu_alteration", + "des_eu_ecoulement", + "des_eu_depot_regard", + "des_commentaire", + "display_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "des_installateur" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"text", + "name":"num_dossier", + "label":"nº installation", + "nb_cols":4, + "visible": true + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from", + "visible": false + }, + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":4, + "id":"Element_1_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_1_1_2_from" + }, + { + "type":"select", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "required":false, + "nb_cols":4, + "id":"Element_2_1_3", + "id_from":"Element_2_1_3_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_control", + "label":"Date du contrôle", + "nb_cols":4, + "id":"Element_3_1_4" + }, + { + "type":"radio", + "name":"des_refus_visite", + "label":"Refus de visite", + "nb_cols":4, + "id":"Element_5_1_6", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"dep_date_depot", + "label":"Date du dépôt de dossier", + "nb_cols":3, + "id":"Element_6_1_7" + }, + { + "type":"radio", + "name":"dep_dossier_complet", + "label":"Le dossier est-il complet ?", + "nb_cols":3, + "id":"Element_7_1_8", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "visible": false + }, + { + "type":"select", + "name":"cl_avis", + "label":"Conforme à la reglementation ?", + "required":false, + "nb_cols":4, + "id":"Element_8_1_9", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_1_9_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cl_classe_cbf", + "label":"Classement à l'issue du contrôle périodique", + "required":false, + "nb_cols":5, + "id":"Element_9_1_10", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_9_1_10_from", + "visible": false + }, + { + "type":"date", + "name":"cl_date_avis", + "label":"Date de l'avis", + "nb_cols":3, + "id":"Element_10_1_11" + }, + { + "type":"text", + "name":"cl_auteur_avis", + "label":"Auteur de l'avis", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_11_1_12", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"cl_facture", + "label":"A Facturer", + "nb_cols":6, + "id":"Element_0_5_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "num_dossier", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_refus_visite", + "dep_date_depot", + "dep_dossier_complet", + "cl_avis", + "cl_classe_cbf", + "cl_date_avis", + "cl_auteur_avis", + "cl_date_prochain_controle", + "cl_facture" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":5, + "id":"id_installation_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_2_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dossier", + "nb_cols":12, + "id":"Element_0_2_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_type_3_1_from" + }, + { + "type":"select", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_ss_type_4_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_ss_type_4_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_control", + "label":"Date du contrôle", + "nb_cols":6, + "id":"des_date_control_5_1", + "required":true + }, + { + "type":"select", + "name":"des_interval_control", + "label":"Intervalle avec le prochain contrôle", + "required":false, + "nb_cols":6, + "id":"des_interval_control_45_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"des_pers_control", + "label":"Personnes présentes lors du contrôle", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"des_pers_control_7_1", + "visible": false + }, + { + "type":"select", + "name":"des_agent_control", + "label":"Nom du contrôleur", + "required":false, + "nb_cols":4, + "id":"des_agent_control_8_1", + "id_from":"des_agent_control_8_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_prenom", + "order_by":"nom_prenom", + "id_key":"id_parametre_admin", + "attributs":"id_parametre_admin|nom_prenom" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_installateur", + "label":"Installateur", + "required":false, + "nb_cols":6, + "id":"des_installateur_9_1", + "id_from":"des_installateur_9_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "visible": false + }, + { + "type":"date", + "name":"des_date_installation", + "label":"Date de réalisation de la filière", + "nb_cols":6, + "id":"des_date_installation_11_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_recommande", + "label":"Date du recommandé", + "nb_cols":4, + "id":"des_date_recommande_12_1" + }, + { + "type":"text", + "name":"des_numero_recommande", + "label":"Numéro du recommandé", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_numero_recommande_13_1", + "visible": false + }, + { + "type":"radio", + "name":"des_refus_visite", + "label":"Refus de visite", + "nb_cols":4, + "id":"des_refus_visite_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:80675" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:80676" + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Dépôt", + "nb_cols":12, + "id":"Element_1_8_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"dep_date_depot", + "label":"Date du dépôt du dossier", + "nb_cols":4, + "id":"dep_date_depot_14_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"dep_liste_piece", + "label":"Liste des pièces", + "required":false, + "nb_cols":12, + "id":"dep_liste_piece_15_1", + "name_to":"dep_liste_piece", + "name_from":"dep_liste_piece_from", + "id_from":"dep_liste_piece_15_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "id_key":"valeur", + "label_key":"alias", + "attributs":"valeur|alias", + "order_by":"alias" + }, + "label_from":"Pièces disponibles", + "label_to":"Pièces fournies lors du contrôle", + "size":5, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"dep_dossier_complet", + "label":"Le dossier est il complet ?", + "nb_cols":6, + "id":"dep_dossier_complet_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:80703" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:80704" + } + ] + }, + "visible": false + }, + { + "type":"date", + "name":"dep_date_envoi_incomplet", + "label":"Date de rappel du dossier incomplet", + "nb_cols":6, + "id":"dep_date_envoi_incomplet_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_nature_projet", + "label":"Nature du projet", + "required":false, + "nb_cols":6, + "id":"des_nature_projet_18_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_nature_projet_18_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_concepteur", + "label":"Concepteur du projet", + "required":true, + "nb_cols":6, + "id":"des_concepteur_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"des_concepteur_19_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Caractéristiques du terrain", + "nb_cols":12, + "id":"Element_2_14_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"car_surface_dispo_m2", + "label":"Surface disponible pour l'installation (en m²)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_surface_dispo_m2_21_1", + "visible": false + }, + { + "type":"select", + "name":"car_permea", + "label":"Perméabilité", + "required":false, + "nb_cols":6, + "id":"car_permea_22_1", + "id_from":"car_permea_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_valeur_permea", + "label":"Valeur de Perméabilité (k en mm/h)", + "required":true, + "nb_cols":6, + "id":"car_valeur_permea_23_1", + "visible": false + }, + { + "type":"select", + "name":"car_hydromorphie", + "label":"Hydromorphie", + "required":false, + "nb_cols":6, + "id":"car_hydromorphie_24_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_hydromorphie_24_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_prof_app", + "label":"Profondeur d’apparition en cm", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"car_prof_app_25_1", + "visible": false + }, + { + "type":"select", + "name":"car_nappe_fond", + "label":"Nappe d’eau présente à moins de 1 mètre du fond de fouille", + "required":false, + "nb_cols":6, + "id":"car_nappe_fond_26_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_nappe_fond_26_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_terrain_innondable", + "label":"Terrain innondable ?", + "required":false, + "nb_cols":6, + "id":"car_terrain_innondable_27_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_terrain_innondable_27_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_roche_sol", + "label":"Présence de la roche à moins de 1 mètre de la surface du sol", + "required":false, + "nb_cols":6, + "id":"car_roche_sol_28_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_roche_sol_28_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Implantation", + "nb_cols":12, + "id":"Element_3_19_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_hab", + "label":"Distance de l’habitation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_hab_29_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_hab_29_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_lim_par", + "label":"Distance limite de la parcelle ?", + "required":false, + "nb_cols":6, + "id":"car_dist_lim_par_30_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_lim_par_30_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_veget", + "label":"Distance de la végétation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_veget_31_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_veget_31_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_puit", + "label":"Distance du puit ?", + "required":false, + "nb_cols":6, + "id":"car_dist_puit_32_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_puit_32_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Modification intervenu", + "nb_cols":12, + "id":"Element_4_22_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_reamenage_terrain", + "label":"Réaménagement du terrain sur et aux abords de l'installation", + "required":false, + "nb_cols":6, + "id":"des_reamenage_terrain_33_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_terrain_33_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_reamenage_immeuble", + "label":"Réaménagement de l'immeuble:augmentation du nombre de PP", + "required":false, + "nb_cols":6, + "id":"des_reamenage_immeuble_34_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_immeuble_34_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_real_trvx", + "label":"Réalisation des travaux notifiés dans le précédent rapport de visite.", + "required":false, + "nb_cols":7, + "id":"des_real_trvx_35_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_real_trvx_35_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_anc_ss_accord", + "label":"Réalisation d'un anc sans accord du SPANC", + "required":false, + "nb_cols":5, + "id":"des_anc_ss_accord_36_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_anc_ss_accord_36_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Collecte des eaux pluviales", + "nb_cols":12, + "id":"Element_5_25_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_collecte_ep", + "label":"Destination des eaux pluviales", + "required":false, + "nb_cols":6, + "id":"des_collecte_ep_37_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_collecte_ep_37_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_sep_ep_eu", + "label":"Séparation des eaux pluviales et des eaux usées", + "required":false, + "nb_cols":6, + "id":"des_sep_ep_eu_38_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_sep_ep_eu_38_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Collecte EU", + "nb_cols":12, + "id":"Element_8_28_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_nb_sortie", + "label":"Nombre de sorties eaux usées", + "required":false, + "nb_cols":6, + "id":"des_eu_nb_sortie_39_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_nb_sortie_39_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_eu_tes_regards", + "label":"Nombre de regard de collecte ou té de visite", + "required":false, + "nb_cols":6, + "id":"des_eu_tes_regards_40_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_tes_regards_40_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_pente_ecoul", + "label":"Pente des canalisations suffisante pour permettre un bon écoulement ?", + "required":false, + "nb_cols":7, + "id":"des_eu_pente_ecoul_41_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_pente_ecoul_41_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_eu_regars_acces", + "label":"Regard accessible", + "required":false, + "nb_cols":5, + "id":"des_eu_regars_acces_42_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_regars_acces_42_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_alteration", + "label":"Signes d'altération", + "required":false, + "nb_cols":6, + "id":"des_eu_alteration_43_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_alteration_43_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_eu_ecoulement", + "label":"L'écoulement se fait il correctement?", + "required":false, + "nb_cols":6, + "id":"des_eu_ecoulement_44_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_ecoulement_44_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_depot_regard", + "label":"Dépot de matière en fond de regard?", + "required":false, + "nb_cols":12, + "id":"des_eu_depot_regard_45_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_eu_depot_regard_45_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Commentaires", + "nb_cols":12, + "id":"Element_7_31_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"des_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"des_commentaire_46_1", + "nb_rows":10, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "num_dossier", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_interval_control", + "des_pers_control", + "des_agent_control", + "des_refus_visite", + "des_date_installation", + "des_date_recommande", + "des_numero_recommande", + "dep_date_depot", + "dep_liste_piece", + "dep_dossier_complet", + "dep_date_envoi_incomplet", + "des_nature_projet", + "des_concepteur", + "car_surface_dispo_m2", + "car_permea", + "car_valeur_permea", + "car_hydromorphie", + "car_prof_app", + "car_nappe_fond", + "car_terrain_innondable", + "car_roche_sol", + "car_dist_hab", + "car_dist_lim_par", + "car_dist_veget", + "car_dist_puit", + "des_reamenage_terrain", + "des_reamenage_immeuble", + "des_real_trvx", + "des_anc_ss_accord", + "des_collecte_ep", + "des_sep_ep_eu", + "des_eu_nb_sortie", + "des_eu_tes_regards", + "des_eu_pente_ecoul", + "des_eu_regars_acces", + "des_eu_alteration", + "des_eu_ecoulement", + "des_eu_depot_regard", + "des_commentaire", + "insert_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_7", + "Element_8", + "des_installateur" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle-form", + "title":"ANC_SAISIE_ANC_CONTROLE_TITLE", + "input_size":"xxs", + "initEvent": "initAncControlForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_controle", + "label":"ID", + "nb_cols":6, + "id":"id_controle_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":6, + "id":"id_installation_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dossier", + "nb_cols":12, + "id":"Element_0_2_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"controle_type", + "label":"Type de contrôle", + "required":true, + "nb_cols":6, + "id":"controle_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_type_3_1_from" + }, + { + "type":"select", + "name":"controle_ss_type", + "label":"Sous type de contrôle", + "required":false, + "nb_cols":6, + "id":"controle_ss_type_4_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"controle_ss_type_4_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_control", + "label":"Date du contrôle", + "nb_cols":6, + "id":"des_date_control_5_1", + "required":true + }, + { + "type":"select", + "name":"des_interval_control", + "label":"Intervalle avec le prochain contrôle", + "required":false, + "nb_cols":6, + "id":"des_interval_control_45_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"des_pers_control", + "label":"Personnes présentes lors du contrôle", + "disabled":false, + "required":false, + "nb_cols":8, + "id":"des_pers_control_7_1", + "visible": false + }, + { + "type":"select", + "name":"des_agent_control", + "label":"Nom du contrôleur", + "required":false, + "nb_cols":4, + "id":"des_agent_control_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_prenom", + "order_by":"nom_prenom", + "id_key":"id_parametre_admin", + "attributs":"id_parametre_admin|nom_prenom" + }, + "id_from":"des_agent_control_8_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_installateur", + "label":"Installateur", + "required":false, + "nb_cols":6, + "id":"des_installateur_9_1", + "id_from":"des_installateur_9_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "visible": false + }, + { + "type":"date", + "name":"des_date_installation", + "label":"Date de réalisation de la filière", + "nb_cols":6, + "id":"des_date_installation_11_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"des_date_recommande", + "label":"Date du recommandé", + "nb_cols":4, + "id":"des_date_recommande_12_1" + }, + { + "type":"text", + "name":"des_numero_recommande", + "label":"Numéro du recommandé", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"des_numero_recommande_13_1", + "visible": false + }, + { + "type":"radio", + "name":"des_refus_visite", + "label":"Refus de visite", + "nb_cols":4, + "id":"des_refus_visite_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:81242" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:81243" + } + ] + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Dépôt", + "nb_cols":12, + "id":"Element_1_8_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"dep_date_depot", + "label":"Date du dépôt du dossier", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_date_depot_14_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"dep_liste_piece", + "label":"Liste des pièces", + "required":false, + "nb_cols":12, + "id":"dep_liste_piece_15_1", + "name_to":"dep_liste_piece", + "name_from":"dep_liste_piece_from", + "size":5, + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "id_key":"valeur", + "label_key":"alias", + "attributs":"valeur|alias", + "order_by":"alias" + }, + "label_from":"Pièces disponibles", + "label_to":"Pièces fournies lors du contrôle", + "id_from":"dep_liste_piece_15_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"dep_dossier_complet", + "label":"Le dossier est-il complet ?", + "nb_cols":6, + "id":"dep_dossier_complet_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:81254" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:81255" + } + ] + }, + "visible": false + }, + { + "type":"date", + "name":"dep_date_envoi_incomplet", + "label":"Date de rappel du dossier incomplet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"dep_date_envoi_incomplet_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_nature_projet", + "label":"Nature du projet", + "required":false, + "nb_cols":6, + "id":"des_nature_projet_18_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_nature_projet_18_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_concepteur", + "label":"Concepteur du projet", + "required":true, + "nb_cols":6, + "id":"des_concepteur_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"des_concepteur_19_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Caractéristiques du terrain", + "nb_cols":12, + "id":"Element_2_14_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"car_surface_dispo_m2", + "label":"Surface disponible pour l'installation (en m²)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"car_surface_dispo_m2_21_1", + "visible": false + }, + { + "type":"select", + "name":"car_permea", + "label":"Perméabilité", + "required":false, + "nb_cols":6, + "id":"car_permea_22_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_permea_22_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_valeur_permea", + "label":"Valeur de Perméabilité (k en mm/h)", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"car_valeur_permea_23_1", + "visible": false + }, + { + "type":"select", + "name":"car_hydromorphie", + "label":"Hydromorphie", + "required":false, + "nb_cols":6, + "id":"car_hydromorphie_24_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_hydromorphie_24_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"car_prof_app", + "label":"Profondeur d’apparition en cm", + "disabled":false, + "required":true, + "nb_cols":6, + "id":"car_prof_app_25_1", + "visible": false + }, + { + "type":"select", + "name":"car_nappe_fond", + "label":"Nappe d’eau présente à moins de 1 mètre du fond de fouille", + "required":false, + "nb_cols":6, + "id":"car_nappe_fond_26_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_nappe_fond_26_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_terrain_innondable", + "label":"Terrain innondable ?", + "required":false, + "nb_cols":6, + "id":"car_terrain_innondable_27_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_terrain_innondable_27_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_roche_sol", + "label":"Présence de la roche à moins de 1 mètre de la surface du sol", + "required":false, + "nb_cols":6, + "id":"car_roche_sol_28_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_roche_sol_28_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Implantation", + "nb_cols":12, + "id":"Element_3_19_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_hab", + "label":"Distance de l’habitation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_hab_29_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_hab_29_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_lim_par", + "label":"Distance limite de la parcelle ?", + "required":false, + "nb_cols":6, + "id":"car_dist_lim_par_30_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_lim_par_30_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"car_dist_veget", + "label":"Distance de la végétation ?", + "required":false, + "nb_cols":6, + "id":"car_dist_veget_31_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_veget_31_1_from", + "visible": false + }, + { + "type":"select", + "name":"car_dist_puit", + "label":"Distance du puit ?", + "required":false, + "nb_cols":6, + "id":"car_dist_puit_32_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"car_dist_puit_32_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Modification intervenu", + "nb_cols":12, + "id":"Element_4_22_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_reamenage_terrain", + "label":"Réaménagement du terrain sur et aux abords de l'installation", + "required":false, + "nb_cols":6, + "id":"des_reamenage_terrain_33_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_terrain_33_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_reamenage_immeuble", + "label":"Réaménagement de l'immeuble:augmentation du nombre de PP", + "required":false, + "nb_cols":6, + "id":"des_reamenage_immeuble_34_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_reamenage_immeuble_34_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_real_trvx", + "label":"Réalisation des travaux notifiés dans le précédent rapport de visite.", + "required":false, + "nb_cols":7, + "id":"des_real_trvx_35_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_real_trvx_35_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_anc_ss_accord", + "label":"Réalisation d'un anc sans accord du SPANC", + "required":false, + "nb_cols":5, + "id":"des_anc_ss_accord_36_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_anc_ss_accord_36_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Collecte des eaux pluviales", + "nb_cols":12, + "id":"Element_5_25_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_collecte_ep", + "label":"Destination des eaux pluviales", + "required":false, + "nb_cols":6, + "id":"des_collecte_ep_37_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_collecte_ep_37_1_from", + "visible": false + }, + { + "type":"select", + "name":"des_sep_ep_eu", + "label":"Séparation des eaux pluviales et des eaux usées", + "required":false, + "nb_cols":6, + "id":"des_sep_ep_eu_38_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"des_sep_ep_eu_38_1_from", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Collecte EU", + "nb_cols":12, + "id":"Element_8_27_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_nb_sortie", + "label":"Nombre de sorties eaux usées", + "required":false, + "nb_cols":6, + "id":"des_eu_nb_sortie_39_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + }, + { + "type":"select", + "name":"des_eu_tes_regards", + "label":"Nombre de regard de collecte ou té de visite", + "required":false, + "nb_cols":6, + "id":"des_eu_tes_regards_40_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_pente_ecoul", + "label":"Pente des canalisations suffisante pour permettre un bon écoulement ?", + "required":false, + "nb_cols":7, + "id":"des_eu_pente_ecoul_41_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + }, + { + "type":"select", + "name":"des_eu_regars_acces", + "label":"Regard accessible", + "required":false, + "nb_cols":5, + "id":"des_eu_regars_acces_42_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_alteration", + "label":"Signes d'altération", + "required":false, + "nb_cols":6, + "id":"des_eu_alteration_43_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + }, + { + "type":"select", + "name":"des_eu_ecoulement", + "label":"L'écoulement se fait il correctement?", + "required":false, + "nb_cols":6, + "id":"des_eu_ecoulement_44_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"des_eu_depot_regard", + "label":"Dépot de matière en fond de regard?", + "required":false, + "nb_cols":12, + "id":"des_eu_depot_regard_45_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Commentaires", + "nb_cols":12, + "id":"Element_7_32_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"des_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"des_commentaire_46_1", + "nb_rows":10, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "id_installation", + "controle_type", + "controle_ss_type", + "des_date_control", + "des_interval_control", + "des_pers_control", + "des_agent_control", + "des_refus_visite", + "des_date_installation", + "des_date_recommande", + "des_numero_recommande", + "dep_date_depot", + "dep_liste_piece", + "dep_dossier_complet", + "dep_date_envoi_incomplet", + "des_nature_projet", + "des_concepteur", + "car_surface_dispo_m2", + "car_permea", + "car_valeur_permea", + "car_hydromorphie", + "car_prof_app", + "car_nappe_fond", + "car_terrain_innondable", + "car_roche_sol", + "car_dist_hab", + "car_dist_lim_par", + "car_dist_veget", + "car_dist_puit", + "des_reamenage_terrain", + "des_reamenage_immeuble", + "des_real_trvx", + "des_anc_ss_accord", + "des_collecte_ep", + "des_sep_ep_eu", + "des_eu_nb_sortie", + "des_eu_tes_regards", + "des_eu_pente_ecoul", + "des_eu_regars_acces", + "des_eu_alteration", + "des_eu_ecoulement", + "des_eu_depot_regard", + "des_commentaire", + "update_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_7", + "Element_8", + "des_installateur" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"contrôle_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "controle_type"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle_ss_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "controle_ss_type"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_interval_control", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "des_interval_control"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cl_avis", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "cl_avis"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cl_classe_cbf", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "cl_classe_cbf"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_agent_control", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_param_admin", + "filter": {"type": "Contrôleur"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"param_entreprise_install", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter": {"installateur": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"dep_liste_piece", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "dep_liste_piece"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"param_entreprise_concepteur", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter":{"bureau_etude": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_permea", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_permea"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_prof_app", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_prof_app"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_nappe_fond", + "description":"", + "parameters":{ + "database":"", + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_nappe_fond"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_terrain_innondable", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_terrain_innondable"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_roche_sol", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_roche_sol"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_hab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_hab"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_lim_par", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_lim_par"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_veget"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"car_dist_puit", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_dist_puit"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_reamenage_terrain", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_reamenage_terrain"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_real_trvx", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_real_trvx"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_anc_ss_accord", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_anc_ss_accord"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_collecte_ep", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_collecte_ep"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_sep_ep_eu", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_sep_ep_eu"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_nb_sortie", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_nb_sortie"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_tes_regards", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_tes_regards"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_pente_ecoul", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_pente_ecoul"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_regars_acces", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_regars_acces"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_alteration", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_alteration"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_ecoulement", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_ecoulement"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_eu_depot_regard", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_eu_depot_regard"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_nature_projet", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_nature_projet"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_nature_projet", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "car_hydromorphie"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"des_reamenage_immeuble", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "des_reamenage_immeuble"} + }, + "ressource_id":"vitis/genericquerys" + } + } +} diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json new file mode 100755 index 00000000..38526a8d --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_conclusion.json @@ -0,0 +1,522 @@ +{ + "display": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "cl_avis", + "label": "Avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_avis_1_1" + }, + { + "type": "label", + "name": "cl_classe_cbf", + "label": "Classement à l'issue du contrôle périodique", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_classe_cbf_2_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_classe_cbf_warning", + "label": "EN CAS DE VENTE", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_classe_cbf_warning_2_1_2", + "default_value": "En cas de vente de l'immeuble, l'acquéreur doit procéder aux travaux de mise en conformitéde l'installation dans un délai de 1 an à compter de la date de signature de l'acte authentique de vente." + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_constat", + "label": "Constat", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_constat_2_2" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_travaux", + "label": "Travaux", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_travaux_2_3" + } + ] + }, + { + "fields": [ + { + "type": "tinymce", + "name": "cl_commentaires", + "label": "Commantaires / Modifications à réaliser", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_commentaires_3_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_date_avis", + "label": "Date de l'avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_date_avis_4_1" + }, + { + "type": "label", + "name": "cl_auteur_avis", + "label": "Auteur de l'avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_auteur_avis_5_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_montant", + "label": "Montant du contrôle", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_montant_7_1" + }, + { + "type": "label", + "options": { + "choices": [ + { + "label": "oui", + "value": true + }, + { + "label": "non", + "value": false + } + ] + }, + "name": "cl_facture", + "label": "A Facturer", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_facture_8_1" + }, + { + "type": "label", + "name": "cl_facture_le", + "label": "Date de facturation", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_facture_le_9_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlConclusionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "cl_avis", + "cl_classe_cbf", + "cl_commentaires", + "cl_date_avis", + "cl_auteur_avis", + "cl_montant", + "cl_facture", + "cl_facture_le", + "display_button", + "cl_constat", + "cl_travaux", + "cl_classe_cbf_warning" + ] + } + ] + } + }, + "search": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ] + }, + "insert": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + + ] + } + ] + } + }, + "update": { + "name": "anc_saisie_anc_controle_controle_conclusion-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "select", + "name": "cl_avis", + "label": "Avis", + "required": false, + "nb_cols": 6, + "id": "cl_avis_1_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "alias", + "order_by": "alias", + "id_key": "valeur", + "attributs": "valeur|alias" + }, + "id_from": "cl_avis_1_1_from" + }, + { + "type": "double_select", + "name": "cl_classe_cbf", + "name_to": "cl_classe_cbf", + "name_from": "cl_classe_cbf_from", + "label": "Classement à l'issue du contrôle périodique", + "required": false, + "nb_cols": 9, + "size": 9, + "id": "cl_classe_cbf_2_1", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "alias", + "order_by": "alias", + "id_key": "valeur", + "attributs": "valeur|alias" + }, + "id_from": "cl_classe_cbf_2_1_from" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "cl_classe_cbf_warning", + "label": "EN CAS DE VENTE", + "disabled": false, + "required": false, + "nb_cols": 12, + "default_value": "En cas de vente de l'immeuble, l'acquéreur doit procéder aux travaux de mise en conformitéde l'installation dans un délai de 1 an à compter de la date de signature de l'acte authentique de vente.", + "id": "cl_classe_cbf_warning_2_1_2" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "cl_constat", + "label": "Constat", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_constat_2_2", + "maxLength": 255 + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "cl_travaux", + "label": "Travaux", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "cl_travaux_2_3", + "maxLength": 255 + } + ] + }, + { + "fields": [ + { + "type": "tinymce", + "name": "cl_commentaires", + "label": "Commentaires", + "nb_cols": 12, + "id": "cl_commentaires_3_1", + "nb_rows": 10 + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "cl_date_avis", + "label": "Date de l'avis", + "nb_cols": 6, + "id": "cl_date_avis_4_1" + }, + { + "type": "select", + "name": "cl_auteur_avis", + "label": "Auteur de l'avis", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "cl_auteur_avis_5_1", + "datasource": { + "datasource_id": "datasource_4", + "sort_order": "ASC", + "distinct": "true", + "label_key": "nom_prenom", + "order_by": "nom_prenom", + "id_key": "id_parametre_admin", + "attributs": "id_parametre_admin|nom_prenom" + }, + "id_from": "cl_auteur_avis_5_1_from" + } + ] + }, + { + "fields": [ + { + "type": "editable_select", + "name": "cl_montant", + "label": "Montant du contrôle", + "required": false, + "nb_cols": 6, + "id": "cl_montant_2_1", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "libelle_montant", + "order_by": "montant", + "id_key": "libelle_montant", + "attributs": "montant|libelle_montant" + }, + "id_from": "cl_montant_2_1_from" + }, + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:78765" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:78766" + } + ] + }, + "name": "cl_facture", + "label": "A Facturer", + "disabled": false, + "required": false, + "nb_cols": 4, + "id": "cl_facture_8_1" + }, + { + "type": "date", + "name": "cl_facture_le", + "label": "Date de facturation", + "nb_cols": 4, + "id": "cl_facture_le_9_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlConclusionForm()", + "event": "sendSimpleForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "cl_avis", + "cl_classe_cbf", + "cl_commentaires", + "cl_date_avis", + "cl_auteur_avis", + "cl_montant", + "cl_facture", + "cl_facture_le", + "update_button", + "cl_constat", + "cl_travaux", + "cl_classe_cbf_warning" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_avis", + "description": "", + "parameters": { + "filter": { + "id_nom_table": "controle", + "nom_liste": "cl_avis" + }, + "schema": "s_anc", + "table": "param_liste" + }, + "ressource_id": "vitis/genericquerys" + }, + "datasource_2": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_classe_cbf", + "description": "", + "parameters": { + "filter": { + "id_nom_table": "controle", + "nom_liste": "cl_classe_cbf" + }, + "schema": "s_anc", + "table": "param_liste" + }, + "ressource_id": "vitis/genericquerys" + }, + "datasource_3": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_montant", + "description": "", + "parameters": { + "filter": { + "annee_validite": "", + "controle_type": "" + } + }, + "ressource_id": "anc/param_tarifs" + }, + "datasource_4": { + "type": "web_service", + "dataType": "tableValue", + "name": "cl_auteur_avis", + "description": "", + "parameters": { + "filter": { + "type": "Contrôleur" + } + }, + "ressource_id": "anc/param_admins" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json new file mode 100755 index 00000000..51652029 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_dispositif.json @@ -0,0 +1,1100 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Chasse à auget", + "nb_cols":12, + "id":"Element_0_1_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_acces", + "label":"Accessible", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_acces_1_1" + }, + { + "type":"label", + "name":"da_chasse_auto", + "label":"Volume de la bâche (en Litres)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_auto_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_pr_nat_eau", + "label":"Localisation de la chasse à auget", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"da_chasse_pr_nat_eau_3_1" + }, + { + "type":"label", + "name":"da_chasse_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"da_chasse_ok_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_dysfonctionnement_5_1" + }, + { + "type":"label", + "name":"da_chasse_degradation", + "label":"Degradation constatées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_degradation_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_chasse_entretien", + "label":"Entretien effectué", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"da_chasse_entretien_7_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Pompe de relevage", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_loc_pompe", + "label":"Localisation de la pompe", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_loc_pompe_8_1" + }, + { + "type":"label", + "name":"da_pr_acces", + "label":"Accessible", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_acces_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_nb_pompe", + "label":"Nombre de pompe de relevage", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_nb_pompe_10_1" + }, + { + "type":"label", + "name":"da_pr_nat_eau", + "label":"Nature des eaux usées raccordées à la pompe", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_nat_eau_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_ventilatio", + "label":"Présence d'une ventilation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_ventilatio_12_1" + }, + { + "type":"label", + "name":"da_pr_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "disabled":false, + "required":false, + "nb_cols":7, + "id":"da_pr_ok_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_alarme", + "label":"Est-il prévu une alarme ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_alarme_14_1" + }, + { + "type":"label", + "name":"da_pr_clapet", + "label":"Présence d’un clapet anti retour ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_clapet_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_etanche", + "label":"Etanchéité du poste", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_etanche_16_1" + }, + { + "type":"label", + "name":"da_pr_branchement", + "label":"Branchement électrique?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_branchement_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_dysfonctionnement_18_1" + }, + { + "type":"label", + "name":"da_pr_degradation", + "label":"Degradation constatées", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_pr_degradation_19_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"da_pr_entretien", + "label":"Entretien effectué", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"da_pr_entretien_20_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"da_commentaires", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"da_commentaires_21_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDispositifsAnnexesForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "da_chasse_acces", + "da_chasse_auto", + "da_chasse_pr_nat_eau", + "da_chasse_ok", + "da_chasse_dysfonctionnement", + "da_chasse_degradation", + "da_chasse_entretien", + "da_pr_loc_pompe", + "da_pr_acces", + "da_pr_nb_pompe", + "da_pr_nat_eau", + "da_pr_ok", + "da_pr_clapet", + "da_pr_etanche", + "da_pr_branchement", + "da_pr_dysfonctionnement", + "da_pr_degradation", + "da_pr_entretien", + "da_commentaires", + "display_button", + "Element_0", + "Element_1", + "da_pr_ventilatio", + "da_pr_alarme" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_dispositif-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Chasse à auget", + "nb_cols":12, + "id":"Element_1_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_acces", + "label":"Accessible", + "required":false, + "nb_cols":6, + "id":"da_chasse_acces_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_acces_1_1_from" + }, + { + "type":"number", + "name":"da_chasse_auto", + "label":"Volume de la bâche (en Litres)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"da_chasse_auto_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_pr_nat_eau", + "label":"Localisation de la chasse à auget", + "required":false, + "nb_cols":5, + "id":"da_chasse_pr_nat_eau_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_pr_nat_eau_3_1_from" + }, + { + "type":"select", + "name":"da_chasse_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "required":false, + "nb_cols":7, + "id":"da_chasse_ok_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_ok_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "required":false, + "nb_cols":6, + "id":"da_chasse_dysfonctionnement_5_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_dysfonctionnement_5_1_from" + }, + { + "type":"select", + "name":"da_chasse_degradation", + "label":"Degradation constatées", + "required":false, + "nb_cols":6, + "id":"da_chasse_degradation_6_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_degradation_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_chasse_entretien", + "label":"Entretien effectué", + "required":false, + "nb_cols":6, + "id":"da_chasse_entretien_7_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_chasse_entretien_7_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Pompe de relevage", + "nb_cols":12, + "id":"Element_2_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_loc_pompe", + "label":"Localisation de la pompe", + "required":false, + "nb_cols":6, + "id":"da_pr_loc_pompe_8_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_loc_pompe_8_1_from" + }, + { + "type":"select", + "name":"da_pr_acces", + "label":"Accessible", + "required":false, + "nb_cols":6, + "id":"da_pr_acces_9_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_acces_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_nb_pompe", + "label":"Nombre de pompe de relevage", + "required":false, + "nb_cols":6, + "id":"da_pr_nb_pompe_10_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_nb_pompe_10_1_from" + }, + { + "type":"select", + "name":"da_pr_nat_eau", + "label":"Nature des eaux usées raccordées à la pompe", + "required":false, + "nb_cols":6, + "id":"da_pr_nat_eau_11_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_nat_eau_11_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_ventilatio", + "label":"Présence d'une ventilation ?", + "required":false, + "nb_cols":6, + "id":"da_pr_ventilatio_12_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_ventilatio_12_1_from" + }, + { + "type":"select", + "name":"da_pr_ok", + "label":"La chasse à auget est-elle installée correctement (essai en eau) ?", + "required":false, + "nb_cols":6, + "id":"da_pr_ok_13_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_ok_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_alarme", + "label":"Est-il prévu une alarme ?", + "required":false, + "nb_cols":6, + "id":"da_pr_alarme_14_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_alarme_14_1_from" + }, + { + "type":"select", + "name":"da_pr_clapet", + "label":"Présence d’un clapet anti retour ?", + "required":false, + "nb_cols":6, + "id":"da_pr_clapet_15_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_clapet_15_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_etanche", + "label":"Etanchéité du poste", + "required":false, + "nb_cols":6, + "id":"da_pr_etanche_16_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_etanche_16_1_from" + }, + { + "type":"select", + "name":"da_pr_branchement", + "label":"Branchement électrique?", + "required":false, + "nb_cols":6, + "id":"da_pr_branchement_17_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_branchement_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_dysfonctionnement", + "label":"Dysfonctionnement constaté", + "required":false, + "nb_cols":6, + "id":"da_pr_dysfonctionnement_18_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_dysfonctionnement_18_1_from" + }, + { + "type":"select", + "name":"da_pr_degradation", + "label":"Degradation constatées", + "required":false, + "nb_cols":6, + "id":"da_pr_degradation_19_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_degradation_19_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"da_pr_entretien", + "label":"Entretien effectué", + "required":false, + "nb_cols":6, + "id":"da_pr_entretien_20_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"da_pr_entretien_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"da_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"da_commentaires_21_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDispositifsAnnexesForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "da_chasse_acces", + "da_chasse_auto", + "da_chasse_pr_nat_eau", + "da_chasse_ok", + "da_chasse_dysfonctionnement", + "da_chasse_degradation", + "da_chasse_entretien", + "da_pr_loc_pompe", + "da_pr_acces", + "da_pr_nb_pompe", + "da_pr_nat_eau", + "da_pr_ok", + "da_pr_clapet", + "da_pr_etanche", + "da_pr_branchement", + "da_pr_dysfonctionnement", + "da_pr_degradation", + "da_pr_entretien", + "da_commentaires", + "update_button", + "Element_1", + "Element_2", + "da_pr_ventilatio", + "da_pr_alarme" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_acces", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_acces"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_auto", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_auto"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_pr_nat_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_pr_nat_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_ok", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_ok"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_dysfonctionnement", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_dysfonctionnement"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_degradation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_degradation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_chasse_entretien", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_chasse_entretien"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_loc_pompe", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_loc_pompe"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_nb_pompe", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_nb_pompe"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_nat_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_nat_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_ventilatio", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_ventilatio"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_ok", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_ok"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_alarme", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_alarme"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_clapet", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_clapet"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_etanche", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_etanche"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_branchement", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_branchement"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_dysfonctionnement", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_dysfonctionnement"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_degradation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_degradation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"da_pr_entretien", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "da_pr_entretien"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json new file mode 100755 index 00000000..b1aee28f --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_documents.json @@ -0,0 +1,298 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"photos_f_1_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche entretien", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fiche_f_2_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"rapport_f", + "label":"Rapport validé", + "nb_cols":12, + "id":"rapport_f_3_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"schema_f_4_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"documents_f_5_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_6_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "photos_f", + "fiche_f", + "rapport_f", + "schema_f", + "documents_f", + "plan_f", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_documents-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"photos_f_1_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche entretien", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fiche_f_2_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"rapport_f", + "label":"Rapport validé", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"rapport_f_3_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"schema_f_4_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"documents_f_5_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_6_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "photos_f", + "fiche_f", + "rapport_f", + "schema_f", + "documents_f", + "plan_f", + "update_button" + ] + } + ] + } + }, + "datasources":{ + + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json new file mode 100755 index 00000000..fcfab0b9 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_evacuation.json @@ -0,0 +1,2363 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_DISPLAY", + "input_size":"xxs", + "initEvent": "initAncControlEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":3, + "id":"id_eva_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "nb_cols":3, + "id":"num_dossier_43_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Identifiant du contrôle", + "nb_cols":3, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_type", + "label":"Type d'évacuation", + "nb_cols":3, + "id":"evac_type_3_1" + }, + { + "type":"label", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"label", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_lin_total", + "label":"Total", + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"label", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"label", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1" + }, + { + "type":"label", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1" + }, + { + "type":"label", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1" + }, + { + "type":"label", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1" + }, + { + "type":"label", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis??", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1" + }, + { + "type":"label", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1" + }, + { + "type":"label", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente?", + "nb_cols":4, + "id":"evac_is_inf_perm_17_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"label", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1" + }, + { + "type":"label", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1" + }, + { + "type":"label", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1" + }, + { + "type":"label", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_rp_type_eff_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "nb_cols":4, + "id":"evac_hs_type_25_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1" + }, + { + "type":"label", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_hs_type_eff_29_1" + }, + { + "type":"label", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_anc_eva", + "id_anc_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "num_dossier", + "display_button", + "Element_2", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncControlEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":true, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"integer", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"integer", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"integer", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"integer", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39330" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39331" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39341" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39342" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39360" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39361" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39376" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39377" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39384" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39385" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39393" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39411" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39412" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39423" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39424" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39453" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39454" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39476" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39477" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_UPDATE", + "input_size":"xxs", + "initEvent": "initAncControlEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":12, + "id":"id_eva_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"Element_3_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_3_2_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":true, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"integer", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"integer", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"integer", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"integer", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35271" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35272" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35282" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35283" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35293" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35294" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35305" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35306" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35316" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35317" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35328" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35329" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35340" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35341" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35379" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35380" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35419" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35420" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35438" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35439" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1", + "size":5 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + }, + { + "fields":[ + + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_eva", + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "num_dossier", + "update_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_type", + "description":"", + "parameters":{ + "database":"", + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_gestionnaire", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_gestionnaire"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_tamp", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_tamp"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_inf_perm", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_inf_perm"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json new file mode 100755 index 00000000..47254f6b --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_filieres.json @@ -0,0 +1,5291 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_fag_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_89_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_type_3_1" + }, + { + "type":"label", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1" + }, + { + "type":"label", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_denom", + "label":"Dénomination de la filière", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1" + }, + { + "type":"label", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"label", + "name":"fag_cap_eh", + "label":"Capacité EH", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"label", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"label", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"label", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_guide_15_1" + }, + { + "type":"label", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_livret_16_1" + }, + { + "type":"label", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_contr_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1" + }, + { + "type":"label", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_plan_20_1" + }, + { + "type":"label", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1" + }, + { + "type":"label", + "name":"fag_rep", + "label":"Dalle de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1" + }, + { + "type":"label", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1" + }, + { + "type":"label", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1" + }, + { + "type":"label", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1" + }, + { + "type":"label", + "name":"fag_pres_alar", + "label":"Présence d'un regard de collecte permettant les prelevements", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1" + }, + { + "type":"label", + "name":"fag_pres_reg", + "label":"Présence d'une alarme visuelle?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1" + }, + { + "type":"label", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1" + }, + { + "type":"label", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1" + }, + { + "type":"label", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"label", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reac_bull_37_1" + }, + { + "type":"label", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_dec_39_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_broy_38_1" + }, + { + "type":"label", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_type_eau_40_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"label", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1" + }, + { + "type":"label", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1" + }, + { + "type":"label", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1" + }, + { + "type":"label", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1" + }, + { + "type":"label", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"label", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1" + }, + { + "type":"label", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1" + }, + { + "type":"label", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"label", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"label", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1" + }, + { + "type":"label", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Contrôle de l'état", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1" + }, + { + "type":"label", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1" + }, + { + "type":"label", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1" + }, + { + "type":"label", + "name":"fag_acces", + "label":"Accessibilité", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1" + }, + { + "type":"label", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1" + }, + { + "type":"label", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"label", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1" + }, + { + "type":"label", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"label", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1" + }, + { + "type":"label", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1" + }, + { + "type":"label", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_32_4", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1" + }, + { + "type":"label", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1" + }, + { + "type":"label", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "initEvent": "initAncControlFilieresAgreeesForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_fag", + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "maj", + "maj_date", + "create", + "create_date", + "num_dossier", + "display_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "Element_9", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":6, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"number", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"number", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_deg_64_1_from" + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_od_65_1_from" + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_dy_66_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_jus_68_1_from" + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"number", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_contr_73_1_from" + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "initEvent": "initAncControlFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "id_installation", + "insert_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_filieres_agree-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "nb_cols":4, + "id":"Element_11_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"number", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"number", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"number", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_87_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + } + ], + "initEvent": "initAncControlFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_controle", + "fag_type", + "fag_agree", + "fag_integerer", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_elec", + "fag_surpr_dist", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "Element_1", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "Element_2", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "Element_3", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "Element_4", + "Element_5", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "Element_6", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "Element_7", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "Element_8", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "Element_9", + "create", + "create_date", + "maj", + "maj_date", + "update_button", + "id_fag", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_agree", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_agree"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_integerer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_integerer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_fil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_fil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_guide", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_guide"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_livret", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_livret"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_plan", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_plan"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_tamp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_tamp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ancrage", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ancrage"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_rep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_rep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_respect", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_respect"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ventil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ventil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_filt", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_filt"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mise_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mise_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_reg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_reg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_alar", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_alar"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_att_conf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_att_conf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_elec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_elec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_dist", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_dist"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_aer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_aer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reac_bull", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reac_bull"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_broy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_broy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_van", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_van"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_nb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_nb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_sep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_sep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_pla", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_pla"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_39" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + }, + "datasource_42":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_42" + }, + "datasource_43":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_43" + }, + "datasource_44":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_44" + }, + "datasource_45":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_45" + }, + "datasource_46":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_epa", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_epa"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_46" + }, + "datasource_47":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_veg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_veg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_47" + }, + "datasource_48":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_pro", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_pro"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_48" + }, + "datasource_49":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_49" + }, + "datasource_50":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_deg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_deg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_50" + }, + "datasource_51":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_od", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_od"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_51" + }, + "datasource_52":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_dy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_dy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_52" + }, + "datasource_53":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_jus", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_jus"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_53" + }, + "datasource_54":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_54" + }, + "datasource_55":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_typ", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_typ"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_55" + }, + "datasource_56":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_dest", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_56" + }, + "datasource_57":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_arb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_arb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_57" + }, + "datasource_58":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_parc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_parc"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_58" + }, + "datasource_59":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_hab", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_hab"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_59" + }, + "datasource_60":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_cap", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_cap"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_60" + }, + "datasource_61":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_cuv", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_cuv"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_61" + }, + "datasource_62":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter": {"constructeur": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_63":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_denom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_denom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_63" + } + } +} diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json new file mode 100755 index 00000000..03ba819a --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_pretraitement.json @@ -0,0 +1,2182 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"id_pretraitement_1_1" + }, + { + "type":"label", + "name":"id_installation", + "label":"Installation", + "disabled":false, + "nb_cols":3, + "id":"id_installation_2_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"id_controle_2_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° dossier", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"num_dossier_43_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_type", + "label":"Type de prétraitement", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_type_3_1" + }, + { + "type":"label", + "name":"ptr_volume", + "label":"Volume (en litres)", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1" + }, + { + "type":"label", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1" + }, + { + "type":"label", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1" + }, + { + "type":"label", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1" + }, + { + "type":"label", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1" + }, + { + "type":"label", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1" + }, + { + "type":"label", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1" + }, + { + "type":"label", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1" + }, + { + "type":"label", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1" + }, + { + "type":"label", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1" + }, + { + "type":"label", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"label", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1" + }, + { + "type":"label", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"label", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1" + }, + { + "type":"label", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_commentaire_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "initEvent": "initAncControlPretraitementForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "display_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "id_installation", + "ptr_type_eau", + "ptr_adapte", + "ptr_im_puit", + "ptr_pose", + "ptr_conforme_projet", + "ptr_renforce", + "ptr_verif_mise_en_eau", + "ptr_im_dalle", + "ptr_im_fixation" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":6, + "id":"num_dossier_43_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"num_dossier_43_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "initEvent": "initAncControlPretraitementForm()", + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "ptr_type_eau", + "ptr_adapte", + "ptr_im_puit", + "ptr_pose", + "ptr_conforme_projet", + "ptr_renforce", + "ptr_verif_mise_en_eau", + "ptr_im_dalle", + "ptr_im_fixation" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_pretraitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "nb_cols":4, + "id":"id_pretraitement_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from", + "disabled": true + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Description", + "nb_cols":12, + "id":"Element_4_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Implantation", + "nb_cols":12, + "id":"Element_5_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Entretien", + "nb_cols":12, + "id":"Element_6_13_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Vidange", + "nb_cols":12, + "id":"Element_0_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Suivi", + "nb_cols":12, + "id":"Element_1_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + } + ], + "initEvent": "initAncControlPretraitementForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "update_button", + "Element_4", + "Element_5", + "Element_6", + "Element_0", + "Element_1", + "Element_2", + "ptr_type_eau", + "ptr_adapte", + "ptr_im_puit", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_renforce", + "ptr_verif_mise_en_eau", + "ptr_im_dalle", + "ptr_im_fixation" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_volume", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_volume"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_pose", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_pose"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_adapte", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_adapte"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_conforme_projet", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_conforme_projet"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_dalle_repartition", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_dalle_repartition"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_renforce", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_renforce"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_verif_mise_en_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_verif_mise_en_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_reglementaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_reglementaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_distance", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_distance"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_hydrom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_hydrom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_dalle", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_dalle"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_renfor", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_renfor"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_puit", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_puit"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_fixation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_fixation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_degrad", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_degrad"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_real", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_real"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_justi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_entr", + "description":"", + "parameters":{ + "filter":{"vidangeur": true}, + "schema":"s_anc", + "table":"param_entreprise" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_marque", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_marque"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json new file mode 100755 index 00000000..6b4ecd01 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_schema.json @@ -0,0 +1,303 @@ +{ + "display": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ] + }, + "search": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ] + }, + "insert": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + + ], + "event": "sendSimpleForm()" + }, + "update": { + "name": "anc_saisie_anc_controle_controle_schema-form", + "title": "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "map_workbench", + "name": "composants", + "label": "", + "required": false, + "nb_cols": 12, + "id": "Element_0_1_1", + "style": { + "height": "350px" + }, + "grid_height": "150px", + "map_options": { + "proj": "EPSG:3857", + "base_proj": "EPSG:4326", + "output_format": "geojson", + "type": "OSM", + "center": { + "extent": [ + -1309672.0426382099, + 5253975.576209875, + 1517886.5076870301, + 6476968.028772695 + ], + "coord": [ + 104107.23252441005, + 5865471.802491285 + ], + "scale": 12720279 + }, + "controls": { + "MP": true, + "ZO": true, + "SL": true, + "CP": true + }, + "layers": [], + "interactions": { + "multi_geometry": true, + "full_screen": false, + "layer_tree": false, + "remove_all": false, + "remove": true, + "modify": true, + "point": true, + "line": true, + "polygon": true, + "select": true + }, + "coord_accuracy": 8 + }, + "attributes_def": [{ + "label": "Type", + "name": "composant_type" + }, + { + "label": "Nom", + "name": "label" + }, + { + "label": "Observations", + "name": "observations" + }], + "custom_form": { + "form": { + "display": { + "name": "custom-form", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "search": { + "name": "custom-form", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "custom-form", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "custom-subform", + "title": "1", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "select", + "name": "composant_type", + "label": "Type", + "required": false, + "nb_cols": 12, + "id": "Element_0_1_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "composant_type", + "order_by": "composant_type", + "id_key": "composant_type", + "attributs": "composant_type|composant_type" + }, + "id_from": "Element_0_1_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "label": "Nom", + "name": "label", + "required": false, + "nb_cols": 12 + } + ] + }, + { + "fields": [ + { + "type": "number", + "label": "Taille", + "name": "size", + "required": false, + "default_value": 50, + "nb_cols": 12 + } + ] + }, + { + "fields": [ + { + "type": "text", + "label": "Angle", + "name": "rotation", + "required": false, + "default_value": 0, + "nb_cols": 12 + } + ] + }, + { + "fields": [ + { + "type": "text", + "label": "Observations", + "name": "observations", + "required": false, + "nb_cols": 12 + } + ] + } + ] + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "webService", + "name": "datasource_1", + "description": "", + "ressource_id": "anc/ComposantTypeFeatureStyles", + "webservice": { + "name": "anc" + }, + "ressource": { + "name": "ComposantTypeFeatureStyles" + } + } + } + }, + "featureStructure": {} + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()" + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json new file mode 100755 index 00000000..6a641dcf --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_suivi.json @@ -0,0 +1,272 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_1_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "options":{ + "choices":[ + { + "label":"oui", + "value":true + }, + { + "label":"non", + "value":false + } + ] + }, + "name":"cloturer", + "label":"Dossier cloturer impossible de le modifier sans passer par le responsable", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"cloturer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent" : "initAncControleSuiviForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "maj", + "maj_date", + "create", + "create_date", + "cloturer", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[], + "initEvent" : "initAncControleSuiviForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0","elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_suivi-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE", + "input_size":"xxs","nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_1_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "options":{ + "choices":[ + { + "label":"oui", + "value":true + }, + { + "label":"non", + "value":false + } + ] + }, + "name":"cloturer", + "label":"Dossier cloturer impossible de le modifier sans passer par le responsable", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"cloturer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent" : "initAncControleSuiviForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "maj", + "maj_date", + "create", + "create_date", + "cloturer", + "update_button" + ] + } + ] + } + } + ,"datasources":{ + + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json new file mode 100755 index 00000000..1fde3263 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_toilettes_seches.json @@ -0,0 +1,720 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"ts_conforme", + "label":"Dispositif conforme au projet", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_conforme_1_1" + }, + { + "type":"label", + "name":"ts_type_effluent", + "label":"Type d'effluents", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_type_effluent_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_cuve_etanche", + "label":"La cuve est elle étanche", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_cuve_etanche_9_1" + }, + { + "type":"label", + "name":"ts_capacite_bac", + "label":"Capacité des bacs extérieurs (en m3)", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_capacite_bac_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_nb_bac", + "label":"Nombre de bacs", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_nb_bac_4_1" + }, + { + "type":"label", + "name":"ts_coher_taille_util", + "label":"Cohérence taille des composteurs, nombre utilisateurs, types de toilettes", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_coher_taille_util_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_aire_etanche", + "label":"Aire de compostage étanche", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_aire_etanche_6_1" + }, + { + "type":"label", + "name":"ts_aire_abri", + "label":"Aire de compostage à l'abri des intempéries", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_aire_abri_7_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_ventilation", + "label":"Présence d'une ventilation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_ventilation_8_1" + }, + { + "type":"label", + "name":"ts_val_comp", + "label":"Valorisation du composte sur la parcelle", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_val_comp_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_ruissel_ep", + "label":"Phénomène de ruisselement des EP", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_ruissel_ep_11_1" + }, + { + "type":"label", + "name":"ts_absence_nuisance", + "label":"Absence de nuisance pour le voisinage et pollution visible", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ts_absence_nuisance_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ts_respect_regles", + "label":"Respect des règles d'épandage", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ts_respect_regles_13_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ts_commentaires", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ts_commentaires_14_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDryToiletsForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "ts_conforme", + "ts_type_effluent", + "ts_capacite_bac", + "ts_nb_bac", + "ts_coher_taille_util", + "ts_aire_etanche", + "ts_aire_abri", + "ts_ventilation", + "ts_cuve_etanche", + "ts_val_comp", + "ts_ruissel_ep", + "ts_absence_nuisance", + "ts_respect_regles", + "ts_commentaires", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_toilettes_seches-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"ts_conforme", + "label":"Dispositif conforme au projet", + "required":false, + "nb_cols":6, + "id":"ts_conforme_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_type_effluent", + "label":"Type d'effluents", + "required":false, + "nb_cols":6, + "id":"ts_type_effluent_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_cuve_etanche", + "label":"La cuve est elle étanche", + "required":false, + "nb_cols":6, + "id":"ts_cuve_etanche_9_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"ts_capacite_bac", + "label":"Capacité des bacs extérieurs (en m3)", + "required":false, + "nb_cols":6, + "id":"ts_capacite_bac_3_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_nb_bac", + "label":"Nombre de bacs", + "required":false, + "nb_cols":6, + "id":"ts_nb_bac_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_coher_taille_util", + "label":"Cohérence taille des composteurs, nombre utilisateurs, types de toilettes", + "required":false, + "nb_cols":6, + "id":"ts_coher_taille_util_5_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_aire_etanche", + "label":"Aire de compostage étanche", + "required":false, + "nb_cols":6, + "id":"ts_aire_etanche_6_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_aire_abri", + "label":"Aire de compostage à l'abri des intempéries", + "required":false, + "nb_cols":6, + "id":"ts_aire_abri_7_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_ventilation", + "label":"Présence d'une ventilation", + "required":false, + "nb_cols":6, + "id":"ts_ventilation_8_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_val_comp", + "label":"Valorisation du composte sur la parcelle", + "required":false, + "nb_cols":6, + "id":"ts_val_comp_10_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_ruissel_ep", + "label":"Phénomène de ruisselemtn des EP", + "required":false, + "nb_cols":6, + "id":"ts_ruissel_ep_11_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"ts_absence_nuisance", + "label":"Absence de nuisance pour le voisinage et pollution visible", + "required":false, + "nb_cols":6, + "id":"ts_absence_nuisance_12_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ts_respect_regles", + "label":"Respect des règles d'épandage", + "required":false, + "nb_cols":12, + "id":"ts_respect_regles_13_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ts_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"ts_commentaires_14_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlDryToiletsForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "ts_conforme", + "ts_type_effluent", + "ts_capacite_bac", + "ts_nb_bac", + "ts_coher_taille_util", + "ts_aire_etanche", + "ts_aire_abri", + "ts_ventilation", + "ts_cuve_etanche", + "ts_val_comp", + "ts_ruissel_ep", + "ts_absence_nuisance", + "ts_respect_regles", + "ts_commentaires", + "update_button" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_conforme", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_conforme"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_type_effluent", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_type_effluent"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_cuve_etanche", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_cuve_etanche"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_capacite_bac", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "controle", "nom_liste": "ts_capacite_bac"} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_nb_bac", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_nb_bac"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_coher_taille_util", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_coher_taille_util"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_aire_etanche", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_aire_etanche"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_aire_abri", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_aire_abri"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_ventilation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_ventilation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_val_comp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_val_comp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_ruissel_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_ruissel_ep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_absence_nuisance", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_absence_nuisance"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ts_respect_regles", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "ts_respect_regles"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json new file mode 100755 index 00000000..d1969097 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_traitement.json @@ -0,0 +1,3407 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_traitement", + "label":"Identifiant", + "nb_cols":4, + "id":"Element_6_1_2" + }, + { + "type":"label", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":4, + "id":"Element_0_1_1" + }, + { + "type":"label", + "name":"tra_type", + "label":"Type de traitement", + "nb_cols":4, + "id":"Element_0_1_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_nb", + "label":"Nombre de tranchées", + "nb_cols":4, + "id":"Element_1_3_1" + }, + { + "type":"label", + "name":"tra_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"label", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"label", + "name":"tra_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"label", + "name":"tra_surf", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"label", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"Element_1_5_2" + }, + { + "type":"label", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"label", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "nb_cols":4, + "id":"Element_1_4_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_hauteur", + "label":"Hauteur", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "nb_cols":6, + "id":"Element_2_7_1" + }, + { + "type":"label", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "nb_cols":6, + "id":"Element_2_7_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "nb_cols":6, + "id":"Element_2_8_1" + }, + { + "type":"label", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "nb_cols":6, + "id":"Element_2_8_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1" + }, + { + "type":"label", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2" + }, + { + "type":"label", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme", + "nb_cols":4, + "id":"Element_3_11_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3" + }, + { + "type":"label", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1" + }, + { + "type":"label", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3" + }, + { + "type":"label", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1" + }, + { + "type":"label", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_4_16_2" + }, + { + "type":"label", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "nb_cols":4, + "id":"Element_4_16_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "nb_cols":4, + "id":"Element_6_19_1" + }, + { + "type":"label", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2" + }, + { + "type":"label", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2" + }, + { + "type":"label", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "nb_cols":4, + "id":"Element_6_22_1" + }, + { + "type":"label", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2" + }, + { + "type":"label", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm()" + } + ] + } + ] + } + ], + "initEvent": "initAncControlTraitementForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "display_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_bon_mat", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "tra_dist_hab", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_tuy_perf", + "tra_vm_sab_qual", + "tra_vm_sab_ep", + "tra_vm_geomembrane" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":4, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + } + ] + } + ] + } + ], + "initEvent": "initAncControlTraitementForm()", + "event":"sendSimpleForm()", + "afterEvent": "closeModalSectionForm(true)", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "insert_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_bon_mat", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "tra_dist_hab", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_tuy_perf", + "tra_vm_sab_qual", + "tra_vm_sab_ep", + "tra_vm_geomembrane" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_traitement-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_traitement", + "label":"ID", + "nb_cols":3, + "id":"Element_6_1_2" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":3, + "id":"Element_6_1_2", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_6_1_2_from", + "disabled": true + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":3, + "id":"id_controle", + "required":true, + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_from", + "disabled": true + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":3, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"closeModalSectionForm(true)" + } + ] + } + ] + } + ], + "initEvent": "initAncControlTraitementForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "update_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_bon_mat", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "tra_dist_hab", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_tuy_perf", + "tra_vm_sab_qual", + "tra_vm_sab_ep", + "tra_vm_geomembrane" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_hab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_hab"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_lim_parc", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_lim_parc"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_puit", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_puit"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_racine", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste":"tra_vm_racine"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_humidite", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_humidite"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_imper", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_imper"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geogrille", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geogrille"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_ep"}, + "database":"", + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geo_text", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geo_text"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_tuy_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_tuy_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_bon_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_bon_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_ep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_epand", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_epand"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_largeur", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_largeur"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geomembrane", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geomembrane"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json new file mode 100755 index 00000000..8491de00 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_controle_controle_ventilation.json @@ -0,0 +1,690 @@ +{ + "display":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"vt_primaire", + "label":"Présence d'une ventilation primaire", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_primaire_1_1" + }, + { + "type":"label", + "name":"vt_secondaire", + "label":"Présence d'une ventilation secondaire", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_secondaire_2_1" + }, + { + "type":"label", + "name":"emplacement_vt_secondaire", + "label":"Emplacement envisagé pour la canalisation de ventilation secondaire", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"emplacement_vt_secondaire_3_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Ventilation primaire", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_prim_loc", + "label":"Localisation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_loc_3_1" + }, + { + "type":"label", + "name":"vt_prim_ht", + "label":"Hauteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_ht_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_prim_diam", + "label":"Diamètre", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_diam_5_1" + }, + { + "type":"label", + "name":"vt_prim_type_extract", + "label":"Type d'extracteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_prim_type_extract_6_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Ventilation secondaire", + "nb_cols":12, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_second_loc", + "label":"Localisation", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_loc_7_1" + }, + { + "type":"label", + "name":"vt_second_ht", + "label":"Hauteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_ht_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"vt_second_diam", + "label":"Diamètre", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_diam_9_1" + }, + { + "type":"label", + "name":"vt_second_type_extract", + "label":"Type d'extracteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"vt_second_type_extract_10_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"vt_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"vt_commentaire_46_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlVentilationForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "vt_primaire", + "vt_secondaire", + "vt_prim_loc", + "vt_prim_ht", + "vt_prim_diam", + "vt_prim_type_extract", + "vt_second_loc", + "vt_second_ht", + "vt_second_diam", + "vt_second_type_extract", + "display_button", + "Element_0", + "Element_1", + "vt_commentaire", + "emplacement_vt_secondaire" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0","elements":[ + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_controle_controle_ventilation-form", + "title":"ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"vt_primaire", + "label":"Présence d'une ventilation primaire", + "required":false, + "nb_cols":6, + "id":"vt_primaire_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_secondaire", + "label":"Présence d'une ventilation secondaire", + "required":false, + "nb_cols":6, + "id":"vt_secondaire_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"emplacement_vt_secondaire", + "label":"Emplacement envisagé pour la canalisation de ventilation secondaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"emplacement_vt_secondaire_3_1", + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Ventilation primaire", + "nb_cols":12, + "id":"Element_1_2_1" + } + ] + }, + { + "fields":[ + { + "type":"editable_select", + "name":"vt_prim_loc", + "label":"Localisation", + "required":false, + "nb_cols":6, + "id":"vt_prim_loc_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_prim_ht", + "label":"Hauteur", + "required":false, + "nb_cols":6, + "id":"vt_prim_ht_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"vt_prim_diam", + "label":"Diamètre", + "required":false, + "nb_cols":6, + "id":"vt_prim_diam_5_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_prim_type_extract", + "label":"Type d'extracteur", + "required":false, + "nb_cols":6, + "id":"vt_prim_type_extract_6_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_prim_type_materiau", + "label":"Type de matériau", + "required":false, + "nb_cols":6, + "id":"vt_prim_type_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Ventilation secondaire", + "nb_cols":12, + "id":"Element_2_5_1" + } + ] + }, + { + "fields":[ + { + "type":"editable_select", + "name":"vt_second_loc", + "label":"Localisation", + "required":false, + "nb_cols":6, + "id":"vt_second_loc_7_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_second_ht", + "label":"Hauteur", + "required":false, + "nb_cols":6, + "id":"vt_second_ht_8_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"vt_second_diam", + "label":"Diamètre", + "required":false, + "nb_cols":6, + "id":"vt_second_diam_9_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_second_type_extract", + "label":"Type d'extracteur", + "required":false, + "nb_cols":6, + "id":"vt_second_type_extract_10_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"vt_second_type_materiau", + "label":"Type de matériau", + "required":false, + "nb_cols":6, + "id":"vt_second_type_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"vt_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"vt_commentaire_46_1", + "nb_rows":10, + "visible": false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncControlVentilationForm()", + "event":"sendSimpleForm()" + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_primaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_primaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_secondaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_secondaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_loc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_loc"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_ht", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_ht"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_diam", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_diam"}, + "schema":"s_anc","table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_type_extract", + "description":"","parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_type_extract"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_loc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_loc"}, + "schema":"s_anc", + "table":"param_liste" + } + ,"ressource_id":"vitis/genericquerys" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_ht", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_ht"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_diam", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_diam"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_type_extract", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_type_extract"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_prim_type_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_prim_type_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"vt_second_type_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "controle", "nom_liste": "vt_second_type_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json b/module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json new file mode 100755 index 00000000..2df0cd8e --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_evacuation_eaux.json @@ -0,0 +1,2462 @@ +{ + "display":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_DISPLAY", + "input_size":"xxs", + "initEvent": "initAncEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":3, + "id":"id_eva_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "nb_cols":3, + "id":"num_dossier_43_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Identifiant du contrôle", + "nb_cols":3, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_type", + "label":"Type d'évacuation", + "nb_cols":3, + "id":"evac_type_3_1" + }, + { + "type":"label", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"label", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_lin_total", + "label":"Total", + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"label", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"label", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1" + }, + { + "type":"label", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1" + }, + { + "type":"label", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1" + }, + { + "type":"label", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1" + }, + { + "type":"label", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis??", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1" + }, + { + "type":"label", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1" + }, + { + "type":"label", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente?", + "nb_cols":4, + "id":"evac_is_inf_perm_17_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"label", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1" + }, + { + "type":"label", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1" + }, + { + "type":"label", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1" + }, + { + "type":"label", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_rp_type_eff_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "nb_cols":4, + "id":"evac_hs_type_25_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1" + }, + { + "type":"label", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1" + }, + { + "type":"label", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_hs_type_eff_29_1" + }, + { + "type":"label", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_anc_eva", + "id_anc_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "num_dossier", + "display_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_is_reb_bcl", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":false, + "nb_cols":4, + "id":"Element_1_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_1_1_2_from" + }, + { + "type":"select", + "name":"evac_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"Element_2_1_3", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_2_1_3_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "id_controle", + "evac_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":false, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"integer", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"integer", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"integer", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"integer", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39330" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39331" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39341" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39342" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39360" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39361" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39376" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39377" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39384" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39385" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39393" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":true, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39411" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39412" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39423" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39424" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39434" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39435" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39453" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39454" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39476" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39477" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_is_reb_bcl", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_evacuation_eaux_evacuation_eaux-form", + "title":"ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_UPDATE", + "input_size":"xxs", + "initEvent": "initAncEvacuationEauxForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_eva", + "label":"Identifiant de l'evacuation", + "nb_cols":12, + "id":"id_eva_1_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"Element_3_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_3_2_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant du contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Par infiltration dans le sol", + "nb_cols":12, + "id":"Element_0_45_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_type", + "label":"Type d'évacuation", + "required":false, + "nb_cols":4, + "id":"evac_type_3_1", + "id_from":"evac_type_3_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"integer", + "name":"evac_is_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"evac_is_long_5_1", + "default_value":0 + }, + { + "type":"integer", + "name":"evac_is_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"evac_is_larg_6_1", + "default_value":0 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_is_lin_total", + "label":"Total", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"evac_is_lin_total_7_1" + }, + { + "type":"integer", + "name":"evac_is_surface", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"evac_is_surface_8_1" + }, + { + "type":"integer", + "name":"evac_is_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"evac_is_profondeur_9_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_geotex", + "label":"Présence d'un géotextile?", + "nb_cols":4, + "id":"evac_is_geotex_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35271" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35272" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_rac", + "label":"Présence d'un film ant-racine?", + "nb_cols":4, + "id":"evac_is_rac_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35282" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35283" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_hum", + "label":"Présence d'un film anti-humidité?", + "nb_cols":4, + "id":"evac_is_hum_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35293" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35294" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_reg_rep", + "label":"Présence d'un regard de répartition?", + "nb_cols":4, + "id":"evac_is_reg_rep_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35305" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35306" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_reb_bcl", + "label":"Présence d'un regard de bouclage?", + "nb_cols":4, + "id":"evac_is_reb_bcl_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35316" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35317" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_bons_grav", + "label":"Les bons de graviers ont-ils été transmis?", + "nb_cols":4, + "id":"evac_rp_bons_grav_14_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_veg", + "label":"Présence de végétation (irrigation souterraine)?", + "nb_cols":4, + "id":"evac_is_veg_15_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35328" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35329" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_is_type_effl", + "label":"Type d'effluent", + "nb_cols":4, + "id":"evac_is_type_effl_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35340" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35341" + } + ] + } + }, + { + "type":"radio", + "name":"evac_is_acc_reg", + "label":"Accessibilité aux regards?", + "nb_cols":4, + "id":"evac_is_acc_reg_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35352" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35353" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_is_inf_perm", + "label":"Infiltration permanente", + "required":true, + "nb_cols":4, + "id":"evac_is_inf_perm_17_1", + "id_from":"evac_is_inf_perm_17_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Par rejet dans un puits d’infiltration", + "nb_cols":12, + "id":"Element_1_8_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"evac_rp_type", + "label":"Profondeur du puits d'infiltration", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_18_1" + }, + { + "type":"radio", + "name":"evac_rp_etude_hydrogeol", + "label":"Etude hydrogéologique?", + "nb_cols":4, + "id":"evac_rp_etude_hydrogeol_19_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35368" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35369" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_rejet", + "label":"Le rejet est-il autorisé?", + "nb_cols":4, + "id":"evac_rp_rejet_20_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35379" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35380" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_grav", + "label":"Remplissage en graviers 40/80?", + "nb_cols":4, + "id":"evac_rp_grav_21_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"radio", + "name":"evac_rp_tamp", + "label":"Puit recouvert d'un tampon sécurisé?", + "nb_cols":4, + "id":"evac_rp_tamp_22_1", + "id_from":"evac_rp_tamp_22_1_from", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35392" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35393" + } + ] + } + }, + { + "type":"select", + "name":"evac_rp_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_rp_type_eff_23_1", + "id_from":"evac_rp_type_eff_23_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_rp_trap", + "label":"Accessibilité aux regards", + "nb_cols":4, + "id":"evac_rp_trap_24_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35419" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35420" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Par rejet vers le milieu hydraulique superficiel", + "nb_cols":12, + "id":"Element_2_12_2" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"evac_hs_type", + "label":"Localisation du rejet", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_25_1", + "id_from":"evac_hs_type_25_1_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"evac_hs_gestionnaire", + "label":"Gestionnaire", + "required":false, + "nb_cols":4, + "id":"evac_hs_gestionnaire_26_1", + "id_from":"evac_hs_gestionnaire_26_1_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_gestionnaire_auth", + "label":"Autorisation du gestionnaire", + "nb_cols":4, + "id":"evac_hs_gestionnaire_auth_27_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:35438" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:35439" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"evac_hs_intr", + "label":"Dispositif anti-intrusion", + "nb_cols":4, + "id":"evac_hs_intr_28_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39487" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39488" + } + ] + } + }, + { + "type":"select", + "name":"evac_hs_type_eff", + "label":"Type d'effluent", + "required":false, + "nb_cols":4, + "id":"evac_hs_type_eff_29_1", + "id_from":"evac_hs_type_eff_29_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"radio", + "name":"evac_hs_ecoul", + "label":"Ecoulement correct", + "nb_cols":4, + "id":"evac_hs_ecoul_30_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:39495" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:39496" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"evac_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"evac_commentaires_32_1", + "size":5 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Documents", + "nb_cols":12, + "id":"Element_3_18_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"photos_f_37_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"fiche_f_38_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"schema_f_39_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"documents_f_40_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"plan_f_41_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + }, + { + "fields":[ + + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_eva", + "id_controle", + "evac_type", + "evac_is_long", + "evac_is_larg", + "evac_is_surface", + "evac_is_profondeur", + "evac_is_geotex", + "evac_is_rac", + "evac_is_hum", + "evac_is_reg_rep", + "evac_is_reb_bcl", + "evac_is_veg", + "evac_is_type_effl", + "evac_is_acc_reg", + "evac_rp_etude_hydrogeol", + "evac_rp_rejet", + "evac_rp_grav", + "evac_rp_tamp", + "evac_rp_type_eff", + "evac_rp_trap", + "evac_hs_type", + "evac_hs_gestionnaire", + "evac_hs_gestionnaire_auth", + "evac_commentaires", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "id_installation", + "num_dossier", + "update_button", + "id_installation", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "evac_is_lin_total", + "evac_rp_type", + "evac_hs_intr", + "evac_hs_type_eff", + "evac_hs_ecoul", + "evac_is_reb_bcl", + "evac_rp_bons_grav", + "evac_is_inf_perm" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_type", + "description":"", + "parameters":{ + "database":"", + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_gestionnaire", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_gestionnaire"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_hs_type_eff", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_hs_type_eff"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_rp_tamp", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_rp_tamp"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"evac_is_inf_perm", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "evacuation_eaux", "nom_liste": "evac_is_inf_perm"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json b/module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json new file mode 100755 index 00000000..d4d75442 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_filieres_agree.json @@ -0,0 +1,5420 @@ +{ + "display":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_fag_1_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"Installation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_89_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_controle_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_type_3_1" + }, + { + "type":"label", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1" + }, + { + "type":"label", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_denom", + "label":"Dénomination de la filière", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1" + }, + { + "type":"label", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"label", + "name":"fag_cap_eh", + "label":"Capacité EH", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"label", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"label", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"label", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_guide_15_1" + }, + { + "type":"label", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_livret_16_1" + }, + { + "type":"label", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_contr_17_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1" + }, + { + "type":"label", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_plan_20_1" + }, + { + "type":"label", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1" + }, + { + "type":"label", + "name":"fag_rep", + "label":"Dalle de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1" + }, + { + "type":"label", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1" + }, + { + "type":"label", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1" + }, + { + "type":"label", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1" + }, + { + "type":"label", + "name":"fag_pres_alar", + "label":"Présence d'un regard de collecte permettant les prelevements", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1" + }, + { + "type":"label", + "name":"fag_pres_reg", + "label":"Présence d'une alarme visuelle?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1" + }, + { + "type":"label", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1" + }, + { + "type":"label", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1" + }, + { + "type":"label", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"label", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reac_bull_37_1" + }, + { + "type":"label", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_dec_39_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_broy_38_1" + }, + { + "type":"label", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"fag_type_eau_40_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"label", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1" + }, + { + "type":"label", + "name":"fag_reg_affl", + "label":"Afleure t-il au niveau du sol", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1" + }, + { + "type":"label", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1" + }, + { + "type":"label", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1" + }, + { + "type":"label", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"label", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1" + }, + { + "type":"label", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1" + }, + { + "type":"label", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"label", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"label", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1" + }, + { + "type":"label", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Contrôle de l'état", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1" + }, + { + "type":"label", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1" + }, + { + "type":"label", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1" + }, + { + "type":"label", + "name":"fag_acces", + "label":"Accessibilité", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1" + }, + { + "type":"label", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1" + }, + { + "type":"label", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"label", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1" + }, + { + "type":"label", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"label", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1" + }, + { + "type":"label", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1" + }, + { + "type":"label", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_32_4", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1" + }, + { + "type":"label", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1" + }, + { + "type":"label", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_87_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncFilieresAgreeesForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_fag", + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_att_conf", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "num_dossier", + "display_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "Element_9", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":false, + "nb_cols":4, + "id":"Element_1_1_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_1_1_2_from" + }, + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"Element_2_1_3", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_2_1_3_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "id_controle", + "fag_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":6, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"text", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"text", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_deg_64_1_from" + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_od_65_1_from" + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_et_dy_66_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_jus_68_1_from" + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"text", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_contr_73_1_from" + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"plan de recolement", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"plan_f_87_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "fag_type", + "fag_integerer", + "fag_agree", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_dist", + "fag_surpr_elec", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "id_installation", + "insert_button", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "Element_6", + "Element_7", + "Element_8", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_filieres_agree-form", + "title":"ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_fag", + "label":"ID", + "nb_cols":4, + "id":"Element_11_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_88_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_88_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_type", + "label":"Type", + "required":true, + "nb_cols":4, + "id":"fag_type_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_3_1_from" + }, + { + "type":"select", + "name":"fag_agree", + "label":"La filière est-elle agréée?", + "required":false, + "nb_cols":4, + "id":"fag_integerer_5_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_integerer_5_1_from" + }, + { + "type":"select", + "name":"fag_integerer", + "label":"Fonctionnement par intermittence possible?", + "required":false, + "nb_cols":4, + "id":"fag_agree_4_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_agree_4_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_denom", + "label":"Dénomination de la filière", + "required":false, + "nb_cols":4, + "id":"fag_denom_7_1", + "datasource":{ + "datasource_id":"datasource_63", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_denom_7_1_from" + }, + { + "type":"select", + "name":"fag_fab", + "label":"Fabricant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fab_8_1", + "datasource":{ + "datasource_id":"datasource_62", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"id_parametre_entreprises", + "attributs":"id_parametre_entreprises|nom_entreprise" + }, + "id_from":"fag_fab_8_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num_ag", + "label":"Numéro agrément", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_ag_9_1" + }, + { + "type":"text", + "name":"fag_cap_eh", + "label":"Capacité EH", + "nb_cols":4, + "id":"fag_cap_eh_10_1" + }, + { + "type":"text", + "name":"fag_nb_cuv", + "label":"Nombre de cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_nb_cuv_11_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_num", + "label":"Numéro de série cuve", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_12_1" + }, + { + "type":"text", + "name":"fag_num_filt", + "label":"Numéro de séries filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_num_filt_13_1" + }, + { + "type":"select", + "name":"fag_mat_cuv", + "label":"Matériau cuves", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_mat_cuv_14_1", + "datasource":{ + "datasource_id":"datasource_61", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_cuv_14_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_guide", + "label":"Guide d'exploitation fourni?", + "required":false, + "nb_cols":6, + "id":"fag_guide_15_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_guide_15_1_from" + }, + { + "type":"select", + "name":"fag_livret", + "label":"Livret de pose fourni?", + "required":false, + "nb_cols":6, + "id":"fag_livret_16_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_livret_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_contr", + "label":"Etablissement d'un contrat de maintenance ?", + "required":false, + "nb_cols":6, + "id":"fag_contr_17_1", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_contr_17_1_from" + }, + { + "type":"text", + "name":"fag_soc", + "label":"Nom de la société de maintenance ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_soc_18_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement et mise en oeuvre", + "nb_cols":12, + "id":"Element_0_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres", + "label":"Présence de tous les éméments constitutifs du dispositif?", + "required":false, + "nb_cols":4, + "id":"fag_pres_19_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_19_1_from" + }, + { + "type":"select", + "name":"fag_plan", + "label":"Planeite des ouvrages?", + "nb_cols":4, + "id":"fag_plan_20_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_plan_20_1_from" + }, + { + "type":"select", + "name":"fag_tamp", + "label":"Tampon affleurant ?", + "required":false, + "nb_cols":4, + "id":"fag_tamp_21_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_tamp_21_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ancrage", + "label":"Dalle d'ancrage?", + "required":false, + "nb_cols":4, + "id":"fag_ancrage_22_1", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ancrage_22_1_from" + }, + { + "type":"select", + "name":"fag_rep", + "label":"Dalle de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_rep_23_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_rep_23_1_from" + }, + { + "type":"select", + "name":"fag_respect", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":4, + "id":"fag_respect_24_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_respect_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_ventil", + "label":"Présence de une/des ventilations?", + "required":false, + "nb_cols":4, + "id":"fag_ventil_25_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_ventil_25_1_from" + }, + { + "type":"select", + "name":"fag_mil_typ", + "label":"Type de médias filtrants", + "required":false, + "nb_cols":4, + "id":"fag_mil_typ_26_1", + "datasource":{ + "datasource_id":"datasource_55", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_typ_26_1_from" + }, + { + "type":"select", + "name":"fag_mil_filt", + "label":"Médias filtrants bien répartis?", + "required":false, + "nb_cols":4, + "id":"fag_mil_filt_27_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mil_filt_27_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mise_eau", + "label":"Mise en eau des dispositifs?", + "required":false, + "nb_cols":4, + "id":"fag_mise_eau_28_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mise_eau_28_1_from" + }, + { + "type":"select", + "name":"fag_pres_reg", + "label":"Présence d'un regard de collecte permettant les prelevements", + "required":false, + "nb_cols":4, + "id":"fag_pres_reg_30_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_reg_30_1_from" + }, + { + "type":"select", + "name":"fag_pres_alar", + "label":"Présence d'une alarme visuelle?", + "required":false, + "nb_cols":4, + "id":"fag_pres_alar_29_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_alar_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_att_conf", + "label":"Si une attestation de conformité du fabriquant est réalisée, est-elle fournie?", + "required":false, + "nb_cols":4, + "id":"fag_att_conf_31_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_att_conf_31_1_from" + }, + { + "type":"select", + "name":"fag_surpr", + "label":"Présence d'un surpresseur?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_32_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_32_1_from" + }, + { + "type":"text", + "name":"fag_surpr_ref", + "label":"Référence du surpresseur", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_ref_33_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_surpr_elec", + "label":"Raccordement electrique du surpresseur?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_surpr_elec_35_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_elec_35_1_from" + }, + { + "type":"text", + "name":"fag_surpr_dist", + "label":"Distance entre le surpresseur et le dispositif", + "required":false, + "nb_cols":4, + "id":"fag_surpr_dist_34_1" + }, + { + "type":"select", + "name":"fag_surpr_aer", + "label":"Le surpresseur est-il placé dans un dispositif aéré?", + "required":false, + "nb_cols":4, + "id":"fag_surpr_aer_36_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_surpr_aer_36_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reac_bull", + "label":"Bullage à la surface du reacteur", + "required":false, + "nb_cols":6, + "id":"fag_reac_bull_37_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reac_bull_37_1_from" + }, + { + "type":"select", + "name":"fag_dec", + "label":"Presence d'un décanteur conforme à l'agrement?", + "required":false, + "nb_cols":6, + "id":"fag_dec_39_1", + "datasource":{ + "datasource_id":"datasource_28", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dec_39_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Phytoépuration", + "nb_cols":12, + "id":"Element_10_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_broy", + "label":"Présence d'une pompe broyeuse conforme à l'agrément?", + "required":false, + "nb_cols":6, + "id":"fag_broy_38_1", + "datasource":{ + "datasource_id":"datasource_27", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_broy_38_1_from" + }, + { + "type":"select", + "name":"fag_type_eau", + "label":"Type eaux collectées", + "required":false, + "nb_cols":6, + "id":"fag_type_eau_40_1", + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_type_eau_40_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Regard repartition", + "nb_cols":12, + "id":"Element_1_17_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_reg_mar", + "label":"Marque du regard de répartition", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_reg_mar_41_1" + }, + { + "type":"select", + "name":"fag_reg_mat", + "label":"Matériau du régard de répartition", + "required":false, + "nb_cols":4, + "id":"fag_reg_mat_42_1", + "datasource":{ + "datasource_id":"datasource_30", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_mat_42_1_from" + }, + { + "type":"select", + "name":"fag_reg_affl", + "label":"Affleure t-il au niveau du sol", + "required":false, + "nb_cols":4, + "id":"fag_reg_affl_43_1", + "datasource":{ + "datasource_id":"datasource_31", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_affl_43_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_reg_hz", + "label":"Est-il posé horizontalement", + "required":false, + "nb_cols":6, + "id":"fag_reg_hz_44_1", + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_hz_44_1_from" + }, + { + "type":"select", + "name":"fag_reg_van", + "label":"Présence de vannes permettant l'alternance", + "required":false, + "nb_cols":6, + "id":"fag_reg_van_45_1", + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_reg_van_45_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Filtre vertical", + "nb_cols":12, + "id":"Element_2_20_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_nb", + "label":"Nombre de filtres", + "required":false, + "nb_cols":4, + "id":"fag_fvl_nb_46_1", + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_nb_46_1_from" + }, + { + "type":"select", + "name":"fag_fvl_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_long_47_1", + "datasource":{ + "datasource_id":"datasource_35", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_long_47_1_from" + }, + { + "type":"select", + "name":"fag_fvl_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fvl_larg_48_1", + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_larg_48_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fvl_prof", + "label":"Profondeur du filtre du fond de fouille au terrain naturel", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fvl_prof_49_1" + }, + { + "type":"select", + "name":"fag_fvl_sep", + "label":"Separation par une plaque non étanche?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_sep_50_1", + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_sep_50_1_from" + }, + { + "type":"select", + "name":"fag_fvl_pla", + "label":"Presence de deux plaques de répartition?", + "required":false, + "nb_cols":4, + "id":"fag_fvl_pla_51_1", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_pla_51_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fvl_drain", + "label":"Presence de drains de collecte?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_drain_52_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_drain_52_1_from" + }, + { + "type":"select", + "name":"fag_fvl_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fvl_resp_53_1", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fvl_resp_53_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Filtre horizontal", + "nb_cols":12, + "id":"Element_3_24_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_fhz_long", + "label":"Longueur du filtre", + "required":false, + "nb_cols":4, + "id":"fag_fhz_long_54_1" + }, + { + "type":"select", + "name":"fag_fhz_larg", + "label":"Largeur du filtre", + "required":false, + "nb_cols":4, + "datasource":{ + "datasource_id":"datasource_42", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id":"fag_fhz_larg_55_1" + }, + { + "type":"text", + "name":"fag_fhz_prof", + "label":"Profondeur du filtre", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_fhz_prof_56_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_fhz_drain", + "label":"Présence de drain", + "required":false, + "nb_cols":6, + "id":"fag_fhz_drain_57_1", + "datasource":{ + "datasource_id":"datasource_43", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_drain_57_1_from" + }, + { + "type":"select", + "name":"fag_fhz_resp", + "label":"Respect des conditions de mise en oeuvre?", + "required":false, + "nb_cols":6, + "id":"fag_fhz_resp_58_1", + "datasource":{ + "datasource_id":"datasource_44", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_fhz_resp_58_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Controle de l'etat", + "nb_cols":12, + "id":"Element_4_27_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_5_28_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_mat_qual", + "label":"La qualité des matériaux est-elle conforme?", + "required":false, + "nb_cols":4, + "id":"fag_mat_qual_59_1", + "datasource":{ + "datasource_id":"datasource_45", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_qual_59_1_from" + }, + { + "type":"select", + "name":"fag_mat_epa", + "label":"L'epaisseur des matériaux est-elle respectée?", + "required":false, + "nb_cols":4, + "id":"fag_mat_epa_60_1", + "datasource":{ + "datasource_id":"datasource_46", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_mat_epa_60_1_from" + }, + { + "type":"select", + "name":"fag_pres_veg", + "label":"Présence de végétaux?", + "required":false, + "nb_cols":4, + "id":"fag_pres_veg_61_1", + "datasource":{ + "datasource_id":"datasource_47", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_veg_61_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_pres_pro", + "label":"Présence de protection sanitaire?", + "required":false, + "nb_cols":6, + "id":"fag_pres_pro_62_1", + "datasource":{ + "datasource_id":"datasource_48", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_pres_pro_62_1_from" + }, + { + "type":"select", + "name":"fag_acces", + "label":"Accessibilité", + "required":false, + "nb_cols":6, + "id":"fag_acces_63_1", + "datasource":{ + "datasource_id":"datasource_49", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_acces_63_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Etat", + "nb_cols":12, + "id":"Element_6_31_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_et_deg", + "label":"Dégradations constatées", + "required":false, + "nb_cols":4, + "id":"fag_et_deg_64_1", + "datasource":{ + "datasource_id":"datasource_50", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_od", + "label":"Présences d'odeurs", + "required":false, + "nb_cols":4, + "id":"fag_et_od_65_1", + "datasource":{ + "datasource_id":"datasource_51", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_et_dy", + "label":"Dysfonctionnement constatés", + "required":false, + "nb_cols":4, + "id":"fag_et_dy_66_1", + "datasource":{ + "datasource_id":"datasource_52", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Entretien", + "nb_cols":12, + "id":"Element_7_33_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"fag_en_date", + "label":"Date de la dernière vidange/faucardage", + "nb_cols":4, + "id":"fag_en_date_67_1" + }, + { + "type":"select", + "name":"fag_en_jus", + "label":"Justificatif de vidange disponible", + "required":false, + "nb_cols":4, + "id":"fag_en_jus_68_1", + "datasource":{ + "datasource_id":"datasource_53", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"fag_en_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_entr_69_1", + "id_from":"fag_en_entr_69_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"fag_en_bord", + "label":"Num de bordereau de suivi des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_bord_70_1" + }, + { + "type":"select", + "name":"fag_en_dest", + "label":"Destination des matières de vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_dest_71_1", + "datasource":{ + "datasource_id":"datasource_56", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_en_dest_71_1_from" + }, + { + "type":"text", + "name":"fag_en_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"fag_en_perc_72_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_en_contr", + "label":"Etablissement d'un contrat de maintenance?", + "required":false, + "nb_cols":6, + "id":"fag_en_contr_73_1", + "datasource":{ + "datasource_id":"datasource_54", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"fag_en_mainteger", + "label":"Nom de la société de maintenance", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_en_mainteger_74_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Distance", + "nb_cols":12, + "id":"Element_8_37_1", + "class":"h5" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_arb", + "label":"Distance d'un arbre > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_arb_75_1", + "datasource":{ + "datasource_id":"datasource_57", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_arb_75_1_from" + }, + { + "type":"select", + "name":"fag_dist_parc", + "label":"Distance limtie parcelle > 3m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_parc_76_1", + "datasource":{ + "datasource_id":"datasource_58", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_parc_76_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"fag_dist_hab", + "label":"Distance à l'habitation > 5 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_hab_77_1", + "datasource":{ + "datasource_id":"datasource_59", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_hab_77_1_from" + }, + { + "type":"select", + "name":"fag_dist_cap", + "label":"Distance d'un captage > 35 m", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"fag_dist_cap_78_1", + "datasource":{ + "datasource_id":"datasource_60", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"fag_dist_cap_78_1_from" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"fag_commentaires", + "label":"Commentaires", + "nb_cols":12, + "id":"fag_commentaires_79_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Suivi", + "nb_cols":12, + "id":"Element_9_40_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_81_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_82_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_79_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_80_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncFilieresAgreeesForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_controle", + "fag_type", + "fag_agree", + "fag_integerer", + "fag_denom", + "fag_fab", + "fag_num_ag", + "fag_cap_eh", + "fag_nb_cuv", + "fag_surpr", + "fag_surpr_ref", + "fag_surpr_elec", + "fag_surpr_dist", + "fag_surpr_aer", + "fag_reac_bull", + "fag_broy", + "fag_dec", + "fag_type_eau", + "Element_1", + "fag_reg_mar", + "fag_reg_mat", + "fag_reg_affl", + "fag_reg_hz", + "fag_reg_van", + "Element_2", + "fag_fvl_nb", + "fag_fvl_long", + "fag_fvl_larg", + "fag_fvl_prof", + "fag_fvl_sep", + "fag_fvl_pla", + "fag_fvl_drain", + "fag_fvl_resp", + "Element_3", + "fag_fhz_long", + "fag_fhz_larg", + "fag_fhz_prof", + "fag_fhz_drain", + "fag_fhz_resp", + "Element_4", + "Element_5", + "fag_mat_qual", + "fag_mat_epa", + "fag_pres_veg", + "fag_pres_pro", + "fag_acces", + "Element_6", + "fag_et_deg", + "fag_et_od", + "fag_et_dy", + "Element_7", + "fag_en_date", + "fag_en_jus", + "fag_en_entr", + "fag_en_bord", + "fag_en_dest", + "fag_en_perc", + "fag_en_contr", + "fag_en_mainteger", + "Element_8", + "fag_dist_arb", + "fag_dist_parc", + "fag_dist_hab", + "fag_dist_cap", + "Element_9", + "create", + "create_date", + "maj", + "maj_date", + "update_button", + "id_fag", + "fag_num", + "fag_num_filt", + "fag_mat_cuv", + "fag_guide", + "fag_livret", + "fag_contr", + "fag_soc", + "Element_0", + "fag_pres", + "fag_plan", + "fag_tamp", + "fag_ancrage", + "fag_rep", + "fag_respect", + "fag_ventil", + "fag_mil_typ", + "fag_mil_filt", + "fag_mise_eau", + "fag_pres_reg", + "fag_pres_alar", + "fag_att_conf", + "fag_commentaires", + "Element_10" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_agree", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_agree"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_integerer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_integerer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_fil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_fil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_guide", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_guide"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_livret", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_livret"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_plan", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_plan"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_tamp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_tamp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ancrage", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ancrage"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_rep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_rep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_respect", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_respect"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_ventil", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_ventil"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_filt", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_filt"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mise_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mise_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_reg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_reg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_alar", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_alar"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_att_conf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_att_conf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_elec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_elec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_dist", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_dist"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_surpr_aer", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_surpr_aer"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reac_bull", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reac_bull"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_broy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_broy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dec", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dec"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_reg_van", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_reg_van"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_nb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_nb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_sep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_sep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_pla", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_pla"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_39" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fvl_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fvl_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_long", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_long"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + }, + "datasource_42":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_larg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_larg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_42" + }, + "datasource_43":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_drain", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_drain"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_43" + }, + "datasource_44":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fhz_resp", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_fhz_resp"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_44" + }, + "datasource_45":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_45" + }, + "datasource_46":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_epa", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_epa"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_46" + }, + "datasource_47":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_veg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_veg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_47" + }, + "datasource_48":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_pres_pro", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_pres_pro"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_48" + }, + "datasource_49":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_49" + }, + "datasource_50":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_deg", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_deg"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_50" + }, + "datasource_51":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_od", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_od"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_51" + }, + "datasource_52":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_et_dy", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_et_dy"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_52" + }, + "datasource_53":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_jus", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_jus"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_53" + }, + "datasource_54":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_contr", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_contr"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_54" + }, + "datasource_55":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mil_typ", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mil_typ"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_55" + }, + "datasource_56":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_en_dest", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_en_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_56" + }, + "datasource_57":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_arb", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_arb"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_57" + }, + "datasource_58":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_parc", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_parc"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_58" + }, + "datasource_59":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_hab", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_hab"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_59" + }, + "datasource_60":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_dist_cap", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_dist_cap"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_60" + }, + "datasource_61":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_mat_cuv", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_mat_cuv"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_61" + }, + "datasource_62":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_fab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_entreprise", + "filter": {"constructeur": true} + }, + "ressource_id":"vitis/genericquerys" + }, + "datasource_63":{ + "type":"web_service", + "dataType":"tableValue", + "name":"fag_denom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "filieres_agrees", "nom_liste": "fag_denom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_63" + } + } +} diff --git a/module/forms/anc_saisie/anc_saisie_anc_installation.json b/module/forms/anc_saisie/anc_saisie_anc_installation.json new file mode 100755 index 00000000..53408c46 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_installation.json @@ -0,0 +1,2376 @@ +{ + "display":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_installation", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_installation_1_1" + }, + { + "type":"label", + "name":"commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"commune_36_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° dossier", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_35_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Parcelle", + "nb_cols":12, + "id":"Element_7_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"section", + "label":"Section", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"section_37_1" + }, + { + "type":"label", + "name":"parcelle", + "label":"Parcelle", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parcelle_38_1" + }, + { + "type":"label", + "name":"id_parc", + "label":"Id parcelle", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"id_parc_3_1" + }, + { + "type":"label", + "name":"parc_sup", + "label":"Superficie", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parc_sup_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"parc_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"parc_adresse_6_1" + }, + { + "type":"label", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_7_1" + }, + { + "type":"label", + "name":"parc_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"parc_commune_8_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"parc_parcelle_associees", + "label":"Parcelles associées", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"parc_parcelle_associees_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_8", + "label":"Propriétaire", + "nb_cols":12, + "id":"Element_8_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"prop_titre", + "label":"Titre", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_titre_9_1" + }, + { + "type":"label", + "name":"prop_nom_prenom", + "label":"Nom Prénom", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_nom_prenom_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"prop_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_adresse_11_1" + }, + { + "type":"label", + "name":"prop_code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_code_postal_12_1" + }, + { + "type":"label", + "name":"prop_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_commune_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"prop_tel", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_tel_14_1" + }, + { + "type":"label", + "name":"prop_mail", + "label":"Mail", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"prop_mail_15_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_9", + "label":"Bâtiments", + "nb_cols":12, + "id":"Element_9_10_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bati_type", + "label":"Type", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"bati_type_16_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bati_ca_nb_pp", + "label":"Nombre de personnes", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_pp_17_1" + }, + { + "type":"label", + "name":"bati_ca_nb_eh", + "label":"Nombre équivalent habitants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_eh_18_1" + }, + { + "type":"label", + "name":"bati_ca_nb_chambres", + "label":"Nombre de chambres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_chambres_19_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"bati_nb_a_control", + "label":"Nombre de bâti à contrôler", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_nb_a_control_22_1" + }, + { + "type":"label", + "name":"bati_date_mutation", + "label":"Date de mutation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_date_mutation_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_10", + "label":"Contraintes", + "nb_cols":12, + "id":"Element_10_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_zone_enjeu", + "label":"Zone à enjeux", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_zone_enjeu_25_1" + }, + { + "type":"label", + "name":"cont_zone_sage", + "label":"Zone SAGE", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"cont_zone_sage_26_1" + }, + { + "type":"label", + "name":"cont_zone_autre", + "label":"Autres renseignements (z. humides, z littorale…)", + "disabled":false, + "required":false, + "nb_cols":5, + "id":"cont_zone_autre_27_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_zone_urba", + "label":"Zone PLU", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_zone_urba_28_1" + }, + { + "type":"label", + "name":"cont_zone_anc", + "label":"Zonage assainissement", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_zone_anc_29_1" + }, + { + "type":"label", + "name":"cont_alim_eau_potable", + "label":"Mode d'alimentation eau potable", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"cont_alim_eau_potable_30_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_12", + "label":"Puits / Captage", + "nb_cols":12, + "id":"Element_12_24_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_puits_usage", + "label":"Usage", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_usage_31_1" + }, + { + "type":"label", + "name":"cont_puits_declaration", + "label":"Déclaré en mairie", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_declaration_32_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"cont_puits_situation", + "label":"Situation par rapport au traitement", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_situation_33_1" + }, + { + "type":"label", + "name":"cont_puits_terrain_mitoyen", + "label":"Existe-t-il un puit sur un terrain mitoyen ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"cont_puits_terrain_mitoyen_34_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_11", + "label":"Contrôle", + "nb_cols":12, + "id":"Element_11_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "pattern":"[-+]?(\\d*[.])?\\d+", + "name":"nb_controle", + "label":"Nombre de contrôles", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"nb_controle_39_1" + }, + { + "type":"label", + "name":"cl_avis", + "label":"Conformité du dernier contrôle", + "nb_cols":4, + "id":"Element_13_22_1" + }, + { + "type":"label", + "name":"next_control", + "label":"Date du prochain contrôle", + "nb_cols":4, + "id":"Element_14_22_2" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_parc", + "parc_sup", + "parc_parcelle_associees", + "parc_adresse", + "code_postal", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "prop_commune", + "prop_tel", + "prop_mail", + "bati_type", + "bati_ca_nb_pp", + "bati_ca_nb_eh", + "bati_ca_nb_chambres", + "bati_nb_a_control", + "bati_date_mutation", + "cont_zone_enjeu", + "cont_zone_sage", + "cont_zone_autre", + "cont_zone_urba", + "cont_zone_anc", + "cont_alim_eau_potable", + "cont_puits_usage", + "cont_puits_declaration", + "cont_puits_situation", + "cont_puits_terrain_mitoyen", + "num_dossier", + "commune", + "section", + "parcelle", + "nb_controle", + "display_button", + "Element_7", + "Element_8", + "Element_9", + "Element_10", + "Element_11", + "Element_12", + "cl_avis", + "next_control" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"integer", + "name":"id_installation", + "label":"ID", + "nb_cols":6, + "id":"Element_0_1_1" + }, { + "type":"text", + "name":"num_dossier", + "label":"nº installation", + "nb_cols":6, + "id":"Element_0_1_1111" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"Element_0_1_2", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"Element_0_1_2_from" + }, + { + "type":"select", + "name":"section", + "label":"Section", + "required":false, + "nb_cols":4, + "id":"Element_0_2_2", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"section", + "order_by":"section", + "id_key":"section", + "attributs":"section|section", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_2_2_from" + }, + { + "type":"select", + "name":"id_parc", + "label":"Parcelle", + "required":false, + "nb_cols":4, + "id":"Element_0_2_3", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"parcelle", + "order_by":"parcelle", + "id_key":"id_par", + "attributs":"parcelle|id_par", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_2_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"parc_commune", + "label":"Commune de la parcelle", + "required":false, + "nb_cols":6, + "id":"Element_0_3_2", + "id_from":"Element_0_3_2_from" + }, + { + "type":"text", + "name":"parc_adresse", + "label":"Adresse", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_3_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_titre", + "label":"Titre du propriétaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_4_1" + }, + { + "type":"text", + "name":"prop_nom_prenom", + "label":"Nom et prénom du propriétaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_4_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_adresse", + "label":"Adresse du propriétaire", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_0_5_1" + }, + { + "type":"integer", + "name":"prop_code_postal", + "label":"Code postal", + "required":false, + "pattern":"", + "nb_cols":2, + "id":"Element_1_5_2", + "max_length": 5 + }, + { + "type":"text", + "name":"prop_commune", + "label":"Commune", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_2_5_3" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_tel", + "label":"Téléphone", + "required":false, + "pattern":"", + "nb_cols":6, + "pattern":"^0[0-9]{9}$", + "id":"Element_5_6_1" + }, + { + "type":"text", + "name":"prop_mail", + "label":"Email", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_4_8_2" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "num_dossier", + "id_com", + "section", + "id_parc", + "parc_adresse", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "prop_commune", + "prop_mail", + "prop_tel" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncInstallationForm()", + "nb_cols":11, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":true, + "nb_cols":5, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Parcelle", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"section", + "label":"Section", + "required":true, + "nb_cols":3, + "id":"section_37_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"section", + "order_by":"section", + "id_key":"section", + "attributs":"section|section", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"section_37_1_from" + }, + { + "type":"select", + "name":"id_parc", + "label":"Parcelle", + "required":true, + "nb_cols":3, + "id":"id_parc_3_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"parcelle", + "order_by":"parcelle", + "id_key":"id_par", + "attributs":"id_par|parcelle", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_parc_3_1_from" + }, + { + "type":"label", + "name":"parcelle", + "label":"Id Parcelle", + "nb_cols":3, + "id":"parcelle_38_1" + }, + { + "type":"text", + "name":"parc_sup", + "label":"Superficie", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parc_sup_4_1", + "max_length": 50 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"parc_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"parc_adresse_6_1" + }, + { + "type":"integer", + "name":"code_postal", + "label":"Code Postal", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"code_postal_7_1", + "max_length": 5 + }, + { + "type":"text", + "name":"parc_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"parc_commune_8_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"parc_parcelle_associees", + "label":"Parcelles associées", + "required":false, + "nb_cols":12, + "id":"parc_parcelle_associees_5_1", + "name_to":"parc_parcelle_associees", + "name_from":"parc_parcelle_associees_from", + "size":5, + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "id_key":"id_par", + "label_key":"id_par", + "attributs":"id_par|parcelle", + "order_by":"id_par", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "label_from":"Parcelles disponibles", + "label_to":"Parcelles Associées", + "id_from":"parc_parcelle_associees_5_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Propriétaire", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_titre", + "label":"Titre", + "disabled":false, + "required":false, + "nb_cols":3, + "max_length": 50, + "id":"prop_titre_9_1" + }, + { + "type":"text", + "name":"prop_nom_prenom", + "label":"Nom Prénom", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_nom_prenom_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_adresse_11_1" + }, + { + "type":"integer", + "name":"prop_code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":2, + "id":"prop_code_postal_12_1", + "max_length": 5 + }, + { + "type":"text", + "name":"prop_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"prop_commune_13_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_tel", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"prop_tel_14_1" + }, + { + "type":"email", + "name":"prop_mail", + "label":"Mail", + "required":false, + "nb_cols":6, + "id":"prop_mail_15_1", + "max_length": 50, + "pattern":"^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z0-9])|([-])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Bâtiments", + "nb_cols":12, + "id":"Element_2_10_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"bati_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"bati_type_16_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"bati_type_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_ca_nb_pp", + "label":"Nombre de Personnes", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_pp_17_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_eh", + "label":"Nombre équivalent habitants", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_eh_18_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_chambres", + "label":"Nombre de chambres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_chambres_19_1" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_nb_a_control", + "label":"Nombre de bâti à contrôler", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_nb_a_control_22_1" + }, + { + "type":"date", + "name":"bati_date_mutation", + "label":"Date de mutation", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_date_mutation_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Contraintes", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_zone_enjeu", + "label":"Zone à enjeux", + "required":false, + "nb_cols":3, + "id":"cont_zone_enjeu_25_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_zone_enjeu_25_1_from" + }, + { + "type":"select", + "name":"cont_zone_sage", + "label":"Zone SAGE", + "nb_cols":3, + "id":"cont_zone_sage_26_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "id_from":"cont_zone_sage_26_1_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"cont_zone_autre", + "label":"Autres renseignements (z. humides, z littorale…)", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"cont_zone_autre_27_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"cont_zone_urba", + "label":"Zone PLU", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_urba_28_1" + }, + { + "type":"text", + "name":"cont_zone_anc", + "label":"Zonage assainissement", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_anc_29_1" + }, + { + "type":"select", + "name":"cont_alim_eau_potable", + "label":"Mode dalimentation eau potable", + "required":false, + "nb_cols":4, + "id":"cont_alim_eau_potable_30_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_alim_eau_potable_30_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Puits / Captage", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_usage", + "label":"Usage", + "required":false, + "nb_cols":6, + "id":"cont_puits_usage_31_1", + "id_from":"cont_puits_usage_31_1_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"cont_puits_declaration", + "label":"Déclaré en mairie", + "nb_cols":6, + "id":"cont_puits_declaration_32_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_situation", + "label":"Situation par rapport au traitement", + "required":false, + "nb_cols":6, + "id":"cont_puits_situation_33_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_puits_situation_33_1_from" + }, + { + "type":"select", + "name":"cont_puits_terrain_mitoyen", + "label":"Existe-t-il un puit sur un terrain mitoyen", + "nb_cols":6, + "id":"cont_puits_terrain_mitoyen_34_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:8984" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:8985" + } + ] + }, + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Contrôles", + "nb_cols":12, + "id":"Element_5_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"nb_controle", + "label":"Nombre de Contrôles réalisés", + "nb_cols":4, + "id":"nb_controle_39_1" + }, + { + "type":"label", + "name":"cl_avis", + "label":"Conformité du dernier contrôle", + "nb_cols":4, + "id":"Element_6_22_2" + }, + { + "type":"label", + "name":"next_control", + "label":"Date du prochain contrôle", + "nb_cols":4, + "id":"Element_7_22_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "beforeEvent":"beforeSendingAncInstallationForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_com", + "id_parc", + "parc_sup", + "parc_parcelle_associees", + "parc_adresse", + "code_postal", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "commune", + "prop_tel", + "prop_mail", + "bati_type", + "bati_ca_nb_pp", + "bati_ca_nb_eh", + "bati_ca_nb_chambres", + "bati_nb_a_control", + "bati_date_mutation", + "cont_zone_enjeu", + "cont_zone_sage", + "cont_zone_autre", + "cont_zone_urba", + "cont_zone_anc", + "cont_alim_eau_potable", + "cont_puits_usage", + "cont_puits_declaration", + "cont_puits_situation", + "cont_puits_terrain_mitoyen", + "section", + "parcelle", + "nb_controle", + "insert_button", + "id_installation", + "prop_code_postal", + "prop_commune", + "prop_mail", + "prop_tel", + "cl_avis", + "next_control", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_installation-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_TITLE", + "input_size":"xxs", + "initEvent": "initAncInstallationForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_installation", + "label":"ID", + "nb_cols":2, + "id":"id_installation_1_1" + }, + { + "type":"select", + "name":"id_com", + "label":"Commune", + "required":false, + "nb_cols":4, + "id":"id_com_2_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom", + "order_by":"nom", + "id_key":"id_com", + "attributs":"id_com|nom" + }, + "id_from":"id_com_2_1_from" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° Dossier", + "nb_cols":4, + "id":"num_dossier_35_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_14", + "label":"Parcelle", + "nb_cols":12, + "id":"Element_14_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"section", + "label":"Section", + "required":false, + "nb_cols":3, + "id":"section_37_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"section", + "order_by":"section", + "id_key":"section", + "attributs":"section|section", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"section_37_1_from" + }, + { + "type":"select", + "name":"id_parc", + "label":"Parcelle", + "required":false, + "nb_cols":3, + "id":"parcelle_38_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"parcelle", + "order_by":"parcelle", + "id_key":"id_par", + "attributs":"id_par|parcelle", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"parcelle_38_1_from" + }, + { + "type":"label", + "name":"parcelle", + "label":"Id Parcelle", + "nb_cols":3, + "id":"id_parc_3_1" + }, + { + "type":"text", + "name":"parc_sup", + "label":"Superficie", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"parc_sup_4_1", + "max_length": 50 + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"parc_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"parc_adresse_6_1" + }, + { + "type":"integer", + "name":"code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"code_postal_7_1", + "max_length": 5 + }, + { + "type":"text", + "name":"parc_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"parc_commune_8_1" + } + ] + }, + { + "fields":[ + { + "type":"double_select", + "name":"parc_parcelle_associees", + "label":"Parcelles associées", + "required":false, + "nb_cols":12, + "id":"parc_parcelle_associees_5_1", + "name_to":"parc_parcelle_associees", + "name_from":"parc_parcelle_associees_from", + "id_from":"parc_parcelle_associees_5_1_from", + "size":5, + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "id_key":"id_par", + "label_key":"id_par", + "attributs":"id_par|parcelle", + "order_by":"id_par", + "parents":[ + { + "name":"id_com", + "filter_attr":"id_com", + "filter_equality":"=", + "wait_for_parent":true + }, + { + "name":"section", + "filter_attr":"section", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "label_from":"Parcelles disponibles", + "label_to":"Parcelles associées" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_15", + "label":"Propriétaire", + "nb_cols":12, + "id":"Element_15_6_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_titre", + "label":"Titre", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_titre_9_1" + }, + { + "type":"text", + "name":"prop_nom_prenom", + "label":"Nom Prénom", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 50, + "id":"prop_nom_prenom_10_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_adresse", + "label":"Adresse", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"prop_adresse_11_1" + }, + { + "type":"integer", + "name":"prop_code_postal", + "label":"Code postal", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"prop_code_postal_12_1", + "max_length": 5 + }, + { + "type":"text", + "name":"prop_commune", + "label":"Commune", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"prop_commune_13_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"prop_tel", + "label":"Téléphone", + "disabled":false, + "required":false, + "nb_cols":6, + "max_length": 10, + "pattern":"^0[0-9]{9}$", + "id":"prop_tel_14_1" + }, + { + "type":"email", + "name":"prop_mail", + "label":"Email", + "required":false, + "nb_cols":6, + "id":"prop_mail_15_1", + "max_length": 50, + "pattern":"^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z0-9])|([-])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_16", + "label":"Bâtiments", + "nb_cols":12, + "id":"Element_16_10_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"bati_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"bati_type_16_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"bati_type_16_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_ca_nb_pp", + "label":"Nombre de personnes", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_pp_17_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_eh", + "label":"Nombre équivalent habitant", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_eh_18_1" + }, + { + "type":"integer", + "name":"bati_ca_nb_chambres", + "label":"Nombre de chambres", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_ca_nb_chambres_19_1" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"bati_nb_a_control", + "label":"Nombre de bâti à contrôler", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"bati_nb_a_control_22_1" + }, + { + "type":"date", + "name":"bati_date_mutation", + "label":"Date de mutation", + "nb_cols":4, + "id":"bati_date_mutation_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_17", + "label":"Contraintes", + "nb_cols":12, + "id":"Element_17_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_zone_enjeu", + "label":"Zone à enjeux", + "required":false, + "nb_cols":4, + "id":"cont_zone_enjeu_25_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_zone_enjeu_25_1_from" + }, + { + "type":"select", + "name":"cont_zone_sage", + "label":"Zones SAGE", + "nb_cols":3, + "id":"cont_zone_sage_26_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:9433" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:9434" + } + ] + }, + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"text", + "name":"cont_zone_autre", + "label":"Autres renseignements (z. humides, z littorale…)", + "disabled":false, + "required":false, + "nb_cols":5, + "max_length": 50, + "id":"cont_zone_autre_27_1" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"cont_zone_urba", + "label":"Zones PLU", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_urba_28_1" + }, + { + "type":"text", + "name":"cont_zone_anc", + "label":"Zonage assainissement", + "disabled":false, + "required":false, + "nb_cols":4, + "max_length": 50, + "id":"cont_zone_anc_29_1" + }, + { + "type":"select", + "name":"cont_alim_eau_potable", + "label":"Mode d'alimentation eau potable", + "required":false, + "nb_cols":4, + "id":"cont_alim_eau_potable_30_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_alim_eau_potable_30_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_18", + "label":"Puits / Captage", + "nb_cols":12, + "id":"Element_18_18_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_usage", + "label":"Usage", + "nb_cols":6, + "id":"cont_puits_usage_31_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_puits_usage_31_1_from" + }, + { + "type":"select", + "name":"cont_puits_declaration", + "label":"Déclaré en mairie", + "nb_cols":6, + "id":"cont_puits_declaration_32_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"cont_puits_situation", + "label":"Situation par rapport au traitement", + "required":false, + "nb_cols":6, + "id":"cont_puits_situation_33_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"cont_puits_situation_33_1_from" + }, + { + "type":"select", + "name":"cont_puits_terrain_mitoyen", + "label":"Existe-t-il un puit sur un terrain mitoyen ?", + "nb_cols":6, + "id":"cont_puits_terrain_mitoyen_34_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:9455" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:9456" + } + ] + }, + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_19", + "label":"Contrôles", + "nb_cols":12, + "id":"Element_19_21_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"nb_controle", + "label":"Nombre de contrôles", + "nb_cols":4, + "id":"nb_controle_39_1" + }, + { + "type":"label", + "name":"cl_avis", + "label":"Conformité du dernier contrôle", + "nb_cols":4, + "id":"Element_20_22_2" + }, + { + "type":"label", + "name":"next_control", + "label":"Date de prochain contrôle", + "nb_cols":4, + "id":"Element_21_22_3" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "beforeEvent":"beforeSendingAncInstallationForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_installation", + "id_com", + "id_parc", + "parc_sup", + "parc_parcelle_associees", + "parc_adresse", + "code_postal", + "parc_commune", + "prop_titre", + "prop_nom_prenom", + "prop_adresse", + "prop_code_postal", + "prop_commune", + "prop_tel", + "prop_mail", + "bati_type", + "bati_ca_nb_pp", + "bati_ca_nb_eh", + "bati_ca_nb_chambres", + "bati_nb_a_control", + "bati_date_mutation", + "cont_zone_enjeu", + "cont_zone_sage", + "cont_zone_autre", + "cont_zone_urba", + "cont_zone_anc", + "cont_alim_eau_potable", + "cont_puits_usage", + "cont_puits_declaration", + "cont_puits_situation", + "cont_puits_terrain_mitoyen", + "num_dossier", + "section", + "parcelle", + "nb_controle", + "update_button", + "Element_14", + "Element_15", + "Element_16", + "Element_17", + "Element_18", + "Element_19", + "cl_avis", + "next_control" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"communes", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_commune" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"sections", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_section" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"parcelles", + "description":"", + "parameters":{ + "schema":"s_cadastre", + "table":"v_vmap_parcelle_all_geom" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"bati_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "bati_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_zone_enjeu", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_zone_enjeu"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_usage", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_usage"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_alim_eau_potable", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_alim_eau_potable"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_situation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_situation"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_zone_sage", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "installation", "nom_liste": "cont_zone_sage"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_declaration", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_declaration"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"cont_puits_terrain_mitoyen", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "installation", "nom_liste": "cont_puits_terrain_mitoyen"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + } + } +} diff --git a/module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json b/module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json new file mode 100755 index 00000000..efafcecb --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_installation_installation_documents.json @@ -0,0 +1,143 @@ +{ + "display":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photo_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F", + "disabled":false, + "required":false, + "nb_cols":6, + "displayOnly": true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"document_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F", + "disabled":false, + "required":false, + "nb_cols":6, + "displayOnly": true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ] + }, + "search":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ] + }, + "insert":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()" + }, + "update":{ + "name":"anc_saisie_anc_installation_installation_documents-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"image_wsdata", + "name":"photo_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"photos_f_1_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"document_f", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"document_f_1_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()" + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json b/module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json new file mode 100755 index 00000000..3fa7403c --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_installation_installation_suivi.json @@ -0,0 +1,414 @@ +{ + "display":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_4_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de Création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_2_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_3_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"archivage", + "label":"Archivage", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"archivage_6_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"Observations", + "nb_cols":12, + "id":"observations_1_1" + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Emplacement", + "required":false, + "nb_cols":12, + "id":"geom_7_1", + "style":{ + "height":"350px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 211050.84969634877, + 6832085.477172857, + 279507.64704437123, + 6866071.1212463435 + ], + "coord":[ + 245279.24837036, + 6849078.2992096 + ], + "scale":366422 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":false, + "ED":false, + "DP":false, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "observations", + "maj", + "maj_date", + "create", + "create_date", + "archivage", + "geom", + "display_button" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_installation_installation_suivi-form", + "title":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_4_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_2_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_3_1" + } + ] + }, + { + "fields":[ + { + "type":"radio", + "name":"archivage", + "label":"Archivage", + "nb_cols":12, + "id":"archivage_6_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true, + "$$hashKey":"object:18271" + }, + { + "label":"Non", + "value":false, + "$$hashKey":"object:18272" + } + ] + } + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"observations", + "label":"ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_OBSERVATIONS", + "nb_cols":12, + "id":"observations_1_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"map_osm", + "name":"geom", + "label":"Emplacement", + "required":false, + "nb_cols":12, + "id":"geom_7_1", + "style":{ + "height":"350px" + }, + "map_options":{ + "proj":"EPSG:2154", + "type":"OSM", + "output_format": "ewkt", + "center":{ + "extent":[ + 210662.44233551028, + 6828978.218286132, + 277954.0176010132, + 6862963.862359619 + ], + "coord":[ + 244308.22996826173, + 6845971.040322876 + ], + "scale":366430 + }, + "controls":{ + "MP":true, + "ZO":true, + "SL":true, + "CP":true + }, + "layers":[ + + ], + "interactions":{ + "multi_geometry":false, + "full_screen":true, + "RA":false, + "RO":true, + "ED":true, + "DP":true, + "DL":false, + "DPol":false, + "SE":true + }, + "draw_color":"rgba(54,184,255,0.6)", + "contour_color":"rgba(0,0,0,0.4)", + "contour_size":2, + "circle_radius":6, + "features":[ + + ], + "coord_accuracy":8 + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "initEvent": "initAncInstallationSuiviForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "observations", + "maj", + "maj_date", + "create", + "create_date", + "archivage", + "geom", + "update_button" + ] + } + ] + } + }, + "datasources":{ + + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_pretraitement.json b/module/forms/anc_saisie/anc_saisie_anc_pretraitement.json new file mode 100755 index 00000000..8af4f2ef --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_pretraitement.json @@ -0,0 +1,2332 @@ +{ + "display":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "initEvent": "initAncPretraitementForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_pretraitement_1_1" + }, + { + "type":"label", + "name":"id_controle", + "label":"Contrôle", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"id_controle_2_1" + }, + { + "type":"label", + "name":"num_dossier", + "label":"N° dossier", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"num_dossier_43_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_type", + "label":"Type de prétraitement", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_type_3_1" + }, + { + "type":"label", + "name":"ptr_volume", + "label":"Volume (en litres)", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1" + }, + { + "type":"label", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1" + }, + { + "type":"label", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "disabled":false, + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1" + }, + { + "type":"label", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1" + }, + { + "type":"label", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1" + }, + { + "type":"label", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1" + }, + { + "type":"label", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1" + }, + { + "type":"label", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose en terrain hydrometrique ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1" + }, + { + "type":"label", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_renfor", + "label":"Si remblais important, ouvrage renforcé?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_renfor_21_1" + }, + { + "type":"label", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1" + }, + { + "type":"label", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_12_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1" + }, + { + "type":"label", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"label", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1" + }, + { + "type":"label", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"label", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1" + }, + { + "type":"label", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_commentaire_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Suivi", + "nb_cols":12, + "id":"Element_4_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "disabled":false, + "required":false, + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_type_eau", + "ptr_reglementaire", + "ptr_destination", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_dalle", + "ptr_im_renfor", + "ptr_im_puit", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "display_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "Element_5", + "ptr_renforce", + "ptr_verif_mise_en_eau" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "id_from":"Element_0_1_1_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + } + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":false, + "nb_cols":4, + "id":"Element_6_1_1", + "id_from":"Element_6_1_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + } + }, + { + "type":"select", + "name":"ptr_type", + "label":"Type", + "required":false, + "nb_cols":4, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "ptr_type", + "id_controle" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "initEvent": "initAncPretraitementForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":6, + "id":"num_dossier_43_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"num_dossier_43_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":6, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Description", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "disabled":false, + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose en terrain hydrometrique ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_renfor", + "label":"Si remblais important, ouvrage renforcé?", + "required":false, + "nb_cols":4, + "id":"ptr_im_renfor_21_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_renfor_21_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + }, + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Entretien", + "nb_cols":12, + "id":"Element_2_17_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Vidange", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_type_eau", + "ptr_reglementaire", + "ptr_destination", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_dalle", + "ptr_im_renfor", + "ptr_im_puit", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "id_installation", + "insert_button", + "Element_0", + "Element_1", + "Element_2", + "Element_3", + "Element_4", + "ptr_renforce", + "ptr_verif_mise_en_eau" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_pretraitement-form", + "title":"ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "initEvent": "initAncPretraitementForm()", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_pretraitement", + "label":"ID", + "nb_cols":4, + "id":"id_pretraitement_1_1" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation_42_1", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_42_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Description", + "nb_cols":12, + "id":"Element_4_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_type", + "label":"Type de prétraitement", + "required":true, + "nb_cols":3, + "id":"ptr_type_3_1", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_3_1_from" + }, + { + "type":"editable_select", + "name":"ptr_volume", + "label":"Volume (en litres)", + "required":false, + "nb_cols":3, + "id":"ptr_volume_4_1", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_volume_4_1_from" + }, + { + "type":"select", + "name":"ptr_marque", + "label":"Marque de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_marque_5_1", + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_marque_5_1_from" + }, + { + "type":"select", + "name":"ptr_materiau", + "label":"Matériau de l'ouvrage", + "required":false, + "nb_cols":3, + "id":"ptr_materiau_6_1", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_materiau_6_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_pose", + "label":"Est-il convenablement posé ?", + "required":false, + "nb_cols":4, + "id":"ptr_pose_7_1", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_pose_7_1_from" + }, + { + "type":"select", + "name":"ptr_adapte", + "label":"Volume adapté à l'utilisation?", + "required":false, + "nb_cols":4, + "id":"ptr_adapte_8_1", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_adapte_8_1_from" + }, + { + "type":"select", + "name":"ptr_conforme_projet", + "label":"Dispositif conforme au projet validé", + "required":false, + "nb_cols":4, + "id":"ptr_conforme_projet_9_1", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_conforme_projet_9_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_renforce", + "label":"Si remblaiement important, Fosse renforcée ?", + "required":false, + "nb_cols":4, + "id":"ptr_renforce_11_1", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_renforce_11_1_from" + }, + { + "type":"select", + "name":"ptr_verif_mise_en_eau", + "label":"Mise en eau du prétraitement ?", + "required":false, + "nb_cols":4, + "id":"ptr_verif_mise_en_eau_12_1", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_verif_mise_en_eau_12_1_from" + }, + { + "type":"select", + "name":"ptr_type_eau", + "label":"Type d'eau collectée", + "required":false, + "nb_cols":4, + "id":"ptr_type_eau_13_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_type_eau_13_1_from" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"ptr_cloison", + "label":"Dégradations constatées ?", + "required":false, + "nb_cols":12, + "id":"ptr_cloison_16_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Implantation", + "nb_cols":12, + "id":"Element_5_8_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_distance", + "label":"Distance de l'habitation inférieure à 10m", + "required":false, + "nb_cols":4, + "id":"ptr_im_distance_18_1", + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_distance_18_1_from" + }, + { + "type":"select", + "name":"ptr_im_hydrom", + "label":"Si nappe, respect des conditions de pose en terrain hydrometrique ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_hydrom_19_1", + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_hydrom_19_1_from" + }, + { + "type":"select", + "name":"ptr_im_dalle", + "label":"Si dispositif enfouie sous zone de circulation, dalle de répartition ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_dalle_20_1", + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_dalle_20_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_renfor", + "label":"Si remblais important, ouvrage renforcé?", + "required":false, + "nb_cols":4, + "id":"ptr_im_renfor_21_1", + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_renfor_21_1_from" + }, + { + "type":"select", + "name":"ptr_im_puit", + "label":"Présence d'un puit de décompression ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_puit_22_1", + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_puit_22_1_from" + }, + { + "type":"select", + "name":"ptr_im_fixation", + "label":"Le prétraitement est-il fixé à une dalle d’ancrage ?", + "required":false, + "nb_cols":4, + "id":"ptr_im_fixation_23_1", + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_fixation_23_1_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_im_acces", + "label":"Le dispositif est-il accessible ?", + "required":false, + "nb_cols":12, + "id":"ptr_im_acces_24_1", + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_im_acces_24_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Entretien", + "nb_cols":12, + "id":"Element_6_13_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"ptr_et_degrad", + "label":"Signes de dégradation ?", + "required":false, + "nb_cols":6, + "id":"ptr_et_degrad_25_1", + "datasource":{ + "datasource_id":"datasource_21", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_degrad_25_1_from" + }, + { + "type":"select", + "name":"ptr_et_real", + "label":"L'entretien est-il réalisé?", + "required":false, + "nb_cols":6, + "id":"ptr_et_real_26_1", + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_et_real_26_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Vidange", + "nb_cols":12, + "id":"Element_0_15_1" + } + ] + }, + { + "fields":[ + { + "type":"date", + "name":"ptr_vi_date", + "label":"Date de la dernière vidange", + "nb_cols":4, + "id":"ptr_vi_date_27_1" + }, + { + "type":"select", + "name":"ptr_vi_justi", + "label":"Justificatif de vidange disponible ?", + "required":false, + "nb_cols":4, + "id":"ptr_vi_justi_28_1", + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_justi_28_1_from" + }, + { + "type":"select", + "name":"ptr_vi_entr", + "label":"Dénomination de l'entreprise ayant réalisé la vidange", + "required":false, + "nb_cols":4, + "id":"ptr_vi_entr_29_1", + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"nom_entreprise", + "order_by":"nom_entreprise", + "id_key":"nom_entreprise", + "attributs":"nom_entreprise|nom_entreprise" + }, + "id_from":"ptr_vi_entr_29_1_from" + } + ] + }, + { + "fields":[ + { + "type":"integer", + "name":"ptr_vi_bord", + "label":"N° de bordereau de suivi des matières de vidanges", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_bord_30_1" + }, + { + "type":"select", + "name":"ptr_vi_dest", + "label":"Destination des matières de vidanges", + "required":false, + "nb_cols":4, + "id":"ptr_vi_dest_31_1", + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"ptr_vi_dest_31_1_from" + }, + { + "type":"integer", + "name":"ptr_vi_perc", + "label":"Pourcentage de boue dans la fosse", + "disabled":false, + "required":false, + "nb_cols":4, + "id":"ptr_vi_perc_32_1" + } + ] + }, + { + "fields":[ + { + "type":"tinymce", + "name":"ptr_commentaire", + "label":"Commentaires", + "nb_cols":12, + "id":"ptr_commentaire_17_1", + "nb_rows":10 + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Suivi", + "nb_cols":12, + "id":"Element_1_18_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"create_35_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"create_date_36_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"maj_33_1" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"maj_date_34_1" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "id_pretraitement", + "id_controle", + "ptr_type", + "ptr_volume", + "ptr_marque", + "ptr_materiau", + "ptr_pose", + "ptr_adapte", + "ptr_conforme_projet", + "ptr_type_eau", + "ptr_reglementaire", + "ptr_destination", + "ptr_cloison", + "ptr_commentaire", + "ptr_im_distance", + "ptr_im_hydrom", + "ptr_im_dalle", + "ptr_im_renfor", + "ptr_im_puit", + "ptr_im_fixation", + "ptr_im_acces", + "ptr_et_degrad", + "ptr_et_real", + "ptr_vi_date", + "ptr_vi_justi", + "ptr_vi_entr", + "ptr_vi_bord", + "ptr_vi_dest", + "ptr_vi_perc", + "maj", + "maj_date", + "create", + "create_date", + "id_installation", + "update_button", + "Element_4", + "Element_5", + "Element_6", + "Element_0", + "Element_1", + "Element_2", + "ptr_renforce", + "ptr_verif_mise_en_eau" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_volume", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_volume"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_materiau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_materiau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_pose", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_pose"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_adapte", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_adapte"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_conforme_projet", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_conforme_projet"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_dalle_repartition", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_dalle_repartition"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_renforce", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_renforce"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_verif_mise_en_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_verif_mise_en_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_type_eau", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_type_eau"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_reglementaire", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_reglementaire"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_distance", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_distance"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_hydrom", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_hydrom"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_dalle", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_dalle"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_renfor", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_renfor"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_puit", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_puit"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_fixation", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_fixation"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_im_acces", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_im_acces"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_degrad", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_degrad"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_et_real", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_et_real"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_justi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_entr", + "description":"", + "parameters":{ + "filter":{"vidangeur": true}, + "schema":"s_anc", + "table":"param_entreprise" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_vi_justi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_vi_dest"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"ptr_marque", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "pretraitement", "nom_liste": "ptr_marque"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + } + } +} \ No newline at end of file diff --git a/module/forms/anc_saisie/anc_saisie_anc_traitement.json b/module/forms/anc_saisie/anc_saisie_anc_traitement.json new file mode 100755 index 00000000..6475ffa6 --- /dev/null +++ b/module/forms/anc_saisie/anc_saisie_anc_traitement.json @@ -0,0 +1,3776 @@ +{ + "display":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE_DISPLAY", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_anc_traitement", + "label":"Identifiant", + "nb_cols":4, + "id":"Element_6_1_2" + }, + { + "type":"label", + "name":"id_anc_controle", + "label":"Identifiant de contrôle", + "nb_cols":4, + "id":"Element_0_1_1" + }, + { + "type":"label", + "name":"tra_type", + "label":"Type de traitement", + "nb_cols":4, + "id":"Element_0_1_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_nb", + "label":"Nombre de tranchées", + "nb_cols":4, + "id":"Element_1_3_1" + }, + { + "type":"label", + "name":"tra_long", + "label":"Longueur (en m)", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"label", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"label", + "name":"tra_larg", + "label":"Largeur (en m)", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"label", + "name":"tra_surf", + "label":"Surface (en m²)", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"label", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "nb_cols":4, + "id":"Element_1_4_3" + }, + { + "type":"label", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"label", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "nb_cols":4, + "id":"Element_1_5_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_hauteur", + "label":"Hauteur", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "nb_cols":6, + "id":"Element_2_7_1" + }, + { + "type":"label", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "nb_cols":6, + "id":"Element_2_7_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "nb_cols":6, + "id":"Element_2_8_1" + }, + { + "type":"label", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "nb_cols":6, + "id":"Element_2_8_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1" + }, + { + "type":"label", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2" + }, + { + "type":"label", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1" + }, + { + "type":"label", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme aux filières d'assainissement non collectif", + "nb_cols":8, + "id":"Element_3_11_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3" + }, + { + "type":"label", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1" + }, + { + "type":"label", + "name":"tra_vm_ht_terre_veget", + "label":"Hauteur de terre vegetale de 20 cm au-dessus des drains", + "nb_cols":4, + "id":"Element_3_12_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1" + }, + { + "type":"label", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3" + }, + { + "type":"label", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1" + }, + { + "type":"label", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_4_16_2" + }, + { + "type":"label", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "nb_cols":4, + "id":"Element_4_16_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "nb_cols":4, + "id":"Element_6_19_1" + }, + { + "type":"label", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2" + }, + { + "type":"label", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2" + }, + { + "type":"label", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "nb_cols":4, + "id":"Element_6_22_1" + }, + { + "type":"label", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2" + }, + { + "type":"label", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":true + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"display_button", + "id":"display_button", + "buttons":[ + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "display_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_hab", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_ht_terre_veget", + "tra_vm_tuy_perf", + "tra_vm_bon_mat", + "tra_vm_sab_ep", + "tra_vm_sab_qual", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "Element_0", + "Element_6", + "Element_7", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "tra_vm_geomembrane" + ] + } + ] + } + }, + "search":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":false, + "nb_cols":4, + "id":"Element_0_1_1", + "datasource":{ + "datasource_id":"datasource_12", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":4, + "id":"Element_0_1_2", + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_1_2_from" + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":false, + "nb_cols":4, + "id":"Element_0_1_3", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_0_1_3_from" + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-xs", + "nb_cols":12, + "name":"search_button", + "id":"search_button", + "buttons":[ + { + "type":"button", + "name":"search", + "label":"FORM_SEARCH_BUTTON", + "class":"btn-primary", + "event":"setGridFilter()" + }, + { + "type":"reset", + "name":"reset", + "label":"FORM_RESET_BUTTON", + "class":"btn-primary", + "event":"resetGridFilter()" + } + ] + } + ] + } + ], + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "search_button", + "id_installation", + "id_controle", + "tra_type" + ] + } + ] + } + }, + "insert":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE_INSERT", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":4, + "id":"id_installation", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"id_installation_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Contrôle", + "required":true, + "nb_cols":4, + "id":"id_controle_2_1", + "datasource":{ + "datasource_id":"datasource_39", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"id_controle_2_1_from" + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":4, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme aux filières d'assainissement non collectif", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + }, + { + "type":"select", + "name":"tra_vm_ht_terre_veget", + "label":"Hauteur de terre vegetale de 20 cm au-dessus des drains", + "nb_cols":4, + "id":"Element_3_12_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "id_from":"Element_3_12_2_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"insert_button", + "id":"insert_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_CREATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncTraitementForm()", + "event":"sendSimpleForm()", + "afterEvent":"editSectionForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "insert_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_hab", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_ht_terre_veget", + "tra_vm_tuy_perf", + "tra_vm_bon_mat", + "tra_vm_sab_ep", + "tra_vm_sab_qual", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "Element_0", + "Element_7", + "tra_vm_geomembrane" + ] + } + ] + } + }, + "update":{ + "name":"anc_saisie_anc_traitement-form", + "title":"ANC_SAISIE_ANC_TRAITEMENT_TITLE_UPDATE", + "input_size":"xxs", + "nb_cols":12, + "javascript":false, + "rows":[ + { + "fields":[ + { + "type":"label", + "name":"id_traitement", + "label":"ID", + "nb_cols":3, + "id":"Element_6_1_2" + }, + { + "type":"select", + "name":"id_installation", + "label":"Installation", + "required":true, + "nb_cols":3, + "id":"Element_6_1_2", + "datasource":{ + "datasource_id":"datasource_38", + "sort_order":"ASC", + "distinct":"true", + "label_key":"num_dossier", + "order_by":"num_dossier", + "id_key":"id_installation", + "attributs":"id_installation|num_dossier" + }, + "id_from":"Element_6_1_2_from" + }, + { + "type":"select", + "name":"id_controle", + "label":"Identifiant de contrôle", + "nb_cols":3, + "id":"Element_0_1_1", + "required":true, + "datasource":{ + "datasource_id":"datasource_13", + "sort_order":"ASC", + "distinct":"true", + "label_key":"id_controle", + "order_by":"id_controle", + "id_key":"id_controle", + "attributs":"id_controle|id_controle", + "parents":[ + { + "name":"id_installation", + "filter_attr":"id_installation", + "filter_equality":"=", + "wait_for_parent":true + } + ] + }, + "id_from":"Element_0_1_1_from" + }, + { + "type":"select", + "name":"tra_type", + "label":"Type de traitement", + "required":true, + "nb_cols":3, + "id":"Element_0_1_2", + "id_from":"Element_0_1_2_from", + "datasource":{ + "datasource_id":"datasource_1", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_0", + "label":"Dimensionnement", + "nb_cols":12, + "id":"Element_0_2_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_nb", + "label":"Nombre de tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_3_1", + "id_from":"Element_1_3_1_from", + "datasource":{ + "datasource_id":"datasource_2", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_long", + "label":"Longueur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_2" + }, + { + "type":"number", + "name":"tra_longueur", + "label":"Longueur de chaque tranchée (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_4" + }, + { + "type":"number", + "name":"tra_larg", + "label":"Largeur (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_3_3" + }, + { + "type":"number", + "name":"tra_surf", + "label":"Surface (en m²)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_2" + }, + { + "type":"number", + "name":"tra_tot_lin", + "label":"Linéaire total (en m)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_4_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_largeur", + "label":"Largeur des tranchées", + "required":false, + "nb_cols":4, + "id":"Element_1_4_3", + "id_from":"Element_1_4_3_from", + "datasource":{ + "datasource_id":"datasource_40", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"number", + "name":"tra_profond", + "label":"Profondeur des tranchées (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_3" + }, + { + "type":"number", + "name":"tra_profondeur", + "label":"Profondeur (en cm)", + "required":false, + "pattern":"", + "nb_cols":4, + "id":"Element_1_5_2" + } + ] + }, + { + "fields":[ + { + "type":"text", + "name":"tra_hauteur", + "label":"Hauteur", + "required":false, + "pattern":"", + "nb_cols":6, + "id":"Element_1_5_1" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_1", + "label":"Implantation", + "nb_cols":12, + "id":"Element_1_6_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_hab", + "label":"Distance habitation > 5m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_1", + "id_from":"Element_2_7_1_from", + "datasource":{ + "datasource_id":"datasource_3", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_lim_parc", + "label":"Limite parcelle > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_7_2", + "id_from":"Element_2_7_2_from", + "datasource":{ + "datasource_id":"datasource_4", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_dist_veget", + "label":"Distance végétation > 3m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_1", + "id_from":"Element_2_8_1_from", + "datasource":{ + "datasource_id":"datasource_5", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_dist_puit", + "label":"Distance puit 35m", + "required":false, + "nb_cols":6, + "id":"Element_2_8_2", + "id_from":"Element_2_8_2_from", + "datasource":{ + "datasource_id":"datasource_6", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_2", + "label":"Vérification des matériaux", + "nb_cols":12, + "id":"Element_2_9_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_racine", + "label":"Présence d'un film anti-racine", + "nb_cols":4, + "id":"Element_3_10_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_14", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_1_from" + }, + { + "type":"select", + "name":"tra_vm_humidite", + "label":"Présence d'un film anti-humidité", + "nb_cols":4, + "id":"Element_3_10_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_15", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_2_from" + }, + { + "type":"select", + "name":"tra_vm_imper", + "label":"Présence d'un film imperméable", + "nb_cols":4, + "id":"Element_3_10_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_16", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_10_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_geomembrane", + "label":"Présence d'une géomembrane", + "nb_cols":4, + "id":"Element_3_11_0", + "datasource":{ + "datasource_id":"datasource_41", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_0_from" + }, + { + "type":"select", + "name":"tra_vm_geogrille", + "label":"Présence d'une géo-grille", + "nb_cols":4, + "id":"Element_3_11_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_17", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_1_from" + }, + { + "type":"select", + "name":"tra_vm_grav_qual", + "label":"Graviers de qualité conforme aux filières d'assainissement non collectif", + "nb_cols":8, + "id":"Element_3_11_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_18", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_2_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_grav_ep", + "label":"Epaisseur conforme des graviers", + "nb_cols":4, + "id":"Element_3_11_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_19", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_11_3_from" + }, + { + "type":"select", + "name":"tra_vm_geo_text", + "label":"Présence d'un géotextile", + "nb_cols":4, + "id":"Element_3_12_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_20", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_1_from" + }, + { + "type":"select", + "name":"tra_vm_ht_terre_veget", + "label":"Hauteur de terre vegetale de 20 cm au-dessus des drains", + "nb_cols":4, + "id":"Element_3_12_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "id_from":"Element_3_12_2_from", + "datasource":{ + "datasource_id":"datasource_7", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_tuy_perf", + "label":"Les tuyaux d'épandage mis en place sont-ils des tuyaux rigides perforés prévus pour l'assainissement non collectif, orifices dirigés vers le bas", + "nb_cols":12, + "id":"Element_3_12_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_22", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_12_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_vm_bon_mat", + "label":"Les bons de matériaux ont-ils été fournis", + "nb_cols":4, + "id":"Element_3_13_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_23", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_1_from" + }, + { + "type":"select", + "name":"tra_vm_sab_qual", + "label":"Sable de qualité conforme", + "nb_cols":4, + "id":"Element_3_13_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_25", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_3_from" + }, + { + "type":"select", + "name":"tra_vm_sab_ep", + "label":"Epaisseur de sable de 0.7", + "nb_cols":4, + "id":"Element_3_13_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_24", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_3_13_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_3", + "label":"Regard de repartition", + "nb_cols":12, + "id":"Element_3_15_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_mat", + "label":"Matériau du regard de répartition", + "nb_cols":4, + "id":"Element_4_16_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_26", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_16_1_from" + }, + { + "type":"select", + "name":"tra_regrep_affl", + "label":"Affleure-t-il le niveau du sol", + "required":false, + "nb_cols":4, + "id":"Element_4_16_2", + "id_from":"Element_4_16_2_from", + "datasource":{ + "datasource_id":"datasource_8", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regrep_equi", + "label":"Equirépartition des eaux", + "required":false, + "nb_cols":4, + "id":"Element_4_16_3", + "id_from":"Element_4_16_3_from", + "datasource":{ + "datasource_id":"datasource_9", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regrep_perf", + "label":"Les tuyaux de répartition sont-ils non perforés", + "nb_cols":12, + "id":"Element_4_17_1", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_29", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_1_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_5", + "label":"Regard de bouclage", + "nb_cols":12, + "id":"Element_5_17_3" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_mat", + "label":"Matériau du regard de bouclage", + "required":false, + "nb_cols":4, + "id":"Element_6_19_1", + "id_from":"Element_6_19_1_from", + "datasource":{ + "datasource_id":"datasource_10", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regbl_affl", + "label":"Affleure-t-il le niveau de sol", + "nb_cols":4, + "id":"Element_6_19_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_2_from" + }, + { + "type":"select", + "name":"tra_regbl_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_6_19_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_32", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_19_3_from" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regbl_epand", + "label":"Les tuyaux d'épandage sont raccordés de manière indépendante au regard de bouclage", + "nb_cols":8, + "id":"Element_4_17_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_33", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_4_17_2_from" + }, + { + "type":"select", + "name":"tra_regbl_perf", + "label":"Les tuyaux de bouclage sont-ils perforés", + "nb_cols":4, + "id":"Element_6_20_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_34", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_6_20_2_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_4", + "label":"Regard de collecte", + "nb_cols":12, + "id":"Element_4_22_1" + } + ] + }, + { + "fields":[ + { + "type":"select", + "name":"tra_regcol_mat", + "label":"Matériau du regard de collecte", + "required":false, + "nb_cols":4, + "id":"Element_6_22_1", + "id_from":"Element_6_22_1_from", + "datasource":{ + "datasource_id":"datasource_11", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + } + }, + { + "type":"select", + "name":"tra_regcol_affl", + "label":"Affleure-t-il le niveau du sol", + "nb_cols":4, + "id":"Element_7_22_2", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_36", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_7_22_2_from" + }, + { + "type":"select", + "name":"tra_regcol_hz", + "label":"Est-il posé horizontalement", + "nb_cols":4, + "id":"Element_8_22_3", + "options":{ + "choices":[ + { + "label":"Oui", + "value":true + }, + { + "label":"Non", + "value":false + } + ] + }, + "datasource":{ + "datasource_id":"datasource_37", + "sort_order":"ASC", + "distinct":"true", + "label_key":"alias", + "order_by":"alias", + "id_key":"valeur", + "attributs":"valeur|alias" + }, + "id_from":"Element_8_22_3_from" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_6", + "label":"Suivi", + "nb_cols":12, + "id":"Element_6_23_1" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"create", + "label":"Auteur", + "nb_cols":6, + "id":"Element_0_3_1" + }, + { + "type":"label", + "name":"create_date", + "label":"Date de création", + "nb_cols":6, + "id":"Element_0_3_2" + } + ] + }, + { + "fields":[ + { + "type":"label", + "name":"maj", + "label":"Mise à jour", + "nb_cols":6, + "id":"Element_0_3_2" + }, + { + "type":"label", + "name":"maj_date", + "label":"Date de mise à jour", + "nb_cols":6, + "id":"Element_0_3_3" + } + ] + }, + { + "fields":[ + { + "type":"title", + "name":"Element_7", + "label":"Documents", + "nb_cols":12, + "id":"Element_7_26_1" + } + ] + }, + { + "fields":[ + { + "type":"image_wsdata", + "name":"photos_f", + "label":"Photos", + "nb_cols":12, + "id":"Element_0_2_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"fiche_f", + "label":"Fiche Entretien", + "nb_cols":12, + "id":"Element_0_3_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"schema_f", + "label":"Schéma de principe", + "nb_cols":12, + "id":"Element_0_4_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"documents_f", + "label":"Documents", + "nb_cols":12, + "id":"Element_0_5_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"file_wsdata", + "name":"plan_f", + "label":"Plan de recolement", + "nb_cols":12, + "id":"Element_0_6_1", + "displayOnly":false + } + ] + }, + { + "fields":[ + { + "type":"button", + "class":"btn-ungroup btn-group-sm", + "nb_cols":12, + "name":"update_button", + "id":"update_button", + "buttons":[ + { + "type":"submit", + "name":"form_submit", + "label":"FORM_UPDATE", + "class":"btn-primary" + }, + { + "type":"button", + "name":"return_list", + "label":"FORM_RETURN_LIST", + "class":"btn-primary", + "event":"setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initAncTraitementForm()", + "event":"sendSimpleForm()", + "tabs":{ + "position":"top", + "list":[ + { + "label":"Tab 0", + "elements":[ + "update_button", + "id_controle", + "tra_type", + "id_traitement", + "tra_nb", + "tra_long", + "tra_longueur", + "tra_larg", + "tra_tot_lin", + "tra_surf", + "tra_largeur", + "tra_hauteur", + "tra_profondeur", + "tra_profond", + "Element_1", + "tra_dist_hab", + "tra_dist_lim_parc", + "tra_dist_veget", + "tra_dist_puit", + "Element_2", + "tra_vm_racine", + "tra_vm_humidite", + "tra_vm_imper", + "tra_vm_geogrille", + "tra_vm_grav_qual", + "tra_vm_grav_ep", + "tra_vm_geo_text", + "tra_vm_ht_terre_veget", + "tra_vm_tuy_perf", + "tra_vm_bon_mat", + "tra_vm_sab_ep", + "tra_vm_sab_qual", + "Element_3", + "tra_regrep_mat", + "tra_regrep_affl", + "tra_regrep_equi", + "tra_regrep_perf", + "tra_regbl_epand", + "Element_5", + "tra_regbl_mat", + "tra_regbl_affl", + "tra_regbl_hz", + "tra_regbl_perf", + "Element_4", + "tra_regcol_mat", + "tra_regcol_affl", + "tra_regcol_hz", + "id_installation", + "Element_0", + "Element_6", + "Element_7", + "maj", + "maj_date", + "create", + "create_date", + "photos_f", + "fiche_f", + "schema_f", + "documents_f", + "plan_f", + "tra_vm_geomembrane" + ] + } + ] + } + }, + "datasources":{ + "datasource_1":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_type", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_type"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_1" + }, + "datasource_2":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_nb", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_nb"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_2" + }, + "datasource_3":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_hab", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_hab"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_4":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_lim_parc", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_lim_parc"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_4" + }, + "datasource_5":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_5" + }, + "datasource_6":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_dist_puit", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_dist_puit"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_6" + }, + "datasource_7":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_7" + }, + "datasource_8":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_8" + }, + "datasource_9":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_9" + }, + "datasource_10":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_10" + }, + "datasource_11":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"param_liste", + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"} + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_11" + }, + "datasource_12":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_12" + }, + "datasource_13":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_13" + }, + "datasource_14":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_racine", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_racine"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_14" + }, + "datasource_15":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_humidite", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_humidite"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_15" + }, + "datasource_16":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_imper", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_imper"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_16" + }, + "datasource_17":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geogrille", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geogrille"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_17" + }, + "datasource_18":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_18" + }, + "datasource_19":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_grav_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_grav_ep"}, + "database":"", + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_19" + }, + "datasource_20":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geo_text", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geo_text"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_20" + }, + "datasource_21":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_ht_terre_veget", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_ht_terre_veget"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_21" + }, + "datasource_22":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_tuy_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_tuy_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_22" + }, + "datasource_23":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_bon_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_bon_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_23" + }, + "datasource_24":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_ep", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_ep"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_24" + }, + "datasource_25":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_sab_qual", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_sab_qual"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_25" + }, + "datasource_26":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_26" + }, + "datasource_27":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_27" + }, + "datasource_28":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_equi", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_equi"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_28" + }, + "datasource_29":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regrep_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regrep_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_29" + }, + "datasource_30":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_30" + }, + "datasource_31":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_31" + }, + "datasource_32":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_32" + }, + "datasource_33":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_epand", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_epand"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_33" + }, + "datasource_34":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regbl_perf", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regbl_perf"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_34" + }, + "datasource_35":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_mat", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_mat"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_35" + }, + "datasource_36":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_affl", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_affl"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_36" + }, + "datasource_37":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_regcol_hz", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_regcol_hz"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_37" + }, + "datasource_38":{ + "type":"web_service", + "dataType":"tableValue", + "name":"installation", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_installation" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_38" + }, + "datasource_39":{ + "type":"web_service", + "dataType":"tableValue", + "name":"controle", + "description":"", + "parameters":{ + "schema":"s_anc", + "table":"v_controle" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_3" + }, + "datasource_40":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_largeur", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_largeur"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_40" + }, + "datasource_41":{ + "type":"web_service", + "dataType":"tableValue", + "name":"tra_vm_geomembrane", + "description":"", + "parameters":{ + "filter": {"id_nom_table": "traitement", "nom_liste": "tra_vm_geomembrane"}, + "schema":"s_anc", + "table":"param_liste" + }, + "ressource_id":"vitis/genericquerys", + "id":"datasource_41" + } + } +} \ No newline at end of file diff --git a/module/javascript/script_module.js b/module/javascript/script_module.js new file mode 100755 index 00000000..7d639dfe --- /dev/null +++ b/module/javascript/script_module.js @@ -0,0 +1,1511 @@ +/* global vitisApp, goog, angular, bootbox, oVFB */ + +'use strict'; +goog.provide('vmap.anc.script_module'); +vitisApp.on('appMainDrtvLoaded', function () { + /** + * initAncControlForm function. + * Traitements avant l'affichage du formulaire de la section "Dossier" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + // + $log.info("initAncControlForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = ["controle_type", "num_dossier", envSrvc["sMode"] + "_button"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + if (envSrvc["sMode"] == "search") { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "REALISATION": ["des_date_control", "des_interval_control", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + }; + $rootScope["displayFormFields"](aFormFieldsToConcat); + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["id_controle", "id_installation", "controle_ss_type", "des_date_control", "des_interval_control", "des_pers_control", "des_agent_control", "des_refus_visite", "des_date_installation", "des_date_recommande", "des_numero_recommande", "des_reamenage_terrain", "des_reamenage_immeuble", "des_real_trvx", "des_anc_ss_accord", "des_collecte_ep", "des_sep_ep_eu", "des_eu_nb_sortie", "des_eu_tes_regards", "des_eu_pente_ecoul", "des_eu_regars_acces", "des_eu_alteration", "des_eu_ecoulement", "des_eu_depot_regard", "des_commentaire", "Element_0", "Element_4", "Element_5", "Element_7", "Element_8"], + "CONCEPTION": ["id_controle", "id_installation", "dep_date_depot", "des_date_control", "dep_liste_piece", "dep_dossier_complet", "dep_date_envoi_incomplet", "des_nature_projet", "des_concepteur", "car_surface_dispo_m2", "car_permea", "car_valeur_permea", "car_hydromorphie", "car_prof_app", "car_nappe_fond", "car_terrain_innondable", "car_roche_sol", "car_dist_hab", "car_dist_lim_par", "car_dist_veget", "car_dist_puit", "des_collecte_ep", "des_sep_ep_eu", "Element_0", "Element_2", "Element_3", "Element_5"], + "REALISATION": ["id_controle", "id_installation", "des_date_control", "des_interval_control", "des_pers_control", "des_agent_control", "des_date_installation", "des_collecte_ep", "des_sep_ep_eu", "des_eu_nb_sortie", "des_eu_tes_regards", "des_eu_pente_ecoul", "Element_0", "Element_5", "Element_8", "des_installateur", "element_7", "des_commentaire"] + }; + if (envSrvc["sMode"] == "insert") { + // Sélection auto. de l'installation de travail. + var oModeFilter = envSrvc["oSelectedObject"]["aModeFilter"]; + if (typeof (oModeFilter) == "object") + envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["id_installation"]["selectedOption"]["value"] = oModeFilter["operators"][0]["value"]; + // + $rootScope["displayFormFields"](aFormFieldsToConcat); + } else { + if (envSrvc["sMode"] == "update") { + var sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]; + if (goog.isDefAndNotNull(envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"])) { + if (goog.isDefAndNotNull(envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"]["value"])) { + sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"]["value"]; + } + } + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + } else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + } + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + } + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControleType = formSrvc["getFormElementDefinition"]("controle_type", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControleType["id"]).addEventListener("change", function () { + if (typeof (oFormFieldsToDisplay[this.value]) != "undefined") + aFormFieldsToDisplay = oFormFieldsToDisplay[this.value]; + aFormFieldsToDisplay = aFormFieldsToDisplay.concat(aFormFieldsToConcat); + $rootScope["displayFormFields"](aFormFieldsToDisplay); + }); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["des_date_control"])) + oFormValues["des_date_control"] = moment(oFormValues["des_date_control"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["des_date_installation"])) + oFormValues["des_date_installation"] = moment(oFormValues["des_date_installation"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["des_date_recommande"])) + oFormValues["des_date_recommande"] = moment(oFormValues["des_date_recommande"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["dep_date_depot"])) + oFormValues["dep_date_depot"] = moment(oFormValues["dep_date_depot"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["dep_date_envoi_incomplet"])) + oFormValues["dep_date_envoi_incomplet"] = moment(oFormValues["dep_date_envoi_incomplet"]).format('L'); + }); + }; + + /** + * displayFormFields function. + * Affiche la liste des champs de formulaire passée en paramètre et cache les autres. + * @param {array} aFormFieldsToDisplay Tableau de champs de formulaire à afficher. + **/ + angular.element(vitisApp.appMainDrtv).scope()["displayFormFields"] = function (aFormFieldsToDisplay) { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var externFunctionSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["externFunctionSrvc"]); + // + $log.info("displayFormFields"); + // + var aFormFields = formSrvc["getAllFormElementDefinition"](envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var i; + if (Array.isArray(aFormFields)) { + for (i = 0; i < aFormFields.length; i++) { + if (aFormFieldsToDisplay.indexOf(aFormFields[i]["name"]) == -1) + aFormFields[i]["visible"] = false; + else + aFormFields[i]["visible"] = true; + } + // Rafraîchit le formulaire. + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + formScope.$broadcast('$$rebind::refresh'); + formScope.$applyAsync(); + // + externFunctionSrvc["resizeWin"](); + } + }; + + /** + * initAncInstallationForm function. + * Traitements avant l'affichage du formulaire de la section "Habitation" de l'onglet "Installation". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncInstallationForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncInstallationForm"); + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + // Affiche l'id de la parcelle sélectionnée dans le label 'Id Parcelle'. + if (envSrvc["sMode"] != "insert") + oFormValues["parcelle"] = oFormValues["id_parc"]; + // Attends la fin du chargement de tous les champs du formulaire. + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // + // Charge les données de la commune sélectionnée + var oIdParc = formSrvc["getFormElementDefinition"]("id_parc", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + document.getElementById(oIdParc["id"]).addEventListener("change", function () { + var sIdParc = this.value; + // Charge les données de la parcelle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/cadastreV2/fichedescriptiveparcelle/" + sIdParc, + "scope": $rootScope, + "success": function (response) { + if (response["data"]["status"] != 0) { + // Label de l'id de la parcelle. + oFormValues["parcelle"] = sIdParc; + // Trim() des données de la parcelle. + var oParcelle = response["data"]["data"]; + var aKeys = Object.keys(oParcelle); + for (var i = 0; i < aKeys.length; i++) { + if (typeof (oParcelle[aKeys[i]]) == "string") + oParcelle[aKeys[i]] = oParcelle[aKeys[i]].trim(); + } + oFormValues["parc_sup"] = oParcelle["sup_fiscale"]; + oFormValues["parc_adresse"] = oParcelle["DVOILIB"]; + //oFormValues["code_postal"] = oParcelle["ID_COM"]; + if (goog.isDefAndNotNull(oParcelle["commune"]) && oParcelle["commune"] != "") + oFormValues["parc_commune"] = oParcelle["commune"]; + else + oFormValues["parc_commune"] = oFormValues["id_com"]["selectedOption"]["label"]; + + // Charge le code postal de la commune. + if (goog.isDefAndNotNull(propertiesSrvc["anc"]["code_postal"])) { + var sCodePostalSchema = propertiesSrvc["anc"]["code_postal"]["schema"]; + var sCodePostalTable = propertiesSrvc["anc"]["code_postal"]["table"]; + var sCodePostalColumn = propertiesSrvc["anc"]["code_postal"]["column"]; + if ((goog.isDefAndNotNull(sCodePostalSchema) && sCodePostalSchema != "") && (goog.isDefAndNotNull(sCodePostalTable) && sCodePostalTable != "") && (goog.isDefAndNotNull(sCodePostalColumn) && sCodePostalColumn != "")) { + var oUrlParams = { + "schema": sCodePostalSchema, + "table": sCodePostalTable, + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_com", + "compare_operator": "=", + "value": oFormValues["id_com"]["selectedOption"]["value"] + }] + }, + "attributs": sCodePostalColumn + }; + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/vitis/genericquerys/" + sCodePostalTable, + "params": oUrlParams, + "scope": $rootScope, + "success": function (response) { + if (response["data"]["status"] != 0) + oFormValues["code_postal"] = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0][sCodePostalColumn]; + } + }); + } + } + + // Charge les données du propriétaire de la parcelle. + var oUrlParams = { + "schema": "s_majic", + "table": "v_vmap_parcelle_proprietaire", + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_par", + "compare_operator": "=", + "value": sIdParc + }] + }, + "attributs": "prop_titre|prop_nom_prenom|prop_adresse|prop_code_postal|prop_commune" + }; + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/vitis/genericquerys/v_vmap_parcelle_proprietaire", + "params": oUrlParams, + "scope": $rootScope, + "success": function (response) { + if (response["data"]["status"] != 0) { + var oProprioParcelle = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0]; + if (typeof (oProprioParcelle) == "object") { + // Trim() des données du propriétaire de la parcelle. + var aKeys = Object.keys(oProprioParcelle); + for (var i = 0; i < aKeys.length; i++) { + if (typeof (oProprioParcelle[aKeys[i]]) == "string") + oProprioParcelle[aKeys[i]] = oProprioParcelle[aKeys[i]].trim(); + } + oFormValues["prop_titre"] = oProprioParcelle["dqualp"]; + oFormValues["prop_nom_prenom"] = oProprioParcelle["ddenom"]; + oFormValues["prop_adresse"] = oProprioParcelle["dlign4"]; + oFormValues["prop_code_postal"] = oProprioParcelle["dlign6"].substr(0, oProprioParcelle["dlign6"].indexOf(" ")); + oFormValues["prop_commune"] = oProprioParcelle["dlign6"].substr(oProprioParcelle["dlign6"].indexOf(" ")); + + /* + // Charge les données du bâtiment de la parcelle. + var oUrlParams = { + "schema": "s_majic", + "table": "v_vmap_parcelle_proprietaire_bati", + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_par", + "compare_operator": "=", + "value": sIdParc + }] + }, + }; + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/vitis/genericquerys/v_vmap_parcelle_proprietaire_bati", + "params": oUrlParams, + "scope": $rootScope, + "success": function(response) { + if (response["data"]["status"] != 0) { + } + var oBatiParcelle = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0]; + console.log(oBatiParcelle); + } + }); + */ + /* + // Charge les données du bâtiment de la parcelle. + oWebServiceBase = Restangular["one"](propertiesSrvc["services_alias"] + "/vitis", "genericquerys"); + var oUrlParams = { + "schema": "s_majic", + "table": "v_vmap_parcelle_proprietaire_bati", + "filter": { + "relation": "AND", + "operators": [{ + "column": "id_par", + "compare_operator": "=", + "value": sIdParc + }] + }, + }; + oWebServiceBase["customGET"]("v_vmap_parcelle_proprietaire_bati", oUrlParams).then(function (data) { + if (response["data"]["status"] != 0) { + var oBatiParcelle = envSrvc["extractWebServiceData"]("genericquerys", response["data"])[0]; + + oFormValues["bati_date_mutation"] = oBatiParcelle[""]; + + //oFormValues["cont_zone_autre"] = oParcelle[""]; + //oFormValues["cont_zone_urba"] = oParcelle[""]; + //oFormValues["cont_zone_anc"] = oParcelle[""]; + } else { + // + var oOptions = { + "className": "modal-danger" + }; + // Message d'erreur ? + if (response["data"]["errorMessage"] != null) + oOptions["message"] = response["data"]["errorMessage"]; + $rootScope["modalWindow"]("alert", "REQUEST_ERROR", oOptions); + } + }); + */ + } + } else { + // + var oOptions = { + "className": "modal-danger" + }; + // Message d'erreur ? + if (response["data"]["errorMessage"] != null) + oOptions["message"] = response["data"]["errorMessage"]; + $rootScope["modalWindow"]("alert", "REQUEST_ERROR", oOptions); + } + } + }); + } else { + // + var oOptions = { + "className": "modal-danger" + }; + // Message d'erreur ? + if (response["data"]["errorMessage"] != null) + oOptions["message"] = response["data"]["errorMessage"]; + $rootScope["modalWindow"]("alert", "REQUEST_ERROR", oOptions); + } + } + }); + + // + + //formScope.$broadcast('$$rebind::refresh'); + // + formScope.$apply(); + }); + }); + }; + + /** + * initAncInstallationSuiviForm function. + * Traitements avant l'affichage du formulaire de la section "Suivi" de l'onglet "Installation". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncInstallationSuiviForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncInstallationSuiviForm"); + // Attends la fin du chargement de tous les champs du formulaire. + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + formScope.$apply(); + }); + }; + + /** + * initAncPretraitementForm function. + * Traitements avant l'affichage du formulaire de la section "Dossier" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncPretraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncPretraitementForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_pretraitement", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + if (envSrvc["sMode"] == "search") { + //oFormFieldsToDisplay = { + // "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + // "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + // "REALISATION": ["des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + //}; + //$rootScope["displayFormFields"](aFormFieldsToConcat); + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["tra_dist_hab", "ptr_im_puit", "ptr_adapte", "ptr_type_eau", "ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_cloison", "ptr_commentaire", "ptr_im_distance", "ptr_im_acces", "ptr_et_degrad", "ptr_et_real", "ptr_vi_date", "ptr_vi_justi", "ptr_vi_entr", "ptr_vi_bord", "ptr_vi_dest", "ptr_vi_perc", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4"], + "CONCEPTION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_4"], + "REALISATION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "ptr_im_hydrom", "maj", "maj_date", "create", "create_date", "Element_0", "Element_4", "ptr_pose", "ptr_adapte", "ptr_conforme_projet", "ptr_renforce", "ptr_verif_mise_en_eau", "ptr_type_eau", "ptr_im_dalle", "ptr_im_puit", "tra_dist_hab"] + }; + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + } + + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["ptr_vi_date"])) + oFormValues["ptr_vi_date"] = moment(oFormValues["ptr_vi_date"]).format('L'); + }; + + /** + * loadAncPretraitementsControl function. + * Chargement de la section "Prétraitement" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncPretraitementsControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncPretraitementsControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_pretraitement"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"], + "appShowActions": true, + "appIdField": "id_pretraitement" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_pretraitement'})"; + } + }); + }; + + /** + * initAncControlDryToiletsForm function. + * Traitements avant l'affichage du formulaire de la section "Dossier" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlDryToiletsForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControlDryToiletsForm"); + // Attends la fin de l'affichage du formulaire. + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["ts_type_effluent", "ts_capacite_bac", "ts_nb_bac", "ts_coher_taille_util", "ts_aire_etanche", "ts_aire_abri", "ts_ventilation", "ts_cuve_etanche", "ts_val_comp", "ts_ruissel_ep", "ts_absence_nuisance", "ts_respect_regles", "ts_commentaires"], + "CONCEPTION": ["ts_type_effluent", "ts_capacite_bac", "ts_nb_bac", "ts_val_comp", "ts_commentaires"], + "REALISATION": ["ts_conforme", "ts_type_effluent", "ts_capacite_bac", "ts_nb_bac", "ts_aire_etanche", "ts_aire_abri", "ts_ventilation", "ts_cuve_etanche", "ts_val_comp", "ts_commentaires"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + }; + + /** + * initAncControlVentilationForm function. + * Traitements avant l'affichage du formulaire de la section "Ventilation" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlVentilationForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControlVentilationForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["vt_primaire", "vt_secondaire", "vt_prim_loc", "vt_prim_ht", "vt_prim_type_extract", "vt_second_loc", "vt_second_ht", "vt_prim_diam", "vt_second_diam", "vt_second_type_extract", "vt_prim_type_materiau", "vt_second_type_materiau", "Element_0", "Element_1", "Element_2", "vt_commentaire"], + "CONCEPTION": ["vt_primaire", "emplacement_vt_secondaire"], + "REALISATION": ["vt_primaire", "vt_secondaire", "vt_prim_loc", "vt_prim_ht", "vt_prim_type_extract", "vt_second_loc", "vt_second_ht", "vt_prim_diam", "vt_second_diam", "vt_second_type_extract", "vt_prim_type_materiau", "vt_second_type_materiau", "Element_0", "Element_1", "Element_2", "vt_commentaire"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + }; + + /** + * loadAncTraitementsControl function. + * Chargement de la section "Prétraitement" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncTraitementsControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncTraitementsControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_traitement"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT"], + "appShowActions": true, + "appIdField": "id_traitement" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_traitement'})"; + } + }); + }; + + /** + * initAncTraitementForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Traitement". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncTraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncTraitementForm"); + // Attends la fin de l'affichage du formulaire. + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_traitement", "id_controle", "tra_type", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + var sControleType; + if (envSrvc["sMode"] == "search") { + /* + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "REALISATION": ["des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + }; + $rootScope["displayFormFields"](aFormFieldsToConcat); + */ + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["tra_dist_hab", "tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regbl_mat", "tra_regbl_affl", "tra_regcol_mat", "tra_regcol_affl", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_3", "Element_4", "Element_5", "Element_6"], + "CONCEPTION": ["maj", "maj_date", "create", "create_date", "Element_0", "Element_6"], + "REALISATION": ["tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_vm_grav_qual", "tra_vm_grav_ep", "tra_vm_geo_text", "tra_vm_bon_mat", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regrep_perf", "tra_regbl_mat", "tra_regbl_affl", "tra_regbl_hz", "tra_regbl_epand", "tra_regbl_perf", "tra_regcol_mat", "tra_regcol_affl", "tra_regcol_hz", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "Element_5", "Element_6", "tra_dist_hab", "tra_vm_racine", "tra_vm_humidite", "tra_vm_imper", "tra_vm_geogrille", "tra_vm_tuy_perf", "tra_vm_sab_qual", "tra_vm_sab_ep", "tra_vm_geomembrane"] + }; + // + var setTypeTraitement = function (event) { + + var sTraType; + if (typeof (event) != "undefined") + sTraType = event.target.value; + else + sTraType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["tra_type"]["selectedOption"]["value"]; + + if (goog.isObject(sTraType)) { + if (goog.isDefAndNotNull(sTraType['selectedOption'])) { + if (goog.isDefAndNotNull(sTraType['selectedOption']['value'])) { + sTraType = angular.copy(sTraType['selectedOption']['value']); + } + } + } + + if (typeof (sControleType) != "undefined" && sControleType != "") { + if (sTraType == "TRANCHÉES D'EPANDAGE") + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_nb", "tra_longueur", "tra_tot_lin", "tra_profond", "tra_largeur"]).concat(aFormFieldsToConcat)); + else + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_long", "tra_larg", "tra_surf", "tra_profondeur"]).concat(aFormFieldsToConcat)); + } + } + // + // + var oTypeTraitement = formSrvc["getFormElementDefinition"]("tra_type", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + if (typeof (envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]) == "string") + sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]; + else + sControleType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]["selectedOption"]["value"]; + setTypeTraitement(); + } + } + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + sControleType = oControl["controle_type"]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + // Affichage de certains champs suivant le type de contrôle. + document.getElementById(oTypeTraitement["id"]).addEventListener("change", setTypeTraitement) + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * initAncFilieresAgreeesForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Traitement". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncFilieresAgreeesForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncFilieresAgreeesForm"); + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_fag", "id_controle", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + if (envSrvc["sMode"] == "search") { + /* + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["controle_ss_type", "des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_classe_cbf", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "CONCEPTION": ["dep_date_depot", "dep_dossier_complet", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"], + "REALISATION": ["des_date_control", "des_interval_control", "des_refus_visite", "cl_avis", "cl_date_avis", "cl_auteur_avis", "cl_date_prochain_controle", "cl_facture"] + }; + $rootScope["displayFormFields"](aFormFieldsToConcat); + */ + } else { + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_et_deg", "fag_et_od", "fag_et_dy", "fag_en_date", "fag_en_jus", "fag_en_entr", "fag_en_bord", "fag_en_dest", "fag_en_perc", "fag_en_contr", "fag_en_mainteger", "fag_dist_arb", "fag_dist_parc", "fag_dist_hab", "fag_dist_cap", "maj", "maj_date", "create", "create_date", "Element_6", "Element_7", "Element_8", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "Element_0", "fag_pres", "fag_tamp", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_pres_reg", "fag_pres_alar", "fag_commentaires"], + "CONCEPTION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "maj", "maj_date", "create", "create_date"], + "REALISATION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_surpr", "fag_surpr_ref", "fag_surpr_dist", "fag_surpr_elec", "fag_surpr_aer", "fag_reac_bull", "fag_broy", "fag_dec", "fag_type_eau", "fag_reg_mar", "fag_reg_mat", "fag_reg_affl", "fag_reg_hz", "fag_reg_van", "fag_fvl_nb", "fag_fvl_long", "fag_fvl_larg", "fag_fvl_prof", "fag_fvl_sep", "fag_fvl_pla", "fag_fvl_drain", "fag_fvl_resp", "fag_fhz_long", "fag_fhz_larg", "fag_fhz_prof", "fag_fhz_drain", "fag_fhz_resp", "fag_mat_qual", "fag_mat_epa", "fag_pres_veg", "fag_pres_pro", "maj", "maj_date", "create", "create_date", "Element_1", "Element_2", "Element_3", "Element_5", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "fag_soc", "fag_livret", "Element_0", "fag_pres", "fag_plan", "fag_tamp", "fag_ancrage", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_mise_eau", "fag_pres_alar", "fag_pres_reg", "fag_pres", "fag_plan", "fag_tamp", "fag_rep", "fag_respect", "fag_att_conf", "Element_10", "fag_commentaires"] + }; + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + } + + // Affiche et cache les champs de form. suivant le type de contrôle. + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + var sFagEnDate = oFormValues["fag_en_date"]; + if (goog.isDefAndNotNull(sFagEnDate) && sFagEnDate != "") + oFormValues["fag_en_date"] = moment(sFagEnDate).format("L") + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }); + }; + + /** + * loadAncFilieresAgreeesControl function. + * Chargement de la section "Filières aggréées" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncFilieresAgreeesControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncFilieresAgreeesControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_fag"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT"], + "appShowActions": true, + "appIdField": "id_fag" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_fag'})"; + } + }); + }; + + /** + * initAncControlDispositifsAnnexesForm function. + * Traitements avant l'affichage du formulaire de la section "Dispositifs Annexes" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlDispositifsAnnexesForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControlDispositifsAnnexesForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "Element_1", "Element_2"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["da_chasse_acces", "da_chasse_pr_nat_eau", "da_chasse_dysfonctionnement", "da_chasse_degradation", "da_chasse_entretien", "da_pr_loc_pompe", "da_pr_acces", "da_pr_clapet", "da_pr_etanche", "da_pr_dysfonctionnement", "da_pr_degradation", "da_pr_entretien", "da_commentaires", "da_pr_ventilatio"], + "CONCEPTION": ["da_chasse_auto", "da_chasse_pr_nat_eau", "da_pr_loc_pompe", "da_pr_nb_pompe", "da_pr_nat_eau", "da_commentaires"], + "REALISATION": ["da_chasse_pr_nat_eau", "da_chasse_ok", "da_pr_loc_pompe", "da_pr_ok", "da_pr_clapet", "da_pr_etanche", "da_pr_branchement", "da_pr_ventilatio", "da_pr_alarme", "da_commentaires"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + }; + + /** + * initAncControlConclusionForm function. + * Traitements avant l'affichage du formulaire de la section "Conclusion" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlConclusionForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + // + $log.info("initAncControlConclusionForm"); + var aClassesCbf = ["ABSENCE D'INSTALLATION", "NON CONFORME - DÉFAUT DE SÉCURITÉ SANITAIRE", "NON CONFORME - DÉFAUT DE STRUCTURE OU DE FERMETURE", "NON CONFORME - INSTALLATION IMPLANTÉE À MOINS DE 35M D'UN PUITS DÉCLARÉ ET UTILISÉ", "NON CONFORME - INSTALLATION INCOMPLÈTE", "NON CONFORME - INSTALLATION SIGNIFICATIVEMENT SOUS DIMENSIONNÉE", "NON CONFORME - INSTALLATION PRÉSENTANT DES DYSFONCTIONNEMENTS MAJEURS", "INSTALLATION NECESSITANT DES RECOMMANDATIONS DE TRAVAUX"]; + // Filtre pour le datasource du champ "Montant du contrôle" (année en cours et type de contrôle). + if (envSrvc["sMode"] == "update") { + var oClMontantDef = formSrvc["getFormElementDefinition"]("cl_montant", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var oClMontantDatasource = envSrvc['oFormDefinition']['datasources'][oClMontantDef["datasource"]["datasource_id"]]; + var oFirstSectionFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + envSrvc["sMode"] + "_form"]; + if (goog.isDefAndNotNull(oFirstSectionFormValues["des_date_control"])) { + var aMatchResult = oFirstSectionFormValues["des_date_control"].match(/[0-9]{4}/); + if (aMatchResult !== null) + oClMontantDatasource["parameters"]["filter"]["annee_validite"] = aMatchResult[0]; + } + oClMontantDatasource["parameters"]["filter"]["controle_type"] = oFirstSectionFormValues["controle_type"]["selectedOption"]["value"]; + } + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "Element_1", "Element_2"]; + var oFormFieldsToDisplay; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["cl_classe_cbf", "cl_commentaires", "cl_date_avis", "cl_auteur_avis", "cl_montant", "cl_facture", "cl_facture_le", "cl_constat", "cl_travaux"], + "CONCEPTION": ["cl_avis", "cl_commentaires", "cl_date_avis", "cl_auteur_avis", "cl_montant", "cl_facture", "cl_facture_le"], + "REALISATION": ["cl_commentaires", "cl_date_avis", "cl_auteur_avis", "cl_montant", "cl_facture", "cl_facture_le", "cl_classe_cbf"] + }; + var aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + // + //var oClClasseCbfWarning = formSrvc["getFormElementDefinition"]("cl_classe_cbf_warning", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"] == "BON FONCTIONNEMENT") { + var sClClasseCbf = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_classe_cbf"]["selectedOption"]["value"]; + if (aClassesCbf.indexOf(sClClasseCbf) != -1) + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat).concat(["cl_classe_cbf_warning"])); + else + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + // Rafraîchit le formulaire. + /* + var formScope = angular.element("form[name='" + envSrvc["oFormDefinition"][envSrvc["sFormDefinitionName"]]["name"]).scope(); + formScope.$broadcast('$$rebind::refresh'); + formScope.$applyAsync(); + */ + + var oClClasseCbf = formSrvc["getFormElementDefinition"]("cl_classe_cbf", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oClClasseCbf["id"]).addEventListener("change", function () { + if (aClassesCbf.indexOf(this.value) != -1) + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat).concat(["cl_classe_cbf_warning"])); + else + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + }); + } + // Conversion des dates. + var sClDateAvis = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_date_avis"]; + if (goog.isDefAndNotNull(sClDateAvis) && sClDateAvis != "") + envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_date_avis"] = moment(sClDateAvis).format("L") + var sClFactureLe = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_facture_le"]; + if (goog.isDefAndNotNull(sClFactureLe) && sClFactureLe != "") + envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["cl_facture_le"] = moment(sClFactureLe).format("L") + }); + }; + + /** + * initAncEvacuationEauxForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Evacuation des eaux". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncEvacuationEauxForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncEvacuationEauxForm"); + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_eva", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_is_acc_reg", "evac_rp_grav", "evac_rp_tamp", "evac_rp_type_eff", "evac_rp_trap", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_type", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul"], + "CONCEPTION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_rp_etude_hydrogeol", "evac_rp_rejet", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "photos_f", "fiche_f", "schema_f", "documents_f", "plan_f", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "evac_is_inf_perm"], + "REALISATION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_geotex", "evac_is_rac", "evac_is_hum", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_rp_grav", "evac_rp_tamp", "evac_hs_type", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_bons_grav", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul"] + }; + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToConcat); + else { + aFormFieldsToDisplay = oFormFieldsToDisplay[envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + } + }); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * loadAncEvacuationEauxControl function. + * Chargement de la section "Prétraitement" de l'onglet "Contrôle". + */ + angular.element(vitisApp.appMainDrtv).scope()["loadAncEvacuationEauxControl"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $translate = angular.element(vitisApp.appMainDrtv).injector().get(["$translate"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("loadAncEvacuationEauxControl"); + // Sauve certaines données de la liste. + var sSortedBy = envSrvc["oSelectedObject"]["sorted_by"]; + var sSortedDir = envSrvc["oSelectedObject"]["sorted_dir"]; + var sEditColumn = envSrvc["oSelectedObject"]["edit_column"]; + var sShowColumn = envSrvc["oSelectedObject"]["show_column"]; + // "sIdField" pour les boutons du mode "update" et "display". + envSrvc["oSelectedObject"]["sIdField"] = "id_controle"; + // Colonne et sens de tri. + envSrvc["oSelectedObject"]["sorted_by"] = "id_eva"; + envSrvc["oSelectedObject"]["sorted_dir"] = "ASC"; + envSrvc["oSelectedObject"]["edit_column"] = "editModalSectionForm"; + envSrvc["oSelectedObject"]["show_column"] = "showModalSectionForm"; + // Affiche la liste des prétraitements du contrôle. + $translate(["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX"]).then(function (oTranslations) { + // Paramètres de la liste + boutons. + var oGridOptions = { + "appHeader": true, + "appHeaderSearchForm": false, + "appGridTitle": oTranslations["GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX"], + "appShowActions": true, + "appIdField": "id_eva" + }; + // + $rootScope["loadSectionList"](oGridOptions); + }); + // Attends que les boutons du "header" soient ajoutés. + var clearListener = $rootScope.$on('workspaceListHeaderActionsAdded', function (event, oGridOptions) { + // Supprime le "listener". + clearListener(); + // Restaure les données originales de la liste. + envSrvc["oSelectedObject"]["sorted_by"] = sSortedBy; + envSrvc["oSelectedObject"]["sorted_dir"] = sSortedDir; + envSrvc["oSelectedObject"]["edit_column"] = sEditColumn; + envSrvc["oSelectedObject"]["show_column"] = sShowColumn; + // Boutons d'ajout et de suppression d'un traitement. + for (var i = 0; i < oGridOptions["appActions"].length; i++) { + if (oGridOptions["appActions"][i]["name"].indexOf("_add") != -1) + oGridOptions["appActions"][i]["event"] = "addModalSectionForm()"; + else if (oGridOptions["appActions"][i]["name"].indexOf("_delete") != -1) + oGridOptions["appActions"][i]["event"] = "DeleteSelection({'sIdField':'id_eva'})"; + } + }); + }; + + /** + * initAncControlPretraitementForm function. + * Traitements avant l'affichage du formulaire d'un prétraitement de la section "Prétraitement" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlPretraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlPretraitementForm"); + var scope = this; + // Préremplissage de l'installation et du contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_pretraitement", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["ptr_im_puit", "ptr_adapte", "ptr_type_eau", "ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_cloison", "ptr_commentaire", "ptr_im_distance", "ptr_im_acces", "ptr_et_degrad", "ptr_et_real", "ptr_vi_date", "ptr_vi_justi", "ptr_vi_entr", "ptr_vi_bord", "ptr_vi_dest", "ptr_vi_perc", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_3", "Element_4"], + "CONCEPTION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_4"], + "REALISATION": ["ptr_type", "ptr_volume", "ptr_marque", "ptr_materiau", "ptr_commentaire", "ptr_im_distance", "ptr_im_hydrom", "maj", "maj_date", "create", "create_date", "Element_0", "Element_4", "ptr_pose", "ptr_adapte", "ptr_conforme_projet", "ptr_renforce", "ptr_verif_mise_en_eau", "ptr_type_eau", "ptr_im_dalle", "ptr_im_puit"] + }; + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + } + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["ptr_vi_date"])) + oFormValues["ptr_vi_date"] = moment(oFormValues["ptr_vi_date"]).format('L'); + }; + + /** + * initAncControlTraitementForm function. + * Traitements avant l'affichage du formulaire d'un traitement de la section "Traitement" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlTraitementForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlTraitementForm"); + var scope = this; + // Préremplissage de l'installation et dy contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_traitement", "id_controle", "tra_type", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["tra_dist_hab", "tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regbl_mat", "tra_regbl_affl", "tra_regcol_mat", "tra_regcol_affl", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_3", "Element_4", "Element_5", "Element_6"], + "CONCEPTION": ["maj", "maj_date", "create", "create_date", "Element_0", "Element_6"], + "REALISATION": ["tra_dist_lim_parc", "tra_dist_veget", "tra_dist_puit", "tra_vm_grav_qual", "tra_vm_grav_ep", "tra_vm_geo_text", "tra_vm_bon_mat", "tra_regrep_mat", "tra_regrep_affl", "tra_regrep_equi", "tra_regrep_perf", "tra_regbl_mat", "tra_regbl_affl", "tra_regbl_hz", "tra_regbl_epand", "tra_regbl_perf", "tra_regcol_mat", "tra_regcol_affl", "tra_regcol_hz", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "Element_5", "Element_6", , "tra_vm_racine", "tra_vm_humidite", "tra_vm_imper", "tra_vm_geogrille", "tra_vm_tuy_perf", "tra_vm_sab_qual", "tra_vm_sab_ep", "tra_vm_geomembrane"] + }; + // + var setTypeTraitement = function (event) { + + var sTraType; + if (typeof (event) != "undefined") + sTraType = event.target.value; + else + sTraType = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]["tra_type"]; + + if (goog.isObject(sTraType)) { + if (goog.isDefAndNotNull(sTraType['selectedOption'])) { + if (goog.isDefAndNotNull(sTraType['selectedOption']['value'])) { + sTraType = angular.copy(sTraType['selectedOption']['value']); + } + } + } + + if (typeof (sControleType) != "undefined" && sControleType != "") { + if (sTraType == "TRANCHÉES D'EPANDAGE") { + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_nb", "tra_longueur", "tra_tot_lin", "tra_profond", "tra_largeur"]).concat(aFormFieldsToConcat)); + } else { + $rootScope["displayFormFields"](oFormFieldsToDisplay[sControleType].concat(["tra_long", "tra_larg", "tra_surf", "tra_profondeur"]).concat(aFormFieldsToConcat)); + } + } + } + // + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + var oTypeTraitement = formSrvc["getFormElementDefinition"]("tra_type", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + else + setTypeTraitement(); + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + document.getElementById(oTypeTraitement["id"]).removeEventListener("change", setTypeTraitement) + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + sControleType = oControl["controle_type"]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + // Affichage de certains champs suivant le type de contrôle. + document.getElementById(oTypeTraitement["id"]).addEventListener("change", setTypeTraitement) + }); + } + }); + }; + + /** + * initAncControlFilieresAgreeesForm function. + * Traitements avant l'affichage du formulaire d'une filière agréée de la section "Filière agréées" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlFilieresAgreeesForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlFilieresAgreeesForm"); + var scope = this; + // Préremplissage de l'installation et dy contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_fag", "id_controle", "id_installation"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_et_deg", "fag_et_od", "fag_et_dy", "fag_en_date", "fag_en_jus", "fag_en_entr", "fag_en_bord", "fag_en_dest", "fag_en_perc", "fag_en_contr", "fag_en_mainteger", "fag_dist_arb", "fag_dist_parc", "fag_dist_hab", "fag_dist_cap", "maj", "maj_date", "create", "create_date", "Element_6", "Element_7", "Element_8", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "Element_0", "fag_pres", "fag_tamp", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_pres_reg", "fag_pres_alar", "fag_commentaires"], + "CONCEPTION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "maj", "maj_date", "create", "create_date"], + "REALISATION": ["id_fag", "id_controle", "fag_type", "fag_agree", "fag_integerer", "fag_denom", "fag_fab", "fag_num_ag", "fag_cap_eh", "fag_nb_cuv", "fag_surpr", "fag_surpr_ref", "fag_surpr_dist", "fag_surpr_elec", "fag_surpr_aer", "fag_reac_bull", "fag_broy", "fag_dec", "fag_type_eau", "fag_reg_mar", "fag_reg_mat", "fag_reg_affl", "fag_reg_hz", "fag_reg_van", "fag_fvl_nb", "fag_fvl_long", "fag_fvl_larg", "fag_fvl_prof", "fag_fvl_sep", "fag_fvl_pla", "fag_fvl_drain", "fag_fvl_resp", "fag_fhz_long", "fag_fhz_larg", "fag_fhz_prof", "fag_fhz_drain", "fag_fhz_resp", "fag_mat_qual", "fag_mat_epa", "fag_pres_veg", "fag_pres_pro", "maj", "maj_date", "create", "create_date", "Element_1", "Element_2", "Element_3", "Element_5", "fag_num", "fag_num_filt", "fag_mat_cuv", "fag_guide", "fag_contr", "fag_soc", "fag_soc", "fag_livret", "Element_0", "fag_pres", "fag_plan", "fag_tamp", "fag_ancrage", "fag_ventil", "fag_mil_typ", "fag_mil_filt", "fag_mise_eau", "fag_pres_alar", "fag_pres_reg", "fag_pres", "fag_plan", "fag_tamp", "fag_rep", "fag_respect", "fag_att_conf", "Element_10", "fag_commentaires"] + }; + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + } + }); + // Conversion des dates. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + var sFagEnDate = oFormValues["fag_en_date"]; + if (goog.isDefAndNotNull(sFagEnDate) && sFagEnDate != "") + oFormValues["fag_en_date"] = moment(sFagEnDate).format("L") + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * initAncControlEvacuationEauxForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Evacuation des eaux". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControlEvacuationEauxForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var $timeout = angular.element(vitisApp.appMainDrtv).injector().get(["$timeout"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + // + $log.info("initAncControlEvacuationEauxForm"); + var scope = this; + // Préremplissage de l'installation et dy contrôle en mode "insert". + var oParentFormValues = envSrvc["oFormValues"][envSrvc["oSelectedObject"]["name"] + "_" + envSrvc["oSectionForm"][envSrvc["oSelectedObject"]["name"]]["sections"][0]["name"] + "_" + scope.$parent["sParentMode"] + "_form"]; + var oControl = formSrvc["getFormElementDefinition"]("id_controle", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + if (envSrvc["sMode"] == "insert") { + var oInstallation = formSrvc["getFormElementDefinition"]("id_installation", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + oInstallation["default_value"] = oParentFormValues["id_installation"]["selectedOption"]["value"]; + oControl["default_value"] = oParentFormValues["id_controle"]; + } + // + var clearListener = $rootScope.$on("formExtracted", function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + // Champs de form. à afficher suivant le type de contrôle et le mode du form. + var aFormFieldsToConcat = [envSrvc["sMode"] + "_button", "id_eva", "id_installation", "id_controle"]; + var oFormFieldsToDisplay, aFormFieldsToDisplay = []; + oFormFieldsToDisplay = { + "BON FONCTIONNEMENT": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_is_acc_reg", "evac_rp_grav", "evac_rp_tamp", "evac_rp_type_eff", "evac_rp_trap", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_type", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul"], + "CONCEPTION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_rp_etude_hydrogeol", "evac_rp_rejet", "evac_hs_type", "evac_hs_gestionnaire", "evac_hs_gestionnaire_auth", "evac_commentaires", "maj", "maj_date", "create", "create_date", "photos_f", "fiche_f", "schema_f", "documents_f", "plan_f", "Element_0", "Element_1", "Element_2", "Element_3", "Element_4", "evac_is_inf_perm"], + "REALISATION": ["evacuation_eaux.id_eva", "id_controle", "evac_type", "evac_is_long", "evac_is_larg", "evac_is_surface", "evac_is_profondeur", "evac_is_geotex", "evac_is_rac", "evac_is_hum", "evac_is_reg_rep", "evac_is_reb_bcl", "evac_is_veg", "evac_rp_grav", "evac_rp_tamp", "evac_hs_type", "evac_commentaires", "maj", "maj_date", "create", "create_date", "Element_0", "Element_1", "Element_2", "Element_4", "evac_is_lin_total", "evac_rp_bons_grav", "evac_hs_intr", "evac_hs_type_eff", "evac_hs_ecoul"] + }; + if (typeof (oParentFormValues["controle_type"]) == "string") + var sControleType = oParentFormValues["controle_type"]; + else + var sControleType = oParentFormValues["controle_type"]["selectedOption"]["value"]; + aFormFieldsToDisplay = oFormFieldsToDisplay[sControleType]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + + // Affiche et cache les champs de form. suivant le type de contrôle. + if (envSrvc["sMode"] != "display") { + $timeout(function () { + document.getElementById(oControl["id"]).addEventListener("change", function () { + var iIdControl = this.value; + // Charge les données du contrôle. + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/anc/controles/" + iIdControl, + "scope": $rootScope, + "success": function (response) { + var oControl = envSrvc["extractWebServiceData"]("controles", response["data"])[0]; + var aFormFieldsToDisplay = oFormFieldsToDisplay[oControl["controle_type"]]; + $rootScope["displayFormFields"](aFormFieldsToDisplay.concat(aFormFieldsToConcat)); + } + }); + }); + }); + } + }); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * beforeSendingAncInstallationForm function. + * Traitements avant l'envoi du formulaire de la section "Habitation" de l'onglet "Installation". + **/ + angular.element(vitisApp.appMainDrtv).scope()["beforeSendingAncInstallationForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("beforeSendingAncInstallationForm"); + // Champs obligatoirement en majuscules. + var aElemNames = ["parc_commune", "prop_adresse", "prop_commune", "prop_nom_prenom", "prop_titre"]; + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + for (var i in aElemNames) { + if (typeof (oFormValues[aElemNames[i]]) == "string") + oFormValues[aElemNames[i]] = oFormValues[aElemNames[i]].toUpperCase(); + } + } + + /** + * initAncControleSuiviForm function. + * Traitements avant l'affichage du formulaire de la section "Suivi" de l'onglet "Contrôle". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncControleSuiviForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncControleSuiviForm"); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * appAdminDescriptionColumn directive. + * Mise en forme de la colonne "description" dans la liste de l'onglet "Admin". + * @ngInject + */ + vitisApp.appAdminDescriptionColumnDrtv = function () { + return { + link: function (scope, element, attrs) { + // 1er affichage ou tri de la liste : maj de la mise en forme. + var clearObserver = attrs.$observe("appAdminDescriptionColumn", function (value) { + console.log(scope["row"]["entity"][scope["col"]["field"]]); + // Si le champ est vide : supprime l'icône. + if (scope["row"]["entity"][scope["col"]["field"]] == null || scope["row"]["entity"][scope["col"]["field"]] == "") + element[0].className = ""; + else { + // Classes css (ui-grid + spécifiques). + element[0].className = "ui-grid-cell-contents wk-params-icon"; + // Création du "tooltip". + $(element)["popover"]({ + "trigger": "hover", + "container": "body", + "html": true, + "title": function () { + return "#" + scope["row"]["entity"]["id_parametre_admin"]; + }, + // Placement du tooltip à gauche ou à droite suivant la position horizontale de l'élément. + "placement": function (oPopoverNode, oElementNode) { + return scope.$root["workspaceTooltipPlacement"](oElementNode); + }, + "content": function () { + return String(scope["row"]["entity"][scope["col"]["field"]]).replace(/,/g, '<br>'); + } + }); + } + }); + // Attends la suppression du scope. + scope.$on("$destroy", function () { + // Supprime le tooltip. + $(element)["popover"]("destroy"); + // Supprime l'observateur. + clearObserver(); + }); + } + }; + }; + vitisApp["compileProvider"].directive("appAdminDescriptionColumn", vitisApp.appAdminDescriptionColumnDrtv); + + /** + * appAdminSignatureColumn directive. + * Mise en forme de la colonne "description" dans la liste de l'onglet "Admin". + * @ngInject + */ + vitisApp.appAdminSignatureColumnDrtv = function () { + return { + link: function (scope, element, attrs) { + // 1er affichage ou tri de la liste : maj de la mise en forme. + var clearObserver = attrs.$observe("appAdminSignatureColumn", function (value) { + console.log(scope["row"]["entity"][scope["col"]["field"]]); + // Si le champ est vide : supprime l'icône. + if (scope["row"]["entity"][scope["col"]["field"]] == null || scope["row"]["entity"][scope["col"]["field"]] == "") + element[0].className = ""; + else { + // Classes css (ui-grid + spécifiques). + element[0].className = "ui-grid-cell-contents wk-params-icon"; + // Création du "tooltip". + $(element)["popover"]({ + "trigger": "hover", + "container": "body", + "html": true, + "title": function () { + return "#" + scope["row"]["entity"]["id_parametre_admin"]; + }, + // Placement du tooltip à gauche ou à droite suivant la position horizontale de l'élément. + "placement": function (oPopoverNode, oElementNode) { + return scope.$root["workspaceTooltipPlacement"](oElementNode); + }, + "content": function () { + return String(scope["row"]["entity"][scope["col"]["field"]]).replace(/,/g, '<br>'); + } + }); + } + }); + // Attends la suppression du scope. + scope.$on("$destroy", function () { + // Supprime le tooltip. + $(element)["popover"]("destroy"); + // Supprime l'observateur. + clearObserver(); + }); + } + }; + }; + vitisApp["compileProvider"].directive("appAdminSignatureColumn", vitisApp.appAdminSignatureColumnDrtv); + + /** + * initAncParametrageEntrepriseForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Entreprise". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncParametrageEntrepriseForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncParametrageEntrepriseForm"); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["create_date"])) + oFormValues["create_date"] = moment(oFormValues["create_date"]).format('L'); + if (goog.isDefAndNotNull(oFormValues["maj_date"])) + oFormValues["maj_date"] = moment(oFormValues["maj_date"]).format('L'); + }; + + /** + * initAncParametrageAdministrateurForm function. + * Traitements avant l'affichage du formulaire de l'onglet "Entreprise". + **/ + angular.element(vitisApp.appMainDrtv).scope()["initAncParametrageAdministrateurForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + // + $log.info("initAncParametrageAdministrateurForm"); + // Conversion des dates au format Fr. + var oFormValues = envSrvc["oFormValues"][envSrvc["sFormDefinitionName"]]; + if (goog.isDefAndNotNull(oFormValues["date_fin_validite"])) + oFormValues["date_fin_validite"] = moment(oFormValues["date_fin_validite"]).format('L'); + }; +}); diff --git a/module/lang/lang-en.json b/module/lang/lang-en.json new file mode 100644 index 00000000..9c458e29 --- /dev/null +++ b/module/lang/lang-en.json @@ -0,0 +1,441 @@ +{ + "TEXT_MODE_ANC_SAISIE" : "Saisie des assainissements non collectifs", + "TITLE_MODE_ANC_SAISIE" : "Saisie des ANC", + "TEXT_MODE_ANC_PARAMETRAGE" : "Paramétrage des assainissements non collectifs", + "TITLE_MODE_ANC_PARAMETRAGE" : "Paramétrage ANC", + "ANC_SAISIE_ANC_INSTALLATION_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_TITLE_INSERT" : "Installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_COM" : "id_com", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_PARC" : "id_parc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_SUP" : "parc_sup", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_PARCELLE_ASSOCIEES" : "parc_parcelle_associees", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_ADRESSE" : "parc_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CODE_POSTAL" : "code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_COMMUNE" : "parc_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TITRE" : "prop_titre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_NOM_PRENOM" : "prop_nom_prenom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_ADRESSE" : "prop_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_CODE_POSTAL" : "prop_code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_COMMUNE" : "prop_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TEL" : "prop_tel", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_MAIL" : "prop_mail", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_TYPE" : "bati_type", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_PP" : "bati_ca_nb_pp", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_EH" : "bati_ca_nb_eh", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_CHAMBRES" : "bati_ca_nb_chambres", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_NB_A_CONTROL" : "bati_nb_a_control", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_DATE_MUTATION" : "bati_date_mutation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ENJEU" : "cont_zone_enjeu", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_SAGE" : "cont_zone_sage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_AUTRE" : "cont_zone_autre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_URBA" : "cont_zone_urba", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ANC" : "cont_zone_anc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ALIM_EAU_POTABLE" : "cont_alim_eau_potable", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_USAGE" : "cont_puits_usage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_DECLARATION" : "cont_puits_declaration", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_SITUATION" : "cont_puits_situation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_TERRAIN_MITOYEN" : "cont_puits_terrain_mitoyen", + "ANC_SAISIE_ANC_INSTALLATION_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PHOTO_F" : "photo_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_DOCUMENT_F" : "document_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_INSTALLATION_FORM_COMMUNE" : "commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_SECTION" : "section", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARCELLE" : "parcelle", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NB_CONTROLE" : "nb_controle", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_INSERT" : "Liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_UPDATE" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_DISPLAY" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ID_PARAMETRE_LISTE" : "id_parametre_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_TABLE" : "nom_table", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_LISTE" : "nom_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_VALEURS" : "valeurs", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ALIAS" : "alias", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_INSERT" : "Tarif", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_UPDATE" : "Tarif n°{{id_parametre_tarif}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_DISPLAY" : "Tarif n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_PARAMETRE_TARIF" : "ID", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_COM" : "Commune", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_CONTROLE_TYPE" : "Type de contrôle", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_MONTANT" : "Montant", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ANNEE_VALIDITE" : "Année de validité", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_DEVISE" : "Devise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_INSERT" : "Entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_UPDATE" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_DISPLAY" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_PARAMETRE_ENTREPRISES" : "id_parametre_entreprises", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_SIRET" : "siret", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_RAISON_SOCIALE" : "raison_sociale", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_ENTREPRISE" : "nom_entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_CONTACT" : "nom_contact", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_FIXE" : "telephone_fixe", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_MOBILE" : "telephone_mobile", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_WEB" : "web", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAIL" : "mail", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CODE_POSTAL" : "code_postal", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VOIE" : "voie", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_BUREAU_ETUDE" : "bureau_etude", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONCEPTEUR" : "concepteur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONSTRUCTEUR" : "constructeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_INSTALLATEUR" : "installateur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VIDANGEUR" : "vidangeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_EN_ACTIVITE" : "en_activite", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_OBSERVATIONS" : "observations", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT" : "creat", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT_DATE" : "creat_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ" : "maj", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ_DATE" : "maj_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F" : "Photos", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F" : "Documents", + "ANC_SAISIE_ANC_CONTROLE_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_TITLE_INSERT" : "Control", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_TYPE" : "controle_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_SS_TYPE" : "controle_ss_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_CONTROL" : "des_date_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_PERS_CONTROL" : "des_pers_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_AGENT_CONTROL" : "des_agent_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REFUS_VISITE" : "des_refus_visite", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_INSTALLATION" : "des_date_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_RECOMMANDE" : "des_date_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NUMERO_RECOMMANDE" : "des_numero_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_DEPOT" : "dep_date_depot", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_LISTE_PIECE" : "dep_liste_piece", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DOSSIER_COMPLET" : "dep_dossier_complet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_ENVOI_INCOMPLET" : "dep_date_envoi_incomplet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NATURE_PROJET" : "des_nature_projet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_CONCEPTEUR" : "des_concepteur", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_SURFACE_DISPO_M2" : "car_surface_dispo_m2", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PERMEA" : "car_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_VALEUR_PERMEA" : "car_valeur_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_HYDROMORPHIE" : "car_hydromorphie", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PROF_APP" : "car_prof_app", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_NAPPE_FOND" : "car_nappe_fond", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_TERRAIN_INNONDABLE" : "car_terrain_innondable", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_ROCHE_SOL" : "car_roche_sol", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_HAB" : "car_dist_hab", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_LIM_PAR" : "car_dist_lim_par", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_VEGET" : "car_dist_veget", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_PUIT" : "car_dist_puit", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_TERRAIN" : "des_reamenage_terrain", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_IMMEUBLE" : "des_reamenage_immeuble", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAL_TRVX" : "des_real_trvx", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_ANC_SS_ACCORD" : "des_anc_ss_accord", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COLLECTE_EP" : "des_collecte_ep", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_SEP_EP_EU" : "des_sep_ep_eu", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_NB_SORTIE" : "des_eu_nb_sortie", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_TES_REGARDS" : "des_eu_tes_regards", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_PENTE_ECOUL" : "des_eu_pente_ecoul", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_REGARS_ACCES" : "des_eu_regars_acces", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ALTERATION" : "des_eu_alteration", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ECOULEMENT" : "des_eu_ecoulement", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_DEPOT_REGARD" : "des_eu_depot_regard", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COMMENTAIRE" : "des_commentaire", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_INSERT" : "Admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_UPDATE" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_DISPLAY" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_PARAMETRE_ADMIN" : "id_parametre_admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_TYPE" : "type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SOUS TYPE" : "sous type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_NOM" : "nom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_PRENOM" : "prenom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DESCRIPTION" : "description", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_CIVILITE" : "civilite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DATE_FIN_VALIDITE" : "date_fin_validite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_QUALITE" : "qualite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SIGNATURE" : "signature", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CONFORME" : "ts_conforme", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_TYPE_EFFLUENT" : "ts_type_effluent", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CAPACITE_BAC" : "ts_capacite_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_NB_BAC" : "ts_nb_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COHER_TAILLE_UTIL" : "ts_coher_taille_util", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ETANCHE" : "ts_aire_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ABRI" : "ts_aire_abri", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VENTILATION" : "ts_ventilation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CUVE_ETANCHE" : "ts_cuve_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VAL_COMP" : "ts_val_comp", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RUISSEL_EP" : "ts_ruissel_ep", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_ABSENCE_NUISANCE" : "ts_absence_nuisance", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RESPECT_REGLES" : "ts_respect_regles", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COMMENTAIRES" : "ts_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIMAIRE" : "vt_primaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECONDAIRE" : "vt_secondaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_LOC" : "vt_prim_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_HT" : "vt_prim_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_DIAM" : "vt_prim_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_TYPE_EXTRACT" : "vt_prim_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_LOC" : "vt_second_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_HT" : "vt_second_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_DIAM" : "vt_second_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_TYPE_EXTRACT" : "vt_second_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ACCES" : "da_chasse_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_AUTO" : "da_chasse_auto", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_PR_NAT_EAU" : "da_chasse_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_OK" : "da_chasse_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DYSFONCTIONNEMENT" : "da_chasse_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DEGRADATION" : "da_chasse_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ENTRETIEN" : "da_chasse_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_LOC_POMPE" : "da_pr_loc_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ACCES" : "da_pr_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NB_POMPE" : "da_pr_nb_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NAT_EAU" : "da_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_OK" : "da_pr_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_CLAPET" : "da_pr_clapet", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ETANCHE" : "da_pr_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_BRANCHEMENT" : "da_pr_branchement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DYSFONCTIONNEMENT" : "da_pr_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DEGRADATION" : "da_pr_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ENTRETIEN" : "da_pr_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_COMMENTAIRES" : "da_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AVIS" : "cl_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_CLASSE_CBF" : "cl_classe_cbf", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_COMMENTAIRES" : "cl_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_AVIS" : "cl_date_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AUTEUR_AVIS" : "cl_auteur_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_PROCHAIN_CONTROL" : "cl_date_prochain_control", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_MONTANT" : "cl_montant", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE" : "cl_facture", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE_LE" : "cl_facture_le", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CLOTURER" : "cloturer", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_RAPPORT_F" : "rapport_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_INSERT" : "Pretreatment", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_UPDATE" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_DISPLAY" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_PRETRAITEMENT" : "id_pretraitement", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_TYPE" : "ptr_type", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VOLUME" : "ptr_volume", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MARQUE" : "ptr_marque", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MATERIAU" : "ptr_materiau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_RENFORCE" : "ptr_renforce", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VERIF_MISE_EN_EAU" : "ptr_verif_mise_en_eau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_CLOISON" : "ptr_cloison", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_COMMENTAIRE" : "ptr_commentaire", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_DISTANCE" : "ptr_im_distance", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_HYDROM" : "ptr_im_hydrom", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_FIXATION" : "ptr_im_fixation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_ACCES" : "ptr_im_acces", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_DEGRAD" : "ptr_et_degrad", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_REAL" : "ptr_et_real", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DATE" : "ptr_vi_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_JUSTI" : "ptr_vi_justi", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_ENTR" : "ptr_vi_entr", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_BORD" : "ptr_vi_bord", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DEST" : "ptr_vi_dest", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_PERC" : "ptr_vi_perc", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE" : "", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_INSERT" : "Water evacuation", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{sId}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{sId}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_EVA" : "id_eva", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_TYPE" : "evac_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LONG" : "evac_is_long", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LARG" : "evac_is_larg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_SURFACE" : "evac_is_surface", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_PROFONDEUR" : "evac_is_profondeur", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_GEOTEX" : "evac_is_geotex", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_RAC" : "evac_is_rac", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_HUM" : "evac_is_hum", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REG_REP" : "evac_is_reg_rep", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REB_BCL" : "evac_is_reb_bcl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_VEG" : "evac_is_veg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_TYPE_EFFL" : "evac_is_type_effl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_ACC_REG" : "evac_is_acc_reg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_ETUDE_HYDROGEOL" : "evac_rp_etude_hydrogeol", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_REJET" : "evac_rp_rejet", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_GRAV" : "evac_rp_grav", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TAMP" : "evac_rp_tamp", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TYPE_EFF" : "evac_rp_type_eff", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TRAP" : "evac_rp_trap", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_TYPE" : "evac_hs_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE" : "evac_hs_gestionnaire", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE_AUTH" : "evac_hs_gestionnaire_auth", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_COMMENTAIRES" : "evac_commentaires", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE" : "Liste des filières agréées du contrôle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_FAG" : "id_fag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE" : "fag_type", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_AGREE" : "fag_agree", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_INTEGERER" : "fag_integerer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DENOM" : "fag_denom", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FAB" : "fag_fab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NUM_AG" : "fag_num_ag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CAP_EH" : "fag_cap_eh", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NB_CUV" : "fag_nb_cuv", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_GUIDE" : "fag_guide", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_LIVRET" : "fag_livret", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CONTR" : "fag_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SOC" : "fag_soc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES" : "fag_pres", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PLAN" : "fag_plan", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TAMP" : "fag_tamp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ANCRAGE" : "fag_ancrage", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REP" : "fag_rep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_RESPECT" : "fag_respect", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_VENTIL" : "fag_ventil", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_TYP" : "fag_mil_typ", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_FILT" : "fag_mil_filt", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MISE_EAU" : "fag_mise_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_ALAR" : "fag_pres_alar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_REG" : "fag_pres_reg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ATT_CONF" : "fag_att_conf", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR" : "fag_surpr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_REF" : "fag_surpr_ref", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_DIST" : "fag_surpr_dist", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_ELEC" : "fag_surpr_elec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_AER" : "fag_surpr_aer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REAC_BULL" : "fag_reac_bull", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_BROY" : "fag_broy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DEC" : "fag_dec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE_EAU" : "fag_type_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAR" : "fag_reg_mar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAT" : "fag_reg_mat", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_AFFL" : "fag_reg_affl", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_HZ" : "fag_reg_hz", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_VAN" : "fag_reg_van", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_NB" : "fag_fvl_nb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LONG" : "fag_fvl_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LARG" : "fag_fvl_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PROF" : "fag_fvl_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_SEP" : "fag_fvl_sep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PLA" : "fag_fvl_pla", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_DRAIN" : "fag_fvl_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_RESP" : "fag_fvl_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LONG" : "fag_fhz_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LARG" : "fag_fhz_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_PROF" : "fag_fhz_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_DRAIN" : "fag_fhz_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_RESP" : "fag_fhz_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_QUAL" : "fag_mat_qual", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_EPA" : "fag_mat_epa", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_VEG" : "fag_pres_veg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_PRO" : "fag_pres_pro", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ACCES" : "fag_acces", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DEG" : "fag_et_deg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_OD" : "fag_et_od", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DY" : "fag_et_dy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DATE" : "fag_en_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_JUS" : "fag_en_jus", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_ENTR" : "fag_en_entr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_BORD" : "fag_en_bord", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DEST" : "fag_en_dest", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_PERC" : "fag_en_perc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_CONTR" : "fag_en_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_MAINTEGER" : "fag_en_mainteger", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_ARB" : "fag_dist_arb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_PARC" : "fag_dist_parc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_HAB" : "fag_dist_hab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_CAP" : "fag_dist_cap", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_NUM_DOSSIER" : "num_dossier", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Control", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_INSERT" : "Treatment", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_UPDATE" : "Treatement n°{{id_traitement}}", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_DISPLAY" : "Treatement n°{{id_traitement}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT" : "Liste des prétraitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "Pretreatment", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_UPDATE" : "Pretreatment n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_DISPLAY" : "Pretreatment n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE" : "", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT" : "Liste des traitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_INSERT" : "Treatement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_UPDATE" : "Treatement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_DISPLAY" : "Treatement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_DISPLAY" : "Filière agréée n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX" : "Liste des évacuations des eaux du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_INSERT" : "Evacuation des eaux", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{id_eva}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{id_eva}}" +} diff --git a/module/lang/lang-fr.json b/module/lang/lang-fr.json new file mode 100644 index 00000000..42e7f122 --- /dev/null +++ b/module/lang/lang-fr.json @@ -0,0 +1,442 @@ +{ + "TEXT_MODE_ANC_SAISIE" : "Saisie des assainissements non collectifs", + "TITLE_MODE_ANC_SAISIE" : "Saisie des ANC", + "TEXT_MODE_ANC_PARAMETRAGE" : "Paramétrage des assainissements non collectifs", + "TITLE_MODE_ANC_PARAMETRAGE" : "Paramétrage ANC", + "ANC_SAISIE_ANC_INSTALLATION_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_TITLE_INSERT" : "Installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_COM" : "id_com", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ID_PARC" : "id_parc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_SUP" : "parc_sup", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_PARCELLE_ASSOCIEES" : "parc_parcelle_associees", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_ADRESSE" : "parc_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CODE_POSTAL" : "code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARC_COMMUNE" : "parc_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TITRE" : "prop_titre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_NOM_PRENOM" : "prop_nom_prenom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_ADRESSE" : "prop_adresse", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_CODE_POSTAL" : "prop_code_postal", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_COMMUNE" : "prop_commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_TEL" : "prop_tel", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PROP_MAIL" : "prop_mail", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_TYPE" : "bati_type", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_PP" : "bati_ca_nb_pp", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_EH" : "bati_ca_nb_eh", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_CA_NB_CHAMBRES" : "bati_ca_nb_chambres", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_NB_A_CONTROL" : "bati_nb_a_control", + "ANC_SAISIE_ANC_INSTALLATION_FORM_BATI_DATE_MUTATION" : "bati_date_mutation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ENJEU" : "cont_zone_enjeu", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_SAGE" : "cont_zone_sage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_AUTRE" : "cont_zone_autre", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_URBA" : "cont_zone_urba", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ZONE_ANC" : "cont_zone_anc", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_ALIM_EAU_POTABLE" : "cont_alim_eau_potable", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_USAGE" : "cont_puits_usage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_DECLARATION" : "cont_puits_declaration", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_SITUATION" : "cont_puits_situation", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CONT_PUITS_TERRAIN_MITOYEN" : "cont_puits_terrain_mitoyen", + "ANC_SAISIE_ANC_INSTALLATION_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PHOTO_F" : "photo_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_DOCUMENT_F" : "document_f", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_INSTALLATION_FORM_COMMUNE" : "commune", + "ANC_SAISIE_ANC_INSTALLATION_FORM_SECTION" : "section", + "ANC_SAISIE_ANC_INSTALLATION_FORM_PARCELLE" : "parcelle", + "ANC_SAISIE_ANC_INSTALLATION_FORM_NB_CONTROLE" : "nb_controle", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_INSERT" : "Liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_UPDATE" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_TITLE_DISPLAY" : "Liste n°{{sId}}", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ID_PARAMETRE_LISTE" : "id_parametre_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_TABLE" : "nom_table", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_NOM_LISTE" : "nom_liste", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_VALEURS" : "valeurs", + "ANC_PARAMETRAGE_ANC_PARAM_LISTE_FORM_ALIAS" : "alias", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_INSERT" : "Tarif", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_UPDATE" : "Tarif n°{{id_parametre_tarif}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_TITLE_DISPLAY" : "Tarif n°{{id_parametre_tarif}}", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_PARAMETRE_TARIF" : "ID", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ID_COM" : "Commune", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_CONTROLE_TYPE" : "Type de contrôle", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_MONTANT" : "Montant", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_ANNEE_VALIDITE" : "Année de validité", + "ANC_PARAMETRAGE_ANC_PARAM_TARIF_FORM_DEVISE" : "Devise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE" : "", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_INSERT" : "Entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_UPDATE" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_TITLE_DISPLAY" : "Entreprise n°{{id_parametre_entreprises}}", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_PARAMETRE_ENTREPRISES" : "id_parametre_entreprises", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_SIRET" : "siret", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_RAISON_SOCIALE" : "raison_sociale", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_ENTREPRISE" : "nom_entreprise", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_NOM_CONTACT" : "nom_contact", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_FIXE" : "telephone_fixe", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_TELEPHONE_MOBILE" : "telephone_mobile", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_WEB" : "web", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAIL" : "mail", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CODE_POSTAL" : "code_postal", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VOIE" : "voie", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_BUREAU_ETUDE" : "bureau_etude", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONCEPTEUR" : "concepteur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CONSTRUCTEUR" : "constructeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_INSTALLATEUR" : "installateur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_VIDANGEUR" : "vidangeur", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_EN_ACTIVITE" : "en_activite", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_OBSERVATIONS" : "observations", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT" : "creat", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_CREAT_DATE" : "creat_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ" : "maj", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_MAJ_DATE" : "maj_date", + "ANC_PARAMETRAGE_ANC_ENTREPRISE_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_OBSERVATIONS" : "Observations", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_ARCHIVAGE" : "archivage", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_SUIVI_FORM_GEOM" : "geom", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_PHOTO_F" : "Photos", + "ANC_SAISIE_ANC_INSTALLATION_INSTALLATION_DOCUMENTS_FORM_DOCUMENT_F" : "Documents", + "ANC_SAISIE_ANC_CONTROLE_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_TITLE_INSERT" : "Contrôle", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_CONTROLE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_TYPE" : "controle_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_CONTROLE_SS_TYPE" : "controle_ss_type", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_CONTROL" : "des_date_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_PERS_CONTROL" : "des_pers_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_AGENT_CONTROL" : "des_agent_control", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REFUS_VISITE" : "des_refus_visite", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_INSTALLATION" : "des_date_installation", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_DATE_RECOMMANDE" : "des_date_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NUMERO_RECOMMANDE" : "des_numero_recommande", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_DEPOT" : "dep_date_depot", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_LISTE_PIECE" : "dep_liste_piece", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DOSSIER_COMPLET" : "dep_dossier_complet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DEP_DATE_ENVOI_INCOMPLET" : "dep_date_envoi_incomplet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_NATURE_PROJET" : "des_nature_projet", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_CONCEPTEUR" : "des_concepteur", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_SURFACE_DISPO_M2" : "car_surface_dispo_m2", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PERMEA" : "car_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_VALEUR_PERMEA" : "car_valeur_permea", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_HYDROMORPHIE" : "car_hydromorphie", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_PROF_APP" : "car_prof_app", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_NAPPE_FOND" : "car_nappe_fond", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_TERRAIN_INNONDABLE" : "car_terrain_innondable", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_ROCHE_SOL" : "car_roche_sol", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_HAB" : "car_dist_hab", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_LIM_PAR" : "car_dist_lim_par", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_VEGET" : "car_dist_veget", + "ANC_SAISIE_ANC_CONTROLE_FORM_CAR_DIST_PUIT" : "car_dist_puit", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_TERRAIN" : "des_reamenage_terrain", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAMENAGE_IMMEUBLE" : "des_reamenage_immeuble", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_REAL_TRVX" : "des_real_trvx", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_ANC_SS_ACCORD" : "des_anc_ss_accord", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COLLECTE_EP" : "des_collecte_ep", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_SEP_EP_EU" : "des_sep_ep_eu", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_NB_SORTIE" : "des_eu_nb_sortie", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_TES_REGARDS" : "des_eu_tes_regards", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_PENTE_ECOUL" : "des_eu_pente_ecoul", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_REGARS_ACCES" : "des_eu_regars_acces", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ALTERATION" : "des_eu_alteration", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_ECOULEMENT" : "des_eu_ecoulement", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_EU_DEPOT_REGARD" : "des_eu_depot_regard", + "ANC_SAISIE_ANC_CONTROLE_FORM_DES_COMMENTAIRE" : "des_commentaire", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE" : "", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_INSERT" : "Admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_UPDATE" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_TITLE_DISPLAY" : "Admin n°{{id_parametre_admin}}", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_PARAMETRE_ADMIN" : "id_parametre_admin", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_ID_COM" : "id_com", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_TYPE" : "type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SOUS TYPE" : "sous type", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_NOM" : "nom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_PRENOM" : "prenom", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DESCRIPTION" : "description", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_CIVILITE" : "civilite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_DATE_FIN_VALIDITE" : "date_fin_validite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_QUALITE" : "qualite", + "ANC_PARAMETRAGE_ANC_PARAM_ADMIN_FORM_SIGNATURE" : "signature", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CONFORME" : "ts_conforme", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_TYPE_EFFLUENT" : "ts_type_effluent", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CAPACITE_BAC" : "ts_capacite_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_NB_BAC" : "ts_nb_bac", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COHER_TAILLE_UTIL" : "ts_coher_taille_util", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ETANCHE" : "ts_aire_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_AIRE_ABRI" : "ts_aire_abri", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VENTILATION" : "ts_ventilation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_CUVE_ETANCHE" : "ts_cuve_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_VAL_COMP" : "ts_val_comp", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RUISSEL_EP" : "ts_ruissel_ep", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_ABSENCE_NUISANCE" : "ts_absence_nuisance", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_RESPECT_REGLES" : "ts_respect_regles", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TOILETTES_SECHES_FORM_TS_COMMENTAIRES" : "ts_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIMAIRE" : "vt_primaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECONDAIRE" : "vt_secondaire", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_LOC" : "vt_prim_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_HT" : "vt_prim_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_DIAM" : "vt_prim_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_PRIM_TYPE_EXTRACT" : "vt_prim_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_LOC" : "vt_second_loc", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_HT" : "vt_second_ht", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_DIAM" : "vt_second_diam", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_VENTILATION_FORM_VT_SECOND_TYPE_EXTRACT" : "vt_second_type_extract", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ACCES" : "da_chasse_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_AUTO" : "da_chasse_auto", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_PR_NAT_EAU" : "da_chasse_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_OK" : "da_chasse_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DYSFONCTIONNEMENT" : "da_chasse_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_DEGRADATION" : "da_chasse_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_CHASSE_ENTRETIEN" : "da_chasse_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_LOC_POMPE" : "da_pr_loc_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ACCES" : "da_pr_acces", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NB_POMPE" : "da_pr_nb_pompe", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_NAT_EAU" : "da_pr_nat_eau", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_OK" : "da_pr_ok", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_CLAPET" : "da_pr_clapet", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ETANCHE" : "da_pr_etanche", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_BRANCHEMENT" : "da_pr_branchement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DYSFONCTIONNEMENT" : "da_pr_dysfonctionnement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_DEGRADATION" : "da_pr_degradation", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_PR_ENTRETIEN" : "da_pr_entretien", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DISPOSITIF_FORM_DA_COMMENTAIRES" : "da_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AVIS" : "cl_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_CLASSE_CBF" : "cl_classe_cbf", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_COMMENTAIRES" : "cl_commentaires", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_AVIS" : "cl_date_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_AUTEUR_AVIS" : "cl_auteur_avis", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_DATE_PROCHAIN_CONTROL" : "cl_date_prochain_control", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_MONTANT" : "cl_montant", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE" : "cl_facture", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_CONCLUSION_FORM_CL_FACTURE_LE" : "cl_facture_le", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SUIVI_FORM_CLOTURER" : "cloturer", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_RAPPORT_F" : "rapport_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_DOCUMENTS_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_INSERT" : "Prétraitement", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_UPDATE" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_TITLE_DISPLAY" : "Prétraitement n°{{id_pretraitement}}", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_PRETRAITEMENT" : "id_pretraitement", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_TYPE" : "ptr_type", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VOLUME" : "ptr_volume", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MARQUE" : "ptr_marque", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_MATERIAU" : "ptr_materiau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_RENFORCE" : "ptr_renforce", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VERIF_MISE_EN_EAU" : "ptr_verif_mise_en_eau", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_CLOISON" : "ptr_cloison", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_COMMENTAIRE" : "ptr_commentaire", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_DISTANCE" : "ptr_im_distance", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_HYDROM" : "ptr_im_hydrom", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_FIXATION" : "ptr_im_fixation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_IM_ACCES" : "ptr_im_acces", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_DEGRAD" : "ptr_et_degrad", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_ET_REAL" : "ptr_et_real", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DATE" : "ptr_vi_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_JUSTI" : "ptr_vi_justi", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_ENTR" : "ptr_vi_entr", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_BORD" : "ptr_vi_bord", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_DEST" : "ptr_vi_dest", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PTR_VI_PERC" : "ptr_vi_perc", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_PRETRAITEMENT_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE" : "", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_INSERT" : "Evacuation des eaux", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{id_eva}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{id_eva}}", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_EVA" : "id_eva", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_TYPE" : "evac_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LONG" : "evac_is_long", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_LARG" : "evac_is_larg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_SURFACE" : "evac_is_surface", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_PROFONDEUR" : "evac_is_profondeur", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_GEOTEX" : "evac_is_geotex", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_RAC" : "evac_is_rac", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_HUM" : "evac_is_hum", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REG_REP" : "evac_is_reg_rep", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_REB_BCL" : "evac_is_reb_bcl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_VEG" : "evac_is_veg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_TYPE_EFFL" : "evac_is_type_effl", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_IS_ACC_REG" : "evac_is_acc_reg", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_ETUDE_HYDROGEOL" : "evac_rp_etude_hydrogeol", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_REJET" : "evac_rp_rejet", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_GRAV" : "evac_rp_grav", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TAMP" : "evac_rp_tamp", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TYPE_EFF" : "evac_rp_type_eff", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_RP_TRAP" : "evac_rp_trap", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_TYPE" : "evac_hs_type", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE" : "evac_hs_gestionnaire", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_HS_GESTIONNAIRE_AUTH" : "evac_hs_gestionnaire_auth", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_EVAC_COMMENTAIRES" : "evac_commentaires", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_EVACUATION_EAUX_FORM_NUM_DOSSIER" : "num_dossier", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE" : "", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE" : "", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{id_fag}}", + "ANC_SAISIE_ANC_FILIERES_AGREE_TITLE_DISPLAY" : "Filière agréée n°{{id_fag}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE" : "Liste des filières agréées du contrôle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_FAG" : "id_fag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_CONTROLE" : "id_controle", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE" : "fag_type", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_AGREE" : "fag_agree", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_INTEGERER" : "fag_integerer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DENOM" : "fag_denom", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FAB" : "fag_fab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NUM_AG" : "fag_num_ag", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CAP_EH" : "fag_cap_eh", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_NB_CUV" : "fag_nb_cuv", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_GUIDE" : "fag_guide", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_LIVRET" : "fag_livret", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_CONTR" : "fag_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SOC" : "fag_soc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES" : "fag_pres", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PLAN" : "fag_plan", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TAMP" : "fag_tamp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ANCRAGE" : "fag_ancrage", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REP" : "fag_rep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_RESPECT" : "fag_respect", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_VENTIL" : "fag_ventil", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_TYP" : "fag_mil_typ", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MIL_FILT" : "fag_mil_filt", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MISE_EAU" : "fag_mise_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_ALAR" : "fag_pres_alar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_REG" : "fag_pres_reg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ATT_CONF" : "fag_att_conf", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR" : "fag_surpr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_REF" : "fag_surpr_ref", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_DIST" : "fag_surpr_dist", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_ELEC" : "fag_surpr_elec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_SURPR_AER" : "fag_surpr_aer", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REAC_BULL" : "fag_reac_bull", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_BROY" : "fag_broy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DEC" : "fag_dec", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_TYPE_EAU" : "fag_type_eau", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAR" : "fag_reg_mar", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_MAT" : "fag_reg_mat", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_AFFL" : "fag_reg_affl", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_HZ" : "fag_reg_hz", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_REG_VAN" : "fag_reg_van", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_NB" : "fag_fvl_nb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LONG" : "fag_fvl_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_LARG" : "fag_fvl_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PROF" : "fag_fvl_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_SEP" : "fag_fvl_sep", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_PLA" : "fag_fvl_pla", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_DRAIN" : "fag_fvl_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FVL_RESP" : "fag_fvl_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LONG" : "fag_fhz_long", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_LARG" : "fag_fhz_larg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_PROF" : "fag_fhz_prof", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_DRAIN" : "fag_fhz_drain", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_FHZ_RESP" : "fag_fhz_resp", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_QUAL" : "fag_mat_qual", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_MAT_EPA" : "fag_mat_epa", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_VEG" : "fag_pres_veg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_PRES_PRO" : "fag_pres_pro", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ACCES" : "fag_acces", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DEG" : "fag_et_deg", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_OD" : "fag_et_od", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_ET_DY" : "fag_et_dy", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DATE" : "fag_en_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_JUS" : "fag_en_jus", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_ENTR" : "fag_en_entr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_BORD" : "fag_en_bord", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_DEST" : "fag_en_dest", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_PERC" : "fag_en_perc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_CONTR" : "fag_en_contr", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_EN_MAINTEGER" : "fag_en_mainteger", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_ARB" : "fag_dist_arb", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_PARC" : "fag_dist_parc", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_HAB" : "fag_dist_hab", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FAG_DIST_CAP" : "fag_dist_cap", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ" : "maj", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_MAJ_DATE" : "maj_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE" : "create", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_CREATE_DATE" : "create_date", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PHOTOS_F" : "photos_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_FICHE_F" : "fiche_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_SCHEMA_F" : "schema_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_DOCUMENTS_F" : "documents_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_PLAN_F" : "plan_f", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_ID_INSTALLATION" : "id_installation", + "ANC_SAISIE_ANC_FILIERES_AGREE_FORM_NUM_DOSSIER" : "num_dossier", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation", + "SECTION_INSERT_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_INSERT" : "Traitement", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_UPDATE" : "Traitement n°{{id_traitement}}", + "ANC_SAISIE_ANC_TRAITEMENT_TITLE_DISPLAY" : "Traitement n°{{id_traitement}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_INSTALLATION" : "Installation n°{{sId}}", + "SECTION_UPDATE_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "SECTION_DISPLAY_TITLE_ANC_SAISIE_ANC_CONTROLE" : "Contrôle n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT" : "Liste des prétraitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_INSERT" : "Prétraitement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_UPDATE" : "Prétraitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_PRETRAITEMENT_TITLE_DISPLAY" : "Prétraitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_SCHEMA_TITLE" : "", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT" : "Liste des traitements du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_INSERT" : "Traitement", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_UPDATE" : "Traitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_TRAITEMENT_TITLE_DISPLAY" : "Traitement n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_INSERT" : "Filière agréée", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_UPDATE" : "Filière agréée n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_FILIERES_AGREE_TITLE_DISPLAY" : "Filière agréée n°{{sId}}", + "GRID_TITLE_ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX" : "Liste des évacuations des eaux du contrôle", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_INSERT" : "Evacuation des eaux", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_UPDATE" : "Evacuation des eaux n°{{sId}}", + "ANC_SAISIE_ANC_CONTROLE_CONTROLE_EVACUATION_EAUX_TITLE_DISPLAY" : "Evacuation des eaux n°{{sId}}" +} diff --git a/web_service/class/majic_lib/CHANGE_LOG.txt b/web_service/class/majic_lib/CHANGE_LOG.txt deleted file mode 100755 index 39048bfe..00000000 --- a/web_service/class/majic_lib/CHANGE_LOG.txt +++ /dev/null @@ -1,11 +0,0 @@ - - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - + + - + VEREMES - changelog de Majic_lib + - + + - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - - -__________________________________________________________________________________________________________________ -|b4379|NOUVEAUTE |RELEASE| VERSION 2011.1 Rajout du champ TAXE AD qui correspond aux taxes additionnelles sur les parcelles. Cette mise � jour s'applique sur la version 2011 applicable sur les donn�es 2012 -| diff --git a/web_service/class/majic_lib/Mj.class.inc b/web_service/class/majic_lib/Mj.class.inc deleted file mode 100755 index 3d3138d6..00000000 --- a/web_service/class/majic_lib/Mj.class.inc +++ /dev/null @@ -1,119 +0,0 @@ -<?php - -/** - * \file Mj.class.inc - * \brief Mj.class.inc \n \n Ce fichier contient la classe php Mj. - * - * Cette classe est une classe virtuelle qui peut �tre appel� par les autres classes de la librairie majic_lib par h�ritage. - * - * \author Damien Bedel <damien.bedel@veremes.com> - * \author Olivier Gayte <olivier.gayte@veremes.com> - */ -/** - * \class Mj - * \brief Mj Class \n \n Mj est une classe PHP. - * - * Cette classe permet de retourner un objet de s�lection dans une table sous la forme d'un tableau HTML. - * - * \author Damien Bedel - * \author Olivier Gayte <olivier.gayte@veremes.com> - */ -require_once dirname($_SERVER['SCRIPT_FILENAME']) . "/class/vitis_lib/XmlAbstract.class.inc"; - -class Mj extends XmlAbstract { - - /** - * Requ�te SQL de s�lection dans la table. - */ - var $sSql; - - /** - * Statut de l'objet cr�e lors de la requ�te. 1 si erreur; 0 si l'objet a pu �tre instanci�. - */ - var $sStatus = 0; - - /** - * Message d'erreur. - */ - var $sMessage; - - /** - * Nom du fichier SQL. - */ - var $sRessourcesFile = 'Mj.sql.inc'; - - /** - * Clef de cryptage - */ - var $sEncryptKey = ''; - - /** - * Clef de cryptage - */ - var $bAllSuf = false; - - /** - * Cette m�thode permet de retourner un code d'erreur en fonction du statut de l'objet r�sultant de la s�lection. - * \return Retourne 1 s'il y a une erreur, 0 si ok. - */ - function isError() { - if ($this->sStatus == 1) { - return 1; - } else { - return 0; - } - } - - /** - * Cette m�thode permet de renvoyer un message d'erreur. - * \return Retourne une cha�ne de caract�res. - */ - function getMessage() { - return $this->sMessage; - } - - function encrypt($cleartext) { - if ($this->sEncryptKey != '') { - if (empty($cleartext) || USE_ENCRYPTION == false) { - return $cleartext; - } - $cipher = mcrypt_module_open(MCRYPT_BLOWFISH, '', MCRYPT_MODE_CBC, ''); - $key = substr($this->sEncryptKey, 0, mcrypt_enc_get_key_size($cipher)); - $iv = '00000000'; - - // add the padding. - $cleartext_length = strlen($cleartext) % 8; - for ($i = $cleartext_length; $i < 8; $i++) { - $cleartext .= chr(8 - $cleartext_length); - } - - $ciphertext = ''; - // 128-bit Blowfish encryption: - if (mcrypt_generic_init($cipher, $key, $iv) != - 1) { - // PHP pads with NULL bytes if $cleartext IS NOT a multiple of the block size .. - if (empty($cleartext)) { - return ''; - } - $ciphertext = mcrypt_generic($cipher, $cleartext); - mcrypt_generic_deinit($cipher); - } - - return base64_encode($ciphertext); - } else { - return $cleartext; - } - } - - function getObjects($sClasse) { - $aObjClass = array(); - foreach ($this->aObjects as $oObj) { - if (get_class($oObj) == $sClasse) { - array_push($aObjClass, $oObj); - } - } - return $aObjClass; - } - -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj.sql.inc b/web_service/class/majic_lib/Mj.sql.inc deleted file mode 100755 index 2038a07f..00000000 --- a/web_service/class/majic_lib/Mj.sql.inc +++ /dev/null @@ -1,122 +0,0 @@ -<?php -$aSql['pgsql']['proprietaire']= 'SELECT "ID_DNUPRO" as id_dnupro, "DNUPRO" as "dnupro", "ID_PRO" as id_pro, "L_CCODRO" as l_ccodro, "L_CCODEM" as l_ccodem, "DNUPER" as dnuper, "DQUALP" as dqualp, "DDENOM" as ddenom, "DNOMLP" as dnomlp, "DPRNLP" as dprnlp, "EPXNEE" as epxnee, "DNOMCP" as dnomcp, "DPRNCP" as dprncp, "JDATNSS" as jdatnss, "DLDNSS" as dldnss, "DLIGN3" as dlign3, "DLIGN4" as dlign4, "DLIGN5" as dlign5, "DLIGN6" as dlign6, "GTOPER" as gtoper FROM majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."tc_CCODRO_code_droit" ON "PROPRIETAIRE_COURANT"."CCODRO"="tc_CCODRO_code_droit"."CCODRO" LEFT JOIN majic."tc_CCODEM_Nature_demembrement" ON "PROPRIETAIRE_COURANT"."CCODEM"="tc_CCODEM_Nature_demembrement"."CCODEM" WHERE "ID_DNUPRO"=\'$sIdDnupro\' AND "ID_PRO"=\'$sIdPro\''; -$aSql['pgsql']['bati'] = 'SELECT "FANTOIR_COMMUNE"."LIBCOM" as libcom, "BATI_A00_IDENT_LOCAL"."DNBNIV" as dnbniv,"BATI_A00_IDENT_LOCAL"."JDATAT" as jdatat, "BATI_A00_IDENT_LOCAL"."JANNAT" as jannat,"BATI_A00_IDENT_LOCAL"."DNATLC" as dnatlc, "BATI_A00_IDENT_LOCAL"."ID_DNUPRO" as b_iddnupro, "BATI_A00_IDENT_LOCAL"."DNUPRO" as b_dnupro, "BATI_A00_IDENT_LOCAL"."ID_BAT" as id_bat, "BATI_A00_IDENT_LOCAL"."DTELOC" as dteloc, "tc_DTELOC_Type_local"."L_DTELOC" as dteloc, "BATI_A00_IDENT_LOCAL"."DVLTRT" as dvltrt, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "CCOPLC" as ccoplc, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DNUBAT" as dnubat, "DESC" as desc, "DNIV" as dniv, "DPOR" as dpor, "BATI_A00_IDENT_LOCAL"."INVAR" as invar, "CCOEVA" as ccoeva, "BATI_A00_IDENT_LOCAL"."CCONLC" as cconlc, "L_CCONLC" AS lib_cconlc, "DVLPERA" as dvlpera, "GTAUOM" as gtauom, "CCONAD" as cconad, "LOT_LOCAL"."ID_BAT" as Local_id_bat, "LOT_LOCAL"."DNUMQL" as dnumql, "LOT_LOCAL"."DDENQL" as ddenql FROM majic."BATI_A00_IDENT_LOCAL" LEFT JOIN majic."BATI_A60_DESCR_DEPEND" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A60_DESCR_DEPEND"."ID_BAT" LEFT JOIN majic."BATI_A21_DESCR_PEV" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A21_DESCR_PEV"."ID_BAT" LEFT JOIN majic."tc_DTELOC_Type_local" ON "BATI_A00_IDENT_LOCAL"."DTELOC"="tc_DTELOC_Type_local"."DTELOC" LEFT JOIN majic."LOT_LOCAL" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="LOT_LOCAL"."ID_BAT" LEFT JOIN majic."FANTOIR_COMMUNE" ON "BATI_A00_IDENT_LOCAL"."CCOCOM"="FANTOIR_COMMUNE"."CCOCOM" LEFT JOIN majic."tc_CCONLC_Nature_local" ON "BATI_A00_IDENT_LOCAL"."CCONLC"="tc_CCONLC_Nature_local"."CCONLC" WHERE "BATI_A00_IDENT_LOCAL"."ID_BAT"=\'$sIdBat\' ORDER BY "CCOSEC","DNUPLA","BATI_A00_IDENT_LOCAL"."INVAR"'; -$aSql['pgsql']['habit_descr'] = 'SELECT "DNUPEV" as dnupev, "INVAR" as invar, "CCONAD1" as cconad1, "CCONAD2" as cconad2, "CCONAD3" as cconad3, "CCONAD4" as cconad4,"DSUEIC1" as dsueic1, "DSUEIC2" as dsueic2, "DSUEIC3" as dsueic3, "DSUEIC4" as dsueic4, "GEAULC" as geaulc, "GELELC" as gelelc, "GESCLC" as gesclc, "GGAZLC" as ggazlc, "GASCLC" as gasclc, "GCHCLC" as gchclc, "GVORLC" as gvorlc, "GTEGLC" as gteglc, "DNBBAI" as dnbbai, "DNBDOU" as dnbdou, "DNBLAV" as dnblav, "DNBWC" as dnbwc, "DNBPPR" as dnbppr, "DNBSAM" as dnbsam, "DNBCHA" as dnbcha, "DNBCU8" as dnbcu8, "DNBCU9" as dnbcu9, "DNBSEA" as dnbsea, "DNBANN" as dnbann, "DNBPDC" as dnbpdc, "DSUPDC" as dsupdc, "DMATGM" as dmatgm, "DMATTO" as dmatto, "JANNAT" as jannat, "DETENT" as detent, "DNBNIV" as dnbniv FROM majic."BATI_A40_DESCR_HABIT" WHERE "ID_PEV"=\'$sIdPev\' AND "DNUDES"=\'$sDnudes\''; -$aSql['pgsql']['depend_descr'] = 'SELECT "DNUDES" as dnudes, "DNUPEV" as dnupev, "INVAR" as invar, "BATI_A60_DESCR_DEPEND"."CCONAD" as cconad, "tc_CCONAD_Nature_dependance"."L_CCONAD" AS l_cconad, "DSUDEP" as dsudep, "DCIMLC" as dcimlc, "GEAULC" as geaulc, "GEAULC" as geaulc, "GELELC" as gelelc, "GCHCLC" as gchclc, "DNBBAI" as dnbbai, "DNBDOU" as dnbdou, "DNBLAV" as dnblav, "DNBWC" as dnbwc, "DMATGM" as dmatgm, "DMATTO" as dmatto, "DETENT" as detent FROM majic."BATI_A60_DESCR_DEPEND" INNER JOIN majic."tc_CCONAD_Nature_dependance" ON "BATI_A60_DESCR_DEPEND"."CCONAD"="tc_CCONAD_Nature_dependance"."CCONAD" WHERE "ID_DEP"=\'$sIdDep\''; -$aSql['pgsql']['prof_descr'] = 'SELECT "DNUDES" as dnudes, "DNUPEV" as dnupev, "INVAR" as invar, "VSURZT" as vsurzt FROM majic."BATI_A50_DESCR_PROF" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['pgsql']['pev'] = 'SELECT "BATI_A21_DESCR_PEV"."ID_PEV" as id_pev, "CCOSTB" as ccostb, "CCOAFF" as ccoaff, "DCAPEC" as dcapec, "DCSGLC" as dcsglc, "BIPEVLA1" as bipevla1, "GNEXPL" as gnexpl, "DVLPERA" as dvlpera, "BATI_A21_DESCR_PEV"."DNUPEV" as dnupev, "BATI_A21_DESCR_PEV"."DVLPER" as dvlper, "BATI_A21_DESCR_PEV"."DNUREF" as dnuref FROM majic."BATI_A21_DESCR_PEV" LEFT JOIN majic."BATI_A36_TAXATION_PEV" ON "BATI_A21_DESCR_PEV"."ID_PEV"="BATI_A36_TAXATION_PEV"."ID_PEV" WHERE "BATI_A21_DESCR_PEV"."ID_PEV"=\'$sIdPev\''; -$aSql['pgsql']['parcelle']='SELECT "ID_PAR" as id_par, "JDATAT" as jdatat,"CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CCONVO" as cconvo, "DVOILIB" as dvoilib,"TYPEVOIE" as typevoie,"CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf, "DCNTPA" as dcntpa, "DNUPRO" as dnupro , "GPARBAT" as gparbat FROM majic."NON_BATI_A10_DESCR_PARCELLE" LEFT JOIN majic."FANTOIR_VOIE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_RIVOLI"="FANTOIR_VOIE"."ID_RIVOLI" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['pgsql']['suf']='SELECT "DNUPRO" as dnupro,"NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"ID_SUF" as id_suf,"GNEXPS" as gnexps,"CCOSTN" as ccostn,"CCOSUB" as ccosub,"NON_BATI_A21_DESCR_SUF"."DSGRPF" as dsgrpf,"L_DSGRPF" as l_dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf,"DRCSUBA" as drcsuba, "DRCSUB" as drcsub FROM majic."NON_BATI_A21_DESCR_SUF" LEFT JOIN majic."tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['pgsql']['suf_bnd']='SELECT DISTINCT "ID_SUF" as id_suf,"DNUPRO" as dnupro,"NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"GNEXPS" as gnexps,"CCOSTN" as ccostn,"CCOSUB" as ccosub,"NON_BATI_A21_DESCR_SUF"."DSGRPF" as dsgrpf,"L_DSGRPF" as l_dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf,"DRCSUBA" as drcsuba, "DRCSUB" as drcsub, "NON_BATI_A21_DESCR_SUF"."DNUPDL" AS dnupdl, "NON_BATI_A21_DESCR_SUF"."DNULOT" AS dnulot, "DNUMQL" AS dnumql, "DDENQL" AS ddenql FROM (majic."NON_BATI_A21_DESCR_SUF" LEFT JOIN majic."tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF") LEFT JOIN majic."LOT_A30_DESCR_LOT" ON "LOT_A30_DESCR_LOT"."KLOT"="NON_BATI_A21_DESCR_SUF"."KLOT_" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['pgsql']['suf_dnupro']='SELECT "NON_BATI_A21_DESCR_SUF"."DNUPRO" as dnupro FROM majic."NON_BATI_A10_DESCR_PARCELLE" RIGHT JOIN majic."NON_BATI_A21_DESCR_SUF" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['pgsql']['compte_communal']='SELECT "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "PROPRIETAIRE_COURANT"."CCOCOM" as ccocom, "LIBCOM" as libcom, "DNUPRO" as dnupro, "ID_DNUPRO" as id_dnupro FROM majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['pgsql']['bati_parcelle']='SELECT "ID_PAR" as id_par, "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "PROPRIETAIRE_COURANT"."CCOCOM" as ccocom, "LIBCOM" as libcom, "PROPRIETAIRE_COURANT"."DNUPRO" as dnupro, "PROPRIETAIRE_COURANT"."ID_DNUPRO" as id_dnupro, "NON_BATI_A10_DESCR_PARCELLE"."DNVOIRI" as dnvoiri, "NON_BATI_A10_DESCR_PARCELLE"."DINDIC" as dindic, "CCONVO" as cconvo, "DVOILIB" as dvoilib, "DCNTPA" AS dcntpa FROM majic."NON_BATI_A10_DESCR_PARCELLE" INNER JOIN majic."PROPRIETAIRE_COURANT" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_DNUPRO"="PROPRIETAIRE_COURANT"."ID_DNUPRO" LEFT JOIN majic."FANTOIR_COMMUNE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" WHERE "ID_PAR"=\'sIdPar\''; -$aSql['pgsql']['exone_pev']='SELECT "ID_EX" as id_ex, "CCOLLOC" as ccolloc, "GNEXTL" as gnextl, "JANIMP" as janimp, "JANDEB" as jandeb, "RCEXBA2" as rcexba2, "PEXB" as pexb FROM majic."BATI_A30_EXONE_PEV" WHERE "ID_EX"=\'$sIdEx\''; -$aSql['pgsql']['exon_suf']='SELECT "ID_SUF" as id_suf, "RNUEXN" as rnuexn, "CCOLLOC" as ccolloc, "GNEXTS" as gnexts, "JFINEX" as jfinex, "PEXN" as pexn,"RCEXNBA" as rcexnba FROM majic."NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\' and "RNUEXN"=\'$sRnuexn\''; -$aSql['pgsql']['lot_local']='SELECT "ID_BAT" as id_bat, "KLOT" as klot, "DNUPDL" as dnupdl, "DNULOT" as dnulot, "DNUMQL" as dnumql, "DDENQL" as ddenql FROM majic."LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' and "KLOT"=\'$sKlot\''; -$aSql['pgsql']['get_id_pev']='SELECT "ID_PEV" as id_pev FROM majic."BATI_A21_DESCR_PEV" WHERE "ID_BAT"=\'$sIdBat\' ORDER BY "ID_PEV"'; -$aSql['pgsql']['get_id_ex_pev']='SELECT "ID_EX" as id_ex FROM majic."BATI_A30_EXONE_PEV" WHERE "ID_PEV"=\'$sIdPev\' ORDER BY "ID_EX"'; -$aSql['pgsql']['get_id_descr_hab']='SELECT "DNUDES" as dnudes, "ID_PEV" as id_pev FROM majic."BATI_A40_DESCR_HABIT" WHERE "ID_PEV"=\'$sIdPev\' ORDER BY "DNUDES"'; -$aSql['pgsql']['get_id_descr_depend']='SELECT "ID_DEP" as id_dep FROM majic."BATI_A60_DESCR_DEPEND" WHERE "ID_PEV"=\'$sIdPev\' ORDER BY "ID_DEP"'; -$aSql['pgsql']['get_klot']='SELECT "KLOT" as klot FROM majic."LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' ORDER BY "KLOT"'; -$aSql['pgsql']['get_id_suf']='SELECT "ID_SUF" as id_suf FROM majic."NON_BATI_A10_DESCR_PARCELLE" RIGHT JOIN majic."NON_BATI_A21_DESCR_SUF" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE ("NON_BATI_A10_DESCR_PARCELLE"."DNUPRO"=\'sDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\') AND "NON_BATI_A21_DESCR_SUF"."ID_PAR"=\'sIdPar\' AND ("NON_BATI_A10_DESCR_PARCELLE"."ID_DNUPRO"=\'sIdDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\')'; -$aSql['pgsql']['get_rnuexn']='SELECT DISTINCT "RNUEXN" as rnuexn FROM majic."NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\' ORDER BY "RNUEXN"'; -$aSql['pgsql']['get_id_pro']='SELECT DISTINCT "ID_PRO" as id_pro FROM majic."PROPRIETAIRE_COURANT" WHERE "ID_DNUPRO"=\'$sIdDnupro\' ORDER BY "ID_PRO"'; -$aSql['pgsql']['get_id_bat']='SELECT "ID_BAT" as id_bat FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\' ORDER BY "ID_BAT"'; -$aSql['pgsql']['get_id_par']='SELECT DISTINCT "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR" as id_par FROM majic."NON_BATI_A10_DESCR_PARCELLE" LEFT JOIN majic."NON_BATI_A21_DESCR_SUF" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE ("NON_BATI_A10_DESCR_PARCELLE"."DNUPRO"=\'sDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\') AND "NON_BATI_A21_DESCR_SUF"."ID_COM"=\'sIdCom\' ORDER BY "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"'; -$aSql['pgsql']['get_id_par_bnd']='SELECT "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR" as "id_par" FROM majic."NON_BATI_A21_DESCR_SUF" INNER JOIN majic."NON_BATI_A10_DESCR_PARCELLE" ON "NON_BATI_A21_DESCR_SUF"."ID_PAR" = "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR" WHERE "NON_BATI_A21_DESCR_SUF"."DNUPRO" = \'sDnupro\' AND "NON_BATI_A10_DESCR_PARCELLE"."ID_DNUPRO" != \'sIdDnupro\' AND "NON_BATI_A10_DESCR_PARCELLE"."ID_COM"=\'sIdCom\''; -$aSql['pgsql']['get_par_id_bat']='SELECT "ID_BAT" as id_bat FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_PAR"=\'sIdPar\' ORDER BY "ID_BAT"'; -$aSql['pgsql']['annee_reference']='SELECT "ANNEE" FROM majic."ANNEE_REFERENCE"'; -$aSql['pgsql']['get_id_dnupro']='SELECT "ID_DNUPRO" as iddnupro, "DNUPRO" as dnupro FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'idparpro\''; -$aSql['pgsql']['compte_communal_parcelle']='SELECT "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "LIBDEP" as libdep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "PROPRIETAIRE_COURANT"."CCOCOM" as ccocom, "LIBCOM" as libcom, "PROPRIETAIRE_COURANT". "DNUPRO" as dnupro,"PROPRIETAIRE_COURANT"."ID_DNUPRO" as id_dnupro, "ID_PAR" as id_par FROM majic."NON_BATI_A10_DESCR_PARCELLE", majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" LEFT JOIN majic."FANTOIR_DIRECTION" ON "FANTOIR_COMMUNE"."CCODEP"= "FANTOIR_DIRECTION"."CCODEP" WHERE "PROPRIETAIRE_COURANT"."ID_DNUPRO"=\'$sIdDnupro\' and "ID_PAR"=\'$sIdPar\''; -$aSql['pgsql']['get_id_bat_parcelle']='SELECT "ID_BAT" as id_bat FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\' and "ID_PAR"=\'$sIdPar\' ORDER BY "ID_BAT"'; -/*$aSql['pgsql']['emprise']['bati']='SELECT "ID_PAR" as id_par, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CCONVO" as cconvo, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf, "DCNTPA" as dcntpa, "DNUPRO" as dnupro FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['pgsql']['emprise']['pos']='SELECT "ID_PAR" as id_par, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CCONVO" as cconvo, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf, "DCNTPA" as dcntpa, "DNUPRO" as dnupro FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['pgsql']['emprise']['plu']='SELECT "ID_PAR" as id_par, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CCONVO" as cconvo, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf, "DCNTPA" as dcntpa, "DNUPRO" as dnupro FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'$sIdPar\''; -*/ - - - - - - - - - -$aSql['oci']['proprietaire']= 'SELECT "ID_DNUPRO" as "id_dnupro", "DNUPRO" as "dnupro", "ID_PRO" as "id_pro", "L_CCODRO" as "l_ccodro", "L_CCODEM" as "l_ccodem", "DNUPER" as "dnuper", "DQUALP" as "dqualp", "DDENOM" as "ddenom", "DNOMLP" as "dnomlp", "DPRNLP" as "dprnlp", "EPXNEE" as "epxnee", "DNOMCP" as "dnomcp", "DPRNCP" as "dprncp", TO_CHAR("JDATNSS" , \'DD/MM/YYYY\') as "jdatnss", "DLDNSS" as "dldnss", "DLIGN3" as "dlign3", "DLIGN4" as "dlign4", "DLIGN5" as "dlign5", "DLIGN6" as "dlign6", "GTOPER" as "gtoper" FROM majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."tc_CCODRO_code_droit" ON "PROPRIETAIRE_COURANT"."CCODRO"="tc_CCODRO_code_droit"."CCODRO" LEFT JOIN majic."tc_CCODEM_Nature_demembrement" ON "PROPRIETAIRE_COURANT"."CCODEM"="tc_CCODEM_Nature_demembrement"."CCODEM" WHERE "ID_DNUPRO"=\'$sIdDnupro\' AND "ID_PRO"=\'$sIdPro\''; -$aSql['oci']['bati'] = 'SELECT "FANTOIR_COMMUNE"."LIBCOM" as "libcom", "BATI_A00_IDENT_LOCAL"."DNBNIV" as "dnbniv", TO_CHAR("BATI_A00_IDENT_LOCAL"."JDATAT" , \'DD/MM/YYYY\') as "jdatat", "BATI_A00_IDENT_LOCAL"."JANNAT" as "jannat","BATI_A00_IDENT_LOCAL"."DNATLC" as "dnatlc", "BATI_A00_IDENT_LOCAL"."ID_DNUPRO" as "b_iddnupro", "BATI_A00_IDENT_LOCAL"."DNUPRO" as "b_dnupro", "BATI_A00_IDENT_LOCAL"."ID_BAT" as "id_bat", "BATI_A00_IDENT_LOCAL"."DTELOC" as "dteloc", "tc_DTELOC_Type_local"."L_DTELOC" as "dteloc", "BATI_A00_IDENT_LOCAL"."DVLTRT" as "dvltrt", "CCOSEC" as "ccosec", "DNUPLA" as "dnupla", "CCOPLC" as "ccoplc", "DNVOIRI" as "dnvoiri", "DINDIC" as "dindic", "DVOILIB" as "dvoilib", "CCORIV" as "ccoriv", "DNUBAT" as "dnubat", "DESC" as "desc", "DNIV" as "dniv", "DPOR" as "dpor", "BATI_A00_IDENT_LOCAL"."INVAR" as "invar", "CCOEVA" as "ccoeva", "tc_CCONLC_Nature_local"."CCONLC" as "cconlc","DVLPERA" as "dvlpera", "GTAUOM" as "gtauom", "CCONAD" as "cconad", "LOT_LOCAL"."ID_BAT" as "Local_id_bat","LOT_LOCAL"."DNUMQL" as "dnumql","LOT_LOCAL"."DDENQL" as "ddenql", "L_CCONLC" AS "lib_cconlc" FROM majic."BATI_A00_IDENT_LOCAL" LEFT JOIN majic."BATI_A60_DESCR_DEPEND" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A60_DESCR_DEPEND"."ID_BAT" LEFT JOIN majic."BATI_A21_DESCR_PEV" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A21_DESCR_PEV"."ID_BAT" LEFT JOIN majic."tc_DTELOC_Type_local" ON "BATI_A00_IDENT_LOCAL"."DTELOC"="tc_DTELOC_Type_local"."DTELOC" left join majic."LOT_LOCAL" on "BATI_A00_IDENT_LOCAL"."ID_BAT" ="LOT_LOCAL"."ID_BAT" left join majic."FANTOIR_COMMUNE" on "BATI_A00_IDENT_LOCAL"."ID_COM" ="FANTOIR_COMMUNE"."ID_COM" LEFT JOIN majic."tc_CCONLC_Nature_local" ON "BATI_A00_IDENT_LOCAL"."CCONLC"="tc_CCONLC_Nature_local"."CCONLC" WHERE "BATI_A00_IDENT_LOCAL"."ID_BAT"=\'$sIdBat\' ORDER BY "CCOSEC","DNUPLA","BATI_A00_IDENT_LOCAL"."INVAR"'; -$aSql['oci']['habit_descr'] = 'SELECT "DNUPEV" as "dnupev", "INVAR" as "invar", "CCONAD1" as "cconad1", "CCONAD2" as "cconad2", "CCONAD3" as "cconad3", "CCONAD4" as "cconad4","DSUEIC1" as "dsueic1", "DSUEIC2" as "dsueic2", "DSUEIC3" as "dsueic3", "DSUEIC4" as "dsueic4", "GEAULC" as "geaulc", "GELELC" as "gelelc", "GESCLC" as "gesclc", "GGAZLC" as "ggazlc", "GASCLC" as "gasclc", "GCHCLC" as "gchclc", "GVORLC" as "gvorlc", "GTEGLC" as "gteglc", "DNBBAI" as "dnbbai", "DNBDOU" as "dnbdou", "DNBLAV" as "dnblav", "DNBWC" as "dnbwc", "DNBPPR" as "dnbppr", "DNBSAM" as "dnbsam", "DNBCHA" as "dnbcha", "DNBCU8" as "dnbcu8", "DNBCU9" as "dnbcu9", "DNBSEA" as "dnbsea", "DNBANN" as "dnbann", "DNBPDC" as "dnbpdc", "DSUPDC" as "dsupdc", "tc_DMATGM_materiaux_gros_murs"."DMATGM" as "dmatgm", "tc_DMATTO_materiaux_toitures"."DMATTO" as "dmatto", "JANNAT" as "jannat", "BATI_A40_DESCR_HABIT"."DETENT" as "detent", "L_DETENT" as "l_detent", "DNBNIV" as "dnbniv", "tc_DMATGM_materiaux_gros_murs"."L_DMATGM" as "lib_dmatgm", "tc_DMATTO_materiaux_toitures"."L_DMATTO" as "lib_dmatto" FROM majic."BATI_A40_DESCR_HABIT" LEFT JOIN majic."tc_DETENT_Etat_entretien" ON "BATI_A40_DESCR_HABIT"."DETENT"="tc_DETENT_Etat_entretien"."DETENT" LEFT JOIN majic."tc_DMATGM_materiaux_gros_murs" ON "BATI_A40_DESCR_HABIT"."DMATGM"="tc_DMATGM_materiaux_gros_murs"."DMATGM" LEFT JOIN majic."tc_DMATTO_materiaux_toitures" ON "BATI_A40_DESCR_HABIT"."DMATTO"="tc_DMATTO_materiaux_toitures"."DMATTO" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['oci']['depend_descr'] = 'SELECT "DNUDES" as "dnudes", "DNUPEV" as "dnupev", "INVAR" as "invar", "CCONAD" as "cconad", "DSUDEP" as "dsudep", "DCIMLC" as "dcimlc", "GEAULC" as "geaulc", "GEAULC" as "geaulc", "GELELC" as "gelelc", "GCHCLC" as "gchclc", "DNBBAI" as "dnbbai", "DNBDOU" as "dnbdou", "DNBLAV" as "dnblav", "DNBWC" as "dnbwc", "tc_DMATGM_materiaux_gros_murs"."DMATGM" as "dmatgm", "tc_DMATTO_materiaux_toitures"."DMATTO" as "dmatto", "BATI_A60_DESCR_DEPEND"."DETENT" as "detent", "L_DETENT" as "l_detent", "tc_DMATGM_materiaux_gros_murs"."L_DMATGM" as "lib_dmatgm", "tc_DMATTO_materiaux_toitures"."L_DMATTO" as "lib_dmatto" FROM majic."BATI_A60_DESCR_DEPEND" LEFT JOIN majic."tc_DETENT_Etat_entretien" ON "BATI_A60_DESCR_DEPEND"."DETENT"="tc_DETENT_Etat_entretien"."DETENT" LEFT JOIN majic."tc_DMATGM_materiaux_gros_murs" ON "BATI_A60_DESCR_DEPEND"."DMATGM"="tc_DMATGM_materiaux_gros_murs"."DMATGM" LEFT JOIN majic."tc_DMATTO_materiaux_toitures" ON "BATI_A60_DESCR_DEPEND"."DMATTO"="tc_DMATTO_materiaux_toitures"."DMATTO" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['oci']['prof_descr'] = 'SELECT "DNUDES" as "dnudes", "DNUPEV" as "dnupev", "INVAR" as "invar", "VSURZT" as "vsurzt" FROM majic."BATI_A50_DESCR_PROF" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['oci']['pev'] = 'SELECT "BATI_A21_DESCR_PEV"."ID_PEV" as "id_pev", "CCOSTB" as "ccostb", "BATI_A21_DESCR_PEV"."CCOAFF" as "ccoaff", "L_CCOAFF" as "l_ccoaff", "DCAPEC" as "dcapec", "DCSGLC" as "dcsglc", "BIPEVLA1" as "bipevla1", "BATI_A21_DESCR_PEV"."GNEXPL" as "gnexpl", "L_GNEXPL" as "l_gnexpl", "DVLPERA" as "dvlpera", "BATI_A21_DESCR_PEV"."DNUPEV" as "dnupev", "BATI_A21_DESCR_PEV"."DVLPER" as "dvlper", "BATI_A21_DESCR_PEV"."DNUREF" as "dnuref" FROM majic."BATI_A21_DESCR_PEV" LEFT JOIN majic."tc_CCOAFF_Affectation_pev" ON "BATI_A21_DESCR_PEV"."CCOAFF"="tc_CCOAFF_Affectation_pev"."CCOAFF" LEFT JOIN majic."tc_GNEXPL_Exone_permanente" ON "BATI_A21_DESCR_PEV"."GNEXPL"="tc_GNEXPL_Exone_permanente"."GNEXPL" LEFT JOIN majic."BATI_A36_TAXATION_PEV" ON "BATI_A21_DESCR_PEV"."ID_PEV"="BATI_A36_TAXATION_PEV"."ID_PEV" WHERE "BATI_A21_DESCR_PEV"."ID_PEV"=\'$sIdPev\''; -$aSql['oci']['parcelle']='SELECT "ID_PAR" as "id_par", "JDATAT" as "jdatat","CCOSEC" as "ccosec", "DNUPLA" as "dnupla", "DNVOIRI" as "dnvoiri", "DINDIC" as "dindic", "CODEVOIE" as "codevoie", "LIBVOIE" as "libvoie","TYPEVOIE" as "typevoie","CCORIV" as "ccoriv", "DPARPI" as "dparpi", "GPARNF" as "gparnf", Ltrim(TO_CHAR(DCNTPA, \'000000000\')) as "dcntpa", "DNUPRO" as "dnupro" , "GPARBAT" as "gparbat", "GURBPA" as "gurbpa" FROM majic."NON_BATI_A10_DESCR_PARCELLE" LEFT JOIN majic."FANTOIR_VOIE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_RIVOLI"="FANTOIR_VOIE"."ID_RIVOLI" WHERE "ID_PAR"=\'$sIdPar\' ORDER BY "CCOSEC","DNUPLA"'; -$aSql['oci']['suf']='SELECT "DNUPRO" as "dnupro","NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"ID_SUF" as "id_suf","GNEXPS" as "gnexps","CCOSTN" as "ccostn","CCOSUB" as "ccosub","NON_BATI_A21_DESCR_SUF"."DSGRPF" as "dsgrpf","L_DSGRPF" as "l_dsgrpf", "DCLSSF" as "dclssf", "CNATSP" as "cnatsp", Ltrim(TO_CHAR(DCNTSF, \'000000000\')) as "dcntsf","DRCSUBA" as "drcsuba", "DRCSUB" as "drcsub","NON_BATI_A21_DESCR_SUF"."CGRNUM" as "cgrnum", "L_CGRNUM" as "l_cgrnum" FROM majic."NON_BATI_A21_DESCR_SUF" LEFT JOIN majic."tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF" LEFT JOIN majic."tc_CGRNUM_Groupe_numerique" ON "NON_BATI_A21_DESCR_SUF"."CGRNUM" = "tc_CGRNUM_Groupe_numerique"."CGRNUM" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['oci']['suf_bnd']='SELECT DISTINCT "ID_SUF" as "id_suf","NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"DNUPRO" as "dnupro","GNEXPS" as "gnexps","CCOSTN" as "ccostn","CCOSUB" as "ccosub","NON_BATI_A21_DESCR_SUF"."DSGRPF" as "dsgrpf","L_DSGRPF" as "l_dsgrpf", "DCLSSF" as "dclssf", "CNATSP" as "cnatsp", Ltrim(TO_CHAR(DCNTSF, \'000000000\')) as "dcntsf","DRCSUBA" as "drcsuba", "DRCSUB" as "drcsub", "NON_BATI_A21_DESCR_SUF"."DNUPDL" AS "dnupdl", "NON_BATI_A21_DESCR_SUF"."DNULOT" AS "dnulot", "DNUMQL" AS "dnumql", "DDENQL" AS "ddenql","NON_BATI_A21_DESCR_SUF"."CGRNUM" as "cgrnum", "L_CGRNUM" as "l_cgrnum" FROM (majic."NON_BATI_A21_DESCR_SUF" LEFT JOIN majic."tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF") LEFT JOIN majic."tc_CGRNUM_Groupe_numerique" ON "NON_BATI_A21_DESCR_SUF"."CGRNUM" = "tc_CGRNUM_Groupe_numerique"."CGRNUM" LEFT JOIN majic."LOT_A30_DESCR_LOT" ON "LOT_A30_DESCR_LOT"."KLOT"="NON_BATI_A21_DESCR_SUF"."KLOT_" WHERE "ID_SUF"=\'$sIdSuf\' AND "DNUPRO" = \'sIdDnupro\''; -$aSql['oci']['suf_bnd_all']='SELECT DISTINCT "ID_SUF" as id_suf,"DNUPRO" as dnupro,"NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"GNEXPS" as gnexps,"CCOSTN" as ccostn,"CCOSUB" as ccosub, "NON_BATI_A21_DESCR_SUF"."DSGRPF" as dsgrpf,"L_DSGRPF" as l_dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf,"DRCSUBA" as drcsuba, "DRCSUB" as drcsub, "DNUPDL" AS dnupdl, "DNULOT" AS dnulot, "DNUMQL" AS dnumql, "DDENQL" AS ddenql, "NON_BATI_A21_DESCR_SUF"."CGRNUM" as "cgrnum", "L_CGRNUM" as "l_cgrnum" FROM "NON_BATI_A21_DESCR_SUF" LEFT JOIN "tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF" LEFT JOIN "tc_CGRNUM_Groupe_numerique" ON "NON_BATI_A21_DESCR_SUF"."CGRNUM" = "tc_CGRNUM_Groupe_numerique"."CGRNUM" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['oci']['suf_dnupro']='SELECT "NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "dnupro" FROM majic."NON_BATI_A10_DESCR_PARCELLE" RIGHT JOIN majic."NON_BATI_A21_DESCR_SUF" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['oci']['compte_communal']='SELECT "PROPRIETAIRE_COURANT"."CCODEP" as "ccodep", "PROPRIETAIRE_COURANT"."CCODIR" as "ccodir", "PROPRIETAIRE_COURANT"."CCOCOM" as "ccocom", "LIBCOM" as "libcom", "DNUPRO" as "dnupro", "ID_DNUPRO" as "id_dnupro" FROM majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['oci']['exone_pev']='SELECT "ID_EX" as "id_ex", "CCOLLOC" as "ccolloc", "GNEXTL" as "gnextl", "JANIMP" as "janimp", "JANDEB" as "jandeb", "RCEXBA2" as "rcexba2", "PEXB" as "pexb" FROM majic."BATI_A30_EXONE_PEV" WHERE "ID_EX"=\'$sIdEx\''; -$aSql['oci']['exon_suf']='SELECT "ID_SUF" as "id_suf", "RNUEXN" as "rnuexn", "CCOLLOC" as "ccolloc", "GNEXTS" as "gnexts", "JFINEX" as "jfinex", "PEXN" as "pexn","RCEXNBA" as "rcexnba" FROM majic."NON_BATI_A30_EXON_SUF" WHERE "ID_PAR"=(substr(\'$sIdSuf\',0,15)) AND CCOSUB=(substr(\'$sIdSuf\',16)) and "RNUEXN"=\'$sRnuexn\''; -$aSql['oci']['lot_local']='SELECT "ID_BAT" as "id_bat", "KLOT" as "klot", "DNUPDL" as "dnupdl", "DNULOT" as "dnulot", "DNUMQL" as "dnumql", "DDENQL" as "ddenql" FROM majic."LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' and "KLOT"=\'$sKlot\''; -$aSql['oci']['get_id_pev']='SELECT "ID_PEV" as "id_pev" FROM majic."BATI_A21_DESCR_PEV" WHERE "ID_BAT"=\'$sIdBat\' ORDER BY "ID_PEV"'; -$aSql['oci']['get_id_ex_pev']='SELECT "ID_EX" as "id_ex" FROM majic."BATI_A30_EXONE_PEV" WHERE "ID_PEV"=\'$sIdPev\' ORDER BY "ID_EX"'; -$aSql['oci']['get_klot']='SELECT "KLOT" as "klot" FROM majic."LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' ORDER BY "KLOT"'; -$aSql['oci']['get_id_suf']='SELECT "ID_SUF" as "id_suf" FROM majic."WS_NON_BATI_A10_DESCR_PARCELLE" RIGHT JOIN majic."NON_BATI_A21_DESCR_SUF" ON "WS_NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE ("WS_NON_BATI_A10_DESCR_PARCELLE"."DNUPRO"=\'sIdDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\') AND "NON_BATI_A21_DESCR_SUF"."ID_PAR"=\'sIdPar\' AND ("NON_BATI_A10_DESCR_PARCELLE"."ID_DNUPRO"=\'sIdDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\')'; -$aSql['oci']['get_rnuexn']='SELECT DISTINCT "RNUEXN" as "rnuexn" FROM majic."NON_BATI_A30_EXON_SUF" WHERE "ID_PAR"=(substr(\'$sIdSuf\',0,15)) AND CCOSUB=(substr(\'$sIdSuf\',16)) ORDER BY "RNUEXN"'; -$aSql['oci']['get_id_pro']='SELECT DISTINCT "ID_PRO" as "id_pro", "DNUPER" FROM majic."PROPRIETAIRE_COURANT" WHERE "ID_DNUPRO"=\'$sIdDnupro\' ORDER BY "DNUPER"'; -$aSql['oci']['get_id_bat']='SELECT "ID_BAT" as "id_bat" FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\' ORDER BY "ID_BAT"'; -$aSql['oci']['get_id_par']='SELECT DISTINCT "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR" as "id_par" FROM majic."NON_BATI_A10_DESCR_PARCELLE" LEFT JOIN majic."NON_BATI_A21_DESCR_SUF" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE ("NON_BATI_A10_DESCR_PARCELLE"."DNUPRO"=\'sDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\') AND "NON_BATI_A21_DESCR_SUF"."ID_COM"=\'sIdCom\' ORDER BY "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"'; -$aSql['oci']['get_id_par_bnd']='SELECT NON_BATI_A10_DESCR_PARCELLE.ID_PAR as "id_par" FROM NON_BATI_A21_DESCR_SUF INNER JOIN NON_BATI_A10_DESCR_PARCELLE ON NON_BATI_A21_DESCR_SUF.ID_PAR = NON_BATI_A10_DESCR_PARCELLE.ID_PAR where NON_BATI_A21_DESCR_SUF.DNUPRO = \'sDnupro\' AND NON_BATI_A10_DESCR_PARCELLE.ID_DNUPRO != \'sIdDnupro\' AND NON_BATI_A10_DESCR_PARCELLE."ID_COM"=\'sIdCom\''; -$aSql['oci']['annee_reference']='SELECT "ANNEE" FROM majic."ANNEE_REFERENCE"'; -$aSql['oci']['get_id_dnupro']='SELECT "ID_DNUPRO" as "iddnupro", "DNUPRO" as "dnupro" FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'idparpro\''; -$aSql['oci']['compte_communal_parcelle']='SELECT "FANTOIR_COMMUNE"."CODE_INSEE" as "codeinsee","PROPRIETAIRE_COURANT"."CCODEP" as "ccodep", "LIBDEP" as "libdep", "PROPRIETAIRE_COURANT"."CCODIR" as "ccodir", "FANTOIR_COMMUNE"."CCOCOM" as "ccocom", "LIBCOM" as "libcom", "PROPRIETAIRE_COURANT"."DNUPRO" as "dnupro","PROPRIETAIRE_COURANT"."ID_DNUPRO" as "id_dnupro", "ID_PAR" as "id_par" FROM majic."NON_BATI_A10_DESCR_PARCELLE", majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" LEFT JOIN majic."FANTOIR_DIRECTION" ON "FANTOIR_COMMUNE"."CCODEP"= "FANTOIR_DIRECTION"."CCODEP" WHERE "PROPRIETAIRE_COURANT"."ID_DNUPRO"=\'$sIdDnupro\' and "ID_PAR"=\'$sIdPar\''; -$aSql['oci']['get_id_bat_parcelle']='SELECT "ID_BAT" as "id_bat" FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\' and "ID_PAR"=\'$sIdPar\' ORDER BY "ID_BAT"'; -$aSql['oci']['get_par_id_bat']='SELECT "ID_BAT" as "id_bat" FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_PAR"=\'sIdPar\' ORDER BY "ID_BAT"'; -$aSql['oci']['pos_plu']='SELECT p.GGCODEIDENT, cos, ces, type, hauteur, libelle, SDO_GEOM.SDO_AREA (SDO_GEOM.SDO_INTERSECTION(z.GEOM, p.GEOM, 0.005),0.005) surface FROM exp_pos.zpos_simpl z RIGHT join cadastre.parcelle_cadastrale_mixee p ON SDO_RELATE (z.geom,p.geom, \'mask=CONTAINS+INSIDE+OVERLAPBDYINTERSECT+COVERS+COVEREDBY+EQUAL querytype=WINDOW\') = \'TRUE\' AND z.codcom =p.codcom WHERE z.OBJECTID = \'$sObjectId\' AND p.PAR_ID = \'$sIdPar\' AND p.codcom = \'$sCodCom\' and SDO_GEOM.SDO_AREA (SDO_GEOM.SDO_INTERSECTION(z.GEOM, p.GEOM, 0.005),0.005) >2'; -$aSql['oci']['get_id_pos_plu']='SELECT z.OBJECTID FROM exp_pos.zpos_simpl z, cadastre.parcelle_cadastrale_mixee p WHERE SDO_RELATE (z.geom,p.geom, \'mask=CONTAINS+INSIDE+OVERLAPBDYINTERSECT+COVERS+COVEREDBY+EQUAL querytype=WINDOW`\') = \'TRUE\' AND z.codcom=p.codcom AND p.PAR_ID = \'$sIdPar\' AND p.codcom = \'$sCodCom\''; -$aSql['oci']['get_codcom']='SELECT NON_BATI_A10_DESCR_PARCELLE.CODE_INSEE FROM MAJIC.NON_BATI_A10_DESCR_PARCELLE WHERE (NON_BATI_A10_DESCR_PARCELLE.ID_PAR =\'$sIdPar\')'; - - - - - - - - - -$aSql['sqlite']['proprietaire']= 'SELECT "ID_DNUPRO" as id_dnupro, "DNUPRO" as "dnupro", "ID_PRO" as id_pro, "L_CCODRO" as l_ccodro, "L_CCODEM" as l_ccodem, "DNUPER" as dnuper, "DQUALP" as dqualp, "DDENOM" as ddenom, "DNOMLP" as dnomlp, "DPRNLP" as dprnlp, "EPXNEE" as epxnee, "DNOMCP" as dnomcp, "DPRNCP" as dprncp, "JDATNSS" as jdatnss, "DLDNSS" as dldnss, "DLIGN3" as dlign3, "DLIGN4" as dlign4, "DLIGN5" as dlign5, "DLIGN6" as dlign6, "GTOPER" as gtoper FROM "PROPRIETAIRE_COURANT" LEFT JOIN "tc_CCODRO_code_droit" ON "PROPRIETAIRE_COURANT"."CCODRO"="tc_CCODRO_code_droit"."CCODRO" LEFT JOIN "tc_CCODEM_Nature_demembrement" ON "PROPRIETAIRE_COURANT"."CCODEM"="tc_CCODEM_Nature_demembrement"."CCODEM" WHERE "ID_DNUPRO"=\'$sIdDnupro\' AND "ID_PRO"=\'$sIdPro\''; -//modif pas faites sur autre database -$aSql['sqlite']['bati'] = 'SELECT "FANTOIR_COMMUNE"."LIBCOM" as libcom, "BATI_A00_IDENT_LOCAL"."DNBNIV" as dnbniv,"BATI_A00_IDENT_LOCAL"."JDATAT" as jdatat, "BATI_A00_IDENT_LOCAL"."JANNAT" as jannat,"BATI_A00_IDENT_LOCAL"."DNATLC" as dnatlc, "BATI_A00_IDENT_LOCAL"."ID_DNUPRO" as b_iddnupro, "BATI_A00_IDENT_LOCAL"."DNUPRO" as b_dnupro, "BATI_A00_IDENT_LOCAL"."ID_BAT" as id_bat, "BATI_A00_IDENT_LOCAL"."DTELOC" as dteloc, "tc_DTELOC_Type_local"."L_DTELOC" as dteloc, "BATI_A00_IDENT_LOCAL"."DVLTRT" as dvltrt, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "CCOPLC" as ccoplc, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DNUBAT" as dnubat, "DESC" as desc, "DNIV" as dniv, "DPOR" as dpor, "BATI_A00_IDENT_LOCAL"."INVAR" as invar, "CCOEVA" as ccoeva, "tc_CCONLC_Nature_local"."CCONLC" as cconlc,"DVLPERA" as dvlpera, "GTAUOM" as gtauom, "CCONAD" as cconad, "LOT_LOCAL"."ID_BAT" as Local_id_bat,"LOT_LOCAL"."DNUMQL" as dnumql,"LOT_LOCAL"."DDENQL" as ddenql, "L_CCONLC" AS lib_cconlc FROM "BATI_A00_IDENT_LOCAL" LEFT JOIN "BATI_A60_DESCR_DEPEND" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A60_DESCR_DEPEND"."ID_BAT" LEFT JOIN "BATI_A21_DESCR_PEV" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A21_DESCR_PEV"."ID_BAT" LEFT JOIN "tc_DTELOC_Type_local" ON "BATI_A00_IDENT_LOCAL"."DTELOC"="tc_DTELOC_Type_local"."DTELOC" left join "LOT_LOCAL" on "BATI_A00_IDENT_LOCAL"."ID_BAT" ="LOT_LOCAL"."ID_BAT" left join "FANTOIR_COMMUNE" on "BATI_A00_IDENT_LOCAL"."CCOCOM" ="FANTOIR_COMMUNE"."CCOCOM" LEFT JOIN "tc_CCONLC_Nature_local" ON "BATI_A00_IDENT_LOCAL"."CCONLC"="tc_CCONLC_Nature_local"."CCONLC" WHERE "BATI_A00_IDENT_LOCAL"."ID_BAT"=\'$sIdBat\' ORDER BY "CCOSEC","DNUPLA","BATI_A00_IDENT_LOCAL"."INVAR"'; -$aSql['sqlite']['habit_descr'] = 'SELECT "DNUPEV" as dnupev, "INVAR" as invar, "CCONAD1" as cconad1, "CCONAD2" as cconad2, "CCONAD3" as cconad3, "CCONAD4" as cconad4,"DSUEIC1" as dsueic1, "DSUEIC2" as dsueic2, "DSUEIC3" as dsueic3, "DSUEIC4" as dsueic4, "GEAULC" as geaulc, "GELELC" as gelelc, "GESCLC" as gesclc, "GGAZLC" as ggazlc, "GASCLC" as gasclc, "GCHCLC" as gchclc, "GVORLC" as gvorlc, "GTEGLC" as gteglc, "DNBBAI" as dnbbai, "DNBDOU" as dnbdou, "DNBLAV" as dnblav, "DNBWC" as dnbwc, "DNBPPR" as dnbppr, "DNBSAM" as dnbsam, "DNBCHA" as dnbcha, "DNBCU8" as dnbcu8, "DNBCU9" as dnbcu9, "DNBSEA" as dnbsea, "DNBANN" as dnbann, "DNBPDC" as dnbpdc, "DSUPDC" as dsupdc, "tc_DMATGM_materiaux_gros_murs"."DMATGM" as "dmatgm", "tc_DMATTO_materiaux_toitures"."DMATTO" as "dmatto", "JANNAT" as jannat, "BATI_A40_DESCR_HABIT"."DETENT" as detent, "L_DETENT" as l_detent, "DNBNIV" as dnbniv, "tc_DMATGM_materiaux_gros_murs"."L_DMATGM" as "lib_dmatgm", "tc_DMATTO_materiaux_toitures"."L_DMATTO" FROM "BATI_A40_DESCR_HABIT" LEFT JOIN "tc_DETENT_Etat_entretien" ON "BATI_A40_DESCR_HABIT"."DETENT"="tc_DETENT_Etat_entretien"."DETENT" LEFT JOIN "tc_DMATGM_materiaux_gros_murs" ON "BATI_A40_DESCR_HABIT"."DMATGM"="tc_DMATGM_materiaux_gros_murs"."DMATGM" LEFT JOIN "tc_DMATTO_materiaux_toitures" ON "BATI_A40_DESCR_HABIT"."DMATTO"="tc_DMATTO_materiaux_toitures"."DMATTO" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['sqlite']['depend_descr'] = 'SELECT "DNUDES" as dnudes, "DNUPEV" as dnupev, "INVAR" as invar, "CCONAD" as cconad, "DSUDEP" as dsudep, "DCIMLC" as dcimlc, "GEAULC" as geaulc, "GEAULC" as geaulc, "GELELC" as gelelc, "GCHCLC" as gchclc, "DNBBAI" as dnbbai, "DNBDOU" as dnbdou, "DNBLAV" as dnblav, "DNBWC" as dnbwc, "tc_DMATGM_materiaux_gros_murs"."DMATGM" as "dmatgm", "tc_DMATTO_materiaux_toitures"."DMATTO" as "dmatto", "BATI_A60_DESCR_DEPEND"."DETENT" as detent, "L_DETENT" as l_detent, "tc_DMATGM_materiaux_gros_murs"."L_DMATGM" as "lib_dmatgm", "tc_DMATTO_materiaux_toitures"."L_DMATTO" as "lib_dmatto" FROM "BATI_A60_DESCR_DEPEND" LEFT JOIN "tc_DETENT_Etat_entretien" ON "BATI_A60_DESCR_DEPEND"."DETENT"="tc_DETENT_Etat_entretien"."DETENT" LEFT JOIN "tc_DMATGM_materiaux_gros_murs" ON "BATI_A60_DESCR_DEPEND"."DMATGM"="tc_DMATGM_materiaux_gros_murs"."DMATGM" LEFT JOIN "tc_DMATTO_materiaux_toitures" ON "BATI_A60_DESCR_DEPEND"."DMATTO"="tc_DMATTO_materiaux_toitures"."DMATTO" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['sqlite']['prof_descr'] = 'SELECT "DNUDES" as dnudes, "DNUPEV" as dnupev, "INVAR" as invar, "VSURZT" as vsurzt FROM "BATI_A50_DESCR_PROF" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['sqlite']['pev'] = 'SELECT "BATI_A21_DESCR_PEV"."ID_PEV" as id_pev, "CCOSTB" as ccostb, "BATI_A21_DESCR_PEV"."CCOAFF" as ccoaff, "L_CCOAFF" as "l_ccoaff", "DCAPEC" as dcapec, "DCSGLC" as dcsglc, "BIPEVLA1" as bipevla1, "BATI_A21_DESCR_PEV"."GNEXPL" as gnexpl, "L_GNEXPL" as "l_gnexpl", "DVLPERA" as dvlpera, "BATI_A21_DESCR_PEV"."DNUPEV" as dnupev, "BATI_A21_DESCR_PEV"."DVLPER" as dvlper, "BATI_A21_DESCR_PEV"."DNUREF" as dnuref FROM "BATI_A21_DESCR_PEV" LEFT JOIN "tc_CCOAFF_Affectation_pev" ON "BATI_A21_DESCR_PEV"."CCOAFF"="tc_CCOAFF_Affectation_pev"."CCOAFF" LEFT JOIN "tc_GNEXPL_Exone_permanente" ON "BATI_A21_DESCR_PEV"."GNEXPL"="tc_GNEXPL_Exone_permanente"."GNEXPL" LEFT JOIN "BATI_A36_TAXATION_PEV" ON "BATI_A21_DESCR_PEV"."ID_PEV"="BATI_A36_TAXATION_PEV"."ID_PEV" WHERE "BATI_A21_DESCR_PEV"."ID_PEV"=\'$sIdPev\''; -//fin modif -$aSql['sqlite']['parcelle']='SELECT "ID_PAR" as id_par, "JDATAT" as jdatat,"CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CODEVOIE" as codevoie, "LIBVOIE" as libvoie,"TYPEVOIE" as typevoie,"CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf, "DCNTPA" as dcntpa, "DNUPRO" as dnupro , "GPARBAT" as gparbat FROM "NON_BATI_A10_DESCR_PARCELLE" LEFT JOIN "FANTOIR_VOIE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_RIVOLI"="FANTOIR_VOIE"."ID_RIVOLI" WHERE "ID_PAR"=\'$sIdPar\' ORDER BY "CCOSEC","DNUPLA"'; -//modif -$aSql['sqlite']['suf']='SELECT DISTINCT "DNUPRO" as dnupro,"NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"ID_SUF" as id_suf,"GNEXPS" as gnexps,"CCOSTN" as ccostn,"CCOSUB" as ccosub,"NON_BATI_A21_DESCR_SUF"."DSGRPF" as dsgrpf,"L_DSGRPF" as l_dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf,"DRCSUBA" as drcsuba, "DRCSUB" as drcsub, "NON_BATI_A21_DESCR_SUF"."CGRNUM" as "cgrnum", "L_CGRNUM" as "l_cgrnum" FROM "NON_BATI_A21_DESCR_SUF" LEFT JOIN "tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF" LEFT JOIN "tc_CGRNUM_Groupe_numerique" ON "NON_BATI_A21_DESCR_SUF"."CGRNUM" = "tc_CGRNUM_Groupe_numerique"."CGRNUM" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['sqlite']['suf_bnd']='SELECT DISTINCT "ID_SUF" as id_suf,"DNUPRO" as dnupro,"NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"GNEXPS" as gnexps,"CCOSTN" as ccostn,"CCOSUB" as ccosub, "NON_BATI_A21_DESCR_SUF"."DSGRPF" as dsgrpf,"L_DSGRPF" as l_dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf,"DRCSUBA" as drcsuba, "DRCSUB" as drcsub, "DNUPDL" AS dnupdl, "DNULOT" AS dnulot, "DNUMQL" AS dnumql, "DDENQL" AS ddenql, "NON_BATI_A21_DESCR_SUF"."CGRNUM" as "cgrnum", "L_CGRNUM" as "l_cgrnum" FROM "NON_BATI_A21_DESCR_SUF" LEFT JOIN "tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF" LEFT JOIN "tc_CGRNUM_Groupe_numerique" ON "NON_BATI_A21_DESCR_SUF"."CGRNUM" = "tc_CGRNUM_Groupe_numerique"."CGRNUM" WHERE "ID_SUF"=\'$sIdSuf\' AND "DNUPRO" = \'sIdDnupro\''; -$aSql['sqlite']['suf_bnd_all']='SELECT DISTINCT "ID_SUF" as id_suf,"DNUPRO" as dnupro,"NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as "id_dnupro" ,"GNEXPS" as gnexps,"CCOSTN" as ccostn,"CCOSUB" as ccosub, "NON_BATI_A21_DESCR_SUF"."DSGRPF" as dsgrpf,"L_DSGRPF" as l_dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf,"DRCSUBA" as drcsuba, "DRCSUB" as drcsub, "DNUPDL" AS dnupdl, "DNULOT" AS dnulot, "DNUMQL" AS dnumql, "DDENQL" AS ddenql, "NON_BATI_A21_DESCR_SUF"."CGRNUM" as "cgrnum", "L_CGRNUM" as "l_cgrnum" FROM "NON_BATI_A21_DESCR_SUF" LEFT JOIN "tc_DSGRPF_SousGroupe_suf" ON "NON_BATI_A21_DESCR_SUF"."DSGRPF" = "tc_DSGRPF_SousGroupe_suf"."DSGRPF" LEFT JOIN "tc_CGRNUM_Groupe_numerique" ON "NON_BATI_A21_DESCR_SUF"."CGRNUM" = "tc_CGRNUM_Groupe_numerique"."CGRNUM" WHERE "ID_SUF"=\'$sIdSuf\''; -//fin modif -$aSql['sqlite']['compte_communal']='SELECT "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "PROPRIETAIRE_COURANT"."CCOCOM" as ccocom, "LIBCOM" as libcom, "DNUPRO" as dnupro, "ID_DNUPRO" as id_dnupro FROM "PROPRIETAIRE_COURANT" LEFT JOIN "FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['sqlite']['exone_pev']='SELECT "ID_EX" as id_ex, "CCOLLOC" as ccolloc, "GNEXTL" as gnextl, "JANIMP" as janimp, "JANDEB" as jandeb, "RCEXBA2" as rcexba2, "PEXB" as pexb FROM "BATI_A30_EXONE_PEV" WHERE "ID_EX"=\'$sIdEx\''; -$aSql['sqlite']['exon_suf']='SELECT "ID_SUF" as id_suf, "RNUEXN" as rnuexn, "CCOLLOC" as ccolloc, "GNEXTS" as gnexts, "JFINEX" as jfinex, "PEXN" as pexn,"RCEXNBA" as rcexnba FROM "NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\' and "RNUEXN"=\'$sRnuexn\''; -$aSql['sqlite']['lot_local']='SELECT "ID_BAT" as id_bat, "KLOT" as klot, "DNUPDL" as dnupdl, "DNULOT" as dnulot, "DNUMQL" as dnumql, "DDENQL" as ddenql FROM "LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' and "KLOT"=\'$sKlot\''; -$aSql['sqlite']['get_id_pev']='SELECT "ID_PEV" as id_pev FROM "BATI_A21_DESCR_PEV" WHERE "ID_BAT"=\'$sIdBat\' ORDER BY "ID_PEV"'; -$aSql['sqlite']['get_id_ex_pev']='SELECT "ID_EX" as id_ex FROM "BATI_A30_EXONE_PEV" WHERE "ID_PEV"=\'$sIdPev\' ORDER BY "ID_EX"'; -$aSql['sqlite']['get_klot']='SELECT "KLOT" as klot FROM "LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' ORDER BY "KLOT"'; -//modif -$aSql['sqlite']['get_id_suf']='SELECT DISTINCT "ID_SUF" as id_suf FROM "NON_BATI_A21_DESCR_SUF" LEFT JOIN "NON_BATI_A10_DESCR_PARCELLE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE "NON_BATI_A21_DESCR_SUF"."ID_PAR"=\'sIdPar\' AND ("NON_BATI_A10_DESCR_PARCELLE"."ID_DNUPRO"=\'sIdDnupro\' OR "NON_BATI_A21_DESCR_SUF"."DNUPRO"=\'sDnupro\')'; -$aSql['sqlite']['suf_dnupro']='SELECT "NON_BATI_A21_DESCR_SUF"."CCODEP" || "NON_BATI_A21_DESCR_SUF"."CCOCOM" || "NON_BATI_A21_DESCR_SUF"."DNUPRO" as dnupro FROM "NON_BATI_A21_DESCR_SUF" LEFT JOIN "NON_BATI_A10_DESCR_PARCELLE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"="NON_BATI_A21_DESCR_SUF"."ID_PAR" WHERE "ID_SUF"=\'$sIdSuf\''; -//fin modif -$aSql['sqlite']['get_rnuexn']='SELECT DISTINCT "RNUEXN" as rnuexn FROM "NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\' ORDER BY "RNUEXN"'; -$aSql['sqlite']['get_id_pro']='SELECT DISTINCT "ID_PRO" as id_pro FROM "PROPRIETAIRE_COURANT" WHERE "ID_DNUPRO"=\'$sIdDnupro\' ORDER BY "ID_PRO"'; -$aSql['sqlite']['get_id_bat']='SELECT "ID_BAT" as id_bat FROM "BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\' ORDER BY "ID_BAT"'; -$aSql['sqlite']['get_id_par']='SELECT "ID_PAR" as id_par FROM "NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_COM"=\'sIdCom\' AND "ID_DNUPRO"=\'sDnupro\' ORDER BY "NON_BATI_A10_DESCR_PARCELLE"."ID_PAR"'; -$aSql['sqlite']['get_id_par_bnd']='SELECT NON_BATI_A10_DESCR_PARCELLE.ID_PAR as "id_par" FROM NON_BATI_A21_DESCR_SUF INNER JOIN NON_BATI_A10_DESCR_PARCELLE ON NON_BATI_A21_DESCR_SUF.ID_PAR = NON_BATI_A10_DESCR_PARCELLE.ID_PAR where NON_BATI_A21_DESCR_SUF.DNUPRO = \'sDnupro\' AND NON_BATI_A10_DESCR_PARCELLE.ID_DNUPRO != \'sIdDnupro\' AND NON_BATI_A10_DESCR_PARCELLE."ID_COM"=\'sIdCom\''; -$aSql['sqlite']['annee_reference']='SELECT "ANNEE" FROM "ANNEE_REFERENCE"'; -$aSql['sqlite']['get_id_dnupro']='SELECT "ID_DNUPRO" as iddnupro, "DNUPRO" as dnupro FROM "NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'idparpro\''; -$aSql['sqlite']['compte_communal_parcelle']='SELECT "FANTOIR_COMMUNE"."CODE_INSEE" as "codeinsee", "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "LIBDEP" as libdep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "FANTOIR_COMMUNE"."CCOCOM" as ccocom, "LIBCOM" as libcom, "PROPRIETAIRE_COURANT". "DNUPRO" as dnupro,"PROPRIETAIRE_COURANT"."ID_DNUPRO" as id_dnupro, "ID_PAR" as id_par FROM "NON_BATI_A10_DESCR_PARCELLE", "PROPRIETAIRE_COURANT" LEFT JOIN "FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" LEFT JOIN "FANTOIR_DIRECTION" ON "FANTOIR_COMMUNE"."CCODEP"= "FANTOIR_DIRECTION"."CCODEP" WHERE "PROPRIETAIRE_COURANT"."ID_DNUPRO"=\'$sIdDnupro\' and "ID_PAR"=\'$sIdPar\''; -$aSql['sqlite']['get_id_bat_parcelle']='SELECT "ID_BAT" as id_bat FROM "BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\' and "ID_PAR"=\'$sIdPar\' ORDER BY "ID_BAT"'; -$aSql['sqlite']['get_par_id_bat']='SELECT "ID_BAT" as id_bat FROM "BATI_A00_IDENT_LOCAL" WHERE "ID_PAR"=\'sIdPar\' ORDER BY "ID_BAT"'; -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj.sql_all.inc b/web_service/class/majic_lib/Mj.sql_all.inc deleted file mode 100755 index 1f63bdf0..00000000 --- a/web_service/class/majic_lib/Mj.sql_all.inc +++ /dev/null @@ -1,39 +0,0 @@ -<?php - -$aSql['pgsql']['proprietaire']= 'SELECT *, "ID_DNUPRO" as id_dnupro, "ID_PRO" as id_pro, "L_CCODRO" as l_ccodro, "L_CCODEM" as l_ccodem, "DNUPER" as dnuper, "DQUALP" as dqualp, "DDENOM" as ddenom, "DNOMLP" as dnomlp, "DPRNLP" as dprnlp, "EPXNEE" as epxnee, "DNOMCP" as dnomcp, "DPRNCP" as dprncp, "JDATNSS" as jdatnss, "DLDNSS" as dldnss, "DLIGN3" as dlign3, "DLIGN4" as dlign4, "DLIGN5" as dlign5, "DLIGN6" as dlign6 FROM majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."tc_CCODRO_code_droit" ON "PROPRIETAIRE_COURANT"."CCODRO"="tc_CCODRO_code_droit"."CCODRO" LEFT JOIN majic."tc_CCODEM_Nature_demembrement" ON "PROPRIETAIRE_COURANT"."CCODEM"="tc_CCODEM_Nature_demembrement"."CCODEM" WHERE "ID_DNUPRO"=\'$sIdDnupro\' AND "ID_PRO"=\'$sIdPro\''; -$aSql['pgsql']['bati'] = 'SELECT *, "BATI_A00_IDENT_LOCAL"."ID_BAT" as id_bat, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "CCOPLC" as ccoplc, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DNUBAT" as dnubat, "DESC" as desc, "DNIV" as dniv, "DPOR" as dpor, "BATI_A00_IDENT_LOCAL"."INVAR" as invar, "CCOEVA" as ccoeva, "CCONLC" as cconlc, "GTAUOM" as gtauom, "CCONAD" as cconad FROM majic."BATI_A00_IDENT_LOCAL" LEFT JOIN majic."BATI_A60_DESCR_DEPEND" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A60_DESCR_DEPEND"."ID_BAT" WHERE "BATI_A00_IDENT_LOCAL"."ID_BAT"=\'$sIdBat\''; -$aSql['pgsql']['pev'] = 'SELECT *, "BATI_A21_DESCR_PEV"."ID_PEV" as id_pev, "CCOSTB" as ccostb, "CCOAFF" as ccoaff, "DCAPEC" as dcapec, "DCSGLC" as dcsglc, "BIPEVLA1" as bipevla1,"GNEXPL" as gnexpl, "DVLPERA" as dvlpera, "BATI_A21_DESCR_PEV"."DNUPEV" as dnupev FROM majic."BATI_A21_DESCR_PEV" LEFT JOIN majic."BATI_A36_TAXATION_PEV" ON "BATI_A21_DESCR_PEV"."ID_PEV"="BATI_A36_TAXATION_PEV"."ID_PEV" WHERE "BATI_A21_DESCR_PEV"."ID_PEV"=\'$sIdPev\''; -$aSql['pgsql']['parcelle']='SELECT *, "ID_PAR" as id_par, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CCONVO" as cconvo, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['pgsql']['suf']='SELECT *, "ID_SUF" as id_suf, "CCOSTN" as ccostn, "CCOSUB" as ccosub, "DSGRPF" as dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf, "DRCSUBA" as drcsuba FROM majic."NON_BATI_A21_DESCR_SUF" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['pgsql']['compte_communal']='SELECT *, "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "FANTOIR_COMMUNE"."CCOCOM" as ccocom, "LIBCOM" as libcom, "DNUPRO" as dnupro, "ID_DNUPRO" as id_dnupro FROM majic."PROPRIETAIRE_COURANT" LEFT JOIN majic."FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['pgsql']['exone_pev']='SELECT *, "ID_EX" as id_ex, "CCOLLOC" as ccolloc, "GNEXTL" as gnextl, "JANIMP" as janimp, "JANDEB" as jandeb, "RCEXBA2" as rcexba2 FROM majic."BATI_A30_EXONE_PEV" WHERE "ID_EX"=\'$sIdEx\''; -$aSql['pgsql']['exon_suf']='SELECT *, "ID_SUF" as id_suf, "RNUEXN" as rnuexn, "CCOLLOC" as ccolloc, "GNEXTS" as gnexts, "JFINEX" as jfinex, "PEXN" as pexn FROM majic."NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\' and "RNUEXN"=\'$sRnuexn\''; -$aSql['pgsql']['lot_local']='SELECT *, "ID_BAT" as id_bat, "KLOT" as klot, "DNUPDL" as dnupdl, "DNULOT" as dnulot, "DNUMQL" as dnumql, "DDENQL" as ddenql FROM majic."LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' and "KLOT"=\'$sKlot\''; -$aSql['pgsql']['get_id_pev']='SELECT "ID_PEV" as id_pev FROM majic."BATI_A21_DESCR_PEV" WHERE "ID_BAT"=\'$sIdBat\''; -$aSql['pgsql']['get_id_ex_pev']='SELECT "ID_EX" as id_ex FROM majic."BATI_A30_EXONE_PEV" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['pgsql']['get_klot']='SELECT "KLOT" as klot FROM majic."LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\''; -$aSql['pgsql']['get_id_suf']='SELECT "ID_SUF" as id_suf FROM majic."NON_BATI_A21_DESCR_SUF" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['pgsql']['get_rnuexn']='SELECT "RNUEXN" as rnuexn FROM majic."NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['pgsql']['get_id_pro']='SELECT "ID_PRO" as id_pro FROM majic."PROPRIETAIRE_COURANT" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['pgsql']['get_id_bat']='SELECT "ID_BAT" as id_bat FROM majic."BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['pgsql']['get_id_par']='SELECT "ID_PAR" as id_par FROM majic."NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; - -$aSql['sqlite']['proprietaire']= 'SELECT *, "ID_DNUPRO" as id_dnupro, "ID_PRO" as id_pro, "L_CCODRO" as l_ccodro, "L_CCODEM" as l_ccodem, "DNUPER" as dnuper, "DQUALP" as dqualp, "DDENOM" as ddenom, "DNOMLP" as dnomlp, "DPRNLP" as dprnlp, "EPXNEE" as epxnee, "DNOMCP" as dnomcp, "DPRNCP" as dprncp, "JDATNSS" as jdatnss, "DLDNSS" as dldnss, "DLIGN3" as dlign3, "DLIGN4" as dlign4, "DLIGN5" as dlign5, "DLIGN6" as dlign6 FROM "PROPRIETAIRE_COURANT" LEFT JOIN "tc_CCODRO_code_droit" ON "PROPRIETAIRE_COURANT"."CCODRO"="tc_CCODRO_code_droit"."CCODRO" LEFT JOIN "tc_CCODEM_Nature_demembrement" ON "PROPRIETAIRE_COURANT"."CCODEM"="tc_CCODEM_Nature_demembrement"."CCODEM" WHERE "ID_DNUPRO"=\'$sIdDnupro\' AND "ID_PRO"=\'$sIdPro\''; -$aSql['sqlite']['bati'] = 'SELECT *, "BATI_A00_IDENT_LOCAL"."ID_BAT" as id_bat, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "CCOPLC" as ccoplc, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "DVOILIB" as dvoilib, "CCORIV" as ccoriv, "DNUBAT" as dnubat, "DESC" as desc, "DNIV" as dniv, "DPOR" as dpor, "BATI_A00_IDENT_LOCAL"."INVAR" as invar, "CCOEVA" as ccoeva, "CCONLC" as cconlc, "GTAUOM" as gtauom, "CCONAD" as cconad FROM "BATI_A00_IDENT_LOCAL" LEFT JOIN "BATI_A60_DESCR_DEPEND" ON "BATI_A00_IDENT_LOCAL"."ID_BAT"="BATI_A60_DESCR_DEPEND"."ID_BAT" WHERE "BATI_A00_IDENT_LOCAL"."ID_BAT"=\'$sIdBat\''; -$aSql['sqlite']['pev'] = 'SELECT *, "BATI_A21_DESCR_PEV"."ID_PEV" as id_pev, "CCOSTB" as ccostb, "CCOAFF" as ccoaff, "DCAPEC" as dcapec, "DCSGLC" as dcsglc, "BIPEVLA1" as bipevla1,"GNEXPL" as gnexpl, "DVLPERA" as dvlpera, "BATI_A21_DESCR_PEV"."DNUPEV" as dnupev FROM "BATI_A21_DESCR_PEV" LEFT JOIN "BATI_A36_TAXATION_PEV" ON "BATI_A21_DESCR_PEV"."ID_PEV"="BATI_A36_TAXATION_PEV"."ID_PEV" WHERE "BATI_A21_DESCR_PEV"."ID_PEV"=\'$sIdPev\''; -$aSql['sqlite']['parcelle']='SELECT *, "ID_PAR" as id_par, "JDATAT" as jdatat, "CCOSEC" as ccosec, "DNUPLA" as dnupla, "DNVOIRI" as dnvoiri, "DINDIC" as dindic, "CODEVOIE" as codevoie, "LIBVOIE" as libvoie, "CCORIV" as ccoriv, "DPARPI" as dparpi, "GPARNF" as gparnf FROM "NON_BATI_A10_DESCR_PARCELLE" LEFT JOIN "FANTOIR_VOIE" ON "NON_BATI_A10_DESCR_PARCELLE"."ID_RIVOLI"="FANTOIR_VOIE"."ID_RIVOLI" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['sqlite']['suf']='SELECT *, "ID_SUF" as id_suf, "CCOSTN" as ccostn, "CCOSUB" as ccosub, "DSGRPF" as dsgrpf, "DCLSSF" as dclssf, "CNATSP" as cnatsp, "DCNTSF" as dcntsf, "DRCSUBA" as drcsuba FROM "NON_BATI_A21_DESCR_SUF" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['sqlite']['compte_communal']='SELECT *, "PROPRIETAIRE_COURANT"."CCODEP" as ccodep, "PROPRIETAIRE_COURANT"."CCODIR" as ccodir, "FANTOIR_COMMUNE"."CCOCOM" as ccocom, "LIBCOM" as libcom, "DNUPRO" as dnupro, "ID_DNUPRO" as id_dnupro FROM "PROPRIETAIRE_COURANT" LEFT JOIN "FANTOIR_COMMUNE" ON "PROPRIETAIRE_COURANT"."ID_COM"="FANTOIR_COMMUNE"."ID_COM" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['sqlite']['exone_pev']='SELECT *, "ID_EX" as id_ex, "CCOLLOC" as ccolloc, "GNEXTL" as gnextl, "JANIMP" as janimp, "JANDEB" as jandeb, "RCEXBA2" as rcexba2 FROM "BATI_A30_EXONE_PEV" WHERE "ID_EX"=\'$sIdEx\''; -$aSql['sqlite']['exon_suf']='SELECT *, "ID_SUF" as id_suf, "RNUEXN" as rnuexn, "CCOLLOC" as ccolloc, "GNEXTS" as gnexts, "JFINEX" as jfinex, "PEXN" as pexn FROM "NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\' and "RNUEXN"=\'$sRnuexn\''; -$aSql['sqlite']['lot_local']='SELECT *, "ID_BAT" as id_bat, "KLOT" as klot, "DNUPDL" as dnupdl, "DNULOT" as dnulot, "DNUMQL" as dnumql, "DDENQL" as ddenql FROM "LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\' and "KLOT"=\'$sKlot\''; -$aSql['sqlite']['get_id_pev']='SELECT "ID_PEV" as id_pev FROM "BATI_A21_DESCR_PEV" WHERE "ID_BAT"=\'$sIdBat\''; -$aSql['sqlite']['get_id_ex_pev']='SELECT "ID_EX" as id_ex FROM "BATI_A30_EXONE_PEV" WHERE "ID_PEV"=\'$sIdPev\''; -$aSql['sqlite']['get_klot']='SELECT "KLOT" as klot FROM "LOT_LOCAL" WHERE "ID_BAT"=\'$sIdBat\''; -$aSql['sqlite']['get_id_suf']='SELECT "ID_SUF" as id_suf FROM "NON_BATI_A21_DESCR_SUF" WHERE "ID_PAR"=\'$sIdPar\''; -$aSql['sqlite']['get_rnuexn']='SELECT "RNUEXN" as rnuexn FROM "NON_BATI_A30_EXON_SUF" WHERE "ID_SUF"=\'$sIdSuf\''; -$aSql['sqlite']['get_id_pro']='SELECT "ID_PRO" as id_pro FROM "PROPRIETAIRE_COURANT" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['sqlite']['get_id_bat']='SELECT "ID_BAT" as id_bat FROM "BATI_A00_IDENT_LOCAL" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; -$aSql['sqlite']['get_id_par']='SELECT "ID_PAR" as id_par FROM "NON_BATI_A10_DESCR_PARCELLE" WHERE "ID_DNUPRO"=\'$sIdDnupro\''; - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Attribute.class.inc b/web_service/class/majic_lib/Mj_Attribute.class.inc deleted file mode 100755 index bcc320a7..00000000 --- a/web_service/class/majic_lib/Mj_Attribute.class.inc +++ /dev/null @@ -1,53 +0,0 @@ -<?php -/** -* \file Mj_Attribute.class.inc -* \brief Mj_Attribute.class.inc \n \n Ce fichier contient la classe php Mj_Attribute -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Attribute. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Attribute -* \brief Mj_Attribute Class \n \n Mj_Attributes est une classe PHP qui h�rite de la classe Mj_Attribute. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Attribute. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); - -class Mj_Attribute extends Mj { - /** - * Cette m�thode m�tier permet de r�cup�rer l'attribut parmi les attributs d'une emprise calcul�e sur la parcelle d'un compte communal. - * \param $aAttributes Tableau. - * \param $aField Tableau des libell�s issue des properties. - * \private - */ - function __construct($aAttributes,$aField=Array()){ - $aAttribute=array(); - $aAttribute["label"]=$aAttributes["label"]; - $aAttribute["title"]=$aField[$aAttributes["label"]]; - $aAttribute["value"]=$aAttributes["value"]; - $this->aFields=$aAttribute; - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['label']=$this->aFields["label"]; - $aExportFields['title']=$this->aFields["title"]; - $aExportFields['value']=$this->aFields["value"]; - } - return $aExportFields; - } - -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Attributes.class.inc b/web_service/class/majic_lib/Mj_Attributes.class.inc deleted file mode 100755 index 51560460..00000000 --- a/web_service/class/majic_lib/Mj_Attributes.class.inc +++ /dev/null @@ -1,64 +0,0 @@ -<?php -/** -* \file Mj_Attributes.class.inc -* \brief Mj_Attributes.class.inc \n \n Ce fichier contient la classe php Mj_Attributes -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Attributes d'une Emprise. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Attributes -* \brief Mj_Attributes Class \n \n Mj_Attributes est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Attributes d'une Emprise. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Attribute.class.inc"); - -class Mj_Attributes extends Mj { - /** - * Tableau associatif comportant la liste des objets Attribut d'une Emprise. - */ - var $aAttributes =array(); - - /** - * Cette m�thode m�tier permet de r�cup�rer les attributs d'une emprise calcul�e sur la parcelle d'un compte communal. - * \param $aAttributesEmprise Tableau des attributs. - * \param $aField Tableau des libell�s issue des properties. - * \private - * \return Un tableau HTML sous la forme d'une cha�ne de caract�res. - */ - function __construct($aAttributesEmprise,$aField=Array()){ - foreach ($aAttributesEmprise as $sAttributeEmprise => $aValue){ - if (is_array($aValue)){ - foreach ($aValue as $sLabel => $sValue){ - $aAttribute["label"]=$sLabel; - $aAttribute["value"]=$sValue; - array_push($this->aAttributes,new Mj_Attribute($aAttribute,$aField)); - } - } - } - $aTest["test"]="test"; - $this->aFields=$aTest; - $this->aObjects=$this->aAttributes; - } - - /** - * Cette m�thode permet de construire un tableau. - * \return Retourne un tableau associatif. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - } - return $aExportFields; - } - -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Bati.class.inc b/web_service/class/majic_lib/Mj_Bati.class.inc deleted file mode 100755 index c0efa18e..00000000 --- a/web_service/class/majic_lib/Mj_Bati.class.inc +++ /dev/null @@ -1,605 +0,0 @@ -<?php -/** -* \file Mj_Bati.class.inc -* \brief Mj_Bati.class.inc \n \n Ce fichier contient la classe php Mj_Bati -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie bati. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Bati -* \brief Mj_Bati Class \n \n Mj_Bati est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie b�ti. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Pev.class.inc"); -require_once ("Mj_Lot_Local.class.inc"); - -class Mj_Bati extends Mj { - /** - * Tableau associatif comportant la liste des objets Pev du b�ti - */ - var $aPev=array(); - /** - * Tableau associatif comportant la liste des objets Lot_Local du b�ti - */ - var $aLotLocal=array(); - - /** - * \param $sIdBat Identifiant de b�ti - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdBat,$oBD, $sEncryptedKey=''){ - $this->sEncryptKey = $sEncryptedKey; - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['bati']; - $this->sSql=str_replace('$sIdBat', $sIdBat, $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if ($oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante($oPDOresult); - $this->sStatus=0; - } - $this->aPev=$this->get_aPev($oBD); - $this->aPro=$this->get_aPro($oBD); - $this->aLotLocal=$this->get_aLot_Local($oBD); - $this->aObjects=array_merge ($this->aPev, $this->aLotLocal, $this->aPro); - } - /** - * Cette m�thode permet de r�cup�rer les ID_PRO en fonction d'un ID_DNUPRO donn�. - * \return Retourne un tableau de ID_PRO. - */ - function get_aId_Pro($oBD){ - if($this->isEmpty()){ - $aIdPro=""; - }else{ - include $this->sRessourcesFile; - $aIdPro=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_pro']; - $this->sSql=str_replace('$sIdDnupro', $this->encrypt($this->aFields['b_iddnupro']), $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdPro,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdPro; - $oPDOresult=$oBD->fermeResultat(); - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Proprietaire - * \return Retourne un tableau d'objets Proprietaire - */ - function get_aPro($oBD){ - $aPro=array(); - if($this->isEmpty()){ - $aPro=""; - }else{ - $aIdPro=$this->get_aId_Pro($oBD); - foreach($aIdPro as $sIdPro){ - array_push($aPro,new Mj_Proprietaire($this->aFields['b_iddnupro'],$sIdPro,$oBD, $this->sEncryptKey)); - } - } - return $aPro; - } - /** - * Cette m�thode permet de r�cup�rer les Id_Pev en fonction d'un Id_Bat donn�. - * \return Retourne un tableau de cha�nes de caract�res. - */ - function get_aId_Pev($oBD){ - if($this->isEmpty()){ - $aIdPev=""; - }else{ - include $this->sRessourcesFile; - $aIdPev=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_pev']; - $this->sSql=str_replace('$sIdBat', $this->aFields['id_bat'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdPev,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdPev; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Pev du b�ti - * \return Retourne un tableau d'objets Pev - */ - function get_aPev($oBD){ - $aPev=array(); - if($this->isEmpty()){ - $aPev=""; - }else{ - $aIdPev=$this->get_aId_Pev($oBD); - foreach($aIdPev as $sValue){ - array_push($aPev,new Mj_Pev($sValue,$oBD)); - } - } - return $aPev; - } - /** - * Cette m�thode permet de r�cup�rer les Klot en fonction d'un Id_Bat donn� - * \return Retourne un tableau de cha�nes de caract�res - */ - function get_aKlot($oBD){ - if($this->isEmpty()){ - $aKlot=""; - }else{ - include $this->sRessourcesFile; - $aKlot=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_klot']; - $this->sSql=str_replace('$sIdBat', $this->aFields['id_bat'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aKlot,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aKlot; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Lot-Local du b�ti - * \return Retourne un tableau d'objets Lot-Local - */ - function get_aLot_Local($oBD){ - $aLotLocal=array(); - if($this->isEmpty()){ - $aLotLocal=""; - }else{ - $aKlot=$this->get_aKlot($oBD); - foreach($aKlot as $sKlot){ - array_push($aLotLocal,new Mj_Lot_Local($this->aFields['id_bat'],$sKlot,$oBD)); - } - } - return $aLotLocal; - } - - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['date']=$this->getJdatat(); - $aExportFields['section']=$this->aFields['ccosec']; - $aExportFields['num_plan']=$this->aFields['dnupla']; - $aExportFields['cp']=$this->aFields['ccoplc']; - $aExportFields['voirie']=$this->getVoirie(); - $aExportFields['adresse']=$this->aFields['dvoilib']; - $aExportFields['code_rivoli']=$this->aFields['ccoriv']; - $aExportFields['bat']=$this->aFields['dnubat']; - $aExportFields['ent']=$this->aFields['desc']; - $aExportFields['niv']=$this->aFields['dniv']; - $aExportFields['num_de_porte']=$this->aFields['dpor']; - $aExportFields['num_invar']=$this->getNumeroInvar(); - $aExportFields['m_eva']=$this->aFields['ccoeva']; - $aExportFields['nat_loc']=$this->getNatLoc(); - $aExportFields['tx_om']=$this->aFields['gtauom']; - $aExportFields['s_tar']=$this->getSTar(); - $aExportFields['af']=$this->getAf(); - $aExportFields['cat']=$this->getCat(); - $aExportFields['revenu_cadastral']=$this->getRevenuCadastral(); - $aExportFields['revenu_cadastral_txt']=$this->setFloatToText($this->getRevenuCadastral()); - $aExportFields['dvlpera']=$this->aFields['dvlpera']; - $aExportFields['b_dnupro']=$this->aFields['b_dnupro']; - $aExportFields['b_iddnupro']=$this->aFields['b_iddnupro']; - $aExportFields['dteloc']=$this->aFields['dteloc']; - $aExportFields['dvltrt']=$this->aFields['dvltrt']; - $aExportFields['dnumql']=$this->aFields['dnumql']; - $aExportFields['ddenql']=$this->aFields['ddenql']; - //$aExportFields['nat_exo']=$this->getNatExo(); - //$aExportFields['exoneration']=$this->getExoneration(); - //$aExportFields['revenu_cadastral_avec_exo']=$this->getRevenuCadastralAvecExo(); - //$aExportFields['revenu_cadastral_avec_pp']=$this->getRevenuCadastralAvecPP(); - $aExportFields['num_invar']=$this->aFields['invar']; - $aExportFields['ddenql']=$this->aFields['ddenql']; - $aExportFields['local_type']=$this->aFields['dteloc']; - $aExportFields['nature']=$this->aFields['cconlc']; - $aExportFields['lib_nature']=$this->aFields['lib_cconlc']; - $aExportFields['occupation']=$this->aFields['dnatlc']; - $aExportFields['lib_occupation']=$this->getOccupation(); - $aExportFields['date_mut']=$this->getJdatat_full(); - $aExportFields['annee_constr']=$this->aFields['jannat']; - $aExportFields['niveaux']=$this->aFields['dnbniv']; - $aExportFields['libcom']=$this->aFields['libcom']; - } - return $aExportFields; - } - /** - * Cette m�thode permet de r�cup�rer les deux derniers caract�res de l'attribut Jdatat et d'y ajouter 1. - * \return Retourne une cha�ne de caract�res. - */ - function getJdatat_full(){ - $sjdatat=$this->aFields['jdatat']; - if ($sjdatat != ""){ - if (preg_match( '`^\d{1,2}/\d{1,2}/\d{4}$`' , $sjdatat ) ){ - $sNewJdatat_full=$sjdatat; - }else if (preg_match( '`^\d{1,2}/\d{1,2}/\d{2}$`' , $sjdatat ) ){ - $sNewJdatat_full=$sjdatat; - }else{ - $sNewJdatat_full=substr($sjdatat,0,2)."/".substr($sjdatat,2,2)."/".substr($sjdatat,4,4); - } - } - return $sNewJdatat_full; - } - /** - * Cette m�thode permet de r�cup�rer les deux derniers caract�res de l'attribut Jdatat et d'y ajouter 1. - * \return Retourne une cha�ne de caract�res. - */ - function getJdatat(){ - $sNewJdatat=$this->aFields['jdatat']; - if (preg_match( '`^\d{1,2}/\d{1,2}/\d{4}$`' , $sNewJdatat ) ){ - $sNewJdatat=substr("$sNewJdatat", 6, 4)+1; - $sNewJdatat=(string)(substr("$sNewJdatat", 2, 2)); - }else if (preg_match( '`^\d{1,2}/\d{1,2}/\d{2}$`' , $sNewJdatat ) ){ - $sNewJdatat=(string) (substr("$sNewJdatat", 6, 2)+1); - if(strlen($sNewJdatat) == 1){ - $sNewJdatat='0'.$sNewJdatat; - } - $sNewJdatat=(string) (substr("$sNewJdatat", -2, 2)); - }else{ - $sNewJdatat=substr("$sNewJdatat", 4, 4)+1; - $sNewJdatat=(string)(substr("$sNewJdatat", 2, 2)); - } - return $sNewJdatat; - } - /** - * Cette m�thode permet de supprimer le code commune de l'attribut invar. - * \return Retourne une cha�ne de caract�res. - */ - function getNumeroInvar(){ - $sNumeroInvar=$this->aFields['invar']; - $sNumeroInvar= substr("$sNumeroInvar", 3, 7); - return $sNumeroInvar; - } - /** - * Cette m�thode permet de concat�ner les attributs dnvoiri et indic. - * \return Retourne une cha�ne de caract�res. - */ - function getVoirie(){ - $sVoirie=ltrim($this->aFields['dnvoiri'],'0').$this->aFields['dindic']; - return $sVoirie; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 's_tar' dans le tableau aPev. - * \return Retourne une cha�ne de caract�res. - */ - function getSTar(){ - if(count($this->aPev)==1){ - return $this->aPev[0]->aFields['ccostb']; - }else{ - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'af' dans le tableau aPev. - * \return Retourne une cha�ne de caract�res. - */ - function getAf(){ - if(count($this->aPev)==1){ - return $this->aPev[0]->aFields['ccoaff']; - }else{ - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'cat' dans le tableau aPev. - * \return Retourne une cha�ne de caract�res. - */ - function getCat(){ - if(count($this->aPev)==1){ - return $this->aPev[0]->aFields['dcapec']; - }else{ - return ''; - } - } - /** - * Cette m�tode permet de r�cup�rer la somme du revenu cadastral pour un b�ti avec exon�ration de type EP, CD, CR, DR ou NI. - * \return Retourne un entier. - */ - /*function getRevenuCadastralAvecExo(){ - $iRevenuCadastralAvecExo=0; - foreach ($this->aPev as $oPev) { - if(ereg ("EP|CD|CR|DR|NI|ND", $oPev->aExportFields['nat_exo'])){ - $iRevenuCadastralAvecExo=$iRevenuCadastralAvecExo + $oPev->aExportFields['revenu_cadastral']; - } - } - return $iRevenuCadastralAvecExo; - }*/ - /** - * Cette m�tode permet de r�cup�rer la somme du revenu cadastral pour un b�ti avec exon�ration de type PP. - * \return Retourne un entier. - */ - /*function getRevenuCadastralAvecPP(){ - $iRevenuCadastralAvecPP=0; - foreach ($this->aPev as $oPev) { - if((ereg ("PP", $oPev->aExportFields['nat_exo'])) && ((int) ($this->aFields['dnupev']>1))){ - $iRevenuCadastralAvecPP=$iRevenuCadastralAvecPP + $oPev->aExportFields['revenu_cadastral']; - } - } - return $iRevenuCadastralAvecPP; - } - /** - * Cette m�tode permet de r�cup�rer la somme du revenu cadastral pour un b�ti. - * \return Retourne un entier. - */ - function getRevenuCadastral(){ - $iRevenuCadastral=0; - foreach($this->aPev as $oPev){ - $iRevenuCadastral=$iRevenuCadastral+ (int) $oPev->getRevenuCadastral(); - } - return $iRevenuCadastral; - } - /** - * Cette m�tode permet de r�cup�rer la somme du revenu cadastral pour un b�ti. - * \return Retourne un float. - */ - function getRevenuCadastralfloat(){ - $iRevenuCadastral=0; - foreach($this->aPev as $oPev){ - $fRevenuCadastral=$fRevenuCadastral+ (float) $oPev->getRevenuCadastral(); - } - return $fRevenuCadastral; - } - /** - * Cette m�thode permet de r�cup�rer la somme des exon�rations pour un b�ti. - * \return Retourne un entier. - */ - function getExoneration($sLccodem){ - $iExoneration=0; - foreach ($this->aPev as $oPev){ - if (($sLccodem!='') && (ereg ("PP", $oPev->getNatExo())) && ((int) ($this->aFields['dnupev']>1))){ - $iExoneration=$iExoneration + $oPev->getRevenuCadastral(); - }elseif($oPev->getNatExo()!=''){ - $iExoneration=$iExoneration + $oPev->getRevenuCadastral(); - } - } - return $iExoneration; - } - /** - * Cette m�thode permet de r�cup�rer la somme des exon�rations pour un b�ti. - * \return Retourne un float. - */ - function getExonerationfloat($sLccodem){ - $fExoneration=0; - foreach ($this->aPev as $oPev){ - if (($sLccodem!='') && (ereg ("PP", $oPev->getNatExo())) && ((int) ($this->aFields['dnupev']>1))){ - $fExoneration=$fExoneration + $oPev->getRevenuCadastralfloat(); - }elseif($oPev->getNatExo()!=''){ - $fExoneration=$fExoneration + $oPev->getRevenuCadastralfloat(); - } - } - return $fExoneration; - } - /** - * Cette m�thode permet de retourner la nature du local. - * \return Retourne une cha�ne de caract�res qui peut �tre valide (la cha�ne de caract�res a �t� v�rifi�e d'apr�s des exemples de relev�s de propri�t�) ou non valide (la cha�ne de caract�res n'a pas pu �tre v�rifi�e). - */ - function getNatLoc(){ - switch($this->aFields["cconlc"]){ - case 'MA' : - $sNatLoc="MAIS"; // Cas valid� - break; - case 'AP' : - $sNatLoc="APP"; // Cas valid� - break; - case 'DE' : - $sNatLoc=$this->getNatureDep(); // Cf fonction getNatureDep() - break; - case 'DC' : - $sNatLoc="DLC"; // cas non valid� - break; - case 'LC' : - $sNatLoc="L.COM"; // Cas valid� - break; - case 'CM' : - $sNatLoc="CM"; // Cas valid� - break; - case 'CA' : - $sNatLoc="CA"; // Cas valid� - break; - case 'CD' : - $sNatLoc="DEP.C"; // Cas valid� - break; - case 'CB' : - $sNatLoc="L.DIV"; // Cas valid� - break; - case 'ME' : - $sNatLoc="M.EXC"; // Cas valid� - break; - case 'MP' : - $sNatLoc="M.PAR"; // Cas valid� - break; - case 'SM' : - $sNatLoc="SOLM"; // Cas non valid� - break; - case 'AU' : - $sNatLoc="AU"; // Cas valid� - break; - case 'CH' : - $sNatLoc="CHANT"; // Cas valid� - break; - case 'U ' : - $sNatLoc="E.IND"; // Cas valid� - break; - case 'US' : - $sNatLoc="US"; // Cas valid� - break; - case 'UG' : - $sNatLoc="AGAZ"; // Cas non valid� - break; - case 'UE' : - $sNatLoc="UE"; // Cas valid� - break; - case 'U1' : - $sNatLoc="GARE"; // Cas non valid� - break; - case 'U2' : - $sNatLoc="GTRI"; // Cas non valid� - break; - case 'U3' : - $sNatLoc="GAMAT"; // Cas non valid� - break; - case 'U4' : - $sNatLoc="GAMAG"; // Cas non valid� - break; - case 'U5' : - $sNatLoc="GDETI"; // Cas non valid� - break; - case 'U6' : - $sNatLoc="GDERE"; // Cas non valid� - break; - case 'U7' : - $sNatLoc="GMATR"; // Cas non valid� - break; - case 'U8' : - $sNatLoc="GEMR"; // Cas non valid� - break; - case 'U9' : - $sNatLoc="GSTUS"; // Cas non valid� - break; - case 'AT' : - $sNatLoc="AT"; // Cas valid� - break; - default : - $sNatLoc=substr($this->aFields["cconlc"],0,4); - break; - } - return $sNatLoc; - } - /** - * Cette m�thode permet de retourner la nature de d�pendance. - * \return Retourne une cha�ne de caract�res qui peut �tre valide (la cha�ne de caract�res a �t� v�rifi�e d'apr�s des exemples de relev�s de propri�t�) ou non valide (la cha�ne de caract�res n'a pas pu �tre v�rifi�e). - */ - function getNatureDep(){ - switch($this->aFields["cconad"]){ - case 'GA' : - $sNatureDep="GAR"; // Cas valid� - break; - case 'CV' : - $sNatureDep="CAVE"; // Cas valid� - break; - case 'GR' : - $sNatureDep="GREN"; // Cas valid� - break; - case 'TR' : - $sNatureDep="TERR"; // Cas non valid� - break; - case 'GP' : - $sNatureDep="GPARK"; // Cas valid� - break; - case 'GC' : - $sNatureDep="GRCA"; // Cas non valid� - break; - case 'BX' : - $sNatureDep="BOX"; // Cas valid� - break; - case 'PK' : - $sNatureDep="PARK"; // Cas valid� - break; - case 'CL' : - $sNatureDep="CELL"; // Cas non valid� - break; - case 'BD' : - $sNatureDep="BUAN"; // Cas non valid� - break; - case 'BC' : - $sNatureDep="BUCH"; // Cas non valid� - break; - case 'RS' : - $sNatureDep="REMI"; // Cas non valid� - break; - case 'TT' : - $sNatureDep="TT"; // Cas valid� - break; - case 'PI' : - $sNatureDep="P.IND"; // Cas valid� - break; - case 'PA' : - $sNatureDep="AGREM"; // Cas valid� - break; - case 'CD' : - $sNatureDep="CHDO"; // Cas non valid� - break; - case 'DC' : - $sNatureDep="DEP.C"; // Cas valid� - break; - case 'JH' : - $sNatureDep="J.HIV"; // Cas valid� - break; - case 'PS' : - $sNatureDep="PISC"; // Cas valid� - break; - case 'SR' : - $sNatureDep="SERR"; // Cas non valid� - break; - default : - $sNatureDep=substr($this->aFields["cconad"],0,4); - break; - } - return $sNatureDep; - } - /** - * Cette m�thode permet de formater un d�cimal pour l'affichage. - * \return Retourne une chaine - */ - function setFloatToText($fFloat){ - return number_format($fFloat,2,'.',''); - } - /** - * Cette m�thode permet de retourner l'occupation du logement - * \return Retourne une cha�ne de caract�res qui peut �tre valide (la cha�ne de caract�res a �t� v�rifi�e d'apr�s des exemples de relev�s de propri�t�) ou non valide (la cha�ne de caract�res n'a pas pu �tre v�rifi�e). - */ - function getOccupation(){ - switch($this->aFields["dnatlc"]){ - case 'P' : - $sOccupation="Proprietaire ou Usufruitier"; - break; - case 'L' : - $sOccupation="Location autre que propri�taire ou usufruitier"; - break; - case 'V' : - $sOccupation="Vacant"; - break; - case 'T' : - $sOccupation="Location, non affect�e � l�habitation, soumise � TVA"; - break; - case 'D' : - $sOccupation="Habitation principale occup�e par le propri�taire"; - break; - default : - $sOccupation=substr($this->aFields["dnatlc"],0,1); - break; - } - return $sOccupation; - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Bati_Parcelle.class.inc b/web_service/class/majic_lib/Mj_Bati_Parcelle.class.inc deleted file mode 100755 index f499117c..00000000 --- a/web_service/class/majic_lib/Mj_Bati_Parcelle.class.inc +++ /dev/null @@ -1,162 +0,0 @@ -<?php -/** -* \file Mj_Bati_Parcelle.class.inc -* \brief Mj_Bati_Parcelle.class.inc \n \n Ce fichier contient la classe php Mj_Bati_Parcelle -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter les batis associ�s � une parcelle. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -* \author Fabien Marty <fabien.marty@veremes.com> -*/ - -require_once ("Mj.class.inc"); -require_once ("Mj_Bati.class.inc"); -require_once ("Mj_Proprietaire.class.inc"); - -class Mj_Bati_Parcelle extends Mj { - /** - * Tableau associatif comportant la liste des objets Bati de la parcelle. - */ - var $aBat=array(); - /** - * Chaine qui stocke l'anne� de r�f�rence des donn�es casdatrales. - */ - var $sAnneeReference; - - /** - * \param $sIdPar Identifiant de la parcelle - * \param $oBD Objet de connexion - */ - function __construct($sIdPar,$oBD){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['bati_parcelle']; - $this->sSql=str_replace('sIdPar',$sIdPar,$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->sStatus=0; - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - } - $oPDOresult=$oBD->fermeResultat(); - $this->aBat=$this->get_aBat($oBD,$sIdPar); - $this->sSql=$aSql[$oBD->sgbd]['annee_reference']; - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->erreurRencontree != 0){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $aAnneeReference=$oBD->ligneSuivante ($oPDOresult); - $this->sAnneeReference=$aAnneeReference['ANNEE']; - } - $this->aObjects=$this->aBat; - } - /** - * Cette m�thode permet de r�cup�rer les ID_BAT en fonction d'un ID_PAR donn� - * \param $oBD Objet de connexion - * \param $sIdPar Chaine identifiant de la parcelle - * \return Retourne un tableau de ID_BAT - */ - function get_aId_Bat($oBD,$sIdPar){ - if($this->isEmpty()){ - $aIdBat=""; - }else{ - include $this->sRessourcesFile; - $aIdBat=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_par_id_bat']; - $this->sSql=str_replace('sIdPar',$sIdPar,$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdBat,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdBat; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets BATI - * \param $oBD Objet de connexion - * \param $sIdPar Chaine identifiant de la parcelle - * \return Retourne un tableau d'objets BATI - */ - function get_aBat($oBD,$sIdPar){ - $aBat=array(); - if($this->isEmpty()){ - $aBat=""; - }else{ - $aIdBat=$this->get_aId_Bat($oBD,$sIdPar); - foreach($aIdBat as $sIdBat){ - array_push($aBat,new Mj_Bati($sIdBat,$oBD)); - } - } - return $aBat; - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['id_par']=$this->aFields['id_par']; - $aExportFields['annee_de_maj']=$this->sAnneeReference; - $aExportFields['dep_dir']=$this->getDepdir(); - $aExportFields['code_dep']=$this->aFields['ccodep']; - $aExportFields['code_com']=$this->aFields['ccocom']; - $aExportFields['lib_dep']=$this->aFields['libdep']; - $aExportFields['com']=$this->getCom(); - $aExportFields['libcom']=$this->aFields['libcom']; - $aExportFields['role']=""; - $aExportFields['vue']=""; - $aExportFields['contenance']=$this->aFields['dcntpa']; - $aExportFields['adresse']=$this->getAdresseParcelle(); - $aExportFields['total_valeur_locative']=$this->getValeurLocativeBati(); - } - return $aExportFields; - } - /** - * Cette m�thode permet de concat�ner les attributs ccodep et ccodir. - * /return Retourne une cha�ne de caract�res correspondant au DEP DIR du RP. - */ - function getDepdir(){ - $sDepdir=$this->aFields['ccodep']." ".$this->aFields['ccodir']; - return $sDepdir; - } - /** - * Cette m�thode permet de concat�ner les attributs ccocom et libcom. - * /return Retourne une cha�ne de carcat�res correspondant au COM du RP. - */ - function getCom(){ - $sCom=$this->aFields['ccocom']." ".$this->aFields['libcom']; - return $sCom; - } - /** - * Cette m�thode permet de concat�ner les attributs cconvo et dvoilib. - * \return Retourne une cha�ne de caract�res. - */ - function getAdresseParcelle(){ - $sAdresseParcelle=ltrim(rtrim($this->aFields['dnvoiri']),'0').rtrim($this->aFields['dindic'])." ".rtrim($this->aFields['cconvo'])." ".rtrim($this->aFields['dvoilib']); - return $sAdresseParcelle; - } - /** - * Cette m�thode permet de r�cup�rer la valeur locative totale du b�ti. - * \return Retourne un double - */ - function getValeurLocativeBati(){ - $iValeurLocativeBati=0; - foreach($this->aBat as $oBat){ - $iValeurLocativeBati=$oBat->aFields['dvlpera']+$iValeurLocativeBati; - } - return $iValeurLocativeBati; - } -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Bati_Parcelles.class.inc b/web_service/class/majic_lib/Mj_Bati_Parcelles.class.inc deleted file mode 100755 index 32b418b9..00000000 --- a/web_service/class/majic_lib/Mj_Bati_Parcelles.class.inc +++ /dev/null @@ -1,61 +0,0 @@ -<?php -/** -* \file Mj_Bati_Parcelles.class.inc -* \brief Mj_Bati_Parcelles.class.inc \n \n Ce fichier contient la classe php Mj_Bati_Parcelles -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter les batis associ�s � une parcelle. -* -* \author Olivier Gayte <olivier.gayte@veremes.com> -* \author Fabien Marty <fabien.marty@veremes.com> -*/ - -require_once ("Mj.class.inc"); -require_once ("Mj_Bati_Parcelle.class.inc"); - -class Mj_Bati_Parcelles extends Mj { - - /** - * \param $aIdPar Identifiant de la parcelle - * \param $oBD Objet de connexion - */ - function __construct($aIdPar,$oBD){ - $i=0; - while ($aIdPar[$i]){ - array_push ($this->aObjects, new Mj_Bati_Parcelle($aIdPar[$i],$oBD)); - $i++; - } - } - /** - * \brief Cette m�thode permet de construire un tableau. - * \return Retourne un tableau associatif. - */ - function getExportFields(){ - $aExportFields=array(); - $aExportFields['sum_contenance_m2']=$this->getSurfaceCadastraleM2(); - $aExportFields['sum_valeur_locative']=$this->getValeurLocative(); - return $aExportFields; - } - /** - * \brief R�cup�ration de la surface totale des parcelles en mettre carr�. - */ - function getSurfaceCadastraleM2(){ - $dSurfaceCadastraleM2=0; - foreach($this->getObjects('Mj_Bati_Parcelle') as $oBatiPar){ - $aFields=$oBatiPar->getExportFields(); - $dSurfaceCadastraleM2=((int) $aFields['contenance'])+$dSurfaceCadastraleM2; - } - return $dSurfaceCadastraleM2; - } - /** - * \brief R�cup�ration des valeurs locatives - */ - function getValeurLocative(){ - $dValeurLocative=0; - foreach($this->getObjects('Mj_Bati_Parcelle') as $oBatiPar) { - $aFields=$oBatiPar->getExportFields(); - $dValeurLocative=$aFields['total_valeur_locative']+$dValeurLocative; - } - return $dValeurLocative; - } -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Compte_Communal.class.inc b/web_service/class/majic_lib/Mj_Compte_Communal.class.inc deleted file mode 100755 index bb39be23..00000000 --- a/web_service/class/majic_lib/Mj_Compte_Communal.class.inc +++ /dev/null @@ -1,727 +0,0 @@ -<?php -/** -* \file Mj_Compte_Communal.class.inc -* \brief Mj_Compte_Communal.class.inc \n \n Ce fichier contient la classe php Mj_Compte_Communal -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie compte communal. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -require_once ("Mj.class.inc"); -require_once ("Mj_Proprietaire.class.inc"); -require_once ("Mj_Bati.class.inc"); -require_once ("Mj_Parcelle.class.inc"); - -class Mj_Compte_Communal extends Mj { - /** - * Tableau associatif comportant la liste des objets Proprietaire d'un compte communal. - */ - var $aPro=array(); - /** - * Tableau associatif comportant la liste des objets Bati d'un compte communal. - */ - var $aBat=array(); - /** - * Tableau associatif comportant la liste des objets Non Bati d'un compte communal. - */ - var $aPar=array(); - /** - * Chaine qui stocke l'anne� de r�f�rence des donn�es casdatrales. - */ - var $sAnneeReference; - - /** - * \param $sIdDnupro Identifiant national de compte communal - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdDnupro,$oBD, $sEncryptKey = ''){ - $this->sEncryptKey = $sEncryptKey; - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['compte_communal']; - $this->sSql=str_replace('$sIdDnupro',$this->encrypt($sIdDnupro),$this->sSql); - $oPDOresult=$oBD->execute ($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->sStatus=0; - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - $this->aFields['id_dnupro'] = $sIdDnupro; - } - $oPDOresult = $oBD->fermeResultat(); - $this->aPro = $this->get_aPro($oBD); - $this->aBat = $this->get_aBat($oBD); - $this->aPar = $this->get_aPar($oBD); - $this->sSql = $aSql[$oBD->sgbd]['annee_reference']; - $oPDOresult = $oBD->execute ($this->sSql); - if ( $oBD->erreurRencontree != 0){ - $this->sStatus=1; - $this->sMessage = $oBD->getBDMessage(); - }else{ - $aAnneeReference = $oBD->ligneSuivante ($oPDOresult); - $this->sAnneeReference=$aAnneeReference['ANNEE']; - } - $this->aObjects = array_merge ($this->aPro, $this->aBat,$this->aPar); - } - /** - * Cette m�thode permet de r�cup�rer les ID_PRO en fonction d'un ID_DNUPRO donn�. - * \return Retourne un tableau de ID_PRO. - */ - function get_aId_Pro($oBD){ - if($this->isEmpty()){ - $aIdPro=""; - }else{ - include $this->sRessourcesFile; - $aIdPro=array(); - $this->sSql = $aSql[$oBD->sgbd]['get_id_pro']; - $this->sSql = str_replace('$sIdDnupro', $this->encrypt($this->aFields['id_dnupro']), $this->sSql); - - $oPDOresult= $oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage = $oBD->getBDMessage(); - }else{ - while($aResultFetch = $oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdPro,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdPro; - $oPDOresult=$oBD->fermeResultat(); - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Proprietaire - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau d'objets Proprietaire - */ - function get_aPro($oBD){ - $aPro=array(); - if($this->isEmpty()){ - $aPro=""; - }else{ - $aIdPro = $this->get_aId_Pro($oBD); - - foreach($aIdPro as $sIdPro){ - array_push($aPro,new Mj_Proprietaire($this->aFields['id_dnupro'],$sIdPro,$oBD, $this->sEncryptKey)); - } - } - return $aPro; - } - /** - * Cette m�thode permet de r�cup�rer les ID_BAT en fonction d'un ID_DNUPRO donn� - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau de ID_BAT - */ - function get_aId_Bat($oBD){ - if($this->isEmpty()){ - $aIdBat=""; - }else{ - include $this->sRessourcesFile; - $aIdBat=array(); - $this->sSql = $aSql[$oBD->sgbd]['get_id_bat']; - $this->sSql = str_replace('$sIdDnupro', $this->aFields['id_dnupro'], $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch = $oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdBat,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdBat; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets BATI - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau d'objets BATI - */ - function get_aBat($oBD){ - $aBat=array(); - if($this->isEmpty()){ - $aBat=""; - }else{ - $aIdBat = $this->get_aId_Bat($oBD); - foreach($aIdBat as $sIdBat){ - array_push($aBat,new Mj_Bati($sIdBat,$oBD, $this->sEncryptKey)); - } - } - return $aBat; - } - /** - * Cette m�thode permet de r�cup�rer les ID_PAR en fonction d'un ID_DNUPRO donn� - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau de ID_PAR - */ - function get_aId_Par($oBD){ - if($this->isEmpty()){ - $aIdPar=""; - }else{ - include $this->sRessourcesFile; - $aIdPar=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_par']; - $this->sSql=str_replace('sDnupro', $this->aFields['dnupro'], $this->sSql); - $this->sSql=str_replace('sIdCom', $this->aFields['ccodep'].$this->aFields['ccodir'].$this->aFields['ccocom'], $this->sSql); - //$this->sSql=str_replace('$sIdDnupro', $this->aFields['id_dnupro'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdPar,$aResultFetch[0]); - $this->sStatus=0; - } - } - $this->sSql=$aSql[$oBD->sgbd]['get_id_par_bnd']; - $this->sSql=str_replace('sIdDnupro', $this->aFields['id_dnupro'], $this->sSql); - $this->sSql=str_replace('sDnupro', substr($this->aFields['id_dnupro'], 6), $this->sSql); - $this->sSql=str_replace('sIdCom', $this->aFields['ccodep'].$this->aFields['ccodir'].$this->aFields['ccocom'], $this->sSql); - //$this->sSql=str_replace('$sIdDnupro', $this->aFields['id_dnupro'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdPar,$aResultFetch[0]); - - $this->sStatus=0; - } - } - $this->aExportFields=$this->getExportFields(); - } - return $aIdPar; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets PARCELLE - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau d'objets PARCELLE - */ - function get_aPar($oBD){ - $aPar=array(); - if($this->isEmpty()){ - $aPar=""; - }else{ - $aIdPar=$this->get_aId_Par($oBD); - foreach($aIdPar as $sIdPar){ - array_push($aPar,new Mj_Parcelle($oBD,$sIdPar,$this->aFields['id_dnupro'])); - } - } - return $aPar; - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['codeinsee']=$this->aFields['codeinsee']; - $aExportFields['annee_de_maj']=$this->sAnneeReference; - $aExportFields['dep_dir']=$this->getDepdir(); - $aExportFields['code_dep']=$this->aFields['ccodep']; - $aExportFields['code_com']=$this->aFields['ccocom']; - $aExportFields['lib_dep']=$this->aFields['libdep']; - $aExportFields['com']=$this->getCom(); - $aExportFields['libcom']=$this->aFields['libcom']; - $aExportFields['role']=""; - $aExportFields['vue']=""; - $aExportFields['numero_communal']=$this->aFields['dnupro']; - $aExportFields['rev_impo_bati']=$this->getRevImpoBati(); - $aExportFields['rev_impo_par']=$this->getRevImpoPar(); - $iContenance = 0; - foreach($this->aPar as $oPar){ - $iContenance = $iContenance + $oPar->getContenance(); - } - $aExportFields['total_contenance']=$this->getTotalContenance(); - $aExportFields['total_contenance_m2']=$this->getTotalContenanceM2(); - $aExportFields['total_revenu_cadastral']=$this->getRevenuCadastralTotal(); - $aExportFields['total_valeur_locative']=$this->getValeurLocativeBati(); - $aExportFields['emprise_totale_intersect']=$this->getTotalContenanceBati(); - $aExportFields['ha']=intval($iContenance/10000); - if ($aExportFields['ha']==0) { - $aExportFields['ha']=' '; - } - - $aExportFields['a']=intval(($iContenance%10000)/100); - $sContenanceA=$aExportFields['a']; - $sContenanceA= strval($sContenanceA); - $sTlenA=strlen($sContenanceA); - if ($aExportFields['ha']==' ' and $aExportFields['a']==0){ - $aExportFields['a']=' '; - } else { - if ($aExportFields['ha'] == ' ' and $sTlenA == 2 and substr($aExportFields['a'],0,1)== 0) { - $sDeuxiemeValeur = substr($aExportFields['a'],1,1); - $aExportFields['a'] = ' '.$sDeuxiemeValeur; - } else { - if ($aExportFields['ha'] != ' ' and $sTlenA == 1) { - $aExportFields['a']= '0'.$aExportFields['a']; - } - } - } - $aExportFields['ca']=$iContenance%100; - $sContenanceCa=$aExportFields['ca']; - $sContenanceCa= strval($sContenanceCa); - $sTlen=strlen($sContenanceCa); - if ($aExportFields['a'] != 0) - if ($sTlen == 1) { - $aExportFields['ca']= '0'.$aExportFields['ca']; - } - $aExportFields['exo_com_bati']=$this->getExoComBati(); - $aExportFields['rev_impo_com_bati']=$this->getRevImpoComBati(); - $aExportFields['exo_dep_bati']=$this->getExoDepBati(); - $aExportFields['rev_impo_dep_bati']=$this->getRevImpoDepBati(); - $aExportFields['exo_reg_bati']=$this->getExoRegBati(); - $aExportFields['rev_impo_reg_bati']=$this->getRevImpoRegBati(); - $aExportFields['exo_com_par']=$this->getExoComPar(); - $aExportFields['rev_impo_com_par']=$this->getRevImpoComPar(); - //$aExportFields['exo_dep_reg_par']=$this->getExoDepRegPar(); - //$aExportFields['rev_impo_dep_reg_par']=$this->getRevImpoDepRegPar(); - $aExportFields['exo_dep_par']=$this->getExoDepPar(); - $aExportFields['rev_impo_dep_par']=$this->getRevImpoDepPar(); - $aExportFields['exo_reg_par']=$this->getExoRegPar(); - $aExportFields['rev_impo_reg_par']=$this->getRevImpoRegPar(); - //modif float - $aExportFields['rev_impo_bati_float']=$this->getRevImpoBatifloat(); - $aExportFields['rev_impo_par_float']=$this->getRevImpoParfloat(); - $aExportFields['exo_com_bati_float']=$this->getExoComBatifloat(); - $aExportFields['rev_impo_com_bati_float']=$this->getRevImpoComBatifloat(); - $aExportFields['exo_dep_bati_float']=$this->getExoDepBatifloat(); - $aExportFields['rev_impo_dep_bati_float']=$this->getRevImpoDepBatifloat(); - $aExportFields['exo_reg_bati_float']=$this->getExoRegBatifloat(); - $aExportFields['rev_impo_reg_bati_float']=$this->getRevImpoRegBatifloat(); - $aExportFields['exo_com_par_float']=$this->getExoComParfloat(); - $aExportFields['rev_impo_com_par_float']=$this->getRevImpoComParfloat(); - //$aExportFields['exo_dep_reg_par_float']=$this->getExoDepRegParfloat(); - //$aExportFields['rev_impo_dep_reg_par_float']=$this->getRevImpoDepRegParfloat(); - $aExportFields['exo_dep_par_float']=$this->getExoDepParfloat(); - $aExportFields['rev_impo_dep_par_float']=$this->getRevImpoDepParfloat(); - $aExportFields['exo_reg_par_float']=$this->getExoRegParfloat(); - $aExportFields['rev_impo_reg_par_float']=$this->getRevImpoRegParfloat(); - $aExportFields['exo_tax_ad_par_float']=$this->getExoTaxeADParfloat(); - $aExportFields['rev_impo_tax_ad_par_float']=$this->getRevImpoTaxeADParfloat(); - $aExportFields['exo_tax_ad_par']=$this->getExoTaxeADPar(); - $aExportFields['rev_impo_tax_ad_par']=$this->getRevImpoTaxeADPar(); - } - return $aExportFields; - } - /** - * Cette m�thode permet de concat�ner les attributs ccodep et ccodir. - * /return Retourne une cha�ne de caract�res correspondant au DEP DIR du RP. - */ - function getDepdir(){ - $sDepdir = $this->aFields['ccodep']." ".$this->aFields['ccodir']; - return $sDepdir; - } - /** - * Cette m�thode permet de concat�ner les attributs ccocom et libcom. - * /return Retourne une cha�ne de carcat�res correspondant au COM du RP. - */ - function getCom(){ - $sCom = $this->aFields['ccocom']." ".$this->aFields['libcom']; - return $sCom; - } - /** - * Cette m�thode permet de calculer le revenu imposable total du b�ti. - * \return Retourne un entier. - */ - function getRevImpoBati(){ - $iRevImpoBati=0; - foreach($this->aBat as $oBat){ - $iRevImpoBati=$iRevImpoBati+ (int) $oBat->getRevenuCadastral();; - } - return $iRevImpoBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable total du b�ti. - * \return Retourne un float. - */ - function getRevImpoBatifloat(){ - $fRevImpoBati=0; - foreach($this->aBat as $oBat){ - $fRevImpoBati=$fRevImpoBati+ (float) $oBat->getRevenuCadastralfloat();; - } - return $fRevImpoBati; - } - /** - * Cette m�thode permet de calculer l'exon�ration communale totale du b�ti. - * \return Retourne un entier - */ - function getExoComBati(){ - $iExoComBati=0; - foreach($this->aBat as $oBat){ - $iExoComBati=$iExoComBati + $oBat->getExoneration($oPro->aFields['l_ccodem']); - } - return $iExoComBati; - } - /** - * Cette m�thode permet de calculer l'exon�ration communale totale du b�ti. - * \return Retourne un float - */ - function getExoComBatifloat(){ - $fExoComBati=0; - foreach($this->aBat as $oBat){ - $fExoComBati=$fExoComBati + $oBat->getExonerationfloat($oPro->aFields['l_ccodem']); - } - return $fExoComBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable communal du b�ti en fonction du revenu imposable total (b�ti) et de l'exon�ration communale totale (b�ti). - * \return Retourne un entier. - */ - function getRevImpoComBati(){ - $iRevImpoComBati=$this->getRevImpoBati()-$this->getExoComBati($oPro->aFields['l_ccodem']); - return $iRevImpoComBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable communal du b�ti en fonction du revenu imposable total (b�ti) et de l'exon�ration communale totale (b�ti). - * \return Retourne un float. - */ - function getRevImpoComBatifloat(){ - $fRevImpoComBati=$this->getRevImpoBatifloat()-$this->getExoComBatifloat($oPro->aFields['l_ccodem']); - return $fRevImpoComBati; - } - /** - * Cette m�thode permet de calculer l'exon�ration d�partementale totale du b�ti. - * \return Retourne un entier - */ - function getExoDepBati(){ - $iExoDepBati=0; - foreach($this->aBat as $oBat){ - $iExoDepBati=$iExoDepBati + $oBat->getExoneration($oPro->aFields['l_ccodem']); - } - return $iExoDepBati; - } - /** - * Cette m�thode permet de calculer l'exon�ration d�partementale totale du b�ti. - * \return Retourne un float - */ - function getExoDepBatifloat(){ - $fExoDepBati=0; - foreach($this->aBat as $oBat){ - $fExoDepBati=$fExoDepBati + $oBat->getExonerationfloat($oPro->aFields['l_ccodem']); - } - return $fExoDepBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable d�partemental du b�ti en fonction du revenu imposable total (b�ti) et de l'exon�ration d�partemantale totale (b�ti). - * \return Retourne un entier. - */ - function getRevImpoDepBati(){ - $iRevImpoDepBati=$this->getRevImpoBati()-$this->getExoDepBati(); - return $iRevImpoDepBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable d�partemental du b�ti en fonction du revenu imposable total (b�ti) et de l'exon�ration d�partemantale totale (b�ti). - * \return Retourne un float. - */ - function getRevImpoDepBatifloat(){ - $fRevImpoDepBati=$this->getRevImpoBatifloat()-$this->getExoDepBatifloat(); - return $fRevImpoDepBati; - } - /** - * Cette m�thode permet de calculer l'exon�ration r�gionale totale du b�ti. - * \return Retourne un entier - */ - function getExoRegBati(){ - $iExoRegBati=0; - foreach($this->aBat as $oBat){ - $iExoRegBati=$iExoRegBati + $oBat->getExoneration($oPro->aFields['l_ccodem']); - } - return $iExoRegBati; - } - /** - * Cette m�thode permet de calculer l'exon�ration r�gionale totale du b�ti. - * \return Retourne un float - */ - function getExoRegBatifloat(){ - $fExoRegBati=0; - foreach($this->aBat as $oBat){ - $fExoRegBati=$fExoRegBati + $oBat->getExonerationfloat($oPro->aFields['l_ccodem']); - } - return $fExoRegBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable r�gional du b�ti en fonction du revenu imposable total (b�ti) et de l'exon�ration r�gionale totale (b�ti). - * \return Retourne un entier. - */ - function getRevImpoRegBati(){ - $iRevImpoRegBati=$this->getRevImpoBati()-$this->getExoRegBati(); - return $iRevImpoRegBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable r�gional du b�ti en fonction du revenu imposable total (b�ti) et de l'exon�ration r�gionale totale (b�ti). - * \return Retourne un float. - */ - function getRevImpoRegBatifloat(){ - $fRevImpoRegBati=$this->getRevImpoBatifloat()-$this->getExoRegBatifloat(); - return $fRevImpoRegBati; - } - /** - * Cette m�thode permet de calculer l'emprise b�tie totale des parcelles. - * \return Retourne un entier. - */ - function getTotalContenanceBati(){ - $iContenance = 0; - foreach($this->aPar as $oPar){ - foreach($oPar->aIntersect as $oIntersect){ - $iContenanceBati = $iContenanceBati + $oIntersect->getEmpriseTotale(); - } - } - return $iContenanceBati; - } - /** - * Cette m�thode permet de calculer le revenu imposable total des parcelles. - * \return Retourne un entier. - */ - function getRevImpoPar(){ - $fRevImpoPar=0; - foreach($this->aPar as $oPar){ - $fRevImpoPar=$fRevImpoPar+ (float) $oPar->getRevenuCadastral(); - $iRevImpoPar=round($fRevImpoPar); - } - return $iRevImpoPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable total des parcelles. - * \return Retourne un float. - */ - function getRevImpoParfloat(){ - $fRevImpoPar=0; - foreach($this->aPar as $oPar){ - $fRevImpoPar=$fRevImpoPar+ (float) $oPar->getRevenuCadastral(); - } - return $fRevImpoPar; - } - /** DEPRECATED - /** - * Cette m�thode permet de calculer l'exon�ration (d�partementale et r�gionale) totale des parcelles. - * \return Retourne un entier - */ - /* - function getExoDepRegPar(){ - $fExoDepRegPar=0; - foreach($this->aPar as $oPar){ - $fExoDepRegPar=$fExoDepRegPar + $oPar->getRevenuCadastralAvecExo(); - } - $iExoDepRegPar = round($fExoDepRegPar); - return $iExoDepRegPar; - } - */ - /** - * Cette m�thode permet de calculer le revenu imposable (d�partemental et r�gional) des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration (d�partementale et r�gionale) totale (parcelles). - * \return Retourne un entier. - */ - /* - function getRevImpoDepRegPar(){ - $iRevImpoDepRegPar=$this->getRevImpoPar()-$this->getExoDepRegPar(); - return $iRevImpoDepRegPar; - } - */ - /** - * Cette m�thode permet de calculer l'exon�ration d�partementale totale des parcelles. - * \return Retourne un entier - */ - function getExoDepPar(){ - $fExoDepPar=0; - foreach($this->aPar as $oPar){ - $fExoDepPar=$fExoDepPar + $oPar->getRevenuCadastralDepAvecExo(); - } - $iExoDepPar = round($fExoDepPar); - return $iExoDepPar; - } - /** - * Cette m�thode permet de calculer l'exon�ration d�partementale totale des parcelles. - * \return Retourne un float - */ - function getExoDepParfloat(){ - $fExoDepPar=0; - foreach($this->aPar as $oPar){ - $fExoDepPar=$fExoDepPar+$oPar->getRevenuCadastralDepAvecExo(); - } - return $fExoDepPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable d�partemental des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration (d�partementale et r�gionale) totale (parcelles). - * \return Retourne un entier. - */ - function getRevImpoDepPar(){ - $iRevImpoDepPar=$this->getRevImpoPar()-$this->getExoDepPar(); - return $iRevImpoDepPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable d�partemental des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration (d�partementale et r�gionale) totale (parcelles). - * \return Retourne un float. - */ - function getRevImpoDepParfloat(){ - $fRevImpoDepPar=$this->getRevImpoParfloat()-$this->getExoDepParfloat(); - return $fRevImpoDepPar; - } - /** - * Cette m�thode permet de calculer l'exon�ration r�gionale totale des parcelles. - * \return Retourne un entier - */ - function getExoRegPar(){ - $fExoRegPar=0; - foreach($this->aPar as $oPar){ - $fExoRegPar=$fExoRegPar + $oPar->getRevenuCadastralRegAvecExo(); - } - $iExoRegPar = round($fExoRegPar); - return $iExoRegPar; - } - /** - * Cette m�thode permet de calculer l'exon�ration r�gionale totale des parcelles. - * \return Retourne un float - */ - function getExoRegParfloat(){ - $fExoRegPar=0; - foreach($this->aPar as $oPar){ - $fExoRegPar=$fExoRegPar + $oPar->getRevenuCadastralRegAvecExo(); - } - return $fExoRegPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable r�gional des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration (d�partementale et r�gionale) totale (parcelles). - * \return Retourne un entier. - */ - function getRevImpoRegPar(){ - $iRevImpoRegPar=$this->getRevImpoPar()-$this->getExoRegPar(); - return $iRevImpoRegPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable r�gional des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration (d�partementale et r�gionale) totale (parcelles). - * \return Retourne un float. - */ - function getRevImpoRegParfloat(){ - $fRevImpoRegPar=$this->getRevImpoParfloat()-$this->getExoRegParfloat(); - return $fRevImpoRegPar; - } - /** - * Cette m�thode permet de calculer la contenance totale des parcelles. - * \return Retourne un entier. - */ - function getTotalContenance(){ - $iContenance = 0; - foreach($this->aPar as $oPar){ - $iContenance = $iContenance + $oPar->aFields['dcntpa']; - } - return $iContenance; - } - /** - * Cette m�thode permet de calculer la contenance totale des parcelles en mettre carr�. - * \return Retourne un entier. - */ - function getTotalContenanceM2(){ - $iContenanceM2=0; - foreach($this->aPar as $oPar){ - $iContenanceM2 = $iContenanceM2 + $oPar->getContenance(); - } - return $iContenanceM2; - } - /** - * Cette m�thode permet de r�cup�rer le revenu cadastral total des parcelles. - * \return Retourne un double - */ - function getRevenuCadastralTotal(){ - $dRevCadastralTotal=0; - foreach($this->aPar as $oPar){ - $dRevCadastralTotal=$dRevCadastralTotal + $oPar->getRevenuCadastral(); - } - //$iRevCadastralTotal = round($dRevCadastralTotal); - return $dRevCadastralTotal; - } - /** - * Cette m�thode permet de calculer l'�xon�ration communale totale des parcelles. - * \return Retourne 0; - */ - function getExoComPar(){ - $iExoComPar=0; - foreach($this->aPar as $oPar){ - $fExoComPar=$fExoComPar + $oPar->getRevenuCadastralComAvecExo(); - } - $iExoComPar = round($fExoComPar); - return $iExoComPar; - } - /** - * Cette m�thode permet de calculer l'�xon�ration communale totale des parcelles. - * \return Retourne 0; - */ - function getExoComParfloat(){ - $fExoComPar=0; - foreach($this->aPar as $oPar){ - $fExoComPar=$fExoComPar + $oPar->getRevenuCadastralComAvecExo(); - } - return $fExoComPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable communal des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration communale totale (parcelles). - * \return Retourne un entier. - */ - function getRevImpoComPar(){ - $iRevImpoComPar=$this->getRevImpoPar()-$this->getExoComPar(); - return $iRevImpoComPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable communal des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration communale totale (parcelles). - * \return Retourne un float. - */ - function getRevImpoComParfloat(){ - $fRevImpoComPar=$this->getRevImpoParfloat()-$this->getExoComParfloat(); - return $fRevImpoComPar; - } - function getExoTaxeADPar(){ - $iExoTaxeAdPar=0; - foreach($this->aPar as $oPar){ - $fExoTaxeADPar=$fExoTaxeADPar + $oPar->getRevenuCadastralTaxeADAvecExo(); - } - $iExoTaxeADPar = round($fExoTaxeADPar); - return $iExoTaxeADPar; - } - /** - * Cette m�thode permet de calculer l'�xon�ration des taxes additionnelles totale des parcelles. - * \return Retourne 0; - */ - function getExoTaxeADParfloat(){ - $fExoTaxeADPar=0; - foreach($this->aPar as $oPar){ - $fExoTaxeADPar=$fExoTaxeADPar + $oPar->getRevenuCadastralTaxeADAvecExo(); - } - return $fExoTaxeADPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable des taxes additionnelles des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration communale totale (parcelles). - * \return Retourne un entier. - */ - function getRevImpoTaxeAdPar(){ - $iRevImpoTaxeADPar=$this->getRevImpoPar()-$this->getExoTaxeADPar(); - return $iRevImpoTaxeADPar; - } - /** - * Cette m�thode permet de calculer le revenu imposable des taxes additionnelles des parcelles en fonction du revenu imposable total (parcelles) et de l'exon�ration communale totale (parcelles). - * \return Retourne un float. - */ - function getRevImpoTaxeADParfloat(){ - $fRevImpoTaxeADPar=$this->getRevImpoParfloat()-$this->getExoTaxeADParfloat(); - return $fRevImpoTaxeADPar; - } - /** - * Cette m�thode permet de r�cup�rer la valeur locative totale du b�ti. - * \return Retourne un double - */ - function getValeurLocativeBati(){ - $iValeurLocativeBati=0; - foreach($this->aBat as $oBat){ - $iValeurLocativeBati= $oBat->aFields['dvlpera'] + $iValeurLocativeBati; - } - return $iValeurLocativeBati; - } -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Compte_Communal_Parcelle.class.inc b/web_service/class/majic_lib/Mj_Compte_Communal_Parcelle.class.inc deleted file mode 100755 index d78f88fe..00000000 --- a/web_service/class/majic_lib/Mj_Compte_Communal_Parcelle.class.inc +++ /dev/null @@ -1,145 +0,0 @@ -<?php -/** -* \file Mj_Compte_Communal_Parcelle.class.inc -* \brief Mj_Compte_Communal_Parcelle.class.inc \n \n Ce fichier contient la classe php Mj_Compte_Communal_Parcelle -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter un relev� de propri�t� en fonction d'un compte communal et d'un num�ro de parcelle. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj_Compte_Communal.class.inc"); - -class Mj_Compte_Communal_Parcelle extends Mj_Compte_Communal { - /** - * Identifiant national de la parcelle sur 15 caract�res. - */ - var $sIdPar; - /** - * Bool�en servant � savoir si on recherche une parcelle avec tout les batiments - */ - var $bFP=false; - - /** - * \param $sIdDnupro peut etre vide, un identifiant sera d�fini par une requete sql sur l'identifiant parcelle - * \param $sIdPar Identifiant de la parcelle. - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdDnupro,$sIdPar,$oBD,$bFP=false,$sEncryptedKey='',$AllSuf=false){ - $this->bAllSuf=$AllSuf; - $this->sEncryptKey=$sEncryptedKey; - include $this->sRessourcesFile; - if($sIdDnupro==""){ - $sSql=$aSql[$oBD->sgbd]['get_id_dnupro']; - $sSql=str_replace('idparpro', $sIdPar, $sSql); - $oPDOresult=$oBD->execute($sSql); - $aIdDnuProSql=$oBD->ligneSuivante ($oPDOresult); - $sIdDnupro=$aIdDnuProSql['iddnupro']; - $sDnupro=$aIdDnuProSql['dnupro']; - $oPDOresult=$oBD->fermeResultat(); - } - $this->sSql=$aSql[$oBD->sgbd]['compte_communal_parcelle']; - $this->sSql=str_replace('$sIdDnupro', $this->encrypt($sIdDnupro), $this->sSql); - $this->sSql=str_replace('$sIdPar', $sIdPar, $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - if($aCompteCom=$oBD->ligneSuivante($oPDOresult)){ - $this->aFields=$aCompteCom; - $this->aFields['id_dnupro']=$sIdDnupro; - //$this->aFields['dnupro']=$sIdDnupro; - $this->sStatus=0; - $oPDOresult=$oBD->fermeResultat(); - $this->aPro=$this->get_aPro($oBD); - $this->aBat=$this->get_aBat($oBD,$bFP); - $this->aPar=$this->get_aPar($oBD,$sIdPar,$sIdDnupro); - // r�cup�ration de l'ann�e de r�f�rence - $this->sSql=$aSql[$oBD->sgbd]['annee_reference']; - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $aAnneeReference=$oBD->ligneSuivante ($oPDOresult); - $this->sAnneeReference=$aAnneeReference['ANNEE']; - } - $oPDOresult=$oBD->fermeResultat(); - $this->aObjects=array_merge ($this->aPro,$this->aBat,$this->aPar); - }else{ - $this->sStatus=1; - $this->sMessage="Aucun compte communal trouv� pour la parcelle : ".$sIdPar; - $oPDOresult=$oBD->fermeResultat(); - } - } - } - /** - * Cette m�thode permet de r�cup�rer les ID_BAT en fonction d'un ID_DNUPRO donn� - * \return Retourne un tableau de ID_BAT - */ - function get_aId_Bat($sIdPar, $oBD, $bFP){ - if($this->isEmpty()){ - $aIdBat=""; - }else{ - include $this->sRessourcesFile; - $aIdBat=array(); - if (!$bFP){ - $this->sSql=$aSql[$oBD->sgbd]['get_id_bat_parcelle']; - $this->sSql=str_replace('$sIdDnupro', $this->aFields['id_dnupro'], $this->sSql); - $this->sSql=str_replace('$sIdPar', $this->aFields['id_par'], $this->sSql); - }else{ - $this->sSql=$aSql[$oBD->sgbd]['get_par_id_bat']; - $this->sSql=str_replace('sIdPar', $this->aFields['id_par'], $this->sSql); - } - $oPDOresult= $oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch = $oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdBat,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdBat; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets BATI - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau d'objets BATI - */ - function get_aBat($oBD,$bFP){ - $aBat=array(); - if($this->isEmpty()){ - $aBat=""; - }else{ - $aIdBat=$this->get_aId_Bat($sIdPar,$oBD,$bFP); - foreach($aIdBat as $sIdBat){ - array_push($aBat,new Mj_Bati($sIdBat,$oBD, $this->sEncryptKey)); - } - } - return $aBat; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets PARCELLE - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \param $sIdDnupro Identifiant du propri�taire - * \return Retourne un tableau d'objets PARCELLE - */ - function get_aPar($oBD,$sIdPar,$sIdDnupro){ - $aPar=array(); - if($this->isEmpty()){ - $aPar=""; - }else{ - $aIdPar=Array($sIdPar); - foreach($aIdPar as $sIdPar){ - array_push($aPar,new Mj_Parcelle($oBD,$sIdPar,$sIdDnupro,$this->sEncryptKey,$this->bAllSuf)); - } - } - return $aPar; - } -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Compte_Communal_Parcelles.class.inc b/web_service/class/majic_lib/Mj_Compte_Communal_Parcelles.class.inc deleted file mode 100755 index 8b938de3..00000000 --- a/web_service/class/majic_lib/Mj_Compte_Communal_Parcelles.class.inc +++ /dev/null @@ -1,121 +0,0 @@ -<?php -/** -* \file Mj_Bati_Parcelles.class.inc -* \brief Mj_Bati_Parcelles.class.inc \n \n Ce fichier contient la classe php Mj_Bati_Parcelles -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter les batis associ�s � une parcelle. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -require_once ("Mj.class.inc"); -require_once ("Mj_Compte_Communal_Parcelle.class.inc"); - -class Mj_Compte_Communal_Parcelles extends Mj { - - /** - * \param $aIdPar Tableau Identifiants des parcelles - * \param $oBD Objet de connexion - * \param $properties Tableau des propri�t�s - * \param $sLayerTypeParcelle Chaine Type de g�om�trie des parcelles - */ - function __construct($aIdPar,$oBD,$properties,$sLayerTypeParcelle){ - $i=0; - while ($aIdPar[$i]){ - array_push ($this->aObjects, new Mj_Compte_Communal_Parcelle("",$aIdPar[$i],$oBD)); - $i++; - } - foreach($this->getObjects('Mj_Compte_Communal_Parcelle') as $oCptParcelle){ - foreach($oCptParcelle->getObjects('Mj_Parcelle') as $oParcelle){ - $oParcelle->getEmprises($properties,$oBD,$sLayerTypeParcelle); - foreach($oParcelle->getObjects('Mj_Emprises') as $oEmprises){ - if($oEmprises->isError()){ - $this->sStatus=1; - $this->sMessage="Erreur lors des r�cup�rations des emprises, consulter le error.log"; - } - } - } - } - } - - /** - * \brief R�cup�ration de la surface totale des parcelles - */ - function getSurfaceCadastrale() { - $dSurfaceCadastrale = 0; - foreach($this->getObjects('Mj_Compte_Communal_Parcelle') as $oCptCom) { - $aFields=$oCptCom->getExportFields(); - $dSurfaceCadastrale = $aFields['total_contenance'] + $dSurfaceCadastrale; - } - return $dSurfaceCadastrale; - } - /** - * \brief R�cup�ration de la surface totale des parcelles en mettre carr� - */ - function getSurfaceCadastraleM2() { - $dSurfaceCadastraleM2 = 0; - foreach($this->getObjects('Mj_Compte_Communal_Parcelle') as $oCptCom) { - $aFields=$oCptCom->getExportFields(); - $dSurfaceCadastraleM2 = $aFields['total_contenance_m2'] + $dSurfaceCadastraleM2; - } - return $dSurfaceCadastraleM2; - } - /** - * \brief R�cup�ration des revenus de la subdivision fiscale des parcelles - */ - function getRevenuCadastral() { - $dRevenuCadastral=0; - foreach($this->getObjects('Mj_Compte_Communal_Parcelle') as $oCptCom) { - $aFields=$oCptCom->getExportFields(); - $dRevenuCadastral = $aFields['total_revenu_cadastral'] + $dRevenuCadastral; - } - return $dRevenuCadastral; - } - - /** - * \brief R�cup�ration des valeurs locatives - */ - function getValeurLocative() { - $dValeurLocative=0; - foreach($this->getObjects('Mj_Compte_Communal_Parcelle') as $oCptCom) { - $aFields=$oCptCom->getExportFields(); - $dValeurLocative=$aFields['total_valeur_locative'] + $dValeurLocative; - } - return $dValeurLocative; - } - /** - * \brief R�cup�ration de la emprises b�ties totale des parcelles - */ - function getSurfaceCadastraleBati() { - $dSurfaceCadastraleBati = 0; - foreach($this->getObjects('Mj_Compte_Communal_Parcelle') as $oCptCom) { - foreach($oCptCom->getObjects('Mj_Parcelle') as $oParcelle){ - foreach($oParcelle->getObjects('Mj_Emprises') as $oEmprises){ - $aFields=$oEmprises->getExportFields(); - if($aFields['titre']=="Emprise Bati"){ - $dSurfaceCadastraleBati = $aFields['emprise_totale_intersect'] + $dSurfaceCadastraleBati; - } - } - } - } - return $dSurfaceCadastraleBati; - } - /** - * \brief Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if(!empty($this->aObjects)){ - //partie des sommes (surfaces,revenus,valeurs locatives) - $aExportFields['Sum_revenu']=$this->getRevenuCadastral(); - $aExportFields['Sum_contenance']=$this->getSurfaceCadastrale(); - $aExportFields['Sum_contenance_m2']=$this->getSurfaceCadastraleM2(); - $aExportFields['Sum_valeur_locative']=$this->getValeurLocative(); - $aExportFields['Sum_contenance_bati']=$this->getSurfaceCadastraleBati(); - } - return $aExportFields; - } -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Depend_Descr.class.inc b/web_service/class/majic_lib/Mj_Depend_Descr.class.inc deleted file mode 100755 index e525d7bb..00000000 --- a/web_service/class/majic_lib/Mj_Depend_Descr.class.inc +++ /dev/null @@ -1,102 +0,0 @@ -<?php -/** -* \file Mj_Depend_Descr.class.inc -* \brief Mj_Depend_Descr.class.inc \n \n Ce fichier contient la classe php Mj_Depend_Descr -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Description D�pendance. -* -* \author John Bosch -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -require_once ("Mj.class.inc"); - -class Mj_Depend_Descr extends Mj { - /** - * \param $sIdDep Identifiant de la d�pendance - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdDep,$oBD){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['depend_descr']; - $this->sSql=str_replace('$sIdDep',$sIdDep,$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante($oPDOresult); - $this->sStatus=0; - } - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�/Fiche Parcelle. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�/Fiche Parcelle. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['num_invar']=$this->aFields['invar']; - $aExportFields['num_pev']=$this->aFields['dnupev']; - $aExportFields['num_depend']=$this->aFields['dnudes']; - $aExportFields['nature']=$this->aFields['l_cconad']; - $aExportFields['surface']=$this->aFields['dsudep']; - $aExportFields['ponderation']=$this->aFields['dcimlc']; - $aExportFields['Etat']=$this->aFields['detent']; - $aExportFields['l_Etat']=$this->aFields['l_detent']; - $aExportFields['mat_gros_mur']=$this->aFields['dmatgm']; - $aExportFields['lib_mat_gros_mur']=$this->aFields['lib_dmatgm']; - $aExportFields['mat_toiture']=$this->aFields['dmatto']; - $aExportFields['lib_mat_toiture']=$this->aFields['lib_dmatto']; - $aExportFields['nb_baignoires']=$this->aFields['dnbbai']; - $aExportFields['nb_douches']=$this->aFields['dnbdou']; - $aExportFields['nb_lavabos']=$this->aFields['dnblav']; - $aExportFields['nb_wc']=$this->aFields['dnbwc']; - $aExportFields['eau']=$this->getEau(); - $aExportFields['elect']=$this->getElect(); - $aExportFields['chauf']=$this->getChauf(); - } - return $aExportFields; - } - - /* - DEPRECATED 2013 - function getNature(){ - if ($this->aFields['cconad'] == "TR") { - return "Terrasse(s)"; - } - if ($this->aFields['cconad'] == "CV") { - return "Cave(s)"; - } - if ($this->aFields['cconad'] == "GR") { - return "Grenier(s)"; - } - if ($this->aFields['cconad'] == "GA") { - return "Garage(s)"; - } - } - */ - - function getEau(){ - if($this->aFields["geaulc"] == "O"){ - return "EAU"; - } - } - - function getElect(){ - if($this->aFields["gelelc"] == "O"){ - return "ELECT"; - } - } - - function getChauf(){ - if($this->aFields["gchclc"] == "O"){ - return "CHAUF"; - } - } - -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Emprise.class.inc b/web_service/class/majic_lib/Mj_Emprise.class.inc deleted file mode 100755 index 2ff7cf3d..00000000 --- a/web_service/class/majic_lib/Mj_Emprise.class.inc +++ /dev/null @@ -1,101 +0,0 @@ -<?php - -/** -* \file Mj_Emprise.class.inc -* \brief Mj_Emprise.class.inc \n \n Ce fichier contient la classe php Mj_Emprise -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie parcelle. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -/** -* \class Mj_Emprise -* \brief Mj_Emprise Class \n \n Mj_Emprise est une classe PHP qui h�rite de la classe Mj_Emprise. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Emprise. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Attributes.class.inc"); - -class Mj_Emprise extends Mj { - - var $sIdEmprise=""; - /** - * Tableau - */ - var $aAttributesEmprise= array(); - - /** - * Cette m�thode m�tier permet de r�cup�rer les informations sur les couches intersect�es par la surface de la parcelle interrog�e. - * \param $aField Tableau des noms de champs associ�es � la vue utilis�e. - * \param $aRow - * \param $iCompteur - * \param $iTolerance Valeur minimum de surface intersect� � partir de laquelle le contenu d'un enregistrement est affich�. - */ - function __construct($aField,$aRow,$iCompteur, $iTolerance) { - $aEmpriseParcelle= array(); - switch(strtoupper($aField["type"])) { - case "POINT" : - $aEmpriseParcelle["intersectsuf"] = $aRow; - $this->sIdEmprise=$iCompteur; - break; - case "LINE" : - if(round($aRow["intersect"]) >= $iTolerance){ - $aEmpriseParcelle["intersectsuf"] = $aRow; - $aEmpriseParcelle["intersectsuf"]["intersect_label"]= $aEmpriseParcelle["intersectsuf"]["intersect"]." m"; - $this->sIdEmprise=$iCompteur; - }else{ - $aEmpriseParcelle["intersectsuf"]["intersect"] = "0"; - $aEmpriseParcelle["intersectsuf"]["intersect_label"] = "0 m"; - $this->sIdEmprise=$iCompteur; - } - break; - case "POLYGON" : - if(round($aRow["intersect"]) >= $iTolerance){ - $aEmpriseParcelle["intersectsuf"] = $aRow; - $aEmpriseParcelle["ratio"] = @(round(($aEmpriseParcelle["intersectsuf"]["intersect"] / $aEmpriseParcelle["intersectsuf"]["suf_parcelle"]), 2) * 100); - $aEmpriseParcelle["intersectsuf"]["intersect_label"].=$aEmpriseParcelle["intersectsuf"]["intersect"]." m�"; - $aEmpriseParcelle["ratio_label"]=$aEmpriseParcelle["ratio"]." %"; - $this->sIdEmprise=$iCompteur; - }else{ - $aEmpriseParcelle["intersectsuf"]["intersect"]="0"; - $aEmpriseParcelle["intersectsuf"]["intersect_label"]="0 m�"; - $aEmpriseParcelle["ratio"]= "0"; - $aEmpriseParcelle["ratio_label"]=$aEmpriseParcelle["ratio"]." %"; - $this->sIdEmprise=$iCompteur; - } - break; - } - $this->aFields=$aEmpriseParcelle; - if(is_array($aEmpriseParcelle)){ - array_push($this->aAttributesEmprise, new Mj_Attributes($aEmpriseParcelle,$aField)); - } - $this->aObjects=$this->aAttributesEmprise; - } - - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['emprise_intersect']=$this->aFields["intersectsuf"]["intersect"]; - $aExportFields['emprise_intersect_label']=$this->aFields["intersectsuf"]["intersect_label"]; - if($this->aFields["ratio"]){ - $aExportFields['emprise_ratio']=$this->aFields["ratio"]; - $aExportFields['emprise_ratio_label']=$this->aFields["ratio_label"]; - } - $aExportFields['id_emprise']=$this->sIdEmprise; - } - return $aExportFields; - } - -} \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Emprises.class.inc b/web_service/class/majic_lib/Mj_Emprises.class.inc deleted file mode 100755 index df3969ca..00000000 --- a/web_service/class/majic_lib/Mj_Emprises.class.inc +++ /dev/null @@ -1,125 +0,0 @@ -<?php - -/** -* \file Mj_Emprises.class.inc -* \brief Mj_Emprises.class.inc \n \n Ce fichier contient la classe php Mj_Emprises -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie parcelle. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -/** -* \class Mj_Emprises -* \brief Mj_Emprises Class \n \n Mj_Emprises est une classe PHP qui h�rite de la classe Mj_Parcelle. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Emprises. -* -* \author Nicolas Chazeau -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Parcelle.class.inc"); -require_once ("Mj_Emprise.class.inc"); - -class Mj_Emprises extends Mj { - - /** - * Cette m�thode m�tier permet de r�cup�rer les informations sur les couches intersect�es par la surface de la parcelle int�rrog�e. - * \param $oCadastre Objet classe Cadastre. - * \param $sIdPar Identifiant de la parcelle s�lectionn�e. - * \param $sView Vue Postgis � interroger. - * \param $iTolerance Valeur minimum de surface intersect� � partir de laquelle le contenu d'un enregistrement est affich�. - * \param $aField Tableau des noms de champs associ�es � la vue utilis�e. - * \param $sLayerType Type de g�om�trie contenue dans la couche parcelle de r�f�rence. - * \param $sInclude Fichier de rendu (*.vhtml) � afficher en cas d'erreur. - * \param $sType (Facultatif) Param�tre signifiant si on veut un tableau HTML (par d�faut) ou aucune mise en forme en sortie (valeurs possibles : HTML, TEXT). - * \private - * \return Un tableau HTML sous la forme d'une cha�ne de caract�res. - */ - - /** - * Tableau associatif comportant la liste des objets Emprises d'une parcelle - */ - var $aEmprisesParcellesSuf=array(); - - function __construct($oBD, $sIdPar, $sView, $iTolerance, $aField, $sLayerType) { - $sFunction = ""; - switch(strtoupper($aField["type"])) { - case "POINT" : - $sFunction.= "st_area2d"; - break; - case "LINE" : - $sFunction.= "st_length2d"; - break; - case "POLYGON" : - $sFunction.= "st_area2d"; - break; - } - ($sLayerType == "polygon") ? $sPrcTable = "v_parcelle" : $sPrcTable = "v_parcelle_point"; - - $sSql = "SELECT CAST(".$sFunction."(st_intersection(".$sPrcTable.".geom, CASE WHEN st_srid(".$sPrcTable.".geom) = st_srid(".$sView.".geom) THEN ".$sView.".geom ELSE st_transform(".$sView.".geom, st_srid(".$sPrcTable.".geom)) END)) AS DECIMAL(10,1)) AS intersect, "; - $sSql.= "st_area2d(".$sPrcTable.".geom) AS suf_parcelle, ".$sView.".* FROM ".$sPrcTable.", ".$sView." WHERE "; - $sSql.= "st_intersects(".$sPrcTable.".geom, CASE WHEN st_srid(".$sPrcTable.".geom) = st_srid(".$sView.".geom) THEN ".$sView.".geom ELSE st_transform(".$sView.".geom, st_srid(".$sPrcTable.".geom)) END) "; - $sSql.= "AND ".$sPrcTable.".id_par = '".$sIdPar."' ;"; - - $iResult=$oBD->execute($sSql); - if ($oBD->enErreur()) { - $this->sStatus = 1; - $this->sMessage = $oBD->getBDMessage(); - }else{ - $i=0; - while($aRow = $oBD->ligneSuivante ($iResult)) { - $oEmprise=new Mj_Emprise($aField,$aRow,$i,$iTolerance); - if($oEmprise->aFields["intersectsuf"]["intersect"]!="0"){ - array_push($this->aEmprisesParcellesSuf,$oEmprise); - $i++; - } - } - $iResult = $oBD->fermeResultat(); - } - $aValue["titre"]=$aField["title"]; - $aValue["type_geom"]=$aField["type"]; - $this->aFields=$aValue; - $this->aObjects=$this->aEmprisesParcellesSuf; - } - /* - * R�cup�re l'emprise totale d'un ensemble d'emprise (bati ou pos ou servitude etc) - * \return D�cimal l'emprise totale - */ - function getEmpriseTotale() { - $dEmpriseTotale = 0; - foreach ($this->aEmprisesParcellesSuf as $oEmprise) { - $dEmpriseTotale = $dEmpriseTotale + (float) $oEmprise->aFields["intersectsuf"]["intersect"]; - } - return $dEmpriseTotale; - } - - function getEmpriseRatioTotale() { - $dEmpriseRatioTotale = 0; - foreach ($this->aEmprisesParcellesSuf as $oEmprise) { - $dEmpriseRatioTotale = $dEmpriseRatioTotale + (float) $oEmprise->aFields["ratio"]; - } - return $dEmpriseRatioTotale; - } - - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['titre']=$this->aFields["titre"]; - $aExportFields['type_geom']=$this->aFields["type_geom"]; - $aExportFields['emprise_totale_intersect']=$this->getEmpriseTotale(); - $aExportFields['emprise_totale_ratio']=$this->getEmpriseRatioTotale(); - } - return $aExportFields; - } - -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Exon_Suf.class.inc b/web_service/class/majic_lib/Mj_Exon_Suf.class.inc deleted file mode 100755 index 0d7f97aa..00000000 --- a/web_service/class/majic_lib/Mj_Exon_Suf.class.inc +++ /dev/null @@ -1,63 +0,0 @@ -<?php - -/** -* \file Mj_Exon_Suf.class.inc -* \brief Mj_Exon_Suf.class.inc \n \n Ce fichier contient la classe php Mj_Exon_Suf -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Exon-Suf. -* -* \author Damien Bedel <damien.bedel@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Exon_Suf -* \brief Mj_Exon_Suf Class \n \n Mj_Exon_Suf est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Exon-Suf. -* -* \author Damien Bedel <damien.bedel@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); - -class Mj_Exon_Suf extends Mj { - /** - * \param $sIdSuf Identifiant de l'exon�ration de la partie d'�valuation - * \param $sRnuexn Num�ro d'ordre d'exoneration temporaire - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdSuf,$sRnuexn,$oBD){ - include $this->sRessourcesFile; - $this->sSql = $aSql[$oBD->sgbd]['exon_suf']; - $this->sSql = str_replace('$sIdSuf', $sIdSuf, $this->sSql); - $this->sSql = str_replace('$sRnuexn', $sRnuexn, $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage = $oBD->getBDMessage(); - }else{ - $this->aFields = $oBD->ligneSuivante ($oPDOresult); - $this->sStatus=0; - } - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['rnuexn']=$this->aFields['rnuexn']; - $aExportFields['ccolloc']=$this->aFields['ccolloc']; - $aExportFields['nat_exo']=$this->aFields['gnexts']; - $aExportFields['jfinex']=$this->aFields['jfinex']; - $aExportFields['pexn']=$this->aFields['pexn']; - $aExportFields['rcexnba']=$this->aFields['rcexnba']; - } - return $aExportFields; - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Exone_Pev.class.inc b/web_service/class/majic_lib/Mj_Exone_Pev.class.inc deleted file mode 100755 index 9d2b1a68..00000000 --- a/web_service/class/majic_lib/Mj_Exone_Pev.class.inc +++ /dev/null @@ -1,90 +0,0 @@ -<?php -/** -* \file Mj_Exone_Pev.class.inc -* \brief Mj_Exone_Pev.class.inc \n \n Ce fichier contient la classe php Mj_Exone_Pev -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Exone-Pev. -* -* \author Damien Bedel <damien.bedel@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Exone_Pev -* \brief Mj_Exone_Pev Class \n \n Mj_Exone_Pev est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Exone-Pev. -* -* \author Damien Bedel <damien.bedel@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); - -class Mj_Exone_Pev extends Mj { - /** - * \param $sIdEx Identifiant de l'exon�ration de la partie d'�valuation - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdEx,$oBD){ - include $this->sRessourcesFile; - $this->sSql = $aSql[$oBD->sgbd]['exone_pev']; - $this->sSql = str_replace('$sIdEx', $sIdEx, $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if ($oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage = $oBD->getBDMessage(); - }else{ - $this->aFields = $oBD->ligneSuivante ($oPDOresult); - $this->sStatus=0; - } - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - } - else{ - $aExportFields['coll']=$this->aFields['ccolloc']; - $aExportFields['nat_exo']=$this->aFields['gnextl']; - $aExportFields['an_ret']=$this->getAnret(); - $aExportFields['an_deb']=$this->getAndeb(); - $aExportFields['fraction_rc_exo']=$this->aFields['rcexba2']; - $aExportFields['pourc_exo']=$this->getPourcExo(); - $aExportFields['tx_om']="<font color=red><b>Info Manquante</b></font>"; - $aExportFields['coef']="<font color=red><b>Info Manquante</b></font>"; - } - return $aExportFields; - } - - /** - * Cette m�thode permet de r�cup�rer les deux derniers caract�res de l'attribut janimp. - * /return Retourne une cha�ne de caract�res. - */ - function getAnret(){ - $sAnret=$this->aFields['janimp']; - $sAnret= substr("$sAnret", 2, 2); - return $sAnret; - } - /** - * Cette m�thode permet de r�cup�rer les deux derniers caract�res de l'attribut jandeb. - * /return Retourne une cha�ne de caract�res. - */ - function getAndeb(){ - $sAndeb=$this->aFields['jandeb']; - $sAndeb= substr("$sAndeb", 2, 2); - return $sAndeb; - } - /** - * Cette m�thode permet de r�cup�rer le pourcentage d'�xon�ration � partir du champ 'pexb'. - * /return Retourne un entier - */ - function getPourcExo(){ - $iPourcExo=(int)($this->aFields['pexb'])/100; - return $iPourcExo; - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Habit_Descr.class.inc b/web_service/class/majic_lib/Mj_Habit_Descr.class.inc deleted file mode 100755 index e22b0fcb..00000000 --- a/web_service/class/majic_lib/Mj_Habit_Descr.class.inc +++ /dev/null @@ -1,159 +0,0 @@ -<?php -/** -* \file Mj_Habit_Descr.class.inc -* \brief Mj_Habit_Descr.class.inc \n \n Ce fichier contient la classe php Mj_Habit_Descr -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Description Habitation. -* -* \author John Bosch -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -require_once ("Mj.class.inc"); - -class Mj_Habit_Descr extends Mj { - /** - * \param $aIdDescrHab Identifiants de la partie Description Habitation (id_pev et dnudes) - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($aIdDescrHab,$oBD){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['habit_descr']; - $this->sSql=str_replace('$sIdPev',$aIdDescrHab['id_pev'],$this->sSql); - $this->sSql=str_replace('$sDnudes',$aIdDescrHab['dnudes'],$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante($oPDOresult); - $this->sStatus=0; - } - } - - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�/Fiche Parcelle. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�/Fiche Parcelle. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['num_invar']=$this->aFields['invar']; - $aExportFields['num_pev']=$this->aFields['dnupev']; - $aExportFields['garage']=$this->getGarage(); - $aExportFields['suf_garage']=$this->aFields['dsueic1']; - $aExportFields['cave']=$this->getCave(); - $aExportFields['suf_cave']=$this->aFields['dsueic2']; - $aExportFields['grenier']=$this->getGrenier(); - $aExportFields['suf_grenier']=$this->aFields['dsueic3']; - $aExportFields['terrasse']=$this->getTerrasse(); - $aExportFields['suf_terrasse']=$this->aFields['dsueic4']; - $aExportFields['nb_baignoires']=$this->aFields['dnbbai']; - $aExportFields['nb_douches']=$this->aFields['dnbdou']; - $aExportFields['nb_lavabos']=$this->aFields['dnblav']; - $aExportFields['nb_wc']=$this->aFields['dnbwc']; - $aExportFields['nb_piece_principal']=$this->aFields['dnbppr']; - $aExportFields['nb_sam']=$this->aFields['dnbsam']; - $aExportFields['nb_chambre']=$this->aFields['dnbcha']; - $aExportFields['nb_cuisine_m9']=$this->aFields['dnbcu8']; - $aExportFields['nb_cuisine_p9']=$this->aFields['dnbcu9']; - $aExportFields['nb_salle_eau']=$this->aFields['dnbsea']; - $aExportFields['nb_annexe']=$this->aFields['dnbann']; - $aExportFields['nb_piece_total']=$this->aFields['dnbpdc']; - $aExportFields['suf_piece_total']=$this->aFields['dsupdc']; - $aExportFields['mat_gros_mur']=$this->aFields['dmatgm']; - $aExportFields['lib_mat_gros_mur']=$this->aFields['lib_dmatgm']; - $aExportFields['mat_toiture']=$this->aFields['dmatto']; - $aExportFields['lib_mat_toiture']=$this->aFields['lib_dmatto']; - $aExportFields['annee_constr']=$this->aFields['jannat']; - $aExportFields['Etat']=$this->aFields['detent']; - $aExportFields['l_Etat']=$this->aFields['l_detent']; - $aExportFields['nb_niveaux']=$this->aFields['dnbniv']; - $aExportFields['eau']=$this->getEau(); - $aExportFields['elect']=$this->getElect(); - $aExportFields['esc_serv']=$this->getEsc(); - $aExportFields['gaz']=$this->getGaz(); - $aExportFields['asc']=$this->getAsc(); - $aExportFields['chauf']=$this->getChauf(); - $aExportFields['vide_ord']=$this->getVide(); - $aExportFields['egout']=$this->getEgout(); - } - return $aExportFields; - } - - function getGarage(){ - if ($this->aFields['cconad1'] == "GA"){ - return "Garage(s)"; - } - } - - function getCave(){ - if ($this->aFields['cconad2'] == "CV"){ - return "Cave(s)"; - } - } - - function getGrenier(){ - if ($this->aFields['cconad3'] == "GR"){ - return "Greniers(s)"; - } - } - - function getTerrasse(){ - if ($this->aFields['cconad4'] == "TR"){ - return "Terrasse(s)"; - } - } - - function getEau(){ - if ($this->aFields["geaulc"] == "O"){ - return "EAU"; - } - } - - function getElect(){ - if ($this->aFields["gelelc"] == "O"){ - return "ELECT"; - } - } - - function getEsc(){ - if ($this->aFields["gesclc"] == "O"){ - return "ESC_SERV"; - } - } - - function getGaz(){ - if ($this->aFields["ggazlc"] == "O"){ - return "GAZ"; - } - } - - function getAsc(){ - if ($this->aFields["gasclc"] == "O"){ - return "ASC"; - } - } - - function getChauf(){ - if ($this->aFields["gchclc"] == "O"){ - return "CHAUF"; - } - } - - function getVide(){ - if ($this->aFields["gvorlc"] == "O"){ - return "VIDE_ORD"; - } - } - - function getEgout(){ - if ($this->aFields["gteglc"] == "O"){ - return "EGOUT"; - } - } - -} -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Lot_Local.class.inc b/web_service/class/majic_lib/Mj_Lot_Local.class.inc deleted file mode 100755 index fdbb87b1..00000000 --- a/web_service/class/majic_lib/Mj_Lot_Local.class.inc +++ /dev/null @@ -1,66 +0,0 @@ -<?php -/** -* \file Mj_Lot_Local.class.inc -* \brief Mj_Lot_Local.class.inc \n \n Ce fichier contient la classe php Mj_Lot_Local -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie lot-local. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Lot_Local -* \brief Mj_Lot_Local Class \n \n Mj_Lot_Local est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie lot-local. -* -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); - -class Mj_Lot_Local extends Mj { - /** - * \param $sIdBat Identifiant de b�ti - * \param $sKlot Identifiant d'un lot - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdBat,$sKlot,$oBD){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['lot_local']; - $this->sSql=str_replace('$sIdBat', $sIdBat, $this->sSql); - $this->sSql=str_replace('$sKlot', $sKlot, $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - $this->sStatus=0; - } - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['lot']=$this->getLot(); - } - return $aExportFields; - } - /** - * Cette m�thode permet de concat�ner les diff�rents attributs d'un lot-local afin d'obtenir une seul chaine de caract�res. - * \return Retourne une chaine de caract�res. - */ - function getLot(){ - $NumLot = (string) ((int) $this->aFields['dnulot']); - $sLot = $this->aFields['dnupdl']." LOT ".$NumLot." ".$this->aFields['dnumql']." /".$this->aFields['ddenql']; - return $sLot; - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Parcelle.class.inc b/web_service/class/majic_lib/Mj_Parcelle.class.inc deleted file mode 100755 index eec06004..00000000 --- a/web_service/class/majic_lib/Mj_Parcelle.class.inc +++ /dev/null @@ -1,567 +0,0 @@ -<?php -/** -* \file Mj_Parcelle.class.inc -* \brief Mj_Parcelle.class.inc \n \n Ce fichier contient la classe php Mj_Parcelle -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie parcelle. -* -* \author Fabien Marty <fabien.marty@veremes.com> -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Parcelle -* \brief Mj_Parcelle Class \n \n Mj_Parcelle est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie parcelle. -* -* \author Fabien Marty <fabien.marty@veremes.com> -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Suf.class.inc"); -require_once ("Mj_Emprises.class.inc"); -require_once ("Mj_PosPlu.class.inc"); - -class Mj_Parcelle extends Mj { - /** - * Tableau associatif comportant la liste des objets Suf d'une parcelle - */ - var $aSuf=array(); - /** - * Tableau associatif comportant la liste des objets Emprises d'une parcelle - */ - var $aIntersect=array(); - /** - * Tableau associatif comportant la liste des objets PosPlu d'une parcelle - */ - var $aPosPlu=array(); - - /** - * Constructeur - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \param $sIdDnupro Identifiant du propri�taire - */ - function __construct($oBD,$sIdPar,$sIdDnupro,$sEncryptedKey='', $bAllSuf=false){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['parcelle']; - $this->sSql=str_replace('$sIdPar', $sIdPar, $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - if (!$this->aFields=$oBD->ligneSuivante ($oPDOresult)){ - $this->sMessage='La parcelle "'.$sIdPar.'" n\'existe pas dans les donn�es Majic.'; - $this->sStatus=1; - }else{ - $this->sStatus=0; - } - } - $aSuf=$this->get_aSuf($oBD,$sIdPar,$sIdDnupro, $sEncryptedKey, $bAllSuf); - - //$this->get_aPosPlu($oBD,$sIdPar); - if ($this->aPosPlu==""){ - $this->aObjects=$this->aSuf; - }else{ - $this->aObjects=array_merge ($this->aSuf, $this->aPosPlu); - } - } - - /** - * Cette m�thode permet de r�cup�rer la liste des objets PosPlu d'une parcelle - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \return Retourne un tableau d'objets PosPlu - */ - function get_aPosPlu($oBD,$sIdPar){ - $aPosPlu=array(); - if($this->isEmpty()){ - $this->aPosPlu=""; - }else{ - $sIdParpos = substr($sIdPar,3); - $sCodCom=$this->get_sCodCom($oBD,$sIdPar); - $aIdPosPlu=$this->get_aId_PosPlu($oBD,$sIdParpos,$sCodCom); - foreach($aIdPosPlu as $sIdPosPlu){ - array_push($this->aPosPlu, new Mj_PosPlu($oBD,$sIdPosPlu, $sIdParpos,$sCodCom)); - } - } - return $aPosPlu; - } - - function get_aId_PosPlu($oBD,$sIdPar,$sCodCom){ - include $this->sRessourcesFile; - $aIdPosPlu=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_pos_plu']; - $this->sSql=str_replace('$sIdPar',$sIdPar,$this->sSql); - $this->sSql=str_replace('$sCodCom',$sCodCom,$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - - array_push($aIdPosPlu,$aResultFetch[0]); - $this->sStatus=0; - } - } - return $aIdPosPlu; - } - /** - * Cette m�thode permet de r�cup�rer le CodCom en fonction d'un Id_Par donn� - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \return Retourne une cha�ne de caract�res - */ - function get_sCodCom($oBD,$sIdPar){ - include $this->sRessourcesFile; - $aCodCom=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_codcom']; - $this->sSql=str_replace('$sIdPar',$sIdPar,$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aCodCom,$aResultFetch[0]); - $this->sStatus=0; - } - } - $sCodCom=$aCodCom[0]; - return $sCodCom; - } - - /** - * Cette m�thode permet de r�cup�rer la liste des objets Suf d'une parcelle - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \param $sIdDnupro Identifiant du propri�taire - * \return Retourne un tableau d'objets Suf - */ - function get_aSuf($oBD,$sIdPar,$sIdDnupro,$sEncryptedKey='',$bAllSuf){ - if($this->isEmpty()){ - $this->aSuf=""; - }else{ - $aIdSuf=$this->get_aId_Suf($oBD,$sIdPar,$sIdDnupro); - foreach($aIdSuf as $sIdSuf){ - array_push($this->aSuf,new Mj_Suf($oBD,$sIdSuf,$sIdDnupro,$sEncryptedKey,$bAllSuf)); - } - } - return $aSuf; - } - /** - * Cette m�thode permet de r�cup�rer les Id_Suf en fonction d'un Id_Par donn� - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \param $sIdDnupro Identifiant du propri�taire - * \return Retourne un tableau de cha�nes de caract�res - */ - function get_aId_Suf($oBD,$sIdPar,$sIdDnupro){ - include $this->sRessourcesFile; - $aIdSuf=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_suf']; - $this->sSql=str_replace('sIdPar',$sIdPar,$this->sSql); - $this->sSql=str_replace('sIdDnupro',$sIdDnupro,$this->sSql); - $this->sSql=str_replace('sDnupro',substr($sIdDnupro,6),$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdSuf,$aResultFetch[0]); - $this->sStatus=0; - } - } - return $aIdSuf; - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['dateheure']=date("d/m/Y")." a ".date("H:m"); - $aExportFields['idpar']=$this->aFields['id_par']; - $aExportFields['date']=$this->getJdatat(); - $aExportFields['section']=$this->aFields['ccosec']; - $aExportFields['num_plan']=$this->aFields['dnupla']; - $aExportFields['num_parc']=$this->getNumeroParcelle(); - $aExportFields['num_voirie']=$this->getNumeroVoirie(); - $aExportFields['adresse']=$this->getAdresseParcelle(); - $aExportFields['code_rivoli']=$this->aFields['ccoriv']; - $aExportFields['num_parc_prim']=$this->aFields['dparpi']; - $aExportFields['fp_dp']=$this->aFields['gparnf']; - - if($this->aFields['gurbpa'] == "U" ) { - $aExportFields['gurbpa'] = "Oui"; - }else{ - $aExportFields['gurbpa'] = "Non"; - } - - if($this->aFields['gparbat'] == "" || $this->aFields['gparbat'] == "0") { - $aExportFields['gparbat'] = "Non"; - }else{ - $aExportFields['gparbat'] = "Oui"; - } - $aExportFields['typevoie']=$this->aFields['typevoie']; - if ($this->aFields['typevoie'] == "3" ) { - $aExportFields['lieudit']=$this->getAdresseParcelle(); - }else{ - $aExportFields['lieudit']=""; - } - - $aExportFields['surface']=$this->aFields['dcntpa']; - $aExportFields['dnupro']=$this->aFields['dnupro']; - $aExportFields['s_tar']=$this->getSTar(); - $aExportFields['suf']=$this->getSuf(); - $aExportFields['grss_gr']=$this->getGrssGr(); - $aExportFields['clas']=$this->getClas(); - $aExportFields['nat_cult']=$this->getNatCult(); - $iContenance = $this->getContenance (); - $aExportFields['ha']=intval($iContenance/10000); - if ($aExportFields['ha'] == 0) { - $aExportFields['ha']= ' '; - } - $aExportFields['a']=intval(($iContenance%10000)/100); - $sContenanceA=$aExportFields['a']; - $sContenanceA=strval($sContenanceA); - $sTlenA=strlen($sContenanceA); - if ($aExportFields['ha'] == ' ' and $aExportFields['a'] == 0){ - $aExportFields['a']= ' '; - }else{ - if ($aExportFields['ha'] == ' ' and $sTlenA == 2 and (substr($aExportFields['a'],0,1)== 0)) { - $sDeuxiemeValeur= substr($aExportFields['a'],1,1); - $aExportFields['a']= ' '.$sDeuxiemeValeur; - } else { - if ($aExportFields['ha'] != ' ' and $sTlenA == 1) { - $aExportFields['a']= '0'.$aExportFields['a']; - } - } - } - $aExportFields['ca']=$iContenance%100; - $sContenanceCa=$aExportFields['ca']; - $sContenanceCa= strval($sContenanceCa); - $sTlen=strlen($sContenanceCa); - if ($aExportFields['a'] != 0) - if ($sTlen == 1) { - $aExportFields['ca']= '0'.$aExportFields['ca']; - } - $aExportFields['revenu_cadastral_avec_exo']=$this->getRevenuCadastralAvecExo(); - $aExportFields['revenu_cadastral_com_avec_exo']=$this->getRevenuCadastralComAvecExo(); - $aExportFields['revenu_cadastral_dep_avec_exo']=$this->getRevenuCadastralDepAvecExo(); - $aExportFields['revenu_cadastral_reg_avec_exo']=$this->getRevenuCadastralRegAvecExo(); - $aExportFields['revenu_cadastral']=$this->getRevenuCadastral(); - $aExportFields['revenu_cadastral_txt']=$this->setFloatToText($this->getRevenuCadastral()); - $aExportFields['revenu_reference']=$this->getRevenuReference(); - $aExportFields['revenu_reference_txt']=$this->setFloatToText($this->getRevenuReference()); - //$aExportFields['nat_exo']=$this->getNatExo(); - $aExportFields['contenance']=$iContenance; - } - return $aExportFields; - } - /** - * Cette m�thode permet d'avoir l'attribut dnupla sur 4 caract�res. - * \return Retourne une cha�ne de caract�res. - */ - function getNumeroParcelle(){ - if(strlen($this->aFields['dnupla']) == 1){ - return "000".$this->aFields['dnupla']; - } - if(strlen($this->aFields['dnupla']) == 2){ - return "00".$this->aFields['dnupla']; - } - if(strlen($this->aFields['dnupla']) == 3){ - return "0".$this->aFields['dnupla']; - } - if(strlen($this->aFields['dnupla']) == 4){ - return $this->aFields['dnupla']; - } - - } - /** - * Cette m�thode permet de r�cup�rer les deux derniers caract�res de l'attribut Jdatat et d'y ajouter 1. - * \return Retourne une cha�ne de caract�res. - */ - function getJdatat(){ - $sNewJdatat=$this->aFields['jdatat']; - if (preg_match( '`^\d{1,2}/\d{1,2}/\d{4}$`' , $sNewJdatat ) ){ - $sNewJdatat=substr("$sNewJdatat", 6, 4)+1; - $sNewJdatat=(string)(substr("$sNewJdatat", 2, 2)); - }else if (preg_match( '`^\d{1,2}/\d{1,2}/\d{2}$`' , $sNewJdatat ) ){ - $sNewJdatat=(string) (substr("$sNewJdatat", 6, 2)+1); - if(strlen($sNewJdatat) == 1){ - $sNewJdatat='0'.$sNewJdatat; - } - $sNewJdatat=(string) (substr("$sNewJdatat", -2, 2)); - }else{ - $sNewJdatat=substr("$sNewJdatat", 4, 4)+1; - $sNewJdatat=(string)(substr("$sNewJdatat", 2, 2)); - } - return $sNewJdatat; - } - /** - * Cette m�thode permet de concat�ner les attributs dnvoiri et indic. - * \return Retourne une cha�ne de caract�res. - */ - function getNumeroVoirie(){ - $sNumeroVoirie = ltrim($this->aFields['dnvoiri'],'0').$this->aFields['dindic']; - return $sNumeroVoirie; - } - /** - * Cette m�thode permet de concat�ner les attributs cconvo et dvoilib. - * \return Retourne une cha�ne de caract�res. - */ - function getAdresseParcelle(){ - $sAdresseParcelle = rtrim($this->aFields['cconvo'])." ".rtrim($this->aFields['dvoilib']); - return $sAdresseParcelle; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 's_tar' dans le tableau aSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getSTar(){ - if(count($this->aSuf)==1) { - return $this->aSuf[0]->aFields['ccostn']; - } else { - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'suf' dans le tableau aSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getSuf(){ - if(count($this->aSuf)==1) { - return $this->aSuf[0]->aFields['ccosub']; - }else { - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'grss_gr' dans le tableau aSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getGrssGr(){ - if(count($this->aSuf)==1) { - return $this->aSuf[0]->aFields['dsgrpf']; - }else { - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'clas' dans le tableau aSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getClas(){ - if(count($this->aSuf)==1) { - return $this->aSuf[0]->aFields['dclssf']; - }else { - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'nat_cult' dans le tableau aSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getNatCult(){ - if(count($this->aSuf)==1) { - return $this->aSuf[0]->aFields['cnatsp']; - }else { - return ''; - } - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'revenu cadastral' dans le tableau aSuf. - * \return Retourne un nombre r�el (float). - */ - function getRevenuCadastral(){ - $fRevenuCadastral = 0; - foreach ($this->aSuf as $oSuf) { - $fRevenuCadastral = $fRevenuCadastral + (float) $oSuf->getRevenuCadastral(); - } - return $fRevenuCadastral; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'revenu reference' dans le tableau aSuf. - * \return Retourne un nombre r�el (float). - */ - function getRevenuReference(){ - $fRevenuReference = 0; - foreach ($this->aSuf as $oSuf) { - $fRevenuReference = $fRevenuReference + (float) $oSuf->getRevenuReference(); - } - return $fRevenuReference; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'revenu cadastral' pour des parcelles avec exon�ration dans le tableau aSuf. - * \return Retourne un nombre r�el (float). - */ - function getRevenuCadastralAvecExo(){ - $fRevenuCadastralAvecExo = 0; - foreach ($this->aSuf as $oSuf) { - if(ereg ("TA", $oSuf->getNatExo())){ - $fRevenuCadastralAvecExo = $fRevenuCadastralAvecExo + (float) $oSuf->getRevenuCadastral(); - } - } - return $fRevenuCadastralAvecExo; - } - - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'revenu cadastral' pour des parcelles avec exon�ration dans le tableau aSuf. - * lorsque l'exoneration est procur� par une commune, un groupement de commune ou toutes collectivit� - * \return Retourne un nombre r�el (float). - */ - function getRevenuCadastralComAvecExo(){ - $fRevenuCadastralComAvecExo = 0; - foreach ($this->aSuf as $oSuf) { - if(ereg ("EP", $oSuf->aFields['gnexps']) or ereg("CD", $oSuf->aFields['gnexps']) or ereg("CR", $oSuf->aFields['gnexps']) or ereg("NI", $oSuf->aFields['gnexps']) or ereg("RT", $oSuf->aFields['gnexps'])){ - $fRevenuCadastralComAvecExo = $fRevenuCadastralComAvecExo + (float) $oSuf->getRevenuCadastral(); - } else { - if($oSuf->getCcolloc("C") == true) { - $fRevenuCadastralComExo = $oSuf->getRevenuCadastralExo("C"); - $fRevenuCadastralComAvecExo = $fRevenuCadastralComAvecExo + (float) $fRevenuCadastralComExo; - } else { - if($oSuf->getCcolloc("TC") == true) { - $fRevenuCadastralComExo = $oSuf->getRevenuCadastralExo("TC"); - $fRevenuCadastralComAvecExo = $fRevenuCadastralComAvecExo + (float) $fRevenuCadastralComExo; - } else { - if($oSuf->getCcolloc("GC") == true) { - $fRevenuCadastralComExo = $oSuf->getRevenuCadastralExo("GC"); - $fRevenuCadastralComAvecExo = $fRevenuCadastralComAvecExo + (float) $fRevenuCadastralComExo; - } - } - } - } - } - return $fRevenuCadastralComAvecExo; - } - - function getRevenuCadastralTaxeADAvecExo(){ - $fRevenuCadastralTaxeADAvecExo = 0; - foreach ($this->aSuf as $oSuf) { - if(ereg ("EP", $oSuf->aFields['gnexps']) or ereg("CD", $oSuf->aFields['gnexps']) or ereg("CR", $oSuf->aFields['gnexps']) or ereg("NI", $oSuf->aFields['gnexps']) or ereg("RT", $oSuf->aFields['gnexps'])){ - $fRevenuCadastralTaxeADAvecExo = $fRevenuCadastralTaxeADAvecExo + (float) $oSuf->getRevenuCadastral(); - } else { - if($oSuf->getCcolloc("A") == true) { - - $fRevenuCadastralTaxeADExo = $oSuf->getRevenuCadastralExo("A"); - - $fRevenuCadastralTaxeADAvecExo = $fRevenuCadastralTaxeADAvecExo + (float) $fRevenuCadastralTaxeADExo; - } - } - } - return $fRevenuCadastralTaxeADAvecExo; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'revenu cadastral' pour des parcelles avec exon�ration dans le tableau aSuf. - * lorsque l'exoneration est procur� par le d�partement ou toutes collectivit� - * \return Retourne un nombre r�el (float). - */ - function getRevenuCadastralDepAvecExo(){ - $fRevenuCadastralDepAvecExo = 0; - foreach ($this->aSuf as $oSuf) { - if(ereg ("EP", $oSuf->aFields['gnexps']) or ereg("CD", $oSuf->aFields['gnexps']) or ereg("DR", $oSuf->aFields['gnexps']) or ereg("NI", $oSuf->aFields['gnexps']) or ereg("RT", $oSuf->aFields['gnexps'])){ - $fRevenuCadastralDepAvecExo = $fRevenuCadastralDepAvecExo + (float) $oSuf->getRevenuCadastral(); - } else { - if($oSuf->getCcolloc("D") == true) { - $fRevenuCadastralDepExo = $oSuf->getRevenuCadastralExo("D"); - $fRevenuCadastralDepAvecExo = $fRevenuCadastralDepAvecExo + (float) $fRevenuCadastralDepExo; - } else { - if($oSuf->getCcolloc("TC") == true) { - $fRevenuCadastralDepExo = $oSuf->getRevenuCadastralExo("TC"); - $fRevenuCadastralDepAvecExo = $fRevenuCadastralDepAvecExo + (float) $fRevenuCadastralDepExo; - } - } - } - } - return $fRevenuCadastralDepAvecExo; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'revenu cadastral' pour des parcelles avec exon�ration dans le tableau aSuf. - * lorsque l'exoneration est procur� par la r�gion ou toutes collectivit� - * \return Retourne un nombre r�el (float). - */ - function getRevenuCadastralRegAvecExo(){ - $fRevenuCadastralRegAvecExo = 0; - foreach ($this->aSuf as $oSuf) { - if(ereg ("EP", $oSuf->aFields['gnexps']) or ereg("DR", $oSuf->aFields['gnexps']) or ereg("CR", $oSuf->aFields['gnexps']) or ereg("NI", $oSuf->aFields['gnexps']) or ereg("RT", $oSuf->aFields['gnexps'])){ - $fRevenuCadastralRegAvecExo = $fRevenuCadastralRegAvecExo + (float) $oSuf->getRevenuCadastral(); - } else { - if($oSuf->getCcolloc("R") == true) { - $fRevenuCadastralRegExo = $oSuf->getRevenuCadastralExo("R"); - $fRevenuCadastralRegAvecExo = $fRevenuCadastralRegAvecExo + (float) $fRevenuCadastralRegExo; - } else { - if($oSuf->getCcolloc("TC") == true) { - $fRevenuCadastralRegExo = $oSuf->getRevenuCadastralExo("TC"); - $fRevenuCadastralRegAvecExo = $fRevenuCadastralRegAvecExo + (float) $fRevenuCadastralRegExo; - } - } - } - } - return $fRevenuCadastralRegAvecExo; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'contenance' pour des parcelles avec exon�ration dans le tableau aSuf. - * \return Retourne un entier. - */ - function getContenance (){ - $iContenance=0; - foreach($this->aSuf as $oSuf){ - $iContenance=$iContenance+$oSuf->getContenance(); - } - return $iContenance; - } - - /** - * Cette m�thode permet de r�up�rer l'ensemble des emprises de la parcelles � partir des properties de la fiche d'urbanisme - * \return - */ - function getEmprises($aProperties,$oBD,$sLayerTypeParcelle) { - // boucler sur toutes les couches � intersecter - if(isset($aProperties["cadastre"]["fiche_urb"]["intersect"]["views"])) { - foreach($aProperties["cadastre"]["fiche_urb"]["intersect"]["views"] as $sView => $aViewValue) { - $oEmprises = new Mj_Emprises($oBD,$this->aFields['id_par'],$sView, $aProperties["cadastre"]["fiche_urb"]["intersect"]["tolerance"], $aViewValue, $sLayerTypeParcelle); - array_push($this->aIntersect,$oEmprises); - } - } - // calcule de l'emprise du bati - $sViewBati=$aProperties["cadastre"]["view"]["bati"]; - if(isset($aProperties["cadastre"]["view"]["bati"])){ - $aField["type"]="POLYGON"; - $aField["title"]="Emprise Bati"; - $oEmprises = new Mj_Emprises($oBD,$this->aFields['id_par'],$sViewBati,$aProperties["cadastre"]["fiche_urb"]["intersect"]["tolerance"], $aField, $sLayerTypeParcelle); - array_push($this->aIntersect,$oEmprises); - } - $this->aObjects=array_merge($this->aObjects,$this->aIntersect); - } - - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'nat_exo' dans le tableau aSuf. - * \return Retourne une cha�ne de caract�res. - * - */ - /*function getNatExo(){ - if(count($this->aSuf)==1) { - return $this->aSuf[0]->getNatExo(); - } else{ - return ''; - } - }*/ - /** - * Cette m�thode permet de formater un d�cimal pour l'affichage. - * \return Retourne une chaine - */ - function setFloatToText($fFloat){ - return number_format($fFloat,2,'.',''); - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Pev.class.inc b/web_service/class/majic_lib/Mj_Pev.class.inc deleted file mode 100755 index d33ebb88..00000000 --- a/web_service/class/majic_lib/Mj_Pev.class.inc +++ /dev/null @@ -1,270 +0,0 @@ -<?php -/** -* \file Mj_Pev.class.inc -* \brief Mj_Pev.class.inc \n \n Ce fichier contient la classe php Mj_Pev -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie pev. -* -* \author Damien Bedel -* \author Fabien Marty <fabien.marty@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Pev -* \brief Mj_Pev Class \n \n Mj_Pev est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie pev. -* -* \author Damien Bedel -* \author Fabien Marty <fabien.marty@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Exone_Pev.class.inc"); -require_once ("Mj_Habit_Descr.class.inc"); -require_once ("Mj_Depend_Descr.class.inc"); -require_once ("Mj_Prof_Descr.class.inc"); - -class Mj_Pev extends Mj { - /** - * Tableau associatif comportant la liste des objets Exone_Pev du b�ti. - */ - var $aExPev=array(); - /** - * Tableau associatif comportant la liste des objets Descr de(s) habitation(s) - */ - var $aDescr_Hab=array(); - /** - * Tableau associatif comportant la liste des objets Descr de(s) d�pendance(s) - */ - var $aDescr_Depend=array(); - /** - * Tableau associatif comportant la liste des objets Descr professionel - */ - var $aDescr_Prof=array(); - /** - * \param $sIdPev Identifiant de la partie d'Evaluation - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdPev,$oBD){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['pev']; - $this->sSql=str_replace('$sIdPev', $sIdPev, $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - $this->sStatus=0; - } - $this->aExPev=$this->get_aEx_Pev($oBD); - $this->aDescr_Hab=$this->get_aDescr_Hab($sIdPev,$oBD); - $this->aDescr_Depend=$this->get_aDescr_Depend($sIdPev,$oBD); - $this->aDescr_Prof=$this->get_aDescr_Prof($sIdPev,$oBD); - $this->aObjects=array_merge($this->aExPev,$this->aDescr_Hab,$this->aDescr_Depend,$this->aDescr_Prof); - } - /** - * Cette m�thode permet de r�cup�rer les Id_Ex en fonction d'un Id_Pev donn� - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau de cha�nes de caract�res. - */ - function get_aId_Ex_Pev($oBD){ - if($this->isEmpty()){ - $aIdExPev=""; - }else{ - include $this->sRessourcesFile; - $aIdExPev=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_ex_pev']; - $this->sSql=str_replace('$sIdPev', $this->aFields['id_pev'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdExPev,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdExPev; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Exone_Pev du b�ti - * \return Retourne un tableau d'objets Exone_Pev - */ - function get_aEx_Pev($oBD){ - $aExPev=array(); - if($this->isEmpty()){ - $aExPev=""; - }else{ - $aIdExPev=$this->get_aId_Ex_Pev($oBD); - foreach($aIdExPev as $sValue){ - array_push($aExPev,new Mj_Exone_Pev($sValue,$oBD)); - } - } - return $aExPev; - } - /** - * Cette m�thode permet de r�cup�rer les Id_Descr_Hab en fonction d'un Id_Pev donn� - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau de cha�nes de caract�res. - */ - function get_aId_Descr_Hab($oBD){ - if($this->isEmpty()){ - $aIdDescrHab=""; - }else{ - include $this->sRessourcesFile; - $aIdDescrHab=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_descr_hab']; - $this->sSql=str_replace('$sIdPev',$this->aFields['id_pev'],$this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->ligneSuivante($oPDOresult)){ - array_push($aIdDescrHab,$aResultFetch); - $this->sStatus=0; - } - } - } - return $aIdDescrHab; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Descr du b�ti - * \return Retourne un tableau d'objets Descr_Hab - */ - function get_aDescr_Hab($sIdPev,$oBD){ - $aDescrHab=array(); - if($this->isEmpty()){ - $aDescrHab=""; - }else{ - $aIdDescrHab=$this->get_aId_Descr_Hab($oBD); - foreach($aIdDescrHab as $aValue){ - array_push($aDescrHab,new Mj_Habit_Descr($aValue,$oBD)); - } - //array_push($aDescrHab,new Mj_Habit_Descr($sIdPev,$oBD)); - } - return $aDescrHab; - } - /** - * Cette m�thode permet de r�cup�rer les Id_Descr_Depend en fonction d'un Id_Pev donn� - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau de cha�nes de caract�res. - */ - function get_aId_Descr_Depend($oBD){ - if($this->isEmpty()){ - $aIdDescrDepend=""; - }else{ - include $this->sRessourcesFile; - $aIdDescrDepend=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_id_descr_depend']; - $this->sSql=str_replace('$sIdPev', $this->aFields['id_pev'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch=$oBD->tableauSuivant($oPDOresult)){ - array_push($aIdDescrDepend,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdDescrDepend; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Descr_Depend du b�ti - * \return Retourne un tableau d'objets Descr_Depend - */ - function get_aDescr_Depend($sIdPev,$oBD){ - $aDescrDepend=array(); - if($this->isEmpty()){ - $aDescrDepend=""; - }else{ - $aIdDescrDepend=$this->get_aId_Descr_Depend($oBD); - foreach($aIdDescrDepend as $sValue){ - array_push($aDescrDepend,new Mj_Depend_Descr($sValue,$oBD)); - } - } - return $aDescrDepend; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Descr_Prof du b�ti - * \return Retourne un tableau d'objets Descr_Prof - */ - function get_aDescr_Prof($sIdPev,$oBD){ - $aDescr_Prof=array(); - if($this->isEmpty()){ - $aDescr_Prof=""; - }else{ - array_push($aDescr_Prof,new Mj_Prof_Descr($sIdPev,$oBD)); - } - return $aDescr_Prof; - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['s_tar']=$this->aFields['ccostb']; - $aExportFields['af']=$this->aFields['ccoaff']; - $aExportFields['l_nature']=$this->aFields['l_ccoaff']; - $aExportFields['cat']=$this->aFields['dcapec']; - $aExportFields['nat_exo']=$this->getNatExo(); - $aExportFields['revenu_cadastral']=$this->getRevenuCadastral(); - $aExportFields['num_pev']=$this->aFields['dnupev']; - $aExportFields['val_loc_ref']=$this->aFields['dvlper']; - $aExportFields['val_loc_ann']=$this->aFields['dvlpera']; - $aExportFields['nature']=$this->aFields['gnexpl']; - $aExportFields['l_nat_exon']=$this->aFields['l_gnexpl']; - $aExportFields['local_type']=$this->aFields['dnuref']; - } - return $aExportFields; - } - /** - * Cette m�thode permet de r�cup�rer le revenu cadastral d'une Pev. - * \return Retourne un entier. - */ - function getRevenuCadastral(){ - if ($this->getNatExo()==''){ - $iRevenuCadastral=(int)$this->aFields['bipevla1']; - }else{ - $fRevenuCadastral=(float)($this->aFields['dvlpera'])/2; - $iRevenuCadastral=round($fRevenuCadastral); - } - return $iRevenuCadastral; - } - /** - * Cette m�thode permet de r�cup�rer le revenu cadastral d'une Pev. - * \return Retourne un float. - */ - function getRevenuCadastralfloat(){ - if ($this->getNatExo()==''){ - $fRevenuCadastral=(float)$this->aFields['bipevla1']; - }else{ - $fRevenuCadastral=(float)($this->aFields['dvlpera'])/2; - } - return $fRevenuCadastral; - } - /** - * Cette m�thode permet de r�cup�rer la nature de l'exon�ration qui peut provenir soit de l'attribut 'gnexpl' soit de l'attribut 'gnextl' contenu dans le tableau aExPev. - * \return Retourne une cha�ne de caract�res. - */ - function getNatExo(){ - if(trim($this->aFields['gnexpl'])==''){ - $sNatExo=$this->aExPev[0]->aFields['gnextl']; - }else{ - $sNatExo=$this->aFields['gnexpl']; - } - return $sNatExo; - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_PosPlu.class.inc b/web_service/class/majic_lib/Mj_PosPlu.class.inc deleted file mode 100755 index 5a9edf8e..00000000 --- a/web_service/class/majic_lib/Mj_PosPlu.class.inc +++ /dev/null @@ -1,69 +0,0 @@ -<?php -/** -* \file Mj_Parcelle.class.inc -* \brief Mj_Parcelle.class.inc \n \n Ce fichier contient la classe php Mj_Parcelle -* -* Cette classe permet de s�lectionner les attributs POS/PLU n�cessaires. -* -* \author John Bosch <john.bosch@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Parcelle.class.inc"); - -class Mj_PosPlu extends Mj { - - /** - * Constructeur - * \param $oBD Objet de connexion PDO_BD - * \param $sIdPar Identifiant de la parcelle - * \param $sCodCom Code Insee de la commune - */ - function __construct($oBD,$sObjectId, $sIdPar,$sCodCom) { - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['pos_plu']; - $this->sSql=str_replace('$sObjectId', $sObjectId, $this->sSql); - $this->sSql=str_replace('$sIdPar', $sIdPar, $this->sSql); - $this->sSql=str_replace('$sCodCom', $sCodCom, $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aRow = $oBD->ligneSuivante ($oPDOresult)) { - $this->aFields=$aRow; - } - - $this->sStatus=0; - } - - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�/Fiche Parcelle. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�/Fiche Parcelle. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - } - else{ - $aExportFields['zonage']=$this->aFields['TYPE']; - $aExportFields['lib_zonage']=$this->aFields['LIBELLE']; - $aExportFields['surface']=$this->getSurface(); - $aExportFields['cos']=$this->aFields['COS']; - $aExportFields['ces']=$this->aFields['CES']; - $aExportFields['hauteur']=$this->aFields['HAUTEUR']; - $aExportFields['idreg']=$this->aFields['IDREG']; - $aExportFields['codecom']=$this->aFields['CODCOM']; - } - return $aExportFields; - } - function getSurface(){ - $iSurface= round($this->aFields['SURFACE']); - return $iSurface; - } - - -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Prof_Descr.class.inc b/web_service/class/majic_lib/Mj_Prof_Descr.class.inc deleted file mode 100755 index 8c24aed5..00000000 --- a/web_service/class/majic_lib/Mj_Prof_Descr.class.inc +++ /dev/null @@ -1,54 +0,0 @@ -<?php -/** -* \file Mj_Prof_Descr.class.inc -* \brief Mj_Prof_Descr.class.inc \n \n Ce fichier contient la classe php Mj_Prof_Descr -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Description Professionel. -* -* \author John Bosch -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ - -require_once ("Mj.class.inc"); - -class Mj_Prof_Descr extends Mj { - /** - * \param $sIdPev Identifiant de la partie d'Evaluation - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdPev,$oBD){ - include $this->sRessourcesFile; - $this->sSql=$aSql[$oBD->sgbd]['prof_descr']; - $this->sSql=str_replace('$sIdPev', $sIdPev, $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - } - else{ - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - $this->sStatus=0; - } - - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�/Fiche Parcelle. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�/Fiche Parcelle. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - } - else{ - $aExportFields['num_invar']=$this->aFields['invar']; - $aExportFields['num_pev']=$this->aFields['dnupev']; - $aExportFields['num_prof']=$this->aFields['dnudes']; - $aExportFields['surface']=$this->aFields['vsurzt']; - } - return $aExportFields; - } - -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Proprietaire.class.inc b/web_service/class/majic_lib/Mj_Proprietaire.class.inc deleted file mode 100755 index 31455062..00000000 --- a/web_service/class/majic_lib/Mj_Proprietaire.class.inc +++ /dev/null @@ -1,135 +0,0 @@ -<?php -/** -* \file Mj_Proprietaire.class.inc -* \brief Mj_Proprietaire.class.inc \n \n Ce fichier contient la classe php Mj_Proprietaire -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie proprietaire. -* -* \author Damien Bedel <damien.bedel@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Proprietaire -* \brief Mj_Proprietaire Class \n \n Mj_Proprietaire est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie proprietaire. -* -* \author Damien Bedel <damien.bedel@veremes.com> -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); - -class Mj_Proprietaire extends Mj { - /** - * Tableau associatif comportant la liste des objets Pev du b�ti - */ - var $aProprietaireNom=array(); - - /** - * \param $sIdDnupro Identifiant National de compte communal - * \param $sIdPro Identifiant d'un propri�taire pour le d�partement et le CDIF - * \param $oBD Objet de connexion PDO_BD - */ - function __construct($sIdDnupro,$sIdPro,$oBD, $sEncryptedKey=''){ - $this->sEncryptKey = $sEncryptedKey; - include $this->sRessourcesFile; - $this->sSql = $aSql[$oBD->sgbd]['proprietaire']; - $this->sSql= str_replace('$sIdDnupro', $this->encrypt($sIdDnupro),$this->sSql); - $this->sSql = str_replace('$sIdPro', $sIdPro, $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - $this->aFields['id_dnupro'] = $sIdDnupro; - $this->sStatus=0; - } - $oPDOresult = $oBD->fermeResultat(); - - $this->aProprietaireNom = $this->getProprietaireNom(); - } - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - } - else{ - $aExportFields['l_ccodro']=$this->aFields['l_ccodro']; - $aExportFields['l_ccodem']=$this->aFields['l_ccodem']; - $aExportFields['dnuper']=$this->aFields['dnuper']; - $aExportFields['dnupro']=$this->aFields['dnupro']; - $aExportFields['proprietaire_nom']=$this->getProprietaireNom(); - $aExportFields['proprietaire_nom_tiers']=$this->getProprietaireNomTiers(); - $aExportFields['proprietaire_adresse']=$this->getProprietaireAdresse(); - $aExportFields['jdatnss']=$this->getJdatnss(); - $aExportFields['dldnss']=$this->getDldnss(); - } - return $aExportFields; - } - /** - * Cette m�thode permet de r�cup�rer le nom du propri�taire en fonction de la valeur de l'attribut epxnee. - * \return Retourne une cha�ne de caract�res. - */ - function getProprietaireNom(){ - switch($this->aFields["epxnee"]){ - case 'EPX' : - $sProprietaireNom = rtrim($this->aFields["dqualp"])." ".rtrim($this->aFields["ddenom"])." EP ".rtrim($this->aFields["dnomcp"])." ".rtrim($this->aFields["dprncp"]); - break; - case 'NEE' : - $sProprietaireNom = rtrim($this->aFields["dqualp"])." ".rtrim($this->aFields["ddenom"])." EP ".rtrim($this->aFields["dnomlp"])." ".rtrim($this->aFields["dprnlp"]); - break; - default : - $sProprietaireNom = rtrim($this->aFields["dqualp"])." ".rtrim($this->aFields["ddenom"]); - break; - } - return $sProprietaireNom; - } - /** - * Cette m�thode permet de r�cup�rer l'adresse compl�te du propri�taire en concat�nant les attributs dlign3, dlign4, dlign5 et dlign6. - * \return Retourne une cha�ne de caract�res. - */ - function getProprietaireAdresse(){ - $sProprietaireAdresse = rtrim($this->aFields['dlign3'])." ".ltrim(rtrim($this->aFields['dlign4']),'0')." ".rtrim($this->aFields['dlign5'])." ".rtrim($this->aFields['dlign6']); - return $sProprietaireAdresse; - } - /** - * Cette m�thode permet de concat�ner les attributs dnvoiri et indic. - * \return Retourne une cha�ne de caract�res. Elle est vide si l'attribut dqualp est vide. - */ - function getJdatnss(){ - if($this->aFields["gtoper"]=='2'){ - $sJdatnss = ''; - }else{ - $sJdatnss = "NE(E) le ".$this->aFields['jdatnss']; - } - return $sJdatnss; - } - /** - * Cette m�thode permet de concat�ner les attributs dnvoiri et indic. - * \return Retourne une cha�ne de caract�res. Elle est vide si l'attribut dqualp est vide. - */ - function getDldnss(){ - if($this->aFields["gtoper"]=='2'){ - $sJdatnss = ''; - }else{ - $sDldnss = "A ".$this->aFields['dldnss']; - } - return $sDldnss; - } - /** - * Cette m�thode permet de r�cup�rer le nom du propri�taire correspondant � un relev� de propri�t� destin� aux tiers. - * \return Retourne une cha�ne de caract�res. - */ - function getProprietaireNomTiers(){ - $sProprietaireNomTiers = rtrim($this->aFields["dqualp"])." ".rtrim($this->aFields["ddenom"]); - return $sProprietaireNomTiers; - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/Mj_Suf.class.inc b/web_service/class/majic_lib/Mj_Suf.class.inc deleted file mode 100755 index f6879531..00000000 --- a/web_service/class/majic_lib/Mj_Suf.class.inc +++ /dev/null @@ -1,332 +0,0 @@ -<?php -/** -* \file Mj_Suf.class.inc -* \brief Mj_Suf.class.inc \n \n Ce fichier contient la classe php Mj_Suf -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Suf. -* -* \author Fabien Marty <fabien.marty@veremes.com> -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -/** -* \class Mj_Suf -* \brief Mj_Suf Class \n \n Mj_Suf est une classe PHP qui h�rite de la classe Mj. -* -* Cette classe permet de s�lectionner les attributs n�cessaires afin de traiter la partie Suf. -* -* \author Fabien Marty <fabien.marty@veremes.com> -* \author Damien Bedel -* \author Olivier Gayte <olivier.gayte@veremes.com> -*/ -require_once ("Mj.class.inc"); -require_once ("Mj_Exon_Suf.class.inc"); - -class Mj_Suf extends Mj { - /** - * Tableau associatif comportant la liste des objets Exon_Suf d'une parcelle - */ - var $aExonSuf=array(); - /** - * \param $oBD Objet de connexion PDO_BD - * \param $sIdSuf Identifiant de la suf - * \param $sIdDnupro Identifiant du propri�taire - */ - function __construct($oBD,$sIdSuf,$sIdDnupro,$sEncryptedKey='', $bAllSuf=false){ - $this->bAllSuf = $bAllSuf; - $this->sEncryptKey = $sEncryptedKey; - include $this->sRessourcesFile; - // r�cup�ration du dnupro de la suf - $this->sSql=$aSql[$oBD->sgbd]['suf_dnupro']; - $this->sSql=str_replace('$sIdSuf', $sIdSuf, $this->sSql); - - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - $this->sSql=$aSql['suf']; - }else{ - $this->sStatus=0; - $aSufPar=$oBD->ligneSuivante ($oPDOresult); - // Si le DNUPRO de la suf est diff�rent de la parcelle il s'agit d'une parcelle concern�e par des lots en biens non d�limit�s - if (trim($aSufPar['dnupro'])==trim(substr($sIdDnupro,6))){ - $this->sSql=$aSql[$oBD->sgbd]['suf']; - }else{ - if($this->bAllSuf){ - $this->sSql=$aSql[$oBD->sgbd]['suf_bnd_all']; - }else{ - $this->sSql=$aSql[$oBD->sgbd]['suf_bnd']; - } - } - } - $this->sSql=str_replace('$sIdSuf', $sIdSuf, $this->sSql); - $this->sSql=str_replace('sIdDnupro', substr($sIdDnupro, 5), $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - $this->aFields=$oBD->ligneSuivante ($oPDOresult); - $this->sStatus=0; - } - $this->aExonSuf=$this->get_aExon_Suf($oBD); - if ($this->aFields['dnulot']){ - $this->aPro=$this->get_aPro($oBD); - $this->aObjects = array_merge ($this->aPro,$this->aExonSuf); - }else{ - $this->aObjects=$this->aExonSuf; - } - } - /** - * Cette m�thode permet de r�cup�rer les ID_PRO en fonction d'un ID_DNUPRO donn�. - * \return Retourne un tableau de ID_PRO. - */ - function get_aId_Pro($oBD){ - if($this->isEmpty()){ - $aIdPro=""; - }else{ - include $this->sRessourcesFile; - $aIdPro=array(); - $this->sSql = $aSql[$oBD->sgbd]['get_id_pro']; - $this->sSql = str_replace('$sIdDnupro', $this->encrypt($this->aFields['id_dnupro']), $this->sSql); - $oPDOresult= $oBD->execute($this->sSql); - if ( $oBD->enErreur()) { - $this->sStatus=1; - $this->sMessage = $oBD->getBDMessage(); - }else{ - while($aResultFetch = $oBD->tableauSuivant ($oPDOresult)){ - array_push($aIdPro,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aIdPro; - $oPDOresult=$oBD->fermeResultat(); - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Proprietaire - * \param $oBD Objet de connexion PDO_BD - * \return Retourne un tableau d'objets Proprietaire - */ - function get_aPro($oBD){ - $aPro=array(); - if($this->isEmpty()){ - $aPro=""; - }else{ - $aIdPro = $this->get_aId_Pro($oBD); - foreach($aIdPro as $sIdPro){ - array_push($aPro,new Mj_Proprietaire($this->encrypt($this->aFields['id_dnupro']),$sIdPro,$oBD)); - } - } - return $aPro; - } - /** - * Cette m�thode permet de r�cup�rer les Rnuexn en fonction d'un Id_Suf donn� - * \return Retourne un tableau de cha�ne de caract�res. - */ - function get_aRnuexn($oBD){ - if($this->isEmpty()){ - $aRnuexn=""; - }else{ - include $this->sRessourcesFile; - $aRnuexn=array(); - $this->sSql=$aSql[$oBD->sgbd]['get_rnuexn']; - $this->sSql=str_replace('$sIdSuf', $this->aFields['id_suf'], $this->sSql); - $oPDOresult=$oBD->execute($this->sSql); - if ($oBD->enErreur()){ - $this->sStatus=1; - $this->sMessage=$oBD->getBDMessage(); - }else{ - while($aResultFetch = $oBD->tableauSuivant ($oPDOresult)){ - array_push($aRnuexn,$aResultFetch[0]); - $this->sStatus=0; - } - } - } - return $aRnuexn; - } - /** - * Cette m�thode permet de r�cup�rer la liste des objets Exon_Suf d'une parcelle - * \return Retourne un tableau d'objets Exon_Suf - */ - function get_aExon_Suf($oBD){ - $aExonSuf=array(); - if($this->isEmpty()){ - $aExonSuf=""; - }else{ - $aRnuexn=$this->get_aRnuexn($oBD); - foreach($aRnuexn as $sRnuexn){ - array_push($aExonSuf,new Mj_Exon_Suf($this->aFields['id_suf'],$sRnuexn,$oBD)); - } - } - return $aExonSuf; - } - - /** - * Cette m�thode permet de construire un tableau correspondant au relev� de propri�t�. - * \return Retourne un tableau associatif correspondant au relev� de propri�t�. - */ - function getExportFields(){ - $aExportFields=array(); - if($this->isEmpty()){ - $aExportFields=""; - }else{ - $aExportFields['dnupro']=$this->aFields['dnupro']; - $aExportFields['id_dnupro']=$this->aFields['id_dnupro']; - $aExportFields['s_tar']=$this->aFields['ccostn']; - $aExportFields['suf']=$this->aFields['ccosub']; - $aExportFields['gnexps']=$this->aFields['gnexps']; - $aExportFields['grss_gr']=$this->aFields['dsgrpf']; - $aExportFields['occupation']=$this->aFields['l_dsgrpf']; - $aExportFields['nature']=$this->aFields['l_dsgrpf']; - $aExportFields['groupe']=$this->aFields['l_cgrnum']; - $aExportFields['clas']=$this->aFields['dclssf']; - $aExportFields['nat_cult']=$this->aFields['cnatsp']; - $aExportFields['ha']=$this->getContenanceHA(); - if ($aExportFields['ha'] == 0){ - $aExportFields['ha']=' '; - } - $aExportFields['a']=$this->getContenanceA(); - $sContenanceA=$aExportFields['a']; - $sContenanceA= strval($sContenanceA); - $sTlenA=strlen($sContenanceA); - if ($aExportFields['ha'] == ' ' and $aExportFields['a'] == 0){ - $aExportFields['a']=' '; - }else{ - if ($aExportFields['ha'] == ' ' and $sTlenA == 2 and (substr($aExportFields['a'],0,1)== 0)){ - $sDeuxiemeValeur= substr($aExportFields['a'],1,1); - $aExportFields['a']= ' '.$sDeuxiemeValeur; - }else{ - if ($aExportFields['ha'] != ' ' and $sTlenA == 1){ - $aExportFields['a']='0'.$aExportFields['a']; - } - } - } - $aExportFields['ca']=$this->getContenanceCA(); - $sContenanceCa=$aExportFields['ca']; - $sContenanceCa=strval($sContenanceCa); - $sTlen=strlen($sContenanceCa); - if ($aExportFields['a'] != 0) - if ($sTlen == 1){ - $aExportFields['ca']='0'.$aExportFields['ca']; - } - $aExportFields['revenu_cadastral']=$this->getRevenuCadastral(); - $aExportFields['revenu_cadastral_txt']=$this->setFloatToText($this->getRevenuCadastral()); - $aExportFields['revenu_cadastral_exo']=$this->getRevenuCadastralExo($sCollectivite); - $aExportFields['revenu_reference']=$this->getRevenuReference(); - $aExportFields['revenu_reference_txt']=$this->setFloatToText($this->getRevenuReference()); - $aExportFields['nat_exo']=$this->getNatExo(); - $aExportFields['ccolloc']=$this->getCcolloc($sCollectivite); - $aExportFields['contenance_suf']=$this->getContenance(); - if ($this->aFields['dnulot']){ - $aExportFields['num_voirie']='*****'; - $aExportFields['dnulot']=$this->aFields['dnulot']; - $aExportFields['dnupdl']=$this->aFields['dnupdl']; - $aExportFields['dnumql']=$this->aFields['dnumql']; - $aExportFields['ddenql']=$this->aFields['ddenql']; - } - } - return $aExportFields; - } - /** - * Cette m�thode permet de r�cup�rer les caract�res correspondants � la colonne HA depuis l'attribut dcntsf. - * \return Retourne une cha�ne de caract�res. - */ - function getContenanceHA(){ - $sContenanceHA=$this->aFields['dcntsf']; - $sContenanceHA=substr("$sContenanceHA",0,5); - $iContenanceHA= (int) $sContenanceHA; - return $iContenanceHA; - } - /** - * Cette m�thode permet de r�cup�rer les caract�res correspondants � la colonne A depuis l'attribut dcntsf. - * \return Retourne une cha�ne de caract�res. - */ - function getContenanceA(){ - $sContenanceA=$this->aFields['dcntsf']; - $sContenanceA=substr("$sContenanceA", 5, 2); - return $sContenanceA; - } - /** - * Cette m�thode permet de r�cup�rer les caract�res correspondants � la colonne CA depuis l'attribut dcntsf. - * \return Retourne une cha�ne de caract�res. - */ - function getContenanceCA(){ - $sContenanceCA=$this->aFields['dcntsf']; - $sContenanceCA=substr("$sContenanceCA", 7, 2); - return $sContenanceCA; - } - /* - * Cette m�thode permet de r�cup�rer la contenance totale d'une suf. - * \return Retourne un entier. - */ - function getContenance(){ - $iContenanceHA = (int) $this->getContenanceHA(); - $iContenanceA = (int) $this->getContenanceA(); - $iContenanceCA = (int) $this->getContenanceCA(); - $iContenance = ($iContenanceHA*10000)+($iContenanceA*100)+($iContenanceCA); - return $iContenance; - } - /** - * Cette m�thode permet de diviser l'attribut drcsuba par 100. - * \return Retourne un float. - */ - function getRevenuCadastral(){ - $fRevenuCadastral=floatval($this->aFields['drcsuba']); - $fRevenuCadastral=$fRevenuCadastral/100; - return $fRevenuCadastral; - } - /** - * Cette m�thode permet de diviser l'attribut drcsub par 100. - * \return Retourne un float. - */ - function getRevenuReference(){ - $fRevenuReference=floatval($this->aFields['drcsub']); - $fRevenuReference=$fRevenuReference/100; - return $fRevenuReference; - } - - /** - * Cette m�thode permet de diviser l'attribut rcexnba par 100. - * \return Retourne un float. - */ - function getRevenuCadastralExo($sCollectivite){ - foreach($this->aExonSuf as $aFieldsRevExo) { - if (rtrim($aFieldsRevExo->aFields['ccolloc']) == $sCollectivite) { - $fRevenuCadastral=floatval($aFieldsRevExo->aFields['rcexnba']); - $fRevenuCadastral=$fRevenuCadastral/100; - } - } - return $fRevenuCadastral; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'nat_exo' du tableau aExonSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getNatExo(){ - return $this->aExonSuf[0]->aFields['gnexts']; - } - /** - * Cette m�thode permet de r�cup�rer la valeur de l'attribut 'ccolloc' du tableau aExonSuf. - * \return Retourne une cha�ne de caract�res. - */ - function getCcolloc($sCollectivite){ - $bVal=false; - foreach($this->aExonSuf as $aFieldsExo) { - if(rtrim($aFieldsExo->aFields['ccolloc']) == $sCollectivite) { - $aReturn=$aFieldsExo; - $bVal=true; - } - } - return $bVal; - } - /** - * Cette m�thode permet de formater un d�cimal pour l'affichage. - * \return Retourne une chaine - */ - function setFloatToText($fFloat){ - return number_format($fFloat,2,'.',''); - } -} - -?> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/FP.xslt b/web_service/class/majic_lib/xsl/FP.xslt deleted file mode 100755 index 64881b27..00000000 --- a/web_service/class/majic_lib/xsl/FP.xslt +++ /dev/null @@ -1,1481 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!DOCTYPE xsl:stylesheet [ - <!ENTITY nbsp " "> -]> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> - <xsl:template match="/"> - <xsl:param name="poste"/> - <xsl:param name="type"/> - - <html xmlns="http://www.w3.org/1999/xhtml" - lang="fr" - > - <head> - <style type="text/css"> - body { - font-family:arial, "sans-serif"; - padding:100px 20px 20px 20px; - background-image:url(http://img15.hostingpics.net/pics/500812bandeau.jpg); - background-repeat:no-repeat; - background-position:center top; - } - - hr { - text-align: center; - width:100%; - color:#F1B4B4; - } - - table { - text-align:left; - width:100%; - font-size:12px; - margin-bottom:35px; - } - - td { - text-align:left; - - background-color:#F7F7F7 ; - } - - h1 { - font-family:tahoma; - color: #008393; - } - - th { - text-align:left; - - background-color:#eeeeee; - } - - h4 { - font-family:tahoma; - color: #990000; - } - - h5 { - font-family:tahoma; - } - </style> - </head> - <body> - <hr size="5"/> - <h1> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - Parcelle <xsl:value-of select="@section" /><xsl:value-of select="format-number(@num_parc, '0000')"/> - </xsl:for-each> - </h1> - <hr size="10"/> - <Table cellspacing="2" cellpadding="5" > - <TR> - <TH align="left" width ="15%"> - Adresse : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select="@num_voirie" /> - <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> - <xsl:value-of select="@adresse" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Commune : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="@libcom" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Code Commune (Insee) : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="@codeinsee" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Compte Propriétaire : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="Mj_Parcelle/@dnupro" /> - <BR/> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Surface cadastrale (m²) : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="@total_contenance_m2" /> - </xsl:for-each> - </TD> - </TR> - <xsl:if test="not($type='restreint')"> - <TR> - <TH align="left" width ="15%"> - Urbaine : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select="@gurbpa" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Bâtie : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select="@gparbat" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Parcelle primitive : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:if test="not(@num_parc_prim = '')"> - <xsl:value-of select="@num_parc_prim" /> - </xsl:if> - <xsl:if test="@num_parc_prim = ''"> - - - </xsl:if> - </xsl:for-each> - </TD> - </TR> - </xsl:if> - </Table> - <xsl:if test="$poste='internet'"> - <img> - <xsl:attribute name="src">http://mapsrv.rgd74.fr/geomap70/mg/net/ggGetMapImage.aspx?USER=Administrator&PWD=admin&MAPNAME=Library://RISNET_GESTION/Cartes/RGD 73-74 - RISNET_GESTION_73_74.MapDefinition&SELOBJS=PARCELLE%2C<xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select='substring(@idpar,1,2)'/> - <xsl:value-of select='substring(@idpar,4,3)'/> - <xsl:if test ="substring(@idpar,7,3)='000'"> - <xsl:text disable-output-escaping="yes">---</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,7,3)='000')"> - <xsl:value-of select='substring(@idpar,7,3)'/> - </xsl:if> - <xsl:if test ="substring(@idpar,10,1)='0'"> - <xsl:text disable-output-escaping="yes">-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,10,1)='0')"> - <xsl:value-of select='substring(@idpar,10,1)'/> - </xsl:if> - <xsl:value-of select='substring(@idpar,11,1)'/> - <xsl:value-of select='substring(@idpar,12)'/> - </xsl:for-each>-&CENTERX=&CENTERY=&SCALE=*8&HEIGHT=400&WIDTH=575&RESULTTYPE=JPG</xsl:attribute> - </img> - <h4> - Urbanisme : POS/PLU - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Zonage - </TH> - <TH> - Libellé - </TH> - <TH> - Surface (m²)* - </TH> - <TH> - COS - </TH> - <TH> - CES - </TH> - <TH> - Hauteur - </TH> - <TH> - Réglement de la zone - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <TR> - <TD> - <xsl:value-of select="@zonage" /> - </TD> - <TD> - <xsl:value-of select="@lib_zonage" /> - </TD> - <TD> - <xsl:value-of select="@surface" /> - </TD> - <TD> - <xsl:value-of select="@cos" /> - </TD> - <TD> - <xsl:value-of select="@ces" /> - </TD> - <TD> - <xsl:value-of select="@hauteur" /> - </TD> - <TD> - <a> - <xsl:attribute name="href">http://mapris.rgd74.fr/DocumentsPartenaires/Reglement_POS/<xsl:value-of select="@idreg" />.pdf</xsl:attribute>Consulter le réglement - </a> - </TD> - </TR> - </xsl:for-each> - </Table> - <h6>*calcul sur la surface graphique, exclusion si surface ‹ 2 m² </h6> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <a> - <xsl:attribute name="href">http://mapris.rgd74.fr/Risnet_Gestion/Application/Rapport/etat_pos_plu/fiche_pos.asp?codcom=<xsl:value-of select="@codecom" /></xsl:attribute>Avancement de l'actualisation/mise en ligne du POS/PLU de cette commune - </a> - </xsl:for-each> - </xsl:if> - <xsl:if test="not($type='sansnom')"> - <hr size="5"/> - <h4> - Propriétaire(s) de la parcelle - </h4> - <h6>*Cliquer sur le n° de compte pour accéder à son relevé de propriété </h6> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH colspan="2"> - Compte - </TH> - <TH> - Nom - </TH> - <xsl:if test="$type='complet'"> - <TH> - Etat Civil - </TH> - </xsl:if> - <TH> - Adresse - </TH> - <TH> - Type - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <TR> - <TD colspan="2"> - <xsl:if test="$type='complet'"> - <a> - <xsl:attribute name="href">http://ns227471.ovh.net/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=complet&format=pdf&version=1.0</xsl:attribute><xsl:value-of select="@dnupro" /> - </a> - </xsl:if> - <xsl:if test="$type='restreint'"> - <a> - <xsl:attribute name="href">http://ns227471.ovh.net/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=restreint&format=pdf&version=1.0</xsl:attribute><xsl:value-of select="@dnupro" /> - </a> - </xsl:if> - <xsl:if test="$type='sansnom'"> - <xsl:value-of select="@dnupro" /> - </xsl:if> - </TD> - <TD> - <xsl:if test="$type='complet'"> - <xsl:value-of select="@proprietaire_nom" /> - </xsl:if> - <xsl:if test="$type='restreint'"> - <xsl:value-of select="@proprietaire_nom_tiers" /> - </xsl:if> - </TD> - <xsl:if test="$type='complet'"> - <TD> - <xsl:value-of select="@jdatnss" /> - <BR/> - <xsl:value-of select="@dldnss" /> - </TD> - </xsl:if> - <TD> - <xsl:value-of select="@proprietaire_adresse" /> - </TD> - <TD> - <xsl:value-of select="@l_ccodro" /> - </TD> - </TR> - <xsl:if test ="..//Mj_Parcelle/Mj_Suf/Mj_Proprietaire[@dnupro]"> - <tr> - <th colspan="6"> - Détail - </th> - </tr> - <TR> - <TH> - Numéro du lot - </TH> - <TH> - Compte - </TH> - <TH> - Nom - </TH> - <xsl:if test="$type='complet'"> - <TH> - Etat Civil - </TH> - </xsl:if> - <TH> - Adresse - </TH> - <TH> - Type - </TH> - </TR> - <xsl:for-each select="../Mj_Parcelle/Mj_Suf/Mj_Proprietaire"> - <tr> - <td> - <xsl:value-of select="../@dnulot" /> - </td> - <td> - <xsl:if test="$type='complet'"> - <a> - <xsl:attribute name="href">http://ns227471.ovh.net/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=complet&format=pdf&version=1.0</xsl:attribute><xsl:value-of select="@dnupro" /> - </a> - </xsl:if> - <xsl:if test="$type='restreint'"> - <a> - <xsl:attribute name="href">http://ns227471.ovh.net/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=restreint&format=pdf&version=1.0</xsl:attribute><xsl:value-of select="@dnupro" /> - </a> - </xsl:if> - <xsl:if test="$type='sansnom'"> - <xsl:value-of select="@dnupro" /> - </xsl:if> - </td> - <td> - <xsl:if test="$type='complet'"> - <xsl:value-of select="@proprietaire_nom" /> - </xsl:if> - <xsl:if test="$type='restreint'"> - <xsl:value-of select="@proprietaire_nom_tiers" /> - </xsl:if> - </td> - <xsl:if test="$type='complet'"> - <td> - <xsl:value-of select="@jdatnss" /> - <BR/> - <xsl:value-of select="@dldnss" /> - </td> - </xsl:if> - <td> - <xsl:value-of select="@proprietaire_adresse" /> - </td> - <td> - <xsl:value-of select="@l_ccodro" /> - </td> - </tr> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </Table> - </xsl:if> - <hr size="5"/> - <h4> - Subdivision(s) fiscale(s) - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Lettre - </TH> - <TH> - Groupe - </TH> - <TH> - Nature - </TH> - <TH> - Classe - </TH> - <TH> - Compte - </TH> - <TH> - Surface (m²) - </TH> - <xsl:if test="not($type='restreint')"> - <TH> - Revenu (€) - </TH> - </xsl:if> - <TH> - Référence - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_Suf"> - <TR> - <TD> - <xsl:if test="not(@suf = '')"> - <xsl:value-of select="@suf" /> - </xsl:if> - <xsl:if test="@suf = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@groupe = '')"> - <xsl:value-of select="@groupe" /> - </xsl:if> - <xsl:if test="@groupe = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@nature = '')"> - <xsl:value-of select="@nature" /> - </xsl:if> - <xsl:if test="@nature = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@clas = '')"> - <xsl:value-of select="@clas" /> - </xsl:if> - <xsl:if test="@clas = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:value-of select="@dnupro" /> - </TD> - <TD> - <xsl:value-of select="@contenance_suf" /> - </TD> - <xsl:if test="not($type='restreint')"> - <TD> - <xsl:value-of select="@revenu_cadastral_txt" /> - </TD> - </xsl:if> - <TD> - <xsl:value-of select="@revenu_reference_txt" /> - </TD> - </TR> - </xsl:for-each> - </Table> - <xsl:if test="not($type='sansnom')"> - <xsl:if test="count(Mj/Mj_Compte_Communal_Parcelle/Mj_Bati) > 0"> - <hr size="5"/> - <h4> - Elément(s) bâti(s) - </h4> - <xsl:if test="$type='complet'"> - <h6>*Cliquer sur la référence du local pour accéder à sa description</h6> - </xsl:if> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Ref. local - </TH> - <TH> - Nature - </TH> - <TH> - <xsl:if test="$type='restreint'"> - Etages - </xsl:if> - <xsl:if test="$type='complet'"> - Date mutation - </xsl:if> - </TH> - <TH> - Propriétaire(s) - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:for-each select="Mj_Proprietaire"> - <TR> - <xsl:if test="position()='1'"> - <TD> - <xsl:if test="$type='restreint'"> - <xsl:value-of select="../@num_invar" /> - </xsl:if> - <xsl:if test="$type='complet'"> - <a href="#{../@num_invar}"> - <xsl:value-of select="../@num_invar" /> - </a> - </xsl:if> - </TD> - <TD> - <xsl:value-of select="../@lib_nature" /> - </TD> - <TD> - <xsl:if test="$type='restreint'"> - <xsl:value-of select="../@niv" /> - </xsl:if> - <xsl:if test="$type='complet'"> - <xsl:value-of select="../@date_mut" /> - </xsl:if> - </TD> - </xsl:if> - <xsl:if test="position() > '1'"> - <TD> - </TD> - <TD> - </TD> - <TD> - </TD> - </xsl:if> - <TD> - <xsl:if test="$type='restreint'"> - <xsl:value-of select="@dnupro" /> - </xsl:if> - <xsl:if test="$type='complet'"> - <xsl:value-of select="@proprietaire_nom" /> - </xsl:if> - </TD> - </TR> - </xsl:for-each> - </xsl:for-each> - </Table> - </xsl:if> - <!-- .........................................Propriétaire de Bâtis, mode restreint................................................. --> - <xsl:if test="$type='restreint'"> - <hr size="5"/> - <h4> - Propriétaire(s) du local - </h4> - - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Compte - </TH> - <TH> - Nom - </TH> - <TH> - Adresse - </TH> - <TH> - Type - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati/Mj_Proprietaire"> - <TR> - <TD> - <a> - <xsl:attribute name="href">http://ns227471.ovh.net/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=restreint&format=pdf&version=1.0</xsl:attribute><xsl:value-of select="@dnupro" /> - </a> - </TD> - <TD> - <xsl:value-of select="@proprietaire_nom" /> - </TD> - <TD> - <xsl:value-of select="@proprietaire_adresse" /> - </TD> - <TD> - <xsl:value-of select="@l_ccodro" /> - </TD> - </TR> - </xsl:for-each> - </Table> - - </xsl:if> - <!-- .........................................Description du local, mode complet................................................. --> - <xsl:if test="$type='complet'"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <hr size="15"/> - <h1> - - <a name="{@num_invar}"> - Local n° <xsl:value-of select="@num_invar" /> - </a> - - </h1> - <hr size="10"/> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH align="left" width="39%"> - - </TH> - <TH align="left" width="40%"> - - </TH> - <TH align="center" width="7%"> - Bat - </TH> - <TH align="center" width="7%"> - Esc - </TH> - <TH align="center" width="7%"> - Etage - </TH> - </TR> - - <TR> - <TH align="left" width="39%"> - Adresse : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@voirie" /> <xsl:value-of select="@adresse" /> - </TD> - <TD align="center" width="7%"> - <xsl:value-of select="@bat" /> - </TD> - <TD align="center" width="7%"> - <xsl:value-of select="@ent" /> - </TD> - <TD align="center" width="7%"> - <xsl:value-of select="@niv" /> - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Commune : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@libcom" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Type : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@dteloc" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Occupation : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@lib_occupation" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Nature : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@lib_nature" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Année de construction : - </TH> - <TD align="left" width="40%"> - <xsl:if test="not(@annee_constr = '0')"> - <xsl:value-of select="@annee_constr" /> - </xsl:if> - <xsl:if test="@annee_constr = '0'"> - - - </xsl:if> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Date de mutation : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@date_mut" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Valeur cadastrale (€) : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="Mj_Pev/@revenu_cadastral" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Niveaux : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@niveaux" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - - </Table> - <hr size="5"/> - <h4> - Propriétaire(s) du local - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Compte - </TH> - <TH> - Nom - </TH> - <TH> - État Civil - </TH> - <TH> - Adresse - </TH> - <TH> - Type - </TH> - </TR> - - <xsl:for-each select="Mj_Proprietaire"> - <TR> - <TD> - <a> - <xsl:attribute name="href">http://ns227471.ovh.net/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=complet&format=pdf&version=1.0</xsl:attribute><xsl:value-of select="@dnupro" /> - </a> - </TD> - <TD> - <xsl:value-of select="@proprietaire_nom" /> - </TD> - <TD> - <xsl:value-of select="@jdatnss" /> - <BR/> - <xsl:value-of select="@dldnss" /> - </TD> - <TD> - <xsl:value-of select="@proprietaire_adresse" /> - </TD> - <TD> - <xsl:value-of select="@l_ccodro" /> - </TD> - </TR> - </xsl:for-each> - - </Table> - <hr size="5"/> - <h4> - P.E.V - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - N° - </TH> - <TH> - Nature - </TH> - <TH> - Catégorie fiscale - </TH> - <TH> - Série Tarif batie - </TH> - <TH> - Local Type - </TH> - <TH> - Val. Loc. Ref. (€) - </TH> - <TH> - Val. Loc. Ann. (€) - </TH> - <TH> - Nature exonération - </TH> - </TR> - - <xsl:for-each select="Mj_Pev"> - <TR> - <TD> - <xsl:if test="not(@num_pev = '')"> - <xsl:value-of select="@num_pev" /> - </xsl:if> - <xsl:if test="@num_pev = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@l_nature = '')"> - <xsl:value-of select="@l_nature" /> - </xsl:if> - <xsl:if test="@l_nature = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@cat = '')"> - <xsl:value-of select="@cat" /> - </xsl:if> - <xsl:if test="@cat = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@s_tar = '')"> - <xsl:value-of select="@s_tar" /> - </xsl:if> - <xsl:if test="@s_tar = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@local_type = '')"> - <xsl:value-of select="@local_type" /> - </xsl:if> - <xsl:if test="@local_type = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@val_loc_ref = '')"> - <xsl:value-of select="@val_loc_ref" /> - </xsl:if> - <xsl:if test="@val_loc_ref = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@val_loc_ann = '')"> - <xsl:value-of select="@val_loc_ann" /> - </xsl:if> - <xsl:if test="@val_loc_ann = ''"> - - - </xsl:if> - </TD> - <TD> - <xsl:if test="not(@l_nat_exon = '')"> - <xsl:value-of select="@l_nat_exon" /> - </xsl:if> - <xsl:if test="@l_nat_exon = ''"> - - - </xsl:if> - </TD> - </TR> - </xsl:for-each> - </Table> - - <xsl:if test ="Mj_Pev/Mj_Habit_Descr[@num_pev]"> - <hr size="5"/> - <h4> - Habitation principale - <BR/> - </h4> - <h5> - N° P.E.V : <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@num_pev" /> - </h5> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH width="30%"> - Divers - </TH> - <TH width="40%"> - Eléments de confort - </TH> - <TH width="10%"> - Pièces - </TH> - <TH width="20"> - Surfaces (m²) - </TH> - </TR> - <TR> - <TD width="30%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TD align ="left"> - Surface (m²) : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_piece_total" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Nbr pièces : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_piece_total" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Nbr pièces princ. : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_piece_principal" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Entretien : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@l_Etat" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Année de Constr. : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@annee_constr" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Nbr Niveaux : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_niveaux" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Gros murs : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@lib_mat_gros_mur" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Toitures : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@lib_mat_toiture" /> - </TD> - - </TR> - </Table> - </TD> - <TD width="40%"> - <Table cellspacing="2" cellpadding="5"> - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_baignoires > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_baignoires" /> - </TD> - <TD align ="left" width ="75%"> - Baignoire(s) - </TD> - </TR> - </xsl:if> - - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_douches > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_douches" /> - </TD> - <TD align ="left" width ="75%"> - Douche(s) - </TD> - </TR> - </xsl:if> - - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_lavabos > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_lavabos" /> - </TD> - <TD align ="left" width ="75%"> - Lavabo(s) - </TD> - </TR> - </xsl:if> - - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_wc > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_wc" /> - </TD> - <TD align ="left" width ="75%"> - W.C. - </TD> - </TR> - </xsl:if> - - - <TR> - <TD align ="left"> - Eau : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@eau = 'EAU'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@eau = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Electricité : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@elect = 'ELECT'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@elect = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Gaz : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@gaz = 'GAZ'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@gaz = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Esc. de service : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@esc_serv = 'ESC_SERV'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@esc_serv = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Ascenseur : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@asc = 'ASC'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@asc = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Chauffage : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@chauf = 'CHAUF'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@chauf = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Vide ordure : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@vide_ord = 'VIDE_ORD'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@vide_ord = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Égout : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@egout = 'EGOUT'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@egout = ''"> - - - </xsl:if> - </TD> - </TR> - </Table> - </TD> - <TD width="15%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_sam" /> - </TD> - - <TD align ="left" width ="75%"> - S. a manger - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_chambre" /> - </TD> - - <TD align ="left" width ="75%"> - Chambre - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_cuisine_m9" /> - </TD> - - <TD align ="left" width ="75%"> - Cuisine (inf.9m2) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_cuisine_p9" /> - </TD> - - <TD align ="left" width ="75%"> - Cuisine (sup.9m2) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_salle_eau" /> - </TD> - - <TD align ="left" width ="75%"> - S. de bain - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_annexe" /> - </TD> - - <TD align ="left" width ="75%"> - Annexe - </TD> - </TR> - </Table> - </TD> - <TD width="15%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_cave" /> - </TD> - <TD align ="left" width ="75%"> - Cave(s) - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_grenier" /> - </TD> - <TD align ="left" width ="75%"> - Grenier(s) - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_terrasse" /> - </TD> - <TD align ="left" width ="75%"> - Terrasse(s) - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_garage" /> - </TD> - <TD align ="left" width ="75%"> - Garage(s) - </TD> - - </TR> - </Table> - </TD> - </TR> - </Table> - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr[@num_pev]"> - <hr size="5"/> - <h4> - Dépendance(s) - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - N° - </TH> - <TH> - Nature - </TH> - <TH> - Surface (m²) - </TH> - <TH> - Pondération - </TH> - <TH> - Entretien - </TH> - <TH> - Gros murs - </TH> - <TH> - Toitures - </TH> - <TH> - Elt. confort - </TH> - </TR> - <TR> - - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@num_pev" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nature" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@surface" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@ponderation" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@l_Etat" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@lib_mat_gros_mur" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@lib_mat_toiture" /> - </TD> - - <TD> - <Table cellspacing="2" cellpadding="5"> - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_baignoires > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_baignoires" /> - </TD> - <TD align ="left" width ="75%"> - Baignoire(s) - </TD> - </TR> - </xsl:if> - - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_douches > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_douches" /> - </TD> - <TD align ="left" width ="75%"> - Douche(s) - </TD> - </TR> - </xsl:if> - - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_lavabos > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_lavabos" /> - </TD> - <TD align ="left" width ="75%"> - Lavabo(s) - </TD> - </TR> - </xsl:if> - - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_wc > 0"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_wc" /> - </TD> - <TD align ="left" width ="75%"> - W.C. - </TD> - </TR> - </xsl:if> - <TR> - <TD align ="left"> - Eau : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@eau = 'EAU'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@eau = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Chauffage : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@chauf = 'CHAUF'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@chauf = ''"> - - - </xsl:if> - </TD> - </TR> - <TR> - <TD align ="left"> - Electricité : - </TD> - <TD align ="left" width ="75%"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@elect = 'ELECT'"> - Oui - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@elect = ''"> - - - </xsl:if> - </TD> - </TR> - </Table> - </TD> - </TR> - </Table> - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Prof_Descr[@num_pev]"> - <hr size="5"/> - <h4> - Locaux Professionnels - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - N° - </TH> - <TH> - Surface (m²) - </TH> - </TR> - <TR> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Prof_Descr/@num_pev" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Prof_Descr/@surface" /> - </TD> - </TR> - </Table> - </xsl:if> - </xsl:for-each> - </xsl:if> - </xsl:if> - </body> - </html> - </xsl:template> -</xsl:stylesheet> - diff --git a/web_service/class/majic_lib/xsl/FP_New.xslt b/web_service/class/majic_lib/xsl/FP_New.xslt deleted file mode 100755 index 89c14367..00000000 --- a/web_service/class/majic_lib/xsl/FP_New.xslt +++ /dev/null @@ -1,1000 +0,0 @@ -<?xsl version="1.0" encoding="utf-8" standalone="no"?> -<!DOCTYPE xsl:stylesheet [ - <!ENTITY nbsp " "> -]> -<html xsl:version="1.0" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - lang="fr" - - > - - - <head> - <!--<link rel="stylesheet" href="C:\\svn\\lib\\majic_lib\\xsl\\style.css" type="text/css" />--> - <link href="style.css" type="text/css" rel="stylesheet" /> - - </head> - <body> - <hr size="5"/> - <h1> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - Parcelle <xsl:value-of select="@section" /><xsl:value-of select="@num_parc" /> - </xsl:for-each> - </h1> - <hr size="10"/> - <Table cellspacing="2" cellpadding="5" > - <TR> - <TH align="left" width ="15%"> - Adresse : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select="@adresse" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Commune : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="@libcom" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Code Commune (Insee) : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="@codeinsee" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Cpte Propriétaire : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="Mj_Parcelle/@dnupro" /> <BR/> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Surface cadastrale (m²) : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <xsl:value-of select="@total_contenance_m2" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Urbaine : - </TH> - <TD align="left" width ="85%"> - A Chercher ??? - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Bâtie : - </TH> - <TD align="left" width ="85%"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select="@gparbat" /> - </xsl:for-each> - </TD> - </TR> - <TR> - <TH align="left" width ="15%"> - Parcelle primitive : - </TH> - <TD align="left" width ="85%"> - A Chercher ??? - </TD> - </TR> - </Table> - <img> - <xsl:attribute name="src"> - <xsl:value-of select = "concat('http://www.maison-passive-nice.fr/images/','parcelle.gif')"/> - </xsl:attribute> - </img> - <hr size="5"/> - <h4> - Propriétaire(s) de la parcelle - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Compte - </TH> - <TH> - Nom - </TH> - <TH> - Etat Civil - </TH> - <TH> - Adresse - </TH> - <TH> - Type - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <TR> - <TD> - <xsl:value-of select="@dnupro" /> - </TD> - <TD> - <xsl:value-of select="@proprietaire_nom_tiers" /> - </TD> - <TD> - <xsl:value-of select="@jdatnss" /> - <BR/> - <xsl:value-of select="@dldnss" /> - </TD> - <TD> - <xsl:value-of select="@proprietaire_adresse" /> - </TD> - <TD> - <xsl:value-of select="@l_ccodro" /> - </TD> - </TR> - </xsl:for-each> - </Table> - <hr size="5"/> - <h4> - Subdivision(s) Fiscale(s) - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Lettre - </TH> - <TH> - groupe - </TH> - <TH> - Nature - </TH> - <TH> - Occupation - </TH> - <TH> - Classe - </TH> - <TH> - Compte - </TH> - <TH> - Surface (m²) - </TH> - <TH> - Revenu (€) - </TH> - <TH> - Référence - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_Suf"> - <TR> - <TD> - <xsl:value-of select="@suf" /> - </TD> - <TD> - <xsl:value-of select="@grss_gr" /> - </TD> - <TD> - <xsl:value-of select="@nat_cult" /> - </TD> - <TD> - ??? - </TD> - <TD> - <xsl:value-of select="@clas" /> - </TD> - <TD> - <xsl:value-of select="@dnupro" /> - </TD> - <TD> - <xsl:value-of select="@contenance_suf" /> - </TD> - <TD> - <xsl:value-of select="@revenu_cadastral_txt" /> - </TD> - <TD> - <xsl:value-of select="@revenu_reference_txt" /> - </TD> - </TR> - </xsl:for-each> - </Table> - <hr size="5"/> - <h4> - Elément(s) Bâti(s) - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Ref. local - </TH> - <TH> - Nature - </TH> - <TH> - Date mutation - </TH> - <TH> - Propriétaire(s) - </TH> - </TR> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <TR> - <TD> - <a href="<xsl:value-of select="@num_invar" />"><xsl:value-of select="@num_invar" /></a> - </TD> - <TD> - <xsl:value-of select="@nature" /> - </TD> - <TD> - <xsl:value-of select="@date_mut" /> - </TD> - <TD> - <xsl:value-of select="Mj_Proprietaire/@proprietaire_nom" /> - </TD> - </TR> - </xsl:for-each> - </Table> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <hr size="15"/> - <h1> - - <a name="<xsl:value-of select="@num_invar" />">Local n° <xsl:value-of select="@num_invar" /></a> - - </h1> - <hr size="10"/> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH align="left" width="39%"> - - </TH> - <TH align="left" width="40%"> - - </TH> - <TH align="center" width="7%"> - Bat - </TH> - <TH align="center" width="7%"> - Esc - </TH> - <TH align="center" width="7%"> - Etage - </TH> - </TR> - - <TR> - <TH align="left" width="39%"> - Adresse : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@voirie" /> <xsl:value-of select="@adresse" /> - </TD> - <TD align="center" width="7%"> - <xsl:value-of select="@bat" /> - </TD> - <TD align="center" width="7%"> - <xsl:value-of select="@ent" /> - </TD> - <TD align="center" width="7%"> - <xsl:value-of select="@niv" /> - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Commune : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@libcom" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Type : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@dteloc" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Occupation : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@occupation" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Nature : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@nature" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Année de construction : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@annee_constr" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Date de mutation : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@date_mut" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Valeur cadastrale (€) : - </TH> - <TD align="left" width="40%"> - ???? - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - <TR> - <TH align="left" width="39%"> - Niveaux : - </TH> - <TD align="left" width="40%"> - <xsl:value-of select="@niveaux" /> - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - <TD align="center" width="7%"> - - </TD> - </TR> - - </Table> - <hr size="5"/> - <h4> - Propriétaire(s) du local - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - Compte - </TH> - <TH> - Nom - </TH> - <TH> - État Civil - </TH> - <TH> - Adresse - </TH> - <TH> - Type - </TH> - </TR> - - <TR> - <TD> - <xsl:value-of select="Mj_Proprietaire/@dnupro" /> - </TD> - <TD> - <xsl:value-of select="Mj_Proprietaire/@proprietaire_nom" /> - </TD> - <TD> - <xsl:value-of select="Mj_Proprietaire/@jdatnss" /> - <BR/> - <xsl:value-of select="Mj_Proprietaire/@dldnss" /> - </TD> - <TD> - <xsl:value-of select="Mj_Proprietaire/@proprietaire_adresse" /> - </TD> - <TD> - <xsl:value-of select="Mj_Proprietaire/@l_ccodro" /> - </TD> - </TR> - - </Table> - <hr size="5"/> - <h4> - P.E.V - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - N° - </TH> - <TH> - Nature - </TH> - <TH> - Catégorie - </TH> - <TH> - Tarif - </TH> - <TH> - Local Type - </TH> - <TH> - Val. Loc. Ref. (€) - </TH> - <TH> - Val. Loc. Ann. (€) - </TH> - <TH> - Nat. Exemp. - </TH> - </TR> - - <TR> - <TD> - <xsl:value-of select="Mj_Pev/@num_pev" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@af" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@cat" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@s_tar" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@local_type" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@val_loc_ref" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@val_loc_ann" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/@nature" /> - </TD> - </TR> - </Table> - - <xsl:if test ="Mj_Pev/Mj_Habit_Descr[@num_pev]"> - <hr size="5"/> - <h4> - Habitation principale - <BR/> - </h4> - <h5> - N° P.E.V : <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@num_pev" /> - </h5> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH width="30%"> - Divers - </TH> - <TH width="40%"> - Eléments de confort - </TH> - <TH width="10%"> - Pièces - </TH> - <TH width="20"> - Surfaces (m²) - </TH> - </TR> - <TR> - <TD width="30%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TD align ="left"> - Surface (m²) : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_piece_total" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Nbr pièces : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_piece_total" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Nbr pièces princ. : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_piece_principal" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Entretien : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@Etat" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Année de Constr. : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@annee_constr" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Nbr Niveaux : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_niveaux" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Gros murs : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@mat_gros_mur" /> - </TD> - - </TR> - <TR> - <TD align ="left"> - Toitures : - </TD> - - <TD align ="right"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@mat_toiture" /> - </TD> - - </TR> - </Table> - </TD> - <TD width="40%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_baignoires" /> - </TD> - <TD align ="left" width ="75%"> - Baignoire(s) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_douches" /> - </TD> - - <TD align ="left" width ="75%"> - Douche(s) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_lavabos" /> - </TD> - - <TD align ="left" width ="75%"> - Lavabo(s) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_wc" /> - </TD> - - <TD align ="left" width ="75%"> - W.C. - </TD> - </TR> - <TR> - <TD align ="left"> - Eau : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@eau" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Electricité : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@elect" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Gaz : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@gaz" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Esc. de service : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@esc_serv" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Ascenseur : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@asc" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Chauffage : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@chauf" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Vide ordure : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@vide_ord" /> - </TD> - </TR> - <TR> - <TD align ="left"> - Égout : - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@egout" /> - </TD> - </TR> - </Table> - </TD> - <TD width="15%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_sam" /> - </TD> - - <TD align ="left" width ="75%"> - S. a manger - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_chambre" /> - </TD> - - <TD align ="left" width ="75%"> - Chambre - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_cuisine_m9" /> - </TD> - - <TD align ="left" width ="75%"> - Cuisine (inf.9m2) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_cuisine_p9" /> - </TD> - - <TD align ="left" width ="75%"> - Cuisine (sup.9m2) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_salle_eau" /> - </TD> - - <TD align ="left" width ="75%"> - S. de bain - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_annexe" /> - </TD> - - <TD align ="left" width ="75%"> - Annexe - </TD> - </TR> - </Table> - </TD> - <TD width="15%"> - <Table cellspacing="2" cellpadding="5"> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_cave" /> - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@cave" /> - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_grenier" /> - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@grenier" /> - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_terrasse" /> - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@terrasse" /> - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_garage" /> - </TD> - <TD align ="left" width ="75%"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@garage" /> - </TD> - - </TR> - </Table> - </TD> - </TR> - </Table> - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr[@num_pev]"> - <hr size="5"/> - <h4> - Dépendance(s) - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - N° - </TH> - <TH> - Nature - </TH> - <TH> - Surface (m²) - </TH> - <TH> - Pondération - </TH> - <TH> - Entretien - </TH> - <TH> - Gros murs - </TH> - <TH> - Toitures - </TH> - <TH> - Elt. confort - </TH> - </TR> - <TR> - - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@num_depend" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nature" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@surface" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@ponderation" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@Etat" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@mat_gros_mur" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@mat_toiture" /> - </TD> - - <TD> - - (<xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@eau" />) (<xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@elect" />) (<xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@chauf" />) - - <Table cellspacing="2" cellpadding="5"> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_baignoires" /> - </TD> - - <TD align ="left" width ="75%"> - Baignoire(s) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_douches" /> - </TD> - - <TD align ="left" width ="75%"> - Douche(s) - </TD> - - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_lavabos" /> - </TD> - - <TD align ="left" width ="75%"> - Lavabo(s) - </TD> - </TR> - <TR> - - <TD align ="left"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_wc" /> - </TD> - - <TD align ="left" width ="75%"> - W.C. - </TD> - </TR> - </Table> - </TD> - </TR> - </Table> - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Prof_Descr[@num_pev]"> - <hr size="5"/> - <h4> - Locaux Professionnels - </h4> - <Table cellspacing="2" cellpadding="5"> - <TR> - <TH> - N° - </TH> - <TH> - Surface (m²) - </TH> - </TR> - <TR> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Prof_Descr/@num_pev" /> - </TD> - <TD> - <xsl:value-of select="Mj_Pev/Mj_Prof_Descr/@surface" /> - </TD> - </TR> - </Table> - </xsl:if> - </xsl:for-each> - </body> - </html> - diff --git a/web_service/class/majic_lib/xsl/FP_fo_Complet.xsl b/web_service/class/majic_lib/xsl/FP_fo_Complet.xsl deleted file mode 100755 index 1ce443f2..00000000 --- a/web_service/class/majic_lib/xsl/FP_fo_Complet.xsl +++ /dev/null @@ -1,1762 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-width="21cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> - <fo:region-body margin-top="0cm" margin-bottom="0cm" margin-left="0.5cm" margin-right="0.5cm" /> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple" font-family="Times"> - <!-- Tableau global basé sur la structure de la première ligne du relevé de propriété --> - <fo:flow flow-name="xsl-region-body"> - - <fo:block > - <fo:external-graphic > - <xsl:attribute name="src"> - file:///C:\serveurs\Apache2\htdocs\rgd\images\bandeau.jpg - </xsl:attribute> - </fo:external-graphic> - </fo:block> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="17pt" color="#008393"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - Parcelle <xsl:value-of select="@section" /><xsl:value-of select="format-number(@num_parc, '0000')"/> - </xsl:for-each> - </fo:block> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2" > - <fo:table-column column-width="17%" /> - <fo:table-column column-width="83%" /> - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@num_voirie" /> - <xsl:value-of select="@adresse" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Commune :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@libcom" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Code Commune (Insee) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@codeinsee" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Cpte Propriétaire :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Parcelle/@dnupro" /> - </fo:block> - <!-- retour chariot --> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface cadastrale (m²) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@total_contenance_m2" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Urbaine :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@gurbpa" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Bâtie :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@gparbat" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Parcelle primitive :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@num_parc_prim = '')"> - <xsl:value-of select="@num_parc_prim" /> - </xsl:if> - <xsl:if test="@num_parc_prim = ''"> - - - </xsl:if> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - - <!--<fo:block> - <fo:external-graphic> - <xsl:attribute name="src"> - http://mapsrv.rgd74.fr/geomap70/mg/net/ggGetMapImage.aspx?USER=Administrator&PWD=admin&MAPNAME=Library://RISNET_GESTION/Cartes/RGD 73-74 - RISNET_GESTION_73_74.MapDefinition&SELOBJS=PARCELLE%2C<xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select='substring(@idpar,1,2)'/> - <xsl:value-of select='substring(@idpar,4,3)'/> - <xsl:if test ="substring(@idpar,7,3)='000'"> - <xsl:text disable-output-escaping="yes">-.-.-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,7,3)='000')"> - <xsl:value-of select='substring(@idpar,7,3)'/> - </xsl:if> - <xsl:if test ="substring(@idpar,10,1)='0'"> - <xsl:text disable-output-escaping="yes">-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,10,1)='0')"> - <xsl:value-of select='substring(@idpar,10,1)'/> - </xsl:if> - <xsl:value-of select='substring(@idpar,11,1)'/> - <xsl:value-of select='substring(@idpar,12)'/> - </xsl:for-each>-&CENTERX=&CENTERY=&SCALE=*8&HEIGHT=400&WIDTH=575&RESULTTYPE=JPG - </xsl:attribute> - </fo:external-graphic> - </fo:block>--> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Urbanisme : POS/PLU - </fo:block> - - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - <fo:table-column column-width="9%" /> - <fo:table-column column-width="27.48%" /> - <fo:table-column column-width="15.38%" /> - <fo:table-column column-width="7.29%" /> - <fo:table-column column-width="7.29%" /> - <fo:table-column column-width="9.79%" /> - <fo:table-column column-width="23.77%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Zonage</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Libellé</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m2)*</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">COS</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">CES</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Hauteur</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Réglement de la zone</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@zonage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@lib_zonage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@surface" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@cos" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@ces" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@hauteur" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://mapris.rgd74.fr/DocumentsPartenaires/Reglement_POS/ <xsl:value-of select="@idreg" />.pdf - </xsl:attribute>Consulter le réglement - </fo:basic-link> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - <fo:block text-align="left" vertical-align="middle" font-size="8pt"> - *calcul sur la surface graphique, exclusion si surf ‹ 2 m² - </fo:block> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://mapris.rgd74.fr/Risnet_Gestion/Application/Rapport/etat_pos_plu/fiche_pos.asp?codcom=<xsl:value-of select="@codecom" /> - </xsl:attribute>Avancement de l'actualisation/mise en ligne du POS/PLU de cette commune - </fo:basic-link> - </fo:block> - </xsl:for-each> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Propriétaire(s) de la parcelle - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="8pt"> - *Cliquer sur le n° de compte pour accéder à son relevé de propriété - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - <fo:table-column column-width="12%" /> - <fo:table-column column-width="12%" /> - <fo:table-column column-width="20%" /> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="26%" /> - <fo:table-column column-width="15%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell number-columns-spanned="2" background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nom</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Etat Civil</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell number-columns-spanned="2" background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://localhost/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=complet&format=pdf&version=1.0 - </xsl:attribute><xsl:value-of select="@dnupro" /> - </fo:basic-link> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@jdatnss" /> - </fo:block> - <!-- retour chariot --> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dldnss" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@l_ccodro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:if test ="..//Mj_Parcelle/Mj_Suf/Mj_Proprietaire[@dnupro]"> - <fo:table-row> - <fo:table-cell number-columns-spanned="6" background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Détail</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Numéro du lot</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nom</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Etat Civil</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="../Mj_Parcelle/Mj_Suf/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@dnulot" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://localhost/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=complet&format=pdf&version=1.0 - </xsl:attribute> - <xsl:value-of select="@dnupro" /> - </fo:basic-link> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@jdatnss" /> - </fo:block> - <!-- retour chariot --> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dldnss" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@l_ccodro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Subdivision(s) fiscale(s) - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11.2%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Lettre</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Groupe</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Occupation</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Classe</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m²)</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Revenu (€)</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Référence</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_Suf"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@suf = '')"> - <xsl:value-of select="@suf" /> - </xsl:if> - <xsl:if test="@suf = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@groupe = '')"> - <xsl:value-of select="@groupe" /> - </xsl:if> - <xsl:if test="@groupe = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@nature = '')"> - <xsl:value-of select="@nature" /> - </xsl:if> - <xsl:if test="@nature = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">-</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@clas = '')"> - <xsl:value-of select="@clas" /> - </xsl:if> - <xsl:if test="@clas = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dnupro" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@contenance_suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@revenu_cadastral_txt" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@revenu_reference_txt" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - - <xsl:if test="count(Mj/Mj_Compte_Communal_Parcelle/Mj_Bati) > 0"> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Elément(s) bâti(s) - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="15%" /> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="55%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Ref. local</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Date mutation</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Propriétaire(s)</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:for-each select="Mj_Proprietaire"> - <fo:table-row> - <xsl:if test="position()='1'"> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@num_invar" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@lib_nature" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@date_mut" /> - </fo:block> - </fo:table-cell> - </xsl:if> - <xsl:if test="position() > '1'"> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - </fo:block> - </fo:table-cell> - </xsl:if> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:for-each> - </fo:table-body> - </fo:table> - </xsl:if> - <!-- .........................................Description du local, mode Complet................................................. --> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="15pt" color="#008393"> - Local n° <xsl:value-of select="@num_invar" /> - </fo:block> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2" > - - <fo:table-column column-width="39%" /> - <fo:table-column column-width="40%" /> - <fo:table-column column-width="7%" /> - <fo:table-column column-width="7%" /> - <fo:table-column column-width="7%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Bat</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Esc</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Etage</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@voirie" /> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@bat" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@ent" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@niv" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Commune :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@libcom" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dteloc" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Occupation :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@lib_occupation" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@lib_nature" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Année de construction :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@annee_constr = '0')"> - <xsl:value-of select="@annee_constr" /> - </xsl:if> - <xsl:if test="@annee_constr = '0'"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Date de mutation :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@date_mut" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Valeur cadastrale (?) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Niveaux :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@niveaux" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="center" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"></fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Propriétaire(s) du local - </fo:block> - - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="27.5%" /> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="27.5%" /> - <fo:table-column column-width="15%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nom</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">État Civil</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type</fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://localhost/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=complet&format=pdf&version=1.0 - </xsl:attribute> - <xsl:value-of select="@dnupro" /> - </fo:basic-link> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@jdatnss" /> - <!-- retour chariot --> - <xsl:value-of select="@dldnss" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@l_ccodro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - P.E.V - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">N°</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Catégorie</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Tarif</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Local Type</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Val. Loc. Ref. (?)</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Val. Loc. Ann. (?)</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nat. Exemp.</fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj_Pev"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@num_pev = '')"> - <xsl:value-of select="@num_pev" /> - </xsl:if> - <xsl:if test="@num_pev = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@l_nature = '')"> - <xsl:value-of select="@l_nature" /> - </xsl:if> - <xsl:if test="@l_nature = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@cat = '')"> - <xsl:value-of select="@cat" /> - </xsl:if> - <xsl:if test="@cat = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@s_tar = '')"> - <xsl:value-of select="@s_tar" /> - </xsl:if> - <xsl:if test="@s_tar = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@local_type = '')"> - <xsl:value-of select="@local_type" /> - </xsl:if> - <xsl:if test="@local_type = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@val_loc_ref = '')"> - <xsl:value-of select="@val_loc_ref" /> - </xsl:if> - <xsl:if test="@val_loc_ref = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@val_loc_ann = '')"> - <xsl:value-of select="@val_loc_ann" /> - </xsl:if> - <xsl:if test="@val_loc_ann = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@l_nat_exon = '')"> - <xsl:value-of select="@l_nat_exon" /> - </xsl:if> - <xsl:if test="@l_nat_exon = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - - <xsl:if test ="Mj_Pev/Mj_Habit_Descr[@num_pev]"> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Habitation principale - <!-- retour chariot --> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="8pt"> - N° P.E.V : <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@num_pev" /> - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="30%" /> - <fo:table-column column-width="30%" /> - <fo:table-column column-width="20%" /> - <fo:table-column column-width="20%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Divers</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Eléments de confort</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Pièces</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surfaces (m²)</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:table table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="60%" /> - <fo:table-column column-width="40%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m²) :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_piece_total" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nbr pièces :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_piece_total" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nbr pièces princ. :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_piece_principal" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Entretien :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@l_Etat" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Année de Constr. :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@annee_constr" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nbr Niveaux :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_niveaux" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Gros murs :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@lib_mat_gros_mur" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Toitures :</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="right" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@lib_mat_toiture" /> - </fo:block> - </fo:table-cell> - - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:table table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="50%" /> - <fo:table-column column-width="50%" /> - - <fo:table-body> - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_baignoires > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_baignoires" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Baignoire(s)</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_douches > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_douches" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Douche(s)</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_lavabos > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_lavabos" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Lavabo(s)</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <xsl:if test="Mj_Pev/Mj_Habit_Descr/@nb_wc > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_wc" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">W.C.</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Eau :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@eau = 'EAU'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@eau = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Electricité :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@elect = 'ELECT'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@elect = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Gaz :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@gaz = 'GAZ'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@gaz = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Esc. de service :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@esc_serv = 'ESC_SERV'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@esc_serv = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Ascenseur :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@asc = 'ASC'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@asc = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Chauffage :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@chauf = 'CHAUF'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@chauf = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Vide ordure :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@vide_ord = 'VIDE_ORD'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@vide_ord = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Égout :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@egout = 'EGOUT'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Habit_Descr/@egout = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:table table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="30%" /> - <fo:table-column column-width="70%" /> - - <fo:table-body> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_sam" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">S. a manger</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_chambre" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Chambre</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_cuisine_m9" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Cuisine (inf.9m2)</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_cuisine_p9" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Cuisine (sup.9m2)</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_salle_eau" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">S. de bain</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@nb_annexe" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Annexe</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:table table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="30%" /> - <fo:table-column column-width="70%" /> - - <fo:table-body> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_cave" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - Cave(s) - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_grenier" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - Grenier(s) - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_terrasse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - Terrasse(s) - </fo:block> - </fo:table-cell> - - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Habit_Descr/@suf_garage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - Garage(s) - </fo:block> - </fo:table-cell> - - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr[@num_pev]"> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Dépendance(s) - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="10%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="19.5%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">N°</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m²)</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Pondération</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Entretien</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Gros murs</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Toitures</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Elt. confort</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@num_pev" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nature" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@surface" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@ponderation" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@l_Etat" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@lib_mat_gros_mur" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@lib_mat_toiture" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="45%" /> - <fo:table-column column-width="55%" /> - - <fo:table-body> - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_baignoires > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_baignoires" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Baignoire(s)</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_douches > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_douches" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Douche(s)</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_lavabos > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_lavabos" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Lavabo(s)</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <xsl:if test="Mj_Pev/Mj_Depend_Descr/@nb_wc > 0"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Depend_Descr/@nb_wc" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">W.C.</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Eau :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@eau = 'EAU'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@eau = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Chauffage :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@chauf = 'CHAUF'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@chauf = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Electricité :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align ="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@elect = 'ELECT'"> - Oui - </xsl:if> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test ="Mj_Pev/Mj_Depend_Descr/@elect = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </xsl:if> - <xsl:if test ="Mj_Pev/Mj_Prof_Descr[@num_pev]"> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Locaux Professionnels - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="15%" /> - <fo:table-column column-width="85%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">N°</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m²)</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Prof_Descr/@num_pev" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Pev/Mj_Prof_Descr/@surface" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </xsl:if> - </xsl:for-each> - </fo:flow> - </fo:page-sequence> - </fo:root> - </xsl:template> -</xsl:stylesheet> - - diff --git a/web_service/class/majic_lib/xsl/FP_fo_Restreint.xsl b/web_service/class/majic_lib/xsl/FP_fo_Restreint.xsl deleted file mode 100755 index a4ad0ace..00000000 --- a/web_service/class/majic_lib/xsl/FP_fo_Restreint.xsl +++ /dev/null @@ -1,593 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> - -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-width="21cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> - <fo:region-body margin-top="0cm" margin-bottom="0cm" margin-left="0.5cm" margin-right="0.5cm" /> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple" font-family="Times"> - <!-- Tableau global bas� sur la structure de la premi�re ligne du relev� de propri�t� --> - <fo:flow flow-name="xsl-region-body"> - - <fo:block > - <fo:external-graphic > - <xsl:attribute name="src"> - file:///C:\serveurs\Apache2\htdocs\rgd\images\bandeau.jpg - </xsl:attribute> - </fo:external-graphic> - </fo:block> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="19pt" color="#008393"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - Parcelle <xsl:value-of select="@section" /><xsl:value-of select="format-number(@num_parc, '0000')"/> - </xsl:for-each> - </fo:block> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2" > - <fo:table-column column-width="17%" /> - <fo:table-column column-width="83%" /> - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@num_voirie" /> - <xsl:value-of select="@adresse" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Commune :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@libcom" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Code Commune (Insee) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@codeinsee" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Cpte Propri�taire :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Parcelle/@dnupro" /> - </fo:block> - <!-- retour chariot --> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface cadastrale (m�) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@total_contenance_m2" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - - <!--<fo:block> - <fo:external-graphic> - <xsl:attribute name="src"> - http://mapsrv.rgd74.fr/geomap70/mg/net/ggGetMapImage.aspx?USER=Administrator&PWD=admin&MAPNAME=Library://RISNET_GESTION/Cartes/RGD 73-74 - RISNET_GESTION_73_74.MapDefinition&SELOBJS=PARCELLE%2C<xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select='substring(@idpar,1,2)'/> - <xsl:value-of select='substring(@idpar,4,3)'/> - <xsl:if test ="substring(@idpar,7,3)='000'"> - <xsl:text disable-output-escaping="yes">-.-.-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,7,3)='000')"> - <xsl:value-of select='substring(@idpar,7,3)'/> - </xsl:if> - <xsl:if test ="substring(@idpar,10,1)='0'"> - <xsl:text disable-output-escaping="yes">-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,10,1)='0')"> - <xsl:value-of select='substring(@idpar,10,1)'/> - </xsl:if> - <xsl:value-of select='substring(@idpar,11,1)'/> - <xsl:value-of select='substring(@idpar,12)'/> - </xsl:for-each>-&CENTERX=&CENTERY=&SCALE=*8&HEIGHT=400&WIDTH=575&RESULTTYPE=JPG - </xsl:attribute> - </fo:external-graphic> - </fo:block>--> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Urbanisme : POS/PLU - </fo:block> - - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - <fo:table-column column-width="9%" /> - <fo:table-column column-width="27.48%" /> - <fo:table-column column-width="15.38%" /> - <fo:table-column column-width="7.29%" /> - <fo:table-column column-width="7.29%" /> - <fo:table-column column-width="9.79%" /> - <fo:table-column column-width="23.77%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Zonage</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Libell�</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m2)*</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">COS</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">CES</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Hauteur</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">R�glement de la zone</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@zonage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@lib_zonage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@surface" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@cos" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@ces" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@hauteur" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://mapris.rgd74.fr/DocumentsPartenaires/Reglement_POS/ <xsl:value-of select="@idreg" />.pdf - </xsl:attribute>Consulter le r�glement - </fo:basic-link> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - <fo:block text-align="left" vertical-align="middle" font-size="8pt"> - *calcul sur la surface graphique, exclusion si surf ‹ 2 m� - </fo:block> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://mapris.rgd74.fr/Risnet_Gestion/Application/Rapport/etat_pos_plu/fiche_pos.asp?codcom=<xsl:value-of select="@codecom" /> - </xsl:attribute>Avancement de l'actualisation/mise en ligne du POS/PLU de cette commune - </fo:basic-link> - </fo:block> - </xsl:for-each> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Propri�taire(s) de la parcelle - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="8pt"> - *Cliquer sur le n� de compte pour acc�der � son relev� de propri�t� - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="12.5%" /> - <fo:table-column column-width="30%" /> - <fo:table-column column-width="30%" /> - <fo:table-column column-width="15%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell number-columns-spanned="2" background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nom</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://localhost/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=restreint&format=pdf&version=1.0 - </xsl:attribute> - <xsl:value-of select="@dnupro" /> - </fo:basic-link> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom_tiers" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@l_ccodro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:if test ="..//Mj_Parcelle/Mj_Suf/Mj_Proprietaire[@dnupro]"> - <fo:table-row> - <fo:table-cell number-columns-spanned="5" background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">D�tail</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Num�ro du lot</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nom</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="../Mj_Parcelle/Mj_Suf/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@dnulot" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://localhost/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=restreint&format=pdf&version=1.0 - </xsl:attribute> - <xsl:value-of select="@dnupro" /> - </fo:basic-link> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@l_ccodro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Subdivision(s) fiscale(s) - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="12.4%" /> - <fo:table-column column-width="12.4%" /> - <fo:table-column column-width="12.4%" /> - <fo:table-column column-width="12.6%" /> - <fo:table-column column-width="12.4%" /> - <fo:table-column column-width="12.6%" /> - <fo:table-column column-width="12.6%" /> - <fo:table-column column-width="12.6%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Lettre</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Groupe</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Occupation</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Classe</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m�)</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">R�f�rence</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_Suf"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@suf = '')"> - <xsl:value-of select="@suf" /> - </xsl:if> - <xsl:if test="@suf = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@groupe = '')"> - <xsl:value-of select="@groupe" /> - </xsl:if> - <xsl:if test="@groupe = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@nature = '')"> - <xsl:value-of select="@nature" /> - </xsl:if> - <xsl:if test="@nature = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">-</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@clas = '')"> - <xsl:value-of select="@clas" /> - </xsl:if> - <xsl:if test="@clas = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dnupro" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@contenance_suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@revenu_reference_txt" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - - <xsl:if test="count(Mj/Mj_Compte_Communal_Parcelle/Mj_Bati) > 0"> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - El�ment(s) b�ti(s) - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="15%" /> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="15%" /> - <fo:table-column column-width="55%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Ref. local</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Etages</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Propri�taire(s)</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:for-each select="Mj_Proprietaire"> - <fo:table-row> - <xsl:if test="position()='1'"> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@num_invar" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@lib_nature" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="../@niv" /> - </fo:block> - </fo:table-cell> - </xsl:if> - <xsl:if test="position() > '1'"> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - </fo:block> - </fo:table-cell> - </xsl:if> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dnupro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:for-each> - </fo:table-body> - </fo:table> - </xsl:if> - <!-- .........................................Propri�taire de B�tis, mode Restreint................................................. --> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Propri�taire(s) du local - </fo:block> - - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2" > - - <fo:table-column column-width="15%" /> - <fo:table-column column-width="35%" /> - <fo:table-column column-width="35%" /> - <fo:table-column column-width="15%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nom</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Type</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Bati/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://localhost/rgd/rgdservices.phtml?operation=GetReleveprop&compte=<xsl:value-of select="@dnupro"/>&type=restreint&format=pdf&version=1.0 - </xsl:attribute> - <xsl:value-of select="@dnupro" /> - </fo:basic-link> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_nom_tiers" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@l_ccodro" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:flow> - </fo:page-sequence> - </fo:root> - </xsl:template> -</xsl:stylesheet> - - diff --git a/web_service/class/majic_lib/xsl/FP_fo_SansNom.xsl b/web_service/class/majic_lib/xsl/FP_fo_SansNom.xsl deleted file mode 100755 index 59e985cc..00000000 --- a/web_service/class/majic_lib/xsl/FP_fo_SansNom.xsl +++ /dev/null @@ -1,394 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> - -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-width="21cm" page-height="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> - <fo:region-body margin-top="0cm" margin-bottom="0cm" margin-left="0.5cm" margin-right="0.5cm" /> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple" font-family="Times"> - <!-- Tableau global bas� sur la structure de la premi�re ligne du relev� de propri�t� --> - <fo:flow flow-name="xsl-region-body"> - - <fo:block > - <fo:external-graphic > - <xsl:attribute name="src"> - file:///C:\serveurs\Apache2\htdocs\rgd\images\bandeau.jpg - </xsl:attribute> - </fo:external-graphic> - </fo:block> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:block text-align="left" vertical-align="middle" font-size="17pt" color="#008393"> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - Parcelle <xsl:value-of select="@section" /><xsl:value-of select="format-number(@num_parc, '0000')"/> - </xsl:for-each> - </fo:block> - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2" > - <fo:table-column column-width="17%" /> - <fo:table-column column-width="83%" /> - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Adresse :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@num_voirie" /> - <xsl:value-of select="@adresse" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Commune :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@libcom" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Code Commune (Insee) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@codeinsee" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Cpte Propri�taire :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="Mj_Parcelle/@dnupro" /> - </fo:block> - <!-- retour chariot --> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface cadastrale (m�) :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@total_contenance_m2" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Urbaine :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@gurbpa" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">B�tie :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@gparbat" /> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Parcelle primitive :</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5" > - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@num_parc_prim = '')"> - <xsl:value-of select="@num_parc_prim" /> - </xsl:if> - <xsl:if test="@num_parc_prim = ''"> - - - </xsl:if> - </fo:block> - </xsl:for-each> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - - <!--<fo:block> - <fo:external-graphic> - <xsl:attribute name="src"> - http://mapsrv.rgd74.fr/geomap70/mg/net/ggGetMapImage.aspx?USER=Administrator&PWD=admin&MAPNAME=Library://RISNET_GESTION/Cartes/RGD 73-74 - RISNET_GESTION_73_74.MapDefinition&SELOBJS=PARCELLE%2C<xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:value-of select='substring(@idpar,1,2)'/> - <xsl:value-of select='substring(@idpar,4,3)'/> - <xsl:if test ="substring(@idpar,7,3)='000'"> - <xsl:text disable-output-escaping="yes">-.-.-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,7,3)='000')"> - <xsl:value-of select='substring(@idpar,7,3)'/> - </xsl:if> - <xsl:if test ="substring(@idpar,10,1)='0'"> - <xsl:text disable-output-escaping="yes">-</xsl:text> - </xsl:if> - <xsl:if test ="not(substring(@idpar,10,1)='0')"> - <xsl:value-of select='substring(@idpar,10,1)'/> - </xsl:if> - <xsl:value-of select='substring(@idpar,11,1)'/> - <xsl:value-of select='substring(@idpar,12)'/> - </xsl:for-each>-&CENTERX=&CENTERY=&SCALE=*8&HEIGHT=400&WIDTH=575&RESULTTYPE=JPG - </xsl:attribute> - </fo:external-graphic> - </fo:block>--> - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Urbanisme : POS/PLU - </fo:block> - - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - <fo:table-column column-width="9%" /> - <fo:table-column column-width="27.48%" /> - <fo:table-column column-width="15.38%" /> - <fo:table-column column-width="7.29%" /> - <fo:table-column column-width="7.29%" /> - <fo:table-column column-width="9.79%" /> - <fo:table-column column-width="23.77%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Zonage</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Libell�</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m2)*</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">COS</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">CES</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Hauteur</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">R�glement de la zone</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@zonage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@lib_zonage" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@surface" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@cos" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@ces" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@hauteur" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://mapris.rgd74.fr/DocumentsPartenaires/Reglement_POS/ <xsl:value-of select="@idreg" />.pdf - </xsl:attribute>Consulter le r�glement - </fo:basic-link> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - <fo:block text-align="left" vertical-align="middle" font-size="8pt"> - *calcul sur la surface graphique, exclusion si surf ‹ 2 m� - </fo:block> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_PosPlu"> - <fo:block color="blue" text-decoration="underline" text-align="left" vertical-align="middle" font-size="9pt"> - <fo:basic-link> - <xsl:attribute name="external-destination"> - http://mapris.rgd74.fr/Risnet_Gestion/Application/Rapport/etat_pos_plu/fiche_pos.asp?codcom=<xsl:value-of select="@codecom" /> - </xsl:attribute>Avancement de l'actualisation/mise en ligne du POS/PLU de cette commune - </fo:basic-link> - </fo:block> - </xsl:for-each> - - <fo:block color="#F1B4B4"> - <fo:leader leader-length="100%" leader-pattern="rule"/> - </fo:block> - - <fo:block text-align="left" vertical-align="middle" font-size="13pt" color="#990000"> - Subdivision(s) fiscale(s) - </fo:block> - <fo:table margin-bottom="35px" table-layout="fixed" width="100%" border-separation="2"> - - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11.2%" /> - <fo:table-column column-width="11.2%" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Lettre</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Groupe</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Nature</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Occupation</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Classe</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Compte</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Surface (m�)</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">Revenu (?)</fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#eeeeee" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">R�f�rence</fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle/Mj_Suf"> - <fo:table-row> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@suf = '')"> - <xsl:value-of select="@suf" /> - </xsl:if> - <xsl:if test="@suf = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@groupe = '')"> - <xsl:value-of select="@groupe" /> - </xsl:if> - <xsl:if test="@groupe = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@nature = '')"> - <xsl:value-of select="@nature" /> - </xsl:if> - <xsl:if test="@nature = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt">-</fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:if test="not(@clas = '')"> - <xsl:value-of select="@clas" /> - </xsl:if> - <xsl:if test="@clas = ''"> - - - </xsl:if> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@dnupro" /> - </fo:block> - </fo:table-cell> - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@contenance_suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@revenu_cadastral_txt" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell background-color="#F7F7F7" text-align="left" padding-left="5" padding-top="5" padding-bottom="5" padding-right="5"> - <fo:block text-align="left" vertical-align="middle" font-size="9pt"> - <xsl:value-of select="@revenu_reference_txt" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - - </fo:flow> - </fo:page-sequence> - </fo:root> - </xsl:template> -</xsl:stylesheet> - - diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport.xsl deleted file mode 100755 index 0df5da5c..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport.xsl +++ /dev/null @@ -1,303 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - -<xsl:template match="Rapport_Parcelle"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-height="29.7cm" page-width="21cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.2cm" margin-right="0.2cm"> - <fo:region-body region-name="Content" margin="0.2cm 0.2cm 0.2cm 0.2cm"></fo:region-body> - <fo:region-after region-name="Footer" extent="0.5in"></fo:region-after> - </fo:simple-page-master> - </fo:layout-master-set> - <fo:page-sequence master-reference="simple" font-family="Helvetica"> - - <!-- Début du pied de page qui se retrouvera sur chaque page --> - <fo:static-content flow-name="Footer"> - <fo:block text-align="right" font-size="6pt"> - Page <fo:page-number /> - </fo:block> - - <fo:block text-align="right" font-size="6pt"> - <xsl:value-of select="Mj_Compte_Communal_Parcelles/Mj_Compte_Communal_Parcelle/Mj_Parcelle/@dateheure" /> - </fo:block> - </fo:static-content> - <!-- Fin du pied de page --> - - <fo:flow flow-name="Content"> - - <fo:block> - - <!-- Création du contenu de la page pour chaque Mj_Compte_Communal_Parcelle trouvé --> - - <xsl:for-each select="Mj_Compte_Communal_Parcelles"> - - <fo:table table-layout="fixed" border-collapse="collapse"> - <fo:table-body> - <fo:table-row height="4cm"> - <!--fo:table-cell><fo:block><fo:external-graphic src="C:/serveurs/Apache2/htdocs/lib/majic_lib/pics_for_xsl/blason.bmp" content-height="2.5cm"/></fo:block></fo:table-cell--> - <fo:table-cell><fo:block font-weight="bold" text-align="center" font-size="14pt">Rapport de parcelles</fo:block></fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - <xsl:for-each select="./Mj_Compte_Communal_Parcelle"> - <fo:block border-color="black" border-style="double" border-width="1pt"> - - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="10pt"> - - <fo:table-body> - - <!-- Tableau d'affichage des informations de la parcelle --> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block font-weight="bold">PARCELLE</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="./Mj_Parcelle/@idpar" /></fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Adresse</fo:block></fo:table-cell> - <fo:table-cell> - <xsl:if test="normalize-space(./Mj_Parcelle/@num_voirie) != '' "> - <fo:block><xsl:value-of select="./Mj_Parcelle/@num_voirie" />, </fo:block> - </xsl:if> - <fo:block> <xsl:value-of select="./Mj_Parcelle/@adresse" />, </fo:block> - <fo:block> <xsl:value-of select="@libcom" /></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Surface cadastrale</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="./Mj_Parcelle/@contenance" /> m²</fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Emprise batie</fo:block></fo:table-cell> - <fo:table-cell> - <xsl:if test="./Mj_Parcelle/Mj_Emprises/@titre = 'Emprise Bati' "> - <xsl:if test="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect != '' "> - <fo:block><xsl:value-of select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect" /> m² = <xsl:value-of select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_ratio" /> % </fo:block> - </xsl:if> - </xsl:if> - <fo:block></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Emprise non-batie</fo:block></fo:table-cell> - <fo:table-cell> - <xsl:if test="./Mj_Parcelle/Mj_Emprises/@titre = 'Emprise Bati' "> - <xsl:if test="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect != '' "> - <fo:block> - <xsl:variable name="surf_parcelle" select="./Mj_Parcelle/@contenance"/> - <xsl:variable name="surf_emprisebati" select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect"/> - <xsl:variable name="res" select="round((($surf_parcelle - $surf_emprisebati)*100))*0.01"/> - - <xsl:variable name="ratio_emprisebati" select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_ratio"/> - <xsl:variable name="resratio" select="100 - $ratio_emprisebati"/> - - <xsl:value-of select="$res" /> m² = <xsl:value-of select="$resratio" /> %</fo:block> - </xsl:if> - </xsl:if> - <fo:block></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block>Compte propriétaire</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="./Mj_Parcelle/@dnupro" /></fo:block></fo:table-cell> - </fo:table-row> - - <!-- Tableau d'affichage des propriétaires de la parcelle --> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block font-weight="bold">PROPRIÉTAIRE</fo:block></fo:table-cell> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - <xsl:for-each select="./Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell><fo:block>Nom</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="@proprietaire_nom" /></fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block>Adresse</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="@proprietaire_adresse" /></fo:block></fo:table-cell> - </fo:table-row> - </xsl:for-each> - - <!-- Tableau d'affichage des informations de la subdi. fiscale de la parcelle --> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block font-weight="bold">SUBDIVISION FISCALE</fo:block></fo:table-cell> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Revenu</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="./Mj_Parcelle/@revenu_cadastral" /> €</fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Surface</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="./Mj_Parcelle/@contenance" /> m²</fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block>Occupation</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="./Mj_Parcelle/@grss_gr" /></fo:block></fo:table-cell> - </fo:table-row> - - <!-- Tableau d'affichage des emprises de la parcelle --> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block font-weight="bold">EMPRISES</fo:block></fo:table-cell> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - - <xsl:for-each select="./Mj_Parcelle/Mj_Emprises"> - <xsl:if test="./@emprise_totale_intersect != 0 "> - <fo:table-row> - <fo:table-cell> - <fo:block><xsl:value-of select="./@titre" /></fo:block> - </fo:table-cell> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - <xsl:for-each select="./Mj_Emprise"> - <fo:table-row> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - <fo:table-cell> - <fo:block> - Pourcentage de la parcelle intersectée : <xsl:value-of select="./@emprise_ratio_label" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - <xsl:for-each select="./Mj_Attributes/Mj_Attribute"> - <xsl:if test="./@title != '' "> - <fo:table-row> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - <fo:table-cell> - <fo:block> - <xsl:value-of select="./@title" /> : <xsl:value-of select="./@value" /> - <xsl:if test="./@label = 'intersect' "> m² </xsl:if> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - </xsl:for-each> - <fo:table-row height="0.5cm"> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - - <fo:table-row height="1cm"> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - - <!-- Tableau d'affichage des locaux de la parcelle --> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block font-weight="bold">LOCAL</fo:block></fo:table-cell> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - - <xsl:for-each select="./Mj_Bati"> - - <fo:table-row> - <fo:table-cell><fo:block>Adresse</fo:block></fo:table-cell> - <fo:table-cell><fo:block>Batiment <xsl:value-of select="@bat" />,Etage <xsl:value-of select="@niv" />,Porte <xsl:value-of select="@num_de_porte" />,<xsl:value-of select="voirie" />,<xsl:value-of select="@adresse" /></fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Type de local</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="@nat_loc" /></fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Valeur locative</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="@dvlpera" /> €</fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell><fo:block>Millièmes et lots</fo:block></fo:table-cell> - <fo:table-cell><fo:block></fo:block></fo:table-cell> - </fo:table-row> - <fo:table-row height="1cm"> - <fo:table-cell><fo:block>Compte propriétaire</fo:block></fo:table-cell> - <fo:table-cell><fo:block><xsl:value-of select="@b_dnupro" /></fo:block></fo:table-cell> - </fo:table-row> - - <!-- affichage en tableau des propriétaires des locaux --> - <xsl:for-each select="./Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell> - <fo:table> - <fo:table-body> - <fo:table-row height="1.5cm"> - <fo:table-cell width="2cm"><fo:block></fo:block></fo:table-cell> - <fo:table-cell width="5cm" font-size="9pt"><fo:block>Propriétaire local</fo:block></fo:table-cell> - <fo:table-cell width="13cm" font-size="9pt"><fo:block><xsl:value-of select="@proprietaire_nom" /> ; <xsl:value-of select="@proprietaire_adresse" /></fo:block></fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - - </xsl:for-each> - - - </fo:table-body> - - </fo:table> - - </fo:block> - - <!-- permet de sauter une page --> - <fo:block break-after="page"/> - - </xsl:for-each> - - <fo:block> - <fo:table> - <fo:table-body> - <fo:table-row height="1.5cm"> - <fo:table-cell width="2cm"><fo:block></fo:block></fo:table-cell> - <fo:table-cell width="5cm" font-size="9pt"><fo:block font-weight="bold" >Totaux</fo:block></fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:block> - - <fo:block> - <fo:table> - <fo:table-body> - <fo:table-row height="1.5cm"> - <fo:table-cell width="2cm"><fo:block></fo:block></fo:table-cell> - <fo:table-cell width="5cm" font-size="9pt"><fo:block>Surface cadastrale</fo:block></fo:table-cell> - <fo:table-cell width="13cm" font-size="9pt"><fo:block><xsl:value-of select="@Sum_contenance" /> m²</fo:block></fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:block> - - <fo:block> - <fo:table> - <fo:table-body> - <fo:table-row height="1.5cm"> - <fo:table-cell width="2cm"><fo:block></fo:block></fo:table-cell> - <fo:table-cell width="5cm" font-size="9pt"><fo:block>Revenu</fo:block></fo:table-cell> - <fo:table-cell width="13cm" font-size="9pt"><fo:block><xsl:value-of select="@Sum_revenu" /> €</fo:block></fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:block> - - <fo:block> - <fo:table> - <fo:table-body> - <fo:table-row height="1.5cm"> - <fo:table-cell width="2cm"><fo:block></fo:block></fo:table-cell> - <fo:table-cell width="5cm" font-size="9pt"><fo:block>Valeur locative</fo:block></fo:table-cell> - <fo:table-cell width="13cm" font-size="9pt"><fo:block><xsl:value-of select="@Sum_valeur_locative" /> €</fo:block></fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:block> - - </xsl:for-each> - - </fo:block> - - </fo:flow> - - </fo:page-sequence> - - </fo:root> - -</xsl:template> - -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_BatieNonBatie.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_BatieNonBatie.xsl deleted file mode 100755 index a4400866..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_BatieNonBatie.xsl +++ /dev/null @@ -1,176 +0,0 @@ -<?xml version="1.0" encoding='utf-8' ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="xml" indent="yes"/> -<xsl:template match="Rapport_Parcelle"> -<?mso-application progid="Excel.Sheet"?> - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:o="urn:schemas-microsoft-com:office:office" - xmlns:x="urn:schemas-microsoft-com:office:excel" - xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:html="http://www.w3.org/TR/REC-html40"> - <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> - <Author>Veremap.pro</Author> - <LastAuthor>Veremap.pro</LastAuthor> - <Company>Veremes</Company> - </DocumentProperties> - <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> - <WindowHeight>12300</WindowHeight> - <WindowWidth>18915</WindowWidth> - <WindowTopX>120</WindowTopX> - <WindowTopY>105</WindowTopY> - <ProtectStructure>False</ProtectStructure> - <ProtectWindows>False</ProtectWindows> - </ExcelWorkbook> - <Styles> - <Style ss:ID="Default" ss:Name="Normal"> - <Alignment ss:Vertical="Bottom"/> - <Borders/> - <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/> - <Interior/> - <NumberFormat/> - <Protection/> - </Style> - - <Style ss:ID="s63"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s64"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s65"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - </Style> - - </Styles> - <Worksheet ss:Name="Feuil1"> - <!--<xsl:variable name="nb_ligne"><xsl:value-of select="./XmlMapLog/XmlLog/@nb_ligne" /></xsl:variable>--> - <Table ss:ExpandedColumnCount="7" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60" ss:DefaultRowHeight="15"> - <!--<xsl:attribute name="ss:ExpandedRowCount"><xsl:value-of select="1000" /></xsl:attribute>--> - <Column ss:AutoFitWidth="0" ss:Width="103.5"/> - <Column ss:AutoFitWidth="0" ss:Width="105"/> - <Column ss:AutoFitWidth="0" ss:Width="119.25"/><!--<Column ss:Index="4" ss:AutoFitWidth="0" ss:Width="63.75"/>--> - <Column ss:AutoFitWidth="0" ss:Width="119.25"/> - <Column ss:AutoFitWidth="0" ss:Width="127.5"/> - <Column ss:AutoFitWidth="0" ss:Width="119.25"/> - <Column ss:AutoFitWidth="0" ss:Width="127.5"/> - - <Row ss:AutoFitHeight="0" ss:Height="15.75"> - <Cell ss:MergeAcross="2" ss:StyleID="s63"><Data ss:Type="String">PARCELLES</Data></Cell> - <Cell ss:MergeAcross="3" ss:StyleID="s64"><Data ss:Type="String">EMPRISES</Data></Cell> - </Row> - - <Row ss:AutoFitHeight="0"> - <Cell ss:StyleID="s65"><Data ss:Type="String">Parcelle</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Adresse</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Surface cadastrale (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Emprise bâtie (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Emprise bâtie (%)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Emprise non bâtie (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Emprise non bâtie (%)</Data></Cell> - </Row> - <xsl:for-each select="Mj_Compte_Communal_Parcelles/Mj_Compte_Communal_Parcelle"> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@idpar" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@adresse" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Parcelle/@contenance" /></Data></Cell> - <Cell> - <Data ss:Type="Number"> - <xsl:if test="./Mj_Parcelle/Mj_Emprises/@titre = 'Emprise Bati' "> - <xsl:if test="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect != '' "> - <xsl:value-of select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect" /> - </xsl:if> - </xsl:if> - </Data> - </Cell> - <Cell> - <Data ss:Type="Number"> - - <xsl:if test="./Mj_Parcelle/Mj_Emprises/@titre = 'Emprise Bati' "> - <xsl:if test="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect != '' "> - <xsl:value-of select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_ratio" /> - </xsl:if> - </xsl:if> - </Data> - </Cell> - - <Cell> - <Data ss:Type="Number"> - <xsl:if test="./Mj_Parcelle/Mj_Emprises/@titre = 'Emprise Bati' "> - <xsl:if test="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect != '' "> - <xsl:variable name="surf_parcelle" select="./Mj_Parcelle/@contenance"/> - <xsl:variable name="surf_emprisebati" select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect"/> - <xsl:variable name="res" select="round((($surf_parcelle - $surf_emprisebati)*100))*0.01"/> - <xsl:value-of select="$res" /> - </xsl:if> - </xsl:if> - </Data> - </Cell> - - <Cell> - <Data ss:Type="Number"> - - <xsl:if test="./Mj_Parcelle/Mj_Emprises/@titre = 'Emprise Bati' "> - <xsl:if test="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_intersect != '' "> - <xsl:variable name="ratio_emprisebati" select="./Mj_Parcelle/Mj_Emprises[@titre='Emprise Bati']/@emprise_totale_ratio"/> - <xsl:variable name="resratio" select="100 - $ratio_emprisebati"/> - <xsl:value-of select="$resratio" /> - </xsl:if> - </xsl:if> - </Data> - </Cell> - </Row> - - - </xsl:for-each> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String">TOTAUX</Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_m2" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_bati" /></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell> - <Data ss:Type="String"> - <xsl:variable name="sum_contenance" select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_m2"/> - <xsl:variable name="sum_contenance_bati" select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_bati"/> - <xsl:variable name="sum_contenance_non_bati" select="$sum_contenance - $sum_contenance_bati"/> - <xsl:value-of select="$sum_contenance_non_bati" /> - </Data> - </Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </Row> - - </Table> - <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> - <PageSetup> - <Header x:Margin="0.3"/> - <Footer x:Margin="0.3"/> - <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/> - </PageSetup> - <Unsynced/> - <Print> - <ValidPrinterInfo/> - <PaperSizeIndex>9</PaperSizeIndex> - <HorizontalResolution>600</HorizontalResolution> - <VerticalResolution>600</VerticalResolution> - </Print> - <Selected/> - <ProtectObjects>False</ProtectObjects> - <ProtectScenarios>False</ProtectScenarios> - </WorksheetOptions> - </Worksheet> - </Workbook> -</xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_EmprisePosPlu.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_EmprisePosPlu.xsl deleted file mode 100755 index a2d80118..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_EmprisePosPlu.xsl +++ /dev/null @@ -1,176 +0,0 @@ -<?xml version="1.0" encoding='utf-8' ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="xml" indent="yes"/> -<xsl:template match="Rapport_Parcelle"> -<?mso-application progid="Excel.Sheet"?> - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:o="urn:schemas-microsoft-com:office:office" - xmlns:x="urn:schemas-microsoft-com:office:excel" - xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:html="http://www.w3.org/TR/REC-html40"> - <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> - <Author>Veremap.pro</Author> - <LastAuthor>Veremap.pro</LastAuthor> - <Company>Veremes</Company> - </DocumentProperties> - <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> - <WindowHeight>12300</WindowHeight> - <WindowWidth>18915</WindowWidth> - <WindowTopX>120</WindowTopX> - <WindowTopY>105</WindowTopY> - <ProtectStructure>False</ProtectStructure> - <ProtectWindows>False</ProtectWindows> - </ExcelWorkbook> - <Styles> - <Style ss:ID="Default" ss:Name="Normal"> - <Alignment ss:Vertical="Bottom"/> - <Borders/> - <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/> - <Interior/> - <NumberFormat/> - <Protection/> - </Style> - <Style ss:ID="s61"> - <Alignment ss:Vertical="Bottom" ss:WrapText="1"/> - </Style> - <Style ss:ID="s62"> - <Alignment ss:Horizontal="Center" ss:WrapText="1"/> - </Style> - <Style ss:ID="s63"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s64"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s65"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - </Style> - - </Styles> - <Worksheet ss:Name="Feuil1"> - <Table ss:ExpandedColumnCount="40" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60" ss:DefaultRowHeight="15"> - <Column ss:AutoFitWidth="0" ss:Width="103.5"/> - <Column ss:AutoFitWidth="0" ss:Width="105"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Row> - <Cell ss:MergeAcross="2" ss:StyleID="s64"><Data ss:Type="String">PARCELLES</Data></Cell> - <Cell ss:MergeAcross="6" ss:StyleID="s64"><Data ss:Type="String">EMPRISES</Data></Cell> - </Row> - <Row ss:AutoFitHeight="0"> - <Cell ss:StyleID="s65"><Data ss:Type="String">Parcelle</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Adresse</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Surface cadastrale (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String"></Data></Cell> - </Row> - - <xsl:for-each select="Mj_Compte_Communal_Parcelles/Mj_Compte_Communal_Parcelle"> - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@idpar" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@adresse" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Parcelle/@contenance" /></Data></Cell> - <xsl:for-each select="./Mj_Parcelle/Mj_Emprises"> - <Cell><Data ss:Type="String"><xsl:value-of select="./@titre" /> :</Data></Cell> - <xsl:for-each select="./Mj_Emprise"> - <Cell> - <Data ss:Type="String">Pourcentage de la parcelle intersectée : <xsl:value-of select="./@emprise_ratio_label" />, -<xsl:for-each select="./Mj_Attributes/Mj_Attribute"> - <xsl:if test="./@title != '' "> -<xsl:value-of select="./@title" /> : <xsl:value-of select="./@value" /><xsl:if test="./@label = 'intersect' "> m²</xsl:if>, -</xsl:if> - </xsl:for-each> - </Data> - </Cell> - </xsl:for-each> - </xsl:for-each> - </Row> - </xsl:for-each> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String">TOTAUX</Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_m2" /></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </Row> - </Table> - - <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> - <PageSetup> - <Header x:Margin="0.3"/> - <Footer x:Margin="0.3"/> - <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/> - </PageSetup> - <Unsynced/> - <Print> - <ValidPrinterInfo/> - <PaperSizeIndex>9</PaperSizeIndex> - <HorizontalResolution>600</HorizontalResolution> - <VerticalResolution>600</VerticalResolution> - </Print> - <Selected/> - <ProtectObjects>False</ProtectObjects> - <ProtectScenarios>False</ProtectScenarios> - </WorksheetOptions> - </Worksheet> - </Workbook> -</xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Locaux.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Locaux.xsl deleted file mode 100755 index 6ef49212..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Locaux.xsl +++ /dev/null @@ -1,155 +0,0 @@ -<?xml version="1.0" encoding='utf-8' ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="xml" indent="yes"/> -<xsl:template match="Rapport_Parcelle"> -<?mso-application progid="Excel.Sheet"?> - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:o="urn:schemas-microsoft-com:office:office" - xmlns:x="urn:schemas-microsoft-com:office:excel" - xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:html="http://www.w3.org/TR/REC-html40"> - <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> - <Author>Veremap.pro</Author> - <LastAuthor>Veremap.pro</LastAuthor> - <Company>Veremes</Company> - </DocumentProperties> - <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> - <WindowHeight>12300</WindowHeight> - <WindowWidth>18915</WindowWidth> - <WindowTopX>120</WindowTopX> - <WindowTopY>105</WindowTopY> - <ProtectStructure>False</ProtectStructure> - <ProtectWindows>False</ProtectWindows> - </ExcelWorkbook> - <Styles> - <Style ss:ID="Default" ss:Name="Normal"> - <Alignment ss:Vertical="Bottom"/> - <Borders/> - <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/> - <Interior/> - <NumberFormat/> - <Protection/> - </Style> - - <Style ss:ID="s63"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s64"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s65"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - </Style> - - </Styles> - <Worksheet ss:Name="Feuil1"> - <Table ss:ExpandedColumnCount="7" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60" ss:DefaultRowHeight="15"> - <Column ss:AutoFitWidth="0" ss:Width="85"/> - <Column ss:AutoFitWidth="0" ss:Width="125"/> - <Column ss:AutoFitWidth="0" ss:Width="115"/> - <Column ss:AutoFitWidth="0" ss:Width="135"/> - <Column ss:AutoFitWidth="0" ss:Width="115"/> - <Column ss:AutoFitWidth="0" ss:Width="105"/> - <Column ss:AutoFitWidth="0" ss:Width="90"/> - - <Row ss:AutoFitHeight="0" ss:Height="15.75"> - <Cell ss:MergeAcross="2" ss:StyleID="s63"><Data ss:Type="String">PARCELLES</Data></Cell> - <Cell ss:MergeAcross="3" ss:StyleID="s64"><Data ss:Type="String">LOCAUX</Data></Cell> - </Row> - - <Row ss:AutoFitHeight="0" ss:StyleID="s65"> - <Cell><Data ss:Type="String">Parcelle</Data></Cell> - <Cell><Data ss:Type="String">Adresse</Data></Cell> - <Cell><Data ss:Type="String">Surface cadastrale (m²)</Data></Cell> - <Cell><Data ss:Type="String">Adresse local</Data></Cell> - <Cell><Data ss:Type="String">Type de local</Data></Cell> - <Cell><Data ss:Type="String">Valeur locative (Euros)</Data></Cell> - <Cell><Data ss:Type="String">Millièmes et lots</Data></Cell> - </Row> - - <xsl:for-each select="Mj_Bati_Parcelles/Mj_Bati_Parcelle"> - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"><xsl:value-of select="@id_par" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="@adresse" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="@contenance" /></Data></Cell> - <xsl:if test="./Mj_Bati/@bat != '' "> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@voirie" /> <xsl:value-of select="./Mj_Bati/@adresse" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@dteloc" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Bati/@dvlpera" /></Data></Cell> - <xsl:if test="./Mj_Bati/@dnumql != '' "> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@dnumql" />/<xsl:value-of select="./Mj_Bati/@ddenql" /></Data></Cell> - </xsl:if> - <xsl:if test="./Mj_Bati/@dnumql = '' "> - <Cell><Data ss:Type="String"></Data></Cell> - </xsl:if> - </xsl:if> - <xsl:if test="./Mj_Bati/@bat = '' "> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </xsl:if> - </Row> - <xsl:for-each select="./Mj_Bati"> - <xsl:if test="position()!=1"> - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@voirie" /> <xsl:value-of select="./@adresse" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@dteloc" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./@dvlpera" /></Data></Cell> - <xsl:if test="./@dnumql != '' "> - <Cell><Data ss:Type="String"><xsl:value-of select="./@dnumql" />/<xsl:value-of select="./@ddenql" /></Data></Cell> - </xsl:if> - <xsl:if test="./@dnumql = '' "> - <Cell><Data ss:Type="String"></Data></Cell> - </xsl:if> - </Row> - </xsl:if> - </xsl:for-each> - </xsl:for-each> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String">TOTAUX</Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Bati_Parcelles/@sum_contenance_m2" /></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Bati_Parcelles/@sum_valeur_locative" /></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </Row> - - </Table> - <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> - <PageSetup> - <Header x:Margin="0.3"/> - <Footer x:Margin="0.3"/> - <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/> - </PageSetup> - <Unsynced/> - <Print> - <ValidPrinterInfo/> - <PaperSizeIndex>9</PaperSizeIndex> - <HorizontalResolution>600</HorizontalResolution> - <VerticalResolution>600</VerticalResolution> - </Print> - <Selected/> - <ProtectObjects>False</ProtectObjects> - <ProtectScenarios>False</ProtectScenarios> - </WorksheetOptions> - </Worksheet> - </Workbook> -</xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Proprietaire.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Proprietaire.xsl deleted file mode 100755 index 32ded4b7..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_Proprietaire.xsl +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version="1.0" encoding='utf-8' ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="xml" indent="yes"/> -<xsl:template match="Rapport_Parcelle"> -<?mso-application progid="Excel.Sheet"?> - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:o="urn:schemas-microsoft-com:office:office" - xmlns:x="urn:schemas-microsoft-com:office:excel" - xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:html="http://www.w3.org/TR/REC-html40"> - <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> - <Author>Veremap.pro</Author> - <LastAuthor>Veremap.pro</LastAuthor> - <Company>Veremes</Company> - </DocumentProperties> - <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> - <WindowHeight>12300</WindowHeight> - <WindowWidth>18915</WindowWidth> - <WindowTopX>120</WindowTopX> - <WindowTopY>105</WindowTopY> - <ProtectStructure>False</ProtectStructure> - <ProtectWindows>False</ProtectWindows> - </ExcelWorkbook> - <Styles> - <Style ss:ID="Default" ss:Name="Normal"> - <Alignment ss:Vertical="Bottom"/> - <Borders/> - <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/> - <Interior/> - <NumberFormat/> - <Protection/> - </Style> - - <Style ss:ID="s63"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s64"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s65"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - </Style> - - </Styles> - <Worksheet ss:Name="Feuil1"> - <!--<xsl:variable name="nb_ligne"><xsl:value-of select="./XmlMapLog/XmlLog/@nb_ligne" /></xsl:variable>--> - <Table ss:ExpandedColumnCount="6" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60" ss:DefaultRowHeight="15"> - <!--<xsl:attribute name="ss:ExpandedRowCount"><xsl:value-of select="1000" /></xsl:attribute>--> - <Column ss:AutoFitWidth="0" ss:Width="103.5"/> - <Column ss:AutoFitWidth="0" ss:Width="105"/> - <Column ss:Index="4" ss:AutoFitWidth="0" ss:Width="63.75"/> - <Column ss:AutoFitWidth="0" ss:Width="119.25"/> - <Column ss:AutoFitWidth="0" ss:Width="127.5"/> - - <Row ss:AutoFitHeight="0" ss:Height="15.75"> - <Cell ss:MergeAcross="2" ss:StyleID="s63"><Data ss:Type="String">PARCELLES</Data></Cell> - <Cell ss:MergeAcross="2" ss:StyleID="s64"><Data ss:Type="String">PROPRIETAIRES</Data></Cell> - </Row> - <Row ss:AutoFitHeight="0"> - <Cell ss:StyleID="s65"><Data ss:Type="String">Parcelle</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Adresse</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Surface cadastrale (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Compte propriétaire</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Nom</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Adresse</Data></Cell> - </Row> - - <xsl:for-each select="Mj_Compte_Communal_Parcelles/Mj_Compte_Communal_Parcelle"> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@idpar" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@adresse" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Parcelle/@contenance" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Proprietaire/@dnupro" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Proprietaire/@proprietaire_nom" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Proprietaire/@proprietaire_adresse" /></Data></Cell> - </Row> - - <xsl:for-each select="./Mj_Proprietaire"> - <xsl:if test="position()!=1"> - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="@proprietaire_nom" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="@proprietaire_adresse" /></Data></Cell> - </Row> - </xsl:if> - </xsl:for-each> - </xsl:for-each> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String">TOTAUX</Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_m2" /></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </Row> - - </Table> - <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> - <PageSetup> - <Header x:Margin="0.3"/> - <Footer x:Margin="0.3"/> - <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/> - </PageSetup> - <Unsynced/> - <Print> - <ValidPrinterInfo/> - <PaperSizeIndex>9</PaperSizeIndex> - <HorizontalResolution>600</HorizontalResolution> - <VerticalResolution>600</VerticalResolution> - </Print> - <Selected/> - <ProtectObjects>False</ProtectObjects> - <ProtectScenarios>False</ProtectScenarios> - </WorksheetOptions> - </Worksheet> - </Workbook> -</xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_ProprietaireLocaux.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_ProprietaireLocaux.xsl deleted file mode 100755 index 8a9cfff6..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_ProprietaireLocaux.xsl +++ /dev/null @@ -1,179 +0,0 @@ -<?xml version="1.0" encoding='utf-8' ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="xml" indent="yes"/> -<xsl:template match="Rapport_Parcelle"> -<?mso-application progid="Excel.Sheet"?> - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:o="urn:schemas-microsoft-com:office:office" - xmlns:x="urn:schemas-microsoft-com:office:excel" - xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:html="http://www.w3.org/TR/REC-html40"> - <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> - <Author>Veremap.pro</Author> - <LastAuthor>Veremap.pro</LastAuthor> - <Company>Veremes</Company> - </DocumentProperties> - <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> - <WindowHeight>12300</WindowHeight> - <WindowWidth>18915</WindowWidth> - <WindowTopX>120</WindowTopX> - <WindowTopY>105</WindowTopY> - <ProtectStructure>False</ProtectStructure> - <ProtectWindows>False</ProtectWindows> - </ExcelWorkbook> - <Styles> - <Style ss:ID="Default" ss:Name="Normal"> - <Alignment ss:Vertical="Bottom"/> - <Borders/> - <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/> - <Interior/> - <NumberFormat/> - <Protection/> - </Style> - <Style ss:ID="s64"> - <Alignment ss:Horizontal="Center" ss:Vertical="Top"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s65"> - <Alignment ss:Horizontal="Center" ss:Vertical="Center" ss:WrapText="1"/> - </Style> - </Styles> - - <Worksheet ss:Name="Feuil1"> - <!--<xsl:variable name="nb_ligne"><xsl:value-of select="./XmlMapLog/XmlLog/@nb_ligne" /></xsl:variable>--> - <Table ss:ExpandedColumnCount="30" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60" ss:DefaultRowHeight="15"> - <!--<xsl:attribute name="ss:ExpandedRowCount"><xsl:value-of select="1000" /></xsl:attribute>--> - <Column ss:AutoFitWidth="0" ss:Width="100"/> - <Column ss:AutoFitWidth="0" ss:Width="100"/> - <Column ss:AutoFitWidth="0" ss:Width="200"/> - <Column ss:AutoFitWidth="0" ss:Width="55"/> - <Column ss:AutoFitWidth="0" ss:Width="60"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="90"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="45"/> - <Column ss:AutoFitWidth="0" ss:Width="200"/> - <Column ss:AutoFitWidth="0" ss:Width="80"/> - <Column ss:AutoFitWidth="0" ss:Width="115"/> - <Column ss:AutoFitWidth="0" ss:Width="200"/> - <Column ss:AutoFitWidth="0" ss:Width="70"/> - <Column ss:AutoFitWidth="0" ss:Width="80"/> - <Row ss:AutoFitHeight="0" ss:Height="15.75" ss:StyleID="s64"> - <Cell ss:MergeAcross="3"><Data ss:Type="String">PARCELLES</Data></Cell> - <Cell ss:MergeAcross="12"><Data ss:Type="String">LOCAUX</Data></Cell> - </Row> - - <Row ss:AutoFitHeight="0" ss:Height="30" ss:StyleID="s65"> - <Cell><Data ss:Type="String">Parcelle</Data></Cell> - <Cell><Data ss:Type="String">Commune</Data></Cell> - <Cell><Data ss:Type="String">Adresse parcelle</Data></Cell> - <Cell><Data ss:Type="String">Superficie parcelle(m²)</Data></Cell> - <Cell><Data ss:Type="String">Invariant</Data></Cell> - <Cell><Data ss:Type="String">Superficie local(m²)</Data></Cell> - <Cell><Data ss:Type="String">Type</Data></Cell> - <Cell><Data ss:Type="String">Nature</Data></Cell> - <Cell><Data ss:Type="String">Occupation</Data></Cell> - <Cell><Data ss:Type="String">Année construction</Data></Cell> - <Cell><Data ss:Type="String">Étage</Data></Cell> - <Cell><Data ss:Type="String">Adresse local</Data></Cell> - <Cell><Data ss:Type="String">Compte propriétaire</Data></Cell> - <Cell><Data ss:Type="String">Propriétaire</Data></Cell> - <Cell><Data ss:Type="String">Adresse propriétaire</Data></Cell> - <Cell><Data ss:Type="String">Indivision</Data></Cell> - <Cell><Data ss:Type="String">Droit</Data></Cell> - </Row> - - <xsl:for-each select="Mj_Bati_Parcelles/Mj_Bati_Parcelle"> - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"><xsl:value-of select="@id_par" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="@com" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="@adresse" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="@contenance" /></Data></Cell> - <xsl:if test="./Mj_Bati/@bat != '' "> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@num_invar" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Bati/Mj_Pev/Mj_Habit_Descr/@suf_piece_total" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@local_type" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@lib_nature" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@lib_occupation" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@annee_constr" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/@niv" /></Data></Cell> - <Cell><Data ss:Type="String">Batiment <xsl:value-of select="./Mj_Bati/@bat" /> <xsl:value-of select="./Mj_Bati/@ent" />, Etage <xsl:value-of select="./Mj_Bati/@niv" />, Porte <xsl:value-of select="./Mj_Bati/@num_de_porte" />,, <xsl:value-of select="./Mj_Bati/@adresse" /></Data></Cell> - </xsl:if> - <xsl:if test="./Mj_Bati/@bat = '' "> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </xsl:if> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/Mj_Proprietaire/@dnupro" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/Mj_Proprietaire/@proprietaire_nom" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/Mj_Proprietaire/@proprietaire_adresse" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/Mj_Proprietaire/@l_ccodem" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Bati/Mj_Proprietaire/@l_ccodro" /></Data></Cell> - </Row> - - <xsl:for-each select="./Mj_Bati/Mj_Proprietaire"> - <xsl:if test="position()!=1"> - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="../@num_invar" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="../Mj_Pev/Mj_Habit_Descr/@suf_piece_total" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="../@local_type" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="../@lib_nature" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="../@lib_occupation" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="../@annee_constr" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="../@niv" /></Data></Cell> - <Cell><Data ss:Type="String">Batiment <xsl:value-of select="../@bat" /> <xsl:value-of select="../@ent" />, Etage <xsl:value-of select="../@niv" />, Porte <xsl:value-of select="../@num_de_porte" />,, <xsl:value-of select="../@adresse" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@dnupro" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@proprietaire_nom" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@proprietaire_adresse" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@l_ccodem" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./@l_ccodro" /></Data></Cell> - </Row> - </xsl:if> - </xsl:for-each> - </xsl:for-each> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String">TOTAUX</Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Bati_Parcelles/@sum_contenance_m2" /></Data></Cell> - </Row> - - </Table> - <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> - <PageSetup> - <Header x:Margin="0.3"/> - <Footer x:Margin="0.3"/> - <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/> - </PageSetup> - <Unsynced/> - <Print> - <ValidPrinterInfo/> - <PaperSizeIndex>9</PaperSizeIndex> - <HorizontalResolution>600</HorizontalResolution> - <VerticalResolution>600</VerticalResolution> - </Print> - <Selected/> - <ProtectObjects>False</ProtectObjects> - <ProtectScenarios>False</ProtectScenarios> - </WorksheetOptions> - </Worksheet> - </Workbook> -</xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_SubdivisionFiscale.xsl b/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_SubdivisionFiscale.xsl deleted file mode 100755 index bd1e45b0..00000000 --- a/web_service/class/majic_lib/xsl/Mj_Rapport_Parcelle_SubdivisionFiscale.xsl +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding='utf-8' ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> -<xsl:output method="xml" indent="yes"/> -<xsl:template match="Rapport_Parcelle"> -<?mso-application progid="Excel.Sheet"?> - <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:o="urn:schemas-microsoft-com:office:office" - xmlns:x="urn:schemas-microsoft-com:office:excel" - xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" - xmlns:html="http://www.w3.org/TR/REC-html40"> - <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> - <Author>Veremap.pro</Author> - <LastAuthor>Veremap.pro</LastAuthor> - <Company>Veremes</Company> - </DocumentProperties> - <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> - <WindowHeight>12300</WindowHeight> - <WindowWidth>18915</WindowWidth> - <WindowTopX>120</WindowTopX> - <WindowTopY>105</WindowTopY> - <ProtectStructure>False</ProtectStructure> - <ProtectWindows>False</ProtectWindows> - </ExcelWorkbook> - <Styles> - <Style ss:ID="Default" ss:Name="Normal"> - <Alignment ss:Vertical="Bottom"/> - <Borders/> - <Font ss:FontName="Calibri" x:Family="Swiss" ss:Size="11" ss:Color="#000000"/> - <Interior/> - <NumberFormat/> - <Protection/> - </Style> - - <Style ss:ID="s63"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s64"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - <Borders> - <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="2"/> - <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="2"/> - </Borders> - </Style> - <Style ss:ID="s65"> - <Alignment ss:Horizontal="Center" ss:Vertical="Bottom"/> - </Style> - - </Styles> - <Worksheet ss:Name="Feuil1"> - <Table ss:ExpandedColumnCount="6" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="60" ss:DefaultRowHeight="15"> - <Column ss:AutoFitWidth="0" ss:Width="103.5"/> - <Column ss:AutoFitWidth="0" ss:Width="105"/> - <Column ss:AutoFitWidth="0" ss:Width="115"/> - <Column ss:AutoFitWidth="0" ss:Width="115"/> - <Column ss:AutoFitWidth="0" ss:Width="110"/> - <Column ss:AutoFitWidth="0" ss:Width="110"/> - - <Row ss:AutoFitHeight="0" ss:Height="15.75"> - <Cell ss:MergeAcross="2" ss:StyleID="s63"><Data ss:Type="String">PARCELLES</Data></Cell> - <Cell ss:MergeAcross="2" ss:StyleID="s64"><Data ss:Type="String">SUBDIVISION FISCALE</Data></Cell> - </Row> - <Row ss:AutoFitHeight="0"> - <Cell ss:StyleID="s65"><Data ss:Type="String">Parcelle</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Adresse</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Surface cadastrale (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Revenu (Euros)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Surface (m²)</Data></Cell> - <Cell ss:StyleID="s65"><Data ss:Type="String">Occupation</Data></Cell> - </Row> - <xsl:for-each select="./Mj_Compte_Communal_Parcelles/Mj_Compte_Communal_Parcelle"> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@idpar" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/@adresse" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Parcelle/@contenance" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./@total_revenu_cadastral" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./@total_contenance" /></Data></Cell> - <Cell><Data ss:Type="String"><xsl:value-of select="./Mj_Parcelle/Mj_Suf/@occupation" /></Data></Cell> - </Row> - </xsl:for-each> - - <Row ss:AutoFitHeight="0"> - <Cell><Data ss:Type="String">TOTAUX</Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_m2" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_revenu" /></Data></Cell> - <Cell><Data ss:Type="Number"><xsl:value-of select="./Mj_Compte_Communal_Parcelles/@Sum_contenance_m2" /></Data></Cell> - <Cell><Data ss:Type="String"></Data></Cell> - </Row> - - </Table> - <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> - <PageSetup> - <Header x:Margin="0.3"/> - <Footer x:Margin="0.3"/> - <PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/> - </PageSetup> - <Unsynced/> - <Print> - <ValidPrinterInfo/> - <PaperSizeIndex>9</PaperSizeIndex> - <HorizontalResolution>600</HorizontalResolution> - <VerticalResolution>600</VerticalResolution> - </Print> - <Selected/> - <ProtectObjects>False</ProtectObjects> - <ProtectScenarios>False</ProtectScenarios> - </WorksheetOptions> - </Worksheet> - </Workbook> -</xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/Mj_fo.xsl b/web_service/class/majic_lib/xsl/Mj_fo.xsl deleted file mode 100755 index dbfa9df5..00000000 --- a/web_service/class/majic_lib/xsl/Mj_fo.xsl +++ /dev/null @@ -1,2405 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-height="21cm" page-width="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> - <fo:region-body margin="0.5cm 0 0.5cm 0" /> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple" font-family="Times"> -<!-- Tableau global bas� sur la structure de la premi�re ligne du relev� de propri�t� --> - <fo:flow flow-name="xsl-region-body"> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="28.7" /> - -<!-- D�but de l'en-t�te qui se retrouvera sur chaque page du RP --> - <fo:table-header> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="1.2cm" /> - <fo:table-column column-width="0.6cm" /> - <fo:table-column column-width="0.6cm" /> - <fo:table-column column-width="0.9cm" /> - <fo:table-column column-width="0.9cm" /> - <fo:table-column column-width="6.4cm" /> - <fo:table-column column-width="15.4cm" /> - <fo:table-column column-width="1.8cm" /> - <fo:table-column column-width="0.9cm" /> - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">ANNEE DE MAJ</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@annee_de_maj" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">DEP DIR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@dep_dir" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" padding-left="0.1cm" border-width="0.5pt"> - <fo:block line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@com" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle" font-size="16pt" font-style="italic">RELEVE DE PROPRIETE ( - <fo:page-number /> - - / - <fo:page-number-citation ref-id="theEnd" /> - - )</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">NUMERO COMMUNAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@numero_communal" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage de la ligne titre "PROPRIETAIRE" --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="28.7cm" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell padding-top="0.5cm" padding-bottom="0.1cm"> - <fo:block font-size="8pt" text-align="center">PROPRIETAIRE</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du tableau proprietaire --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" border="0.5pt solid black" width="100%" font-size="8pt" > - <fo:table-column column-width="21.7cm" /> - - <fo:table-column column-width="7cm" /> - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Proprietaire | Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell> - <fo:block> - <!-- <xsl:value-of select="@l_ccodro" /> --> - - � - <!-- <xsl:value-of select="@l_ccodem" /> --> - - � - <xsl:value-of select="@dnuper" /> - - � - <xsl:value-of select="@proprietaire_nom" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.3cm"> - <fo:block> - <xsl:value-of select="@jdatnss" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell padding-left="0.3cm"> - <fo:block> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block> - <xsl:value-of select="@dldnss" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - -<!-- Fin de l'en-t�te --> -<!-- D�but du corps du tableau global --> - <fo:table-body> -<!-- Affichage des poprietes baties --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="0.4cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="6.4cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.4cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="2.4cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.7cm" /> - -<!-- Affichage de l'en-t�te des propri�t�s baties --> - <fo:table-header> - <fo:table-row> - <fo:table-cell number-columns-spanned="26" padding-top="1cm" padding-bottom="0.1cm"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">PROPRIETES BATIES</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell number-columns-spanned="7" border="0.5pt solid black"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">DESIGNATION DES PROPRIETES</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="5" border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">IDENTIFICATION DU LOCAL</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="14" border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">EVALUATION DU LOCAL</fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des titres des colonnes des propri�t�s baties --> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SECTION</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PLAN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CP</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N� Voirie</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ADRESSE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CODE RIVOLI</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">BAT</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ENT</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">NIV</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PORTE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�INVAR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">S TAR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">M EVAL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AF</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">NAT LOC</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CAT</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">REVENU CADASTRAL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COLL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">AN RET</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">AN DEB</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FRACTION RC EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">% EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" > - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">TX OM</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COEF</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - - <fo:table-footer> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-footer> - -<!-- Affichage des donn�es des propri�t�s baties --> - <fo:table-body> - <fo:table-row> - <fo:table-cell> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Bati | Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cp" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@voirie" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@bat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ent" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@niv" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_de_porte" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_invar" /> - </fo:block> - </fo:table-cell> - -<!--Affichage du PEV lorsqu'il n'y en a qu'un (m�me ligne) --> - <xsl:if test="count(Mj_Pev) = 1"> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@coll" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@an_ret" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@fraction_rc_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@pourc_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@tx_om" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!--Affichage du premier PEV lorsqu'il y en a plusieurs (m�me ligne) --> - <xsl:if test="count(Mj_Pev) > 1"> - <xsl:for-each select="Mj_Pev"> - <xsl:if test="position()=1"> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - </xsl:for-each> - </xsl:if> - </fo:table-row> - -<!--Affichage des PEV suivants (lignes suivantes) --> - <xsl:if test="count(Mj_Pev) > 1"> - <xsl:for-each select="Mj_Pev"> - <xsl:if test="position()>1"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@tx_om" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - </xsl:for-each> - </xsl:if> - -<!--Affichage des Lot_Local s'il y en a --> - <xsl:if test="count(Mj_Lot_Local) > 0"> - <xsl:for-each select="Mj_Lot_Local"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.4cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@lot" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du pied du tableau des proprietes baties --> - <fo:table-row> - <fo:table-cell> - <fo:block keep-together="always" keep-with-previous="always"> - <fo:table table-layout="fixed" border-collapse="collapse" width="28.7cm" border-color="black" border-right="0.5pt" border-left="0.5pt" border-top="0pt" border-bottom="0.5pt" border-style="solid" font-size="6pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="6.9cm" /> - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_com_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_dep_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_reg_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="left" line-height="0.60cm" vertical-align="middle">REV IMPOSABLE</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">DEP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">R</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_com_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_dep_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_reg_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des proprietes non baties --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="7.9cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="1.4cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="1.1cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - -<!-- Affichage de l'en-t�te des proprietes non baties --> - <fo:table-header> - <fo:table-row> - <fo:table-cell number-columns-spanned="23" padding-top="1cm" padding-bottom="0.1cm"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">PROPRIETES NON BATIES</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell number-columns-spanned="6" border="0.5pt solid black"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">DESIGNATION DES PROPRIETES</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="17" border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">EVALUATION</fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des titres des colonnes des proprietes non baties --> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SECTION</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PLAN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N� Voirie</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ADRESSE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CODE RIVOLIs</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">N�PARC PRIM</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FP DP</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">S TAR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SUF</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">GR/SS GR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CLASSE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT CULT</fo:block> - </fo:table-cell> - -<!-- Creation d'une table pour afficher le titre de colonne (CONTENANCE HA A CA) --> - <fo:table-cell number-columns-spanned="3" border="0.5pt solid black"> - <fo:table table-layout="fixed" border-collapse="collapse" font-size="6pt" width="100%"> - <fo:table-body> - <fo:table-row> - <fo:table-cell number-columns-spanned="3" padding-top="0.05cm"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CONTENANCE</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">HA</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">A</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CA</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - -<!-- Suite de l'affichage des titres des colonnes des proprietes non baties --> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">REVENU CADASTRAL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COLL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">AN RET</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FRACTION RC EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">% EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">POS</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - - <fo:table-footer> - <fo:table-row> - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="3" border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-bottom="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-footer> - -<!-- Affichage des donnees des proprietes non baties --> - <fo:table-body> - <fo:table-row> - <fo:table-cell> - <fo:block></fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Parcelle | Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <fo:table-row> - <xsl:choose> - <xsl:when test="Mj_Suf/@num_voirie = '*****' "> - <!-- Premiere ligne si la parcelle est concern�es par un lot en Biens Non d�limit�s --> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_voirie" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-left="0.1cm"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_parc_prim" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@fp_dp" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - </xsl:when> - <xsl:otherwise> - <!-- Premiere ligne si la parcelle n'est pas concern�e par un lot en Biens Non d�limit�s --> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_voirie" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-left="0.1cm"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_parc_prim" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@fp_dp" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@suf" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@grss_gr" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@clas" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_cult" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - <!-- Affichage de la colonne revenu cadastral lorsqu'il a une seule suf --> - <xsl:if test="count(Mj_Suf)=1"> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - </xsl:if> - <!-- Affichage de la colonne revenu cadastral lorsqu'il a plusieurs sufs --> - <xsl:if test="count(Mj_Suf) > 1"> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"></fo:block> - </fo:table-cell> - </xsl:if> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="Mj_Suf/@nat_exo" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - </xsl:otherwise> - </xsl:choose> - </fo:table-row> -<!-- Suite de l'affichage des donnees des proprietes non baties - Affichage des SUF--> - <xsl:if test="count(Mj_Suf) > 0"> - <xsl:choose> - <xsl:when test="count(Mj_Suf) = 1"> - <xsl:if test="count(Mj_Suf/Mj_Exon_Suf) > 0"> - <xsl:for-each select="Mj_Suf/Mj_Exon_Suf"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@ccolloc" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@pexn div 100" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@rcexnba div 100" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:when> - <xsl:otherwise> -<!-- Affichage des Suf lorsqu'il y en a plusieurs --> - <xsl:if test="count(Mj_Suf) > 1"> - <xsl:for-each select="Mj_Suf"> - <fo:table-row> - <xsl:choose> - <xsl:when test="@num_voirie = '*****' "> - <!-- La SUF est concern�e par un lot en Biens Non d�limit�s --> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@date" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@section" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@num_plan" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_voirie" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.25cm"> - <xsl:text> </xsl:text><xsl:value-of select="@dnupdl" /> LOT <xsl:value-of select="@dnulot" /><xsl:text> </xsl:text><xsl:value-of select="@dnumql" />/<xsl:value-of select="@ddenql" /> - </fo:block> - </fo:table-cell> - </xsl:when> - <xsl:otherwise> - <!-- La SUF n'est pas concern�e par un lot en Biens Non d�limit�s --> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - </xsl:otherwise> - </xsl:choose> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@suf" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@grss_gr" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@clas" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_cult" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - </fo:table-row> - <!-- Affichage des Exon_Suf lorsqu'il y en a --> - <xsl:if test="count(Mj_Exon_Suf) > 0"> - <xsl:for-each select="Mj_Exon_Suf"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@ccolloc" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@pexn div 100" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@rcexnba div 100" /> - </fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"></fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </xsl:if> - </xsl:otherwise> - </xsl:choose> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du pied du tableau des proprietes non baties --> - <fo:table-row> - <fo:table-cell> - <fo:block keep-together="always" keep-with-previous="always"> - <fo:table width="26.6cm" table-layout="fixed" border-color="black" border-right="0.5pt" border-left="0.5pt" border-top="0pt" border-bottom="0.5pt" border-style="solid" border-collapse="collapse" font-size="6pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="3.9cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="1.5cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="1.5cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="1.5cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2.3cm" /> - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">HA</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">A</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">CA</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_com_par_float" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_tax_ad_par_float" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="left" line-height="0.60cm" vertical-align="middle">CONT</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">REV IMPOSABLE</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_par_float" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">TAXE AD</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell padding-right="0.8cm"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">MAJ POS</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_com_par_float" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_tax_ad_par_float" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - -<!-- Fin de la table du pied du tableau des propi�t�s non baties --> - </fo:table> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Fin du corps du tableau global --> - </fo:table-body> - -<!-- Fin du tableau global --> - </fo:table> - - <fo:block id="theEnd" /> - </fo:flow> - </fo:page-sequence> - </fo:root> - </xsl:template> -</xsl:stylesheet> - diff --git a/web_service/class/majic_lib/xsl/Mj_fo_Restreint.xsl b/web_service/class/majic_lib/xsl/Mj_fo_Restreint.xsl deleted file mode 100755 index 995c9dec..00000000 --- a/web_service/class/majic_lib/xsl/Mj_fo_Restreint.xsl +++ /dev/null @@ -1,1791 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-height="21cm" page-width="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> - <fo:region-body margin="0.5cm 0 0.5cm 0" /> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple" font-family="Times"> -<!-- Tableau global bas� sur la structure de la premi�re ligne du relev� de propri�t� --> - <fo:flow flow-name="xsl-region-body"> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="28.7" /> - -<!-- D�but de l'en-t�te qui se retrouvera sur chaque page du RP --> - <fo:table-header> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="6.4cm" /> - - <fo:table-column column-width="15.4cm" /> - - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="0.9cm" /> - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell border-color="black" border-style="solid" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">ANNEE DE MAJ</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@annee_de_maj" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">DEP DIR</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@dep_dir" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" padding-left="0.1cm" border-width="0.5pt"> - <fo:block line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@com" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle" font-size="16pt" font-style="italic">RELEVE DE PROPRIETE ( - <fo:page-number /> - - / - <fo:page-number-citation ref-id="theEnd" /> - - )</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">NUMERO COMMUNAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="substring(@numero_communal,6)" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage de la ligne titre "PROPRIETAIRE" --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="28.7cm" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell padding-top="0.5cm" padding-bottom="0.1cm"> - <fo:block font-size="8pt" text-align="center">PROPRIETAIRE</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du tableau proprietaire --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" border-color="black" border="0.5pt" border-style="solid" border-collapse="collapse" width="100%" font-size="8pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="28.7cm" /> - - - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Proprietaire | Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell> - <fo:block> - <xsl:value-of select="@l_ccodro" /> - - � - <xsl:value-of select="@l_ccodem" /> - - � - <xsl:value-of select="@dnuper" /> - - � - <xsl:value-of select="@proprietaire_nom_tiers" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell padding-left="0.3cm"> - <fo:block> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - -<!-- Fin de l'en-t�te --> -<!-- D�but du corps du tableau global --> - <fo:table-body> -<!-- Affichage des poprietes baties --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="0.4cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="11.3cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.4cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="2.4cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.7cm" /> - -<!-- Affichage de l'en-t�te des propri�t�s baties --> - <fo:table-header> - <fo:table-row> - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="20" border-left="hidden" border-right="hidden" border-top="hidden" border-bottom="hidden" border-width="0.5pt" padding-top="1cm" padding-bottom="0.1cm"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">PROPRIETES BATIES</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="7" border-right="hidden" border-bottom="hidden" border-width="0.5pt"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">DESIGNATION DES PROPRIETES</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="5" border-left="hidden" border-bottom="hidden" border-right="hidden" border-width="0.5pt"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">IDENTIFICATION DU LOCAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="8" border-left="hidden" border-bottom="hidden" border-width="0.5pt"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">EVALUATION DU LOCAL</fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des titres des colonnes des propri�t�s baties --> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AN</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SECTION</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PLAN</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CP</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N� Voirie</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ADRESSE</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CODE RIVOLI</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">BAT</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ENT</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">NIV</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PORTE</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�INVAR</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">S TAR</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">M EVAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AF</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">NAT LOC</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CAT</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">REVENU CADASTRAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">TX OM</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COEF</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - - <fo:table-footer> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-footer> - -<!-- Affichage des donn�es des propri�t�s baties --> - <fo:table-body> - <fo:table-row> - <fo:table-cell> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Bati | Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cp" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@voirie" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-left="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@bat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ent" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@niv" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_de_porte" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_invar" /> - </fo:block> - </fo:table-cell> - -<!--Affichage du PEV lorsqu'il n'y en a qu'un (m�me ligne) --> - <xsl:if test="count(Mj_Pev) = 1"> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@tx_om" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!--Affichage du premier PEV lorsqu'il y en a plusieurs (m�me ligne) --> - <xsl:if test="count(Mj_Pev) > 1"> - <xsl:for-each select="Mj_Pev"> - <xsl:if test="position()=1"> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - </xsl:for-each> - </xsl:if> - </fo:table-row> - -<!--Affichage des PEV suivants (lignes suivantes) --> - <xsl:if test="count(Mj_Pev) > 1"> - <xsl:for-each select="Mj_Pev"> - <xsl:if test="position()>1"> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@tx_om" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - </xsl:for-each> - </xsl:if> - -<!--Affichage des Lot_Local s'il y en a --> - <xsl:if test="count(Mj_Lot_Local) > 0"> - <xsl:for-each select="Mj_Lot_Local"> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.4cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@lot" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du pied du tableau des proprietes baties --> - <fo:table-row> - <fo:table-cell> - <fo:block keep-together="always" keep-with-previous="always"> - <fo:table table-layout="fixed" border-collapse="collapse" width="28.7cm" border-color="black" border-right="0.5pt" border-left="0.5pt" border-top="0pt" border-bottom="0.5pt" border-style="solid" font-size="6pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="6.9cm" /> - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="left" line-height="0.60cm" vertical-align="middle">REV IMPOSABLE</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">DEP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">R</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_com_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_dep_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_reg_bati_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des proprietes non baties --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="12.1cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="1.4cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="1.1cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="0.6cm" /> - -<!-- Affichage de l'en-t�te des proprietes non baties --> - <fo:table-header> - <fo:table-row> - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="18" border-right="hidden" border-bottom="hidden" border-left="hidden" border-top="hidden" border-width="0.5pt" padding-top="1cm" padding-bottom="0.1cm"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">PROPRIETES NON BATIES</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="6" border-right="hidden" border-bottom="hidden" border-width="0.5pt"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">DESIGNATION DES PROPRIETES</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" number-columns-spanned="12" border-left="hidden" border-bottom="hidden" border-width="0.5pt"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">EVALUATION</fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des titres des colonnes des proprietes non baties --> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AN</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SECTION</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PLAN</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N� Voirie</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ADRESSE</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CODE RIVOLI</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">N�PARC PRIM</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FP DP</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">S TAR</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SUF</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">GR/SS GR</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CLASSE</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT CULT</fo:block> - </fo:table-cell> - -<!-- Creation d'une table pour afficher le titre de colonne (CONTENANCE HA A CA) --> - <fo:table-cell number-columns-spanned="3" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:table table-layout="fixed" border-collapse="collapse" font-size="6pt" width="100%"> - <fo:table-body> - <fo:table-row> - <fo:table-cell number-columns-spanned="3" padding-top="0.05cm"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CONTENANCE</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">HA</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">A</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CA</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - -<!-- Suite de l'affichage des titres des colonnes des proprietes non baties --> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">REVENU CADASTRAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">POS</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - - <fo:table-footer> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="3" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-footer> - -<!-- Affichage des donnees des proprietes non baties --> - <fo:table-body> - <fo:table-row> - <fo:table-cell> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Parcelle | Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_voirie" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_parc_prim" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@fp_dp" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@grss_gr" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@clas" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_cult" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - -<!-- Affichage de la colonne revenu cadastral lorsqu'il a une seule suf --> - <xsl:if test="count(Mj_Suf)=1"> - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!-- Affichage de la colonne revenu cadastral lorsqu'il a plusieurs sufs --> - <xsl:if test="count(Mj_Suf) > 1"> - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!-- Suite de l'affichage des donnees des proprietes non baties --> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des Suf lorsqu'il y en a plusieurs --> - <xsl:if test="count(Mj_Suf) > 1"> - <xsl:for-each select="Mj_Suf"> - <fo:table-row> - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@grss_gr" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@clas" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_cult" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border-color="black" border-width="0.5pt" border-style="solid" border-right="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du pied du tableau des proprietes non baties --> - <fo:table-row> - <fo:table-cell> - <fo:block keep-together="always" keep-with-previous="always"> - <fo:table width="26.6cm" table-layout="fixed" border-color="black" border-right="0.5pt" border-left="0.5pt" border-top="0pt" border-bottom="0.5pt" border-style="solid" border-collapse="collapse" font-size="6pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="3.9cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.3cm" /> - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle">HA</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle">A</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle">CA</fo:block> - </fo:table-cell> - - - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="left" line-height="0.60cm" vertical-align="middle">CONT</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">REV IMPOSABLE</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_par_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">TAXE AD</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell > - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.8cm"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">MAJ POS</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_com_par_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_tax_ad_par_float" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - -<!-- Fin de la table du pied du tableau des propi�t�s non baties --> - </fo:table> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Fin du corps du tableau global --> - </fo:table-body> - -<!-- Fin du tableau global --> - </fo:table> - - <fo:block id="theEnd" /> - </fo:flow> - </fo:page-sequence> - </fo:root> - </xsl:template> -</xsl:stylesheet> - diff --git a/web_service/class/majic_lib/xsl/Mj_fo_tiers.xsl b/web_service/class/majic_lib/xsl/Mj_fo_tiers.xsl deleted file mode 100755 index cd17f9b1..00000000 --- a/web_service/class/majic_lib/xsl/Mj_fo_tiers.xsl +++ /dev/null @@ -1,2037 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> - <fo:layout-master-set> - <fo:simple-page-master master-name="simple" page-height="21cm" page-width="29.7cm" margin-top="0.5cm" margin-bottom="0.5cm" margin-left="0.5cm" margin-right="0.5cm"> - <fo:region-body margin="0.5cm 0 0.5cm 0" /> - </fo:simple-page-master> - </fo:layout-master-set> - - <fo:page-sequence master-reference="simple" font-family="Times"> -<!-- Tableau global bas� sur la structure de la premi�re ligne du relev� de propri�t� --> - <fo:flow flow-name="xsl-region-body"> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="28.7" /> - -<!-- D�but de l'en-t�te qui se retrouvera sur chaque page du RP --> - <fo:table-header> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="1.2cm" /> - <fo:table-column column-width="0.6cm" /> - <fo:table-column column-width="0.6cm" /> - <fo:table-column column-width="0.9cm" /> - <fo:table-column column-width="0.9cm" /> - <fo:table-column column-width="6.4cm" /> - <fo:table-column column-width="15.4cm" /> - <fo:table-column column-width="1.8cm" /> - <fo:table-column column-width="0.9cm" /> - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">ANNEE DE MAJ</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@annee_de_maj" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">DEP DIR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@dep_dir" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" padding-left="0.1cm" border-width="0.5pt"> - <fo:block line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@com" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle" font-size="16pt" font-style="italic">RELEVE DE PROPRIETE ( - <fo:page-number /> - - / - <fo:page-number-citation ref-id="theEnd" /> - - )</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" line-height="0.25cm" vertical-align="middle">NUMERO COMMUNAL</fo:block> - </fo:table-cell> - - <fo:table-cell border-color="black" border-style="solid" border-width="0.5pt"> - <fo:block text-align="center" line-height="0.5cm" vertical-align="middle"> - <xsl:value-of select="@numero_communal" /> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage de la ligne titre "PROPRIETAIRE" --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="28.7cm" /> - - <fo:table-body> - <fo:table-row> - <fo:table-cell padding-top="0.5cm" padding-bottom="0.1cm"> - <fo:block font-size="8pt" text-align="center">PROPRIETAIRE</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du tableau proprietaire --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" border-color="black" border="0.5pt" border-style="solid" border-collapse="collapse" width="100%" font-size="8pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="21.7cm" /> - - <fo:table-column column-width="7cm" /> - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Proprietaire | Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - <fo:table-row> - <fo:table-cell> - <fo:block> - <!-- <xsl:value-of select="@l_ccodro" /> --> - - � - <!-- <xsl:value-of select="@l_ccodem" /> --> - - � - <xsl:value-of select="@dnuper" /> - -<!-- Modification tiers par rapport au xsl par d�faut--> - � - <xsl:value-of select="@proprietaire_nom_tiers" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.3cm"> - <fo:block> -<!-- Modification tiers par rapport au xsl par d�faut--> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell padding-left="0.3cm"> - <fo:block> - <xsl:value-of select="@proprietaire_adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block> -<!-- Modification tiers par rapport au xsl par d�faut--> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - -<!-- Fin de l'en-t�te --> -<!-- D�but du corps du tableau global --> - <fo:table-body> -<!-- Affichage des poprietes baties --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="0.4cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="6.4cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.4cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="2.4cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.7cm" /> - -<!-- Affichage de l'en-t�te des propri�t�s baties --> - <fo:table-header> - <fo:table-row> - <fo:table-cell number-columns-spanned="26" padding-top="1cm" padding-bottom="0.1cm"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">PROPRIETES BATIES</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell number-columns-spanned="7" border="0.5pt solid black"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">DESIGNATION DES PROPRIETES</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="5" border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">IDENTIFICATION DU LOCAL</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="14" border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">EVALUATION DU LOCAL</fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des titres des colonnes des propri�t�s baties --> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SECTION</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PLAN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CP</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N� Voirie</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ADRESSE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CODE RIVOLI</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">BAT</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ENT</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">NIV</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PORTE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�INVAR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">S TAR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">M EVAL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AF</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">NAT LOC</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CAT</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">REVENU CADASTRAL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COLL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">AN RET</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">AN DEB</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FRACTION RC EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">% EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">TX OM</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COEF</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - - <fo:table-footer> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-footer> - -<!-- Affichage des donn�es des propri�t�s baties --> - <fo:table-body> - <fo:table-row> - <fo:table-cell> - <fo:block> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Bati | Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cp" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@voirie" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@bat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ent" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@niv" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_de_porte" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_invar" /> - </fo:block> - </fo:table-cell> - -<!--Affichage du PEV lorsqu'il n'y en a qu'un (m�me ligne) --> - <xsl:if test="count(Mj_Pev) = 1"> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@coll" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@an_ret" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@fraction_rc_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Pev/Mj_Exone_Pev/@pourc_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@tx_om" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!--Affichage du premier PEV lorsqu'il y en a plusieurs (m�me ligne) --> - <xsl:if test="count(Mj_Pev) > 1"> - <xsl:for-each select="Mj_Pev"> - <xsl:if test="position()=1"> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="../@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - </xsl:for-each> - </xsl:if> - </fo:table-row> - -<!--Affichage des PEV suivants (lignes suivantes) --> - <xsl:if test="count(Mj_Pev) > 1"> - <xsl:for-each select="Mj_Pev"> - <xsl:if test="position()>1"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@m_eva" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@af" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@nat_loc" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@cat" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="../@tx_om" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:if> - </xsl:for-each> - </xsl:if> - -<!--Affichage des Lot_Local s'il y en a --> - <xsl:if test="count(Mj_Lot_Local) > 0"> - <xsl:for-each select="Mj_Lot_Local"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.4cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.25cm"> - <xsl:value-of select="@lot" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du pied du tableau des proprietes baties --> - <fo:table-row> - <fo:table-cell> - <fo:block keep-together="always" keep-with-previous="always"> - <fo:table table-layout="fixed" border-collapse="collapse" width="28.7cm" border-color="black" border-right="0.5pt" border-left="0.5pt" border-top="0pt" border-bottom="0.5pt" border-style="solid" font-size="6pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="1.8cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="2.5cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="6.9cm" /> - - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell number-columns-spanned="4"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_com_bati" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_dep_bati" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_reg_bati" /> - - EUR</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="left" line-height="0.60cm" vertical-align="middle">REV IMPOSABLE</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_bati" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="3"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">DEP</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="3"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">R</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell number-columns-spanned="4"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_com_bati" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_dep_bati" /> - - EUR</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_reg_bati" /> - - EUR</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des proprietes non baties --> - <fo:table-row> - <fo:table-cell> - <fo:table table-layout="fixed" width="100%" border-collapse="collapse" font-size="7pt"> - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="1.2cm" /> - - <fo:table-column column-width="5.8cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="1.4cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="1.1cm" /> - - <fo:table-column column-width="1cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="0.7cm" /> - - <fo:table-column column-width="2cm" /> - - <fo:table-column column-width="0.9cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="1.5cm" /> - - <fo:table-column column-width="0.6cm" /> - - <fo:table-column column-width="0.6cm" /> - -<!-- Affichage de l'en-t�te des proprietes non baties --> - <fo:table-header> - <fo:table-row> - <fo:table-cell number-columns-spanned="23" padding-top="1cm" padding-bottom="0.1cm"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">PROPRIETES NON BATIES</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell number-columns-spanned="6" border="0.5pt solid black"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">DESIGNATION DES PROPRIETES</fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="17" border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" font-size="8pt" line-height="0.5cm" vertical-align="middle">EVALUATION</fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des titres des colonnes des proprietes non baties --> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">AN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SECTION</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N�PLAN</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">N� Voirie</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">ADRESSE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CODE RIVOLI</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">N�PARC PRIM</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FP DP</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">S TAR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">SUF</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">GR/SS GR</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">CLASSE</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT CULT</fo:block> - </fo:table-cell> - -<!-- Creation d'une table pour afficher le titre de colonne (CONTENANCE HA A CA) --> - <fo:table-cell number-columns-spanned="3" border="0.5pt solid black"> - <fo:table table-layout="fixed" border-collapse="collapse" font-size="6pt" width="100%"> - <fo:table-body> - <fo:table-row> - <fo:table-cell number-columns-spanned="3" padding-top="0.05cm"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CONTENANCE</fo:block> - </fo:table-cell> - </fo:table-row> - - <fo:table-row> - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">HA</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">A</fo:block> - </fo:table-cell> - - <fo:table-cell> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">CA</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - </fo:table-cell> - -<!-- Suite de l'affichage des titres des colonnes des proprietes non baties --> - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">REVENU CADASTRAL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">COLL</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">NAT EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">AN RET</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">FRACTION RC EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm">% EXO</fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm">POS</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-header> - - <fo:table-footer> - <fo:table-row> - <fo:table-cell border="0.5pt solid black"> - <fo:block> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell number-columns-spanned="3" border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.25cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-footer> - -<!-- Affichage des donnees des proprietes non baties --> - <fo:table-body> - <fo:table-row> - <fo:table-cell> - <fo:block></fo:block> - </fo:table-cell> - </fo:table-row> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Parcelle | Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@date" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-right="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_plan" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_voirie" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell padding-left="0.1cm" border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@code_rivoli" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_parc_prim" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@fp_dp" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@grss_gr" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@clas" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_cult" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - -<!-- Affichage de la colonne revenu cadastral lorsqu'il a une seule suf --> - <xsl:if test="count(Mj_Suf)=1"> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!-- Affichage de la colonne revenu cadastral lorsqu'il a plusieurs sufs --> - <xsl:if test="count(Mj_Suf) > 1"> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </xsl:if> - -<!-- Suite de l'affichage des donnees des proprietes non baties --> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="Mj_Suf/@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage des Suf lorsqu'il y en a plusieurs --> - <xsl:if test="count(Mj_Suf) > 1"> - <xsl:for-each select="Mj_Suf"> - <fo:table-row> - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@s_tar" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@suf" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@grss_gr" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@clas" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_cult" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden" border-left="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@nat_exo" /> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - - <fo:table-cell border="0.5pt solid black" border-bottom="hidden" border-top="hidden"> - <fo:block text-align="center" vertical-align="middle" line-height="0.5cm"> - </fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </fo:table-body> - </fo:table> - </fo:table-cell> - </fo:table-row> - -<!-- Affichage du pied du tableau des proprietes non baties --> - <fo:table-row> - <fo:table-cell> - <fo:block keep-together="always" keep-with-previous="always"> - <fo:table width="26.6cm" table-layout="fixed" border-color="black" border-right="0.5pt" border-left="0.5pt" border-top="0pt" border-bottom="0.5pt" border-style="solid" border-collapse="collapse" font-size="6pt" padding-top="0.2cm" padding-bottom="0.1cm"> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1cm" /> - <fo:table-column column-width="1.8cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="1.5cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="1.5cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="1.5cm" /> - <fo:table-column column-width="2cm" /> - <fo:table-column column-width="2.3cm" /> - <fo:table-body> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"></fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">HA</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">A</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">CA</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="4"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_com_par" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_dep_par" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle">R EXO</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" margin-top="0.20cm" vertical-align="middle"> - <xsl:value-of select="@exo_reg_par" /> - - EUR</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="left" line-height="0.60cm" vertical-align="middle">CONT</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="4"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">REV IMPOSABLE</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_par" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">COM</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="3"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">DEP</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="3"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">R</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="3" padding-right="0.8cm"> - <fo:block text-align="right" line-height="0.60cm" vertical-align="middle">MAJ POS</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@ha" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@a" /> - </fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="center" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@ca" /> - </fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="4"> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_com_par" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_dep_par" /> - - EUR</fo:block> - </fo:table-cell> - <fo:table-cell number-columns-spanned="2"> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle">R IMP</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block text-align="right" line-height="0.20cm" vertical-align="middle"> - <xsl:value-of select="@rev_impo_reg_par" /> - - EUR</fo:block> - </fo:table-cell> - </fo:table-row> - </xsl:for-each> - </fo:table-body> - -<!-- Fin de la table du pied du tableau des propi�t�s non baties --> - </fo:table> - </fo:block> - </fo:table-cell> - </fo:table-row> - -<!-- Fin du corps du tableau global --> - </fo:table-body> - -<!-- Fin du tableau global --> - </fo:table> - - <fo:block id="theEnd" /> - </fo:flow> - </fo:page-sequence> - </fo:root> - </xsl:template> -</xsl:stylesheet> - diff --git a/web_service/class/majic_lib/xsl/RP.xslt b/web_service/class/majic_lib/xsl/RP.xslt deleted file mode 100755 index 0dae5920..00000000 --- a/web_service/class/majic_lib/xsl/RP.xslt +++ /dev/null @@ -1,3036 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> - -<!DOCTYPE xsl:stylesheet [ - <!ENTITY nbsp " "> -]> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/> - <xsl:template match="/"> - <xsl:param name="poste"/> - <xsl:param name="type"/> - - <html xmlns="http://www.w3.org/1999/xhtml" - lang="fr" - > - <body> - <table table-layout="fixed" width="100%" CELLSPACING="0" CELLPADDING="0"> - - <!-- Début de l'en-tête qui se retrouvera sur chaque page du RP --> - - <thead> - <tr> - <td width="100%"> - - <table style="text-align: center; font-size: 10pt;line-height: 0.8cm;" width="100%" CELLSPACING="0" CELLPADDING="1" > - <tbody> - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - <tr> - <td style="border-width: 0.5pt; border-style: solid; border-color: black; border-right: hidden;" width="4.14%"> - <div style="vertical-align: middle; line-height: 0.3cm; text-align: center;">ANNEE DE MAJ</div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black; border-right: hidden;" width="2.07%"> - <div style="vertical-align: middle; line-height: 0.6cm; text-align: center;"> - <xsl:value-of select="@annee_de_maj"/> - </div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black; border-right: hidden;" width="2.07%"> - <div style="vertical-align: middle; line-height: 0.3cm; text-align: center;">DEP DIR</div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black; border-right: hidden;" width="3.11%"> - <div style="vertical-align: middle; line-height: 0.6cm; text-align: center;"> - <xsl:value-of select="@dep_dir"/> - </div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black; border-right: hidden;" whidth="3.11%"> - <div style="vertical-align: middle; line-height: 0.6cm; text-align: center;">COM</div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black;" whidth="22.08%"> - <div style="vertical-align: middle; line-height: 0.6cm; text-align: center;"> - <xsl:value-of select="@com"/> - </div> - </td> - <td whidth="53.13%"> - <div style="font-style: italic; font-size: 16pt; vertical-align: middle; line-height: 0.5cm; text-align: center;"> - RELEVE DE PROPRIETE - </div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black; border-right: hidden;" whidth="6.21%"> - <div style="vertical-align: middle; line-height: 0.3cm; text-align: center;">NUMERO COMMUNAL</div> - </td> - <td style="border-width: 0.5pt; border-style: solid; border-color: black;" whidth="3.11%"> - <div style="vertical-align: middle; line-height: 0.6cm; text-align: center;"> - <xsl:value-of select="substring(@numero_communal,6)"/> - </div> - </td> - </tr> - </xsl:for-each> - </tbody> - </table> - </td> - </tr> - <!-- Affichage de la ligne titre "PROPRIETAIRE" --> - <tr> - <td width="100%"> - <table style="text-align: center;" width="100%"> - <tbody> - <tr> - <td padding-top="0.5cm" padding-bottom="0.1cm"> - <div style="font-size: 10pt; text-align: center;">PROPRIETAIRE</div> - </td> - </tr> - </tbody> - </table> - </td> - </tr> - <!-- Affichage du tableau proprietaire --> - - <tr> - - <td> - - <table style="text-align: left; table-layout: fixed; border-color: black; border: 0.5pt; border-style: solid; border-collapse: collapse; font-size: 10pt; padding-top: 0.2cm; padding-bottom: 0.1cm;" width="100%" > - - - <tbody> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Proprietaire | Mj/Mj_Compte_Communal_Parcelle/Mj_Proprietaire"> - - <tr> - <xsl:if test="$type='complet'"> - <td width="75%" style="padding-left: 0.3cm;"> - <div> - <xsl:value-of select="@l_ccodro"/> <xsl:value-of select="@l_ccodem"/> <xsl:value-of select="@dnuper"/> <xsl:value-of select="@proprietaire_nom"/> - </div> - </td> - - <td width="25%" style="padding-left: 0.3cm;"> - <div> - <xsl:value-of select="@jdatnss"/> - </div> - </td> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td width="100%" style="padding-left: 0.3cm;"> - <div> - <xsl:value-of select="@l_ccodro"/> <xsl:value-of select="@l_ccodem"/> <xsl:value-of select="@dnuper"/> <xsl:value-of select="@proprietaire_nom_tiers"/> - </div> - </td> - </xsl:if> - </tr> - - <tr> - <td style="padding-left: 0.3cm;"> - <div> - <xsl:value-of select="@proprietaire_adresse"/> - </div> - </td> - <xsl:if test="$type='complet'"> - <td> - <div> - <xsl:value-of select="@dldnss"/> - </div> - </td> - </xsl:if> - </tr> - </xsl:for-each> - </tbody> - </table> - </td> - </tr> - </thead> - <!-- Fin de l'en-tête --> - <!-- Début du corps du tableau global --> - - <tbody> - <!-- Affichage des poprietes baties --> - - <tr> - - <td width="100%"> - - <table width="100%" style="text-align: center; font-size: 10pt;" CELLSPACING="0" CELLPADDING="0" > - - <!-- Affichage de l'en-tête des propriétés baties --> - - <thead width="100%"> - - <tr > - <xsl:if test="$type='complet'"> - <td style="text-align: center; border-color: black; border-style: solid; border-left: hidden; border-right: hidden; border-top: hidden; border-bottom: hidden; border-width: 0.5pt; padding-top: 1cm; padding-bottom: 0.1cm;" valign="top" colspan="26" > - <div style ="text-align: center; font-size: 8pt; line-height: 0.5cm; vertical-align: middle;" >PROPRIETES BATIES</div> - </td> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td style="text-align: center; border-color: black; border-style: solid; border-left: hidden; border-right: hidden; border-top: hidden; border-bottom: hidden; border-width: 0.5pt; padding-top: 1cm; padding-bottom: 0.1cm;" valign="top" colspan="20" > - <div style ="text-align: center; font-size: 8pt; line-height: 0.5cm; vertical-align: middle;" >PROPRIETES BATIES</div> - </td> - </xsl:if> - </tr> - - <tr> - - <td style="border-color: black; border-style: solid; border-right: hidden; border-bottom: hidden; border-width: 0.5pt;" valign="top" colspan="7"> - <div style ="text-align: center; font-size: 8pt; line-height: 0.5cm; vertical-align: middle;" >DESIGNATION DES PROPRIETES</div> - </td> - - <td style="border-color: black; border-style: solid; border-left: hidden; border-bottom: hidden; border-right: hidden; border-width: 0.5pt;" valign="top" colspan="5"> - <div style ="text-align: center; font-size: 8pt; line-height: 0.5cm; vertical-align: middle;" >IDENTIFICATION DU LOCAL</div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-color: black; border-style: solid; border-left: hidden; border-bottom: hidden; border-width: 0.5pt;" valign="top" colspan="14"> - <div style ="text-align: center; font-size: 8pt; line-height: 0.5cm; vertical-align: middle;" >EVALUATION DU LOCAL</div> - </td> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td style="border-color: black; border-style: solid; border-left: hidden; border-bottom: hidden; border-width: 0.5pt;" valign="top" colspan="8"> - <div style ="text-align: center; font-size: 8pt; line-height: 0.5cm; vertical-align: middle;" >EVALUATION DU LOCAL</div> - </td> - </xsl:if> - </tr> - - <!-- Affichage des titres des colonnes des propriétés baties --> - - <tr> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">AN</div> - </td> - - <td width="4.14%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">SECTION</div> - </td> - - <td width="3.45%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">N°PLAN</div> - </td> - - <td width="1.38%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">CP</div> - </td> - - <td width="4.14%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">N° Voirie</div> - </td> - - <xsl:if test="$type='complet'"> - <td width="22.08%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">ADRESSE</div> - </td> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td width="38.99%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">ADRESSE</div> - </td> - </xsl:if> - - <td width="3.11%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">CODE RIVOLI</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">BAT</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">ENT</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">NIV</div> - </td> - - <td width="4.14%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">N°PORTE</div> - </td> - - <td width="6.21%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">N°INVAR</div> - </td> - - <td width="2.42%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">S TAR</div> - </td> - - <td width="2.42%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">M EVAL</div> - </td> - - <td width="1.38%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">AF</div> - </td> - - <td width="4.14%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">NAT LOC</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">CAT</div> - </td> - - <td width="8.28%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">REVENU CADASTRAL</div> - </td> - - <xsl:if test="$type='complet'"> - <td width="2.42%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">COLL</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">NAT EXO</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">AN RET</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">AN DEB</div> - </td> - - <td width="6.21%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">FRACTION RC EXO</div> - </td> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">% EXO</div> - </td> - </xsl:if> - - <td width="2.07%" style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">TX OM</div> - </td> - - <td width="2.42%" style="border-style: solid; border-width: 0.5pt; border-color: black;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">COEF</div> - </td> - </tr> - </thead> - - <tfoot> - - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - </xsl:if> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-left: hidden;" valign="top"> - <div> - </div> - </td> - </tr> - </tfoot> - <!-- Affichage des données des propriétés baties --> - - <tbody> - - <tr> - - <td> - <div> - </div> - </td> - </tr> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Bati | Mj/Mj_Compte_Communal_Parcelle/Mj_Bati"> - <xsl:sort select="substring(@num_invar,1,3)" /> - - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@date"/> - </div> - </td> - - <td style="padding-right: 0.1cm;border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@section"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@num_plan"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@cp"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@voirie"/> - </div> - </td> - - <td style="padding-left: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@code_rivoli"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@bat"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@ent"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@niv"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@num_de_porte"/> - </div> - </td> - - <td style="padding-left: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;"> - - <div vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@num_invar"/> - </div> - </td> - - <!-- Affichage du PEV lorsqu'il n'y en a qu'un (même ligne) --> - - <xsl:if test="count(Mj_Pev) = 1"> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@s_tar"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@m_eva"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@af"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@nat_loc"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@cat"/> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral"/> - </div> - </td> - - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.5cm"> - - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - - </div> - </td> - </xsl:if> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@tx_om"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <!--Affichage du premier PEV lorsqu'il y en a plusieurs (même ligne) --> - - <xsl:if test="count(Mj_Pev) > 1"> - - <xsl:for-each select="Mj_Pev"> - - <xsl:if test="position()=1"> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@s_tar"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="../@m_eva"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@af"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="../@nat_loc"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@cat"/> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@revenu_cadastral"/> - </div> - </td> - - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - </xsl:for-each> - </xsl:if> - </tr> - <!--Affichage des PEV suivants (lignes suivantes) --> - - - <xsl:for-each select="Mj_Pev"> - - <xsl:if test="position()>1"> - - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@s_tar"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="../@m_eva"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@af"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="../@nat_loc"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@cat"/> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.3cm"> - <xsl:value-of select="@revenu_cadastral"/> - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.3cm"> - <xsl:value-of select="../@revenu_cadastral"/> - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="../@tx_om"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> -<xsl:if test="count(Mj_Exone_Pev) > 0"> - <xsl:for-each select="Mj_Exone_Pev"> - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.3cm"> - - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@coll"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@an_ret"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@an_deb"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@fraction_rc_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@pourc_exo"/> - </div> - </td> - </xsl:if> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - </xsl:for-each> - </xsl:if> - </xsl:if> - <xsl:if test="position() = 1"> - <xsl:if test="count(Mj_Exone_Pev) > 0"> - <xsl:for-each select="Mj_Exone_Pev"> - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div text-align="right" vertical-align="middle" line-height="0.3cm"> - - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@coll"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@an_ret"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@an_deb"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@fraction_rc_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@pourc_exo"/> - </div> - </td> - </xsl:if> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - </xsl:for-each> - </xsl:if> - </xsl:if> - </xsl:for-each> - <!--Affichage des Lot_Local s'il y en a --> - - <xsl:if test="count(Mj_Lot_Local) > 0"> - - <xsl:for-each select="Mj_Lot_Local"> - - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-left: 0.4cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div vertical-align="middle" line-height="0.3cm"> - <xsl:value-of select="@lot"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top" > - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div text-align="right" vertical-align="middle" line-height="0.3cm"> - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-right: hidden; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </tbody> - </table> - </td> - </tr> - - <!-- Affichage du pied du tableau des proprietes baties --> - - <tr> - - <td> - - <div keep-together="always" keep-with-previous="always"> - - <table table-layout="fixed" width="100%" style="border-collapse: collapse; border-color: black; border-right: 0.5pt; border-left: 0.5pt; border-top: 0pt; border-bottom: 0.5pt; border-style: solid; font-size: 8pt; padding-top: 0.2cm; padding-bottom: 0.1cm;" > - <td width="6.21%" /> - <td width="6.9%" /> - <td width="8.63%" /> - <td width="5.18%" /> - <td width="6.9%" /> - <td width="8.63%" /> - <td width="5.18%" /> - <td width="6.9%" /> - <td width="8.63%" /> - <td width="5.18%" /> - <td width="6.9%" /> - <td width="23.81%" /> - - <tbody> - - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - - <tr> - <xsl:if test="$type='complet'"> - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R EXO</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@exo_com_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R EXO</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@exo_dep_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R EXO</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@exo_reg_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - </xsl:if> - </tr> - - <tr> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">REV IMPOSABLE</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">COM</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">DEP</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">R</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - </tr> - - <tr> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R IMP</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_com_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R IMP</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_dep_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R IMP</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_reg_bati_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - </tr> - </xsl:for-each> - </tbody> - </table> - </div> - </td> - </tr> - <!-- Affichage des proprietes non baties --> - - <tr> - - <td> - - <table table-layout="fixed" width="100%" style="border-collapse: collapse; font-size: 10pt;" CELLSPACING="0" CELLPADDING="0"> - <tr> - <td width="2.07%"/> - <td width="5.18%"/> - <td width="4.14%"/> - <td width="4.14%"/> - <xsl:if test="$type='complet'"> - <td width="27.26%"/> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td width="41.76%"/> - </xsl:if> - <td width="3.11%"/> - <td width="4.83%"/> - <td width="2.07%"/> - <td width="2.07%"/> - <td width="3.11%"/> - <td width="3.80%"/> - <td width="3.45%"/> - <td width="3.11%"/> - <td width="2.42%"/> - <td width="2.42%"/> - <td width="2.42%"/> - <td width="6.9%0"/> - <xsl:if test="$type='complet'"> - <td width="3.11%"/> - <td width="2.07%"/> - <td width="2.07%"/> - <td width="5.18%"/> - <td width="2.07%"/> - </xsl:if> - <td width="2.07%"/> - </tr> - <!-- Affichage de l'en-tête des proprietes non baties --> - - <thead> - - <tr> - <xsl:if test="$type='complet'"> - <td colspan="23" style="border-color: black; border-style: solid; border-right: hidden; border-left: hidden; border-top: hidden; border-width: 0.5pt; padding-top: 1cm; padding-bottom: 0.1cm;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">PROPRIETES NON BATIES</div> - </td> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td colspan="18" style="border-color: black; border-style: solid; border-right: hidden; border-left: hidden; border-top: hidden; border-width: 0.5pt; padding-top: 1cm; padding-bottom: 0.1cm;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">PROPRIETES NON BATIES</div> - </td> - </xsl:if> - </tr> - - <tr> - - <td colspan="6" style="border-color: black; border-style: solid; border-right: hidden; border-width: 0.5pt;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">DESIGNATION DES PROPRIETES</div> - </td> - - <xsl:if test="$type='complet'"> - <td colspan="17" style="border-color: black; border-style: solid; border-left: hidden; border-width: 0.5pt;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">EVALUATION</div> - </td> - </xsl:if> - <xsl:if test="not($type='complet')"> - <td colspan="12" style="border-color: black; border-style: solid; border-left: hidden; border-width: 0.5pt;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">EVALUATION</div> - </td> - </xsl:if> - </tr> - - <!-- Affichage des titres des colonnes des proprietes non baties --> - - <tr> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">AN</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">SECTION</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">N°PLAN</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">N° Voirie</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">ADRESSE</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">CODE RIVOLI</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">N°PARC PRIM</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">FP DP</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">S TAR</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">SUF</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">GR/SS GR</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">CLASSE</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">NAT CULT</div> - </td> - - <!-- Creation d'une table pour afficher le titre de colonne (CONTENANCE HA A CA) --> - - <td colspan="3" style="border-color: black; border-width: 0.5pt; border-style: solid;"> - - <table table-layout="fixed" style="font-size: 8pt; border-collapse: collapse;" width="100%"> - <tbody> - - <tr> - <td colspan="3" style="padding-top: 0.05cm;"> - <div style="text-align: center; vertical-align: middle; line-height: 0.3cm;">CONTENANCE</div> - </td> - </tr> - - <tr> - - <td width="33%"> - <div style="text-align: center; vertical-align: middle; line-height: 0.3cm;">HA</div> - </td> - - <td width="33%"> - <div style="text-align: center; vertical-align: middle; line-height: 0.3cm;">A</div> - </td> - - <td width="33%"> - <div style="text-align: center; vertical-align: middle; line-height: 0.3cm;">CA</div> - </td> - </tr> - </tbody> - </table> - </td> - - <!-- Suite de l'affichage des titres des colonnes des proprietes non baties --> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">REVENU CADASTRAL</div> - </td> - - <xsl:if test="$type='complet'"> - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">COLL</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">NAT EXO</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">AN RET</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">FRACTION RC EXO</div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;">% EXO</div> - </td> - </xsl:if> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;">POS</div> - </td> - </tr> - </thead> - - <tfoot> - - <tr> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td colspan="3" style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <xsl:if test="$type='complet'"> - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <td style="border-color: black; border-width: 0.5pt; border-style: solid; border-right: hidden; border-left: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - </tr> - </tfoot> - <!-- Affichage des donnees des proprietes non baties --> - - <tbody> - - <tr> - - <td> - <div> - </div> - </td> - </tr> - - <xsl:for-each select="Mj/Mj_Compte_Communal/Mj_Parcelle | Mj/Mj_Compte_Communal_Parcelle/Mj_Parcelle"> - <xsl:sort select="@section" /> - <xsl:sort select="@num_plan" data-type="number"/> - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@date"/> - </div> - </td> - - <td style="padding-right:0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@section"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@num_plan"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@num_voirie"/> - </div> - </td> - - <td style="padding-left:0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div vertical-align="middle" line-height="0.5cm"> - <xsl:value-of select="@adresse"/> - </div> - </td> - - <td style="padding-left:0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@code_rivoli"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@num_parc_prim"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@fp_dp"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@s_tar"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@suf"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@grss_gr"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@clas"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@nat_cult"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@ha"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@a"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@ca"/> - </div> - </td> - - <!-- Affichage de la colonne revenu cadastral lorsqu'il a une seule suf --> - - <xsl:if test="count(Mj_Suf)=1"> - - <td style="padding-right:0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="@revenu_cadastral"/> - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="Mj_Suf/@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <!-- Affichage de la colonne revenu cadastral lorsqu'il a plusieurs sufs --> - - <xsl:if test="count(Mj_Suf) > 1"> - - <td style="padding-right:0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - <xsl:value-of select="Mj_Suf/@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.5cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - - <!-- Suite de l'affichage des donnees des proprietes non baties --> - - </tr> - - <!-- Affichage des Suf lorsqu'il y en a plusieurs --> - <xsl:choose> - <xsl:when test="count(Mj_Suf) > 1"> - - <xsl:for-each select="Mj_Suf"> - - <tr> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@s_tar"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@suf"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@grss_gr"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@clas"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_cult"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@ha"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@a"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden; border-left: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@ca"/> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center;line-height: 0.3cm; vertical-align: middle;" > - <xsl:value-of select="@revenu_cadastral"/> - </div> - </td> - <xsl:if test="$type='complet'"> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo"/> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </xsl:if> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - <xsl:if test="$type='complet'"> - <!-- Affichage des Exon_Suf lorsqu'il y en a --> - <xsl:if test="count(Mj_Exon_Suf) > 0"> - <xsl:for-each select="Mj_Exon_Suf"> - <tr> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-right: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-right: hidden;border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-rigth: hidden; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-rigth: hidden; padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-left: hidden;border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@ccolloc" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@pexn div 100" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@rcexnba div 100" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - </xsl:for-each> - </xsl:if> - </xsl:if> - </xsl:for-each> - </xsl:when> - <xsl:when test="count(Mj_Suf)>0"> - <xsl:if test="$type='complet'"> - <xsl:for-each select="Mj_Suf"> - <!-- Affichage des Exon_Suf lorsqu'il y en a --> - <xsl:if test="count(Mj_Exon_Suf) > 0"> - <xsl:for-each select="Mj_Exon_Suf"> - <tr> - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-right: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-right: hidden;border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-rigth: hidden; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-rigth: hidden; padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-left: hidden;border-right: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-left: hidden; padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;border-left: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="padding-right: 0.1cm; border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;" valign="top"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@ccolloc" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@nat_exo" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@pexn div 100" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - <xsl:value-of select="@rcexnba div 100" /> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - - <td style="border-style: solid; border-width: 0.5pt; border-color: black; border-bottom: hidden; border-top: hidden;"> - <div style="text-align: center; line-height: 0.3cm; vertical-align: middle;"> - </div> - </td> - </tr> - </xsl:for-each> - </xsl:if> - </xsl:for-each> - </xsl:if> - </xsl:when> - </xsl:choose> - </xsl:for-each> - </tbody> - </table> - </td> - </tr> - - <!-- Affichage du pied du tableau des proprietes non baties --> - - <tr> - - <td> - - <div keep-together="always" keep-with-previous="always"> - - <table width="100%" table-layout="fixed" style="border-color: black; border-right: 0.5pt; border-left: 0.5pt; border-top: 0pt; border-bottom: 0.5pt; border-style: solid; border-collapse: collapse; font-size: 8pt; padding-top: 0.2cm; padding-bottom: 0.1cm;"> - - <td width="3.45%" /> - <td width="3.45%" /> - <td width="3.45%" /> - <td width="3.45%" /> - <td width="13.46%" /> - <td width="6.9%" /> - <td width="6.9%" /> - <td width="5.18%" /> - <td width="6.9%" /> - <td width="6.9%" /> - <td width="5.18%" /> - <td width="6.9%" /> - <td width="6.9%" /> - <td width="5.18%" /> - <td width="6.9%" /> - <td width="7.94%" /> - - <tbody> - - <xsl:for-each select="Mj/Mj_Compte_Communal | Mj/Mj_Compte_Communal_Parcelle"> - - <tr> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - </div> - </td> - - <td> - <div style="text-align: center; line-height: 0.20cm; vertical-align: middle;">HA</div> - </td> - - <td> - <div style="text-align: center; line-height: 0.20cm; vertical-align: middle;">A</div> - </td> - - <td> - <div style="text-align: center; line-height: 0.20cm; vertical-align: middle;">CA</div> - </td> - <xsl:if test="$type='complet'"> - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R EXO</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@exo_com_par_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R EXO</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@exo_tax_ad_par_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"></div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - </xsl:if> - </tr> - - <tr> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">CONT</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">REV IMPOSABLE</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_par_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">COM</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">TAXE AD</div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;"></div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td padding-right="0.8cm"> - <div style="text-align: right; line-height: 0.60cm; vertical-align: middle;">MAJ POS</div> - </td> - </tr> - - <tr> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - </div> - </td> - - <td> - - <div style="text-align: center; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@ha"/> - </div> - </td> - - <td> - - <div style="text-align: center; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@a"/> - </div> - </td> - - <td> - - <div style="text-align: center; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@ca"/> - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R IMP</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_com_par_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;">R IMP</div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - <xsl:value-of select="@rev_impo_taxe_ad_par_float"/> - - - EUR - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"></div> - </td> - - <td> - - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"> - </div> - </td> - - <td> - <div style="text-align: right; line-height: 0.20cm; vertical-align: middle;"/> - </td> - </tr> - </xsl:for-each> - </tbody> - - <!-- Fin de la table du pied du tableau des propiétés non baties --> - </table> - </div> - </td> - </tr> - <!-- Fin du corps du tableau global --> - </tbody> - <!-- Fin du tableau global --> - </table> - </body> - </html> - </xsl:template> -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/commande_fo2html.txt b/web_service/class/majic_lib/xsl/commande_fo2html.txt deleted file mode 100755 index 53435ced..00000000 --- a/web_service/class/majic_lib/xsl/commande_fo2html.txt +++ /dev/null @@ -1,5 +0,0 @@ -fop -xml monxml.xml -xsl mj_fo.xsl -foout res.fo -fop -xml res.fo -xsl fo2html.xsl -foout res.html - - -C:\serveurs\fop-0.93\fop -xml C:\serveurs\Apache2\htdocs\rgd\fp\2010\complet\740011000AR0497.xml -xsl C:\serveurs\Apache2\htdocs\lib\majic_lib\xsl\FP_fo_Complet.xsl -pdf C:\serveurs\Apache2\htdocs\rgd\fp\2010\complet\740011000AR0497.pdf \ No newline at end of file diff --git a/web_service/class/majic_lib/xsl/fo2html.xsl b/web_service/class/majic_lib/xsl/fo2html.xsl deleted file mode 100755 index a4ca0b57..00000000 --- a/web_service/class/majic_lib/xsl/fo2html.xsl +++ /dev/null @@ -1,643 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!-- =============================================================== --> -<!-- --> -<!-- Convert XSL FO (as in REC 2001-10-15) to HTML --> -<!-- --> -<!-- � RenderX 2000-2001 --> -<!-- Permission to copy and modify is granted, provided this notice --> -<!-- is included in all copies and/or derived work. --> -<!-- --> -<!-- Author: Nikolai Grigoriev, grig@renderx.com --> -<!-- --> -<!-- =============================================================== --> -<!DOCTYPE xsl:stylesheet [ - <!ENTITY anchor "<xsl:apply-templates select='@id' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'/>"> - <!ENTITY add-style "<xsl:call-template name='add-style-attribute' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'/>"> -]> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="fo"> - -<xsl:output method="html" version="4.0" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" indent="no"/> - -<!-- =============================================================== --> -<!-- Root. Create the bone and call templates for each page sequence --> -<!-- =============================================================== --> - -<xsl:template match="fo:root"> - <html> - <head> - <title> - <xsl:choose> - <xsl:when test="descendant::fo:title[1]"> - <xsl:value-of select="fo:title"/> - </xsl:when> - <xsl:otherwise>XSL FO Document</xsl:otherwise> - </xsl:choose> - </title> - <META http-equiv="Content-Style-Type" content="text/css"/> - <style type="text/css"> - a { color: black; border: none; text-decoration: none; } - img { border: none; } - </style> - </head> - - <body bgcolor="white" marginwidth="6" marginheight="6" leftmargin="6" topmargin="6"> - <xsl:apply-templates select="fo:page-sequence"/> - </body> - </html> - -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:page-sequence. Draws a header before and a footer after. --> -<!-- Sidebars are skipped: there's no way to rotate the text in HTML --> -<!-- and horizontal text in the sidebars eats up too much space. --> -<!-- =============================================================== --> - -<xsl:template match="fo:page-sequence"> - - <xsl:variable name="current-master"><xsl:value-of select="@master-reference"/></xsl:variable> - - <!-- One page master will be used for the whole page sequence --> - <xsl:variable name="page-master-name"> - <xsl:choose> - <xsl:when test="../fo:layout-master-set/fo:simple-page-master[@master-name=$current-master]"> - <!-- specified master is a page master: use it --> - <xsl:value-of select="$current-master"/> - </xsl:when> - <xsl:otherwise> - <!-- specified master is a page sequence master: --> - <!-- find master name for the first page --> - <xsl:apply-templates select="../fo:layout-master-set/fo:page-sequence-master[@master-name=$current-master]"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <!-- Load the page master into a variable. No problem if it's null; should work the same ;-) --> - <xsl:variable name="page-master" select="../fo:layout-master-set/fo:simple-page-master[@master-name=$page-master-name]"/> - - - <!-- Start real drawing --> - <br/> <!-- make an offset before each page sequence --> - - <!-- Header --> - <xsl:variable name="header-region" select="$page-master/fo:region-before"/> - <xsl:apply-templates select="fo:static-content[@flow-name = $header-region/@region-name or (@flow-name='xsl-region-before' and not($header-region/@region-name))]"> - <xsl:with-param name="region" select="$header-region"/> - </xsl:apply-templates> - - <!-- Body --> - <xsl:apply-templates select="fo:flow"> - <xsl:with-param name="region" select="$page-master/fo:region-body"/> - </xsl:apply-templates> - - <!-- Footer --> - <xsl:variable name="footer-region" select="$page-master/fo:region-after"/> - <xsl:apply-templates select="fo:static-content[@flow-name = $footer-region/@region-name or (@flow-name='xsl-region-after' and not($footer-region/@region-name))]"> - <xsl:with-param name="region" select="$footer-region"/> - </xsl:apply-templates> - - <br/> <!-- make an offset after each page sequence --> - -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:block --> -<!-- =============================================================== --> - -<xsl:template match="fo:block"> - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><div><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates mode="check-for-pre"/></div> -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:inline-sequence --> -<!-- =============================================================== --> - -<xsl:template match="fo:inline | fo:wrapper"> - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><span><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates/></span> -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:list-block --> -<!-- =============================================================== --> - -<xsl:template match="fo:list-block"> - <xsl:variable name="label-separation"> - <xsl:choose> - <xsl:when test="@provisional-label-separation"> - <xsl:apply-templates select="@provisional-label-separation" mode="convert-to-pixels"/> - </xsl:when> - <xsl:otherwise>8</xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="body-offset"> - <xsl:choose> - <xsl:when test="@provisional-distance-between-starts"> - <xsl:apply-templates select="@provisional-distance-between-starts" mode="convert-to-pixels"/> - </xsl:when> - <xsl:otherwise>32</xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <div><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <table width="100%"> - <xsl:apply-templates select="fo:list-item | fo:list-item-label"> - <xsl:with-param name="label-width" select="$body-offset - $label-separation"/> - <xsl:with-param name="gap-width" select="$label-separation"/> - </xsl:apply-templates> - </table> - </div> - -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:list-item --> -<!-- =============================================================== --> - -<xsl:template match="fo:list-item"> - <xsl:param name="label-width"/> - <xsl:param name="gap-width"/> - - <tr><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates select="fo:list-item-label" mode="draw-cell"> - <xsl:with-param name="width" select="$label-width"/> - </xsl:apply-templates> - <xsl:if test="$gap-width > 0"> - <td width="{$gap-width}">�</td> - </xsl:if> - - <xsl:apply-templates select="fo:list-item-body" mode="draw-cell"/> - </tr> -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:list-item-label - itemless lists --> -<!-- =============================================================== --> - -<xsl:template match="fo:list-block/fo:list-item-label"> - <xsl:param name="label-width"/> - <xsl:param name="gap-width"/> - - <tr> - <xsl:apply-templates select="." mode="draw-cell"> - <xsl:with-param name="width" select="$label-width"/> - </xsl:apply-templates> - <xsl:if test="$gap-width > 0"> - <td width="{$gap-width}">�</td> - </xsl:if> - - <xsl:apply-templates select="following-sibling::fo:list-item-body[1]" mode="draw-cell"/> - </tr> -</xsl:template> - - -<!-- =============================================================== --> -<!-- fo:list-item-body - itemless lists --> -<!-- =============================================================== --> - -<xsl:template match="fo:list-item-label | fo:list-item-body" mode="draw-cell"> - <xsl:param name="width" select="'auto'"/> - <td valign="top"><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:if test="$width != 'auto'"> - <xsl:attribute name="width"> - <xsl:value-of select="$width"/> - </xsl:attribute> - </xsl:if> - - <xsl:apply-templates mode="check-for-pre"/> - </td> -</xsl:template> - - -<!-- =============================================================== --> -<!-- fo:table and its components --> -<!-- =============================================================== --> - -<xsl:template match="fo:table"> - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <table><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:if test="not(@display-align)"> - <xsl:attribute name="valign">top</xsl:attribute> - <xsl:attribute name="width">100%</xsl:attribute> - <xsl:attribute name="CELLSPACING">0</xsl:attribute> - <xsl:attribute name="CELLPADDING">0</xsl:attribute> - </xsl:if> - - <xsl:apply-templates/> - </table> -</xsl:template> - -<xsl:template match="fo:table-header"> - <thead><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates/> - </thead> -</xsl:template> - -<xsl:template match="fo:table-footer"> - <tfoot><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates/> - </tfoot> -</xsl:template> - -<xsl:template match="fo:table-body"> - <tbody><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates/> - </tbody> -</xsl:template> - -<xsl:template match="fo:table-row"> - <tr><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates mode="display"/> - </tr> -</xsl:template> - -<xsl:template match="fo:table-cell" mode="display"> - <td><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:if test="not(@display-align)"> - <xsl:attribute name="valign">top</xsl:attribute> - <!-- <xsl:attribute name="style">border-right:true</xsl:attribute>--> - </xsl:if> - - <xsl:apply-templates select="@*" mode="get-table-attributes"/> - <xsl:apply-templates mode="check-for-pre"/> - </td> -</xsl:template> - -<xsl:template match="fo:table-cell" priority="-1"/> - -<!-- This template accounts for "rowless" tables --> -<xsl:template priority="1" match="fo:table-cell[not(parent::fo:table-row)] [not(preceding-sibling::fo:table-cell) or @starts-row='true' or preceding-sibling::fo:table-cell[1][@ends-row='true']]"> - <tr> - <xsl:call-template name="enumerate-rowless-cells"/> - </tr> -</xsl:template> - -<xsl:template name="enumerate-rowless-cells"> - <xsl:apply-templates select="." mode="display"/> - <xsl:if test="not(@ends-row='true')"> - <xsl:for-each select="following-sibling::fo:table-cell[1] [not(@starts-row='true')]"> - <xsl:call-template name="enumerate-rowless-cells"/> - </xsl:for-each> - </xsl:if> -</xsl:template> - - -<!-- =============================================================== --> -<!-- fo:inline-graphic --> -<!-- =============================================================== --> - -<xsl:template match="fo:external-graphic"> - <xsl:variable name="cleaned-url"> - <xsl:apply-templates select="@src" mode="unbracket-url"/> - </xsl:variable> - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><img src="{$cleaned-url}"><xsl:apply-templates select="@height|@width|@*[starts-with(name(),'border')]"/></img> -</xsl:template> - -<!-- =============================================================== --> -<!-- fo:basic-link --> -<!-- =============================================================== --> - -<xsl:template match="fo:basic-link[@external-destination]"> - - <xsl:variable name="cleaned-url"> - <xsl:apply-templates select="@external-destination" mode="unbracket-url"/> - </xsl:variable> - - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><a href="{$cleaned-url}"><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates/></a> -</xsl:template> - -<xsl:template match="fo:basic-link[@internal-destination]"> - <xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><a href="#{@internal-destination}"><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates/></a> -</xsl:template> - - -<!-- =============================================================== --> -<!-- fo:marker/fo:retrieve-marker --> -<!-- =============================================================== --> - -<xsl:template match="fo:marker"/> -<xsl:template match="fo:marker" mode="retrieve-marker"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="fo:retrieve-marker"> - - <xsl:variable name="class-name" select="@retrieve-class-name"/> - <xsl:variable name="matching-markers" select="ancestor::fo:page-sequence/descendant::fo:marker[@marker-class-name=$class-name]"/> - - <xsl:choose> - <xsl:when test="@retrieve-position='last-starting-within-page' or @retrieve-position='last-ending-within-page'"> - <xsl:apply-templates select="$matching-markers[position()=last()]" mode="retrieve-marker"/> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select="$matching-markers[1]" mode="retrieve-marker"/> - </xsl:otherwise> - </xsl:choose> - -</xsl:template> - - - - - -<!-- *************************************************************** --> -<!-- Treatment of attributes that are either identical to their CSS1 --> -<!-- counterparts, of find an equivalent expression there --> - -<!-- =============================================================== --> -<!-- Default rule: copy CSS1 attributes and suppress all other --> -<!-- =============================================================== --> - -<xsl:template match="@*" priority="-2" mode="collect-style-attributes"/> - -<xsl:template match="@color | @background | @background-color | @background-image | @background-position | @background-repeat | @padding | @padding-top | @padding-bottom | @padding-right | @padding-left | @margin | @margin-top | @margin-bottom | @margin-right | @margin-left | @border | @border-width | @border-top-width | @border-bottom-width | @border-right-width | @border-left-width | @border-color | @border-top-color | @border-bottom-color | @border-right-color | @border-left-color | @border-style | @border-top-style | @border-bottom-style | @border-right-style | @border-left-style | @letter-spacing | @word-spacing | @line-height | @font | @font-family | @font-size | @font-weight | @font-style | @font-variant | @vertical-align | @text-decoration | @text-indent | @text-transform" mode="collect-style-attributes"> - <xsl:value-of select="name()"/> - <xsl:text>: </xsl:text> - <xsl:value-of select="."/> - <xsl:text>; </xsl:text> -</xsl:template> - -<!-- =============================================================== --> -<!-- Some attributes deserve special treatment --> - -<xsl:template match="@text-align" mode="collect-style-attributes"> - <xsl:text>text-align: </xsl:text> - <xsl:choose> - <xsl:when test=".='start' or .='inside'">left</xsl:when> - <xsl:when test=".='end' or .='outside'">right</xsl:when> - <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> - </xsl:choose> - <xsl:text>; </xsl:text> -</xsl:template> - -<!-- =============================================================== --> -<!-- Handling writing-mode in borders, padding, and margins --> -<!-- This version presumes lr-tb writing mode only. --> - -<xsl:template match="@space-before.optimum | @space-before [not (../@space-before.optimum)] | @space-before.minimum [not (../@space-before.optimum) and not (../@space-before)] | @space-before.maximum [not (../@space-before.optimum) and not (../@space-before) and not (../@space-before.minimum)] | @space-after.optimum | @space-after [not (../@space-after.optimum)] | @space-after.minimum [not (../@space-after.optimum) and not (../@space-after)] | @space-after.maximum [not (../@space-after.optimum) and not (../@space-after) and not (../@space-after.minimum)] | @space-start.optimum | @space-start [not (../@space-start.optimum)] | @space-start.minimum [not (../@space-start.optimum) and not (../@space-start)] | @space-start.maximum [not (../@space-start.optimum) and not (../@space-start) and not (../@space-start.minimum)] | @space-end.optimum | @space-end [not (../@space-end.optimum)] | @space-end.minimum [not (../@space-end.optimum) and not (../@space-end)] | @space-end.maximum [not (../@space-end.optimum) and not (../@space-end) and not (../@space-end.minimum)] | @start-indent[not(parent::fo:list-item-body)] | @end-indent[not(parent::fo:list-item-label)] | @padding-before | @padding-before.length | @margin-before | @border-before | @border-before-width | @border-before-width.length | @border-before-color | @border-before-style | @padding-after | @padding-after.length | @margin-after | @border-after | @border-after-width | @border-after-width.length | @border-after-color | @border-after-style | @padding-start | @padding-start.length | @margin-start | @border-start | @border-start-width | @border-start-width.length | @border-start-color | @border-start-style | @padding-end | @padding-end.length | @margin-end | @border-end | @border-end-width | @border-end-width.length | @border-end-color | @border-end-style" mode="collect-style-attributes"> - - <xsl:variable name="property"> - <xsl:choose> - <xsl:when test="starts-with(name(), 'border')">border</xsl:when> - <xsl:when test="starts-with(name(), 'padding')">padding</xsl:when> - <xsl:when test="starts-with(name(), 'margin')">margin</xsl:when> - <xsl:when test="starts-with(name(), 'space')">margin</xsl:when> - <xsl:when test="contains(name(), '-indent')">margin</xsl:when> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="side"> - <xsl:choose> - <xsl:when test="contains(name(), '-before') or contains(name(), '-top')">-top</xsl:when> - <xsl:when test="contains(name(), '-after') or contains(name(), '-bottom')">-bottom</xsl:when> - <xsl:when test="contains(name(), '-start') or starts-with(name(), 'start-') or contains(name(), '-left')">-left</xsl:when> - <xsl:when test="contains(name(), '-end') or starts-with(name(), 'end-') or contains(name(), '-right')">-right</xsl:when> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="parameter"> - <xsl:choose> - <xsl:when test="contains(name(), '-width')">-width</xsl:when> - <xsl:when test="contains(name(), '-color')">-color</xsl:when> - <xsl:when test="contains(name(), '-style')">-style</xsl:when> - </xsl:choose> - </xsl:variable> - - <xsl:value-of select="concat($property, $side, $parameter)"/> - <xsl:text>: </xsl:text> - <xsl:value-of select="."/> - <xsl:text>; </xsl:text> -</xsl:template> - -<xsl:template match="*" mode="check-for-pre" priority="-1"> - <xsl:apply-templates select="."/> -</xsl:template> - -<xsl:template match="*[@white-space-collapse='false' or @linefeed-treatment='preserve' or @wrap-option='no-wrap' or @white-space='pre']" mode="check-for-pre"> - <pre><xsl:apply-templates select="."/></pre> -</xsl:template> - -<!-- =============================================================== --> -<!-- Recalculate a length to pixels. 1 in = 96 px, 1 em = 1 pc; --> -<!-- this gives reasonable results for 800x600 and 1024x768 screens --> -<!-- =============================================================== --> - -<xsl:template match="@*" mode="convert-to-pixels"> - <xsl:variable name="scaling-factor"> - <xsl:choose> - <xsl:when test="contains (., 'pt')">1.33</xsl:when> - <xsl:when test="contains (., 'px')">1</xsl:when> - <xsl:when test="contains (., 'pc')">16</xsl:when> - <xsl:when test="contains (., 'in')">96</xsl:when> - <xsl:when test="contains (., 'cm')">37.8</xsl:when> - <xsl:when test="contains (., 'mm')">3.78</xsl:when> - <xsl:when test="contains (., 'em')">16</xsl:when> <!-- guess: 1em = 12pt --> - <xsl:otherwise>1</xsl:otherwise> - </xsl:choose> - </xsl:variable> - - <xsl:variable name="numeric-value" select="translate (., '-0123456789.ptxcinme', '-0123456789.')"/> - <xsl:value-of select="$numeric-value * $scaling-factor"/> -</xsl:template> - -<!-- =============================================================== --> -<!-- Remove brackets & quotes around URLs --> -<!-- =============================================================== --> - -<xsl:template match="@*" mode="unbracket-url"> - <xsl:variable name="href" select="normalize-space(.)"/> - - <xsl:choose> - <xsl:when test="(starts-with($href, 'url(') or starts-with($href, 'url (')) and substring ($href, string-length($href)) = ')'"> - <!-- Remove 'url' from the beginning --> - <xsl:variable name="bracketed" select="normalize-space(substring($href, 4))"/> - <!-- Remove brackets --> - <xsl:variable name="quoted" select="normalize-space(substring($bracketed, 2, string-length ($bracketed) - 2 ))"/> - - <xsl:variable name="q" select="'"'"/> - <xsl:variable name="a" select=""'""/> - <!-- Remove optional quotes --> - <xsl:choose> - <xsl:when test="( substring($quoted, 1, 1) = $q and substring($quoted, string-length($quoted), 1) = $q ) or ( substring($quoted, 1, 1) = $a and substring($quoted, string-length($quoted), 1) = $a )"> - <xsl:value-of select="substring($quoted, 2, string-length($quoted) - 2)"/> - </xsl:when> - <xsl:otherwise><xsl:value-of select="$quoted"/></xsl:otherwise> - </xsl:choose> - </xsl:when> - <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> - </xsl:choose> -</xsl:template> - -<!-- =============================================================== --> -<!-- Page number - replace by a bullet --> -<!-- =============================================================== --> - -<xsl:template match="fo:page-number | fo:page-number-citation"> - <span><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:text>•</xsl:text></span> -</xsl:template> - -<!-- =============================================================== --> -<!-- Leader - replace by a space --> -<!-- =============================================================== --> - -<xsl:template match="fo:leader"> - <xsl:text> ��� </xsl:text> -</xsl:template> - - - -<!-- =============================================================== --> -<!-- Static content - add a <hr/> before or after it --> -<!-- =============================================================== --> - -<xsl:template match="fo:flow | fo:static-content"> - <xsl:param name="region"/> - - <div><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates select="$region"/> - <xsl:apply-templates/> - <xsl:if test=".//fo:footnote"> - <br/><hr/> - <xsl:apply-templates select=".//fo:footnote" mode="after-text"/> - </xsl:if> - </div> -</xsl:template> - -<!-- =============================================================== --> -<!-- Footnotes --> -<!-- =============================================================== --> - -<xsl:template match="fo:footnote"> - <xsl:apply-templates select="fo:inline"/> -</xsl:template> - -<xsl:template match="fo:footnote" mode="after-text"> - <div><xsl:call-template name="add-style-attribute" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/><xsl:apply-templates select="@id" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/> - <xsl:apply-templates select="fo:footnote-body"/> - </div> -</xsl:template> - -<!-- =============================================================== --> -<!-- Copy all CSS1-compatible attributes to "style" property --> -<!-- =============================================================== --> - -<xsl:template name="add-style-attribute"> - <xsl:param name="orientation" select="0"/> - <xsl:variable name="style"> - <xsl:apply-templates select="@*" mode="collect-style-attributes"/> - </xsl:variable> - - <xsl:if test="string-length($style) > 0"> - <xsl:attribute name="style"><xsl:value-of select="normalize-space($style)"/></xsl:attribute> - </xsl:if> -</xsl:template> - -<!-- =============================================================== --> -<!-- Create an anchor --> -<!-- =============================================================== --> - -<xsl:template match="@id"><a name="{.}"/></xsl:template> - -<!-- =============================================================== --> -<!-- Table cell geometry --> -<!-- =============================================================== --> - -<xsl:template match="@*" mode="get-table-attributes" priority="-1"/> - -<xsl:template match="@number-columns-spanned" mode="get-table-attributes"> - <xsl:attribute name="colspan"><xsl:value-of select="."/></xsl:attribute> -</xsl:template> - -<xsl:template match="@number-rows-spanned" mode="get-table-attributes"> - <xsl:attribute name="rowspan"><xsl:value-of select="."/></xsl:attribute> -</xsl:template> - - - -<!-- =============================================================== --> -<!-- Page layout: determine master name for the first page --> -<!-- =============================================================== --> - -<xsl:template match="fo:page-sequence-master"> - <xsl:apply-templates select="*[1]"/> -</xsl:template> - -<xsl:template match="fo:single-page-master-reference | fo:repeatable-page-master-reference"> - <xsl:value-of select="@master-reference"/> -</xsl:template> - -<xsl:template match="fo:repeatable-page-master-alternatives"> - <xsl:choose> - <xsl:when test="fo:conditional-page-master-reference[@page-position='first']"> - <xsl:value-of select="fo:conditional-page-master-reference[@page-position='first'][1]/@master-reference"/> - </xsl:when> - <xsl:when test="fo:conditional-page-master-reference[@odd-or-even='odd' and not (@blank-or-not-blank='blank')]"> - <xsl:value-of select="fo:conditional-page-master-reference[@odd-or-even='odd' and not (@blank-or-not-blank='blank')][1]/@master-reference"/> - </xsl:when> - <xsl:when test="fo:conditional-page-master-reference[not(@odd-or-even='even') and not (@blank-or-not-blank='blank')]"> - <xsl:value-of select="fo:conditional-page-master-reference[not(@odd-or-even='even') and not (@blank-or-not-blank='blank')][1]/@master-reference"/> - </xsl:when> - <xsl:otherwise> <!-- cannot guess; take the first --> - <xsl:value-of select="fo:conditional-page-master-reference[1]/@master-reference"/> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - -<!-- =============================================================== --> -<!-- Header/footer properties --> -<!-- =============================================================== --> - - -<xsl:template match="@extent"> - <xsl:attribute name="width"><xsl:apply-templates select="." mode="convert-to-pixels"/></xsl:attribute> -</xsl:template> - -<xsl:template match="@width | @height"> - <xsl:attribute name="{name()}"><xsl:apply-templates select="." mode="convert-to-pixels"/></xsl:attribute> -</xsl:template> - -<xsl:template match="fo:region-before | fo:region-after"> - <xsl:call-template name="get-area-attributes"/> - - <!-- For header and footer, we suppress margins and padding --> - <xsl:variable name="style"> - <xsl:apply-templates select="@*[not (starts-with (name(), 'margin') or starts-with (name(), 'space') or starts-with (name(), 'padding'))]" mode="collect-style-attributes"> - <xsl:with-param name="orientation" select="@reference-orientation"/> - </xsl:apply-templates> - </xsl:variable> - - <xsl:if test="string-length($style) > 0"> - <xsl:attribute name="style"><xsl:value-of select="normalize-space($style)"/></xsl:attribute> - </xsl:if> - -</xsl:template> - -<xsl:template match="fo:region-body"> - <xsl:call-template name="get-area-attributes"/> - - <!-- For region-body, we suppress margin attributes --> - <xsl:variable name="style"> - <xsl:apply-templates select="@*[not (starts-with (name(), 'margin') or starts-with (name(), 'space'))]" mode="collect-style-attributes"> - <xsl:with-param name="orientation" select="@reference-orientation"/> - </xsl:apply-templates> - </xsl:variable> - - <xsl:if test="string-length($style) > 0"> - <xsl:attribute name="style"><xsl:value-of select="normalize-space($style)"/></xsl:attribute> - </xsl:if> -</xsl:template> - -<xsl:template match="fo:region-start | fo:region-end"/> - -<xsl:template name="get-area-attributes"> - <xsl:attribute name="valign"> - <xsl:choose> - <xsl:when test="@display-align"><xsl:value-of select="@display-align"/></xsl:when> - <xsl:otherwise>top</xsl:otherwise> - </xsl:choose> - </xsl:attribute> -</xsl:template> - -</xsl:stylesheet> \ No newline at end of file diff --git a/web_service/conf/properties.inc b/web_service/conf/properties.inc new file mode 100755 index 00000000..a9031e78 --- /dev/null +++ b/web_service/conf/properties.inc @@ -0,0 +1,10 @@ +<?php + $properties["schema_anc"] = 's_anc'; + $properties["anc"]["cont_zone_urba"]["intersect"]["schema"] = ''; + $properties["anc"]["cont_zone_urba"]["intersect"]["table"] = ''; + $properties["anc"]["cont_zone_urba"]["intersect"]["column"] = ''; + $properties["anc"]["cont_zone_urba"]["intersect"]["column_geom"] = ''; + $properties["anc"]["code_postal"]["schema"] = ''; + $properties["anc"]["code_postal"]["table"] = ''; + $properties["anc"]["code_postal"]["column"] = ''; +?> \ No newline at end of file diff --git a/web_service/conf/selected_properties.inc b/web_service/conf/selected_properties.inc new file mode 100755 index 00000000..9a70ac05 --- /dev/null +++ b/web_service/conf/selected_properties.inc @@ -0,0 +1,14 @@ +<?php + +$aAdminFields = Array( + 'schema_anc', + 'anc.*' +); +$aUserFields = Array( + 'schema_anc', + 'anc.*' +); + +$properties['aAdminFields'] = array_merge($properties['aAdminFields'], $aAdminFields); +$properties['aUserFields'] = array_merge($properties['aUserFields'], $aUserFields); +?> \ No newline at end of file diff --git a/web_service/sql/sqlQueries.xml b/web_service/sql/sqlQueries.xml new file mode 100644 index 00000000..805842b8 --- /dev/null +++ b/web_service/sql/sqlQueries.xml @@ -0,0 +1,3118 @@ +<?xml version="1.0" encoding="utf-8"?> +<sqlQueries> + <title>Scripts d'installation et de mises à jour de la base du VAS</title> + <queriesCollection> + <query> + <type>init</type> + <version>2017.01.00</version> + <code> + <![CDATA[ + -- + SELECT s_vitis.create_role_if_not_exists('anc_admin', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + SELECT s_vitis.create_role_if_not_exists('anc_user', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + --Partie pour le module anc version 2017-01-00 généré par WAB le 24/04/2017 à 14:59:20 + CREATE SCHEMA s_anc AUTHORIZATION u_vitis; + GRANT ALL ON SCHEMA s_anc TO u_vitis; + GRANT USAGE ON SCHEMA s_anc TO anc_admin; + GRANT USAGE ON SCHEMA s_anc TO anc_user; + CREATE TABLE s_anc.controle ( id_controle serial NOT NULL, id_installation int4 NOT NULL, controle_type character varying(50) NOT NULL, controle_ss_type character varying(50), des_date_control date NOT NULL, des_interval_control int4 NOT NULL, des_pers_control character varying(50), des_agent_control character varying(50), des_installateur int4, des_refus_visite boolean, des_date_installation date, des_date_recommande date, des_numero_recommande character varying(50), dep_date_depot date, dep_liste_piece text, dep_dossier_complet boolean, dep_date_envoi_incomplet date, des_nature_projet character varying(50), des_concepteur int4, des_ancien_disp text, car_surface_dispo_m2 character varying(50), car_permea character varying(50), car_valeur_permea character varying(50), car_hydromorphie character varying(50), car_prof_app character varying(50), car_nappe_fond character varying(50), car_terrain_innondable character varying(50), car_roche_sol character varying(50), car_dist_hab character varying(50), car_dist_lim_par character varying(50), car_dist_veget character varying(50), car_dist_puit character varying(50), des_reamenage_terrain character varying(50), des_reamenage_immeuble character varying(50), des_real_trvx character varying(50), des_anc_ss_accord character varying(50), des_collecte_ep character varying(50), des_sep_ep_eu character varying(50), des_eu_nb_sortie integer, des_eu_tes_regards integer, des_eu_pente_ecoul character varying(50), des_eu_regars_acces character varying(50), des_eu_alteration character varying(50), des_eu_ecoulement character varying(50), des_eu_depot_regard character varying(50), des_commentaire text, ts_conforme character varying(50), ts_type_effluent character varying(50), ts_capacite_bac character varying(50), ts_nb_bac integer, ts_coher_taille_util character varying(50), ts_aire_etanche character varying(50), ts_aire_abri character varying(50), ts_ventilation character varying(50), ts_cuve_etanche character varying(50), ts_val_comp character varying(50), ts_ruissel_ep character varying(50), ts_absence_nuisance character varying(50), ts_respect_regles character varying(50), ts_commentaires text, vt_primaire character varying(50), vt_secondaire character varying(50), vt_prim_loc character varying(50), vt_prim_ht character varying(50), vt_prim_diam character varying(50), vt_prim_type_extract character varying(50), vt_second_loc character varying(50), vt_second_ht character varying(50), vt_second_diam character varying(50), vt_second_type_extract character varying(50), da_chasse_acces character varying(50), da_chasse_auto character varying(50), da_chasse_pr_nat_eau character varying(50), da_chasse_ok character varying(50), da_chasse_dysfonctionnement character varying(50), da_chasse_degradation character varying(50), da_chasse_entretien character varying(50), da_pr_loc_pompe character varying(50), da_pr_acces character varying(50), da_pr_nb_pompe integer, da_pr_nat_eau character varying(50), da_pr_ventilatio character varying(50), da_pr_ok character varying(50), da_pr_alarme character varying(50), da_pr_clapet character varying(50), da_pr_etanche character varying(50), da_pr_branchement character varying(50), da_pr_dysfonctionnement character varying(50), da_pr_degradation character varying(50), da_pr_entretien character varying(50), da_commentaires text, cl_avis character varying(25), cl_classe_cbf character varying(25), cl_commentaires text, cl_date_avis date, cl_auteur_avis character varying(50), cl_date_prochain_control date, cl_montant character varying(50), cl_facture boolean, cl_facture_le date, maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, cloturer boolean, photos_f text, fiche_f text, rapport_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_controle PRIMARY KEY (id_controle)); + CREATE TABLE s_anc.dessin ( id_dessin serial NOT NULL, id_controle int4 NOT NULL, description text, label character varying(50), taille_text character varying(25), taille_geom character varying(25), couleur_contour character varying(25), couleur_fond character varying(25), couleur_label character varying(25), symbol character varying(25), symbol_angle character varying(25), observations text, maj character varying(50), maj_date date, "create" character varying(50), create_date date, archivage boolean, geom geometry, CONSTRAINT id_s_anc_dessin PRIMARY KEY (id_dessin), CONSTRAINT enforce_srid_geom CHECK (st_srid(geom) = 2154)); + CREATE TABLE s_anc.evacuation_eaux ( id_eva serial NOT NULL, id_controle int4 NOT NULL, evac_type character varying(50) NOT NULL, evac_is_nb int4, evac_is_long float, evac_is_larg float, evac_is_lin_total float, evac_is_surface float, evac_is_profondeur float, evac_is_geotex character varying(3), evac_is_rac character varying(3), evac_is_hum character varying(3), evac_is_reg_rep character varying(3), evac_is_reb_bcl character varying(3), evac_is_veg character varying(3), evac_is_type_effl character varying(50), evac_is_acc_reg character varying(3), evac_rp_type character varying(50), evac_rp_etude_hydrogeol character varying(3), evac_rp_rejet character varying(3), evac_rp_grav character varying(3), evac_rp_tamp character varying(3), evac_rp_type_eff character varying(50), evac_rp_trap character varying(3), evac_hs_type character varying(50), evac_hs_gestionnaire character varying(50), evac_hs_gestionnaire_auth character varying(3), evac_hs_intr character varying(3), evac_hs_type_eff character varying(50), evac_hs_ecoul character varying(3), evac_hs_etat text, evac_commentaires text, maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_eva PRIMARY KEY (id_eva)); + CREATE TABLE s_anc.filieres_agrees ( id_fag serial NOT NULL, id_controle int4 NOT NULL, fag_type character varying(50) NOT NULL, fag_agree character varying(30), fag_integerer character varying(30), fag_type_fil character varying(50), fag_denom character varying(50), fag_fab character varying(50), fag_num_ag int4, fag_cap_eh float4, fag_nb_cuv int4, fag_num int4, fag_num_filt int4, fag_mat_cuv character varying(50), fag_guide character varying(30), fag_livret character varying(30), fag_contr character varying(30), fag_soc character varying(50), fag_pres character varying(30), fag_plan character varying(30), fag_tamp character varying(30), fag_ancrage character varying(30), fag_rep character varying(30), fag_respect character varying(30), fag_ventil character varying(30), fag_mil_typ character varying(50), fag_mil_filt character varying(30), fag_mise_eau character varying(30), fag_pres_alar character varying(30), fag_pres_reg character varying(30), fag_att_conf character varying(30), fag_surpr character varying(30), fag_surpr_ref character varying(50), fag_surpr_dist character varying(30), fag_surpr_elec int4, fag_surpr_aer character varying(30), fag_reac_bull character varying(30), fag_broy character varying(30), fag_dec character varying(30), fag_type_eau character varying(50), fag_reg_mar character varying(50), fag_reg_mat character varying(50), fag_reg_affl character varying(30), fag_reg_hz character varying(30), fag_reg_van character varying(30), fag_fvl_nb int4, fag_fvl_long int4, fag_fvl_larg int4, fag_fvl_prof int4, fag_fvl_sep character varying(30), fag_fvl_pla character varying(30), fag_fvl_drain character varying(30), fag_fvl_resp character varying(30), fag_fhz_long int4, fag_fhz_larg int4, fag_fhz_prof int4, fag_fhz_drain character varying(30), fag_fhz_resp character varying(30), fag_mat_qual character varying(30), fag_mat_epa character varying(30), fag_pres_veg character varying(30), fag_pres_pro character varying(30), fag_acces character varying(30), fag_et_deg character varying(50), fag_et_od character varying(30), fag_et_dy text, fag_en_date date, fag_en_jus character varying(30), fag_en_entr character varying(50), fag_en_bord int4, fag_en_dest character varying(50), fag_en_perc int4, fag_en_contr character varying(30), fag_en_mainteger character varying(50), fag_dist_arb character varying(30), fag_dist_parc character varying(30), fag_dist_hab character varying(30), fag_dist_cap character varying(30), maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_fag PRIMARY KEY (id_fag)); + CREATE TABLE s_anc.installation ( id_installation serial NOT NULL, id_com character varying(5) NOT NULL, id_parc character varying(14), parc_sup character varying(50), parc_parcelle_associees text, parc_adresse character varying(50), code_postal character varying(5), parc_commune character varying(50), prop_titre character varying(50), prop_nom_prenom character varying(50), prop_adresse character varying(50), prop_code_postal character varying(5), prop_commune character varying(50), prop_tel character varying(10), prop_mail character varying(50), bati_type character varying(50), bati_ca_nb_pp int4, bati_ca_nb_eh int4, bati_ca_nb_chambres int4, bati_ca_nb_autres_pieces int4, bati_ca_nb_occupant int4, bati_nb_a_control int4, bati_date_achat character varying(50), bati_date_mutation character varying(50), cont_zone_enjeu character varying(50), cont_zone_sage character varying(50), cont_zone_autre character varying(50), cont_zone_urba character varying(50), cont_zone_anc character varying(50), cont_alim_eau_potable character varying(50), cont_puits_usage character varying(50), cont_puits_declaration character varying(50), cont_puits_situation character varying(50), cont_puits_terrain_mitoyen character varying(50), observations text, maj character varying(30), maj_date date, "create" character varying(30), create_date date, archivage character varying(3), geom geometry, photo_f text, document_f text, CONSTRAINT id_s_anc_installation PRIMARY KEY (id_installation), CONSTRAINT s_anc_installation_check CHECK (char_length('id_parc'::text) = 15), CONSTRAINT s_anc_installation_prop_nom_prenom_check CHECK (upper((prop_nom_prenom)::text) = (prop_nom_prenom)::text), CONSTRAINT s_anc_installation_prop_commune_check CHECK (upper((prop_commune)::text) = (prop_commune)::text), CONSTRAINT s_anc_installation_prop_titre_check CHECK (upper((prop_titre)::text) = (prop_titre)::text), CONSTRAINT s_anc_installation_parc_commune_check CHECK (upper((parc_commune)::text) = (parc_commune)::text), CONSTRAINT s_anc_installation_prop_adresse_check CHECK (upper((prop_adresse)::text) = (prop_adresse)::text)); + CREATE TABLE s_anc.param_admin ( id_parametre_admin serial NOT NULL, id_com character varying(5) NOT NULL, type character varying(50), "sous_type" character varying(50), nom character varying(50), prenom character varying(50), description text, civilite character varying(50), date_fin_validite date, qualite character varying(50), Signature text, CONSTRAINT s_anc_param_admin_pkey PRIMARY KEY (id_parametre_admin)); + CREATE TABLE s_anc.param_entreprise ( id_parametre_entreprises serial NOT NULL, id_com character varying(5) NOT NULL, siret character varying(50), raison_sociale character varying(50), nom_entreprise character varying(50), nom_contact character varying(50), telephone_fixe character varying(10), telephone_mobile character varying(10), web character varying(255), mail character varying(50), code_postal character varying(5), voie character varying(255), bureau_etude boolean, concepteur boolean, constructeur boolean, installateur boolean, vidangeur boolean, en_activite boolean, observations text, creat character varying(50), creat_date date, maj character varying(50), maj_date date, geom geometry, CONSTRAINT s_anc_param_entreprise_pkey PRIMARY KEY (id_parametre_entreprises)); + CREATE TABLE s_anc.nom_table(id_nom_table character varying(50), CONSTRAINT s_anc_nom_table_pkey PRIMARY KEY (id_nom_table)); + CREATE TABLE s_anc.nom_liste(id_nom_liste serial NOT NULL, nom_liste character varying(50), id_nom_table character varying(50), CONSTRAINT s_anc_nom_liste_pkey PRIMARY KEY (id_nom_liste)); + CREATE TABLE s_anc.param_liste ( id_parametre_liste serial NOT NULL, id_nom_table character varying(50), nom_liste character varying(50), valeur character varying(255), alias character varying(255), CONSTRAINT s_anc_param_liste_pkey PRIMARY KEY (id_parametre_liste)); + CREATE TABLE s_anc.param_tarif ( id_parametre_tarif serial NOT NULL, id_com character varying(6) NOT NULL, controle_type character varying(50), montant character varying(25), annee_validite character varying(10), devise character varying(10), CONSTRAINT s_anc_param_tarif_pkey PRIMARY KEY (id_parametre_tarif)); + CREATE TABLE s_anc.pretraitement ( id_pretraitement serial NOT NULL, id_controle int4 NOT NULL, ptr_type character varying(50) NOT NULL, ptr_volume character varying(50), ptr_marque character varying(50), ptr_materiau character varying(50), ptr_pose character varying(50), ptr_adapte character varying(50), ptr_conforme_projet character varying(50), ptr_dalle_repartition character varying(50), ptr_renforce character varying(50), ptr_verif_mise_en_eau character varying(50), ptr_type_eau character varying(50), ptr_reglementaire character varying(50), ptr_destination character varying(50), ptr_cloison character varying(50), ptr_commentaire text, ptr_im_distance character varying(50), ptr_im_hydrom character varying(50), ptr_im_dalle character varying(50), ptr_im_renfor character varying(50), ptr_im_puit character varying(50), ptr_im_fixation character varying(50), ptr_im_acces character varying(50), ptr_et_degrad character varying(50), ptr_et_real character varying(50), ptr_vi_date date, ptr_vi_justi character varying(50), ptr_vi_entr character varying(50), ptr_vi_bord int4, ptr_vi_dest character varying(50), ptr_vi_perc int4, maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_pretraitement PRIMARY KEY (id_pretraitement)); + CREATE TABLE s_anc.traitement ( id_traitement serial NOT NULL, id_controle int4 NOT NULL, tra_type character varying(50) NOT NULL, tra_nb int4, tra_long character varying(50), tra_larg character varying(50), tra_tot_lin character varying(50), tra_surf character varying(50), tra_largeur character varying(50), tra_hauteur character varying(50), tra_profondeur character varying(50), tra_dist_hab character varying(50), tra_dist_lim_parc character varying(50), tra_dist_veget character varying(50), tra_dist_puit character varying(50), tra_vm_racine character varying(50), tra_vm_humidite character varying(50), tra_vm_imper character varying(50), tra_vm_geogrille character varying(50), tra_vm_grav_qual character varying(50), tra_vm_grav_ep character varying(50), tra_vm_geo_text character varying(50), tra_vm_ht_terre_veget character varying(50), tra_vm_tuy_perf character varying(50), tra_vm_bon_mat character varying(50), tra_vm_sab_ep character varying(50), tra_vm_sab_qual character varying(50), tra_regrep_mat character varying(50), tra_regrep_affl character varying(50), tra_regrep_equi character varying(50), tra_regrep_perf character varying(50), tra_regbl_mat character varying(50), tra_regbl_affl character varying(50), tra_regbl_hz character varying(50), tra_regbl_epand character varying(50), tra_regbl_perf character varying(50), tra_regcol_mat character varying(50), tra_regcol_affl character varying(50), tra_regcol_hz character varying(50), maj character varying(30), maj_date date, "create" character varying(30) NOT NULL, create_date date NOT NULL, photos_f text, fiche_f text, schema_f text, documents_f text, plan_f text, CONSTRAINT id_s_anc_traitement PRIMARY KEY (id_traitement)); + ALTER TABLE s_anc.controle ADD CONSTRAINT fk_s_anc_controle FOREIGN KEY (id_installation) REFERENCES s_anc.installation (id_installation) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.controle ADD CONSTRAINT fk_s_anc_concepteur FOREIGN KEY (des_concepteur) REFERENCES s_anc.param_entreprise (id_parametre_entreprises) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.controle ADD CONSTRAINT fk_s_anc_installateur FOREIGN KEY (des_installateur) REFERENCES s_anc.param_entreprise (id_parametre_entreprises) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.dessin ADD CONSTRAINT fk_s_anc_controle_dessin FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.evacuation_eaux ADD CONSTRAINT fk_s_anc_controle_evacuation FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.filieres_agrees ADD CONSTRAINT fk_s_anc_controle_filiaires FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.pretraitement ADD CONSTRAINT fk_s_anc_controle_pretraitement FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.traitement ADD CONSTRAINT fk_s_anc_controle_traitement FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.nom_liste ADD CONSTRAINT fk_s_anc_nom_table FOREIGN KEY (id_nom_table) REFERENCES s_anc.nom_table (id_nom_table) ON UPDATE Restrict ON DELETE Restrict; + ALTER TABLE s_anc.nom_liste ADD CONSTRAINT uk_nom_liste UNIQUE(id_nom_table, nom_liste); + ALTER TABLE s_anc.param_liste ADD CONSTRAINT fk_s_anc_nom_table_liste FOREIGN KEY (id_nom_table, nom_liste) REFERENCES s_anc.nom_liste (id_nom_table, nom_liste) ON UPDATE Restrict ON DELETE Restrict; + CREATE OR REPLACE VIEW s_anc.v_installation AS sELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, commune.texte AS commune, parcelle.section, parcelle.parcelle, ( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle, last_controle.cl_avis, next_control.next_control FROM s_anc.installation LEFT JOIN s_cadastre.commune ON installation.id_com::bpchar = commune.id_com LEFT JOIN s_cadastre.parcelle ON installation.id_parc::bpchar = parcelle.id_par LEFT JOIN (select id_installation, max(des_date_control) as last_date_control, cl_avis from s_anc.controle where des_date_control < now() group by id_installation, cl_avis ORDER by last_date_control DESC LIMIT 1) as last_controle on installation.id_installation = last_controle.id_installation LEFT JOIN (select id_installation, min(des_date_control + interval '1 year' * des_interval_control) as next_control from s_anc.controle where des_date_control + interval '1 year' * des_interval_control > now() group by id_installation) as next_control on installation.id_installation = next_control.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + CREATE OR REPLACE view s_anc.v_pretraitement as SELECT id_pretraitement, pretraitement.id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f,controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT join s_anc.controle on pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; + CREATE TABLE s_anc.version( version character varying(10) NOT NULL, build integer NOT NULL, date timestamp with time zone NOT NULL, active boolean, CONSTRAINT pk_version PRIMARY KEY (version))WITH ( OIDS=FALSE); + ALTER TABLE s_anc.version OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.version TO u_vitis; + GRANT ALL ON TABLE s_anc.version TO anc_admin; + GRANT SELECT ON TABLE s_anc.version TO anc_user; + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + ALTER TABLE s_anc.controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + ALTER TABLE s_anc.dessin OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.dessin TO u_vitis; + GRANT ALL ON TABLE s_anc.dessin TO anc_admin; + GRANT ALL ON TABLE s_anc.dessin TO anc_user; + ALTER TABLE s_anc.evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux TO u_vitis; + ALTER TABLE s_anc.filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.filieres_agrees TO u_vitis; + ALTER TABLE s_anc.installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + ALTER TABLE s_anc.param_admin OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_admin TO u_vitis; + GRANT ALL ON TABLE s_anc.param_admin TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_admin TO anc_user; + ALTER TABLE s_anc.param_entreprise OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_entreprise TO u_vitis; + GRANT ALL ON TABLE s_anc.param_entreprise TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_entreprise TO anc_user; + ALTER TABLE s_anc.param_liste OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_liste TO u_vitis; + GRANT ALL ON TABLE s_anc.param_liste TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_liste TO anc_user; + ALTER TABLE s_anc.param_tarif OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_tarif TO u_vitis; + ALTER TABLE s_anc.pretraitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_user; + ALTER TABLE s_anc.traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.traitement TO u_vitis; + ALTER TABLE s_anc.nom_table OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.nom_table TO u_vitis; + GRANT SELECT ON TABLE s_anc.nom_table TO anc_admin; + ALTER TABLE s_anc.nom_liste OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.nom_liste TO u_vitis; + GRANT SELECT ON TABLE s_anc.nom_liste TO anc_admin; + INSERT INTO s_anc.nom_table (id_nom_table) values ('installation'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('controle'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('traitement'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('pretraitement'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('evacuation_eaux'); + INSERT INTO s_anc.nom_table (id_nom_table) values ('filieres_agrees'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'bati_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_zone_enjeu'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_zone_sage'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_alim_eau_potable'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_usage'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_declaration'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_situation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('installation', 'cont_puits_terrain_mitoyen'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'controle_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'controle_ss_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_interval_control'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_refus_visite'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'dep_liste_piece'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'dep_dossier_complet'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_permea'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_hydromorphie'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_nappe_fond'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_roche_sol'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_hab'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_lim_par'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_veget'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_dist_puit'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_reamenage_terrain'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_terrain_innondable'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_real_trvx'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_anc_ss_accord'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_collecte_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_sep_ep_eu'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_nb_sortie'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_tes_regards'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_pente_ecoul'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_regars_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_alteration'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_ecoulement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_eu_depot_regard'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_type_effluent'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_cuve_etanche'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_capacite_bac'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_nb_bac'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_ventilation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_val_comp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_ruissel_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_absence_nuisance'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_respect_regles'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_commentaires'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_primaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_secondaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_loc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_ht'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_diam'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_type_extract'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_loc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_ht'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_diam'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_type_extract'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_auto'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_pr_nat_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_ok'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_dysfonctionnement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_degradation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_chasse_entretien'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_loc_pompe'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_nb_pompe'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_nat_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_ventilatio'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_ok'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_alarme'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_clapet'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_etanche'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_branchement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_dysfonctionnement'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_degradation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'da_pr_entretien'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'cl_avis'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'cl_classe_cbf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'cl_facture'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_nb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_largeur'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_racine'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_humidite'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_imper'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_geogrille'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_grav_qual'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_grav_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_geo_text'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_ht_terre_veget'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_tuy_perf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_bon_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_sab_ep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_sab_qual'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_equi'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regrep_perf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_hz'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_epand'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regbl_perf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regcol_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regcol_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_regcol_hz'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_hab'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_lim_parc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_veget'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_dist_puit'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_volume'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_materiau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_pose'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_adapte'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_conforme_projet'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_dalle_repartition'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_renforce'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_verif_mise_en_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_reglementaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_type_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_distance'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_hydrom'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_dalle'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_renfor'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_puit'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_fixation'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_im_acces'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_et_degrad'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_et_real'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_vi_justi'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_nb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_type_effl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_geotex'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_rac'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_hum'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_reg_rep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_reb_bcl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_veg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_acc_reg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_trap'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_type_eff'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_gestionnaire'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_intr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_hs_ecoul'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_type'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_agree'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_integerer'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_type_fil'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_nb_cuv'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_cap_eh'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_guide'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_livret'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_contr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_plan'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_tamp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_ancrage'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_rep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_respect'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_ventil'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mil_filt'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mise_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_reg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_alar'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_att_conf'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr_elec'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr_dist'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_surpr_aer'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reac_bull'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_broy'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dec'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_type_eau'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_mat'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_affl'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_hz'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_reg_van'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_nb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_long'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_larg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_sep'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_pla'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_drain'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fvl_resp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_long'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_larg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_drain'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_fhz_resp'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mat_qual'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mat_epa'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_veg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_pres_pro'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_access'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_et_deg'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_et_od'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_et_dy'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_en_jus'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_en_contr'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_arb'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_parc'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_hab'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_dist_cap'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'HABITATION PRINCIPALE', 'Habitation Principale'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'HABITATION SECONDAIRE', 'Habitation Secondaire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'LOCAL PROFESSIONNEL', 'Local Professionnel'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'INHABITE', 'Inhabite'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'LOCATION ANNUELLE', 'Location Annuelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'LOCATION SAISONNIERE', 'Location Saisonniere'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'bati_type', 'AUTRES…', 'Autres…'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_enjeu', 'SANITAIRE', 'Sanitaire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_enjeu', 'ENVIRONNEMENTALE', 'Environnementale'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_enjeu', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_zone_sage', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'RESEAU PUBLIC', 'Reseau Public'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'RESEAU PRIVE', 'Reseau Prive'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'PUITS', 'Puits'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_alim_eau_potable', 'FORAGE', 'Forage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_usage', 'ALIMENTATION HUMAINE', 'Alimentation Humaine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_usage', 'NON CONSOMMATION HUMAINE', 'Non Consommation Humaine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_declaration', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_situation', '< 35 MÈTRES', '< 35 Mètres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_situation', '> 35 MÈTRES', '> 35 Mètres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_terrain_mitoyen', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_type', 'CONCEPTION', 'Conception'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_type', 'REALISATION', 'Realisation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_type', 'BON FONCTIONNEMENT', 'Bon Fonctionnement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'HORS VENTE', 'Hors Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'VENTE', 'Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'DIAG', 'Diag'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '6', '6'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '7', '7'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '8', '8'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '9', '9'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_interval_control', '10', '10'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_refus_visite', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'FORMULAIRE DE DEMANDE D’INSTALLATION DÛMENT COMPLÉTÉ ET SIGNÉ', 'Formulaire De Demande D’Installation Dûment Complété Et Signé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'PLAN DE SITUATION DE LA PARCELLE', 'Plan De Situation De La Parcelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'ÉTUDE PÉDOLOGIQUE', 'Étude Pédologique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'CHOIX / DESCRIPTION /DIMENSIONNEMENT DE LA FILIÈRE', 'Choix / Description /Dimensionnement De La Filière'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'PLAN DE MASSE DU PROJET', 'Plan De Masse Du Projet'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'PROFIL EN LONG', 'Profil En Long'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'AUTORISATION DE VOIRIE', 'Autorisation De Voirie'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'AUTORISATION DE REJET', 'Autorisation De Rejet'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_dossier_complet', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_permea', 'ESTIMEE', 'Estimee'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_permea', 'MESUREE', 'Mesuree'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_hydromorphie', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_nappe_fond', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_roche_sol', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_terrain', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_terrain_innondable', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_real_trvx', 'TOTALEMENT', 'Totalement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_real_trvx', 'PARTIELLEMENT', 'Partiellement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_real_trvx', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_anc_ss_accord', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'EN SURFACE', 'En Surface'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'INFILTRATION SUR LA PARCELLE', 'Infiltration Sur La Parcelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'RÉTENTION (CUVE, MARE...)', 'Rétention (Cuve, Mare...)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'VERS LE DISPOSITIF D''ANC', 'Vers Le Dispositif D''Anc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'PUISARD', 'Puisard'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'RÉSEAU PLUVIAL', 'Réseau Pluvial'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_collecte_ep', 'FOSSÉ', 'Fossé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_sep_ep_eu', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_nb_sortie', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_tes_regards', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_pente_ecoul', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_regars_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_alteration', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_ecoulement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_eu_depot_regard', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FECES SEULE', 'Feces Seule'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FECES URINE', 'Feces Urine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_cuve_etanche', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_capacite_bac', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_nb_bac', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ventilation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_ruissel_ep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_absence_nuisance', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_respect_regles', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_commentaires', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_primaire', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_secondaire', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_loc', 'TOITURE', 'Toiture'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_loc', 'SOUS LA GOUTTIERE', 'Sous La Gouttiere'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_loc', 'COMBLE', 'Comble'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'ABSENCE', 'Absence'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'CHAPEAU DE VENTILATION', 'Chapeau De Ventilation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'EXTRACTEUR STATIQUE', 'Extracteur Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'EXTRACTEUR EOLIEN', 'Extracteur Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_diam', '<100 MM', '<100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_diam', '100 MM', '100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_diam', '>100 MM', '>100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', '<40 CM AU DESSUS DU FAITAGE', '<40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', '40 CM AU DESSUS DU FAÎTAGE', '40 Cm Au Dessus Du Faîtage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', '>40 CM AU DESSUS DU FAITAGE', '>40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'HABITATION', 'Habitation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'DEPENDANDANCE DE L''HABITATION', 'Dependandance De L''Habitation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'MAT', 'Mat'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'ARBRE', 'Arbre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_loc', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', '<40 CM AU DESSUS DU FAITAGE', '<40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', '40 CM AU DESSUS DU FAÎTAGE', '40 Cm Au Dessus Du Faîtage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', '>40 CM AU DESSUS DU FAITAGE', '>40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_ht', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_diam', '<100 MM', '<100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_diam', '100 MM', '100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_diam', '>100 MM', '>100 Mm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'ABSENCE', 'Absence'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'CHAPEAU DE VENTILATION', 'Chapeau De Ventilation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'EXTRACTEUR STATIQUE', 'Extracteur Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'EXTRACTEUR EOLIEN', 'Extracteur Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_auto', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_ok', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_dysfonctionnement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_degradation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_entretien', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nb_pompe', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nb_pompe', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_nat_eau', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ventilatio', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_ok', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_alarme', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_clapet', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_etanche', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_branchement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_dysfonctionnement', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_degradation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_entretien', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'CONFORME', 'Conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'NON CONFORME', 'Non Conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE D''INSTALLATION', 'Absence D''Installation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'INSTALLATION NON CONFORME', 'Installation Non Conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORMITE CONSTATES (CHOIX MULTIPLE POSSIBLE)', 'Non Conformite Constates (Choix Multiple Possible)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'RECOMMANDATION DE TRAVAUX (CHOIX MULTIPLE POSSIBLE)', 'Recommandation De Travaux (Choix Multiple Possible)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE DE DEFAUTS', 'Absence De Defauts'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_facture', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_facture', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TRANCHEES D''EPANDAGE', 'Tranchees D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'LIT D''EPANDAGE', 'Lit D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE A SABLE VERTICAL DRAINE', 'Filtre A Sable Vertical Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE A SABLE VERTICAL NON DRAINE', 'Filtre A Sable Vertical Non Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE A SABLE HORIZONTAL DRAINE', 'Filtre A Sable Horizontal Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TERTRE', 'Tertre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_nb', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '0.5 M', '0.5 M'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '0.7 M', '0.7 M'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_racine', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_humidite', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_imper', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_hab', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_lim_parc', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_dist_puit', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geogrille', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_qual', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_grav_ep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geo_text', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_ht_terre_veget', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_tuy_perf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_bon_mat', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_ep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_sab_qual', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'autre', 'autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'non renseigné', 'non renseigné'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_equi', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_perf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_hz', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_epand', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_perf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'autre', 'autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'non renseigné', 'non renseigné'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_hz', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'BAC A GRAISSE', 'Bac A Graisse'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE TOUTES EAUX', 'Fosse Toutes Eaux'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'PREFILTRE', 'Prefiltre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'Autre dispositif de prétraitement', 'Autre Dispositif De Prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE CHIMIQUE', 'Fosse Chimique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE ETANCHE', 'Fosse Etanche'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '?', '?'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '200', '200'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '500', '500'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '? + 4000 L', '? + 4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '? X 2', '? X 2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1000 L', '1000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1000 L + ?', '1000 L + ?'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '10000 L', '10000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '11000 L', '11000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1200 L', '1200 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '12000 L', '12000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '12000 L (4x3000L)', '12000 L (4X3000L)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L', '1500 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L + 3000 L', '1500 L + 3000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L X2', '1500 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1700 L', '1700 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1800 L', '1800 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '2000 L', '2000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '2700 L', '2700 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 + 5000 L', '3000 + 5000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L', '3000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L + ?', '3000 L + ?'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L + 4000 L', '3000 L + 4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L + 5000 L', '3000 L + 5000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L X2', '3000 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3550 L', '3550 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4000 L', '4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4000 L + 6000 L', '4000 L + 6000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4000 L X2', '4000 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '4500 L', '4500 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '5000 L', '5000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '5000 L X2', '5000 L X2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '6000 L', '6000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '60m³', '60M³'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '7000 L', '7000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '3000 L X3', '3000 L X3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '? + 7000 L', '? + 7000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '8000 L', '8000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1000 L + 4000 L', '1000 L + 4000 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_volume', '1500 L + 500 L', '1500 L + 500 L'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'NON RENSEIGNE', 'Non Renseigne'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_pose', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_adapte', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_conforme_projet', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_dalle_repartition', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_renforce', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_verif_mise_en_eau', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_reglementaire', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE', 'Cuisine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'SALLE DE BAIN', 'Salle De Bain'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'LAVE LINGE', 'Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE, SALLE DE BAIN, LAVE LINGE', 'Cuisine, Salle De Bain, Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE, SALLE DE BAIN', 'Cuisine, Salle De Bain'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'CUISINE, LAVE LINGE', 'Cuisine, Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'SALLE DE BAIN, LAVE LINGE', 'Salle De Bain, Lave Linge'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'AUTRES', 'Autres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'Eaux ménagères', 'Eaux Ménagères'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'Eaux vannes', 'Eaux Vannes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type_eau', 'Eaux Usées', 'Eaux Usées'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_distance', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_hydrom', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_dalle', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_renfor', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_puit', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_fixation', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_im_acces', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_degrad', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_et_real', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_justi', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TRANCHEES D''EPANDAGE', 'Tranchees D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'LIT D''EPANDAGE', 'Lit D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'FILTRE A SABLE VERTICAL DRAINE', 'Filtre A Sable Vertical Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'FILTRE A SABLE VERTICAL NON DRAINE', 'Filtre A Sable Vertical Non Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'FILTRE A SABLE HORIZONTAL DRAINE', 'Filtre A Sable Horizontal Draine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TERTRE', 'Tertre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'Puits d''infiltration', 'Puits D''Infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'Puits perdu', 'Puits Perdu'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_nb', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_type_effl', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_geotex', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_rac', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_hum', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reg_rep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_reb_bcl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_veg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_acc_reg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type', 'puits d''infiltration', 'Puits D''Infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type', 'puits perdu', 'Puits Perdu'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_trap', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'En surface', 'En Surface'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'infiltration sur la parcelle', 'Infiltration Sur La Parcelle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'rétention (cuve, mare...)', 'Rétention (Cuve, Mare...)'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'vers le dispositif d''anc', 'Vers Le Dispositif D''Anc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'Puisard', 'Puisard'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'Réseau pluvial', 'Réseau Pluvial'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'Fossé', 'Fossé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EM BRUTES', 'Em Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EV BRUTES', 'Ev Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EU BRUTES', 'Eu Brutes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EM PRETRAITEES', 'Em Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EV PRETRAITEES', 'Ev Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EU PRETRAITEES', 'Eu Pretraitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EM TRAITEES', 'Em Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EV TRAITEES', 'Ev Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type_eff', 'EU TRAITEES', 'Eu Traitees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_gestionnaire', 'Commune', 'Commune'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_gestionnaire', 'Departement', 'Departement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_gestionnaire', 'Privé', 'Privé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_intr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_ecoul', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'Filtre Compact', 'Filtre Compact'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'Microstration', 'Microstration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'PhytoEpuration', 'Phytoepuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_fil', 'Culture libre', 'Culture Libre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_fil', 'Culture fixe', 'Culture Fixe'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_nb_cuv', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_cap_eh', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_guide', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_livret', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_contr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_plan', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_tamp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ancrage', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_rep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_respect', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_ventil', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_filt', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mise_eau', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_reg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_alar', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_att_conf', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_elec', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_dist', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_surpr_aer', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reac_bull', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_broy', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dec', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_eau', 'EAUX MENAGERES', 'Eaux Menageres'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_eau', 'EAUX VANNES', 'Eaux Vannes'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type_eau', 'EAUX USEES', 'Eaux Usees'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'AUTRE', 'Autre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_mat', 'NON RENSEIGNE', 'Non Renseigne'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_affl', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_hz', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_reg_van', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_nb', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_long', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_larg', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_sep', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_pla', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_drain', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fvl_resp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_long', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '1', '1'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '2', '2'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '3', '3'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '4', '4'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_larg', '5', '5'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_drain', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_fhz_resp', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_qual', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_epa', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_veg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_pres_pro', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_access', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_deg', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_od', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_et_dy', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_jus', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_contr', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_arb', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_parc', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_hab', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_dist_cap', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + CREATE OR REPLACE VIEW s_anc.v_param_tarif AS SELECT id_parametre_tarif, id_com, controle_type, montant, annee_validite, devise FROM s_anc.param_tarif WHERE param_tarif.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_param_tarif OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO anc_admin; + GRANT SELECT ON TABLE s_anc.v_param_tarif TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT id_eva, evacuation_eaux.id_controle, evac_type, evac_is_nb, evac_is_long, evac_is_larg, evac_is_lin_total, evac_is_surface, evac_is_profondeur, evac_is_geotex, evac_is_rac, evac_is_hum, evac_is_reg_rep, evac_is_reb_bcl, evac_is_veg, evac_is_type_effl, evac_is_acc_reg, evac_rp_type, evac_rp_etude_hydrogeol, evac_rp_rejet, evac_rp_grav, evac_rp_tamp, evac_rp_type_eff, evac_rp_trap, evac_hs_type, evac_hs_gestionnaire, evac_hs_gestionnaire_auth, evac_hs_intr, evac_hs_type_eff, evac_hs_ecoul, evac_hs_etat, evac_commentaires, evacuation_eaux.maj, evacuation_eaux.maj_date, evacuation_eaux."create", evacuation_eaux.create_date, evacuation_eaux.photos_f, evacuation_eaux.fiche_f, evacuation_eaux.schema_f, evacuation_eaux.documents_f, evacuation_eaux.plan_f, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT id_fag, filieres_agrees.id_controle, fag_type, fag_agree, fag_integerer, fag_type_fil, fag_denom, fag_fab, fag_num_ag, fag_cap_eh, fag_nb_cuv, fag_num, fag_num_filt, fag_mat_cuv, fag_guide, fag_livret, fag_contr, fag_soc, fag_pres, fag_plan, fag_tamp, fag_ancrage, fag_rep, fag_respect, fag_ventil, fag_mil_typ, fag_mil_filt, fag_mise_eau, fag_pres_alar, fag_pres_reg, fag_att_conf, fag_surpr, fag_surpr_ref, fag_surpr_dist, fag_surpr_elec, fag_surpr_aer, fag_reac_bull, fag_broy, fag_dec, fag_type_eau, fag_reg_mar, fag_reg_mat, fag_reg_affl, fag_reg_hz, fag_reg_van, fag_fvl_nb, fag_fvl_long, fag_fvl_larg, fag_fvl_prof, fag_fvl_sep, fag_fvl_pla, fag_fvl_drain, fag_fvl_resp, fag_fhz_long, fag_fhz_larg, fag_fhz_prof, fag_fhz_drain, fag_fhz_resp, fag_mat_qual, fag_mat_epa, fag_pres_veg, fag_pres_pro, fag_acces, fag_et_deg, fag_et_od, fag_et_dy, fag_en_date, fag_en_jus, fag_en_entr, fag_en_bord, fag_en_dest, fag_en_perc, fag_en_contr, fag_en_mainteger, fag_dist_arb, fag_dist_parc, fag_dist_hab, fag_dist_cap, filieres_agrees.maj, filieres_agrees.maj_date, filieres_agrees."create", filieres_agrees.create_date, filieres_agrees.photos_f, filieres_agrees.fiche_f, filieres_agrees.schema_f, filieres_agrees.documents_f, filieres_agrees.plan_f, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT id_traitement, traitement.id_controle, tra_type, tra_nb, tra_long, tra_larg, tra_tot_lin, tra_surf, tra_largeur, tra_hauteur, tra_profondeur, tra_dist_hab, tra_dist_lim_parc, tra_dist_veget, tra_dist_puit, tra_vm_racine, tra_vm_humidite, tra_vm_imper, tra_vm_geogrille, tra_vm_grav_qual, tra_vm_grav_ep, tra_vm_geo_text, tra_vm_ht_terre_veget, tra_vm_tuy_perf, tra_vm_bon_mat, tra_vm_sab_ep, tra_vm_sab_qual, tra_regrep_mat, tra_regrep_affl, tra_regrep_equi, tra_regrep_perf, tra_regbl_mat, tra_regbl_affl, tra_regbl_hz, tra_regbl_epand, tra_regbl_perf, tra_regcol_mat, tra_regcol_affl, tra_regcol_hz, traitement.maj, traitement.maj_date, traitement."create", traitement.create_date, traitement.photos_f, traitement.fiche_f, traitement.schema_f, traitement.documents_f, traitement.plan_f, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + + + --Partie s_vitis généré par WAB le 24/04/2017 à 14:59:19 + DELETE FROM s_vitis.vm_section WHERE label_id ~ '^anc_([0-9]+)$'; + DELETE FROM s_vitis.vm_table_field WHERE label_id ~ '^anc_([0-9]+)$'; + DELETE FROM s_vitis.vm_table_button WHERE label_id ~ '^anc_([0-9]+)$'; + DELETE FROM s_vitis.vm_module WHERE module_id='anc'; + DELETE FROM s_vitis.vm_string WHERE string_id ~ '^anc_([0-9]+)$'; + INSERT INTO s_vitis.vm_module (module_id, description, version, label) VALUES ('anc','Module de gestion des assainissements non collectifs',0.1,'Module ANC'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'anc_user', 'Utilisateur du module anc. Permet d''accèder au mode de saisie' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='anc_user'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'anc_admin', 'Admin du module ANC. Permet d''accèder au paramétrage du module' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='anc_admin'); + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='anc_user') THEN CREATE ROLE anc_user NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='anc_admin') THEN CREATE ROLE anc_admin NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet ', 'anc_0'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet ', 'anc_1'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet ', 'anc_2'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_installation', 'anc_3'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_4'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_5'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_6'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_installation', 'anc_7'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_8'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_9'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_10'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_installation', 'anc_11'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_12'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_13'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_14'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_controle', 'anc_15'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_16'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_17'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_18'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_filiere_agree', 'anc_19'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_20'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_21'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_22'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_param_liste', 'anc_23'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_24'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_25'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_26'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_liste', 'anc_27'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom_table', 'anc_28'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom_liste', 'anc_29'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field valeurs', 'anc_30'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field alias', 'anc_31'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_param_tarif', 'anc_32'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_33'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_34'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_35'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_tarif', 'anc_36'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_com', 'anc_37'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field controle_type', 'anc_38'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field montant', 'anc_39'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field annee_validite', 'anc_40'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field devise', 'anc_41'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_param_admin', 'anc_42'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_43'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_44'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_45'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_admin', 'anc_46'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_com', 'anc_47'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field type', 'anc_48'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field sous type', 'anc_49'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom', 'anc_50'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prenom', 'anc_51'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field description', 'anc_52'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field civilite', 'anc_53'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field date_fin_validite', 'anc_54'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field qualite', 'anc_55'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field signature', 'anc_56'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_entreprise', 'anc_57'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_58'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_59'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_60'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_parametre_entreprises', 'anc_61'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_com', 'anc_62'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field siret', 'anc_63'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nom_entreprise', 'anc_64'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field code_postal', 'anc_65'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field voie', 'anc_66'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_67'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_installation', 'anc_68'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field controle_type', 'anc_69'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field maj', 'anc_70'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field maj_date', 'anc_71'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field create', 'anc_72'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field create_date', 'anc_73'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_pretraitement', 'anc_74'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_75'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_76'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_77'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_pretraitement', 'anc_78'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_79'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ptr_type', 'anc_80'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field num_dossier', 'anc_81'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_evacuation_eaux', 'anc_82'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_83'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_84'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_85'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_eva', 'anc_86'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_87'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field evac_type', 'anc_88'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field create', 'anc_89'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet anc_traitement', 'anc_90'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'anc_91'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Supprimer', 'anc_92'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Ajout', 'anc_93'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_94'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field fag_type', 'anc_95'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_installation', 'anc_96'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_traitement', 'anc_97'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_98'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field tra_type', 'anc_99'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field num_dossier', 'anc_100'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_fag', 'anc_101'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_controle', 'anc_102'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field fag_type', 'anc_103'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field num_dossier', 'anc_104'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Traitement', 'anc_105'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Filières agréées', 'anc_106'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Dispositifs Annexes', 'anc_107'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Evacuation des eaux', 'anc_108'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section traitement', 'anc_109'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section Suivi', 'anc_110'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section documents', 'anc_111'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section schéma', 'anc_112'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_0','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_0','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_1','en','id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_1','fr','id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_2','en','town'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_2','fr','commune'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_3','en','section'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_3','fr','section'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_4','en','parcel'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_4','fr','parcelle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_5','en','file'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_5','fr','Dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_6','en','Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_6','fr','Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_7','en','Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_7','fr','Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_8','en','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_8','fr','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_9','en','Toilettes sèches'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_9','fr','Toilettes sèches'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_10','en','Ventilation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_10','fr','Ventilation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_11','en','Installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_11','fr','Installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_12','en','Habitation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_12','fr','Habitation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_13','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_13','fr','Supprimer les installations'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_14','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_14','fr','Ajouter une installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_15','en','Control'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_15','fr','Contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_16','en','File'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_16','fr','Dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_17','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_17','fr','Supprimer les contrôles'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_18','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_18','fr','Ajouter un contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_19','en','Filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_19','fr','Filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_20','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_20','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_21','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_21','fr','Supprimer les filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_22','en','add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_22','fr','Ajouter une filière agréée'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_23','en','List'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_23','fr','Liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_24','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_24','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_25','en','Supprimer les listes'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_25','fr','Supprimer les listes'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_26','en','Ajouter une liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_26','fr','Ajouter une liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_27','en','id_parametre_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_27','fr','id_parametre_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_28','en','nom_table'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_28','fr','nom_table'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_29','en','nom_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_29','fr','nom_liste'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_30','en','valeurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_30','fr','valeurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_31','en','alias'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_31','fr','alias'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_32','en','Tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_32','fr','Tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_33','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_33','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_34','en','Supprimer les tarifs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_34','fr','Supprimer les tarifs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_35','en','Ajouter un tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_35','fr','Ajouter un tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_36','en','id_parametre_tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_36','fr','id_parametre_tarif'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_37','en','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_37','fr','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_38','en','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_38','fr','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_39','en','montant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_39','fr','montant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_40','en','annee_validite'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_40','fr','annee_validite'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_41','en','devise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_41','fr','devise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_42','en','Admin'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_42','fr','Administrateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_43','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_43','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_44','en','Supprimer les administrateurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_44','fr','Supprimer les administrateurs'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_45','en','Ajouter un administrateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_45','fr','Ajouter un administrateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_46','en','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_46','fr','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_47','en','Commune'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_47','fr','Commune'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_48','en','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_48','fr','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_49','en','Sous type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_49','fr','Sous type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_50','en','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_50','fr','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_51','en','Prénom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_51','fr','Prénom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_52','en','Description'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_52','fr','Description'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_53','en','Civilité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_53','fr','Civilité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_54','en','Fin de validité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_54','fr','Fin de validité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_55','en','Qualité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_55','fr','Qualité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_56','en','Signature'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_56','fr','Signature'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_57','en','Entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_57','fr','Entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_58','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_58','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_59','en','Supprimer les entreprises'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_59','fr','Supprimer les entreprises'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_60','en','Ajouter une entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_60','fr','Ajouter une entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_61','en','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_61','fr','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_62','en','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_62','fr','id_com'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_63','en','siret'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_63','fr','siret'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_64','en','nom_entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_64','fr','nom_entreprise'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_65','en','code_postal'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_65','fr','code_postal'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_66','en','Address'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_66','fr','Adresse'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_67','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_67','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_68','en','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_68','fr','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_69','en','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_69','fr','controle_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_70','en','maj'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_70','fr','maj'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_71','en','maj_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_71','fr','maj_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_72','en','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_72','fr','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_73','en','create_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_73','fr','create_date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_74','en','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_74','fr','Pretraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_75','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_75','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_76','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_76','fr','Supprimer les prétraitements'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_77','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_77','fr','Ajouter un prétraitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_78','en','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_78','fr','ID'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_79','en','Contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_79','fr','Contrôle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_80','en','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_80','fr','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_81','en','N° dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_81','fr','N° dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_82','en','Evacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_82','fr','Evacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_83','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_83','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_84','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_84','fr','Supprimer les évacuations des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_85','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_85','fr','Ajouter une évacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_86','en','id_eva'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_86','fr','id_eva'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_87','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_87','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_88','en','evac_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_88','fr','evac_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_89','en','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_89','fr','create'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_90','en','Traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_90','fr','Traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_91','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_91','fr',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_92','en','Delete'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_92','fr','Supprimer les traitements'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_93','en','Add'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_93','fr','Ajouter un traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_94','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_94','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_95','en','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_95','fr','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_96','en','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_96','fr','id_installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_97','en','id_traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_97','fr','id_traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_98','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_98','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_99','en','tra_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_99','fr','tra_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_100','en','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_100','fr','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_101','en','id_fag'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_101','fr','id_fag'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_102','en','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_102','fr','id_controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_103','en','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_103','fr','fag_type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_104','en','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_104','fr','num_dossier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_105', 'en', 'Treatment'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_105', 'fr', 'Traitement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_106', 'en', 'Approved sectors'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_106', 'fr', 'Filières agréées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_107', 'en', 'Attachments'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_107', 'fr', 'Dispositifs Annexes'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_108', 'en', 'Water evacuation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_108', 'fr', 'Evacuation des eaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_109', 'en', 'Conclusion'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_109', 'fr', 'Conclusion'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_110', 'en', 'Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_110', 'fr', 'Suivi'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_111', 'en', 'Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_111', 'fr', 'Documents'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_112', 'en', 'Schema'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_112', 'fr', 'Schema'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('anc_saisie','anc'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('anc_parametrage','anc'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (5,'anc_saisie','anc_admin'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (5,'anc_saisie','anc_user'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (6,'anc_parametrage','anc_admin'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 0, 'anc_saisie', 'anc_11', 'anc/installations', 'editSectionForm', 'showSectionForm', 'id_installation', 'ASC', 'anc_installation'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 1, 'anc_saisie', 'anc_15', 'anc/controles', 'editSectionForm', 'showSectionForm', 'id_controle', 'ASC', 'anc_controle'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 5, 'anc_saisie', 'anc_74', 'anc/pretraitements', 'editSectionForm', 'showSectionForm', 'id_pretraitement', 'ASC', 'anc_pretraitement'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 2, 'anc_saisie', 'anc_82', 'anc/evacuation_eauxs', 'editSectionForm', 'showSectionForm', 'id_eva', 'ASC', 'anc_evacuation_eaux'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 3, 'anc_saisie', 'anc_90', 'anc/traitements', 'editSectionForm', 'showSectionForm', 'id_traitement', 'ASC', 'anc_traitement'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 4, 'anc_saisie', 'anc_19', 'anc/filieres_agrees', 'editSectionForm', 'showSectionForm', 'id_fag', 'ASC', 'anc_filieres_agree'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 2, 'anc_parametrage', 'anc_42', 'anc/param_admins', 'editSectionForm', 'showSectionForm', 'id_parametre_admin', 'ASC', 'anc_param_admin'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 0, 'anc_parametrage', 'anc_23', 'anc/param_listes', 'editSectionForm', 'showSectionForm', 'id_parametre_liste', 'ASC', 'anc_param_liste'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 1, 'anc_parametrage', 'anc_32', 'anc/param_tarifs', 'editSectionForm', 'showSectionForm', 'id_parametre_tarif', 'ASC', 'anc_param_tarif'); + INSERT INTO s_vitis.vm_tab (tab_id, event, index, mode_id, label_id, ressource_id, edit_column, show_column, sorted_by, sorted_dir, name) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)),'loadList()', 3, 'anc_parametrage', 'anc_57', 'anc/entreprises', 'editSectionForm', 'showSectionForm', 'id_parametre_entreprises', 'ASC', 'anc_entreprise'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_13', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_14', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_17', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_18', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_21', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_22', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_25', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_26', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_34', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_35', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_44', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_45', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_59', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_60', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_76', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_77', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_84', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_85', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_92', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_93', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_installation', '1', '1', 0, 30, 'left', 'anc_1', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'commune', '1', '1', 1, 100, 'left', 'anc_2', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'section', '1', '1', 3, 50, 'left', 'anc_3', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'parcelle', '1', '1', 4, 50, 'left', 'anc_4', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 5, 80, 'left', 'anc_5', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_liste', '1', '1', 0, 120, 'left', 'anc_27', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_nom_table', '1', '1', 1, 100, 'left', 'anc_28', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nom_liste', '1', '1', 2, 120, 'left', 'anc_29', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'valeur', '1', '1', 3, 200, 'left', 'anc_30', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'alias', '1', '1', 4, 120, 'left', 'anc_31', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_tarif', '1', '1', 0, 120, 'left', 'anc_36', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 1, 50, 'left', 'anc_37', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'controle_type', '1', '1', 2, 90, 'left', 'anc_38', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'montant', '1', '1', 3, 50, 'left', 'anc_39', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'annee_validite', '1', '1', 4, 90, 'left', 'anc_40', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'devise', '1', '1', 5, 50, 'left', 'anc_41', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_admin', '1', '1', 0, 50, 'left', 'anc_46', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 1, 110, 'left', 'anc_47', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'type', '1', '1', 2, 50, 'left', 'anc_48', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'sous type', '1', '1', 3, 70, 'left', 'anc_49', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nom', '1', '1', 4, 50, 'left', 'anc_50', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prenom', '1', '1', 5, 50, 'left', 'anc_51', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'description', '1', '1', 6, 70, 'left', 'anc_52', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'civilite', '1', '1', 7, 50, 'left', 'anc_53', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'date_fin_validite', '1', '1', 8, 50, 'left', 'anc_54', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'qualite', '1', '1', 9, 50, 'left', 'anc_55', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'signature', '1', '1', 10, 60, 'left', 'anc_56', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_parametre_entreprises', '1', '1', 0, 50, 'left', 'anc_61', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 1, 50, 'left', 'anc_62', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'siret', '1', '1', 2, 105, 'left', 'anc_63', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nom_entreprise', '1', '1', 3, 110, 'left', 'anc_64', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'code_postal', '1', '1', 4, 80, 'left', 'anc_65', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'voie', '1', '1', 5, 180, 'left', 'anc_66', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 0, 70, 'left', 'anc_67', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_installation', '1', '1', 1, 90, 'left', 'anc_68', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'controle_type', '1', '1', 2, 140, 'left', 'anc_69', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'maj', '1', '1', 3, 100, 'left', 'anc_70', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'maj_date', '1', '1', 4, 70, 'left', 'anc_71', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'create', '1', '1', 5, 100, 'left', 'anc_72', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'create_date', '1', '1', 6, 70, 'left', 'anc_73', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_pretraitement', '1', '1', 0, 50, 'left', 'anc_78', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 60, 'left', 'anc_79', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'ptr_type', '1', '1', 2, 200, 'left', 'anc_80', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 3, 100, 'left', 'anc_81', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_eva', '1', '1', 0, 50, 'left', 'anc_86', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 70, 'left', 'anc_87', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'evac_type', '1', '1', 2, 250, 'left', 'anc_88', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'create', '1', '1', 3, 100, 'left', 'anc_89', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_traitement', '1', '1', 0, 80, 'left', 'anc_97', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 70, 'left', 'anc_98', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'tra_type', '1', '1', 2, 50, 'left', 'anc_99', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 3, 80, 'left', 'anc_100', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_fag', '1', '1', 0, 50, 'left', 'anc_101', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_controle', '1', '1', 1, 80, 'left', 'anc_102', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'fag_type', '1', '1', 2, 120, 'left', 'anc_103', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'num_dossier', '1', '1', 3, 100, 'left', 'anc_104', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_16', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_20', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_24', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_33', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_43', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_12', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_58', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_6', 'installation_suivi', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_7', 'installation_documents', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_8', 'controle_pretraitement', 2, 'Javascript:loadAncPretraitementsControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/pretraitements', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_9', 'controle_toilettes_seches', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_10', 'controle_ventilation', 4, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_105', 'controle_traitement', 5, 'Javascript:loadAncTraitementsControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/traitements', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_106', 'controle_filieres', 6, 'Javascript:loadAncFilieresAgreeesControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/filieres_agrees', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_107', 'controle_dispositif', 7, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_108', 'controle_evacuation', 8, 'Javascript:loadAncEvacuationEauxControl', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'workspaceListTpl.html', 'anc/evacuation_eauxs', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_109', 'controle_conclusion', 9, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_110', 'controle_suivi', 10, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_111', 'controle_documents', 11, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_75', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_83', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), 'workspaceListTpl.html', 'anc/evacuation_eauxs', 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_112', 'controle_schema', 12, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), 'anc'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('anc_91', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), 'anc'); + + -- Installation + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.installation ALTER COLUMN archivage TYPE boolean USING archivage::boolean; + CREATE OR REPLACE VIEW s_anc.v_installation AS sELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, commune.texte AS commune, parcelle.section, parcelle.parcelle, ( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle, last_controle.cl_avis, next_control.next_control FROM s_anc.installation LEFT JOIN s_cadastre.commune ON installation.id_com::bpchar = commune.id_com LEFT JOIN s_cadastre.parcelle ON installation.id_parc::bpchar = parcelle.id_par LEFT JOIN (select id_installation, max(des_date_control) as last_date_control, cl_avis from s_anc.controle where des_date_control < now() group by id_installation, cl_avis ORDER by last_date_control DESC LIMIT 1) as last_controle on installation.id_installation = last_controle.id_installation LEFT JOIN (select id_installation, min(des_date_control + interval '1 year' * des_interval_control) as next_control from s_anc.controle where des_date_control + interval '1 year' * des_interval_control > now() group by id_installation) as next_control on installation.id_installation = next_control.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + ALTER TABLE s_anc.installation_id_installation_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.installation_id_installation_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.installation_id_installation_seq TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation , id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces , bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING s_anc.installation.*, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, (select commune.texte as commune from s_cadastre.commune where commune.id_com = installation.id_com), (select parcelle.section from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (select parcelle.parcelle from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation), ( SELECT controle.cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() GROUP BY controle.cl_avis ORDER BY (max(controle.des_date_control)) DESC LIMIT 1), ( SELECT min(controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) > now() GROUP BY controle.id_installation); + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com=new.id_com, id_parc=new.id_parc, parc_sup=new.parc_sup, parc_parcelle_associees=new.parc_parcelle_associees, parc_adresse=new.parc_adresse, code_postal=new.code_postal, parc_commune=new.parc_commune, prop_titre=new.prop_titre, prop_nom_prenom=new.prop_nom_prenom, prop_adresse=new.prop_adresse, prop_code_postal=new.prop_code_postal, prop_commune=new.prop_commune, prop_tel=new.prop_tel, prop_mail=new.prop_mail, bati_type=new.bati_type, bati_ca_nb_pp=new.bati_ca_nb_pp, bati_ca_nb_eh=new.bati_ca_nb_eh, bati_ca_nb_chambres=new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces=new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant=new.bati_ca_nb_occupant, bati_nb_a_control=new.bati_nb_a_control, bati_date_achat=new.bati_date_achat, bati_date_mutation=new.bati_date_mutation, cont_zone_enjeu=new.cont_zone_enjeu, cont_zone_sage=new.cont_zone_sage, cont_zone_autre=new.cont_zone_autre, cont_zone_urba=new.cont_zone_urba, cont_zone_anc=new.cont_zone_anc, cont_alim_eau_potable=new.cont_alim_eau_potable, cont_puits_usage=new.cont_puits_usage, cont_puits_declaration=new.cont_puits_declaration, cont_puits_situation=new.cont_puits_situation, cont_puits_terrain_mitoyen=new.cont_puits_terrain_mitoyen, observations=new.observations, maj=new.maj, maj_date=new.maj_date, "create"=new."create", create_date=new.create_date, archivage=new.archivage, geom=new.geom, photo_f=new.photo_f, document_f=new.document_f WHERE id_installation = new.id_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + + -- Contrôle + ALTER TABLE s_anc.controle_id_controle_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.controle_id_controle_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.controle_id_controle_seq TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Prétraitement + DROP VIEW s_anc.v_pretraitement; + CREATE OR REPLACE VIEW s_anc.v_pretraitement AS SELECT pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, controle.id_installation, controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT JOIN s_anc.controle ON pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_user; + CREATE OR REPLACE RULE insert_v_pretraitement AS ON INSERT TO s_anc.v_pretraitement DO INSTEAD INSERT INTO s_anc.pretraitement(id_pretraitement, id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, maj, maj_date, "create", create_date, photos_f, fiche_f, schema_f, documents_f, plan_f) VALUES (new.id_pretraitement, new.id_controle, new.ptr_type, new.ptr_volume, new.ptr_marque, new.ptr_materiau, new.ptr_pose, new.ptr_adapte, new.ptr_conforme_projet, new.ptr_dalle_repartition, new.ptr_renforce, new.ptr_verif_mise_en_eau, new.ptr_type_eau, new.ptr_reglementaire, new.ptr_destination, new.ptr_cloison, new.ptr_commentaire, new.ptr_im_distance, new.ptr_im_hydrom, new.ptr_im_dalle, new.ptr_im_renfor, new.ptr_im_puit, new.ptr_im_fixation, new.ptr_im_acces, new.ptr_et_degrad, new.ptr_et_real, new.ptr_vi_date, new.ptr_vi_justi, new.ptr_vi_entr, new.ptr_vi_bord, new.ptr_vi_dest, new.ptr_vi_perc, new.maj, new.maj_date, new."create", new.create_date, new.photos_f, new.fiche_f, new.schema_f, new.documents_f, new.plan_f) RETURNING pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, (SELECT id_installation FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as id_installation, (SELECT controle_type FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as controle_type, (SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_pretraitement AS ON UPDATE TO s_anc.v_pretraitement DO INSTEAD UPDATE s_anc.pretraitement SET id_pretraitement = new.id_pretraitement, id_controle = new.id_controle, ptr_type = new.ptr_type, ptr_volume = new.ptr_volume, ptr_marque = new.ptr_marque, ptr_materiau = new.ptr_materiau, ptr_pose = new.ptr_pose, ptr_adapte = new.ptr_adapte, ptr_conforme_projet = new.ptr_conforme_projet, ptr_dalle_repartition = new.ptr_dalle_repartition, ptr_renforce = new.ptr_renforce, ptr_verif_mise_en_eau = new.ptr_verif_mise_en_eau, ptr_type_eau = new.ptr_type_eau, ptr_reglementaire = new.ptr_reglementaire, ptr_destination = new.ptr_destination, ptr_cloison = new.ptr_cloison, ptr_commentaire = new.ptr_commentaire, ptr_im_distance = new.ptr_im_distance, ptr_im_hydrom = new.ptr_im_hydrom, ptr_im_dalle = new.ptr_im_dalle, ptr_im_renfor = new.ptr_im_renfor, ptr_im_puit = new.ptr_im_puit, ptr_im_fixation = new.ptr_im_fixation, ptr_im_acces = new.ptr_im_acces, ptr_et_degrad = new.ptr_et_degrad, ptr_et_real = new.ptr_et_real, ptr_vi_date = new.ptr_vi_date, ptr_vi_justi = new.ptr_vi_justi, ptr_vi_entr = new.ptr_vi_entr, ptr_vi_bord = new.ptr_vi_bord, ptr_vi_dest = new.ptr_vi_dest, ptr_vi_perc = new.ptr_vi_perc, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, photos_f = new.photos_f, fiche_f = new.fiche_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f WHERE pretraitement.id_pretraitement = new.id_pretraitement; + CREATE OR REPLACE RULE delete_v_pretraitement AS ON DELETE TO s_anc.v_pretraitement DO INSTEAD DELETE FROM s_anc.pretraitement WHERE pretraitement.id_pretraitement = old.id_pretraitement; + ALTER TABLE s_anc.pretraitement_id_pretraitement_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.pretraitement_id_pretraitement_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.pretraitement_id_pretraitement_seq TO anc_user; + + -- Traitement + DROP VIEW s_anc.v_traitement; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,controle.id_installation,controle.controle_type,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + CREATE OR REPLACE RULE insert_v_traitement AS ON INSERT TO s_anc.v_traitement DO INSTEAD INSERT INTO s_anc.traitement(id_traitement,id_controle,tra_type,tra_nb,tra_long,tra_larg,tra_tot_lin,tra_surf,tra_largeur,tra_hauteur,tra_profondeur,tra_dist_hab,tra_dist_lim_parc,tra_dist_veget,tra_dist_puit,tra_vm_racine,tra_vm_humidite,tra_vm_imper,tra_vm_geogrille,tra_vm_grav_qual,tra_vm_grav_ep,tra_vm_geo_text,tra_vm_ht_terre_veget,tra_vm_tuy_perf,tra_vm_bon_mat,tra_vm_sab_ep,tra_vm_sab_qual,tra_regrep_mat,tra_regrep_affl,tra_regrep_equi,tra_regrep_perf,tra_regbl_mat,tra_regbl_affl,tra_regbl_hz,tra_regbl_epand,tra_regbl_perf,tra_regcol_mat,tra_regcol_affl,tra_regcol_hz,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f) VALUES (new.id_traitement,new.id_controle,new.tra_type,new.tra_nb,new.tra_long,new.tra_larg,new.tra_tot_lin,new.tra_surf,new.tra_largeur,new.tra_hauteur,new.tra_profondeur,new.tra_dist_hab,new.tra_dist_lim_parc,new.tra_dist_veget,new.tra_dist_puit,new.tra_vm_racine,new.tra_vm_humidite,new.tra_vm_imper,new.tra_vm_geogrille,new.tra_vm_grav_qual,new.tra_vm_grav_ep,new.tra_vm_geo_text,new.tra_vm_ht_terre_veget,new.tra_vm_tuy_perf,new.tra_vm_bon_mat,new.tra_vm_sab_ep,new.tra_vm_sab_qual,new.tra_regrep_mat,new.tra_regrep_affl,new.tra_regrep_equi,new.tra_regrep_perf,new.tra_regbl_mat,new.tra_regbl_affl,new.tra_regbl_hz,new.tra_regbl_epand,new.tra_regbl_perf,new.tra_regcol_mat,new.tra_regcol_affl,new.tra_regcol_hz,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f) RETURNING traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS id_installation, ( SELECT controle.controle_type FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_traitement AS ON UPDATE TO s_anc.v_traitement DO INSTEAD UPDATE s_anc.traitement SET id_traitement = new.id_traitement,id_controle = new.id_controle,tra_type = new.tra_type,tra_nb = new.tra_nb,tra_long = new.tra_long,tra_larg = new.tra_larg,tra_tot_lin = new.tra_tot_lin,tra_surf = new.tra_surf,tra_largeur = new.tra_largeur,tra_hauteur = new.tra_hauteur,tra_profondeur = new.tra_profondeur,tra_dist_hab = new.tra_dist_hab,tra_dist_lim_parc = new.tra_dist_lim_parc,tra_dist_veget = new.tra_dist_veget,tra_dist_puit = new.tra_dist_puit,tra_vm_racine = new.tra_vm_racine,tra_vm_humidite = new.tra_vm_humidite,tra_vm_imper = new.tra_vm_imper,tra_vm_geogrille = new.tra_vm_geogrille,tra_vm_grav_qual = new.tra_vm_grav_qual,tra_vm_grav_ep = new.tra_vm_grav_ep,tra_vm_geo_text = new.tra_vm_geo_text,tra_vm_ht_terre_veget = new.tra_vm_ht_terre_veget,tra_vm_tuy_perf = new.tra_vm_tuy_perf,tra_vm_bon_mat = new.tra_vm_bon_mat,tra_vm_sab_ep = new.tra_vm_sab_ep,tra_vm_sab_qual = new.tra_vm_sab_qual,tra_regrep_mat = new.tra_regrep_mat,tra_regrep_affl = new.tra_regrep_affl,tra_regrep_equi = new.tra_regrep_equi,tra_regrep_perf = new.tra_regrep_perf,tra_regbl_mat = new.tra_regbl_mat,tra_regbl_affl = new.tra_regbl_affl,tra_regbl_hz = new.tra_regbl_hz,tra_regbl_epand = new.tra_regbl_epand,tra_regbl_perf = new.tra_regbl_perf,tra_regcol_mat = new.tra_regcol_mat,tra_regcol_affl = new.tra_regcol_affl,tra_regcol_hz = new.tra_regcol_hz,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f WHERE traitement.id_traitement = new.id_traitement; + CREATE OR REPLACE RULE delete_v_traitement AS ON DELETE TO s_anc.v_traitement DO INSTEAD DELETE FROM s_anc.traitement WHERE traitement.id_traitement = old.id_traitement; + ALTER TABLE s_anc.traitement_id_traitement_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.traitement_id_traitement_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.traitement_id_traitement_seq TO anc_user; + + -- Filières agréees + DROP VIEW s_anc.v_filieres_agrees; + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE RULE insert_v_filieres_agrees AS ON INSERT TO s_anc.v_filieres_agrees DO INSTEAD INSERT INTO s_anc.filieres_agrees(id_fag,id_controle,fag_type,fag_agree,fag_integerer,fag_type_fil,fag_denom,fag_fab,fag_num_ag,fag_cap_eh,fag_nb_cuv,fag_num,fag_num_filt,fag_mat_cuv,fag_guide,fag_livret,fag_contr,fag_soc,fag_pres,fag_plan,fag_tamp,fag_ancrage,fag_rep,fag_respect,fag_ventil,fag_mil_typ,fag_mil_filt,fag_mise_eau,fag_pres_alar,fag_pres_reg,fag_att_conf,fag_surpr,fag_surpr_ref,fag_surpr_dist,fag_surpr_elec,fag_surpr_aer,fag_reac_bull,fag_broy,fag_dec,fag_type_eau,fag_reg_mar,fag_reg_mat,fag_reg_affl,fag_reg_hz,fag_reg_van,fag_fvl_nb,fag_fvl_long,fag_fvl_larg,fag_fvl_prof,fag_fvl_sep,fag_fvl_pla,fag_fvl_drain,fag_fvl_resp,fag_fhz_long,fag_fhz_larg,fag_fhz_prof,fag_fhz_drain,fag_fhz_resp,fag_mat_qual,fag_mat_epa,fag_pres_veg,fag_pres_pro,fag_acces,fag_et_deg,fag_et_od,fag_et_dy,fag_en_date,fag_en_jus,fag_en_entr,fag_en_bord,fag_en_dest,fag_en_perc,fag_en_contr,fag_en_mainteger,fag_dist_arb,fag_dist_parc,fag_dist_hab,fag_dist_cap,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f) VALUES (new.id_fag,new.id_controle,new.fag_type,new.fag_agree,new.fag_integerer,new.fag_type_fil,new.fag_denom,new.fag_fab,new.fag_num_ag,new.fag_cap_eh,new.fag_nb_cuv,new.fag_num,new.fag_num_filt,new.fag_mat_cuv,new.fag_guide,new.fag_livret,new.fag_contr,new.fag_soc,new.fag_pres,new.fag_plan,new.fag_tamp,new.fag_ancrage,new.fag_rep,new.fag_respect,new.fag_ventil,new.fag_mil_typ,new.fag_mil_filt,new.fag_mise_eau,new.fag_pres_alar,new.fag_pres_reg,new.fag_att_conf,new.fag_surpr,new.fag_surpr_ref,new.fag_surpr_dist,new.fag_surpr_elec,new.fag_surpr_aer,new.fag_reac_bull,new.fag_broy,new.fag_dec,new.fag_type_eau,new.fag_reg_mar,new.fag_reg_mat,new.fag_reg_affl,new.fag_reg_hz,new.fag_reg_van,new.fag_fvl_nb,new.fag_fvl_long,new.fag_fvl_larg,new.fag_fvl_prof,new.fag_fvl_sep,new.fag_fvl_pla,new.fag_fvl_drain,new.fag_fvl_resp,new.fag_fhz_long,new.fag_fhz_larg,new.fag_fhz_prof,new.fag_fhz_drain,new.fag_fhz_resp,new.fag_mat_qual,new.fag_mat_epa,new.fag_pres_veg,new.fag_pres_pro,new.fag_acces,new.fag_et_deg,new.fag_et_od,new.fag_et_dy,new.fag_en_date,new.fag_en_jus,new.fag_en_entr,new.fag_en_bord,new.fag_en_dest,new.fag_en_perc,new.fag_en_contr,new.fag_en_mainteger,new.fag_dist_arb,new.fag_dist_parc,new.fag_dist_hab,new.fag_dist_cap,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f) RETURNING filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_filieres_agrees AS ON UPDATE TO s_anc.v_filieres_agrees DO INSTEAD UPDATE s_anc.filieres_agrees SET id_fag = new.id_fag,id_controle = new.id_controle,fag_type = new.fag_type,fag_agree = new.fag_agree,fag_integerer = new.fag_integerer,fag_type_fil = new.fag_type_fil,fag_denom = new.fag_denom ,fag_fab = new.fag_fab,fag_num_ag = new.fag_num_ag,fag_cap_eh = new.fag_cap_eh,fag_nb_cuv = new.fag_nb_cuv,fag_num = new.fag_num,fag_num_filt = new.fag_num_filt,fag_mat_cuv = new.fag_mat_cuv,fag_guide = new.fag_guide,fag_livret = new.fag_livret,fag_contr = new.fag_contr,fag_soc = new.fag_soc,fag_pres = new.fag_pres,fag_plan = new.fag_plan,fag_tamp = new.fag_tamp,fag_ancrage = new.fag_ancrage,fag_rep = new.fag_rep,fag_respect = new.fag_respect,fag_ventil = new.fag_ventil,fag_mil_typ = new.fag_mil_typ,fag_mil_filt = new.fag_mil_filt,fag_mise_eau = new.fag_mise_eau,fag_pres_alar = new.fag_pres_alar,fag_pres_reg = new.fag_pres_reg,fag_att_conf = new.fag_att_conf,fag_surpr = new.fag_surpr,fag_surpr_ref = new.fag_surpr_ref,fag_surpr_dist = new.fag_surpr_dist,fag_surpr_elec = new.fag_surpr_elec,fag_surpr_aer = new.fag_surpr_aer,fag_reac_bull = new.fag_reac_bull,fag_broy = new.fag_broy,fag_dec = new.fag_dec,fag_type_eau = new.fag_type_eau,fag_reg_mar = new.fag_reg_mar,fag_reg_mat = new.fag_reg_mat,fag_reg_affl = new.fag_reg_affl,fag_reg_hz = new.fag_reg_hz,fag_reg_van = new.fag_reg_van,fag_fvl_nb = new.fag_fvl_nb,fag_fvl_long = new.fag_fvl_long,fag_fvl_larg = new.fag_fvl_larg,fag_fvl_prof = new.fag_fvl_prof,fag_fvl_sep = new.fag_fvl_sep,fag_fvl_pla = new.fag_fvl_pla,fag_fvl_drain = new.fag_fvl_drain,fag_fvl_resp = new.fag_fvl_resp,fag_fhz_long = new.fag_fhz_long,fag_fhz_larg = new.fag_fhz_larg,fag_fhz_prof = new.fag_fhz_prof,fag_fhz_drain = new.fag_fhz_drain,fag_fhz_resp = new.fag_fhz_resp,fag_mat_qual = new.fag_mat_qual,fag_mat_epa = new.fag_mat_epa,fag_pres_veg = new.fag_pres_veg,fag_pres_pro = new.fag_pres_pro,fag_acces = new.fag_acces,fag_et_deg = new.fag_et_deg,fag_et_od = new.fag_et_od,fag_et_dy = new.fag_et_dy,fag_en_date = new.fag_en_date,fag_en_jus = new.fag_en_jus,fag_en_entr = new.fag_en_entr,fag_en_bord = new.fag_en_bord,fag_en_dest = new.fag_en_dest,fag_en_perc = new.fag_en_perc,fag_en_contr = new.fag_en_contr,fag_en_mainteger = new.fag_en_mainteger,fag_dist_arb = new.fag_dist_arb,fag_dist_parc = new.fag_dist_parc,fag_dist_hab = new.fag_dist_hab,fag_dist_cap = new.fag_dist_cap,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f WHERE filieres_agrees.id_fag = new.id_fag; + CREATE OR REPLACE RULE delete_v_filieres_agrees AS ON DELETE TO s_anc.v_filieres_agrees DO INSTEAD DELETE FROM s_anc.filieres_agrees WHERE filieres_agrees.id_fag = old.id_fag; + ALTER TABLE s_anc.filieres_agrees_id_fag_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.filieres_agrees_id_fag_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.filieres_agrees_id_fag_seq TO anc_user; + + -- Evacuation des eaux + DROP VIEW s_anc.v_evacuation_eaux; + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE RULE insert_v_evacuation_eaux AS ON INSERT TO s_anc.v_evacuation_eaux DO INSTEAD INSERT INTO s_anc.evacuation_eaux (id_eva,id_controle,evac_type,evac_is_nb,evac_is_long,evac_is_larg,evac_is_lin_total,evac_is_surface,evac_is_profondeur,evac_is_geotex,evac_is_rac,evac_is_hum,evac_is_reg_rep,evac_is_reb_bcl,evac_is_veg,evac_is_type_effl,evac_is_acc_reg,evac_rp_type,evac_rp_etude_hydrogeol,evac_rp_rejet,evac_rp_grav,evac_rp_tamp,evac_rp_type_eff,evac_rp_trap,evac_hs_type,evac_hs_gestionnaire,evac_hs_gestionnaire_auth,evac_hs_intr,evac_hs_type_eff,evac_hs_ecoul,evac_hs_etat,evac_commentaires,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f) VALUES (new.id_eva,new.id_controle,new.evac_type,new.evac_is_nb,new.evac_is_long,new.evac_is_larg,new.evac_is_lin_total,new.evac_is_surface,new.evac_is_profondeur,new.evac_is_geotex,new.evac_is_rac,new.evac_is_hum,new.evac_is_reg_rep,new.evac_is_reb_bcl,new.evac_is_veg,new.evac_is_type_effl,new.evac_is_acc_reg,new.evac_rp_type,new.evac_rp_etude_hydrogeol,new.evac_rp_rejet,new.evac_rp_grav,new.evac_rp_tamp,new.evac_rp_type_eff,new.evac_rp_trap,new.evac_hs_type,new.evac_hs_gestionnaire,new.evac_hs_gestionnaire_auth,new.evac_hs_intr,new.evac_hs_type_eff,new.evac_hs_ecoul,new.evac_hs_etat,new.evac_commentaires,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f) RETURNING evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_evacuation_eaux AS ON UPDATE TO s_anc.v_evacuation_eaux DO INSTEAD UPDATE s_anc.evacuation_eaux SET id_eva = new.id_eva,id_controle = new.id_controle,evac_type = new.evac_type,evac_is_nb = new.evac_is_nb,evac_is_long = new.evac_is_long,evac_is_larg = new.evac_is_larg,evac_is_lin_total = new.evac_is_lin_total,evac_is_surface = new.evac_is_surface,evac_is_profondeur = new.evac_is_profondeur,evac_is_geotex = new.evac_is_geotex,evac_is_rac = new.evac_is_rac,evac_is_hum = new.evac_is_hum,evac_is_reg_rep = new.evac_is_reg_rep,evac_is_reb_bcl = new.evac_is_reb_bcl,evac_is_veg = new.evac_is_veg,evac_is_type_effl = new.evac_is_type_effl,evac_is_acc_reg = new.evac_is_acc_reg,evac_rp_type = new.evac_rp_type,evac_rp_etude_hydrogeol = new.evac_rp_etude_hydrogeol,evac_rp_rejet = new.evac_rp_rejet,evac_rp_grav = new.evac_rp_grav,evac_rp_tamp = new.evac_rp_tamp,evac_rp_type_eff = new.evac_rp_type_eff,evac_rp_trap = new.evac_rp_trap,evac_hs_type = new.evac_hs_type,evac_hs_gestionnaire = new.evac_hs_gestionnaire,evac_hs_gestionnaire_auth = new.evac_hs_gestionnaire_auth,evac_hs_intr = new.evac_hs_intr,evac_hs_type_eff = new.evac_hs_type_eff,evac_hs_ecoul = new.evac_hs_ecoul,evac_hs_etat = new.evac_hs_etat,evac_commentaires = new.evac_commentaires,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f WHERE evacuation_eaux.id_eva = new.id_eva; + CREATE OR REPLACE RULE delete_v_evacuation_eaux AS ON DELETE TO s_anc.v_evacuation_eaux DO INSTEAD DELETE FROM s_anc.evacuation_eaux WHERE evacuation_eaux.id_eva = old.id_eva; + ALTER TABLE s_anc.evacuation_eaux_id_eva_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_user; + + -- Liste + ALTER TABLE s_anc.param_liste_id_parametre_liste_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_liste_id_parametre_liste_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_liste_id_parametre_liste_seq TO anc_user; + + -- Tarif + ALTER TABLE s_anc.param_tarif_id_parametre_tarif_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_tarif_id_parametre_tarif_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_tarif_id_parametre_tarif_seq TO anc_user; + GRANT ALL ON TABLE s_anc.param_tarif TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_tarif TO anc_user; + + -- Admin + ALTER TABLE s_anc.param_admin_id_parametre_admin_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_admin_id_parametre_admin_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_admin_id_parametre_admin_seq TO anc_user; + + -- Entreprise + ALTER TABLE s_anc.param_entreprise_id_parametre_entreprises_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.param_entreprise_id_parametre_entreprises_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.param_entreprise_id_parametre_entreprises_seq TO anc_user; + + -- Inséré en base par l'installateur ? + -- INSERT INTO s_vitis.vm_application_module (application_name, module_name) VALUES ('vmap','anc'); + + -- Bouton "Définir une installation de travail" + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Définir une installation de travail', 'anc_113'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_113','en','Définir une installation de travail'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_113','fr','Définir une installation de travail'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('set_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'setModeFilter()', 'anc_113', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + -- Bouton "Désactiver une installation de travail" + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Bouton Désactiver une installation de travail', 'anc_114'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_114','en','Désactiver l''installation de travail'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_114','fr','Désactiver l''installation de travail'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('unset_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'unsetModeFilter()', 'anc_114', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + -- Id de la parcelle -> 14 caractères ? + ALTER TABLE s_anc.installation DROP CONSTRAINT IF EXISTS s_anc_installation_check; + ALTER TABLE s_anc.installation ADD CONSTRAINT s_anc_installation_check CHECK (char_length(id_parc::text) = 14); + + -- Frédéric le 14/06/2017 10:10 + UPDATE s_vitis.vm_tab SET sorted_by = 'id_eva' WHERE name = 'anc_evacuation_eaux'; + UPDATE s_vitis.vm_tab SET sorted_by = 'id_traitement' WHERE name = 'anc_traitement'; + UPDATE s_vitis.vm_tab SET sorted_by = 'id_fag' WHERE name = 'anc_filieres_agree'; + UPDATE s_vitis.vm_tab SET sorted_by = 'id_parametre_admin' WHERE name = 'anc_param_admin'; + + -- Frédéric le 19/06/2017 14:56 + UPDATE s_vitis.vm_tab SET index = 2 WHERE name = 'anc_evacuation_eaux'; + UPDATE s_vitis.vm_tab SET index = 3 WHERE name = 'anc_traitement'; + UPDATE s_vitis.vm_tab SET index = 4 WHERE name = 'anc_filieres_agree'; + UPDATE s_vitis.vm_tab SET index = 5 WHERE name = 'anc_pretraitement'; + + -- Frédéric le 19/06/2017 15:13 + DELETE FROM s_vitis.vm_tab WHERE label_id = 'anc_18'; + + -- Frédéric le 19/06/2017 16:12 + DROP VIEW s_anc.v_pretraitement; + ALTER TABLE s_anc.pretraitement ALTER COLUMN ptr_volume TYPE character varying(50); + CREATE OR REPLACE VIEW s_anc.v_pretraitement AS SELECT pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, controle.id_installation, controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.pretraitement LEFT JOIN s_anc.controle ON pretraitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_pretraitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_pretraitement TO anc_user; + CREATE OR REPLACE RULE insert_v_pretraitement AS ON INSERT TO s_anc.v_pretraitement DO INSTEAD INSERT INTO s_anc.pretraitement(id_pretraitement, id_controle, ptr_type, ptr_volume, ptr_marque, ptr_materiau, ptr_pose, ptr_adapte, ptr_conforme_projet, ptr_dalle_repartition, ptr_renforce, ptr_verif_mise_en_eau, ptr_type_eau, ptr_reglementaire, ptr_destination, ptr_cloison, ptr_commentaire, ptr_im_distance, ptr_im_hydrom, ptr_im_dalle, ptr_im_renfor, ptr_im_puit, ptr_im_fixation, ptr_im_acces, ptr_et_degrad, ptr_et_real, ptr_vi_date, ptr_vi_justi, ptr_vi_entr, ptr_vi_bord, ptr_vi_dest, ptr_vi_perc, maj, maj_date, "create", create_date, photos_f, fiche_f, schema_f, documents_f, plan_f) VALUES (new.id_pretraitement, new.id_controle, new.ptr_type, new.ptr_volume, new.ptr_marque, new.ptr_materiau, new.ptr_pose, new.ptr_adapte, new.ptr_conforme_projet, new.ptr_dalle_repartition, new.ptr_renforce, new.ptr_verif_mise_en_eau, new.ptr_type_eau, new.ptr_reglementaire, new.ptr_destination, new.ptr_cloison, new.ptr_commentaire, new.ptr_im_distance, new.ptr_im_hydrom, new.ptr_im_dalle, new.ptr_im_renfor, new.ptr_im_puit, new.ptr_im_fixation, new.ptr_im_acces, new.ptr_et_degrad, new.ptr_et_real, new.ptr_vi_date, new.ptr_vi_justi, new.ptr_vi_entr, new.ptr_vi_bord, new.ptr_vi_dest, new.ptr_vi_perc, new.maj, new.maj_date, new."create", new.create_date, new.photos_f, new.fiche_f, new.schema_f, new.documents_f, new.plan_f) RETURNING pretraitement.id_pretraitement, pretraitement.id_controle, pretraitement.ptr_type, pretraitement.ptr_volume, pretraitement.ptr_marque, pretraitement.ptr_materiau, pretraitement.ptr_pose, pretraitement.ptr_adapte, pretraitement.ptr_conforme_projet, pretraitement.ptr_dalle_repartition, pretraitement.ptr_renforce, pretraitement.ptr_verif_mise_en_eau, pretraitement.ptr_type_eau, pretraitement.ptr_reglementaire, pretraitement.ptr_destination, pretraitement.ptr_cloison, pretraitement.ptr_commentaire, pretraitement.ptr_im_distance, pretraitement.ptr_im_hydrom, pretraitement.ptr_im_dalle, pretraitement.ptr_im_renfor, pretraitement.ptr_im_puit, pretraitement.ptr_im_fixation, pretraitement.ptr_im_acces, pretraitement.ptr_et_degrad, pretraitement.ptr_et_real, pretraitement.ptr_vi_date, pretraitement.ptr_vi_justi, pretraitement.ptr_vi_entr, pretraitement.ptr_vi_bord, pretraitement.ptr_vi_dest, pretraitement.ptr_vi_perc, pretraitement.maj, pretraitement.maj_date, pretraitement."create", pretraitement.create_date, pretraitement.photos_f, pretraitement.fiche_f, pretraitement.schema_f, pretraitement.documents_f, pretraitement.plan_f, (SELECT id_installation FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as id_installation, (SELECT controle_type FROM s_anc.controle WHERE pretraitement.id_controle = controle.id_controle) as controle_type, (SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND id_installation = installation.id_installation) AS num_dossier; + CREATE OR REPLACE RULE update_v_pretraitement AS ON UPDATE TO s_anc.v_pretraitement DO INSTEAD UPDATE s_anc.pretraitement SET id_pretraitement = new.id_pretraitement, id_controle = new.id_controle, ptr_type = new.ptr_type, ptr_volume = new.ptr_volume, ptr_marque = new.ptr_marque, ptr_materiau = new.ptr_materiau, ptr_pose = new.ptr_pose, ptr_adapte = new.ptr_adapte, ptr_conforme_projet = new.ptr_conforme_projet, ptr_dalle_repartition = new.ptr_dalle_repartition, ptr_renforce = new.ptr_renforce, ptr_verif_mise_en_eau = new.ptr_verif_mise_en_eau, ptr_type_eau = new.ptr_type_eau, ptr_reglementaire = new.ptr_reglementaire, ptr_destination = new.ptr_destination, ptr_cloison = new.ptr_cloison, ptr_commentaire = new.ptr_commentaire, ptr_im_distance = new.ptr_im_distance, ptr_im_hydrom = new.ptr_im_hydrom, ptr_im_dalle = new.ptr_im_dalle, ptr_im_renfor = new.ptr_im_renfor, ptr_im_puit = new.ptr_im_puit, ptr_im_fixation = new.ptr_im_fixation, ptr_im_acces = new.ptr_im_acces, ptr_et_degrad = new.ptr_et_degrad, ptr_et_real = new.ptr_et_real, ptr_vi_date = new.ptr_vi_date, ptr_vi_justi = new.ptr_vi_justi, ptr_vi_entr = new.ptr_vi_entr, ptr_vi_bord = new.ptr_vi_bord, ptr_vi_dest = new.ptr_vi_dest, ptr_vi_perc = new.ptr_vi_perc, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, photos_f = new.photos_f, fiche_f = new.fiche_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f WHERE pretraitement.id_pretraitement = new.id_pretraitement; + CREATE OR REPLACE RULE delete_v_pretraitement AS ON DELETE TO s_anc.v_pretraitement DO INSTEAD DELETE FROM s_anc.pretraitement WHERE pretraitement.id_pretraitement = old.id_pretraitement; + + -- Frédéric le 19/06/2017 16:31 + DROP VIEW s_anc.v_controle; + ALTER TABLE s_anc.controle ALTER COLUMN dep_liste_piece TYPE text; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 19/06/2017 16:45 + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.installation ALTER COLUMN cont_puits_terrain_mitoyen TYPE character varying(50); + CREATE OR REPLACE VIEW s_anc.v_installation AS sELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, commune.texte AS commune, parcelle.section, parcelle.parcelle, ( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle, last_controle.cl_avis, next_control.next_control FROM s_anc.installation LEFT JOIN s_cadastre.commune ON installation.id_com::bpchar = commune.id_com LEFT JOIN s_cadastre.parcelle ON installation.id_parc::bpchar = parcelle.id_par LEFT JOIN (select id_installation, max(des_date_control) as last_date_control, cl_avis from s_anc.controle where des_date_control < now() group by id_installation, cl_avis ORDER by last_date_control DESC LIMIT 1) as last_controle on installation.id_installation = last_controle.id_installation LEFT JOIN (select id_installation, min(des_date_control + interval '1 year' * des_interval_control) as next_control from s_anc.controle where des_date_control + interval '1 year' * des_interval_control > now() group by id_installation) as next_control on installation.id_installation = next_control.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_installation OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation , id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces , bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING s_anc.installation.*, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, (select commune.texte as commune from s_cadastre.commune where commune.id_com = installation.id_com), (select parcelle.section from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (select parcelle.parcelle from s_cadastre.parcelle where parcelle.id_par = installation.id_parc), (SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation), ( SELECT controle.cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() GROUP BY controle.cl_avis ORDER BY (max(controle.des_date_control)) DESC LIMIT 1), ( SELECT min(controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) > now() GROUP BY controle.id_installation); + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com=new.id_com, id_parc=new.id_parc, parc_sup=new.parc_sup, parc_parcelle_associees=new.parc_parcelle_associees, parc_adresse=new.parc_adresse, code_postal=new.code_postal, parc_commune=new.parc_commune, prop_titre=new.prop_titre, prop_nom_prenom=new.prop_nom_prenom, prop_adresse=new.prop_adresse, prop_code_postal=new.prop_code_postal, prop_commune=new.prop_commune, prop_tel=new.prop_tel, prop_mail=new.prop_mail, bati_type=new.bati_type, bati_ca_nb_pp=new.bati_ca_nb_pp, bati_ca_nb_eh=new.bati_ca_nb_eh, bati_ca_nb_chambres=new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces=new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant=new.bati_ca_nb_occupant, bati_nb_a_control=new.bati_nb_a_control, bati_date_achat=new.bati_date_achat, bati_date_mutation=new.bati_date_mutation, cont_zone_enjeu=new.cont_zone_enjeu, cont_zone_sage=new.cont_zone_sage, cont_zone_autre=new.cont_zone_autre, cont_zone_urba=new.cont_zone_urba, cont_zone_anc=new.cont_zone_anc, cont_alim_eau_potable=new.cont_alim_eau_potable, cont_puits_usage=new.cont_puits_usage, cont_puits_declaration=new.cont_puits_declaration, cont_puits_situation=new.cont_puits_situation, cont_puits_terrain_mitoyen=new.cont_puits_terrain_mitoyen, observations=new.observations, maj=new.maj, maj_date=new.maj_date, "create"=new."create", create_date=new.create_date, archivage=new.archivage, geom=new.geom, photo_f=new.photo_f, document_f=new.document_f WHERE id_installation = new.id_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 21/06/2017 10:57 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'car_prof_app'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'NV', 'Nv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'NSP', 'Nsp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_prof_app', 'PAS D''ELEMENTS ATTESTANT L''EXISTANCE', 'Pas D''Elements Attestant L''Existance'); + + -- Armand 22/06/2017 à 11h + CREATE TABLE s_anc.composant(id_composant SERIAL NOT NULL,id_controle INT4 NOT NULL,composant_type VARCHAR(50) NOT NULL,label VARCHAR(255),observations TEXT,geom GEOMETRY NOT NULL,CONSTRAINT id_s_anc_composant PRIMARY KEY (id_composant),CONSTRAINT enforce_srid_geom CHECK (St_srid(geom) = 2154)); + ALTER TABLE s_anc.composant ADD CONSTRAINT fk_s_anc_controle_composant FOREIGN KEY (id_controle) REFERENCES s_anc.controle (id_controle); + ALTER TABLE s_anc.composant owner TO u_vitis; + GRANT ALL ON table s_anc.composant TO u_vitis; + CREATE TABLE s_anc.composant_type_feature_style(composant_type VARCHAR(50) NOT NULL,feature_style_id INT4 NOT NULL,CONSTRAINT s_anc_composant_type PRIMARY KEY (composant_type)); + ALTER TABLE s_anc.composant_type_feature_style ADD CONSTRAINT fk_s_anc_featurestyle_composanttypefeaturestyle FOREIGN KEY ( feature_style_id) REFERENCES s_vitis.feature_style (feature_style_id); + ALTER TABLE s_anc.composant ADD CONSTRAINT fk_s_anc_composanttypefeaturestyle_composant FOREIGN KEY ( composant_type) REFERENCES s_anc.composant_type_feature_style (composant_type); + ALTER TABLE s_anc.composant_type_feature_style owner TO u_vitis; + GRANT ALL ON table s_anc.composant_type_feature_style TO u_vitis; + CREATE OR REPLACE FUNCTION s_anc.get_composant_value(braces_value text, id_composant int) RETURNS text AS $$ DECLARE composant_data record; column_name text := regexp_replace(braces_value, '{{\s*[\w\.]+\s*}}', regexp_replace(regexp_replace(braces_value, '{{', ''), '}}', '')); BEGIN IF (braces_value ~ '{{\s*[\w\.]+\s*}}') THEN EXECUTE format('SELECT %I::text as result FROM s_anc.composant WHERE id_composant = $1', column_name) USING id_composant INTO composant_data; RETURN composant_data.result; ELSE RETURN braces_value; END IF; END $$ LANGUAGE plpgsql; + ALTER FUNCTION s_anc.get_composant_value(text,int) OWNER TO u_vitis; + CREATE OR REPLACE VIEW s_anc.v_composant AS SELECT s_anc.installation.id_installation, s_anc.controle.id_controle, s_anc.composant.id_composant, s_anc.composant.composant_type, s_anc.composant.label, s_anc.composant.observations, s_anc.composant.geom, s_anc.composant_type_feature_style.feature_style_id, (SELECT get_composant_value as draw_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_outline_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_size as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_dash FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_dash as text), s_anc.composant.id_composant)), (SELECT get_composant_value as draw_symbol FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_symbol as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_font FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_font as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_color as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_size as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_outline_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_size as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_offset_x FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_x as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_offset_y FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_y as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_rotation as text), s_anc.composant.id_composant)), (SELECT get_composant_value as text_text FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_text as text), s_anc.composant.id_composant)), s_vitis.feature_style.feature_type FROM s_anc.composant LEFT JOIN s_anc.controle ON composant.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation LEFT JOIN s_anc.composant_type_feature_style ON s_anc.composant.composant_type = s_anc.composant_type_feature_style.composant_type LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id WHERE installation.id_com :: text ~ Similar_escape((SELECT "user".restriction FROM s_vitis."user" WHERE "user".login :: name = "current_user"()), NULL :: text); + CREATE OR REPLACE RULE delete_v_composant AS ON DELETE TO s_anc.v_composant DO INSTEAD DELETE FROM s_anc.composant WHERE composant.id_composant = old.id_composant; + CREATE OR REPLACE RULE update_v_composant AS ON UPDATE TO s_anc.v_composant DO INSTEAD UPDATE s_anc.composant SET id_controle = new.id_controle, composant_type = new.composant_type, label = new.label, observations = new.observations, geom = new.geom WHERE composant.id_composant = new.id_composant; + CREATE OR REPLACE RULE insert_v_composant AS ON INSERT TO s_anc.v_composant DO INSTEAD INSERT INTO s_anc.composant(id_controle, composant_type, label, observations, geom) VALUES (new.id_controle, new.composant_type, new.label, new.observations, new.geom) RETURNING (SELECT id_installation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), id_controle, id_composant, composant_type, label, observations, geom, (SELECT feature_style_id FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_dash FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_symbol FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_font FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_x FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_y FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_text FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT feature_type FROM s_anc.v_composant WHERE id_composant = composant.id_composant); + ALTER TABLE s_anc.v_composant OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant TO anc_user; + GRANT SELECT ON TABLE s_anc.composant TO anc_admin; + GRANT SELECT ON TABLE s_anc.composant TO anc_user; + GRANT ALL ON SEQUENCE s_anc.composant_id_composant_seq TO u_vitis; + GRANT ALL ON SEQUENCE s_anc.composant_id_composant_seq TO anc_admin; + GRANT SELECT ON SEQUENCE s_anc.composant_id_composant_seq TO anc_user; + GRANT ALL ON SEQUENCE s_anc.nom_liste_id_nom_liste_seq TO u_vitis; + GRANT ALL ON SEQUENCE s_anc.nom_liste_id_nom_liste_seq TO anc_admin; + GRANT SELECT ON SEQUENCE s_anc.nom_liste_id_nom_liste_seq TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_composant_type_feature_style AS SELECT s_anc.composant_type_feature_style.composant_type, s_anc.composant_type_feature_style.feature_style_id, s_vitis.feature_style.draw_color, s_vitis.feature_style.draw_outline_color, s_vitis.feature_style.draw_size, s_vitis.feature_style.draw_dash, s_vitis.feature_style.draw_symbol, s_vitis.feature_style.text_font, s_vitis.feature_style.text_color, s_vitis.feature_style.text_outline_color, s_vitis.feature_style.text_size, s_vitis.feature_style.text_outline_size, s_vitis.feature_style.text_offset_x, s_vitis.feature_style.text_offset_y, s_vitis.feature_style.text_rotation, s_vitis.feature_style.text_text, s_vitis.feature_style.feature_type FROM s_anc.composant_type_feature_style LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id; + ALTER TABLE s_anc.v_composant_type_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_user; + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_size, draw_dash, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (0, '#9a9a9a', 5, 10, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'line'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('tuyeauPVC30', 0); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_size, draw_dash, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (1, '#9a9a9a', 8, 10, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'line'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('tuyeauPVC50', 1); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_size, draw_dash, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (2, '#9a9a9a', 15, 20, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'line'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('tuyeauPVC100', 2); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_outline_color, draw_size, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (3, '#7dd8ff', '#808080', 3, 'Arial', '#ffffff', '#000000', 18, 2, 0, 15, 0, '{{label}}', 'polygon'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('cuve', 3); + INSERT INTO s_vitis.feature_style(feature_style_id, draw_color, draw_outline_color, draw_size, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type) VALUES (4, '#ffffff', '#000000', 25, 'fa-cog', 'Arial', '#ffffff', '#000000', 18, 2, 0, 20, 0, '{{label}}', 'point'); + INSERT INTO s_anc.composant_type_feature_style(composant_type, feature_style_id) VALUES ('vanne', 4); + + -- Frédéric le 03/07/2017 12:19 (Listes manquantes (Admin)) + INSERT INTO s_anc.nom_table (id_nom_table) values ('param_admin'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('param_admin', 'civilite'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Monsieur', 'Monsieur'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Madame', 'Madame'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Mademoiselle', 'Mademoiselle'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'civilite', 'Maître', 'Maître'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('param_admin', 'qualite'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Responsable de Service', 'Le Responsable de Service'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'La responsable de service', 'La responsable de service'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Maire,', 'Le Maire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'La Maire', 'La Maire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Vice Président', 'Le Vice Président'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Le Président', 'Le Président'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'qualite', 'Controleur', 'Controleur'); + + -- Frédéric le 03/07/2017 15:52 (Liste manquante (Admin)) + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('param_admin', 'type'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'type', 'Contrôleur', 'Contrôleur'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('param_admin', 'type', 'Elu', 'Elu'); + + -- Frédéric le 04/07/2017 16:16 + CREATE OR REPLACE VIEW s_anc.v_param_tarif AS SELECT id_parametre_tarif, id_com, controle_type, montant, annee_validite, devise, (CASE WHEN devise IS NOT NULL THEN CONCAT(montant,' ',devise) ELSE montant END) as libelle_montant FROM s_anc.param_tarif WHERE param_tarif.id_com::text ~ similar_escape((SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_param_tarif OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_tarif TO anc_admin; + GRANT SELECT ON TABLE s_anc.v_param_tarif TO anc_user; + + -- Frédéric le 05/07/2017 09:56 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id= 'anc_61'; + UPDATE s_vitis.vm_table_field SET width = 50 WHERE label_id= 'anc_61'; + UPDATE s_vitis.vm_table_field SET width = 105 WHERE label_id= 'anc_63'; + UPDATE s_vitis.vm_table_field SET width = 180 WHERE label_id= 'anc_66'; + UPDATE s_vitis.vm_translation SET translation = 'Adresse' WHERE translation_id= 'anc_66' AND lang = 'fr'; + UPDATE s_vitis.vm_translation SET translation = 'Address' WHERE translation_id= 'anc_66' AND lang = 'en'; + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail', 'anc_115'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_115','fr','Email'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_115','en','Mail'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'mail', '1', '1', 6, 180, 'left', 'anc_115', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field telephone_fixe', 'anc_116'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_116','fr','Téléphone'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_116','en','Phone'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'telephone_fixe', '1', '1', 7, 85, 'left', 'anc_116', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field bureau_etude', 'anc_117'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_117','fr','Bureau d''étude'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_117','en','Design office'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'bureau_etude', true, true, 8, 80, 'center', 'anc_117', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field concepteur', 'anc_118'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_118','fr','Concepteur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_118','en','Designer'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'concepteur', true, true, 9, 70, 'center', 'anc_118', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field constructeur', 'anc_119'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_119','fr','Constructeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_119','en','Builder'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'constructeur', true, true, 10, 80, 'center', 'anc_119', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field installateur', 'anc_120'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_120','fr','Installateur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_120','en','Fitter'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'installateur', true, true, 11, 70, 'center', 'anc_120', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field vidangeur', 'anc_121'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_121','fr','Vidangeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_121','en','Emptier'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'vidangeur', true, true, 12, 60, 'center', 'anc_121', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field en_activite', 'anc_122'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_122','fr','En activité'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_122','en','In activity'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, "index", width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'en_activite', true, true, 13, 70, 'center', 'anc_122', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), '<div data-app-set-boolean-icon-column="{{row.entity[col.field]}}"></div>', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + + -- Frédéric le 05/07/2017 11:29 + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_titre', 'anc_123'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_123','fr','Titre'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_123','en','Title'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_titre', '1', '1', 6, 50, 'left', 'anc_123', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_nom_prenom', 'anc_124'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_124','fr','Nom Prénom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_124','en','Last name First Name'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_nom_prenom', '1', '1', 7, 300, 'left', 'anc_124', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_adresse', 'anc_125'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_125','fr','Adresse'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_125','en','Address'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_adresse', '1', '1', 8, 300, 'left', 'anc_125', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_code_postal', 'anc_126'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_126','fr','Code postal'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_126','en','Postal code'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_code_postal', '1', '1', 9, 70, 'left', 'anc_126', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_tel', 'anc_127'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_127','fr','Téléphone'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_127','en','Phone'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_tel', '1', '1', 10, 70, 'left', 'anc_127', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field prop_mail', 'anc_128'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_128','fr','Email'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_128','en','Mail'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'prop_mail', '1', '1', 11, 200, 'left', 'anc_128', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field bati_type', 'anc_129'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_129','fr','Type de batiment'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_129','en','Type of building'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'bati_type', '1', '1', 12, 150, 'left', 'anc_129', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field nb_controle', 'anc_130'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_130','fr','Nombre de contrôles'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_130','en','Number of checks'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'nb_controle', '1', '1', 13, 130, 'left', 'anc_130', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field cl_avis', 'anc_131'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_131','fr','Conformité du dernier controle'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_131','en','Compliance of last control'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'cl_avis', '1', '1', 14, 180, 'left', 'anc_131', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_copm', 'anc_132'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_132','fr','Code INSEE'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_132','en','Code INSEE'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_com', '1', '1', 2, 100, 'left', 'anc_132', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + update s_anc.param_liste set alias = 'Ne sais pas' where alias = 'Nsp'; + update s_anc.param_liste set alias = 'Non vérifié' where alias = 'Nv'; + DELETE FROM s_anc.param_liste where alias = 'Pas D''Elements Attestant L''Existance'; + + -- Frédéric le 25/08/2017 12:14 + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('installation', 'cont_puits_usage', 'INUTILISÉ', 'Inutilisé'); + UPDATE s_vitis.vm_tab SET index = 2 WHERE label_id = 'anc_74'; + UPDATE s_vitis.vm_tab SET index = 5 WHERE label_id = 'anc_82'; + + DELETE FROM s_vitis.vm_table_button WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_14', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_13', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('set_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'setModeFilter()', 'anc_113', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('unset_mode_filter',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'unsetModeFilter()', 'anc_114', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + UPDATE s_vitis.vm_table_field SET index = index + 2 WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation') AND index > 0; + UPDATE s_vitis.vm_table_field SET index = 1, width = 100 WHERE tab_id = (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation') AND name = 'num_dossier'; + UPDATE s_vitis.vm_translation SET translation = 'n° installation' WHERE translation_id = 'anc_5'; + + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field classement_installation', 'anc_133'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_133','fr','Classement installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_133','en','Classement installation'); + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'classement_installation', '1', '1', 2, 370, 'left', 'anc_133', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_installation')); + + GRANT ALL ON TABLE s_anc.controle TO anc_admin; + GRANT SELECT ON TABLE s_anc.controle TO anc_user; + GRANT ALL ON TABLE s_anc.dessin TO anc_admin; + GRANT SELECT ON TABLE s_anc.dessin TO anc_user; + GRANT ALL ON TABLE s_anc.evacuation_eaux TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux TO anc_user; + GRANT ALL ON TABLE s_anc.filieres_agrees TO anc_admin; + GRANT SELECT ON TABLE s_anc.filieres_agrees TO anc_user; + GRANT ALL ON TABLE s_anc.installation TO anc_admin; + GRANT SELECT ON TABLE s_anc.installation TO anc_user; + GRANT ALL ON TABLE s_anc.pretraitement TO anc_admin; + GRANT SELECT ON TABLE s_anc.pretraitement TO anc_user; + GRANT ALL ON TABLE s_anc.traitement TO anc_admin; + GRANT SELECT ON TABLE s_anc.traitement TO anc_user; + + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.controle ALTER COLUMN cl_classe_cbf TYPE character varying(100); + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_parcelle.section,v_parcelle.parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation FROM s_anc.installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_parcelle ON installation.id_parc::bpchar = v_parcelle.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 25/08/2017 15:16 + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'ETUDE DE SOL ET DE FILIÈRE', 'Etude de sol et de filière'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'dep_liste_piece', 'AUTORISATION D''IMPLANTATION À MOINS DE 3M DES LIMITES DE PROPRIÉTÉ', 'Autorisation d''implantation à moins de 3m des limites de propriété'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_nature_projet'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_nature_projet', 'RÉHABILITATION', 'Réhabilitation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_nature_projet', 'RÉHABILITATION APRÈS VENTE', 'Réhabilitation après vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_nature_projet', 'NEUF', 'Neuf'); + UPDATE s_anc.param_liste SET alias = 'Estimée', valeur = 'ESTIMÉE' WHERE alias = 'Estimee'; + UPDATE s_anc.param_liste SET alias = 'Mesurée', valeur = 'MESURÉE' WHERE alias = 'Mesuree'; + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'des_collecte_ep' AND alias = 'Vers Le Dispositif D''Anc'; + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_hab'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', '<5M', '<5m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_hab', '>5M', '>5m'); + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_veget'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', '<3M', '<3m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_veget', '>3M', '>3m'); + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_lim_par'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', '<3M', '<3m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_lim_par', '>3M', '>3m'); + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'car_dist_puit'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', '<35M', '<35m'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'car_dist_puit', '>35M', '>35m'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'pretraitement' AND nom_liste = 'ptr_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'BAC A GRAISSE', 'Bac à Graisse'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE TOUTES EAUX', 'Fosse toutes eaux'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'PRÉFILTRE', 'Préfiltre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'AUTRE DISPOSITIF DE PRÉTRAITEMENT', 'Autre dispositif de prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE CHIMIQUE', 'Fosse chimique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE ÉTANCHE', 'Fosse étanche'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_type', 'FOSSE SEPTIQUE', 'Fosse septique'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'pretraitement' AND nom_liste = 'ptr_materiau'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'PVC', 'Pvc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_materiau', 'POLYESTER', 'Polyester'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'ts_type_effluent'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FÈCES', 'Fèces'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'URINE', 'Urine'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_type_effluent', 'FÈCES + URINE', 'Feces + urine'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'ts_val_comp'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TRANCHÉES D''EPANDAGE', 'Tranchées D''Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'LIT D''ÉPANDAGE', 'Lit d''épandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE À SABLE VERTICAL DRAINÉ', 'Filtre à Sable Vertical Drainé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE À SABLE VERTICAL NON DRAINÉ', 'Filtre à Sable Vertical Non Drainé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE À SABLE HORIZONTAL DRAINÉ', 'Filtre à Sable Horizontal Drainé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'TERTRE', 'Tertre'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_type', 'FILTRE COMPACT À ZÉOLITHE (5EH)', 'Filtre Compact à Zéolithe (5EH)'); + + -- Frédéric le 29/08/2017 08:50 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_largeur'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '50CM', '50cm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_largeur', '70CM', '70cm'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'Filtre Compact', 'Filtre Compact'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE FIXÉE', 'Microstation à culture fixée'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE LIBRE', 'Microstation à culture libre'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_agree'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_agree', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_integerer'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_integerer', 'NE SAIS PAS', 'Ne sais pas'); + + -- Frédéric le 29/08/2017 09:03 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'da_chasse_pr_nat_eau'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AMONT PRÉTRAITEMENT', 'Amont prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AVAL PRÉTRAITEMENT', 'Aval prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AVAL TRAITEMENT', 'Aval traitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_chasse_pr_nat_eau', 'AMONT PRÉTRAITEMENT+AVAL PRÉTRAITEMENT', 'Amont prétraitement+aval prétraitement'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'da_pr_loc_pompe'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AMONT PRÉTRAITEMENT', 'Amont prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AVAL PRÉTRAITEMENT', 'Aval prétraitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AVAL TRAITEMENT', 'Aval traitement'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'da_pr_loc_pompe', 'AMONT PRÉTRAITEMENT+AVAL PRÉTRAITEMENT', 'Amont prétraitement+aval prétraitement'); + + -- Frédéric le 29/08/2017 09:36 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'evacuation_eaux' AND nom_liste = 'evac_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'NOUE D''INFILTRATION', 'Noue d''infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TRANCHÉE D''INFILTRATION', 'Tranchée d''infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'LIT D''INFILTRATION', 'Lit d''infiltration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'TRANCHÉE D''IRRIGATION', 'Tranchée d''irrigation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_type', 'PUISARD', 'Puisard'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'evacuation_eaux' AND nom_liste = 'evac_hs_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'COURS D''EAU', 'Cours d''eau'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'INFILTRATION SUR LA PARCELLE', 'Fossé pluvial'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'RÉSEAU PLUVIAL BUSÉ', 'Réseau pluvial busé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'MARE', 'Mare'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_hs_type', 'ETANG', 'Etang'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'cl_avis'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'FAVORABLE', 'Favorable'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_avis', 'DÉFAVORABLE', 'Défavorable'); + + -- Frédéric le 29/08/2017 14:17 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'controle_ss_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'HORS VENTE', 'Hors Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'VENTE', 'Vente'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'controle_ss_type', 'DIAGNOSTIC', 'Diagnostic'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'des_reamenage_immeuble'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'des_reamenage_immeuble', 'NE SAIS PAS', 'Ne sais pas'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_vi_dest'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_dest', 'STATION D''ÉPURATION', 'Station d''épuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_dest', 'ÉPANDAGE', 'Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_vi_dest', 'TERRAIN', 'Terrain'); + + -- Frédéric le 29/08/2017 14:17 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_coher_taille_util'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_coher_taille_util', 'NE SAIS PAS', 'Ne sais pas'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_aire_etanche'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_etanche', 'NE SAIS PAS', 'Ne sais pas'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_aire_abri'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_aire_abri', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'vt_second_type_extract'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'ABSENT', 'Absent'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'STATIQUE', 'Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'ÉOLIEN', 'Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'GRILLE', 'Grille'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_extract', 'CHAMPIGNON', 'Champignon'); + + -- Frédéric le 30/08/2017 12:04 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_regrep_mat'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regrep_mat', 'PVC', 'PVC'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_regbl_mat'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regbl_mat', 'PVC', 'PVC'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'traitement' AND nom_liste = 'tra_regcol_mat'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'Beton', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_regcol_mat', 'PVC', 'PVC'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTRATION', 'Microstration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'PHYTOEPURATION', 'Phytoepuration'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mil_typ'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'ZÉOLITHE', 'Zéolithe'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'FIBRE COCO', 'Fibre coco'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'ECORCE DE PINS', 'Ecorce de Pins'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'PEHD', 'PEHD'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mil_typ', 'XYLITE', 'Xylite'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_en_dest'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_dest', 'STATION D''ÉPURATION', 'Station d''épuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_dest', 'ÉPANDAGE', 'Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_en_dest', 'TERRAIN', 'Terrain'); + + ALTER TABLE s_anc.filieres_agrees ADD COLUMN fag_commentaires text; + DROP VIEW s_anc.v_filieres_agrees; + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, filieres_agrees.fag_commentaires FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE RULE insert_v_filieres_agrees AS ON INSERT TO s_anc.v_filieres_agrees DO INSTEAD INSERT INTO s_anc.filieres_agrees(id_fag,id_controle,fag_type,fag_agree,fag_integerer,fag_type_fil,fag_denom,fag_fab,fag_num_ag,fag_cap_eh,fag_nb_cuv,fag_num,fag_num_filt,fag_mat_cuv,fag_guide,fag_livret,fag_contr,fag_soc,fag_pres,fag_plan,fag_tamp,fag_ancrage,fag_rep,fag_respect,fag_ventil,fag_mil_typ,fag_mil_filt,fag_mise_eau,fag_pres_alar,fag_pres_reg,fag_att_conf,fag_surpr,fag_surpr_ref,fag_surpr_dist,fag_surpr_elec,fag_surpr_aer,fag_reac_bull,fag_broy,fag_dec,fag_type_eau,fag_reg_mar,fag_reg_mat,fag_reg_affl,fag_reg_hz,fag_reg_van,fag_fvl_nb,fag_fvl_long,fag_fvl_larg,fag_fvl_prof,fag_fvl_sep,fag_fvl_pla,fag_fvl_drain,fag_fvl_resp,fag_fhz_long,fag_fhz_larg,fag_fhz_prof,fag_fhz_drain,fag_fhz_resp,fag_mat_qual,fag_mat_epa,fag_pres_veg,fag_pres_pro,fag_acces,fag_et_deg,fag_et_od,fag_et_dy,fag_en_date,fag_en_jus,fag_en_entr,fag_en_bord,fag_en_dest,fag_en_perc,fag_en_contr,fag_en_mainteger,fag_dist_arb,fag_dist_parc,fag_dist_hab,fag_dist_cap,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,fag_commentaires) VALUES (new.id_fag,new.id_controle,new.fag_type,new.fag_agree,new.fag_integerer,new.fag_type_fil,new.fag_denom,new.fag_fab,new.fag_num_ag,new.fag_cap_eh,new.fag_nb_cuv,new.fag_num,new.fag_num_filt,new.fag_mat_cuv,new.fag_guide,new.fag_livret,new.fag_contr,new.fag_soc,new.fag_pres,new.fag_plan,new.fag_tamp,new.fag_ancrage,new.fag_rep,new.fag_respect,new.fag_ventil,new.fag_mil_typ,new.fag_mil_filt,new.fag_mise_eau,new.fag_pres_alar,new.fag_pres_reg,new.fag_att_conf,new.fag_surpr,new.fag_surpr_ref,new.fag_surpr_dist,new.fag_surpr_elec,new.fag_surpr_aer,new.fag_reac_bull,new.fag_broy,new.fag_dec,new.fag_type_eau,new.fag_reg_mar,new.fag_reg_mat,new.fag_reg_affl,new.fag_reg_hz,new.fag_reg_van,new.fag_fvl_nb,new.fag_fvl_long,new.fag_fvl_larg,new.fag_fvl_prof,new.fag_fvl_sep,new.fag_fvl_pla,new.fag_fvl_drain,new.fag_fvl_resp,new.fag_fhz_long,new.fag_fhz_larg,new.fag_fhz_prof,new.fag_fhz_drain,new.fag_fhz_resp,new.fag_mat_qual,new.fag_mat_epa,new.fag_pres_veg,new.fag_pres_pro,new.fag_acces,new.fag_et_deg,new.fag_et_od,new.fag_et_dy,new.fag_en_date,new.fag_en_jus,new.fag_en_entr,new.fag_en_bord,new.fag_en_dest,new.fag_en_perc,new.fag_en_contr,new.fag_en_mainteger,new.fag_dist_arb,new.fag_dist_parc,new.fag_dist_hab,new.fag_dist_cap,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.fag_commentaires) RETURNING filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,filieres_agrees.fag_commentaires; + CREATE OR REPLACE RULE update_v_filieres_agrees AS ON UPDATE TO s_anc.v_filieres_agrees DO INSTEAD UPDATE s_anc.filieres_agrees SET id_fag = new.id_fag,id_controle = new.id_controle,fag_type = new.fag_type,fag_agree = new.fag_agree,fag_integerer = new.fag_integerer,fag_type_fil = new.fag_type_fil,fag_denom = new.fag_denom ,fag_fab = new.fag_fab,fag_num_ag = new.fag_num_ag,fag_cap_eh = new.fag_cap_eh,fag_nb_cuv = new.fag_nb_cuv,fag_num = new.fag_num,fag_num_filt = new.fag_num_filt,fag_mat_cuv = new.fag_mat_cuv,fag_guide = new.fag_guide,fag_livret = new.fag_livret,fag_contr = new.fag_contr,fag_soc = new.fag_soc,fag_pres = new.fag_pres,fag_plan = new.fag_plan,fag_tamp = new.fag_tamp,fag_ancrage = new.fag_ancrage,fag_rep = new.fag_rep,fag_respect = new.fag_respect,fag_ventil = new.fag_ventil,fag_mil_typ = new.fag_mil_typ,fag_mil_filt = new.fag_mil_filt,fag_mise_eau = new.fag_mise_eau,fag_pres_alar = new.fag_pres_alar,fag_pres_reg = new.fag_pres_reg,fag_att_conf = new.fag_att_conf,fag_surpr = new.fag_surpr,fag_surpr_ref = new.fag_surpr_ref,fag_surpr_dist = new.fag_surpr_dist,fag_surpr_elec = new.fag_surpr_elec,fag_surpr_aer = new.fag_surpr_aer,fag_reac_bull = new.fag_reac_bull,fag_broy = new.fag_broy,fag_dec = new.fag_dec,fag_type_eau = new.fag_type_eau,fag_reg_mar = new.fag_reg_mar,fag_reg_mat = new.fag_reg_mat,fag_reg_affl = new.fag_reg_affl,fag_reg_hz = new.fag_reg_hz,fag_reg_van = new.fag_reg_van,fag_fvl_nb = new.fag_fvl_nb,fag_fvl_long = new.fag_fvl_long,fag_fvl_larg = new.fag_fvl_larg,fag_fvl_prof = new.fag_fvl_prof,fag_fvl_sep = new.fag_fvl_sep,fag_fvl_pla = new.fag_fvl_pla,fag_fvl_drain = new.fag_fvl_drain,fag_fvl_resp = new.fag_fvl_resp,fag_fhz_long = new.fag_fhz_long,fag_fhz_larg = new.fag_fhz_larg,fag_fhz_prof = new.fag_fhz_prof,fag_fhz_drain = new.fag_fhz_drain,fag_fhz_resp = new.fag_fhz_resp,fag_mat_qual = new.fag_mat_qual,fag_mat_epa = new.fag_mat_epa,fag_pres_veg = new.fag_pres_veg,fag_pres_pro = new.fag_pres_pro,fag_acces = new.fag_acces,fag_et_deg = new.fag_et_deg,fag_et_od = new.fag_et_od,fag_et_dy = new.fag_et_dy,fag_en_date = new.fag_en_date,fag_en_jus = new.fag_en_jus,fag_en_entr = new.fag_en_entr,fag_en_bord = new.fag_en_bord,fag_en_dest = new.fag_en_dest,fag_en_perc = new.fag_en_perc,fag_en_contr = new.fag_en_contr,fag_en_mainteger = new.fag_en_mainteger,fag_dist_arb = new.fag_dist_arb,fag_dist_parc = new.fag_dist_parc,fag_dist_hab = new.fag_dist_hab,fag_dist_cap = new.fag_dist_cap,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,fag_commentaires = new.fag_commentaires WHERE filieres_agrees.id_fag = new.id_fag; + CREATE OR REPLACE RULE delete_v_filieres_agrees AS ON DELETE TO s_anc.v_filieres_agrees DO INSTEAD DELETE FROM s_anc.filieres_agrees WHERE filieres_agrees.id_fag = old.id_fag; + + -- Frédéric le 30/08/2017 16:46 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_tamp'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_tamp', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'cl_classe_cbf'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE D''INSTALLATION', 'Absence D''Installation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENCE DE DEFAUT', 'Absence De Defaut'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - DÉFAUT DE SÉCURITÉ SANITAIRE', 'NON CONFORME - Défaut de sécurité sanitaire'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - DÉFAUT DE STRUCTURE OU DE FERMETURE', 'NON CONFORME - Défaut de structure ou de fermeture'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION IMPLANTÉE À MOINS DE 35M D''UN PUITS DÉCLARÉ ET UTILISÉ', 'NON CONFORME - Installation implantée à moins de 35m d''un puits déclaré et utilisé'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION INCOMPLÈTE', 'NON CONFORME - Installation Incomplète'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION SIGNIFICATIVEMENT SOUS DIMENSIONNÉE', 'NON CONFORME - Installation significativement sous dimensionnée'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'NON CONFORME - INSTALLATION PRÉSENTANT DES DYSFONCTIONNEMENTS MAJEURS', 'NON CONFORME - Installation présentant des dysfonctionnements majeurs'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'INSTALLATION NECESSITANT DES RECOMMANDATIONS DE TRAVAUX', 'Installation nécessitant des recommandations de travaux'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'ABSENT', 'Absent'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'cl_classe_cbf', 'INHABITE', 'Inhabité'); + + ALTER TABLE s_anc.controle ADD COLUMN cl_constat character varying(255); + ALTER TABLE s_anc.controle ADD COLUMN cl_travaux character varying(255); + DROP VIEW s_anc.v_controle; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 31/08/2017 11:07 + CREATE OR REPLACE VIEW s_anc.v_param_admin AS SELECT param_admin.id_parametre_admin,param_admin.id_com,param_admin.type,param_admin.sous_type,param_admin.nom,param_admin.prenom,param_admin.description,param_admin.civilite,param_admin.date_fin_validite,param_admin.qualite,param_admin.signature,CONCAT(nom,' ',prenom) AS nom_prenom FROM s_anc.param_admin; + ALTER TABLE s_anc.v_param_admin OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_admin TO u_vitis; + GRANT ALL ON TABLE s_anc.v_param_admin TO anc_admin; + GRANT SELECT ON TABLE s_anc.v_param_admin TO anc_user; + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'ts_conforme'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_conforme', 'NE SAIS PAS', 'Ne sais pas'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'ts_val_comp'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'ts_val_comp', 'NE SAIS PAS', 'Ne sais pas'); + + -- Frédéric le 31/08/2017 12:27 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'vt_prim_type_extract'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'ABSENCE', 'Absence'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'CHAPEAU DE VENTILATION', 'Chapeau De Ventilation'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'EXTRACTEUR STATIQUE', 'Extracteur Statique'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'EXTRACTEUR EOLIEN', 'Extracteur Eolien'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_extract', 'AUTRE', 'Autre'); + + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'controle' AND nom_liste = 'vt_prim_ht'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', '<40 CM AU DESSUS DU FAITAGE', '<40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', '40 CM AU DESSUS DU FAÎTAGE', '40 Cm Au Dessus Du Faîtage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', '>40 CM AU DESSUS DU FAITAGE', '>40 Cm Au Dessus Du Faitage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_ht', 'AUTRE', 'Autre'); + + ALTER TABLE s_anc.controle ADD COLUMN vt_commentaire text; + ALTER TABLE s_anc.controle ADD COLUMN tra_vm_geomembrane text; + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('traitement', 'tra_vm_geomembrane'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('traitement', 'tra_vm_geomembrane', 'NE SAIS PAS', 'Ne sais pas'); + + -- Frédéric le 31/08/2017 16:51 + DELETE FROM s_anc.param_liste WHERE id_nom_table = 'filieres_agrees' AND nom_liste = 'fag_type'; + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE FIXÉE', 'Microstation à culture fixée'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_type', 'MICROSTATION À CULTURE LIBRE', 'Microstation à culture libre'); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('filieres_agrees', 'fag_mat_cuv'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'PEHD', 'Pehd'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'BETON', 'Beton'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'PVC', 'Pvc'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('filieres_agrees', 'fag_mat_cuv', 'POLYESTER', 'Polyester'); + + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_bons_grav boolean; + + -- Frédéric le 01/09/2017 10:43 + ALTER TABLE s_anc.traitement ADD COLUMN tra_longueur character varying(50); + ALTER TABLE s_anc.traitement ADD COLUMN tra_profond character varying(50); + + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_is_inf_perm'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'OUI', 'Oui'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'NON', 'Non'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'NON VÉRIFIÉ', 'Non vérifié'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_is_inf_perm', 'NE SAIS PAS', 'Ne sais pas'); + + DROP VIEW s_anc.v_evacuation_eaux; + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,evacuation_eaux.evac_rp_bons_grav FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE RULE insert_v_evacuation_eaux AS ON INSERT TO s_anc.v_evacuation_eaux DO INSTEAD INSERT INTO s_anc.evacuation_eaux (id_eva,id_controle,evac_type,evac_is_nb,evac_is_long,evac_is_larg,evac_is_lin_total,evac_is_surface,evac_is_profondeur,evac_is_geotex,evac_is_rac,evac_is_hum,evac_is_reg_rep,evac_is_reb_bcl,evac_is_veg,evac_is_type_effl,evac_is_acc_reg,evac_rp_type,evac_rp_etude_hydrogeol,evac_rp_rejet,evac_rp_grav,evac_rp_tamp,evac_rp_type_eff,evac_rp_trap,evac_hs_type,evac_hs_gestionnaire,evac_hs_gestionnaire_auth,evac_hs_intr,evac_hs_type_eff,evac_hs_ecoul,evac_hs_etat,evac_commentaires,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,evac_rp_bons_grav) VALUES (new.id_eva,new.id_controle,new.evac_type,new.evac_is_nb,new.evac_is_long,new.evac_is_larg,new.evac_is_lin_total,new.evac_is_surface,new.evac_is_profondeur,new.evac_is_geotex,new.evac_is_rac,new.evac_is_hum,new.evac_is_reg_rep,new.evac_is_reb_bcl,new.evac_is_veg,new.evac_is_type_effl,new.evac_is_acc_reg,new.evac_rp_type,new.evac_rp_etude_hydrogeol,new.evac_rp_rejet,new.evac_rp_grav,new.evac_rp_tamp,new.evac_rp_type_eff,new.evac_rp_trap,new.evac_hs_type,new.evac_hs_gestionnaire,new.evac_hs_gestionnaire_auth,new.evac_hs_intr,new.evac_hs_type_eff,new.evac_hs_ecoul,new.evac_hs_etat,new.evac_commentaires,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.evac_rp_bons_grav) RETURNING evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,evacuation_eaux.evac_rp_bons_grav; + CREATE OR REPLACE RULE update_v_evacuation_eaux AS ON UPDATE TO s_anc.v_evacuation_eaux DO INSTEAD UPDATE s_anc.evacuation_eaux SET id_eva = new.id_eva,id_controle = new.id_controle,evac_type = new.evac_type,evac_is_nb = new.evac_is_nb,evac_is_long = new.evac_is_long,evac_is_larg = new.evac_is_larg,evac_is_lin_total = new.evac_is_lin_total,evac_is_surface = new.evac_is_surface,evac_is_profondeur = new.evac_is_profondeur,evac_is_geotex = new.evac_is_geotex,evac_is_rac = new.evac_is_rac,evac_is_hum = new.evac_is_hum,evac_is_reg_rep = new.evac_is_reg_rep,evac_is_reb_bcl = new.evac_is_reb_bcl,evac_is_veg = new.evac_is_veg,evac_is_type_effl = new.evac_is_type_effl,evac_is_acc_reg = new.evac_is_acc_reg,evac_rp_type = new.evac_rp_type,evac_rp_etude_hydrogeol = new.evac_rp_etude_hydrogeol,evac_rp_rejet = new.evac_rp_rejet,evac_rp_grav = new.evac_rp_grav,evac_rp_tamp = new.evac_rp_tamp,evac_rp_type_eff = new.evac_rp_type_eff,evac_rp_trap = new.evac_rp_trap,evac_hs_type = new.evac_hs_type,evac_hs_gestionnaire = new.evac_hs_gestionnaire,evac_hs_gestionnaire_auth = new.evac_hs_gestionnaire_auth,evac_hs_intr = new.evac_hs_intr,evac_hs_type_eff = new.evac_hs_type_eff,evac_hs_ecoul = new.evac_hs_ecoul,evac_hs_etat = new.evac_hs_etat,evac_commentaires = new.evac_commentaires,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,evac_rp_bons_grav = new.evac_rp_bons_grav WHERE evacuation_eaux.id_eva = new.id_eva; + CREATE OR REPLACE RULE delete_v_evacuation_eaux AS ON DELETE TO s_anc.v_evacuation_eaux DO INSTEAD DELETE FROM s_anc.evacuation_eaux WHERE evacuation_eaux.id_eva = old.id_eva; + ALTER TABLE s_anc.evacuation_eaux_id_eva_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_user; + + DROP VIEW s_anc.v_controle; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + DROP VIEW s_anc.v_traitement; + CREATE OR REPLACE VIEW s_anc.v_traitement AS SELECT traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,controle.id_installation,controle.controle_type,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,traitement.tra_longueur,traitement.tra_profond FROM s_anc.traitement LEFT JOIN s_anc.controle ON traitement.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_traitement OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO u_vitis; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_admin; + GRANT ALL ON TABLE s_anc.v_traitement TO anc_user; + CREATE OR REPLACE RULE insert_v_traitement AS ON INSERT TO s_anc.v_traitement DO INSTEAD INSERT INTO s_anc.traitement(id_traitement,id_controle,tra_type,tra_nb,tra_long,tra_larg,tra_tot_lin,tra_surf,tra_largeur,tra_hauteur,tra_profondeur,tra_dist_hab,tra_dist_lim_parc,tra_dist_veget,tra_dist_puit,tra_vm_racine,tra_vm_humidite,tra_vm_imper,tra_vm_geogrille,tra_vm_grav_qual,tra_vm_grav_ep,tra_vm_geo_text,tra_vm_ht_terre_veget,tra_vm_tuy_perf,tra_vm_bon_mat,tra_vm_sab_ep,tra_vm_sab_qual,tra_regrep_mat,tra_regrep_affl,tra_regrep_equi,tra_regrep_perf,tra_regbl_mat,tra_regbl_affl,tra_regbl_hz,tra_regbl_epand,tra_regbl_perf,tra_regcol_mat,tra_regcol_affl,tra_regcol_hz,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,tra_longueur,tra_profond) VALUES (new.id_traitement,new.id_controle,new.tra_type,new.tra_nb,new.tra_long,new.tra_larg,new.tra_tot_lin,new.tra_surf,new.tra_largeur,new.tra_hauteur,new.tra_profondeur,new.tra_dist_hab,new.tra_dist_lim_parc,new.tra_dist_veget,new.tra_dist_puit,new.tra_vm_racine,new.tra_vm_humidite,new.tra_vm_imper,new.tra_vm_geogrille,new.tra_vm_grav_qual,new.tra_vm_grav_ep,new.tra_vm_geo_text,new.tra_vm_ht_terre_veget,new.tra_vm_tuy_perf,new.tra_vm_bon_mat,new.tra_vm_sab_ep,new.tra_vm_sab_qual,new.tra_regrep_mat,new.tra_regrep_affl,new.tra_regrep_equi,new.tra_regrep_perf,new.tra_regbl_mat,new.tra_regbl_affl,new.tra_regbl_hz,new.tra_regbl_epand,new.tra_regbl_perf,new.tra_regcol_mat,new.tra_regcol_affl,new.tra_regcol_hz,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.tra_longueur,new.tra_profond) RETURNING traitement.id_traitement,traitement.id_controle,traitement.tra_type,traitement.tra_nb,traitement.tra_long,traitement.tra_larg,traitement.tra_tot_lin,traitement.tra_surf,traitement.tra_largeur,traitement.tra_hauteur,traitement.tra_profondeur,traitement.tra_dist_hab,traitement.tra_dist_lim_parc,traitement.tra_dist_veget,traitement.tra_dist_puit,traitement.tra_vm_racine,traitement.tra_vm_humidite,traitement.tra_vm_imper,traitement.tra_vm_geogrille,traitement.tra_vm_grav_qual,traitement.tra_vm_grav_ep,traitement.tra_vm_geo_text,traitement.tra_vm_ht_terre_veget,traitement.tra_vm_tuy_perf,traitement.tra_vm_bon_mat,traitement.tra_vm_sab_ep,traitement.tra_vm_sab_qual,traitement.tra_regrep_mat,traitement.tra_regrep_affl,traitement.tra_regrep_equi,traitement.tra_regrep_perf,traitement.tra_regbl_mat,traitement.tra_regbl_affl,traitement.tra_regbl_hz,traitement.tra_regbl_epand,traitement.tra_regbl_perf,traitement.tra_regcol_mat,traitement.tra_regcol_affl,traitement.tra_regcol_hz,traitement.maj,traitement.maj_date,traitement."create",traitement.create_date,traitement.photos_f,traitement.fiche_f,traitement.schema_f,traitement.documents_f,traitement.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS id_installation, ( SELECT controle.controle_type FROM s_anc.controle WHERE traitement.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,traitement.tra_longueur,traitement.tra_profond; + CREATE OR REPLACE RULE update_v_traitement AS ON UPDATE TO s_anc.v_traitement DO INSTEAD UPDATE s_anc.traitement SET id_traitement = new.id_traitement,id_controle = new.id_controle,tra_type = new.tra_type,tra_nb = new.tra_nb,tra_long = new.tra_long,tra_larg = new.tra_larg,tra_tot_lin = new.tra_tot_lin,tra_surf = new.tra_surf,tra_largeur = new.tra_largeur,tra_hauteur = new.tra_hauteur,tra_profondeur = new.tra_profondeur,tra_dist_hab = new.tra_dist_hab,tra_dist_lim_parc = new.tra_dist_lim_parc,tra_dist_veget = new.tra_dist_veget,tra_dist_puit = new.tra_dist_puit,tra_vm_racine = new.tra_vm_racine,tra_vm_humidite = new.tra_vm_humidite,tra_vm_imper = new.tra_vm_imper,tra_vm_geogrille = new.tra_vm_geogrille,tra_vm_grav_qual = new.tra_vm_grav_qual,tra_vm_grav_ep = new.tra_vm_grav_ep,tra_vm_geo_text = new.tra_vm_geo_text,tra_vm_ht_terre_veget = new.tra_vm_ht_terre_veget,tra_vm_tuy_perf = new.tra_vm_tuy_perf,tra_vm_bon_mat = new.tra_vm_bon_mat,tra_vm_sab_ep = new.tra_vm_sab_ep,tra_vm_sab_qual = new.tra_vm_sab_qual,tra_regrep_mat = new.tra_regrep_mat,tra_regrep_affl = new.tra_regrep_affl,tra_regrep_equi = new.tra_regrep_equi,tra_regrep_perf = new.tra_regrep_perf,tra_regbl_mat = new.tra_regbl_mat,tra_regbl_affl = new.tra_regbl_affl,tra_regbl_hz = new.tra_regbl_hz,tra_regbl_epand = new.tra_regbl_epand,tra_regbl_perf = new.tra_regbl_perf,tra_regcol_mat = new.tra_regcol_mat,tra_regcol_affl = new.tra_regcol_affl,tra_regcol_hz = new.tra_regcol_hz,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f, tra_longueur = new.tra_longueur, tra_profond = new.tra_profond WHERE traitement.id_traitement = new.id_traitement; + CREATE OR REPLACE RULE delete_v_traitement AS ON DELETE TO s_anc.v_traitement DO INSTEAD DELETE FROM s_anc.traitement WHERE traitement.id_traitement = old.id_traitement; + ALTER TABLE s_anc.traitement_id_traitement_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.traitement_id_traitement_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.traitement_id_traitement_seq TO anc_user; + + -- Frédéric le 01/09/2017 14:36 + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.controle ALTER COLUMN cl_classe_cbf TYPE character varying(100); + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_vmap_parcelle_all_geom.section,v_vmap_parcelle_all_geom.parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation FROM s_anc.installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + -- Frédéric le 12/09/2017 10:20 + ALTER TABLE s_anc.controle ADD COLUMN emplacement_vt_secondaire character varying(100); + DROP VIEW s_anc.v_controle; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane,new.emplacement_vt_secondaire) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane,emplacement_vt_secondaire = new.emplacement_vt_secondaire WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + -- Armand 19/09/2017 11:28 Possibilité d'utiliser des images + ALTER TABLE s_vitis.feature_style ADD COLUMN image text; + CREATE OR REPLACE VIEW s_anc.v_composant_type_feature_style AS SELECT s_anc.composant_type_feature_style.composant_type, s_anc.composant_type_feature_style.feature_style_id, s_vitis.feature_style.draw_color, s_vitis.feature_style.draw_outline_color, s_vitis.feature_style.draw_size, s_vitis.feature_style.draw_dash, s_vitis.feature_style.draw_symbol, s_vitis.feature_style.text_font, s_vitis.feature_style.text_color, s_vitis.feature_style.text_outline_color, s_vitis.feature_style.text_size, s_vitis.feature_style.text_outline_size, s_vitis.feature_style.text_offset_x, s_vitis.feature_style.text_offset_y, s_vitis.feature_style.text_rotation, s_vitis.feature_style.text_text, s_vitis.feature_style.feature_type, s_vitis.feature_style.image FROM s_anc.composant_type_feature_style LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id; + ALTER TABLE s_anc.v_composant_type_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_user; + CREATE OR REPLACE VIEW s_anc.v_composant AS SELECT s_anc.installation.id_installation, s_anc.controle.id_controle, s_anc.composant.id_composant, s_anc.composant.composant_type, s_anc.composant.label, s_anc.composant.observations, s_anc.composant.geom, s_anc.composant_type_feature_style.feature_style_id, (SELECT get_composant_value AS draw_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_dash FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_dash AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_symbol FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_symbol AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_font FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_font AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_x FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_x AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_y FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_y AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_rotation AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_text FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_text AS text), s_anc.composant.id_composant)), s_vitis.feature_style.feature_type, (SELECT get_composant_value AS image FROM s_anc.get_composant_value(cast(s_vitis.feature_style.image AS text), s_anc.composant.id_composant)) FROM s_anc.composant LEFT JOIN s_anc.controle ON composant.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation LEFT JOIN s_anc.composant_type_feature_style ON s_anc.composant.composant_type = s_anc.composant_type_feature_style.composant_type LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id WHERE installation.id_com :: text ~ Similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login :: name = "current_user"()), NULL :: text); + CREATE OR REPLACE RULE delete_v_composant AS ON DELETE TO s_anc.v_composant DO INSTEAD DELETE FROM s_anc.composant WHERE composant.id_composant = old.id_composant; + CREATE OR REPLACE RULE update_v_composant AS ON UPDATE TO s_anc.v_composant DO INSTEAD UPDATE s_anc.composant SET id_controle = new.id_controle, composant_type = new.composant_type, label = new.label, observations = new.observations, geom = new.geom WHERE composant.id_composant = new.id_composant; + CREATE OR REPLACE RULE insert_v_composant AS ON INSERT TO s_anc.v_composant DO INSTEAD INSERT INTO s_anc.composant(id_controle, composant_type, label, observations, geom) VALUES (new.id_controle, new.composant_type, new.label, new.observations, new.geom) RETURNING (SELECT id_installation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), id_controle, id_composant, composant_type, label, observations, geom, (SELECT feature_style_id FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_dash FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_symbol FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_font FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_x FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_y FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_text FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT feature_type FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT image FROM s_anc.v_composant WHERE id_composant = composant.id_composant); + ALTER TABLE s_anc.v_composant OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant TO anc_user; + -- Armand 20/09/2017 10:48 intégration des images de Gwendal + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (5, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAASCAYAAACq26WdAAAABmJLR0QA/wD/AP+gvaeTAAAAZklEQVQ4je3QwQnAIAyF4V8pNHuKW7mVqKeu4ASF1xXUg/Tgg9wSviQOEBtiZo8HkDRVIQRSSsP9pRTM7PYrWzrnkOYf8n9sNf+/7GAHO9jB9mMXQIzxnRlqrfmcs2qtQ2LvHUn6AKGqheQzn0FQAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (6, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAZCAMAAAAYAM5SAAAAq1BMVEVEREQ6OjoODg4AAAABAQEMDAwTExMVFRUWFhYYGBgcHBwiIiIjIyMxMTE2NjY4ODhAQEBDQ0NERERLS0tMTExPT09VVVVfX19iYmJlZWV0dHR3d3d4eHiCgoKIiIiJiYmLi4uMjIyZmZmhoaGsrKytra20tLS1tbXR0dHU1NTX19fd3d3f39/g4ODi4uLr6+vu7u7v7+/x8fH09PT5+fn6+vr8/Pz+/v7///85WpFIAAAAA3RSTlPw8vjaXk4fAAAAAWJLR0Q4oAel1gAAAH9JREFUKM9jYMYJGJgtcAAGFClzTVxSOoKs4obYpMzkOJRN5bhUMKW0+IV0gZQGr5g+qpSZHLuSOZgF1KiKLKUtwCKhaAQW0ZMXYZE0QUjJSktL86iDpRT5pKVljFCdIawGphSkMF04KkW5lCgnNwiwyWBKGWhDgDFCihEHYAIApy5sgbTYIrAAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (7, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAbCAYAAABvCO8sAAAABmJLR0QA/wD/AP+gvaeTAAABLUlEQVRIie3QsU6EMBzH8T9tb6BQ5O4igSfwAfQFbrv59Al8BEc3mN104QF8AmcHdpObbjYgufHSUCoIDXVycAIS3fpLOn7y/acWABBK6f1isbht2/YcRkYpzeu6fqSUXiqlbqSUZ2PGdV2OEHququoOPM972mw2cr/f69PpNPqyLNNhGHa73a4ry1JPWZ7nervdSsbYA9i2XR2Px0nwZ2EY6qIoZpnD4aB93/9ATdOwKIrGfuXXhBCwXC5nmdVqBX3fe2iW+oOZoAmaoAmaoAmaoAn+R5AQotq2nYUcx4G6rmcZIQRgjD8RY+wtTdNhKtRaQxAEQxzHg1Jqkum6DpIk+bIs68UCgAvHcV7X67Vn27Yew5xzLKV8xxiLpmmuCCGjxyqlEKU045xffwPc/BMbIFw2UgAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (8, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAICAYAAABOICfKAAAABmJLR0QA/wD/AP+gvaeTAAAFY0lEQVQ4y0WV2XPTVhjF81f3oe0D0xna6Uyn7XQoHUohkJCEhASyxw0QIIQ0hKyO90WRZVmyJWuxbEu6q3pkx+HB4/HPut8599s0deYL7Z3N9BOP19WQf2rHsnbsCe0D2EUgS1rIjzqxVPe7vPmhy/Rsj+X1UJy0Iqnu2bx54DA935cXrVieXw+l+rrD9EOwYl+cGrG4Kg5k443F9COXN+tDfmREsnjVl409sGOPX6vDkWblBJrvoXnq82ojlIdgyqEz1rzsiWIz5McmfLyH5kewfCCyzaE4w7PqLjQ/QbPQF+fwcVm90fwPrDLgx0Ys8/DYeAv2xRMqfB52iCxNrRqUPGsyOqfT/kuDlt7aLFgxGBilc03qrZq0huSEizqlKVvQqbVhUhXBo3n8nh0xYmzBQKbN4jnEStlSiza2O6y9BZbGn9UofaGTOox2180xQ7zhMjRf28x/+VWzBx8V+Bi8aI3ZvM66ayZVYD56rk80aXujTbVdsInmYos1oWlsT3xoqQ9ynekwa6N9qxktt2hl1+bu1KrJuqW+cAuBMLM9efpjOTbe2MwZsb7UDh1x+X0xso487qCabjGQCoLl75YjG9l0isHobGWlRct/1GO7Mo7lojKFmQapP26QbmV0Tjjg2ftK3MClRppgnXxPnP1SjfVMh49ZX+rHLrv4oRy1PzpjzUIg1XcWu7pTCu3znpho1lCEIs7alcEoVspKC01afaDSWx84e/WPSq6R1Mk97UJPnv9ei5tTylA6aHkP3+1QyHMmZTs9dO4LTwulTmSS5TJJRV20n5e2O1ghFEkXrexdBcKzSFIFq3gs6R6C4bznUFkEU8xIOp8RvzKQbsDkFZWJhlZ1voDVBtIK2UjTSM2e+dxThxLTIi+h2UFs9wKazVBqiJUj0DzxhZsFw1jUwUoBT7qfHO4h2V6XyDLi12windQbLut5VObBVB2aGDMPI9EdiuSCyUSfWm8zcU8hyV/XBO1DahAMl1pj9uCaBssGUcsDQZ9qVKbsb5W4m2jxbCAYMjxijxq0gzFof/YES3+nn8eNuLXvsO77Luc3TD5tEhUG/Iw1ZvcVQmY0Urvw+QBtP/ExXGwRBRVH647jQ8dfNYmGmWbQGrGHDWqjA41T/6vmowYxsTesA+dWM5nWiIaCuK/tMftTIeypRhTslmAK7SoKSB8uE6FCtTulOPzXYiIPhkoHb22qfpOLKZaHzPV4coHMrxlMv1OMWa4n5BUYuqKDndH+tUZYOY0Fdubx1kOVdpEsXhoxIbFc1d9qxF/QGS+OGTnxee1umQw2UYTUBxIx3He48l0hjnERmU81e8Lfxnx/m4/ZqcdHPqBpvzCY8VMFmn2epD7OesKc1qiFC95o8gTJ0e4p1J3R6FgTRUOnKz9XSTCFS44uqkcyCrmsXYcizAVCpA9iuwY9KtUqKo9AMhWxiHRdInV0A7sEqw54ghbvWLFsl1Lm86QO5jHZMiPRRQV5akzFTAGrzUj4qCBPL6VFgqSa+G+Qg4/08q1IDAdcKvWhiCea2My+T6WG2WYpq4DZVNpocyP1gYQlNQSHLxPjYJX6nGfBlCFP8LiGN4Cb+siNNCUbIn4jksEU2nXnmUYyaPX1XYtO49Wwjs09Ysst9mrPpjNqJDfxBth51iSZVwZZPujSuXIgt+ZbbAejklk36fMvPl/AwtxCG2fmwbCJ55CIJczedsoW8OxWh87k+nLlg8O30/iLOtnMdOh0qS9XM52JD7K2Z9En9aHcWDPHmi9NtrLv0tn6QG4tGWNNLOo09nwePtDGmZSttekC2nnx9EYz9bHZobPwsXxwq8m2djr0SaHPX/0PC/wFx40gfCUAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (9, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAADwCAMAAACaA6wCAAAAgVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcJCQkKCgoODg4PDw8RERESEhIXFxcZGRkbGxshISEiIiImJiYqKiorKys6Ojo9PT1ERERVVVV+fn6BgYGOjo6qqqrZ2dnd3d3e3t7k5OTm5ubo6Ojt7e3////+/czAAAAAC3RSTlMACREbJio0RFhgjrC4tygAAAABYktHRCpTvtSeAAAAz0lEQVRo3u3byQ6CMBRA0ao41glHHFFx5P8/UKnB0JbESpDVvZsmfTmL7l+FsPJktoZwqZgJ4rR5aaZu1dJM05rXhMwpa+x6L+MbjTQzNqYDZWKjSDNXY3os0SzOaVNnk83NXJZJvvTVeXcy7w4yzL3HYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMFWa2z5pLVfqfDiZIrvHkZyd0iZ/3aX+bnZGG81sjWmgzO876G2rrmY61tyrbA8/zww/L+6X9a/gCdNI2HFLvN6gAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (10, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAADwCAMAAABhVFndAAABjFBMVEUAAAAAAAD///8AAAAAAABSUlIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAADCwsIAAAAAAAABAQEAAAAAAAAICAgAAAABAQECAgIDAwMFBQUGBgYHBwcICAgKCgoLCwsMDAwNDQ0PDw8QEBARERESEhIXFxcZGRkaGhocHBwdHR0eHh4iIiIkJCQlJSUmJiYnJycpKSkqKiowMDAxMTEzMzM0NDQ5OTk7Ozs8PDxDQ0NERERFRUVMTExNTU1RUVFUVFRVVVVdXV1eXl5jY2NmZmZnZ2dqampra2tubm5wcHBxcXF0dHR2dnZ3d3d4eHh7e3t8fHx/f3+IiIiJiYmQkJCRkZGUlJSZmZmfn5+lpaWqqqqsrKyysrK0tLS1tbW7u7u+vr6/v7/CwsLDw8PGxsbHx8fJycnMzMzOzs7T09PW1tbb29vd3d3e3t7f39/g4ODh4eHk5OTn5+fo6Ojq6urs7Ozu7u709PT19fX39/f5+fn7+/v8/Pz9/f3+/v7///99n/+NAAAAGXRSTlMACBMiLjIzOVZcYWZrbG58gYiN5+7v9PX2h/jTiAAAAAFiS0dEg/y0z9IAAAHTSURBVHja7dzXUsJAAIXhWLH3tiL2jr2hIoi9YUNRFHvsvVew5cUNDFE2GjY6GcaL81+ym48h9weOU0xHgovg/pZWSrcgVRwWJVaxBErRKV+MjeZIiIKVUGVqpiRH+Yo5l7dOKafy44yoQGl+Jc7/fiIFefuU4pUfp0pvNoWhmD6/uOiPyuOqhfrtI5ve3yqXSxYDIQWNnzWITmn/yr1q5YW3N4rP1Nn3XoOe8WyM1oifts/uvatQdsbrxcvN07uv396Td2vMKJ61zhyzlLNeUmhzXwlKnbvMejJ8w1AcZOhOCN2FlbiZiltg5YACBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQNFUWWYqU0xltU1vXjhVFt6PnJ35XTxDESYKCck3zR++/UA885NN4ny0ZFFgKYKXt/vHrzb3LUVcu6y+yXGn8yiwTmWtat8O5jrEBwy1A4NSfdV6cWXbs3DydUvNwvdhbaiMWvgaRzc81A2Va+Nt0rImZSBP8mPVm2Vtls+/UXKyfGVXySunlEr5cV5WoFzNduWJiqVTSpLyxcT4f7X9D6VUWKX04fhPhA+QrPUPGVzHrgAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (11, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEUAAADwCAMAAABhVFndAAABmFBMVEUAAAAAAAD///8AAAAAAABSUlIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAADCwsIAAAAAAAABAQEAAAAAAAAICAgAAAABAQECAgIDAwMFBQUGBgYHBwcICAgKCgoLCwsMDAwNDQ0PDw8QEBARERESEhIXFxcZGRkaGhocHBwdHR0eHh4fHx8gICAiIiIkJCQlJSUmJiYnJycpKSkqKiowMDAxMTEyMjIzMzM0NDQ5OTk7Ozs8PDxDQ0NERERFRUVMTExNTU1RUVFUVFRVVVVdXV1eXl5jY2NmZmZnZ2dqampra2tubm5wcHBxcXF0dHR2dnZ3d3d4eHh7e3t8fHx/f3+IiIiJiYmQkJCRkZGUlJSVlZWZmZmfn5+lpaWqqqqsrKyysrK0tLS1tbW7u7u+vr6/v7/CwsLDw8PGxsbHx8fJycnMzMzOzs7T09PW1tbb29vd3d3e3t7f39/g4ODh4eHk5OTn5+fo6Ojq6urs7Ozu7u709PT19fX39/f5+fn7+/v8/Pz9/f3+/v7///9btoh2AAAAGXRSTlMACBMiLjIzOVZcYWZrbG58gYiN5+7v9PX2h/jTiAAAAAFiS0dEh/vZC8sAAAHrSURBVHja7dxVc8JAFAVg6u5UtpS6u7tAjTp1b6lTd3dq+dvdMElhMw2bdjKdPpzzECbcmw/Y94PBoJoQ4h0/w++il9ImyMn8EyVYNeGMEqK+GBxoID7irfhKgm5KVICYoHNl1hnlVDmOD5AS61ZC3efjLyizzygu5ThGPtlojtL09cEZv1QeVy3Mbx/YdP1UuVy0mAlJq6KpKKuk13LqZPes3GtWXp32KvpMqX3vTbwdJ8viy/PGYBF9t2Fy70ODsjNcRpdrxnffpGVJoXFtDZXQWd3EMU856yTpXY4rry/uUcScL7SbSP8NR5kifXfsIbIKzYWVOLiKQ+Ao8g4UKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBQoUKFCgQIECBYpOyhJXGeMqq/Wm9rlTdeXjaLYltdXJUYSRdEJSm2YO379RXpyj1bQ+mjUv8BTB5bS7y69djltGuV6wipXjltkjqZ3Ka9W+H0w30gfMxb02m62ONNNrd6GJtmw75k48W1oavg9rfTlMw7dkcOOZ2dDYNt4mtWtyzORJOdbcWdan+fwTJckoJrFAmVxGyVeOU4xSknXrlUeoJo5RItUXI8L+Vfffl5JnlWP6i/9E+ARyC+mJ1xaq5QAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (12, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAADwCAMAAADFPuEOAAAC6FBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAACzs7MAAAAAAAAAAAAAAAAAAAAAAAAAAABDQ0MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAADBwcEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABqamoAAAAAAAAAAAAAAAAAAAAAAAAICAg9PT0AAAAAAAAAAAAAAAAAAAAAAAAlJSUAAAADAwMbGxsAAAAAAAAAAAABAQEAAAAAAAAAAAAICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQECAgIDAwMEBAQFBQUGBgYHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhIUFBQVFRUWFhYXFxcYGBgZGRkaGhobGxscHBweHh4fHx8hISEiIiIjIyMkJCQmJiYoKCgpKSkqKiorKyssLCwvLy8wMDAzMzM1NTU5OTk6Ojo7Ozs8PDw9PT1BQUFERERGRkZKSkpMTExOTk5PT09QUFBUVFRVVVVWVlZXV1dYWFhaWlpbW1tcXFxdXV1eXl5iYmJmZmZnZ2doaGhpaWlqampsbGxvb29wcHBycnJ0dHR1dXV2dnZ3d3d5eXl6enp7e3t9fX1/f3+AgICCgoKFhYWGhoaIiIiJiYmKioqMjIyNjY2Pj4+QkJCTk5OWlpaXl5eZmZmbm5udnZ2fn5+hoaGjo6OlpaWoqKipqamqqqqsrKyvr6+ysrK1tbW2tra3t7e4uLi5ubm7u7u8vLy/v7/BwcHCwsLFxcXGxsbIyMjMzMzNzc3Pz8/Q0NDR0dHS0tLU1NTV1dXW1tbY2NjZ2dna2trb29vd3d3e3t7g4ODh4eHj4+Pk5OTl5eXn5+fo6Ojq6urs7Ozt7e3u7u7w8PDx8fHy8vLz8/P29vb39/f4+Pj5+fn6+vr7+/v8/Pz9/f3+/v7////LZK5cAAAAUnRSTlMAAgYHCAoLDRARExYWFx4eIiYyM0BBREVGTU5QVV5jZnByd3mFiIuQlJmdnqGiqqyvsLG0tba7wcnM0NTV1tnb3eTk5u3u7/Dz9fb3+Pn6+/z+u7MCVAAAAAFiS0dE96vcevcAAAPZSURBVHja7dxnWFNXGAfw66jWumhRautAqdStrVVU3Iq7FH2DApqiyFCDKy7ciMQdZ4WqXYq4cVEbFW1xtlQcaK0b94oLReF8lQdv4Ca5Nzdwow/q//8lT+655/xyznmffHw5zv7UJ0Eacq8rb4zZw/gkvd8MFSQCpkDx5KhPF/H0DLZMgJDxtxru2kUqvYkjL4ltfsEsEyNkllsNl5M8Mc+iySSk89n+OpjHackJsbrRKuGtqkbrfogzpKRnOYB5eObAthWzxvrxS/tp82J6REGT5/288+AZY2GYUs7V3FrqtAH8UoOn6uM2hdP4q/kbvDmFhu/M2WKEmn/HX9uikburi1Mxu5jiVWvVbd7Om587ZPrS9XtTb2QzdjyEoo3Cm3g0m4KP5Xw+vfSPIX5JZLjpRLt5fl2nZtUPZJjKPrnvtmrs/lVKembeovsDKPa5+Y0/X0X+SYLvxk+rudXzaNMjF/tchvGi2jUqVShmUWkbVKpEq8piib6quGzLSivxcRXX2t+SLGNdaZkx1P8vJpIDalqYIVZpXoVgHugo9AQTzamhFHnXMcz1STTuCpPI1Qk05qIjmDQNzbzHJGOMppBU5UxqEM15zGwkYxGpDytmtgRvyGa2kzhwnWJmxAAmG41aOaOWZ0aAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGTBFgNoYlyylHh6xRzOxTqU/aVs4G0e+KGbaVBv1nS7kUSvFMOcN+ofBr0sptLcVkO4LJ0lPEfSnl0VSa/4I5gmHPdDQzQ1x5Gk2RT5hjGPZwCs19IaZkLabx+R0WlTLs1ij6UYz5jTSChqSKGXY+hDZbKzto8P+ssMyHIgw7pVbtsVSSVAHHmChTppsc08CHvDt41HOr7vKlWS/IQ/38jpgrf/v5/mn2oFxp589c3Ru36uxNfZrIMCWbte3FN18Nm6Zfs+vIBb7IDGT+d3B6IO0yVfW5w3+sXRrV0Yef2L11s49kmFzKySXnV3UK5Gf11+piE5LTVlPoxXzlchj9ei7FEKefkdem1ufVKTiVsFrQZjvdzPR/d8cvmT6MX8VXTd8v0PNZEEiB/vxA35FRy9YZjl6oyEnFrubAmbdyewNrfS2aPmtymuwaDqUZRSqtMIwp9+fSymQ+P9HsO5bjb13jZgXMdx7iaa+zTLiQ0VgNt/CQSnfiOr+JFuE9uPLOdqepkPnG/nnOn5TlCpB3rUt8hOm6JxbNDv4vAbh9gN4i7/56AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (13, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAB9CAYAAAAiAXSMAAAABmJLR0QA/wD/AP+gvaeTAAAKVElEQVR4nO2de5RVVR3HP/PkMYyMwCRBRJqPiQaETEFBGQgWFSVQWSq1fBWrVi4wKyesVqOhi7KWprZc0YMWy7A34srKUktbqaWihoiGIYLxVAuJgpDqj+8969x7OXPvOeeevc/Zp/v5a+bemXN+s2ff3/7t7+/32wfcYSjwaNpGxKUxbQMi0AaMTNuIuLg00E3A4bSNiItLA90I/CdtI+Li0kDXZ7Ql6jPaEvUZbYn6QFui7josUZ/RBhkOdAEDcHxGZ52LgU3AAWA7sBe4BfgkMA84Oj3T8kkL8F7gaeBS4GvAWmBGmkblldOBB9I2Ii7NaRtQhS8Bs4FnkfsYAZyF3MmOFO3KHe3AacD5wHeAncCDwB5gf+G9OgkzA7i36PsBaRkSh6yHd8WUx9EH0zIkDi4NtNNxtEsDXd8ZWqI+0Jaouw5L1Ge0Jeoz2hK5mNEXADcBrSnaUo1cDPQaYAxwHzA6PXMqkgvX8QowH1gJPALMSc2i/nF6RgdxJhLZl5MtH34REpacJGggfwecCkxH4nqHVYv6Jxeuo5y/Aj3AZuCPQHfZ73wXOMakYQE47ToquYaDwBLgi8A9wDmF168AjgVeLHzfYsy6Upye0WGZhGb3D5H4Pqrw+jjkz5ss2PBx4GYL9zFC2FTWY8BM4Ck04IeBQcCPgCux85F22nVEyRleBawGXkB++w/AE8hf28Bp1xF2oM8DJgOnoFxdE7AUuNyQXQCvQ2vBZnz35OyMDss6lO4HtTfsABYCG4BvYGbrPheVF+xEGfBdwF+QVHA5cJyBe2aKNcBXCl+3Az9Gu8mxBu/ZBlxfuNdlqIBmtsH7pU4zWvmLM9ANQC+aeW8zeO/PAssMXt8ZepAv7UWDXyvXAtuQ0LUSxfJrgDNwuDsrKcagiOQ29HGvhWa0GM4EPoykgfWF6+8EZtV4fecZCHwL2Ai8KcHrXg18PsHrWcWEOncAzcDrgfuBBQld1+nwzqQMugLVMN/EkZJrHzAl4vVc3bCMQ59u43SiheznqHD8ncDz+EXk7SGv82Xg04lbZ5b3ICX07bZu2Ixm9XNI9Tuj8HoHsAU4IcQ1vorZnWiSNKK/dyNwoveCDV5F4tM+YLB3cxS2/RTVO1fDFdcxGPg+Sp5MBf4MdlNVlwH/AKYBn0Px8XFIMwmDC4vhWHzZYA7wsm0DJgK7UVwMEqcOovM3XhvyGjcjTTqrTEFrz6I0jbgVuKTwdSsa4MVoF7kN32dX4hbgo0asq50LkdCWqU1UH/ArfLc1F8323iq/twL4iDmzKtKAdPehZa83IYFrA3B8pQukUU7QjGaAt7DdiWb0QjTzB/fze2kuhv9F68uKoteGAj9D7nAKamhygiFotX4M35cXsxL9g2zSDbyl8HULWuiWACcBz6AQzka+1AiLkL8rr5ZaBXzIsi1nog2Ht2C/HkUSL+KvOU4TVC11K3IvtlkKPIQW8cVokHcAw1KwxQijUU/hHWgHeRtwbgp2NAK/RInoR1Au80aU7Yl0kaziVUs9hzLuHaSzGA5HC98JSAZ4ARURHU2VSMNFLkXy65WW7/tmJA/0oVrEPQQv1LniN8hH2mIeyry/v+i1q1C1Vq5ZC5xt6V59SFWcFPDe8DgXzPrpBsXYEJUGAd8G3og2UdsDfualOBfO8mJYThNmF8ORqKn/VeSPgwY5Ni4NdCPmZvRbUXb9dtQ4dcDQfZzgbswU6CxEi95cA9d2knuJf4bS8Rx50JWXbtoMjK/BrlC45DpqWQzPBn6A//e2Fb6fjFJO62u2rgp5H2iv7eMGtJBejZ9uegUJV7GiiDzzAH7pcBhagK34O7lO5ItfJoV0U55n9CHgGrTRGQy8C3/fcFeypuWLh1EYFpVVqL5iIxKGPoNUQVvdZIBmdJfNG9ZAHB/dgUT7Mag0bROqeNpHCsU461CaaKDtG0fkCWBChJ/vQsUry1H4thvVwYH0CuMhXTkD0f4+6TLbpFlPaQdvJWahIpbirPki4HEyMKEWIb01qTLbpHmKcBOhF+kU0/p5b0SSRsVlKsogZO1kA1DW+aQK77eicoAncaRjqxNtd+8k+HzmsGW2SbOJ/lNHr0GtF7ejsgVn8MpsN1G6aHwKtU2kwWaC00jdqP+wj2SalFJhIUqvX4CqcbaiGQ/6eJ5q0ZYtHNnLOB9FE+dZtMMYE1Emei++lDgAVRR9wKId21CqHzRz+9CiF7VFI9OsRjPqPpSJuBH7x+5sR5uPQah07GGye9BWLM7Fjz97UQj4PLX3EUZlJ0qWrkNVS6nHw0kyChWyeNngkchnv4R9BexvBVuS6szNFJPQse+gP+4XqC3iRBSvrkIfZRscAj5m6V6pcj5SvTypcQg6geZRzJ5s4PF3jiwEzyWj0MagmOKTDUy3FezDsc1IgRGozzIRekj2ZIMg9tN/N0BW6UYbreuSvGiSJxsEcQC3nlTxQRQ0nFPtB+NQLLkmnVA4hOWsSEy8MoYtaLNnFE9ynR/wXlxR6jDZUxTLaUMBwkOE75+smako7i2WXOegovKoNJD99uSx+MfTWXdxxZJrF9K6vS6nowjf9d+Eig+zylko8lqSphGe5LofFbJ4rEblAGFoAf6dsF1RWUawWnkhqhd5h1Vr+mEJ6i7dhRS/Syjd/FRjIPAvM6aFZh5SMb1kiNc1+zT+aQ2pcjLy1aPRKrwNze4oxrWhzlXbdFCqdV+LqlqHITniHjLSBufp1l5/YCtSAp/El1zD0I5q5WzTgZId3lrShErT9qDZnJmOiU5Kj+dZhrTkJiTcbyWccN+B1Ls0OA0tdN7RcLsLtpg8TLEmJlCaCgN4N/Lb1U4tGEa6VZ+fQBr8DtTVO4PS1uVM0U5wGUAYybUTzaQ0aEEH3e5FFV0eX0C5VKdop7Lk6p3wa5tOdHbfWpSvfBY9zdlpKh0m62V6bDIOlVsUHxVxOlIpsy4FhKIHX3L1GIP8uy28tSOojCFWQ2dWKZdc34DUMBv0IqkgSneB0xRLrrNRNZLp+32PHJYxhKEBxeHbKRzUZ4hjgN+TwzKGqExAmoIJTkExci7LGKIyDolScWknOOOzAC1676vh2rliPPCnGn5/IqU7uQb8Q2mjtGvknpORGBWV4hzjFSjF1IG6Zn+Lxep/VwLvuO3JP8HPQl+HttHPIJl2Dv6D1YyTGZmvCnHP6liKjgjagIpvugvXugMdQlunjMnoYx+Hi9AGZBeaxcWypzXy7joaUYPREJR9vwvtOG8AvpmYdTliGmoGisJRKPt+N4o2HkezGxR12GwLcYbpKEoIy7EoHFyOvw6NR+6jUgvd/z0zUX1IGHrQlj0oazMX+eg6/TAL+HWIn7sYZdmDumZTxaXwrtJi2Ax8HZ1VNx2VymYKVwa60mno3k7vn0hDTqP+oyquh3ddKFx7ED3FJ5OD7BLzUJ93MbPQRiSNM6VzywL0BCIP77EiznTNuuKjPdfRih58MxFtyxM9P9QkLvnoFlRUOAjVIzszyODOQHuaxf04ekirK88Q6UYzeTF6+Ixz/A9ydQhOZE5PVwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (14, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAB9CAYAAAAiAXSMAAAABmJLR0QA/wD/AP+gvaeTAAAG/UlEQVR4nO3deaxcVR3A8c+b14VYeFQLsSxKCmqrWEmtVrTRmlJKq0JQYjQSgs9gFUXqBk0kcYkiT0WDO7igJQpuVWMVjQvuuyYaUNtEMCAVhFSDkrigxT9+M3lL5y1zuXPunOf5JpPm3pm55/d+87u/7ZxzS158Gw9rWogqtJoWoEeWY0nTQlQhN0UP479NC1GFouhE5KboFg40LUQVclN0sehEFItORLHoRBRFJ6K4jj6xEI/DSPs4W4sealqAWXgsPolH4F4sw6fxO/weP8fNjUnXA4Nu0TfhJFF2Px734Yft47NwenOizW/+gUOaFqIKw00LMAtn4AvYiifiyfipCIh/l2lgHESGsRrPxkVCsTfgVvwTr21OtPnNAeMBfHGTgsxnhmTsKgY965hItjk0RdHJyEnR2Zbf5KXoYtGJKBadiGLRiRhWLDoJLcWik1BcRyJKMExEsehEFItORLHoRBRFJ6K4jkQUi05Eseg+sRib8EgskrlFD/ICmmOxE8fjaOzHofgM/oDv4geNSdcjg2zRt+MUrBAKvgB/EquTRrCmOdHmNyfjx00LUZUFTQswA6fiOtzSfv0bRworvwV/xH8ak26esRxPwdn4CO4Uvvk2XNqgXPOap4sNnVkyyMFwKiWPTkSuefRh2J2TonO06ONFprS3aUF64Rn4StNC9MDpIng/l8FO76aS0yz4DrwEW/Ar8lJ0DrPgh+CjOAHrcUfnjRYuwxHNyNUTgx4MH4pviSJqgwlKJhR9j9iusDa5aL0xyMFwLX4mGl7n4l/TffCpoqTdkUauSjwPn2pw/EvwhC7nn4N9IljPiWNEKvIJPKgW0erlBbi2wfHPFHsal7aPWxhrn1s925cn5tH7RJm7X+zlW1GnlDXQRDAcEQqGL2KX2GC6RNxd69qvG6sOcI5wJadNOb9c7JBqgnPx8cRjPljoYUv7eIHoh+/D+9SUta0Rt8WYsKYWvonX1XHxCozi6gbGXYc/izv8SULJ94iuYm0cgW9gN94s0peOuxnFK+ocbBbOw4cTjjeRi0QP/E5sxjPFXsdldQ4yjGtEfrixfe4k3CVq+VRsw1UJx+vQwrvxN5Nd19vxwjoHGhFPEhgT83hn4zd4UZ2DzIHz8YHEYx6O68Ud/XAxKXxWvwa72rhvXCmykr3iWRopuQDvTTjeSvF3jhnfM79RuI/au54bhG86vH38LDGNtBvfEWVnKi4Ut3AKNooS+rwu79XqlzuMiJRO+987RBU5JKrIW0UkTsGr8K4E41woMov1Ccbqyvl425RzW03/y9fNa3B5H6+/UATbG6UN8nPmBPxaCLmoj+Nc7OAfui6OxPfEs0EO7ccAdTj1m4X7WIQf4bgartmNfrVJTxQ9nhtEg+jePoxRO9vEsq1T+nDtS/CWit89DKu6nD9DVH3PrypUk0xsuda5iPL1eFPF764RAe6oCed2iLrg5AcoV6N0Wq7Xmfxg7cWqFzpvxBt6/M7EXP9i/ESkqteKRv3RFWXpmX4tN+i0XO/CL/Do9vnLHNwRnCtVJmc/rz0LjXfgr/it8PVPE25u3nCOqKbeanLxs15vld6leu8cnih+7MeI2ZHbRWXbVKu372wWTamd4i5aJvz45h6uMabaVNtoe6z9ok+xTvzwSSc2Uiw3GDJebKzFl8Wtuwtf7+E6VSZnW6JnsVTkybva568QLddNPV5voNkuctSW8LPXi1niXhvn78Sre/j8EnxW9GSOEQtZRtvvDQkfPW84SpTondv0UbhbWPjdeuvnXoFXzvGzx4lq9WPGn4+3WuTMK3sYMxsWGFfyQpGBbG8frxIZwFXm1nJ9j7nN6GwQPnh7l/fOVPMU1CCyHp8zOaUcESnY900uJrrxfrxsls+MCqvdMsvn/i/ptFxvM7O1fRAvnea9YdGr3iPcU2EGtoqcd7oU7kN4cZfzS/E1MXH8kP6I9sAZpIXoXzW+MajbaqluleEqUUrvFRXnX/osY2UGSdHEJPA6408+n1hUTF2ptEmkbpeLwFe2wlVkm0gNO72Ra0Q5T7iXzrRaFgzyE9F/KZ7xv1Ns5jxWTPe/XGxbOFV7NX2hHlbgSjHNtAdfEo38Qp/YIwJm6vUktZDTHpabxETCfU0LUoVByzpmYtD3sMxITooe5D0ss5KTootFJ6JYdCKKRScipy3KB5GTonPYojwtOSm6uI5ElGCYiGLRiSjBMBElGCaiuI5ElGCYiGLRiSjBMBElGCaiuI5ElGCYiGLRiSjBMBElGCaiuI5ElGCYiGLRiSgWnYhi0Ykoik5EcR2JKBadiKwtOicOGOz/FnBGcrHoFu5vv7IkF0Vn3VAiH0Vn3VAiH0VnnXGQj6KzzzhyUXSx6ESUYJiIEgwTcb/YD54t/wPiKFn7oB7n9QAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (15, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAACgCAYAAAA1tf01AAAABmJLR0QA/wD/AP+gvaeTAAACXUlEQVRYhe3YO2gUURgF4C/rC7WIbwWjBsEHiAFfiaBYaBWxUCMEVGwsBEFCCksllVhoaxpBEAsRtFMrMYqijREVC6MQTECTiG8bgyYWdwYnuzNuxGVNyJ5q7j9nz7ncvezZ/6cQ63Elv5hLIc7C3NEQh1FVUmIqym/diHMwOUMxh7PYi/1ZxOXCoXejDl/TrFrwES8StXp0xYs5uIYH2Id7mIQ29GBHDhvxEH3YjjeYHpE3YQNuwe1o0zFOYDDaRsExwQxcRC+e5r+Mz7EWdzATh/Eti7gZ59GEL2mW8TleTtTG2+2pWI8lxYp1ma1Lr1ixLr31bBwsRtyGx0KSpWIVPuOV8NueipV4JqRCdVSrRnvSugX3cQHvItUGdAqxYg6uRoXVWIbXOI1+7I6VnqBdyD/Ygu/oQE1yX7WJ52a8xwdFcvAldgnROwJxcrVGG26IPpSqlo8aIWFHYAzfnrFqXXrFinWZrUuvWLGeONalV8wnTilmPRVncPNPijkhWRdiT5ZSa0Q+lKitSBLi3rATP6JaFY7jbUzaKrSgbZiGn0LedOAGFsAxoXlsSqgMYUBeb3gKS6PnOBOHhQ40FWvxHJciYip2CiF+NFpnEtdhTWI9ZJQJW0DM+goLLsY/XbO/UqxYl9m69IoV64ljXXrF8WTdKLRZmeiPCN1CBqXOSOuEFJunyIx0AJ+wKKplzkhrhfFnjcSMlJBQXcJgN+4N+/AI1zE/Vrtr5Iy0WQjNk0bRGw5gcfJl2oy0Xpi6puIAjiTWvfL61iz0YEmadVFMqIv7HxQH/f5/Bn4B5q+9MnbdQp0AAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (16, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAADyCAMAAACMA5A4AAABcVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAD///8AAAAAAAAAAAAAAAD///8AAAD///8AAAAAAAD///8AAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcODg4QEBAYGBgaGhobGxscHBweHh4yMjIzMzM8PDxERERHR0dRUVFVVVWXl5fS0tLh4eHu7u7////UDmQgAAAAZnRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHCIqMDIzNDc4OjxBRERGR1FUVFVZYWhseIKNl56hq7G4u8DCxcfNz9HS1t3h4+Tl5ufo6err7O3u7/Dx8vP09fb3+Pj5+vv8/f7/xtnRAAAAAWJLR0R6ONWFagAAAdFJREFUeNrt3E9LFVEYx/HveGewwShQzDDj+mdjGLgQWqRCbXopvb1eQLt2gSCRi6uQCGqgQaGZ1zviTAunmy3Mc4K5CH3P6g6cM59znud37nJaxI8Xr46/Ri0YYgBDRETkf0KSuOmTz4F06LyCo7fBq9LIg4/2f57QFALZPQDKb8QhM1MRLUySuszjq2GbOl4jBSaf/Es388BV5VpdrvXvgW++86yflIPNoKOvVJflqjjrBCJXCtsLWtNa8cbfNqQiGdBJom98cVbvsEmkOmn8JF/eASNL23tQNob0OsAcRccIe+NFTJeIyECRisRyiRhheyJihEVMlz0RMcIiIkZYROT3KI2wiH+QIiJGWMQIWy4RIyxiuiyXiBG2JyJGWETECIuYLhERIyxihC2XiOkSETHCIkbYnogYYRHTZblEjLA9ETHCIiJGWMR0iYgYYZHbhqSLMEy+eLTTwMsfTkDOg7Hk9eXzh/fXzZy9C5Qbvx7b87Smuod8/ngzsrBcnwTuQ9G9fubES2C/j2RtIG9zGFaoEegWKWSQdCOK8GkLHj8Nm5tnUBVpfKXLXXjkPWnwnsBp1JdDIZsP/37ojwvo1cjfxv4b/tzF9HRESE4BfgLwgmpwh+j0ogAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (17, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAADyCAMAAACMA5A4AAABgFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcODg4QEBAREREXFxcYGBgaGhobGxscHBweHh4gICAxMTEyMjIzMzM1NTU8PDxERERFRUVHR0dRUVFSUlJTU1NVVVWXl5egoKDS0tLh4eHu7u739/f////CiuP1AAAAYXRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB8yMzU6OzxERUZHSVJTVFVZYWh4fIKJjZeeoKuxu8LExcfMzdDS2OHj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+lY+8aAAAAAFiS0dEf0i/ceUAAAIsSURBVHja7ZxBbxJBGIYfYIFCWtpGGypiNV5MFC8qJtoYTfzfXvQuJkZjYox6aLQklFJrMFTWQ8vWA2x3KzWlPHOa7MzHs/N977xM9jA50rcnz3e7qQKy/IcmRIiQeYJk0k2vPQSC7CCE3ovEUUHKha9G3R+cFQSKawAMt0gHuX41RXYzh1UMWXucKKLQbREAtVunqeZCwqhh6yhdb3oJf7n0IFLK9odERdwMD9MV8utjQkj9uJssJrd5oTZjEglfu1IZjFZ//LT6dNQrb78e/jMkf2esNm9G3fXWxNiQTNLN+PnTSF2Pomff3o16z7JT2fGDL5G6+ntHbxg9I5y6rYQ7Z1P4v1r7JYnf/9SQxLv24v0zhmQ8SAg57+oKTzq9WRMhMwwJyZguIbNskEpYiC5sTXRh1SVEgzRdQnRhIUJ0YSHzpy4/2QrRIIUI8ZgqRBc2XUI8pgoRokEKUcK6sBBdWIjqmo0vEhZeCZsuIR5TrYkQDVKIEvaYKkQJCxGiC1t41WVNhChhDVKILixECevCQjRIIUp4ztOlC0+3BQ0oUGr0vk6YcGORPMXG7/fjh+srUKBea38fM7h+GUpcWgmaAHd5OwlSvQ1sbPQnQCpNgPu8GgdZbgLcI4Aq/NyLWezyAsP25OFSBTqDCYOFVdjtB1CETByknI+9YHKpCEudmMHFvhI+h/sEunAQN6WXI+4W2U455mrmnQHsE8BJdwvvxw8fxMUPewB/ADUkiW8VgfpNAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (18, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAADyCAMAAACMA5A4AAABrVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcODg4QEBAREREXFxcYGBgaGhobGxscHBweHh4gICApKSkvLy8xMTEyMjIzMzM1NTU8PDw+Pj5ERERFRUVHR0dRUVFSUlJTU1NVVVWXl5egoKDS0tLh4eHu7u739/f///8cU6VMAAAAbXRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB8iMDIzNTY4Ojs8REVGR1JTVFVZYWZobHd4fIKIjZeeoKuxuLu/wsTFx8nNz9DS1tjc3eHj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+1//Q7wAAAAFiS0dEjoIFs28AAAJxSURBVHja7ZxBbxJRFIW/KUNhlEYImjZYKNQYNTGhiRs1SqKNC+PCX+tK/4BommhqQoxarS5QKrRFGih2nosaHMpAZqg0Ys+shvvmzjfv3jOHl1m8COGPB48a9VAJM5zAIYgggpwmiBXu8sx9wJ7pGmg8CZxlh5x4qnf6g0lBILYAgPuZcJBCPkQLrcMuGi7cC/ZQ9TI2kLs+TjfjAbPc8u9yvdgOeue7PaV8exVo6qvmsFyGvUpAyOKf006gnMjqSb0n9tiZkZz3V+v7MSDZa9mOv0FkHnuve7v73B0b4lzhTJB5XbbKvnGDFaRcn754a3Szd1p96b3qYeRYPdlb61NXu4npWDGX7sbkGm+2AJqTVFftKZC49f4DmIlBOhXgEu1KqKz/4p/RYGkhIcg0qMuMWsGpJ4JMMcRgqVyCTLNBSsKCyIXVE7mwJXUJIoNUuQSRCwsiiFxYkFOpLn2yFUQGKYggWqYKIhdWuQTRMlUQQWSQgkjCcmFB5MKCSF3//hcJNV4SVrkE0TJVBimIDFIQSVjLVEEkYUEEkQur8VKXeiKIJCyDFEQuLIgkLBcWRAYpiCSscsmF/+JhFyFOorjz0WdweY44TvFgffQ9FtMwy1K2+vXIwMI8OMyn7RLADdb8IBdXgHy+7YUsrRBheY6N171QqgRwh2dHIekSwG1syEBrZ8hDphzcal8kmgOcHJveoJOCWtcnf/Y81Ns2xMAaBjkbHdxc8t0byBf7QskYJGs++ckYnGuPsW/qwSbk5MITfE+gAfvDhhtRBnaPnb06sH9oLQG7fvlb+9DEhlF7C7d8YoXCQOjnsHu42wC/AAZFmk8b/3SnAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (19, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAADzCAMAAAAy/j17AAAB7FBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMFBQUHBwcICAgKCgoODg4QEBAVFRUZGRkaGhocHBwiIiInJycqKiouLi4xMTEzMzM8PDxCQkJERERGRkZVVVVnZ2d/f3+KiorFxcXR0dHS0tLh4eHu7u7////i+3YgAAAAhHRSTlMAAQMEBQcICg4PEBUZGhscICEiJyouMTM3ODk6Ozw9Pj9AQUJDREVGR0hJSktMTU5PUFFSU1RVVllmZ2hsc3R3eX+Ch4iKi4yPl5iiqaqrrK2ur7CxsrO0tba3uLm6u7y9vr/AwcLDxMXGx8jJzM3R0tXX3d7h4+Tp6+3u8fL09/v8/f4xnLpLAAAAAWJLR0Sjx9rvGgAAAxhJREFUeNrt1r9rE3EYx/HPJZe2SWMgiRiHgIMKdoqIZNBC7BAHwTgI3RxcBDfB/0T/BRHBVUTw9yCCOCgIrdafqNDQapu0DZeYNA4X01jvLodeSNR3ll76/X7vXn2ee54+YQX8OX62+SHYO4Y08h+IECFChAgx+I8R5M0uTEpGaLMt6dJaYHc1gyRGooPIjhlsUrI2bbmmQInJc+3FYG4Wk2F0Xp/Zup8DidB603PDp3uSKZk7lAj8Hd/jc98u7+W0TVxX64r7pv1Hnsz5dZ2Ody9vfPFz4GTqVtmr3ZxJ2oluqL3gvm236gt+ia2ty7mKnwN1vV707Ijtv6MvmgO6bzzc86VZHRrROJX7qSDHty7P9/5+9dnT1WFF8bAifrZFj70aGlHtm73fZmLdy6u9FT2bcTvu5x/wn76Lj3u/TGvDLj9Ln3sr2hqlcvk66hV9baJ7WRtR4kemboi/33SIIkSIVPQgJCQaIkSaDlGECBEikw6JhgiRpkOiIUKkokk0wxhEmg5RhAgRIk0HIsMYiabpkGiIEKloEg2RSYemQxQhQoRI04EIkWGMpsO7CBEiFU2iIUKk6TCM8S5ChMikAxEiRJoOkw5EiFQ0iYYIkaZDFP8VIsMYRJoOiYYIkYom0Uw6RJGmQxQhQoRI04EIkWGMpkO5QIRIRZNoiBD/k2GMpgMRIkQmHRINESKTDlGECJExgkRDhAiRpjPgYBFFiCP/MT1X96aVUCJfeemwltonQ8rrRc3zFmMHpYwysbfL2598SMoqmX+31I9YkKFQQeV5p9ViVlIut+REPHBCklHS+z7EkiTN6O797U8uSdK0Ht52OVmQIaOgslmUFCrq0bzzvnRYbbc/Mx6TKvX+iUpJVtXpJdsp1Suu537ITOmBlJly2zceUdNtbXJCavQnRqJSyIloRqVwxeOkLTOlO9LRqZEsFFtG06EvSpLWTLXc1ioNaaP/I+pVyXJa+FaVGr6IF6Uxd6LHWcvyFYXNFbcBaKXPSVtmSkn3PdftIDvG8fmbTiy9H2Ndtn/+Eu5GZ8Hj77Rl3wGBdbHmA50TxgAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (20, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAVCAYAAAAuJkyQAAAABmJLR0QA/wD/AP+gvaeTAAAAcUlEQVRIie3TsQ3CQBBE0Wd0oggqQM7ogRZclDuhAiQyh+4EEdECyQUWyYZ7wb4KfjAzYcdmDDOs2RUH6ym74N9wQRNe+GaHdOeGD57ZJd294Y1Hdkl3G25DFRSplwXqZaEKitTLAvWyUMMVS3ZId/kBVZATgfBYkSMAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (21, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAAAdCAMAAACXBBKlAAACnVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAADAwMAAAAAAAAAAAADAwMAAAAAAAAAAAAAAAAFBQUFBQUCAgIAAAAICAgKCgoEBAQEBAQKCgoAAAALCwsJCQkMDAwHBwcRERETExMPDw8VFRUAAAAPDw8QEBAAAAAPDw8AAAAPDw8MDAwAAAAODg4REREODg4AAAAODg4QEBAAAAALCwsLCwsBAQELCwsuLi4xMTEyMjI0NDQLCwsgICA5OTlFRUVISEgaGho3NzdBQUFJSUkJCQkhISFYWFgKCgoQEBASEhI0NDRKSkpNTU1bW1tcXFwLCwsQEBBRUVFVVVVbW1sHBwcSEhJBQUFMTEwHBwcLCwsvLy9nZ2dpaWkHBwcKCgpWVlZnZ2dpaWkGBgYKCgqDg4MAAAANDQ0PDw8RERESEhIUFBQWFhYXFxcaGhobGxscHBwjIyMqKiosLCwyMjIzMzM4ODg5OTk7Ozs9PT0/Pz9AQEBBQUFERERFRUVGRkZKSkpSUlJYWFhZWVldXV1hYWFiYmJmZmZsbGxxcXF1dXV3d3d4eHh9fX2CgoKFhYWIiIiJiYmKioqNjY2RkZGSkpKTk5OWlpaYmJiZmZmampqbm5ucnJyioqKjo6OoqKiurq6wsLC0tLS4uLi5ubm7u7u8vLy+vr7AwMDBwcHDw8PExMTIyMjLy8vMzMzNzc3Ozs7S0tLU1NTX19fY2Njd3d3h4eHj4+Pl5eXm5ubn5+fp6ent7e3u7u7v7+/w8PDx8fHz8/P09PT29vb39/f6+vr7+/v9/f3////BpMUZAAAAfHRSTlMAAQMFBggJDA0ODxATFhkbICIvNTg8PkNERUZLUVJVV1haXF1eYGJjZGp0d3t+f4WGiIqPkZqkpaanq62vtrnH0tnd3d3e4OLk5eru7+/v7+/v8PHx8fHy8vLy8/Pz9PT09PT09PT19fX19fb29vb39/f39/j4+Pj4+fn+xis6UQAAAAFiS0dE3ulu4psAAAH6SURBVEjHY2BAAUzC0nK4gQQfqmoGRk2X/BrcoNJDl4UBN5DyiolMxg0iSq25kJUz2yXuu3oPN7h+OMmBE6dl8jn77+EFNyucOZDUG+XevkcAlNvgsow7+gghzffKTBDqWbLPEFR/o4Afh21KUQQ13zsdhFAvFExY/b1QWRy26VcTobuUG65ezJ8I9SlqOGwzXkGE7nQ+0mxLVR+1DQrubp89ZfqqS/htOzF7MhKYf5Fc2050Tly7c+vcxk34bLvWtno3EljQS6Ztp5s3gunj7evx2HagH1VX7XXybJu6HMo42XAOt217J6Hqqr9Mlm0n2+Bl07wlZNmWYaUNB1IMPIJwYIpp24Y5cObOKRDbRODqFYixLc/WEA5UGOyd4MBnMYZtyxfCmUe7wFSVG1y9ZyGVQ3LzTDhz2zSax9vZRnjqmrUSt237JqBqq7tKXpqcOR/KONh0BbdtF5r2HEECW9rJzG+XOhbdAtE7WnbhK0u29XUjgcnHyC1Lrsxonb9sSU/HITqVyifXLFq6584Iq3FE/YhQH6tKpZaCYAIR6gPEcdimGEZEK8gbSYPrboLqTwWx4rCN3ZdwCy/TAEmDRMJJAsrPx2jgbL3KxBNw7LUiRzZkDcpxWevW4wHFaTp4WuaS7uEheEBgiQUXqgZeLTNL3MBcTwBVOQCzdoLRWBgR+QAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (22, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABHCAMAAAByDuTxAAACE1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAAAAAAAAKCgoAAAAHBwcHBwcLCwsMDAwAAAAMDAwSEhIAAAARERESEhINDQ0RERETExMTExMNDQ0AAAAQEBALCwsMDAwMDAwLCwspKSkqKioJCQk9PT1AQEBGRkYHBwcQEBA+Pj4HBwcNDQ0PDw9dXV0PDw9dXV1sbGwEBAR2dnYDAwN+fn4CAgJ6enp8fHwAAAAAAAANDQ0REREUFBQVFRUXFxcYGBgZGRkaGhobGxscHBwdHR0hISEkJCQlJSUqKiovLy8zMzM4ODg6OjpERERHR0dJSUlPT09SUlJTU1NUVFRVVVVWVlZXV1dYWFhZWVlaWlpbW1tcXFxdXV1eXl5fX19gYGBjY2NoaGhra2tzc3N1dXV3d3d6enqAgICCgoKHh4eIiIiJiYmOjo6UlJSYmJiZmZmbm5ufn5+goKChoaGioqKjo6OkpKSlpaWmpqanp6eoqKipqamqqqqrq6usrKytra2urq6wsLC0tLS3t7e5ubm9vb2+vr7AwMDHx8fLy8vMzMzNzc3Pz8/Q0NDS0tLU1NTW1tbX19fZ2dne3t7f39/h4eHj4+Pk5OTl5eXm5ubn5+fo6Ojp6enq6urr6+vu7u7v7+/x8fH09PT19fX39/f6+vr9/f3+/v7///+tSQXhAAAAQXRSTlMABAYHDQ4YGRwfMDJAQkVGXmFmcHWNjpWqq7a9wMHS1dfY3+Pk5+nu8PDx8vPz9PX19fb29vb39/j5+vv7/Pz9/tqx/6wAAAABYktHRLBDZK7EAAAB7ElEQVRIx2NgQAYS3AykAmneUS2DXAsnM16VTAJSKpaO+IGDhoIYF1wHn6pOxbRVG4BgIpgEg8j2DShg/YI+OwNJVogOIeOuDZgAXQsIrDRXYgPp4DebtYFILRs22MsDvcis1o1NbkNUGzbR9XoiDAyCuhtI0LJhhjYjg2wzSVo2aPEwqM/DLhXdil3cQpjBdi1pWopFGRw3kKalRJyaWmJaBqmW2Gb6alkzddKkSTPXkaBlsU9gUFCQXxhhLXFNUEZTDDgJuy4hXkttMpjymk8LLfGNg1RLQsPw0ZJYTzMta0nUMjvFw9EncxGUl1QHZTRHg5Oly1JMLb1uRcs2LMjznISmZam/MxA4RWIm/qXu/WC6w3c1qpYN65YDwUosuTI/C1aAlYGp5FqCGTm0B8qoSSJWS/AEKKMzglgtKeVQRkEOsVp6AtaA6RXeUyBG1BAulJLDlwPJhSHZG4jWsjbHNSM3xaVwPfFaNmyYW11UvxjGSa3GqQVXLYZLC7AWw1VX4tICrCtlcBTXaVXYxTV5cNb7OLRMB9b7uFoX2LWsNxQBtZNMZhGvxUqOGXdLKb0SS0vJVIkd3h5rmLMcDSSWogksmWwDb49BWn36aMDaEsG2NQISGopIrT6sgJ0FwVbmILmVOqplKGgBAPVQCGKcUH86AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (23, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABbCAMAAADqb0MHAAAAxlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQADAwIEBAMICAYJCQcMDAwNDQ0QEA0REQ0REREiIhopKR8sLCIzMyc7Oy1AQDBHR0dOTk5PTzxSUj5VVUBiYkpmZk1mZmZqampyclZzc1d2dnZ3d1p8fF6Dg4OIiGeJiWiNjY2VlXGZmXSZmZmdnZ2qqqqwsLCxsYa4uIvExMTMzMzd3d3u7rTy8rfz87j397v//8H///95aDwRAAAADnRSTlMABAgJERhAd3uEiPf4+4PZOr0AAAABYktHREGJ3mxOAAAA7UlEQVRYw+3Zxw6CQBCAYex97b27YlcExF7f/6Ukc8CbjMnErGb+w54m34HAJrtoGqagSGmEMfcNLoYpLjKouagmKEu63Ny/qcgjpjrA3f27iQJiaoXhFlLKgci5qzQIuPbr0fRJuKUDzYi4wwPaMvdv3OYIrYk40td42PKaEHD4mGOOOeaYY4455pj7Bc7QvUwVz2QzGxrzMYW5t5xzgmwVz2Sy7qWrtwVczl5XFbeAcg0q8VfB3De53gjqqrij7CzLMhtNd7X2RDsK4UXvp1zVv4rIIqaKwJHeuYcxRUQaNRfinzM/xgWSCdzgE0VwRvKSChnKAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (24, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABUCAMAAAAbOfHSAAAAllBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwIEBAMICAYJCQcMDAwNDQ0REQ0REREzMyc7Oy1AQDBHR0dOTk5PTzxSUj5VVUBiYkpmZmZyclZzc1d2dnZ3d1p8fF6Dg4OIiGeJiWiNjY2ZmXSdnZ2qqqqwsLCxsYa4uIvExMTMzMzu7rTy8rfz87j397v//8H////0qm4rAAAACHRSTlMACEB3e4j3++IoGz4AAAABYktHRDHZ2x1yAAAAsElEQVRYw+3Ytw7DMAxFUaUzvSdKdXqv//9zMTgoozk8GE7w7qCJOIMgaKBzlnJSdsDIpcEVLBWlYprLO0FWirllcnOpGab6yr2Se0rdMLW2cJH3fizV+PQbANf7Xs0Iwq0O2gLEXd7akdy/cfurtgVx0Gc86YZmAM4eOXLkyJEjR44cOXLkyJHLOHe/hR5ZXMu0OlqTmwpyaXLDqTbI4pbntAudf/+DaqNqKIfcuX8A+a31sJLyZOwAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (25, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAICAYAAABOICfKAAAABmJLR0QA/wD/AP+gvaeTAAAALklEQVQ4je3OQQEAIBDDsA6luEUWuLg+WBQE6k8Bjp2wBLh2wrLsgCnAthNVsx66VQIswVoi8AAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (26, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAA9CAMAAABm4ZILAAAA21BMVEUAAAAAAAAAAAAAAAAHBwcHBwcAAAAODg4ODg4AAAAHBwcGBgYLCwsAAAADAwMAAAAAAAADAwMEBAQFBQUHBwcICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8TExMWFhYiIiIxMTE1NTU3Nzc6OjpISEhNTU1OTk5TU1NVVVVeXl5paWlxcXF7e3t/f3+Dg4OFhYWIiIicnJydnZ2fn5+oqKiurq6vr6+5ubnAwMDIyMjNzc3Y2Njd3d3h4eHi4uLk5OTl5eXm5ubo6Ojp6enr6+vx8fH19fX5+fn///8534OPAAAAEHRSTlMAAQIDiYyQkJHa3uLn/Pz+8x73tQAAAAFiS0dESPAC1OoAAAC4SURBVDjL7dTHEoIwGEbRWLFCRFGDYO8VFXvvvv8TiaPizwRYuHGTu/vmrJLJBCGYN4xc8sWZumg0BhMsK4LwGraEY8UjfHfsxtRZt0NttHPQfZXkJCVbP9npRhXxs2T+YKPFFxpcoXUu409kQWknYarYpbSGvzUpbQFtUzomJso6pRfFVPVKn2iaeWN6ZndXOkkZJskT+3s+9kqFcv/MXt0fVIM14BjwKMCBQgJcnJ/9z7+qJ2jdD3F8A5VuUKenAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (27, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAAAICAYAAABOICfKAAAABmJLR0QA/wD/AP+gvaeTAAAAPElEQVQ4je3OMQ2AMBQFwCvpjgr8MKMNZV2R0TTBBW/gn4JrGDj8y8KVTpRSymcaNuzpSMDsOHGnJwHPCzquBThmuaVjAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (28, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAAAmCAYAAABedGw2AAAABmJLR0QA/wD/AP+gvaeTAAAJFUlEQVRo3uVae3AV1R2OKK2i1mqttdPX1LbTqdbnVFvpONahY+sfVKW1nTIq+AKnPlMqdBAlTsWQZM+5lAKaKgURcvdeWvDVDBQVxSCgyd3dBCpKEau22FGUVFAM4O33nd1Nls25+7i5N4bpmTlDOHv27Dm/x/f9fr9za2oG0OqKdcNMW2wzbWNM2nezlhiftcUvaqrUsK/7TEvcX3OwNhxgS9YxpqZ/z8iajni4evsyDChuw8Es2JU4wPy07+UsOQPvdlVtX5b8VdYy3h7iwpMX5p1Z39QfQMzLOuJp3bP8prpP5J+TR/j/b+lqOm316rrDlGBtcTUEu7tYLB5S7r6yXeJLOcu4RKs42/gR1i8utzKfjlsnb8svtHTN+tygCJP4icPPyRcy5+Zs+SQ2+X7WNmo5fuAB5CT017UHt8UdcMnNXMPsavwa1ujmGi7GNv2AB3+oPfP5WAHaYorpGHM13vJrroG+OL9JHhd8tsRq/IZ65mTOilqbisa8Np5xMN38XxQcP64OZ4s96HbeypzR59LGJRj7KGiZfRbbeGLOEo/wec6RO4h5ze3Nw31r48FzVub7kUJ1xCjM249/by7lTXj+Gvo7UNoV/ji/g7F9wP+fxWEx5v2XihhMwa6hq/e6si1PAeG8gPEPKOh8Pn8o3VtZRkfmWxHrrKBw8e5r8IILAhHFBxi7stR7Le3G8ZjzBt5ZFunK7TOPgYCbXQsVeb7nfXcb9xmBwxcrpVtyXMWFly/M/iwFVEIgCyiUsOt41vsh+jq6mtrcRjlai3WO8UseGK5/HazjUSVgCGGR03Qk/n4RY3fp3iP24uCtFE4SnFSKcOSPPUX8hyEg/n4Clv5H3dwlBeMrtHIYzoOLnYYv4u8/04sqyJ7iGbjLczpycjFSbNEqpFOeimcdtLqcI97L0josOfaAzXdmTsLznXDRe3u/Bwul66FvhQDW4b2HSljTbVQeiOWcNOehEgLWuxVQ9EwJXF2D53+ngpd01h+rYAmEV0GLNU7Gos+j9+CgM30MdAlGjuW4z+T93gWuuhhlFJUQ2n//5WBE4MFGYcG2usM1xNKG5/vR/6FJHkbi+V7fjelRJL/WLbM/mTwBkWPBD7thODv7G4zxO5Kx6TR9O+Cd7zBEqygchMnJLIjTXeJo+i41mXeavhp1gCwF68gX0pCCh7HL0XccSHjyOJeMjEf9UIwKc+FEjEwVK3eK60hgVLJap0N+3SO7/RD69Qfs1zUCkWTdNArWk9Pzc09ULlLI/FCLU56rw9I3EC/TkgIihdFc/5HNDUf34qotHmM0QuwPKWFPkPUTwZyL/0Uq18P0Hdjrh+jLNXximprxfjJCvIt5rxLPy7Vej5zEe7CeCbrg31NCu9kpr+LBKQCfFIDbCxPCUJGRhRc63agsrCDP1xz8JWD59FQwp6IFrA8hKDjhXi3RAwUpwwnG5PCGe/C8M3I9rgHM9rG5PFJzxPdohdjEfhx4Uf/MRkpaK7HPw0QFGUFSiPsGsVfFqLa8lNaFdfbhwA+UILNW3T70ezeuzW+ae5QrMONtld6inkFjAfOPJJeoGNcWzxIeXNiT12BsV1QmiP3VhbG5PGIDOeHjXdlQHOm7OrR3WcA9ilDCorQfZniE96aRxBSB4MDoDWHCw9gf0NcmEaoiPg+PPWI2XTJ0s76g4TCtpvXmNooLlHEgqdHCFuBQh80DSRIaAAVWv/gPZbmQBe8my5fKkKKSEFgVhbpdKQjK8tZ/hWlvgMlrOScm9T1TYbEjfhN4z8S+GN6tCKfjVJ5vvcrTSmSCFDaevcnUuZLZ10Sye1+aKNfrQijiE2LGxWmLKnk7swDCfAXC+Ik/xvqBR2K9yQSf8/+lIGbx+tmfYszNFDq4Bwj1bijuZbx3QkkSda3xVa7fYhs3aaKXFarm4cFLRZr30SLTRK/U1+3jUkiwDJ3M1OvbcpouCXEjBGOCn0y0WMY45apITEoYAC3zn+FijFdF2xWncFcxxnbiaChs/C2jJJ9gK5dAuIRUpIu7RKOv+qu4FVFC+puE6CTEg54n+G0l2I7+3/eEh4KLPK9/5CHPj8LOEGH/NZgJEhaIzWbIiisjWIQY0GIP3LXbLMHYfmGZ2JhasAmSELUH4Cb2ACyUd2pCtt3h8WDNNkkVzbP62Uzv+feyDXM+4yYq8i/Vq3Ih51ahSQTG+IVl5t2pkhK3glUyCQkdvC1Yl32svXkExjbCYv8WJqYQRkZW0QJ1k1tJUoQNQNTjJNCkBaCyr19Y6Yq0bJUuAjIK8jtlrE9vmBhv3cbCYLWNlSsI9d9x1X8Vj4ewMyoTRHquCkCmZZxd3bosarIMR6LmeIXlvdD0z9ML1rAY1iW4SeittkGglxNX/fpuDEE+XqqKpssEMX8PSasasrwIfYLfa41xSx9cP/Pd4Jiu/6ltxlu3zbp6edy8cBfLJnewx80bP2XMA9mCsW/khWdMX9LeuOf25utbk6x/18Kbnpq36s6tcfOOOnbEDTCij+rNSeuHDR82Me05Ql3buGiz3y8ae95KxILFI48eMT84Hu6NSye9MfXeCS9GzdH1mxuusOe0Tnsrbt45o05lSFe8b9X0d8XDU7YPH37o/UnWv3LyxWsXtM14P8nc+Wvu3nXV1DHr0p5B0xMQjHf9wupXtEuzwCxXl5mEdCe57fDKh91RUURcFS2u8B+8jqpqYzTgXQiOjjyAZUxmiDKQJCQR0VnGLWUU84tJgnzvOmplzWA1lSsjHIm2DPFTBvLhdDeueXXdImPaShFdqSpaokzQ6n+rUU3BrmWFKV5Asp7pYZq1vYiiJ8nBeenHnj7DE/ewSBMPG+ryc2/wiqrKgpWLmPJVa/2kVu5W20ShWvvwM0EayaAI1i3yGptrPuaWlOjKbWkywcoIFvdNrHWW+g3CYLU0RDcA5e1MkglWJjLg769Qvgte8n0cra/aFk90AxBsATWJxpr/p+b92KIn/OOQinqFJZdWtao1VBvDIYZFVROsuq7pu46qZGNtMz9Ue322dvvtzRNfqkDaqe2XXjvqyZm5Sa9XI6XlL2EuG6q9vqV21byVd7w8wCJJNfv4gxIK+Jtd/lpmKO/xf00jMjjkqWN8AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (29, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAlCAYAAADFniADAAAABmJLR0QA/wD/AP+gvaeTAAAEZklEQVRYhcXYb0gbdxzH8U9+l9z9zvvl7kzFIlLc1FBGC6OxVsemlDnGRK2Q7kEZGwNBHypUsJOOgZQ+WB8VtjE21tIyNlhFZJphpYMx1nZMbUNhSF3RDmG0UFMbk/uf5PZgVcTW1auN93523C/ci+9dkl8SgPckAG8qitLO83y9aZovOY5DC4UCRwjJ8zxvCILwt2VZf6ysrCQA/ALA8HKBgIe1ryqK8ollWa319fVOa2tr+MCBA4G9e/dCVdW1RcvLy5ibm8PMzExhYmIik0wmQ4IgJNLp9BCAWS+4/6syEon8FIlEtDNnzuQfPHjgeun+/fvu6dOnc6qq6pFIZATA7m1peJ5/nzGWGRoacgzD8ITZmKZp7uDgoM0YW+E47ujzeEhpaelX1dXV2dnZ2W1hNnbr1i1XkiRHFMVheHh8iKIow83NzdlMJvNCQat1dHS40WjUkGX54pZgqqpebGpq0i3LKgrIdV03Ho+7ly5dcg8ePKjJsvzZE1NZf8Bx3Ieqqh5NJBIiz/NbnexzFQqFMDk5WSJJUhfHce9uhqoUBOHzRCIhybJcVNBqkUgE4+PjJZTScwDKnkCpqvplf3+/sG/fvh0BrVZXV4eenh6qqurZjef2l5aW6rquF+052vhMjY6Orh2n02mXMaYDqAEeT0pRlI8HBgZ4URR3dEqrybKMvr6+UDgcHlxFMcuyOru6ujhfRI/r7u4OOo5zDIBAALTEYjG7vLzcTxOqqqpQW1ubB/AGYYy93d7eznwVPe7IkSMSpfQtQil97dChQ+TZLyl+DQ0NHGPsdWKaZlU0GvXbAwCIRqOwbbuGWJbFdu3a5bcHAFBWVgbHcWSSy+WClFK/PQAAURSRy+VCJBgMOobhabdatHRdRygUsoggCNmHDx/67QEApFIp8DyfIYIgLNy+fdtvDwBgbm4OHMf9RQzDmLpx40bBbxAATE9P5zKZzO9E1/XL4+PjGb9BADA2NqbZtn2FAPg5mUwG79275ytofn4ed+/eDQD4jQAwBUFIXLhwIe8n6vz58w4hZBjAmmO/qqqan/spSZI0rN9PAfizUChcOXXqlOPDkHDy5EmLEDICYH7juUpRFLWbN2/u6KSuXbvmiqK4gqft0QH8Y9t2d2dnZzadTu/AfP77sIzH45pt2x8AWHoaCvl8/vulpaVzLS0tGV3XiwrSdR2HDx/OptPps/l8/sdnrQ8oivJDLBbTUqlUUW5fW1ubu2fPHnPLv5BXYYyxLyoqKrSpqakXCrp69aobDodNSunXXkBrcRz3HqU029vbaz569GhbmFQq5fb09BiU0gyAuGfMhnarqvotY8w4ceKEvbCw4Alz584d9/jx45YkSYaiKN9g3btss7yM72XG2EeFQuFYTU2NG4/HpcbGxuBm/+Rdv349NzIyoi0uLiIQCHyXzWY/BbC4lQt5v6dAEEAjpfQdxlizaZqvOI5TEggEAq7ruqFQSKOUzmaz2V9N07wMYArrvjq20r8LM1xM6OxyVQAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (30, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAA9CAMAAABm4ZILAAABRFBMVEUAAAAAAAAAAAAAAAAHBwcHBwcAAAAODg4ODg4AAAAHBwcGBgYLCwsAAAADAwMAAAAAAAABAQECAgIDAwMEBAQFBQUICAgJCQkKCgoLCwsMDAwNDQ0ODg4PDw8QEBARERESEhITExMVFRUYGBgoKCgwMDAyMjI1NTU8PDw+Pj5BQUFCQkJISEhKSkpLS0tQUFBTU1NUVFRVVVVaWlpdXV1eXl5gYGBhYWFsbGxycnJ3d3d5eXmAgICFhYWHh4eIiIiKioqMjIyNjY2Tk5OUlJSVlZWWlpakpKStra24uLi5ubm6urq8vLy+vr6/v7/CwsLDw8PHx8fKysrMzMzNzc3U1NTY2NjZ2dna2trc3Nzd3d3e3t7f39/g4ODh4eHk5OTp6enx8fHz8/P19fX39/f4+Pj5+fn6+vr8/Pz9/f3+/v7///+d8R9MAAAAEHRSTlMAAQIDiYyQkJHa3uLn/Pz+8x73tQAAAAFiS0dEa1JlpZgAAAEsSURBVDjLY2BABkycDHgAM++oLB5Zbh5kwI/C42IQiEIGIcicMD4GgWycIA1dNh23rLemsICwlh9W2UxTCQEgEBS3xCZrLSkAAZJ2mLLx4gIwIJGAIeuEkJV0xZA1EkAAMwxZfSRZYwxZG1G4pJgDhmyoBMJVEZg+MoE5S8IMi39TNCAeltJOxRaSGU6KMjLSSi6ZuGIhJjgOXxzhj8EBkc0KdLByDMIhG6kqJSwgIqUei002XFYIHFbC8tGYslkqQtBwFlbFlPWShseRtD+GrIUQXFbYCkNWDyltGGLImiMkBS0wZN2R7PXAkE1WhMsqp2L61weWcsQDsIWVpxwo4Uko+GIP50RnHTVdtySqxaA9MjBA5tjyMbCyIwEOfmQeO8to+UyuLCMbKh8AiWlOchTD5RoAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (31, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIcAAAAnCAMAAAASJavWAAAC5VBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMAAAAAAAAFBQUFBQUDAwMFBQUFBQUAAAAFBQUAAAAAAAAAAAAICAgJCQkJCQkMDAwMDAwPDw8QEBAODg4QEBATExMQEBAQEBATExMUFBQTExMTExMPDw8ODg4SEhIUFBQODg4UFBQQEBAAAAAODg4UFBQSEhIODg4AAAAREREAAAAMDAwNDQ0PDw8AAAAMDAwODg4MDAwNDQ0MDAwNDQ0NDQ0KCgoNDQ0AAAArKyssLCwyMjIMDAwwMDBGRkY7OztHR0cJCQkLCwshISECAgINDQ0cHBwjIyM3NzdAQEAICAgSEhIUFBQWFhYYGBgiIiI7OztAQEAREREeHh44ODhCQkIAAAAICAgJCQkKCgoNDQ0HBwcJCQlgYGBhYWEHBwcKCgpiYmJra2tsbGwFBQVvb29zc3MEBAQFBQVycnIDAwN0dHSFhYUEBARxcXF+fn6Xl5cCAgKTk5OXl5eMjIyOjo6ioqIAAAALCwsODg4PDw8REREWFhYXFxcYGBgZGRkfHx8hISEiIiIsLCxAQEBERERVVVVYWFhcXFxeXl5gYGBiYmJlZWVra2tubm5vb29wcHB0dHR3d3d4eHh+fn6AgICBgYGGhoaHh4eIiIiJiYmMjIyPj4+RkZGSkpKUlJSVlZWcnJydnZ2enp6fn5+goKCioqKlpaWmpqanp6epqamqqqqurq64uLi6urq7u7u9vb3CwsLIyMjKysrMzMzOzs7Pz8/Q0NDT09PV1dXW1tbY2NjZ2dnb29vd3d3g4ODh4eHi4uLj4+Po6Ojp6enq6urs7Ozt7e3u7u7w8PDy8vLz8/P09PT29vb4+Pj5+fn6+vr7+/v8/Pz9/f3+/v7///9QQp5IAAAAmHRSTlMAAQMEBQYHCAsRExQWGRsdHh8iJygvODk+P0RMUVJUVVdZYWFjZGtub29wdX6BiouQl5qjpa2vsLKzt7m6wMPExMvLzdLU1NfZ3Nzd5OTk5eXl5ufo6Ons7O7v7+/w8PDx8fLy8vPz8/Pz8/T09PT09PT09fX19fb29vb29/f39/j4+Pj4+fn5+vr6+/v7/Pz8/P39/f7+/hSH1qwAAAABYktHRPbc20phAAACP0lEQVRYw2NgwAI4hAgBHg5s+hiY1ZxiJ80gAPoibKQZCAMh0+TGfEKgutNZClOroEfWuRefvhEA75+cyLDgIOQMhbTep98Ig3dn0o2Y0LRyBU38Rhz4WG/LhN8ZUrl3iDTrbZEBml6T9m/Egs+ZqnidwRp2iWizXuWIoujlrnpDtN5vV3zxukM2gXijvk0zRtErF0+C3m/F/PjcYTiVBKNuBaLo1WgmxR1RYvjcYXmSBKNe1aDo1e4ixR0xkvjcYXWaBKPeto66Y+i54/OD+yjgA0XueIkCXhHvjoOzFi5GATM3fCXbHTvmoILZ844Q6Y7rix+j+ej10qPkuuPskkdoht1ddIU4d+zdiBGNR1eT6451BzAM27yLOHfs3IKh9dQKct2x5jCGYdu3jrqDJu4o8fdGAp4M7JzIwJo0d6Do1SHJHXGKKA1NBpdIZJBKkju6UfSW94+mj0HvjkOrMLTuWU+uOzbtxjBs3T7i3PFswbYzqGD/3GvkuuPq/GMXUMHBuQ+JrOfur1+OCtZeJr++vbh8GSpYeW20HTTqjqHtDq0WUtwRLY7PHWbHSTDqeTaKXvlEkvqVAvjcoTeBBKMue6Ho5aklpZ8djLefLZHyhXiz2vRRNZv3ED/uUKqJ1x2MrpOJNutmJR+qZt7wKcSOw9Q5suAfhxFOmk6kWTfyVNA1i/iUnSMibp6dKLDjJDQuJRpQeOr2fULg3vmmCmVMzWzq7h0zCIIGexlGwuN0rEoOfiGEQKibLg8DNQEAVhAzSqB/Sh8AAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (32, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABbCAQAAAC2PzESAAAAAmJLR0QA/4ePzL8AAAdJSURBVBgZ1cELbNSFAcfxX/+9o+09+363UFSIOLXOGXW+4qJkMU7NmI8t0/jasjicGy6b2XzExejmskxDnBNFRaEVoSKI6OSVaQF5FVuLLc/CRFEUaXuP9q7X+y7OGUXau//9//+r9vORY7rk1jgUVYHGjKFxydC4ZGhcMjQuGRqXDI1LhsYlQ+OSoXHJ0LhkaFwyNC65ZFeZJqlBRerR3cpRXP3q10HtVI/iypocWePTd43z/ZdEp7lUG5tiVLiLjUK3SwOJI0NHEnsTu3IPewo+Vmt4pV5Xt74BJuhy/8vu2IlHZsWWc5jRxOjgH8kf9AUjnkMT/qJp+hrVeR/ODzf2PZI8hHmbmDlYGAnu0LVyacydUrLMN/Dr+F6sSPAKZ4f9H7lvVYHGTIn/qaLQQ4l+7NnMJf3eD3SFxkCO55ZAaFa8H2esZXK0ZIOmKKtKg2u+E9qBk+I8MFwQdd+srLkw8Mk9Qwmc9xYNA0VLFZDz3L8oCb1BtoT56YB3n+rkKMPz6Amhg2TX7GHvETXKMTmBZ74VOUT2PZEsCGmGnJH3xsTBfsbCh9QzYUBTZZ/3z5MHymki+w4wlcdoTvoOq172uG+oiBygmxqeJrveZQpz+NT9Q8Gd8sqGEz2Rt/lUNzXMI3t6mMwcPndDrHiRLPP49zUn+b8uaphHduylgcf5wiBTI/k/lzX+f86I8CVdVPMMzttLA09wtG0URHSCLDitKNLL0dqp4FmctYcG5nKsB4YL1yljRnDHgiTHaKeC+ThnD5N4kpEMcXxIVyoz+TeeFkkykrcoZwHO2E0DTYzmNXwfKF8ZcPkPrWc02yinCft200AzqUwPGbfKvNwbzwuTwjbKacKeXUziOVLbgvewJsgkw39gDam1UUYz1u1iEgtJ76xQ7nUy6eIp/aTVRgVLsGY7tSzEjGUEu2ROYcvsJCZspYIlZG47tTyPOcMURzRNJnjyo4cwZysVvEhmOqllEebdGsu/TybMOKcP0zZQylLM66SGxWRiPcH9Si8w7+EkGVhPKUsx521qaCEzSQqjqlc6gfc6yMw6SlhGeh3UsZzMXRbStUqj2juQJFPrKOElUuugjpexYjaF85XGZRf0YkErJSxndO3UsgJrtlK4X6kZd8yKY0krJSxnZFuoYgVWDeAaUq5SKXpuDla9QRkrOdZmqngFO0rDalAqJR1rse51yljF0TZRxavYc0avLlIqgfd3YsfrlLGaL2yiin9h19UhXa8UjGGvX3acpyZdpTX6zCZdrqc1XXYVuuRTCkY83y97LlKzrtJaSRv1QzVruuwLuuRTCkbCXSC7LlazrtSjmqEmXSAn+FyGVykYuYm47LtYd2mmfqfz5YwEyYRScLliEXe+7Nqgv+pB/Umn6gI54UhcF+okjcrljkdUInv+rWu0SOfqJM3QCzpf9vUmtFVvanRFe9qwZy2VtPKZVyhnA/Z9v08/Uiolry7EjjVU0soXVlDOm9g1uU+NSiXvwfuSWLaGStZxtBWU8yZ2DOOOy6uUbv5xGItWU8l6jvUy5WzEuv/gO6I0vl3fjyWrqGELI2uhlI1YtYTSVqVh5EXfJ3MrqWELo2uhlE1Y88tB1++VTmnrIjK1klq2ktpiytiMFcf36Qyl47rjpkEy8hq1tJHeIsrYTKY+Ji8qt9Kq8w7GMO8lqmnDnEWUsYXMPJIsXCwzituXY9YyqtmGec9TSTuZaOzTdJnh/tXVEUxZSjXbyMxCKunArP14++WSKUWeyEHSW0o1b5G556iiA3NujwVmyyzv328fJI0XqaYda5qp4m3S+whvVBUyrS4QCZPKEup5B+ueppJO0rk3HpivTAQX3BljVC9QTxf2PEUlnaTyMf6opigjxb6+bkbWwkS6sO9JKtnO6K6LBmYrU+7bzg0xgibq6MYZc6liOyPbiO8T+ZUxt7+nOclXLKCebpzzBFW8w7GGOCWUe5MsmeaN7ODL5lPPDpz1OFW8w1fNHAi8KKvct0wLxfncs9SzE+c9Th27+LIl+A4qKMty/KtvifI/zzCRnWTHHOrZzed2UxTR2bLF42+/MwbzOI4esucx6tnNp/ZTFpnwE9lW5Tl4Q/I49pFdD1HPHnqZGvbcI0dcnzN87zBZdz+n0xgJzpVDynWm/93fxsmybsqjvrvkqIrgzpmxIbJnM8XRvN/Icf7C1xrDPWTH7IQnnDtDWZHjmuWNNA/jsF4uDfk6dZyy6EzPu98L7cUpw8xNFod9D8utLMsz/pjXf3ckhH2rOKHPu0WNGiN1/sW+yB9iH2LVMC2cHPIeyr1WORpTk71zCwauibxKgszs4/5ETSjQpWvk0teiwritqDMY+dlACx+RToI2/pY8tdfT55+rc+SgHFkx0bii6NLBM0uTZ+Wc4ptqTFFQARVKCqtfIe1Xj3bF26Ib8/LeG1oZfkFrNSxH5ciOE3Wq62T/6clpCe9QQbxAcscnDLoH8g4MdX6yTV3aoJCy4r+mkPLtYKzILQAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (33, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPkAAACKCAMAAABfJxzNAAACi1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGBgYICAgAAAACAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPDw8AAAATExMAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAMDAwAAAAAAAAAAAALCwsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAREREAAAATExMAAAAAAAAAAAACAgIAAAAAAAAAAAAAAAAHBwcAAAAAAAAAAAAAAAAAAAAAAAADAwMODg4AAAAKCgoAAAANDQ0AAAAMDAwAAAACAgILCwsKCgo7OzszMzMBAQEkJCRBQUExMTFeXl5mZmZ2dnYBAQEhISFXV1cZGRkfHx8AAAABAQECAgIPDw8QEBAREREUFBQZGRkfHx8iIiIoKCgrKytERERSUlJTU1NWVlZYWFhZWVlfX19kZGRubm54eHh5eXmDg4OHh4eIiIiKioqRkZGbm5ugoKChoaGnp6epqamtra2xsbG7u7vAwMDMzMzOzs7d3d3i4uLm5ubr6+vu7u7v7+/w8PDz8/P+/v7///8WkrW8AAAAqHRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFhcZGhscHR8gISIjJSYoKSorLS4vMjM1Njk7PD1AQkNERkdISkxNT1BRUlNVVl5gZm93eHmAhoeIiYqRmZyipKqrq66ur7KztLi5urq7vL7AwcPGxsfIycnKzM3P0NLT1dbX2drb29zc3d7f3+Dh4uPj5ebn6Onq6urr6+zs7e3v7+/w8/T29/v8/Pz8/f39/v7K2eTBAAAAAWJLR0TYAA1HrgAAA51JREFUeNrt3PtbS3EcB/DP1koZclmiSBcqlyQy95DZlmVsKLnkMkkSYi4Jc8mYNaJccr8ruYvc7/cQEv059lRbj2xtPW1nO/t83r/tp/O8nufse873/f08B6AxSWWOyl5gV5Iu1DsmNQdJTnKSk5zkJCc5yUlOcpKTnOQkJznJSU5ykpOc5CQnOclJjkn+7I6VfPJ0+ZOXNRZz/53Hy99aNj0mOclZLg8QNmTW5WpTHiCRT1Y1JP9qpSn32iX/Uoz1bn99cSLW//nx/JTuSFe4zsqCESyVv6m1mId2r3CTDIoObJQ/vWElH+xe2wPTNwxEumPhiA9LuUj3agNylwQh3aV6y/QJWPfnsZrZnZA2E12UO+OwdjKJhXJvG1eeMsOZmeayNqpPRk5461eeV/XKeXl+xHU9HEdyVNK6/H298/LdhXKAqHVpApxy8JXrxuGUA4zco+TjlIP/nE2DccqNzzeDzAunHPouzwrFKQeuxCDCKQeIVlsoqlDIwVfxf1GFQw4wStuyqMIih4D5LYoqNHIAUdE/RRUiOYSsUAXhlANPqkvAKQcYmmcuqpDJwU+xIw6nHGCMtrGowieHngtyIpiRhwnN4biD3Ph8M0gYkSdfOtOUcq57yKH/2jQBA/LpL0y/r7mLHHgy3UqccgDhqUe/ccrDDtz95UR56XqNRnPMLC/XmLLFxXIf+f7VTr3bSxcZx592NcuXqUxxrTxGnRqIcYXjK3aPZ+Sp5m7y+G3KroBQbjxhHs3Ue3vylbNNKXO9fIJW3pGxHUvvIea4+r1dkLJ5GMr9uUgr88XYTAQvzB2EsYfjiAulPIzda3jmqiiMfbuX1CDmYjxjicxS9cN4ruYj14s4GM9SY9RpvTCen/MVukSU0yLG3Uk3jHMyXZQFY1FOhSXsU/pjnIcTpOQNRzn9KdLJ/TDOvQanb4y1cWWPlHPEBqmt8XaPlEdkrom2vVn3PLmXtEjCs6OfmXv6hPNy8hDz8sjsjDC7GrkooTMT1wZ5XaWVVLVB7iMvEXOAFWmW/6yotpiPt+yXx6gXhwCwTn7TMumH3XK+Qp8IgFAer0kNBIzyYr2IHeQeoQ2Zed70wZxv7b7bWZLsxoP0kuumbyTdrkAid8IKR3KSk9zt5eWWv69R4fHyP7VWUufpcoamRUhOcpKTnOQkJznJSU5ykpOc5CQnOclJTnKSk5zkJCc5yT1Bfu6rY/KZbfKpW7c7KEtZIv4LggGBcPuv3WkAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (34, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAACnCAQAAAAm/3+QAAAAAmJLR0QA/4ePzL8AABISSURBVBgZ7cELYM6Fwsfx77P7DbvJZiJ3SiKE0BKl5FopQnW6yKXScUm96oQQh4oORTk6dCqEQkWRkktoJUIxI2a2GWbm2Waz5/du1mPP8+zZ1eNo7f/5cIVVpz+z+ZpDpCIySeQHFvEsN2IoIx8e5ztSWMVoulCPSoAX1WjL35jPYaL5B6EYSsWTESSwhh744JyJNszlBJPww1BCHdjHOlpQvHD+QwwdMBTLjQnEcy8l14mjPIOhSCF8xTeE49xEquJMBDuZiglDIQLYThqROOfNGfxxLoSfmITBKT828iZtSKQ9ztzMjxSuGgd5EIMTC1mICehMAs0p6FlmAUG0ZxBvso44emGrCYlcjcHBILbjQ55exNGQfFW4mSd4h2+J4yw/sIMJ3MU1OBrNSgx2GpBILfI9xGH68Riv8SWxpBPPAsbQjdqYgNHsJIiC3NnL7RhsfMZz2JtLNst4nh7UpRIbmYmJfC/zM4EUNJBvMFzUkRg8sfcUUewkiDx+rGcebliZmE4PCvLgKE0w/GElg3H0LkOZxvcEkMePDbyLieJMYxyGC2qRhB+OtnMzJt5hHT7kCeInXqY4kWzDcMHzzMJRJbJpBriziE/xIE8wbSiOF2Z8MOT4ns44aswxDlMb8ORz3scNW03oSr6bsbeTGzHgz1m8cNSPpTxMNOGALxuYja2RvI7VVSRgbzn3YKA93+MonGm8BDzDLwQDlYliIvkm8hJWDdiPvbkMxsCj/Jt8VRnCtxzne7qTazJbCQBC2csYrGYzDKuWRFGJG2mO1UyewcA/eAWrv3GSBXTFk3hqksvEv5lOrggO8iR55tKP1rzBWN5jF+dIYxcTsZrFMAxMZxRWnniSqxonsDLhTZ66xPM1C9nCcczsIpUveZzOtMKErY94EAMzGI6jO9hHdQqaRhZvEkl1cl1DAndR0GY6YGAiY3H0HJvZQyiOZjKDE3TB6i4SqI09N84QjIHhzMTRBzzCq+wiGHubuYXbOEk7rAZxP/YacghDjq58haPdNAfeYCsB5PMmjQCgB0k0pzAjmIshRy0SsOdNGt6AOx+zgnw3kckwcg0gnoY49y3dMFywn6bY8mAAebx4lHyPsoxDPEGuoRyhFgU15SgeGC54kzGUxGyGU5+j3E+usewnDEdzmIjhD02JwY3C+fI6W9nMNtoBLUigDbmmspMgbDXiJCEYLtpODwrnx7O0w4+zRJCrOY3IZWIB6/Eh31LGYbBxN7txp2jNiSGG6tjyYBaNsOrNHnww2FnPCIr2BPMZQjRhOFebOFpicFCX4zSiKHMYBrzALoIpqAo7GYzBiUeI4SoKt5225JrBdBwFsI+ZGArxKjsIpTDD8MK56mwjnukYCjWJX6hL6dzCEcbizyYmYCjUkxxnICZKxp+pxHM3ua7iGE0wFOom9rCe5hTHh0HE8hFhWO3hOgxF8GI0cXxKT3xwrilTSWA5LbAVRwSGYnjRl884xWpe5H5a04IWtKArz/AfDhLNROrjyIwfhhKpQm+msYxtRBFFFGt4m6E0wBlvMjBcBtU5huEy6MoX/MWYuJ6+jOddVrGWlcxhLHcRyv/WP5jAX8jNvMVRfmcZrzCIbnSmB8P4JxtI5TueJoj/lZX05C/BRB/28CujaYAzvnTlA07zL0L4X4gngr+AFmzjB+6kOGG8wTH+xuUWwTHKPQ+mEMcATJRMfbbzCQFcTj1ZSTlXlXg2EIxzwTSnIE/eYQfhXD4TeJlyLYK9fMU+gnFuLNNx7kV+IYTL5Qvuphyrxn6GA1PYhDfObKUjhRnHRjy5PJKoRrkVwI+MJpcby1mECUehJOOFlS+NiMDWcqZyOdTiCOXYAt7GypdtjMWWB1fTjbk8x79Yyc8kkUE0E7AVRCw34Xr3spxyqy+/4Eu+cI6wkGeYxkdsIo5s4tjCYl5jOL35gkk4048oTLjaq4ylnKrMUVph704sLOV5+tOeuqzjLfKFEk1/CjLxI91xtbV0oZyaxDwcPchm4riaPH5sYQL5biCeZhTUl29wLROnCKZcCuUkNXD0Nk/zAjsIIE8ov/E0+W6lNQV5kkQtXKkeBymnRrCQgn7jBmAun+NOnobEcyfFeY+huFJfllBO7aY9jmqTTQfAk/VMw6otoyjOQBbjStMYQ7lUl1hMOOrFVhJpAASzn8GUXCOicaVv6ES5NIR/U9BrPMdjxBAKNCSRTtgay6NY+dEVW15k4IGruJFCFcql+TyOLU86MIoo2gIz2IAXEEkCDci3mL5YdeRb7MUTjqs0Yr+u1iFtVW95UK5soy1WfVnJGfbwJil4Am6sYD65HiOGUKy20QargSzEXgx1cJUBIauUpGxJZ3VKryiccuMY1bEazMNUB7rwNXkC+ZVO5HqD7/AiTwLhWL3AVCJoTghWMdTFRRosnpIui6wylK7v1UfulAMZeONoIuOw8sadXG6s4EOuI5IHWMZ41rCXjfxGBueJ42e6Y3WSEFxCN7c9/60KSFOshsuXP7ls3HD0Az/ii6NKZHGSDXzMLF5mFIk8TyPCcMeWL2m44wK6Iys1QKlyIkvn1Ik/uTR8sefDGeazHDfsVeUMcfTCqgPxVMfRjezCBdRHZ3epsRyd1xnLos0vNmYA89jIUU5xilPEs5n/8CT1+dOIpSb2OrAFT9bzCvb68BktSKIVVhNZjaPBLOCS6QmZpfkaKEfpminf85xhMU9xGzUJIoggIohkCItIYhMP4c2fwEYisTeWqUAw++iPrTmMBO7jKDXI48EQHC3iIS6RRumsctyvKbKVoucVpB6aI980quOMB7ezgmM8jTtX2Gyexd4iupKrCfE0JN9p5pDrZX7EH+d8OUE1LommyByr6WouL3VVvkUKUz9FK9fQdN/pFK4V3xNFQ66oB1mKPR+sbiAQqxqcIJonARPvsww3nOnP51wCeRz4dNK5axWuMdotszpouHKZ9bDqa7OsflLgEYrixtMk0pMrKJRT+FK8ASylEYl0AnzYwkSciaIHZVWZQY0SAy2DtFHZynNaLTRBiWqtAUpVvvPyysSPojXjCAO4gj6nL0UZyvtsZwHDgEgSaAiEcoCBOLqTXzBRel70YRUnWfjupoxM2Tmm2qqmqXJUJY1qFKc+h+nDFdOVHyjKKJ6gGYdpTK4hjCfXtRznVmx5sodulI473VlIEqt4iEBQhMyyE6drNFQF+ZwjkOI1IYG2XCEmdtGdotXhOFvwxVYv4ggj34uspDTaM5NYNjGcCC7Sm0rXRefUVpNU0BH5p1Ay3YnGjyvkNg7gS1Ee57/M4RPcsNWTcKwiiSeckqnHOPayn3E0woGqKlUXPav7ZVFB07OrLKak/ss/uWLe4y2K8gGP4ck6JuFcHeLpSvGqMZwo4pnCdRRCE2SWLJJWq47MKihTNc7SkZKqyglqc4X4s4eBFMZEArWBqhygBwWF8SuDKVolBrGJZObSHjeKIF+dkDIs59RAK+TMq1mBX1Mak5nBFVOfo/TGOU9mkKce1+OoPicZT+Hc6cR8TvIlD1OZEtAwZUandM7sJGdWZPsdJ4LSCCMJf66YZsQziNLqRRLLOUB9nGnJ6xxjK8MJo8TkqcMx/d2y+mVZ5Ghmlt9pWlBan9GHK6ge+3iXSpRUFeZylFuAezjGLdhqz0xi2cRwIig1tfe+nV8CNzdOXSGz8qTqE11/pspP1KT0hvIeV1Rl5vE7D2CiOB48RizzCCFPFxKJYh0r+IC5bCOO12lB2b3HU8C9wTu9MmuntDpZ64xXZsiP9MZEWVxLNFdcJFv4kUfwpTBXMYpoPuMmbIXRgs705EEGcRtuXAp3kriaPJVpRmeux5+y88BMAH8Ct/EpKXzGSDoQjhu5KtGYexnPFk7yNk25nG5gL661h2v5kwiiPzNYyyHOI8RZ9rGcsbTDg8vtcRbiWt8SiYF/MgbXWkMXDHxIf1xrHZ0xsIpuuNYObsTAGrrgWieoioFl3Isr1SARQ445DMGVerIaQ44RvIkrzWWEwtSOCq8L33KpImhHZ9oQgjtx1Nf7OioTFZw/Z6hEWXm7DQnc75/eJLltSuNk73P++9mtGkrXWXWkwltPT8qmpV9C5JmvlaU8ZjVVcPqnR3VOFn1BhfcwqykD927+5qUW2fhSjZWuc7ogTVdRwflzgoaUVuuAtG2ylaVm+kgXmTWSCm8Miykdj8q/fyx7k3W37MTJRAXnywFupxTcH49MlZ2NitAx2UlRJBVeR34nhBIL2r1atg4qQuvkwKJPMTCZTfhQMn6emZnKd1R1NFtOpCmYCs+NpXyODyXR9JoUXRQlf02QU2d1JwY8+YivCKJ4LRsk6w8fqqp6qbXOqIA0rZYJQw43XiWaVhSnfrVU5UhUfzXQDkmj1UapsnXeogPyx3BRD2J5izCKYvJJPaDJCtbTSlcuiwapszKU71y6rsFgpzLTOMk8OuKOMyZaee310z3ap3zZ6qteylIes+XgAAxOhPICuznBMkbTm5bUpS4t6cUoFhPPQd4JN5tlL1N3a6CyJaVZ1q3FUIS6PMIMVhFFDDFEsYqZPEYj0KPp6RlylKZIDVOGdicuccdQenpNqXIqRS01MmtrNQylJTe9r7Mq1LFz3tE8h6G01E7ZKoxFZvUnghiexFBamqZU5clWik4oWRlK0Hb9Vy+qG7nqEks/DKWld5WsPVqpyXpEkaoldxw1IZ5uGC6DmzjOrTihMAyXpCMnaIcDvaxs7dAD8sJQZj1IohkXyU3zZVYus8xaoOsxlFF/4mnIBfLQcqUp33mZtV+D5IuhDIZwmFogD61QugpKU7LGyQ1Dqf0f+9vX1DpLupywZCtD38gXcKcmdahDHapgKAn/1+ubT2TKCYs+zur+OgOYww7MxBJDDDGkEMsqnuMGDIVTkGXvk9ltlCpHFn2lTjJZWMtjNMaLfNW4k6lEs5un8MVQkMIUo8xs9VNnZcjWV2qqFlqgT1XlMCacMdGB5cTxMCYMtlRfx3VeOTLVTb2UpTzx6q0mWqM816XQlcLdwGbWE4HBSk2VrGz9IU23aqCyJa1SmF5RlqymWgJmUxQTY4jnVgy5FKLTsshGsm7QQs1WuLbI1lqFRlGcOzhOFwwgTx2VA7NeVX3FyN5WhfxK8VqTQCsMoHuUKjtzVEexcvSFQr6nJLoRSxgG0E5ZdNF6VVOMCpqU7TeLknmFVRhAtylVf0hSmNbKmbopdKBkPNlBXwygjcqWsiXdp5fkzJcKiMWNkmrPIbwwqInSpXjLBjVQhgpKVvVUulIaX3M/BtByZf89qZ7lIxV0Vq1TfWdROn34GgOotuJCBridn5R5Xvb2qt7ZwIW4UTpeJFMVwwUf8lLAz3VS5ytJuTK0Rn3MAcmeAymLpQzAkMOH0wQB3aus8Tjnlemb4Z0Rst1jJAGUzXBmYchxFxvIF0AAl+ZWvsOQYxLjcKXaHMKQ40vuwpUqcwZDjhjq4Eo+pGPIkY4vrlSJVAx4cB7XqscBDPiQgWt15BsMOdLxxZVGMgNDjlhq4kpLGIghx1fchet4c5qrdJ8aU+FN4wUuTQjdeYYRPEAturJJATqr5VR4d7CRsmsbuM0/vevpYea/p/dJCTZ7nGW6xihD6QqigvMlmasoC68q74anvm/JlNVvClTDVHOmJLNGUOHNYzSl511lW4+0VNm6T1OUoXRdcJAKrwW/40MpVVrWw5wtW2tVU2m6KFWtqfA+YSSlc0cNc7pspaqOPpONbC2mwmtEEnUohcDdK2TLonv0uBykKZAK7+9sxouSqh9oPi9bL6itMuTgrIZS4ZlYwnxK6uH7UmVjsq7VcTnxGwZ82cJs3CgBj4kvZ+sP2RqpRoqTU8kYclRmI0upRLHcxo9XnuPqpkglyymz2mO4wJd32EtrivPUo2mSRYtUQy/qvJzJytBgDDZ6c4R51KUoLWulfK6b1U675Fya0hZjcFCJ8RxnOT3wwpm6vOSW1UjLZJFz2Uo4LV8MTlTiUdaRzFqm8SR96EMfBjCZlcTzOzPcJg5Nt6gwKZYlzTAUwZdIhvMOS1jCEj5gHH24GhSu7efOqxBmvf8UhtJTHSUqW4U4Y9n+DobSUxMly6JCnMtM/1ImDKWnKUqXU1kZltM6pAAMZSFPrdEZSRalKEmnlKk0RWu1ZupZ9VIohrKSj1Zqs+ZptO5TS4VShP8Hl9nNvcVhrA8AAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (35, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAArCAYAAADhXXHAAAAABmJLR0QA/wD/AP+gvaeTAAADe0lEQVRYhc3ZWWhcVRzH8U/GTGuruBBxAbWJYFItGosiimIX0Wqr1AUERWlxqeBSArXg2ieF6IMofVJREER8ENGK4lK01SgqCIoLWrWidakbRa1bXB/+E00ykzv3zrmT8Qv3Ze45//ube875b7fL/5vdsQBLML/DWuqYIcQN4138hh/wF57soK4J7INn8Qt2YBR/j7t24pKOqWvACvxkosix62cc1DlpjTlPY8GfdFJUFjeLPTom9A+sh+4Eo7PRj15Ua9fv2IYP8F0LNk/BZbgNqzFL7NcnWhHbhwuwVLiSj2vCRmv3K5iDAXyGp/AQXsth+0zch7Mxgi9wC3bFi0VEHolH8DXuEO5lVsb4Co7CdXgfr+OMjPHL8Q1OmPT7miJC98Jd4u1djJl5J46jSzj1F7ARcyfdPwvbccwU8w/O85D5+BC3yn6LeenCSrG859d+Owdf4ugUw6fXjCxNMTIF/XgPD+MriWF0oViWY5NlTc2VwnPcmWLkEHyufqOXyQrxMhaLs7C8FSPdwsVcWp6uOlYKPzx2yAbFHi4cStfgsdJk1XOF8L0Dk36/Bo8WMbS38KFzytFVx1XijfY3uFcV6eCCvMZuEP60HazGpzg0Y8yFIto1pQtbMS9dVx1D+EjzFesWe7fpyh4nwmHZXC+CSq4IJML42maD1om0rExuFG6pyCk/VVQLmWzAshZFNWIdtuDAgvP2ECVNJltEMCiDYbyD/Vucvw0HZA34XuSMqQzjLeyXYONVkVo2pFsI/TXhAURmfxpOFv66VXaKXkFDKvhTWnmzViTWS6QJJfoGo1kDtqMn4QFzpS39eN5WH44nMILjS3pYCruIbTBjqgEV8W8Gp0tRBgMiLE+5DSrYjEXTpSiDxdjUbFAPvlVOnZXCc3IGpw24qL1aMukTB72aZ/BCEXkqbRSUxd24qciEjbi8PVoyGRR1355FJs0TTj1vSlcGVVH3tdR7vRYvyfB1JXM7HhcFQGEqovnwQKsGCrBKNDtSoqeZon//oNZ6W3kYEsl5KVuuintFytZbhsEau+F+vKK8fOJfVome15CcPjCDZaImW699K6ZPND+24mrsW2DubPGd4GW8gZNShBQ5REeIrsq54mA8gzfVd757cbhIxE8U8f4ePC2+EUyL2DGqonxfhMNq4npEirfDf98URvA8fkwROJ5/AOqhsnLG2td5AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (36, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAA2CAYAAABumXGkAAAABmJLR0QA/wD/AP+gvaeTAAAE9ElEQVRo3tXaa2wUVRTA8f+9d2ZbatG0VCHSlviqVIwgoFAfkYCChrcSLD4IVd4QRAFLCkpFCM8QXoqAUNIoVIWyMWgwGIwGE1ALiagBhSgIJoLAClZoZ2eOH7oboEJb2m27c5Pz/fxy577OGYjduBkYASzDWDsJJBzFsk9hrHMY6yza/I1l/wxsBKYC9wKKOBitgalY9g+AoI1HelYFOf2FgROE3OnC8ELhudeEJycLPXKFOzo7JF7nAIKxTgIrgS7NkXwmsA6lHIztkjPAY8o64f0jQjBUe2z5S5izTRgwXri+VRT0DdCzKZJPAN5E6UqSUxzy5grv/Va3xGsCzSgRbusUwZjPgHaNBeiEZR9EG4+hrwolxxuWfPXYekbILxZSWjtoUw6MjDVgGFqfJ6O9w9KvY5t89dh4VOg5zAMEWAMEYgGYDHg8MNCl5I/GBVwaY5cI2rgYswNIbAhgLODRf1zVdDcVIBqztghWwMVY2+s7I4NQyqPv6OYBXAaxXbQuvtZzpTPanKd7P4+tp5sPEI3JqyWyRgrqCkjC2IfJzA436RqoLQa/JCjlAjm1E7RegRVwWbE7fgDBkLDlpHBrRxc78CuQVPNZoJRH3pz4AkRj5R7BWC5QeDWAwlh7SG/vUHoqPhHBkPDUy4LWF652qvcAhIJN8QsIhqruZ0ktHWDp/wnGfEpGthPXgGgMnSZofR5oVe1WqjzGLBZfINb9VHXth0mXIvKxbJdNx/yBCIaELo95WPZ3FwmWvZeuvT3fAIIhYeJKATwgAyAVlMeE5eIrRPEhASVAHsAAQFi111+IYEhIv9MBNgDMITnF8R0gGBL65Akm8AvAh2TnhH2JeHG+oLQDVmA/jz4vvkTM/CByuzX2SYZO8ydiyVcRhDblDC/0J2LV3ghCKZdRC/yJKDoQRegK8ub6E7F2f3RNWCGeKfAnYvnuCMIK/M7Aif5EzNsenQnzBd37eb5EXCwgsJr0rEpfInKnC8Y6AzARbby4qmzUNbr29jDWlwD3AELhVn8BSk8JCUlhYBaAQZuzDHnFX4hFO6ProVf0WVREWoa/1sXgSYKxTgNWFNEPkEYv28eyl3FTZiWw/tI3dgBjTtBnhD+22tc3Rz+lR6oXbWZgJ4QpPhz/iI49wmhr35WKZ2loU07/cfENmPtJdBaevlopswBtXN76Nk7XwmnhlrsdtFVWU6+iBcY6RocHw3HRl7jSc7SqTPNwbcX9XoDHqIXxBXi7TLATwsCKujZalmHZLgs/jw9AyXEhM9vB2Idq601cvuUqs4uWqZWs3d/814v7nwijzT/AXdfaeLwRYx8hra3Dmu+brzv00GAPpcJA3/q2gNth7KOktHGa/DQvOS50fdxF6TAwpOE/o2j9I4FEh/zipgG8s09Iz6pE6/JImTUmIxmlSgGhR67X4J9SaroTjVksBBLDaHMk8kyI6VDASLQ5R8tUh1ELhM0nYgeY/bFwe+dw5BxYA9zQmL8LtUXrDSjlktrG4dmZQtHB+iX+0Z/ClHeF7G4uIFh2WaR32GQjG62L0LoCbTyy7guTO10oLBXWH7hy0puOCQt2CKMXCd36eiQmO5HkdwGDmvN3uhRgPEptQ+t/I5ezqu/6+lYVpLW9QEqbClokV0aaIgLKQ+syYHZ99v7GHjbQIbIlTgPeAOYD84B84AWgW6y/9/8ArurQVh9FLAoAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (37, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABmJLR0QA/wD/AP+gvaeTAAADUklEQVRYhcXYXYycUxgH8N/Mblu7o2nLWuuju3ohUlRs4oKi0hLVopVmJVJSIa7EBUHVheBiQ4QUd0gQ3CmiSZM2tGmbhlaDcCVVH2V9x6oQIurj4nmnO6bnzOys7uw/eS/m/T/Pc/6Tc87z8Za0jj4sxWLMx2mYVjx/4kt8jF3YjI8msEZTlLECW/AdnsdqnIXpdXbzcBXWYz/ex63oOlpiFuID7MSV6GzR/zy8hK9xI0oTFTIDj+FTXD3RIDVYYGwb+1p1noO38ApmoVL8viVjP4zXMtwleA9nii29HyM4J2VcTrybja3YgyH8jI5C2MzMoscWfqntmFFwXfgbD+IuvIFzM/H+47wLjzczPAoYwlfilmbxBDb4HwevRdyB3SJlHIGL8In8tkwWXsW6+pclvItr2iwG5uJbdTfvWuyoM1yHJZkgl2JthuvDw8VC4+WH8WSt0XaRiauo4Cc8mwn6HEbRneCWi9t0XcY3xffix2JdA6Ic1B+sk8WtS6ELJ2U4onw0QorfiNUdYrv+EIerFr/gr0zAQ/i1wYIHmwhK8cfgsrK4XduaBGgHtuFieAeDU6vlMA7CDyK1zyqeHE5tEqwRP1PUx0a+JdFV+F3UtN14O+Nwumi+7s3wd4tzNT/D7xQFNoUBcYYfwPbOQtk/eEFcxxRG8AzezPBb8bToFlN4URzaFL4pYm/BIiLfVDLG7cbesvj3/VOtpMBAGfvk976d6CEar1NEo7R5SuWwDLPL4kAunWIxcIXQAj7EBTVkZ0HemXFeK25cR4IbFKPPwoxviu8W+bC32lM/hdtrDMoiWTbroVOCqj10rjCn+JtF6fi++qJL9LcLMkEmExUckGj414gGPzWJTCYeEYnxCJSwCfe1UcwSfIbjcgY9YlIdaoOYM0RSzh3+wzhbdJC1DX9JFL/zMz4rcFuG68dDOKFOzAFc30xMFYP4Qny1IBrz3/Boxv71YoHUPLdGFO3Li9+LRBG+YbxiqphrbL7vFxl9esa2ghMbxJonUsUwPseFrYqpYhruEVu4vhDVKipiQh0RLUrPRMXUold8mhkV08FNomnLpYg+rBLXeRQvi7PZFK3O8N1YKWarxeK67hcz1SEcLz4elI19C9ogJtNx4V/KcJmDxXBZUwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (38, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAABmJLR0QA/wD/AP+gvaeTAAAF+0lEQVRYhaXYTWxdVxEH8N97jmM7iZ3EdhOnberaISQ0DbSlICi0oYCggJBYQBcIiSI+hYSEkPjYFAlYsGDDggUCIbULBAjxVVhUSDTiS6hSJQQNSlpBISUFJ07S2HHt2PliMXN6j29ek1qM9HTvu2/Omf/M/GfO3NexdunDa3EP9mISA7iAFRzFU/gt/oxLa9m8swbd/fgE7scsHscT+GeCHMPz2IlX4wC24If4Dg6vBdjVZDd+hf/iW3gTtvXQ24k7MSKiNo3X46u59ie4+f8B0sFnc7Mv4i0iTbuvsuYVeA/2tEAP4HOYwaeuZbSXDOJhTODDggcj+fx0fs601gyk/s68/x3Ot3Qm8WPBsY8Kzq2Sbg8wG/FrLAlvLwuOHM+NYBSbWw7sSL2n8XfcinWtvY/jg9iKR3PdKmlHqA+P4Cw+IsLeze8nU2cE43l/Kr3cXunN5m83C1I/iYtpvOi9gG+KSL4/nX4RQC1fEWH/Bm5KAzUYWE4DG9LT60RqajBESodEChd6gH4EH097f2xHCu7Cv3A9duHduKOXYsqEIPkBUVEvJbfkXrs0ka33OIbbyoO+6vpLPIgTIoRHsUmEuk3gEp3LoiGeE1Fb7qE3kNdhHGn9viAq72v4Hg2pPyD48ER+n09gh9LwZMvIRN4fEwSW3g+39Lbn/SE8J4jelp9jvSigFyP0EL6NZzEnypoo91OCoOtFNAqYufxtWURqSFToBVFd2yu906KLjwhKnMjfNuZ+J0V/eqgrcrwNz2CxAlPkvKiUGzW5PpNgVN/Lups0nKqdI6K5jH0JpoD+hWiqk334mMjl71N5yZUH4lB6fWOCPupKOSfSdEPqnxZ9py2nU+dVmgZ7SpB+tIt7NWdVf6KuG9qmfHZecGxAlHJbNom0zgkO9mcUeunNi9Ru00TwMdzbSS9uFXmcSO9WBPuHRJ8hOPC8qLr96cCxykjROyMa7pb8flw0QoL09X6l8R4WPP1NJzcoizsVqH6RuosVmCJDCeq5jEhtpLSI0Raobg/niJmKOHLOdluGLmdk1iWw8TRY6xA8O4RXakq5BsPqA3hakL08r/c7koHYjRe6rmxmwyIyy4LAg3ofwuXA3SG4026exfglEa1xQfxeeodFS7jQtbqZlYPzkgjhrGas6PbQWxKT41ZNf9LSK+fXmXRu6CX0TmLjOpHn4Vw4lgqnRKr60tBgXmcEgWu9+fzsz2czed1c6f1DcHKk2mepAjOWNjp9eEB0zgVRigUMwanF9GpQkLLMMAUMUZVzgqArgoNt5xbTwcF0alm0haJ3Hd7Qh9cl+nOiW7c7dQG1XZTpelHu8y29AupO0SCXRBpqvRrUROpdTNDvxEoXB8Xx8ZSohCumuPTofH6W9OYBkfYZzTDfBi1BdgTvxkVm5vE2HOyIHD6Tm2zNSDypqb4t+VxGYKOI6KKGL1Kn6K3kfkesHu7q/UZTbz6vf5Fn2TJuFyR8TOR/SoRxuDIym4CWRKgHRQUutMDMalK1T3TpQuDauWcTyCA+KZrsT8tMfRt+JlK3JOafKfxHpGk2DRfpF/1nXd6Xt4sTLb2tovr+JlpJ6dz1ftNihD2Ap8s8NCNe6vYJTnVFfm8Q/ajNhUsJ/HpRHf1iAlho6Z0TPeiu3HO5h3MPirffh1k95D+O7+Kvgh9nc+FYbnLZatksUjaUeiuaQ7SWoQSzR8zsNafeii+LiXWxx1rvEyX9Rs3oMCVSWoMfE6GeFuQsr87tV+zRXD8lRpa7NWmbFLx5Ry8gtXxeVMeO6tkUXqPp5gVMAT3QA9RYBWZDPhvHm8WhfAifvhaYIl8Q4+be6tm08HBX3m9orRkQpT6dBttgitwj+PaZlwumyP2iyh4QjWxcVMJ9ek+CRAnfnkbvsLqBdjTl/d61gimyR5TkH8Qr75SYf3q9zkjQe0VabtG8GB7IfQ66+kvly/rDqosP4UtihPiBqMSTor/UYIZFNc6JP63ejneJtvB1/MiV1bpmQLXu3eLfi/tEL/q34NpiGi0de1eueRTfx5+uBaTI/wC0rYTPw6jzlwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (39, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAACs0lEQVRogdXZTYhOURgH8N/M+FjQjMl3ptgoUkgJ2SFRLGywYSV2vsrGQsmKyVqhhEQUG8nKpCwojO9CIiv5KDaYMsbiUOPtnvvej8x5/evU7Tz3/t/zv895nuc+523DHdz0f2IBHEm9ihrY3p56BXUxqsA90/G4AvcPfBk2nuPe7/GoAl8migjowMSK/FOHXa8adv0SJ3EKHypyg1RbaDYO4wW21CFKHQMTcAan0VaFILWAP9iKo1UerCPgqfDWYmM0Jgu5ehuu4mcO3x6sq7KQZnWgB0MZ40mF35qH/gjfEB4qt5VGvA48xXLcj9jnY20ZwhQx8BUbhTqRhdVlyFIF8StcjNhWliFKmYWuR+bnKhEHKQX0R+Y7hPpQCCkFfMqxTSpK0iqFrBEdRW9MKSDvA/FLUZKUAhZG5r/hfVGSlALWROYfYbAoSSoBs4RiloVrZYhSCBiL88LHXiMGcbYM2UgLmIkbWBqxH8frMoRFWso6aMM0LMEGbBI8kIUX2F/2B+oImIOPOfYOdCrm5ddCL/C57CLqCKjT7A/HZeyQ/zKi+NdbKIbvwsKP4VYdolRpdIzw8t7UJUoloF2oAw+EDq0WUVXkNfWj0I1Fwv7ui3BMFPqCxVUX8a88MChklH4ht6/4Pd5l3DseV/x9ilcYI7mF+rBMtogZOFGFdKRj4I1Q0LIa+vXYXJYwRRDfRm/E1otxZchSZaGDslNoD3aWIUolYAAHIrZ96CpKlLKhOSek4kZ0C+ekhZBSwE8cith2K3i0kvpU4pJsL3QJIpoitYDaXkgtgHwvNI2FVhCQ54VdmnihFQQQvPAsY74Le/MebBUBeV7YKaTWTLSKAML/BTEvRGOhlQQ0i4VML7SSAOJe6BSJhTZcwNsc0jGyO6av4n9S1EGPcADWiAHcbZib8gscgnaa6T6wwwAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (40, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAKCAYAAAAZ1GZPAAAABmJLR0QA/wD/AP+gvaeTAAAAw0lEQVRIidXUMUoDQRjF8d+a1UbZGwRSxz6kT2djJ94gxCJ4k5TewVS5goVVDpDaVggEYlBMsha7whLEJrNZ5g8Dw/D4vveY+YZ4uMcj0qaNhGCEHd4w+EtwdlI7x5HgC23M8IpuVRBbmKTcX6KHOZ6Q/Qqea2r+jXXAetfoo3Vw/oENHlJMAzasco6rgPUyxW0chtljhWXAXrUzxifycm3wjjvl84txZraKUBN0FGOSE9efneACLxhi0ayd47jFzX+CHzs9HZIQeRR5AAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (41, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABCCAYAAADE+oEAAAAABmJLR0QA/wD/AP+gvaeTAAAGWklEQVR4nO3caaxdVRnG8d85t6O3toXblhZLRZSKASnSOjSINRhbRFHQoiIGYxwgxCnhg5ggUUFFE9CiVGscGzW0OAQHEOOAylDEEjWOhaq0CAgCVeOQNIofnnPa29tzzzzc3dt/0rRn773Wec/bNbz7Xc9aFJMSTse12IlHKn/fggsxf5xyK/Ax/AL342H8Hp/Hi3tq8QTkaNxa+XMOnoRDcCROxSb8Fa8ZVWZe5fq9uBTPwqLK9WNxAX5WqfNpffgNXWcZ1smP+Dsek1ayFReLk0azHA/gjdIqx2MFfoNLsBR/wuWYWadMCa+t1P/S1n7G4BjBRuleH8AzMVS5twCrsF5a1gfxOBwm3fdFTX7HPGzHo3h1C7adKM48qYUyA+F4aSHvx3CDZxfhi9JCv4XLWvieknTV9a2b6FT5T2hk38B4irSqM1ssdzl2Y1YLZV4iQ0a5xe+qslGGl74wB6/HDdiGf8o4t0t+xCdxcuXZ6biz8nyrXIgNLZa5WpzZLsfJ5DSlgzoaMixd82/4Bs6W2a7aYkbEge+SUOMOfAFfb/P7voLnt29u22zFyl5VfjLuwZewuMkyp8lsvMkEHndqcB1+LlFAV3m5zGir2yg7C9fgNon7isA7ZcLaLmPmvG5UepqMGcs6qKOMj+D8bhjUB9biMxJ/XoG7cUwnFS6WmG/Cx1ZdpiyTZJXzJOpY2G6FN+CiDo06ULgM31f/zaomz8YfMLXbFhWUIZmAXtVqwevwpq6bU2zWSEzcNHMkuJ7RE3OKS0kmnj0Tb6PXp9X4Mf7TQ6OKyGP4Jl5YvdDIkavww15aVGDukLQeGjtysUw0B9mfP0t2Co0duQAP9tSc4vJvoxLFjRw5RxITB9mf+Xio+qGeI2dW7p+lWImGfvFE3Ff9UMuRyyXd9ah0bZJnPMi+nCIRDfZ35EWSX/yeOHEdpvXNtOIwLEnjrbVuXixT+mGjrq3Eu3tvV+F4D36JT429sVpybiN9NqiIHI6/yHr4vUal1YbEiasGY1ehmCXd+R2Vz+/DldWbr8CPBmBUEfmoLOhVOUpCoCGyKHXeAIwqInPtFTJU+R2WlfEc/KTvJhWTXfjvmGu3YGVZBs+dfTfpwGEbjixLbu1/AzamyDyCQ8vYgSMGbEyR2Y2pZcn0HjtgY4rMfDxUFjnIOQM2ZlBMxzM6rGOhBOiGRYd4dIcVFpEjZGj7hPoi1HrciudVP1xQuTA2RpoMzBYN5hatS1JmS752j4ighOvlJbxdPWGRKYmUZovWcq/n46tjLw6LM7ebnN28LE75eJPPl/BbPLfWzY2SrLwPN4m+8c0mj+ZnRDROJzbx7BuM80Z4gmi7Z0ifXyuZjQ04txtWFoS3yv6deiwSeWPNsPFz9qaHJjMz5W1lvNzsbPzUOKKyknTnJT0xrXhsxutqXB/BzWrslKjO0ItEhrGjZ6YVi5tFhTeak0Q4dSfeMl7BE7SorjrAWYMbK/8+XsbM+3HGeAWqWx92O6h/HM1umbl3SE9dJ139X+MVqDryAclLlioFJztD+Ie0zLuaKVAdIx8Wjc8JvbGrcMzD7Zp0Ivu+Dl5v3625k5mnSkzdFkskC7Sg0YOTgNvwgk4quFR2MEzGxEWVJaJ7mt7owXoMiSM3m7y68fWyG7djpsnr4ja8TDHDorkiR2yVp8uk25WtclVOwQ9k3LxJWumV9QpMIM6UbS2t8HhZ7O/ZhPsEGXjPklZahNNILpFt0M0yV1Ji63pjzv6skbDg0H59YZtsEWc2w0r8Ch/Wxra4TrgC3zFx13dmiLRkJ74sG+bHngIwVXrWtSLNO7uP9u1hihzUscnEnIheKQmHYVlTuV0WqLbK8RB3i5R7i+RfWzkno+tMk/WNG41/6tMgKMuGy9PHXD9EtPHL5a1ldp/tqktZ5NL3iMCglSB+RAb27+ruEHGuqMMKyQox/td4u2SRajFFzsPYIEmSqySs6pZGfakoHjpVTgyUksSdn5WU3B+l22/G10QRvEtmx/fKOWbs3avSTvA8moWyNHrAbYc+RkKlM2S8Wm78Qb163lm7quGjJJDu22FHE5mlcijcNUZtlGxAWdaWH8TbemRXIZmJD8n4ebW01FoT2JMlbLlLxAzH9cvAevQ1km+Sw6WlrZVjD7fL+/6wpLiG8G18WmLBCcH/AWgDJibw/+pdAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (42, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAALCAYAAAAjg+5nAAAABmJLR0QA/wD/AP+gvaeTAAAA00lEQVRIid3VvUoDQRSG4Sd/rm0glemttEux6AWktkkTrAUvQrBPaWOvfbrcQMBSCCh6AxYWIZBCi/xYzIqptnJ32LzdYc7A+8GZOVSfLl4wwVlkl1I4xgJbfOEeR1GNSuAEj1gJwT9xi4OYUmVwgWch9BYzDHcbarjODveFQwyQZvUGU1zhrYY52nHcSmWBUROvaEWW+W8SnKKe1WuM8RDNqCAauMGH8Ew3wrpK8y5VlT6e/H1Y77iMalQQibB7v4WgS9yhE1OqSM6F0f0d315e8w9fhSj1evT/NAAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (43, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAACTklEQVRoge3auWsUUQDH8U9iRFGJV+cRUPGIFhYRRCSFhU1IJ2IjNjZ2NjaCdnaihYKIiGIniP+AQrSxETxAQZKIIAHvNPEgnrEYZ3mEZDf7dnbeIPnCD+btws73B2923r5Z5klLR0GfsxR70Y9t2PrvtZwpjGEYTzCE0YLOHU0nBnELkzLJZjKC01hbtngHDuJZhPRMmcQlrClDfjvuFyQ+PRM4gQXtkj8ubqo0m4fYUKR4B86VIB5mDDuKkr9WsnyecfS1WuB8Ivk877E5Vv5YYvk8o+huVr4XXysgn+d6M/IdeFAB6ekZmGuBQxWQnSnPZXf/unTiRQVkZ8vhRgUGKyBZL48aFbhdAclG2RkKh3NqiSYulIQcCAdhgX4sLtcliv3hICywp2SRWPqwKB+EBXrLd4lioWB5ERbYVL5LNBvzg7DAygQisazOD8ICyxKIxFJzDQv8SCASS801LPAlgUgsn/ODsMBYApFYaq5hgeEEIrHUXMMCTxOIxPAGH/JBWOBe+S5RDIWDsMArvCzXJYo79d48Jf1yuV4mZKvmWemRfcemFp0tV+rJ51yugOhM+Y71cynQI7uppRaenotzkc85WQHhMO+wopkCnbhbAfEp/MK+ZuRz1uFtBQqciZHP2S7bJU4lf6EV+Zzd+JRA/ga6iihA9nt5pCTxP7JpU9QT1BrduNlm+Y+y3cG2MiBbzhYp/lP2pHJVu+VzunBEtmPcivg3XJV4R2QXzuIxfmssPS7bgz2K5a2evOgLpRtb1P+rwWvZhTrPf8FfD5l+V+osDOIAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (44, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABJCAMAAACkceCXAAABp1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgIAAAAFBQUJCQkKCgoLCwsNDQ0REREaGhodHR0iIiIoKCg5OTlOTk5TU1NVVVV3d3d7e3t/f3+IiIilpaWqqqqrq6u7u7vPz8/U1NTc3Nzh4eHs7Ozu7u7////DaMdAAAAAb3RSTlMAAgQFBgcKCwwPEhUWFxgaHyIlJykuLzM0NTY3ODw+QUNERUhJSktOUVJTVldYW11gY2RlZmhpamtsb3Bxc3R2eHx9foGChIWGiImKjY6PkJOUlZiZm5ydnp+io6Slp6iqq6ytrq+ztLW2u73Izv6Mc+l5AAAAAWJLR0SMbAvSQwAAAhVJREFUWMPNmOtXDWEUxh/UKUrOiZROB4kS6iDdSKHLqTipkGucY5cdlVsd90shJH+09/StmVlrdsvzoefDfJg181vz/mZmr71fPJMTuCVd6JNrOCMPUSsSLRc5hIycxnW5gm65gVMyXRAXqSiZkgbclU4MyDBa5QGOiezZJ5LYNiXNGJc5UJPFeSbuogNSM8GEdbPd1TFxV43udu02P58lA49NlyVRzMRlUcHFeRZbVBmY27PB5wtC3B14salEN959GDUe3PO/Qfn6KejsHy8ui0g47kcut/Aql1u24KbDcd/errh8WArHxXzugnDv88ePBlwpmpk43z/xv7hRpruDFnfuzeZjeLP5emz57oLjw01a3NlxWfQycecs7uy4fD0m4tJsdy1MXIrtjoprZ7tLMHETW9pdo6vHVHdkHHWxxVxc3NVj6mLJn3GGiavhuou4eryV3aW5Pxm5BPRyCxTZXXs47ueX9axYirulXVz87PJmyeJujNnfpdjtYiMTN8JttWEaBF6+c3ltwLV4J8Yg3Or39fyyuIt7cWv2/PY3s9QRz1eiCmObyvaNdyeM47F5JyDCxVF3ecq4uBiOchdL3jSibmkdYT/fBSYsw3aXYuKSbHcjTNiwGxo1jS59hOOqZftVEztmNIk7ehn9ehNn9QlqVfdGVesh2oFRHUKP3sdJndlZpVodeapNuKeXMKjjaJv/BxWywWDbnQzgAAAAAElFTkSuQmCC'); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (45, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAbCAMAAADWDFZiAAABPlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEBAXFxcAAAAAAAAAAAAAAAAgICAZGRkTExMGBgYAAABhYWF5eXlISEgAAAACAgIPDw8QEBAREREVFRUWFhYYGBgZGRkcHBweHh4iIiImJiYsLCwyMjIzMzM1NTU4ODg5OTk7OztDQ0NGRkZISEhLS0tPT09QUFBTU1NUVFRVVVVjY2NmZmZvb295eXl7e3t/f3+GhoaNjY2SkpKTk5OUlJSXl5eZmZmbm5udnZ2lpaWnp6eqqqqtra2xsbGysrKzs7O1tbXAwMDDw8PGxsbHx8fMzMzX19fc3Nzf39/g4ODj4+Pk5OTm5ubp6enq6urr6+vv7+/39/f4+Pj5+fn6+vr8/Pz9/f3+/v7///8W/NWwAAAAHnRSTlMAFBoqLDNASVZYb3qHjpCVo6jM1eLk8fT3/P39/f5rwPUbAAAAAWJLR0RpvGvEtAAAAPNJREFUOMtj4GEAA245XIAFLM/GySAHVSmTiR2IQVRy8Q1dlekhTvae0USo9NMytHO0UbeKIaTSVTMERCXZa0TgVxmkBrPXTTsVr0p9L7gDjTzwqYxUSYerDDDCp9LXHBE8iQpoKqWEwEBUVRcIDKwRKjPkdUBCksJgeRFeBmZWMOCXDgMCN1OEynglkEiYOAdEASMDA7LtcUopcJXeZsi2IwDU7+bOMIVpOv54VYYrh0JdaWuSiVdlZoCKSzKQirLUSyCgMjPcRMHYQlfRISmTkMrMzNhAn+Bk9LSEVSXW9DloVMq6YwcS6CrZBXEAASaoCgAbT+ih0Sd8dQAAAABJRU5ErkJggg=='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (46, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAALCAYAAADP9otxAAAABmJLR0QA/wD/AP+gvaeTAAABUklEQVRIid3TP0vDQBjH8d+JPZtqjkvoUl+CFDNkEPoK3EQ6O7jY0aGDg0OWvAOhFFz6BjraRdC1BCJSCg4uZigI0lJireRC+jj4Z6rdkkA/490zfJ+DA9abxjm/kFIGnPNI07SZYRg3AOy8w7JgCiGe6vX6zPd9mkwmNBqNqNPpLEzTfC+VSmd5B6ZKSnnfbDYjWiIIApJSfgA4yLszLfvlcnkWRUv3JyKidru9kFLe5h2alvNGo/H57/ZENB6PiXM+38i7NCXbhmEUVg0IIZAkCV/XB3j2PG++amAwGEDX9ddNACcAdrPpysxWv9/nw+EQ1Wp16YDrunOl1DUDcAlAzzQvA4yxvUqlctjr9QqWZf2dK6XgOE7carVewjC0WI6NqSsWi6eMsatarZbYtr0ThqHqdrtJHMeP0+n0GMDbWj/ADwHgCN/fPAFwB+Dh9/ILDCays+jcv9EAAAAASUVORK5CYII='); + INSERT INTO s_vitis.feature_style (feature_style_id, draw_color, draw_outline_color, draw_size, draw_dash, draw_symbol, text_font, text_color, text_outline_color, text_size, text_outline_size, text_offset_x, text_offset_y, text_rotation, text_text, feature_type, image) VALUES (47, '#ffffff', '#000000', '25', NULL, NULL, 'Arial', '#ffffff', '#000000', '18', '2', '0', '20', '0', '{{label}}', 'point', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFMAAAAdBAMAAAAkzk0vAAAAMFBMVEU5OTk5OTk6Ojo3Nzc5OTkLCws4ODgAAAABAQECAgIGBgYMDAw3Nzfz8/P5+fn////Sr5mlAAAAB3RSTlPv8vLz9vj+adiFDAAAAAFiS0dEDxi6ANkAAAAzSURBVDjLYygnFhQw1P9HAq+QOX/3I/P+M4wqHVU6qnRUKY2UFikhAYkUJI7yHCdkuQAAIOpSoQ3mN0oAAAAASUVORK5CYII='); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('bac_degraisseur', 5); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('brise_jet', 6); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('chasse_a_auget', 7); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('cours_deau', 8); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_3_branches', 9); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_4_branches', 10); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_5_branches', 11); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_6_branches', 12); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_drain_epi', 13); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_drain_patte_oie', 14); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_drain_simple', 15); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_3_branches', 16); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_4_branches', 17); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_5_branches', 18); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epandage_pente_6_branches', 19); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('epurateur_prefiltre', 20); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_compact_bi_cuve', 21); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_compact_mono_cuve', 22); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_vertical_draine', 23); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('filtre_vertical_non_draine', 24); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_buse', 25); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_etanche', 26); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_ouverte', 27); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_plante', 28); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_septique', 29); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('fosse_toutes_eaux', 30); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('microstation_bi_cuve', 31); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('microstation_mono_cuve', 32); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('phyto_epu_agree', 33); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('phyto_epu_non_reglementaire', 34); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('poste_relevage', 35); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('puits', 36); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('puits_infiltration', 37); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('puits_perdu', 38); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('regard_divers', 39); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('rejet_exutoire', 40); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('resurgence', 41); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('sens_pente', 42); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('te_regard_collecte', 43); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('tertre_infiltration', 44); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('vanne_alim_bi_direction', 45); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('ventilation', 46); + INSERT INTO s_anc.composant_type_feature_style (composant_type, feature_style_id) VALUES ('zone_compost', 47); + SELECT pg_catalog.setval('s_vitis.feature_style_feature_style_id_seq', 48, false); + + -- Frédéric le 26/09/2017 09:25 + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_inf_perm character varying(50); + DROP VIEW s_anc.v_evacuation_eaux; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_geotex; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_rac; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_hum; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_reg_rep; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_reb_bcl; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_veg; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_is_acc_reg; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_etude_hydrogeol; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_rejet; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_grav; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_tamp; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_rp_trap; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_hs_gestionnaire_auth; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_hs_intr; + ALTER TABLE s_anc.evacuation_eaux DROP COLUMN evac_hs_ecoul; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_geotex boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_rac boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_hum boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_reg_rep boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_reb_bcl boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_veg boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_is_acc_reg boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_etude_hydrogeol boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_rejet boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_grav boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_tamp boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_rp_trap boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_hs_gestionnaire_auth boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_hs_intr boolean; + ALTER TABLE s_anc.evacuation_eaux ADD COLUMN evac_hs_ecoul boolean; + ALTER TABLE s_anc.evacuation_eaux ALTER COLUMN evac_is_lin_total TYPE character varying(50); + + CREATE OR REPLACE VIEW s_anc.v_evacuation_eaux AS SELECT evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,evacuation_eaux.evac_rp_bons_grav,evacuation_eaux.evac_is_inf_perm FROM s_anc.evacuation_eaux LEFT JOIN s_anc.controle ON evacuation_eaux.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_evacuation_eaux OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO u_vitis; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_admin; + GRANT ALL ON TABLE s_anc.v_evacuation_eaux TO anc_user; + CREATE OR REPLACE RULE insert_v_evacuation_eaux AS ON INSERT TO s_anc.v_evacuation_eaux DO INSTEAD INSERT INTO s_anc.evacuation_eaux (id_eva,id_controle,evac_type,evac_is_nb,evac_is_long,evac_is_larg,evac_is_lin_total,evac_is_surface,evac_is_profondeur,evac_is_geotex,evac_is_rac,evac_is_hum,evac_is_reg_rep,evac_is_reb_bcl,evac_is_veg,evac_is_type_effl,evac_is_acc_reg,evac_rp_type,evac_rp_etude_hydrogeol,evac_rp_rejet,evac_rp_grav,evac_rp_tamp,evac_rp_type_eff,evac_rp_trap,evac_hs_type,evac_hs_gestionnaire,evac_hs_gestionnaire_auth,evac_hs_intr,evac_hs_type_eff,evac_hs_ecoul,evac_hs_etat,evac_commentaires,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,evac_rp_bons_grav,evac_is_inf_perm) VALUES (new.id_eva,new.id_controle,new.evac_type,new.evac_is_nb,new.evac_is_long,new.evac_is_larg,new.evac_is_lin_total,new.evac_is_surface,new.evac_is_profondeur,new.evac_is_geotex,new.evac_is_rac,new.evac_is_hum,new.evac_is_reg_rep,new.evac_is_reb_bcl,new.evac_is_veg,new.evac_is_type_effl,new.evac_is_acc_reg,new.evac_rp_type,new.evac_rp_etude_hydrogeol,new.evac_rp_rejet,new.evac_rp_grav,new.evac_rp_tamp,new.evac_rp_type_eff,new.evac_rp_trap,new.evac_hs_type,new.evac_hs_gestionnaire,new.evac_hs_gestionnaire_auth,new.evac_hs_intr,new.evac_hs_type_eff,new.evac_hs_ecoul,new.evac_hs_etat,new.evac_commentaires,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.evac_rp_bons_grav,new.evac_is_inf_perm) RETURNING evacuation_eaux.id_eva,evacuation_eaux.id_controle,evacuation_eaux.evac_type,evacuation_eaux.evac_is_nb,evacuation_eaux.evac_is_long,evacuation_eaux.evac_is_larg,evacuation_eaux.evac_is_lin_total,evacuation_eaux.evac_is_surface,evacuation_eaux.evac_is_profondeur,evacuation_eaux.evac_is_geotex,evacuation_eaux.evac_is_rac,evacuation_eaux.evac_is_hum,evacuation_eaux.evac_is_reg_rep,evacuation_eaux.evac_is_reb_bcl,evacuation_eaux.evac_is_veg,evacuation_eaux.evac_is_type_effl,evacuation_eaux.evac_is_acc_reg,evacuation_eaux.evac_rp_type,evacuation_eaux.evac_rp_etude_hydrogeol,evacuation_eaux.evac_rp_rejet,evacuation_eaux.evac_rp_grav,evacuation_eaux.evac_rp_tamp,evacuation_eaux.evac_rp_type_eff,evacuation_eaux.evac_rp_trap,evacuation_eaux.evac_hs_type,evacuation_eaux.evac_hs_gestionnaire,evacuation_eaux.evac_hs_gestionnaire_auth,evacuation_eaux.evac_hs_intr,evacuation_eaux.evac_hs_type_eff,evacuation_eaux.evac_hs_ecoul,evacuation_eaux.evac_hs_etat,evacuation_eaux.evac_commentaires,evacuation_eaux.maj,evacuation_eaux.maj_date,evacuation_eaux."create",evacuation_eaux.create_date,evacuation_eaux.photos_f,evacuation_eaux.fiche_f,evacuation_eaux.schema_f,evacuation_eaux.documents_f,evacuation_eaux.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE evacuation_eaux.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,evacuation_eaux.evac_rp_bons_grav,evacuation_eaux.evac_is_inf_perm; + CREATE OR REPLACE RULE update_v_evacuation_eaux AS ON UPDATE TO s_anc.v_evacuation_eaux DO INSTEAD UPDATE s_anc.evacuation_eaux SET id_eva = new.id_eva,id_controle = new.id_controle,evac_type = new.evac_type,evac_is_nb = new.evac_is_nb,evac_is_long = new.evac_is_long,evac_is_larg = new.evac_is_larg,evac_is_lin_total = new.evac_is_lin_total,evac_is_surface = new.evac_is_surface,evac_is_profondeur = new.evac_is_profondeur,evac_is_geotex = new.evac_is_geotex,evac_is_rac = new.evac_is_rac,evac_is_hum = new.evac_is_hum,evac_is_reg_rep = new.evac_is_reg_rep,evac_is_reb_bcl = new.evac_is_reb_bcl,evac_is_veg = new.evac_is_veg,evac_is_type_effl = new.evac_is_type_effl,evac_is_acc_reg = new.evac_is_acc_reg,evac_rp_type = new.evac_rp_type,evac_rp_etude_hydrogeol = new.evac_rp_etude_hydrogeol,evac_rp_rejet = new.evac_rp_rejet,evac_rp_grav = new.evac_rp_grav,evac_rp_tamp = new.evac_rp_tamp,evac_rp_type_eff = new.evac_rp_type_eff,evac_rp_trap = new.evac_rp_trap,evac_hs_type = new.evac_hs_type,evac_hs_gestionnaire = new.evac_hs_gestionnaire,evac_hs_gestionnaire_auth = new.evac_hs_gestionnaire_auth,evac_hs_intr = new.evac_hs_intr,evac_hs_type_eff = new.evac_hs_type_eff,evac_hs_ecoul = new.evac_hs_ecoul,evac_hs_etat = new.evac_hs_etat,evac_commentaires = new.evac_commentaires,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,evac_rp_bons_grav = new.evac_rp_bons_grav,evac_is_inf_perm = new.evac_is_inf_perm WHERE evacuation_eaux.id_eva = new.id_eva; + CREATE OR REPLACE RULE delete_v_evacuation_eaux AS ON DELETE TO s_anc.v_evacuation_eaux DO INSTEAD DELETE FROM s_anc.evacuation_eaux WHERE evacuation_eaux.id_eva = old.id_eva; + ALTER TABLE s_anc.evacuation_eaux_id_eva_seq OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_admin; + GRANT SELECT ON TABLE s_anc.evacuation_eaux_id_eva_seq TO anc_user; + + -- Frédéric le 26/09/2017 11:24 + DROP VIEW s_anc.v_filieres_agrees; + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_surpr_elec TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_num_ag TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_cap_eh TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_nb_cuv TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_num TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_num_filt TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_en_bord TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_en_perc TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_surpr_dist TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_fvl_prof TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_fhz_long TYPE character varying(30); + ALTER TABLE s_anc.filieres_agrees ALTER COLUMN fag_fhz_prof TYPE character varying(30); + + CREATE OR REPLACE VIEW s_anc.v_filieres_agrees AS SELECT filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,controle.id_installation,controle.controle_type, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, filieres_agrees.fag_commentaires FROM s_anc.filieres_agrees LEFT JOIN s_anc.controle ON filieres_agrees.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + ALTER TABLE s_anc.v_filieres_agrees OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO u_vitis; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_admin; + GRANT ALL ON TABLE s_anc.v_filieres_agrees TO anc_user; + CREATE OR REPLACE RULE insert_v_filieres_agrees AS ON INSERT TO s_anc.v_filieres_agrees DO INSTEAD INSERT INTO s_anc.filieres_agrees(id_fag,id_controle,fag_type,fag_agree,fag_integerer,fag_type_fil,fag_denom,fag_fab,fag_num_ag,fag_cap_eh,fag_nb_cuv,fag_num,fag_num_filt,fag_mat_cuv,fag_guide,fag_livret,fag_contr,fag_soc,fag_pres,fag_plan,fag_tamp,fag_ancrage,fag_rep,fag_respect,fag_ventil,fag_mil_typ,fag_mil_filt,fag_mise_eau,fag_pres_alar,fag_pres_reg,fag_att_conf,fag_surpr,fag_surpr_ref,fag_surpr_dist,fag_surpr_elec,fag_surpr_aer,fag_reac_bull,fag_broy,fag_dec,fag_type_eau,fag_reg_mar,fag_reg_mat,fag_reg_affl,fag_reg_hz,fag_reg_van,fag_fvl_nb,fag_fvl_long,fag_fvl_larg,fag_fvl_prof,fag_fvl_sep,fag_fvl_pla,fag_fvl_drain,fag_fvl_resp,fag_fhz_long,fag_fhz_larg,fag_fhz_prof,fag_fhz_drain,fag_fhz_resp,fag_mat_qual,fag_mat_epa,fag_pres_veg,fag_pres_pro,fag_acces,fag_et_deg,fag_et_od,fag_et_dy,fag_en_date,fag_en_jus,fag_en_entr,fag_en_bord,fag_en_dest,fag_en_perc,fag_en_contr,fag_en_mainteger,fag_dist_arb,fag_dist_parc,fag_dist_hab,fag_dist_cap,maj,maj_date,"create",create_date,photos_f,fiche_f,schema_f,documents_f,plan_f,fag_commentaires) VALUES (new.id_fag,new.id_controle,new.fag_type,new.fag_agree,new.fag_integerer,new.fag_type_fil,new.fag_denom,new.fag_fab,new.fag_num_ag,new.fag_cap_eh,new.fag_nb_cuv,new.fag_num,new.fag_num_filt,new.fag_mat_cuv,new.fag_guide,new.fag_livret,new.fag_contr,new.fag_soc,new.fag_pres,new.fag_plan,new.fag_tamp,new.fag_ancrage,new.fag_rep,new.fag_respect,new.fag_ventil,new.fag_mil_typ,new.fag_mil_filt,new.fag_mise_eau,new.fag_pres_alar,new.fag_pres_reg,new.fag_att_conf,new.fag_surpr,new.fag_surpr_ref,new.fag_surpr_dist,new.fag_surpr_elec,new.fag_surpr_aer,new.fag_reac_bull,new.fag_broy,new.fag_dec,new.fag_type_eau,new.fag_reg_mar,new.fag_reg_mat,new.fag_reg_affl,new.fag_reg_hz,new.fag_reg_van,new.fag_fvl_nb,new.fag_fvl_long,new.fag_fvl_larg,new.fag_fvl_prof,new.fag_fvl_sep,new.fag_fvl_pla,new.fag_fvl_drain,new.fag_fvl_resp,new.fag_fhz_long,new.fag_fhz_larg,new.fag_fhz_prof,new.fag_fhz_drain,new.fag_fhz_resp,new.fag_mat_qual,new.fag_mat_epa,new.fag_pres_veg,new.fag_pres_pro,new.fag_acces,new.fag_et_deg,new.fag_et_od,new.fag_et_dy,new.fag_en_date,new.fag_en_jus,new.fag_en_entr,new.fag_en_bord,new.fag_en_dest,new.fag_en_perc,new.fag_en_contr,new.fag_en_mainteger,new.fag_dist_arb,new.fag_dist_parc,new.fag_dist_hab,new.fag_dist_cap,new.maj,new.maj_date,new."create",new.create_date,new.photos_f,new.fiche_f,new.schema_f,new.documents_f,new.plan_f,new.fag_commentaires) RETURNING filieres_agrees.id_fag,filieres_agrees.id_controle,filieres_agrees.fag_type,filieres_agrees.fag_agree,filieres_agrees.fag_integerer,filieres_agrees.fag_type_fil,filieres_agrees.fag_denom,filieres_agrees.fag_fab,filieres_agrees.fag_num_ag,filieres_agrees.fag_cap_eh,filieres_agrees.fag_nb_cuv,filieres_agrees.fag_num,filieres_agrees.fag_num_filt,filieres_agrees.fag_mat_cuv,filieres_agrees.fag_guide,filieres_agrees.fag_livret,filieres_agrees.fag_contr,filieres_agrees.fag_soc,filieres_agrees.fag_pres,filieres_agrees.fag_plan,filieres_agrees.fag_tamp,filieres_agrees.fag_ancrage,filieres_agrees.fag_rep,filieres_agrees.fag_respect,filieres_agrees.fag_ventil,filieres_agrees.fag_mil_typ,filieres_agrees.fag_mil_filt,filieres_agrees.fag_mise_eau,filieres_agrees.fag_pres_alar,filieres_agrees.fag_pres_reg,filieres_agrees.fag_att_conf,filieres_agrees.fag_surpr,filieres_agrees.fag_surpr_ref,filieres_agrees.fag_surpr_dist,filieres_agrees.fag_surpr_elec,filieres_agrees.fag_surpr_aer,filieres_agrees.fag_reac_bull,filieres_agrees.fag_broy,filieres_agrees.fag_dec,filieres_agrees.fag_type_eau,filieres_agrees.fag_reg_mar,filieres_agrees.fag_reg_mat,filieres_agrees.fag_reg_affl,filieres_agrees.fag_reg_hz,filieres_agrees.fag_reg_van,filieres_agrees.fag_fvl_nb,filieres_agrees.fag_fvl_long,filieres_agrees.fag_fvl_larg,filieres_agrees.fag_fvl_prof,filieres_agrees.fag_fvl_sep,filieres_agrees.fag_fvl_pla,filieres_agrees.fag_fvl_drain,filieres_agrees.fag_fvl_resp,filieres_agrees.fag_fhz_long,filieres_agrees.fag_fhz_larg,filieres_agrees.fag_fhz_prof,filieres_agrees.fag_fhz_drain,filieres_agrees.fag_fhz_resp,filieres_agrees.fag_mat_qual,filieres_agrees.fag_mat_epa,filieres_agrees.fag_pres_veg,filieres_agrees.fag_pres_pro,filieres_agrees.fag_acces,filieres_agrees.fag_et_deg,filieres_agrees.fag_et_od,filieres_agrees.fag_et_dy,filieres_agrees.fag_en_date,filieres_agrees.fag_en_jus,filieres_agrees.fag_en_entr,filieres_agrees.fag_en_bord,filieres_agrees.fag_en_dest,filieres_agrees.fag_en_perc,filieres_agrees.fag_en_contr,filieres_agrees.fag_en_mainteger,filieres_agrees.fag_dist_arb,filieres_agrees.fag_dist_parc,filieres_agrees.fag_dist_hab,filieres_agrees.fag_dist_cap,filieres_agrees.maj,filieres_agrees.maj_date,filieres_agrees."create",filieres_agrees.create_date,filieres_agrees.photos_f,filieres_agrees.fiche_f,filieres_agrees.schema_f,filieres_agrees.documents_f,filieres_agrees.plan_f,( SELECT controle.id_installation FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS id_installation,( SELECT controle.controle_type FROM s_anc.controle WHERE filieres_agrees.id_controle = controle.id_controle) AS controle_type,( SELECT (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier FROM s_anc.installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND installation.id_installation = installation.id_installation) AS num_dossier,filieres_agrees.fag_commentaires; + CREATE OR REPLACE RULE update_v_filieres_agrees AS ON UPDATE TO s_anc.v_filieres_agrees DO INSTEAD UPDATE s_anc.filieres_agrees SET id_fag = new.id_fag,id_controle = new.id_controle,fag_type = new.fag_type,fag_agree = new.fag_agree,fag_integerer = new.fag_integerer,fag_type_fil = new.fag_type_fil,fag_denom = new.fag_denom ,fag_fab = new.fag_fab,fag_num_ag = new.fag_num_ag,fag_cap_eh = new.fag_cap_eh,fag_nb_cuv = new.fag_nb_cuv,fag_num = new.fag_num,fag_num_filt = new.fag_num_filt,fag_mat_cuv = new.fag_mat_cuv,fag_guide = new.fag_guide,fag_livret = new.fag_livret,fag_contr = new.fag_contr,fag_soc = new.fag_soc,fag_pres = new.fag_pres,fag_plan = new.fag_plan,fag_tamp = new.fag_tamp,fag_ancrage = new.fag_ancrage,fag_rep = new.fag_rep,fag_respect = new.fag_respect,fag_ventil = new.fag_ventil,fag_mil_typ = new.fag_mil_typ,fag_mil_filt = new.fag_mil_filt,fag_mise_eau = new.fag_mise_eau,fag_pres_alar = new.fag_pres_alar,fag_pres_reg = new.fag_pres_reg,fag_att_conf = new.fag_att_conf,fag_surpr = new.fag_surpr,fag_surpr_ref = new.fag_surpr_ref,fag_surpr_dist = new.fag_surpr_dist,fag_surpr_elec = new.fag_surpr_elec,fag_surpr_aer = new.fag_surpr_aer,fag_reac_bull = new.fag_reac_bull,fag_broy = new.fag_broy,fag_dec = new.fag_dec,fag_type_eau = new.fag_type_eau,fag_reg_mar = new.fag_reg_mar,fag_reg_mat = new.fag_reg_mat,fag_reg_affl = new.fag_reg_affl,fag_reg_hz = new.fag_reg_hz,fag_reg_van = new.fag_reg_van,fag_fvl_nb = new.fag_fvl_nb,fag_fvl_long = new.fag_fvl_long,fag_fvl_larg = new.fag_fvl_larg,fag_fvl_prof = new.fag_fvl_prof,fag_fvl_sep = new.fag_fvl_sep,fag_fvl_pla = new.fag_fvl_pla,fag_fvl_drain = new.fag_fvl_drain,fag_fvl_resp = new.fag_fvl_resp,fag_fhz_long = new.fag_fhz_long,fag_fhz_larg = new.fag_fhz_larg,fag_fhz_prof = new.fag_fhz_prof,fag_fhz_drain = new.fag_fhz_drain,fag_fhz_resp = new.fag_fhz_resp,fag_mat_qual = new.fag_mat_qual,fag_mat_epa = new.fag_mat_epa,fag_pres_veg = new.fag_pres_veg,fag_pres_pro = new.fag_pres_pro,fag_acces = new.fag_acces,fag_et_deg = new.fag_et_deg,fag_et_od = new.fag_et_od,fag_et_dy = new.fag_et_dy,fag_en_date = new.fag_en_date,fag_en_jus = new.fag_en_jus,fag_en_entr = new.fag_en_entr,fag_en_bord = new.fag_en_bord,fag_en_dest = new.fag_en_dest,fag_en_perc = new.fag_en_perc,fag_en_contr = new.fag_en_contr,fag_en_mainteger = new.fag_en_mainteger,fag_dist_arb = new.fag_dist_arb,fag_dist_parc = new.fag_dist_parc,fag_dist_hab = new.fag_dist_hab,fag_dist_cap = new.fag_dist_cap,maj = new.maj,maj_date = new.maj_date,"create" = new."create",create_date = new.create_date,photos_f = new.photos_f,fiche_f = new.fiche_f,schema_f = new.schema_f,documents_f = new.documents_f,plan_f = new.plan_f,fag_commentaires = new.fag_commentaires WHERE filieres_agrees.id_fag = new.id_fag; + CREATE OR REPLACE RULE delete_v_filieres_agrees AS ON DELETE TO s_anc.v_filieres_agrees DO INSTEAD DELETE FROM s_anc.filieres_agrees WHERE filieres_agrees.id_fag = old.id_fag; + + -- Frédéric le 26/09/2017 11:38 + UPDATE s_anc.param_liste SET alias = 'PVC' WHERE alias = 'Pvc'; + + -- Frédéric le 26/09/2017 12:12 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_84', 'anc_85'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_85', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_84', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_evacuation_eaux')); + + -- Frédéric le 26/09/2017 12:19 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_21', 'anc_22'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_22', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_21', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_filieres_agree')); + + -- Frédéric le 26/09/2017 12:24 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_92', 'anc_93'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_93', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_92', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_traitement')); + + -- Frédéric le 26/09/2017 12:27 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_17', 'anc_18'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_18', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_17', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + + -- Frédéric le 26/09/2017 14:04 + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_76', 'anc_77'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_77', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_76', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_pretraitement')); + + -- Frédéric le 26/09/2017 14:19 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_86'; + UPDATE s_vitis.vm_translation SET translation = 'Id contrôle' WHERE translation_id = 'anc_87'; + UPDATE s_vitis.vm_translation SET translation = 'Type d''évacuation' WHERE translation_id = 'anc_88'; + UPDATE s_vitis.vm_translation SET translation = 'Auteur' WHERE translation_id = 'anc_89'; + + -- Frédéric le 26/09/2017 14:33 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_101'; + UPDATE s_vitis.vm_translation SET translation = 'Id contrôle' WHERE translation_id = 'anc_102'; + UPDATE s_vitis.vm_translation SET translation = 'Type de filière' WHERE translation_id = 'anc_103'; + UPDATE s_vitis.vm_translation SET translation = 'Installation' WHERE translation_id = 'anc_104'; + UPDATE s_vitis.vm_table_field SET width = 250 WHERE label_id = 'anc_103'; + + -- Frédéric le 26/09/2017 14:40 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_97'; + UPDATE s_vitis.vm_translation SET translation = 'Id contrôle' WHERE translation_id = 'anc_98'; + UPDATE s_vitis.vm_translation SET translation = 'Type de traitement' WHERE translation_id = 'anc_99'; + UPDATE s_vitis.vm_translation SET translation = 'Installation' WHERE translation_id = 'anc_100'; + UPDATE s_vitis.vm_table_field SET width = 250 WHERE label_id = 'anc_99'; + + -- Frédéric le 26/09/2017 14:54 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_67'; + UPDATE s_vitis.vm_translation SET translation = 'Id installation' WHERE translation_id = 'anc_68'; + UPDATE s_vitis.vm_translation SET translation = 'Type de contrôle' WHERE translation_id = 'anc_69'; + UPDATE s_vitis.vm_translation SET translation = 'Mise à jour' WHERE translation_id = 'anc_70'; + UPDATE s_vitis.vm_translation SET translation = 'Date de mise à jour' WHERE translation_id = 'anc_71'; + UPDATE s_vitis.vm_translation SET translation = 'Auteur' WHERE translation_id = 'anc_72'; + UPDATE s_vitis.vm_translation SET translation = 'Date de création' WHERE translation_id = 'anc_73'; + UPDATE s_vitis.vm_table_field SET width = 120 WHERE label_id = 'anc_71'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_73'; + + -- Frédéric le 26/09/2017 15:06 + UPDATE s_anc.param_liste SET alias = 'Tranchées d''épandage' WHERE alias = 'Tranchées D''Epandage'; + + -- Frédéric le 27/09/2017 09:37 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('evacuation_eaux', 'evac_rp_type_eff'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type_eff', 'FECES SEULE', 'Fèces seule'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('evacuation_eaux', 'evac_rp_type_eff', 'FECES URINE', 'Fèces urine'); + + -- Frédéric le 27/09/2017 09:37 + UPDATE s_vitis.vm_table_field SET template = '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>' WHERE label_id IN('anc_54', 'anc_71', 'anc_73'); + + -- Frédéric le 27/09/2017 11:33 + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_27'; + UPDATE s_vitis.vm_translation SET translation = 'Nom de la table' WHERE translation_id = 'anc_28'; + UPDATE s_vitis.vm_translation SET translation = 'Nom de la liste' WHERE translation_id = 'anc_29'; + UPDATE s_vitis.vm_translation SET translation = 'Valeur' WHERE translation_id = 'anc_30'; + UPDATE s_vitis.vm_translation SET translation = 'Alias' WHERE translation_id = 'anc_31'; + UPDATE s_vitis.vm_table_field SET width = 50 WHERE label_id = 'anc_27'; + + UPDATE s_vitis.vm_translation SET translation = 'ID' WHERE translation_id = 'anc_36'; + UPDATE s_vitis.vm_translation SET translation = 'Commune' WHERE translation_id = 'anc_37'; + UPDATE s_vitis.vm_translation SET translation = 'Type de contrôle' WHERE translation_id = 'anc_38'; + UPDATE s_vitis.vm_translation SET translation = 'Montant' WHERE translation_id = 'anc_39'; + UPDATE s_vitis.vm_translation SET translation = 'Année de validité' WHERE translation_id = 'anc_40'; + UPDATE s_vitis.vm_translation SET translation = 'Devise' WHERE translation_id = 'anc_41'; + UPDATE s_vitis.vm_table_field SET width = 50 WHERE label_id = 'anc_36'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_37'; + UPDATE s_vitis.vm_table_field SET width = 110 WHERE label_id = 'anc_40'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_38'; + + UPDATE s_vitis.vm_table_field SET width = 90 WHERE label_id = 'anc_54'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_48'; + UPDATE s_vitis.vm_table_field SET template = '<div data-app-admin-description-column="{{row.entity[col.field]}}"></div>' WHERE label_id = 'anc_52'; + UPDATE s_vitis.vm_table_field SET template = '<div data-app-admin-signature-column="{{row.entity[col.field]}}"></div>' WHERE label_id = 'anc_56'; + + UPDATE s_vitis.vm_translation SET translation = 'Commune' WHERE translation_id = 'anc_62'; + UPDATE s_vitis.vm_table_field SET width = 100 WHERE label_id = 'anc_62'; + UPDATE s_vitis.vm_table_field SET width = 70 WHERE label_id = 'anc_121'; + + + -- Armand 27/09/2017 18:55 + UPDATE s_vitis.vm_translation SET translation='Administrateur' WHERE translation_id='anc_42'; + UPDATE s_vitis.vm_translation SET translation='Liste' WHERE translation_id='anc_23'; + UPDATE s_vitis.vm_translation SET translation='Supprimer les administrateurs' WHERE translation_id='anc_44'; + UPDATE s_vitis.vm_translation SET translation='Supprimer les administrateurs' WHERE translation_id='anc_44'; + UPDATE s_vitis.vm_translation SET translation='Ajouter un administrateur' WHERE translation_id='anc_45'; + UPDATE s_vitis.vm_translation SET translation='Ajouter un administrateur' WHERE translation_id='anc_45'; + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_25', 'anc_26'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_26', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_25', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_liste')); + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_34', 'anc_35'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_35', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_34', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_tarif')); + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_44', 'anc_45'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_45', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_44', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_param_admin')); + + DELETE FROM s_vitis.vm_table_button WHERE label_id IN('anc_59', 'anc_60'); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('add_smallFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'AddSectionForm', 'anc_60', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + INSERT INTO s_vitis.vm_table_button (button_class, table_button_id, event, label_id, ressource_id, tab_id) VALUES ('deleteFlexigrid',(SELECT nextval('s_vitis.seq_vm'::regclass)), 'DeleteSelection', 'anc_59', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_entreprise')); + + -- Armand 28/09/2017 09:22 + UPDATE s_anc.param_liste SET alias='Béton' WHERE alias='Beton'; + UPDATE s_anc.param_liste SET alias='Ecorce de pins' WHERE alias='Ecorce de Pins'; + UPDATE s_anc.param_liste SET alias='Eaux ménagères' WHERE alias='Eaux Menageres'; + UPDATE s_anc.param_liste SET alias='Eaux vannes' WHERE alias='Eaux Vannes'; + UPDATE s_anc.param_liste SET alias='Non renseigné' WHERE alias='Non Renseigne'; + UPDATE s_anc.param_liste SET alias='Em pré-traitées' WHERE alias='Em Pretraitees'; + UPDATE s_anc.param_liste SET alias='Ev pré-traitées' WHERE alias='Ev Pretraitees'; + UPDATE s_anc.param_liste SET alias='Eu pré-traitées' WHERE alias='Eu Pretraitees'; + UPDATE s_anc.param_liste SET alias='Em traitées' WHERE alias='Em Traitees'; + UPDATE s_anc.param_liste SET alias='Ev traitées' WHERE alias='Ev Traitees'; + UPDATE s_anc.param_liste SET alias='Eu traitées' WHERE alias='Eu Traitees'; + + -- Frédéric le 28/09/2017 11:40 + DROP VIEW s_anc.v_controle; + ALTER TABLE s_anc.controle DROP COLUMN des_agent_control; + ALTER TABLE s_anc.controle ADD COLUMN des_agent_control integer; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane,new.emplacement_vt_secondaire) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane,emplacement_vt_secondaire = new.emplacement_vt_secondaire WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2017.01.01</version> + <code> + <![CDATA[ + -- Armand 17/10/2017 Ajout des champs taille et rotation + ALTER TABLE s_anc.composant ADD COLUMN size character varying(50); + ALTER TABLE s_anc.composant ADD COLUMN rotation character varying(50); + UPDATE s_anc.composant SET "size"=20; + UPDATE s_anc.composant SET "rotation"=0; + ALTER TABLE s_vitis.feature_style ADD COLUMN draw_rotation character varying(50); + DROP VIEW s_anc.v_composant_type_feature_style; + CREATE OR REPLACE VIEW s_anc.v_composant_type_feature_style AS SELECT s_anc.composant_type_feature_style.composant_type, s_anc.composant_type_feature_style.feature_style_id, s_vitis.feature_style.draw_color, s_vitis.feature_style.draw_outline_color, s_vitis.feature_style.draw_size, s_vitis.feature_style.draw_dash, s_vitis.feature_style.draw_symbol, s_vitis.feature_style.draw_rotation, s_vitis.feature_style.text_font, s_vitis.feature_style.text_color, s_vitis.feature_style.text_outline_color, s_vitis.feature_style.text_size, s_vitis.feature_style.text_outline_size, s_vitis.feature_style.text_offset_x, s_vitis.feature_style.text_offset_y, s_vitis.feature_style.text_rotation, s_vitis.feature_style.text_text, s_vitis.feature_style.feature_type, s_vitis.feature_style.image FROM s_anc.composant_type_feature_style LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id; + ALTER TABLE s_anc.v_composant_type_feature_style OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant_type_feature_style TO anc_user; + DROP VIEW s_anc.v_composant; + CREATE OR REPLACE VIEW s_anc.v_composant AS SELECT s_anc.installation.id_installation, s_anc.controle.id_controle, s_anc.composant.id_composant, s_anc.composant.composant_type, s_anc.composant.label, s_anc.composant.observations, s_anc.composant.size, s_anc.composant.rotation, s_anc.composant.geom, s_anc.composant_type_feature_style.feature_style_id, (SELECT get_composant_value AS draw_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_dash FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_dash AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_symbol FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_symbol AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS draw_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.draw_rotation AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_font FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_font AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_color FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_color AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_outline_size FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_outline_size AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_x FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_x AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_offset_y FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_offset_y AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_rotation FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_rotation AS text), s_anc.composant.id_composant)), (SELECT get_composant_value AS text_text FROM s_anc.get_composant_value(cast(s_vitis.feature_style.text_text AS text), s_anc.composant.id_composant)), s_vitis.feature_style.feature_type, (SELECT get_composant_value AS image FROM s_anc.get_composant_value(cast(s_vitis.feature_style.image AS text), s_anc.composant.id_composant)) FROM s_anc.composant LEFT JOIN s_anc.controle ON composant.id_controle = controle.id_controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation LEFT JOIN s_anc.composant_type_feature_style ON s_anc.composant.composant_type = s_anc.composant_type_feature_style.composant_type LEFT JOIN s_vitis.feature_style ON composant_type_feature_style.feature_style_id = s_vitis.feature_style.feature_style_id WHERE installation.id_com :: text ~ Similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login :: name = "current_user"()), NULL :: text); + CREATE OR REPLACE RULE delete_v_composant AS ON DELETE TO s_anc.v_composant DO INSTEAD DELETE FROM s_anc.composant WHERE composant.id_composant = old.id_composant; + CREATE OR REPLACE RULE update_v_composant AS ON UPDATE TO s_anc.v_composant DO INSTEAD UPDATE s_anc.composant SET id_controle = new.id_controle, composant_type = new.composant_type, label = new.label, observations = new.observations, SIZE = new.size, rotation = new.rotation, geom = new.geom WHERE composant.id_composant = new.id_composant; + CREATE OR REPLACE RULE insert_v_composant AS ON INSERT TO s_anc.v_composant DO INSTEAD INSERT INTO s_anc.composant(id_controle, composant_type, label, observations, SIZE, rotation, geom) VALUES (new.id_controle, new.composant_type, new.label, new.observations, new.size, new.rotation, new.geom) RETURNING (SELECT id_installation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), id_controle, id_composant, composant_type, label, observations, SIZE, rotation, geom, (SELECT feature_style_id FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_dash FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_symbol FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT draw_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_font FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_color FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_outline_size FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_x FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_offset_y FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_rotation FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT text_text FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT feature_type FROM s_anc.v_composant WHERE id_composant = composant.id_composant), (SELECT image FROM s_anc.v_composant WHERE id_composant = composant.id_composant); + ALTER TABLE s_anc.v_composant OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_composant TO anc_admin; + GRANT ALL ON TABLE s_anc.v_composant TO anc_user; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=5; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=6; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=7; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=8; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=9; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=10; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=11; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=12; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=13; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=14; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=15; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=16; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=17; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=18; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=19; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=20; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=21; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=22; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=23; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=24; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=25; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=26; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=27; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=28; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=29; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=30; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=31; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=32; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=33; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=34; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=35; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=36; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=37; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=38; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=39; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=40; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=41; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=42; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=43; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=44; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=45; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=46; + UPDATE s_vitis.feature_style SET draw_size='{{size}}', draw_rotation='{{rotation}}' WHERE feature_style_id=47; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2017.01.02</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2017.02.00</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.01.00</version> + <code> + <![CDATA[ + -- Armand 02/02/2018 Orthographe #3107 + UPDATE s_vitis.vm_translation SET translation='Prétraitement' WHERE translation='Pretraitement' and lang='fr'; + -- Armand 02/02/2018 liste ptr_marque + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('pretraitement', 'ptr_marque'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_marque', 'STATION D''ÉPURATION', 'Station d''épuration'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_marque', 'ÉPANDAGE', 'Epandage'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('pretraitement', 'ptr_marque', 'TERRAIN', 'Terrain'); + -- Armand 05/02/2018 Pourvoir selectionner plusieurs types de non conformités dans controle (bon fonctionnement) > conclusion #3119 + DROP VIEW s_anc.v_controle; + DROP VIEW s_anc.v_installation; + ALTER TABLE s_anc.controle ALTER COLUMN cl_classe_cbf TYPE text; + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,v_commune.nom AS commune,v_vmap_parcelle_all_geom.section,v_vmap_parcelle_all_geom.parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation FROM s_anc.installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text); + GRANT ALL ON TABLE s_anc.v_installation TO u_vitis; + GRANT ALL ON TABLE s_anc.v_installation TO anc_admin; + GRANT ALL ON TABLE s_anc.v_installation TO anc_user; + CREATE OR REPLACE RULE insert_v_installation AS ON INSERT TO s_anc.v_installation DO INSTEAD INSERT INTO s_anc.installation (id_installation, id_com, id_parc, parc_sup, parc_parcelle_associees, parc_adresse, code_postal, parc_commune, prop_titre, prop_nom_prenom, prop_adresse, prop_code_postal, prop_commune, prop_tel, prop_mail, bati_type, bati_ca_nb_pp, bati_ca_nb_eh, bati_ca_nb_chambres, bati_ca_nb_autres_pieces, bati_ca_nb_occupant, bati_nb_a_control, bati_date_achat, bati_date_mutation, cont_zone_enjeu, cont_zone_sage, cont_zone_autre, cont_zone_urba, cont_zone_anc, cont_alim_eau_potable, cont_puits_usage, cont_puits_declaration, cont_puits_situation, cont_puits_terrain_mitoyen, observations, maj, maj_date, "create", create_date, archivage, geom, photo_f, document_f) VALUES (new.id_installation, new.id_com, new.id_parc, new.parc_sup, new.parc_parcelle_associees, new.parc_adresse, new.code_postal, new.parc_commune, new.prop_titre, new.prop_nom_prenom, new.prop_adresse, new.prop_code_postal, new.prop_commune, new.prop_tel, new.prop_mail, new.bati_type, new.bati_ca_nb_pp, new.bati_ca_nb_eh, new.bati_ca_nb_chambres, new.bati_ca_nb_autres_pieces, new.bati_ca_nb_occupant, new.bati_nb_a_control, new.bati_date_achat, new.bati_date_mutation, new.cont_zone_enjeu, new.cont_zone_sage, new.cont_zone_autre, new.cont_zone_urba, new.cont_zone_anc, new.cont_alim_eau_potable, new.cont_puits_usage, new.cont_puits_declaration, new.cont_puits_situation, new.cont_puits_terrain_mitoyen, new.observations, new.maj, new.maj_date, new."create", new.create_date, new.archivage, new.geom, new.photo_f, new.document_f) RETURNING installation.id_installation,installation.id_com,installation.id_parc,installation.parc_sup,installation.parc_parcelle_associees,installation.parc_adresse,installation.code_postal,installation.parc_commune,installation.prop_titre,installation.prop_nom_prenom,installation.prop_adresse,installation.prop_code_postal,installation.prop_commune,installation.prop_tel,installation.prop_mail,installation.bati_type,installation.bati_ca_nb_pp,installation.bati_ca_nb_eh,installation.bati_ca_nb_chambres,installation.bati_ca_nb_autres_pieces,installation.bati_ca_nb_occupant,installation.bati_nb_a_control,installation.bati_date_achat,installation.bati_date_mutation,installation.cont_zone_enjeu,installation.cont_zone_sage,installation.cont_zone_autre,installation.cont_zone_urba,installation.cont_zone_anc,installation.cont_alim_eau_potable,installation.cont_puits_usage,installation.cont_puits_declaration,installation.cont_puits_situation,installation.cont_puits_terrain_mitoyen,installation.observations,installation.maj,installation.maj_date,installation."create",installation.create_date,installation.archivage,installation.geom,installation.photo_f,installation.document_f,(installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier,( SELECT commune.texte AS commune FROM s_cadastre.commune WHERE commune.id_com = installation.id_com::bpchar) AS commune,( SELECT parcelle.section FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS section,( SELECT parcelle.parcelle FROM s_cadastre.parcelle WHERE parcelle.id_par = installation.id_parc::bpchar) AS parcelle,( SELECT count(*) AS nb_controle FROM s_anc.controle WHERE controle.id_installation = installation.id_installation) AS nb_controle,(SELECT des_date_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as last_date_control,(SELECT cl_avis FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control DESC LIMIT 1) as cl_avis,(SELECT (controle.des_date_control + '1 year'::interval * controle.des_interval_control::double precision) AS next_control FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation ORDER BY des_date_control LIMIT 1) as next_control,(SELECT cl_classe_cbf FROM s_anc.controle WHERE controle.des_date_control < now() AND controle.id_installation = installation.id_installation AND controle_type <> 'CONCEPTION' ORDER BY des_date_control DESC LIMIT 1) as classement_installation; + CREATE OR REPLACE RULE delete_v_installation AS ON DELETE TO s_anc.v_installation DO INSTEAD DELETE FROM s_anc.installation WHERE installation.id_installation = old.id_installation; + CREATE OR REPLACE RULE update_v_installation AS ON UPDATE TO s_anc.v_installation DO INSTEAD UPDATE s_anc.installation SET id_com = new.id_com, id_parc = new.id_parc, parc_sup = new.parc_sup, parc_parcelle_associees = new.parc_parcelle_associees, parc_adresse = new.parc_adresse, code_postal = new.code_postal, parc_commune = new.parc_commune, prop_titre = new.prop_titre, prop_nom_prenom = new.prop_nom_prenom, prop_adresse = new.prop_adresse, prop_code_postal = new.prop_code_postal, prop_commune = new.prop_commune, prop_tel = new.prop_tel, prop_mail = new.prop_mail, bati_type = new.bati_type, bati_ca_nb_pp = new.bati_ca_nb_pp, bati_ca_nb_eh = new.bati_ca_nb_eh, bati_ca_nb_chambres = new.bati_ca_nb_chambres, bati_ca_nb_autres_pieces = new.bati_ca_nb_autres_pieces, bati_ca_nb_occupant = new.bati_ca_nb_occupant, bati_nb_a_control = new.bati_nb_a_control, bati_date_achat = new.bati_date_achat, bati_date_mutation = new.bati_date_mutation, cont_zone_enjeu = new.cont_zone_enjeu, cont_zone_sage = new.cont_zone_sage, cont_zone_autre = new.cont_zone_autre, cont_zone_urba = new.cont_zone_urba, cont_zone_anc = new.cont_zone_anc, cont_alim_eau_potable = new.cont_alim_eau_potable, cont_puits_usage = new.cont_puits_usage, cont_puits_declaration = new.cont_puits_declaration, cont_puits_situation = new.cont_puits_situation, cont_puits_terrain_mitoyen = new.cont_puits_terrain_mitoyen, observations = new.observations, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, archivage = new.archivage, geom = new.geom, photo_f = new.photo_f, document_f = new.document_f WHERE installation.id_installation = new.id_installation; + CREATE OR REPLACE view s_anc.v_controle as SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux,new.vt_commentaire,new.tra_vm_geomembrane,new.emplacement_vt_secondaire) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape(( SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f,controle.cl_constat,controle.cl_travaux,controle.vt_commentaire,controle.tra_vm_geomembrane,controle.emplacement_vt_secondaire; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle , id_installation = new.id_installation , controle_type = new.controle_type , controle_ss_type = new.controle_ss_type , des_date_control = new.des_date_control , des_interval_control = new.des_interval_control , des_pers_control = new.des_pers_control , des_agent_control = new.des_agent_control , des_installateur = new.des_installateur , des_refus_visite = new.des_refus_visite , des_date_installation = new.des_date_installation , des_date_recommande = new.des_date_recommande , des_numero_recommande = new.des_numero_recommande , dep_date_depot = new.dep_date_depot , dep_liste_piece = new.dep_liste_piece , dep_dossier_complet = new.dep_dossier_complet , dep_date_envoi_incomplet = new.dep_date_envoi_incomplet , des_nature_projet = new.des_nature_projet , des_concepteur = new.des_concepteur , des_ancien_disp = new.des_ancien_disp , car_surface_dispo_m2 = new.car_surface_dispo_m2 , car_permea = new.car_permea , car_valeur_permea = new.car_valeur_permea , car_hydromorphie = new.car_hydromorphie , car_prof_app = new.car_prof_app , car_nappe_fond = new.car_nappe_fond , car_terrain_innondable = new.car_terrain_innondable , car_roche_sol = new.car_roche_sol , car_dist_hab = new.car_dist_hab , car_dist_lim_par = new.car_dist_lim_par , car_dist_veget = new.car_dist_veget , car_dist_puit = new.car_dist_puit , des_reamenage_terrain = new.des_reamenage_terrain , des_reamenage_immeuble = new.des_reamenage_immeuble , des_real_trvx = new.des_real_trvx , des_anc_ss_accord = new.des_anc_ss_accord , des_collecte_ep = new.des_collecte_ep , des_sep_ep_eu = new.des_sep_ep_eu , des_eu_nb_sortie = new.des_eu_nb_sortie , des_eu_tes_regards = new.des_eu_tes_regards , des_eu_pente_ecoul = new.des_eu_pente_ecoul , des_eu_regars_acces = new.des_eu_regars_acces , des_eu_alteration = new.des_eu_alteration , des_eu_ecoulement = new.des_eu_ecoulement , des_eu_depot_regard = new.des_eu_depot_regard , des_commentaire = new.des_commentaire , ts_conforme = new.ts_conforme , ts_type_effluent = new.ts_type_effluent , ts_capacite_bac = new.ts_capacite_bac , ts_nb_bac = new.ts_nb_bac , ts_coher_taille_util = new.ts_coher_taille_util , ts_aire_etanche = new.ts_aire_etanche , ts_aire_abri = new.ts_aire_abri , ts_ventilation = new.ts_ventilation , ts_cuve_etanche = new.ts_cuve_etanche , ts_val_comp = new.ts_val_comp , ts_ruissel_ep = new.ts_ruissel_ep , ts_absence_nuisance = new.ts_absence_nuisance , ts_respect_regles = new.ts_respect_regles , ts_commentaires = new.ts_commentaires , vt_primaire = new.vt_primaire , vt_secondaire = new.vt_secondaire , vt_prim_loc = new.vt_prim_loc , vt_prim_ht = new.vt_prim_ht , vt_prim_diam = new.vt_prim_diam , vt_prim_type_extract = new.vt_prim_type_extract , vt_second_loc = new.vt_second_loc , vt_second_ht = new.vt_second_ht , vt_second_diam = new.vt_second_diam , vt_second_type_extract = new.vt_second_type_extract , da_chasse_acces = new.da_chasse_acces , da_chasse_auto = new.da_chasse_auto , da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau , da_chasse_ok = new.da_chasse_ok , da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement , da_chasse_degradation = new.da_chasse_degradation , da_chasse_entretien = new.da_chasse_entretien , da_pr_loc_pompe = new.da_pr_loc_pompe , da_pr_acces = new.da_pr_acces , da_pr_nb_pompe = new.da_pr_nb_pompe , da_pr_nat_eau = new.da_pr_nat_eau , da_pr_ventilatio = new.da_pr_ventilatio , da_pr_ok = new.da_pr_ok , da_pr_alarme = new.da_pr_alarme , da_pr_clapet = new.da_pr_clapet , da_pr_etanche = new.da_pr_etanche , da_pr_branchement = new.da_pr_branchement , da_pr_dysfonctionnement = new.da_pr_dysfonctionnement , da_pr_degradation = new.da_pr_degradation , da_pr_entretien = new.da_pr_entretien , da_commentaires = new.da_commentaires , cl_avis = new.cl_avis , cl_classe_cbf = new.cl_classe_cbf , cl_commentaires = new.cl_commentaires , cl_date_avis = new.cl_date_avis , cl_auteur_avis = new.cl_auteur_avis , cl_date_prochain_control = new.cl_date_prochain_control , cl_montant = new.cl_montant , cl_facture = new.cl_facture , cl_facture_le = new.cl_facture_le , maj = new.maj , maj_date = new.maj_date , "create" = new."create" , create_date = new.create_date , cloturer = new.cloturer , photos_f = new.photos_f , fiche_f = new.fiche_f , rapport_f = new.rapport_f , schema_f = new.schema_f , documents_f = new.documents_f , plan_f = new.plan_f, cl_constat = new.cl_constat,cl_travaux = new.cl_travaux,vt_commentaire = new.vt_commentaire,tra_vm_geomembrane = new.tra_vm_geomembrane,emplacement_vt_secondaire = new.emplacement_vt_secondaire WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + -- Armand 06/02/2018 Optimisation de la vue v_installation #3103 + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, v_commune.nom AS commune, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, count(controle_1.*) AS nb_controle, controle_2.last_date_control, controle_2.cl_avis, controle_3.next_control, controle_4.cl_classe_cbf AS classement_installation FROM s_anc.installation LEFT JOIN s_anc.controle controle_1 ON installation.id_installation = controle_1.id_installation LEFT JOIN (SELECT b.last_date_control, b.id_installation, controle.cl_avis FROM (SELECT max(a.des_date_control) AS last_date_control, a.id_installation FROM (SELECT controle_a.des_date_control, controle_a.id_installation FROM s_anc.controle controle_a WHERE controle_a.des_date_control < now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_control = controle.des_date_control) controle_2 ON installation.id_installation = controle_2.id_installation LEFT JOIN (SELECT b.next_control, b.id_installation FROM (SELECT min(a.next_control) AS next_control, a.id_installation FROM (SELECT controle_b.id_installation, controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision AS next_control FROM s_anc.controle controle_b WHERE controle_b.des_interval_control > 0 AND controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision > now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation) controle_3 ON installation.id_installation = controle_3.id_installation LEFT JOIN (SELECT controle.cl_classe_cbf, b.id_installation FROM (SELECT max(a.des_date_control) AS last_date_controle, a.id_installation FROM (SELECT controle_c.des_date_control, controle_c.id_installation FROM s_anc.controle controle_c WHERE controle_c.des_date_control < now() AND controle_c.controle_type::text <> 'CONCEPTION'::text) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_controle = controle.des_date_control) controle_4 ON installation.id_installation = controle_4.id_installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) GROUP BY installation.id_installation, v_commune.nom, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, controle_2.cl_avis, controle_2.last_date_control, controle_3.next_control, controle_4.cl_classe_cbf; + -- Armand 06/02/2018 ajout des champs vt_prim_type_materiau et vt_second_type_materiau #3117 + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_prim_type_materiau'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'PVC,', 'PVC,'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'Amiante', 'Amiante'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'Fibro ciment', 'Fibro ciment'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_prim_type_materiau', 'Metal', 'Métal'); + INSERT INTO s_anc.nom_liste (id_nom_table, nom_liste) values ('controle', 'vt_second_type_materiau'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'PVC,', 'PVC,'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'Amiante', 'Amiante'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'Fibro ciment', 'Fibro ciment'); + INSERT INTO s_anc.param_liste (id_nom_table, nom_liste, valeur, alias) values ('controle', 'vt_second_type_materiau', 'Metal', 'Métal'); + ALTER TABLE s_anc.controle ADD COLUMN vt_prim_type_materiau character varying(50); + ALTER TABLE s_anc.controle ADD COLUMN vt_second_type_materiau character varying(50); + CREATE OR REPLACE VIEW s_anc.v_controle AS SELECT id_controle, controle.id_installation, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f, cl_constat, cl_travaux, vt_commentaire, tra_vm_geomembrane, emplacement_vt_secondaire, vt_prim_type_materiau, vt_second_type_materiau FROM s_anc.controle LEFT JOIN s_anc.installation ON controle.id_installation = installation.id_installation WHERE installation.id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) ; + ALTER TABLE s_anc.v_controle OWNER TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO u_vitis; + GRANT ALL ON TABLE s_anc.v_controle TO anc_admin; + GRANT ALL ON TABLE s_anc.v_controle TO anc_user; + CREATE OR REPLACE RULE insert_v_controle AS ON INSERT TO s_anc.v_controle DO INSTEAD INSERT INTO s_anc.controle (id_controle, id_installation, controle_type, controle_ss_type, des_date_control, des_interval_control, des_pers_control, des_agent_control, des_installateur, des_refus_visite, des_date_installation, des_date_recommande, des_numero_recommande, dep_date_depot, dep_liste_piece, dep_dossier_complet, dep_date_envoi_incomplet, des_nature_projet, des_concepteur, des_ancien_disp, car_surface_dispo_m2, car_permea, car_valeur_permea, car_hydromorphie, car_prof_app, car_nappe_fond, car_terrain_innondable, car_roche_sol, car_dist_hab, car_dist_lim_par, car_dist_veget, car_dist_puit, des_reamenage_terrain, des_reamenage_immeuble, des_real_trvx, des_anc_ss_accord, des_collecte_ep, des_sep_ep_eu, des_eu_nb_sortie, des_eu_tes_regards, des_eu_pente_ecoul, des_eu_regars_acces, des_eu_alteration, des_eu_ecoulement, des_eu_depot_regard, des_commentaire, ts_conforme, ts_type_effluent, ts_capacite_bac, ts_nb_bac, ts_coher_taille_util, ts_aire_etanche, ts_aire_abri, ts_ventilation, ts_cuve_etanche, ts_val_comp, ts_ruissel_ep, ts_absence_nuisance, ts_respect_regles, ts_commentaires, vt_primaire, vt_secondaire, vt_prim_loc, vt_prim_ht, vt_prim_diam, vt_prim_type_extract, vt_second_loc, vt_second_ht, vt_second_diam, vt_second_type_extract, da_chasse_acces, da_chasse_auto, da_chasse_pr_nat_eau, da_chasse_ok, da_chasse_dysfonctionnement, da_chasse_degradation, da_chasse_entretien, da_pr_loc_pompe, da_pr_acces, da_pr_nb_pompe, da_pr_nat_eau, da_pr_ventilatio, da_pr_ok, da_pr_alarme, da_pr_clapet, da_pr_etanche, da_pr_branchement, da_pr_dysfonctionnement, da_pr_degradation, da_pr_entretien, da_commentaires, cl_avis, cl_classe_cbf, cl_commentaires, cl_date_avis, cl_auteur_avis, cl_date_prochain_control, cl_montant, cl_facture, cl_facture_le, maj, maj_date, "create", create_date, cloturer, photos_f, fiche_f, rapport_f, schema_f, documents_f, plan_f,cl_constat,cl_travaux,vt_commentaire,tra_vm_geomembrane,emplacement_vt_secondaire, vt_prim_type_materiau, vt_second_type_materiau) VALUES (new.id_controle, new.id_installation, new.controle_type, new.controle_ss_type, new.des_date_control, new.des_interval_control, new.des_pers_control, new.des_agent_control, new.des_installateur, new.des_refus_visite, new.des_date_installation, new.des_date_recommande, new.des_numero_recommande, new.dep_date_depot, new.dep_liste_piece, new.dep_dossier_complet, new.dep_date_envoi_incomplet, new.des_nature_projet, new.des_concepteur, new.des_ancien_disp, new.car_surface_dispo_m2, new.car_permea, new.car_valeur_permea, new.car_hydromorphie, new.car_prof_app, new.car_nappe_fond, new.car_terrain_innondable, new.car_roche_sol, new.car_dist_hab, new.car_dist_lim_par, new.car_dist_veget, new.car_dist_puit, new.des_reamenage_terrain, new.des_reamenage_immeuble, new.des_real_trvx, new.des_anc_ss_accord, new.des_collecte_ep, new.des_sep_ep_eu, new.des_eu_nb_sortie, new.des_eu_tes_regards, new.des_eu_pente_ecoul, new.des_eu_regars_acces, new.des_eu_alteration, new.des_eu_ecoulement, new.des_eu_depot_regard, new.des_commentaire, new.ts_conforme, new.ts_type_effluent, new.ts_capacite_bac, new.ts_nb_bac, new.ts_coher_taille_util, new.ts_aire_etanche, new.ts_aire_abri, new.ts_ventilation, new.ts_cuve_etanche, new.ts_val_comp, new.ts_ruissel_ep, new.ts_absence_nuisance, new.ts_respect_regles, new.ts_commentaires, new.vt_primaire, new.vt_secondaire, new.vt_prim_loc, new.vt_prim_ht, new.vt_prim_diam, new.vt_prim_type_extract, new.vt_second_loc, new.vt_second_ht, new.vt_second_diam, new.vt_second_type_extract, new.da_chasse_acces, new.da_chasse_auto, new.da_chasse_pr_nat_eau, new.da_chasse_ok, new.da_chasse_dysfonctionnement, new.da_chasse_degradation, new.da_chasse_entretien, new.da_pr_loc_pompe, new.da_pr_acces, new.da_pr_nb_pompe, new.da_pr_nat_eau, new.da_pr_ventilatio, new.da_pr_ok, new.da_pr_alarme, new.da_pr_clapet, new.da_pr_etanche, new.da_pr_branchement, new.da_pr_dysfonctionnement, new.da_pr_degradation, new.da_pr_entretien, new.da_commentaires, new.cl_avis, new.cl_classe_cbf, new.cl_commentaires, new.cl_date_avis, new.cl_auteur_avis, new.cl_date_prochain_control, new.cl_montant, new.cl_facture, new.cl_facture_le, new.maj, new.maj_date, new."create", new.create_date, new.cloturer, new.photos_f, new.fiche_f, new.rapport_f, new.schema_f, new.documents_f, new.plan_f, new.cl_constat, new.cl_travaux, new.vt_commentaire, new.tra_vm_geomembrane, new.emplacement_vt_secondaire, new.vt_prim_type_materiau, new.vt_second_type_materiau) RETURNING controle.id_controle, controle.id_installation, (SELECT (id_com::text || '_anc_'::text) || id_installation AS num_dossier FROM s_anc.v_installation WHERE id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) AND controle.id_installation = v_installation.id_installation) AS num_dossier, controle.controle_type, controle.controle_ss_type, controle.des_date_control, controle.des_interval_control, controle.des_pers_control, controle.des_agent_control, controle.des_installateur, controle.des_refus_visite, controle.des_date_installation, controle.des_date_recommande, controle.des_numero_recommande, controle.dep_date_depot, controle.dep_liste_piece, controle.dep_dossier_complet, controle.dep_date_envoi_incomplet, controle.des_nature_projet, controle.des_concepteur, controle.des_ancien_disp, controle.car_surface_dispo_m2, controle.car_permea, controle.car_valeur_permea, controle.car_hydromorphie, controle.car_prof_app, controle.car_nappe_fond, controle.car_terrain_innondable, controle.car_roche_sol, controle.car_dist_hab, controle.car_dist_lim_par, controle.car_dist_veget, controle.car_dist_puit, controle.des_reamenage_terrain, controle.des_reamenage_immeuble, controle.des_real_trvx, controle.des_anc_ss_accord, controle.des_collecte_ep, controle.des_sep_ep_eu, controle.des_eu_nb_sortie, controle.des_eu_tes_regards, controle.des_eu_pente_ecoul, controle.des_eu_regars_acces, controle.des_eu_alteration, controle.des_eu_ecoulement, controle.des_eu_depot_regard, controle.des_commentaire, controle.ts_conforme, controle.ts_type_effluent, controle.ts_capacite_bac, controle.ts_nb_bac, controle.ts_coher_taille_util, controle.ts_aire_etanche, controle.ts_aire_abri, controle.ts_ventilation, controle.ts_cuve_etanche, controle.ts_val_comp, controle.ts_ruissel_ep, controle.ts_absence_nuisance, controle.ts_respect_regles, controle.ts_commentaires, controle.vt_primaire, controle.vt_secondaire, controle.vt_prim_loc, controle.vt_prim_ht, controle.vt_prim_diam, controle.vt_prim_type_extract, controle.vt_second_loc, controle.vt_second_ht, controle.vt_second_diam, controle.vt_second_type_extract, controle.da_chasse_acces, controle.da_chasse_auto, controle.da_chasse_pr_nat_eau, controle.da_chasse_ok, controle.da_chasse_dysfonctionnement, controle.da_chasse_degradation, controle.da_chasse_entretien, controle.da_pr_loc_pompe, controle.da_pr_acces, controle.da_pr_nb_pompe, controle.da_pr_nat_eau, controle.da_pr_ventilatio, controle.da_pr_ok, controle.da_pr_alarme, controle.da_pr_clapet, controle.da_pr_etanche, controle.da_pr_branchement, controle.da_pr_dysfonctionnement, controle.da_pr_degradation, controle.da_pr_entretien, controle.da_commentaires, controle.cl_avis, controle.cl_classe_cbf, controle.cl_commentaires, controle.cl_date_avis, controle.cl_auteur_avis, controle.cl_date_prochain_control, controle.cl_montant, controle.cl_facture, controle.cl_facture_le, controle.maj, controle.maj_date, controle."create", controle.create_date, controle.cloturer, controle.photos_f, controle.fiche_f, controle.rapport_f, controle.schema_f, controle.documents_f, controle.plan_f, controle.cl_constat, controle.cl_travaux, controle.vt_commentaire, controle.tra_vm_geomembrane, controle.emplacement_vt_secondaire, controle.vt_prim_type_materiau, controle.vt_second_type_materiau; + CREATE OR REPLACE RULE update_v_controle AS ON UPDATE TO s_anc.v_controle DO INSTEAD UPDATE s_anc.controle SET id_controle = new.id_controle, id_installation = new.id_installation, controle_type = new.controle_type, controle_ss_type = new.controle_ss_type, des_date_control = new.des_date_control, des_interval_control = new.des_interval_control, des_pers_control = new.des_pers_control, des_agent_control = new.des_agent_control, des_installateur = new.des_installateur, des_refus_visite = new.des_refus_visite, des_date_installation = new.des_date_installation, des_date_recommande = new.des_date_recommande, des_numero_recommande = new.des_numero_recommande, dep_date_depot = new.dep_date_depot, dep_liste_piece = new.dep_liste_piece, dep_dossier_complet = new.dep_dossier_complet, dep_date_envoi_incomplet = new.dep_date_envoi_incomplet, des_nature_projet = new.des_nature_projet, des_concepteur = new.des_concepteur, des_ancien_disp = new.des_ancien_disp, car_surface_dispo_m2 = new.car_surface_dispo_m2, car_permea = new.car_permea, car_valeur_permea = new.car_valeur_permea, car_hydromorphie = new.car_hydromorphie, car_prof_app = new.car_prof_app, car_nappe_fond = new.car_nappe_fond, car_terrain_innondable = new.car_terrain_innondable, car_roche_sol = new.car_roche_sol, car_dist_hab = new.car_dist_hab, car_dist_lim_par = new.car_dist_lim_par, car_dist_veget = new.car_dist_veget, car_dist_puit = new.car_dist_puit, des_reamenage_terrain = new.des_reamenage_terrain, des_reamenage_immeuble = new.des_reamenage_immeuble, des_real_trvx = new.des_real_trvx, des_anc_ss_accord = new.des_anc_ss_accord, des_collecte_ep = new.des_collecte_ep, des_sep_ep_eu = new.des_sep_ep_eu, des_eu_nb_sortie = new.des_eu_nb_sortie, des_eu_tes_regards = new.des_eu_tes_regards, des_eu_pente_ecoul = new.des_eu_pente_ecoul, des_eu_regars_acces = new.des_eu_regars_acces, des_eu_alteration = new.des_eu_alteration, des_eu_ecoulement = new.des_eu_ecoulement, des_eu_depot_regard = new.des_eu_depot_regard, des_commentaire = new.des_commentaire, ts_conforme = new.ts_conforme, ts_type_effluent = new.ts_type_effluent, ts_capacite_bac = new.ts_capacite_bac, ts_nb_bac = new.ts_nb_bac, ts_coher_taille_util = new.ts_coher_taille_util, ts_aire_etanche = new.ts_aire_etanche, ts_aire_abri = new.ts_aire_abri, ts_ventilation = new.ts_ventilation, ts_cuve_etanche = new.ts_cuve_etanche, ts_val_comp = new.ts_val_comp, ts_ruissel_ep = new.ts_ruissel_ep, ts_absence_nuisance = new.ts_absence_nuisance, ts_respect_regles = new.ts_respect_regles, ts_commentaires = new.ts_commentaires, vt_primaire = new.vt_primaire, vt_secondaire = new.vt_secondaire, vt_prim_loc = new.vt_prim_loc, vt_prim_ht = new.vt_prim_ht, vt_prim_diam = new.vt_prim_diam, vt_prim_type_extract = new.vt_prim_type_extract, vt_second_loc = new.vt_second_loc, vt_second_ht = new.vt_second_ht, vt_second_diam = new.vt_second_diam, vt_second_type_extract = new.vt_second_type_extract, da_chasse_acces = new.da_chasse_acces, da_chasse_auto = new.da_chasse_auto, da_chasse_pr_nat_eau = new.da_chasse_pr_nat_eau, da_chasse_ok = new.da_chasse_ok, da_chasse_dysfonctionnement = new.da_chasse_dysfonctionnement, da_chasse_degradation = new.da_chasse_degradation, da_chasse_entretien = new.da_chasse_entretien, da_pr_loc_pompe = new.da_pr_loc_pompe, da_pr_acces = new.da_pr_acces, da_pr_nb_pompe = new.da_pr_nb_pompe, da_pr_nat_eau = new.da_pr_nat_eau, da_pr_ventilatio = new.da_pr_ventilatio, da_pr_ok = new.da_pr_ok, da_pr_alarme = new.da_pr_alarme, da_pr_clapet = new.da_pr_clapet, da_pr_etanche = new.da_pr_etanche, da_pr_branchement = new.da_pr_branchement, da_pr_dysfonctionnement = new.da_pr_dysfonctionnement, da_pr_degradation = new.da_pr_degradation, da_pr_entretien = new.da_pr_entretien, da_commentaires = new.da_commentaires, cl_avis = new.cl_avis, cl_classe_cbf = new.cl_classe_cbf, cl_commentaires = new.cl_commentaires, cl_date_avis = new.cl_date_avis, cl_auteur_avis = new.cl_auteur_avis, cl_date_prochain_control = new.cl_date_prochain_control, cl_montant = new.cl_montant, cl_facture = new.cl_facture, cl_facture_le = new.cl_facture_le, maj = new.maj, maj_date = new.maj_date, "create" = new."create", create_date = new.create_date, cloturer = new.cloturer, photos_f = new.photos_f, fiche_f = new.fiche_f, rapport_f = new.rapport_f, schema_f = new.schema_f, documents_f = new.documents_f, plan_f = new.plan_f, cl_constat = new.cl_constat, cl_travaux = new.cl_travaux, vt_commentaire = new.vt_commentaire, tra_vm_geomembrane = new.tra_vm_geomembrane, emplacement_vt_secondaire = new.emplacement_vt_secondaire, vt_prim_type_materiau = new.vt_prim_type_materiau, vt_second_type_materiau = new.vt_second_type_materiau WHERE controle.id_controle = new.id_controle; + CREATE OR REPLACE RULE delete_v_controle AS ON DELETE TO s_anc.v_controle DO INSTEAD DELETE FROM s_anc.controle WHERE controle.id_controle = old.id_controle; + -- Armand 06/02/2018 Liste des contrôles: Afficher le numéro d'installation à la place de l'identifiant #3115 + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section schéma', 'anc_134'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_134','en','n° installation'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('anc_134','fr','n° installation'); + UPDATE s_vitis.vm_table_field SET name='num_dossier', label_id='anc_134' WHERE tab_id=(SELECT tab_id FROM s_vitis.vm_tab WHERE ressource_id='anc/controles') AND name='id_installation'; + -- Armand 06/02/2018 Liste des contrôles: Mettre en place le lien pour accéder à l'installation correspondante #3116 + INSERT INTO s_vitis.vm_table_field (table_field_id, name, sortable, resizeable, index, width, align, label_id, ressource_id, template, tab_id) VALUES ((SELECT nextval('s_vitis.seq_vm'::regclass)), 'id_installation', '1', '1', 10, 90, 'left', 'anc_68', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'anc_controle')); + UPDATE s_vitis.vm_table_field SET template='<div data-app-linker data-item-data="{{row.entity[col.field]}}" data-mode-id="anc_saisie" data-object="anc_saisie_anc_installation" data-mode="update" data-field-to-select="{{row.entity.id_installation}}" class="ui-grid-cell-contents"></div>' WHERE tab_id=(SELECT tab_id FROM s_vitis.vm_tab WHERE ressource_id='anc/controles') AND name='num_dossier'; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.01.01</version> + <code> + <![CDATA[ + -- Armand 03/04/2018 09:28 Suppression de la contraine not null empéchant la mise à jour des contrôles #3405 + ALTER TABLE s_anc.controle ALTER COLUMN des_interval_control DROP NOT NULL; + ALTER TABLE s_anc.controle ALTER COLUMN des_interval_control SET DEFAULT 0; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.02.00</version> + <code> + <![CDATA[ + -- Armand 25/05/2018 ANC : Filières agréées : rendre le champ dénomination de la filière au format liste + INSERT INTO s_anc.nom_liste(nom_liste, id_nom_table) VALUES ('fag_denom', 'filieres_agrees'); + -- Sofian 28/05/2017 12:11 Modification de la vue v_installation + CREATE OR REPLACE VIEW s_anc.v_installation AS SELECT installation.id_installation, installation.id_com, installation.id_parc, installation.parc_sup, installation.parc_parcelle_associees, installation.parc_adresse, installation.code_postal, installation.parc_commune, installation.prop_titre, installation.prop_nom_prenom, installation.prop_adresse, installation.prop_code_postal, installation.prop_commune, installation.prop_tel, installation.prop_mail, installation.bati_type, installation.bati_ca_nb_pp, installation.bati_ca_nb_eh, installation.bati_ca_nb_chambres, installation.bati_ca_nb_autres_pieces, installation.bati_ca_nb_occupant, installation.bati_nb_a_control, installation.bati_date_achat, installation.bati_date_mutation, installation.cont_zone_enjeu, installation.cont_zone_sage, installation.cont_zone_autre, installation.cont_zone_urba, installation.cont_zone_anc, installation.cont_alim_eau_potable, installation.cont_puits_usage, installation.cont_puits_declaration, installation.cont_puits_situation, installation.cont_puits_terrain_mitoyen, installation.observations, installation.maj, installation.maj_date, installation."create", installation.create_date, installation.archivage, installation.geom, installation.photo_f, installation.document_f, (installation.id_com::text || '_anc_'::text) || installation.id_installation AS num_dossier, v_commune.nom AS commune, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, count(controle_1.*) AS nb_controle, controle_2.last_date_control, controle_2.cl_avis, controle_3.next_control, controle_4.cl_classe_cbf AS classement_installation FROM s_anc.installation LEFT JOIN s_anc.controle controle_1 ON installation.id_installation = controle_1.id_installation LEFT JOIN (SELECT b.last_date_control, b.id_installation, controle.cl_avis FROM (SELECT max(a.des_date_control) AS last_date_control, a.id_installation FROM (SELECT controle_a.des_date_control, controle_a.id_installation FROM s_anc.controle controle_a WHERE controle_a.des_date_control < now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_control = controle.des_date_control) controle_2 ON installation.id_installation = controle_2.id_installation LEFT JOIN (SELECT b.next_control, b.id_installation FROM (SELECT min(a.next_control) AS next_control, a.id_installation FROM (SELECT controle_b.id_installation, controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision AS next_control FROM s_anc.controle controle_b WHERE controle_b.des_interval_control > 0 AND (controle_b.des_date_control + '1 year'::interval * controle_b.des_interval_control::double precision) > now()) a GROUP BY a.id_installation ORDER BY a.id_installation) b) controle_3 ON installation.id_installation = controle_3.id_installation LEFT JOIN (SELECT controle.cl_classe_cbf, b.id_installation FROM (SELECT max(a.des_date_control) AS last_date_controle, a.id_installation FROM (SELECT controle_c.des_date_control, controle_c.id_installation FROM s_anc.controle controle_c WHERE controle_c.des_date_control < now() AND controle_c.controle_type::text <> 'CONCEPTION'::text) a GROUP BY a.id_installation ORDER BY a.id_installation) b LEFT JOIN s_anc.controle ON b.id_installation = controle.id_installation AND b.last_date_controle = controle.des_date_control) controle_4 ON installation.id_installation = controle_4.id_installation LEFT JOIN s_cadastre.v_commune ON installation.id_com::bpchar = v_commune.id_com LEFT JOIN s_cadastre.v_vmap_parcelle_all_geom ON installation.id_parc::bpchar = v_vmap_parcelle_all_geom.id_par WHERE installation.id_com::text ~ similar_escape( (SELECT "user".restriction FROM s_vitis."user" WHERE "user".login::name = "current_user"()), NULL::text) GROUP BY installation.id_installation, v_commune.nom, v_vmap_parcelle_all_geom.section, v_vmap_parcelle_all_geom.parcelle, controle_2.cl_avis, controle_2.last_date_control, controle_3.next_control, controle_4.cl_classe_cbf; + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.03.00</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>init</type> + <version>2018.03.01</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + </queriesCollection> +</sqlQueries> diff --git a/web_service/ws/Adresse.class.inc b/web_service/ws/Adresse.class.inc deleted file mode 100755 index 9f907c38..00000000 --- a/web_service/ws/Adresse.class.inc +++ /dev/null @@ -1,74 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Adresse.class.inc - * \class Adresse - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Adresse php class - * - * This class defines operation for one Adresse - * - */ -class Adresse extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array(oid, 'ID_COM', 'IDU_', 'ID_PAR', 'CCODEP', 'CCODIR', 'CCOCOM', 'CCOPRE', 'CCOSEC', 'DNUPLA', 'CENR', 'DCNTPA', 'DSRPAR', 'DNUPRO', 'JDATAT', 'DREFLF', 'GPDL', 'CPRSECR', 'CCOSECR', 'DNUPLAR', 'DNUPDL', 'GURBPA', 'DPARPI', 'CCOARP', 'GPARNF', 'GPARBAT', 'CCOVOI', 'CCORIV', 'CCOCIF', 'CODE_INSEE', 'ID_RIVOLI', 'ID_DNUPRO', 'DNVOIRI', 'DINDIC', 'L_NATURE_VOIE', 'DVOILIB'); - } - - /** - * @SWG\Get(path="/adresses/{ID_PAR}", - * tags={"Adresse"}, - * summary="Get Adresse", - * description="Request to get Adresse by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_PAR", - * in="path", - * description="adresse id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/adresses") - * ) - * ) - */ - - /** - * get informations about Adresse - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['adresse'], 'ID_PAR'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Adresses.class.inc b/web_service/ws/Adresses.class.inc deleted file mode 100755 index 351ba82f..00000000 --- a/web_service/ws/Adresses.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file Adresses.class.inc - * \class Adresses - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Adresses php class - * - * This class defines Rest Api to Vmap Adresses - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Adresse.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Adresses extends Cadastre { - /** - * @SWG\Definition( - * definition="/adresses", - * allOf={ - * @SWG\Schema(ref="#/definitions/adresses") - * } - * ) - * * @SWG\Tag( - * name="Adresses", - * description="Operations about cadastre" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array(oid, 'ID_COM', 'IDU_', 'ID_PAR', 'CCODEP', 'CCODIR', 'CCOCOM', 'CCOPRE', 'CCOSEC', 'DNUPLA', 'CENR', 'DCNTPA', 'DSRPAR', 'DNUPRO', 'JDATAT', 'DREFLF', 'GPDL', 'CPRSECR', 'CCOSECR', 'DNUPLAR', 'DNUPDL', 'GURBPA', 'DPARPI', 'CCOARP', 'GPARNF', 'GPARBAT', 'CCOVOI', 'CCORIV', 'CCOCIF', 'CODE_INSEE', 'ID_RIVOLI', 'ID_DNUPRO', 'DNVOIRI', 'DINDIC', 'L_NATURE_VOIE', 'DVOILIB'); - } - - /** - * @SWG\Get(path="/adresses", - * tags={"Adresse"}, - * summary="Get Adresses", - * description="Request to get Adresses", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/adresses") - * ) - * ) - */ - - /** - * get Adresses - * @return Adresses - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['adresse'], 'ID_PAR'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Anc.class.inc b/web_service/ws/Anc.class.inc new file mode 100755 index 00000000..02e930b9 --- /dev/null +++ b/web_service/ws/Anc.class.inc @@ -0,0 +1,41 @@ +<?php + +require_once dirname($_SERVER['SCRIPT_FILENAME']) . "/class/vitis_lib/DbClass.class.inc"; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; +require_once 'vmlib/logUtil.inc'; + +class Anc extends Vitis { + + //Chemin du fichier de ressources contenant les requêtes SQL + var $sRessourcesFile = 'ws/anc/Anc.class.sql.inc'; + + /** + * Upload un document dans le ws_data du module Anc. + * @param type $sIndex + * @param type $sFolder + */ + function uploadDocument($sIndex, $sFolder) { + // Crée le répertoire si inexistant. + $sDirPath = $this->aProperties['ws_data_dir'] . '/anc/' . $sFolder . '/documents/' . $this->aValues["my_vitis_id"] . '/' . $sIndex . '/'; + if (!is_dir($sDirPath)) + mkdir($sDirPath, 0777, true); + // Ecrit le fichier. + if (!empty($_FILES[$sIndex])) { + $sErrorMessage = uploadFile($sIndex, "", $sDirPath . $_FILES[$sIndex]["name"], $_FILES[$sIndex]['size'] + 1); + if ($sErrorMessage != "") + writeToErrorLog($sErrorMessage); + } + else { + $sfileContentIndex = $sIndex . '_file'; + $sfileNameIndex = $sIndex . '_name'; + if (!empty($this->aValues[$sfileContentIndex])) { + + $this->aValues[$sIndex] = $this->aValues[$sfileNameIndex]; + $fp = fopen($sDirPath . $this->aValues[$sfileNameIndex], "w"); + fwrite($fp, $this->aValues[$sfileContentIndex]); + fclose($fp); + } + } + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Anc.class.sql.inc b/web_service/ws/Anc.class.sql.inc new file mode 100755 index 00000000..200a536f --- /dev/null +++ b/web_service/ws/Anc.class.sql.inc @@ -0,0 +1,22 @@ +<?php +//Définition des requêtes de l'api Vitis +$aSql['checkIP'] = "SELECT user_id, ip_constraint FROM [sSchemaFramework].user WHERE login ='[sLogin]'"; +$aSql['getGroups'] = "SELECT group_id FROM [sSchemaFramework].user_group WHERE user_id = [user_id]"; +$aSql['loginUnique'] = 'SELECT UPPER("login") FROM [sSchemaFramework]."user" WHERE UPPER("login")=UPPER(\'sLoginUser\')'; +$aSql['getLoginbyId'] = 'SELECT "login" FROM [sSchemaFramework]."user" WHERE user_id=[user_id]'; +$aSql['getTableColumn'] = 'SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = \'[sSchemaFramework]\' and table_name= \'[sTable]\''; +$aSql['getUserPrivileges'] = 'SELECT groname FROM pg_user s LEFT OUTER JOIN pg_group g on (s.usesysid = any(g.grolist) )inner join [sSchemaFramework].user on "user".login = usename WHERE user_id = [user_id]'; +$aSql['listDomain'] = 'SELECT distinct domain, alias FROM [sSchemaFramework].domain WHERE "type" = \'AD\''; +$aSql['createRolname'] = 'CREATE ROLE "vitis_[sDomain]" NOSUPERUSER INHERIT NOCREATEDB CREATEROLE;'; +$aSql['getInfoRolname'] = 'SELECT * FROM pg_catalog.pg_roles WHERE rolname = \'vitis_[sDomain]\''; +// Installations +$aSql['getInstallationControls'] = "SELECT id_controle FROM [sSchemaAnc].v_controle WHERE id_installation IN([idList]) LIMIT 1"; +$aSql['getContZoneUrbaIntersect'] = "SELECT [sColumn]::text FROM [sSchema].[sTable] WHERE ST_INTERSECTS([sTable].[sColumnGeom], [geom])"; + +// Suppressions des sous-objets +$aSql['getControleEvacuationEaux'] = "SELECT id_eva FROM [sSchemaAnc].v_evacuation_eaux WHERE id_controle IN([idList])"; +$aSql['getControleFilieresAgrees'] = "SELECT id_fag FROM [sSchemaAnc].v_filieres_agrees WHERE id_controle IN([idList])"; +$aSql['getControlePretraitements'] = "SELECT id_pretraitement FROM [sSchemaAnc].v_pretraitement WHERE id_controle IN([idList])"; +$aSql['getControleTraitements'] = "SELECT id_traitement FROM [sSchemaAnc].v_traitement WHERE id_controle IN([idList])"; +$aSql['getControleComposants'] = "SELECT id_composant FROM [sSchemaAnc].v_composant WHERE id_controle IN([idList])"; +?> \ No newline at end of file diff --git a/web_service/ws/CHANGE_LOG.txt b/web_service/ws/CHANGE_LOG.txt deleted file mode 100755 index 73f8e2a1..00000000 --- a/web_service/ws/CHANGE_LOG.txt +++ /dev/null @@ -1,8 +0,0 @@ - - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - + + - + VEREMES - Web Service Cadastre (Modèle Veremap) change log + - + + - +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - - diff --git a/web_service/ws/Cadastre.class.inc b/web_service/ws/Cadastre.class.inc deleted file mode 100755 index ea64c0e1..00000000 --- a/web_service/ws/Cadastre.class.inc +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -require_once dirname($_SERVER['SCRIPT_FILENAME']) . "/class/vitis_lib/DbClass.class.inc"; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vmap/Vmap.class.inc'; - -class Cadastre extends Vmap { - - //Chemin du fichier de ressources contenant les requêtes SQL - var $sRessourcesFile = 'Vitis.class.sql.inc'; - - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * Return true if the user have raghts on the "commune" else return false - * @param string $id_com - * @return boolean - */ - function haveCommuneRights($id_com) { - // Vérifie si on a les droits sur la commune - $aFilter = array( - 'column' => 'id_com', - 'compare_operator' => '=', - 'value' => $id_com - ); - $aCommunes = $this->vmapGet('public', $this->aProperties['cadastre']['views']['commune'], array('id_com'), $aFilter, array('limit' => 1)); - if (sizeOf($aCommunes) > 0) - return true; - else - return false; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/CadastreProperties.class.inc b/web_service/ws/CadastreProperties.class.inc deleted file mode 100755 index b205877d..00000000 --- a/web_service/ws/CadastreProperties.class.inc +++ /dev/null @@ -1,74 +0,0 @@ -<?php - -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; - -/** - * \file cadastreproperties.class.inc - * \class CadatsreProperties - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Properties php class - * - * This class defines the rest api for properties - * - */ -class CadastreProperties extends Vitis { - /** - * @SWG\Definition( - * definition="/cadastreproperties", - * allOf={ - * @SWG\Schema(ref="#/definitions/cadastreproperties") - * } - * ) - * * @SWG\Tag( - * name="properties", - * description="Operations about properties" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function properties($aPath, $aValues, $properties, $bShortcut = false) { - $this->aValues = $aValues; - $this->aPath = $aPath; - $this->aProperties = (object) $properties; - } - - /** - * @SWG\Get(path="/cadastreproperties", - * tags={"Properties"}, - * summary="Get the cadastre properties", - * description="Request to get properties", - * operationId="GET", - * produces={"application/json", "application/x-vm-json"}, - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitionscadastre/properties") - * ) - * ) - */ - - /** - * - * @return properties - */ - function GET() { - - $this->aFields['data'] = $this->aProperties->cadastre; - $aXmlRacineAttribute['status'] = 1; - $sMessage = $this->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - - return $sMessage; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Commune.class.inc b/web_service/ws/Commune.class.inc deleted file mode 100755 index 010fca07..00000000 --- a/web_service/ws/Commune.class.inc +++ /dev/null @@ -1,75 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Commune.class.inc - * \class Commune - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Commune php class - * - * This class defines operation for one Commune - * - */ -class Commune extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("id_com", "code_com", "nom", "geom"); - } - - /** - * @SWG\Get(path="/communes/{id_com}", - * tags={"Commune"}, - * summary="Get Commune", - * description="Request to get Commune by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="id_com", - * in="path", - * description="commune id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/communes") - * ) - * ) - */ - - /** - * get informations about Commune - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['commune'], 'id_com'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Communes.class.inc b/web_service/ws/Communes.class.inc deleted file mode 100755 index 88a95ecb..00000000 --- a/web_service/ws/Communes.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file Communes.class.inc - * \class Communes - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Communes php class - * - * This class defines Rest Api to Vmap Communes - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Commune.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Communes extends Cadastre { - /** - * @SWG\Definition( - * definition="/communes", - * allOf={ - * @SWG\Schema(ref="#/definitions/communes") - * } - * ) - * * @SWG\Tag( - * name="Communes", - * description="Operations about cadastre" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("id_com", "code_com", "nom", "geom"); - } - - /** - * @SWG\Get(path="/communes", - * tags={"Commune"}, - * summary="Get Communes", - * description="Request to get Communes", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/communes") - * ) - * ) - */ - - /** - * get Communes - * @return Communes - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['commune'], 'id_com'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Composant.class.inc b/web_service/ws/Composant.class.inc new file mode 100755 index 00000000..48a1f595 --- /dev/null +++ b/web_service/ws/Composant.class.inc @@ -0,0 +1,93 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Composant.class.inc + * \class Composant + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the Composant php class + * + * This class defines operation for one Composant + * + */ +class Composant extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/composants/{id_composant}", + * tags={"Composants"}, + * summary="Get Composant", + * description="Request to get Composant by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_composant", + * in="path", + * description="id_composant", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_composant", "id_composant"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_composant', 'id_composant', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_composant"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/ComposantTypeFeatureStyle.class.inc b/web_service/ws/ComposantTypeFeatureStyle.class.inc new file mode 100755 index 00000000..c805d926 --- /dev/null +++ b/web_service/ws/ComposantTypeFeatureStyle.class.inc @@ -0,0 +1,92 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file ComposantTypeFeatureStyle.class.inc + * \class ComposantTypeFeatureStyle + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the ComposantTypeFeatureStyle php class + * + * This class defines operation for one ComposantTypeFeatureStyle + * + */ +class ComposantTypeFeatureStyle extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/composanttypefeaturestyles/{composant_type}", + * tags={"ComposantTypeFeatureStyles"}, + * summary="Get ComposantTypeFeatureStyle", + * description="Request to get ComposantTypeFeatureStyle by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="composant_type", + * in="path", + * description="composant_type", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="ComposantTypeFeatureStyle Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_composant_type_feature_style", "composant_type"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_composant_type_feature_style', 'composant_type', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["composant_type"] = $this->aValues["my_vitis_id"]; + } + } +} + +?> \ No newline at end of file diff --git a/web_service/ws/ComposantTypeFeatureStyles.class.inc b/web_service/ws/ComposantTypeFeatureStyles.class.inc new file mode 100755 index 00000000..3a91900e --- /dev/null +++ b/web_service/ws/ComposantTypeFeatureStyles.class.inc @@ -0,0 +1,266 @@ +<?php + +/** + * \file ComposantTypeFeatureStyles.class.inc + * \class ComposantTypeFeatureStyles + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the ComposantTypeFeatureStyles php class + * + * This class defines Rest Api to Vitis ComposantTypeFeatureStyles + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'ComposantTypeFeatureStyle.class.inc'; + + +class ComposantTypeFeatureStyles extends Anc { + /** + * @SWG\Definition( + * definition="/composanttypefeaturestyles", + * allOf={ + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * } + * ) + * * @SWG\Tag( + * name="ComposantTypeFeatureStyles", + * description="Operations about ComposantTypeFeatureStyles" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/composanttypefeaturestyles", + * tags={"ComposantTypeFeatureStyles"}, + * summary="Get ComposantTypeFeatureStyles", + * description="Request to get ComposantTypeFeatureStyles", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="ComposantTypeFeatureStyle Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * get ComposantTypeFeatureStyles + * @return ComposantTypeFeatureStyles + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_composant_type_feature_style", "composant_type"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/composanttypefeaturestyles", + * tags={"ComposantTypeFeatureStyles"}, + * summary="Add composant", + * description="Request to add ComposantTypeFeatureStyles", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * insert ComposantTypeFeatureStyle + * @return id of the ComposantTypeFeatureStyle created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_composant_type_feature_style', null, 'composant_type'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/composanttypefeaturestyles/{composant_type}", + * tags={"ComposantTypeFeatureStyles"}, + * summary="update ComposantTypeFeatureStyles", + * description="Request to update ComposantTypeFeatureStyles", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="ComposantTypeFeatureStyle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="composant_type", + * in="path", + * description="id of the ComposantTypeFeatureStyles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * update composanttypefeaturestyles + * @return id of composanttypefeaturestyles updated or error object if a composanttypefeaturestyles is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_composant_type_feature_style', 'composant_type'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/composanttypefeaturestyles", + * tags={"ComposantTypeFeatureStyles"}, + * summary="delete ComposantTypeFeatureStyles", + * description="Request to delete ComposantTypeFeatureStyles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the composant", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + /** + * @SWG\Delete(path="/composanttypefeaturestyles/{composant_type}", + * tags={"ComposantTypeFeatureStyles"}, + * summary="delete ComposantTypeFeatureStyles", + * description="Request to delete ComposantTypeFeatureStyles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="ComposantTypeFeatureStyle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="composant_type", + * in="path", + * description="id of the ComposantTypeFeatureStyles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composanttypefeaturestyles") + * ) + * ) + */ + + /** + * delete composanttypefeaturestyles + * @return id of composanttypefeaturestyles deleted or error object if a composanttypefeaturestyles is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_composant_type_feature_style', 'composant_type'); + return $aReturn['sMessage']; + } +} + +?> \ No newline at end of file diff --git a/web_service/ws/Composants.class.inc b/web_service/ws/Composants.class.inc new file mode 100755 index 00000000..fbbfed9b --- /dev/null +++ b/web_service/ws/Composants.class.inc @@ -0,0 +1,267 @@ +<?php + +/** + * \file Composants.class.inc + * \class Composants + * + * \author Armand Bahi <armand.bahi@veremes.com>. + * + * \brief This file contains the Composants php class + * + * This class defines Rest Api to Vitis Composants + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Composant.class.inc'; + + +class Composants extends Anc { + /** + * @SWG\Definition( + * definition="/composants", + * allOf={ + * @SWG\Schema(ref="#/definitions/composants") + * } + * ) + * * @SWG\Tag( + * name="Composants", + * description="Operations about Composants" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array( "id_installation", "id_controle", "id_composant", "composant_type", "label", "observations", "size", "rotation", "feature_style_id", "draw_color", "draw_outline_color", "draw_size", "draw_dash", "draw_symbol", "draw_rotation", "image", "text_font", "text_color", "text_outline_color", "text_size", "text_outline_size", "text_offset_x", "text_offset_y", "text_rotation", "text_text", "ST_AsGeoJSON(ST_Transform(geom, 4326)) as geom"); + } + + /** + * @SWG\Get(path="/composants", + * tags={"Composants"}, + * summary="Get Composants", + * description="Request to get Composants", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * get Composants + * @return Composants + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_composant", "id_composant"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/composants", + * tags={"Composants"}, + * summary="Add composant", + * description="Request to add Composants", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * insert composant + * @return id of the composant created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_composant', null, 'id_composant'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/composants/{id_composant}", + * tags={"Composants"}, + * summary="update Composants", + * description="Request to update Composants", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Composant token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_composant", + * in="path", + * description="id of the Composants", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * update composants + * @return id of composants updated or error object if a composants is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_composant', 'id_composant'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/composants", + * tags={"Composants"}, + * summary="delete Composants", + * description="Request to delete Composants", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the composant", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="composant Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + /** + * @SWG\Delete(path="/composants/{id_composant}", + * tags={"Composants"}, + * summary="delete Composants", + * description="Request to delete Composants", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Composant token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_composant", + * in="path", + * description="id of the Composants", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/composants") + * ) + * ) + */ + + /** + * delete composants + * @return id of composants deleted or error object if a composants is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_composant', 'id_composant'); + return $aReturn['sMessage']; + } +} + +?> \ No newline at end of file diff --git a/web_service/ws/Controle.class.inc b/web_service/ws/Controle.class.inc new file mode 100755 index 00000000..0aafbd8a --- /dev/null +++ b/web_service/ws/Controle.class.inc @@ -0,0 +1,263 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once __DIR__ . '/Composants.class.inc'; +require_once __DIR__ . '/ComposantTypeFeatureStyles.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Controle.class.inc + * \class Controle + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Controle php class + * + * This class defines operation for one Controle + * + */ +class Controle extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/controles/{id_controle}", + * tags={"Controles"}, + * summary="Get Controle", + * description="Request to get Controle by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_controle", + * in="path", + * description="id_controle", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_controle", "id_controle"); + // Url des fichiers. + $sWsDataUrl = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_controle/documents/' . $this->aValues["my_vitis_id"]; + if (!empty($this->aFields['photos_f'])) + $this->aFields['photos_f'] = $sWsDataUrl . '/photos_f/' . $this->aFields['photos_f']; + if (!empty($this->aFields['fiche_f'])) + $this->aFields['fiche_f'] = $sWsDataUrl . '/fiche_f/' . $this->aFields['fiche_f']; + if (!empty($this->aFields['rapport_f'])) + $this->aFields['rapport_f'] = $sWsDataUrl . '/rapport_f/' . $this->aFields['rapport_f']; + if (!empty($this->aFields['schema_f'])) + $this->aFields['schema_f'] = $sWsDataUrl . '/schema_f/' . $this->aFields['schema_f']; + if (!empty($this->aFields['documents_f'])) + $this->aFields['documents_f'] = $sWsDataUrl . '/documents_f/' . $this->aFields['documents_f']; + if (!empty($this->aFields['plan_f'])) + $this->aFields['plan_f'] = $sWsDataUrl . '/plan_f/' . $this->aFields['plan_f']; + + // Champ sur lequel sera fait le typage pour changer les styles etc.. + $this->sTyleField = 'composant_type'; + // custom_form du controle pour map_workbench + $this->getCustomFormInfos(); + // Composants du controle + $this->getComposants(); + } + + /** + * Récupère au format GeoJSON les composants à afficher + */ + function getComposants() { + $aPath = array('anc', 'composants'); + $aValues = $this->aValues; + unset($aValues['my_vitis_id']); + unset($aValues['attributs']); + //$aValues['attributs'] = 'composant_type|label|observations||geom'; + $aValues['filter'] = '{"column":"id_controle","compare_operator":"=","value":"' . $this->aFields['id_controle'] . '"}'; + $oComposants = new Composants($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->GET(); + $aComposants = array(); + if (!empty($oComposants->aObjects)) { + for ($i = 0; $i < count($oComposants->aObjects); $i++) { + if (!empty($oComposants->aObjects[$i]->aFields)) { + array_push($aComposants, $oComposants->aObjects[$i]->aFields); + } + } + } + $aFeatures = array(); + for ($i = 0; $i < count($aComposants); $i++) { + if (!empty($aComposants[$i]['geom'])) { + $aGeom = json_decode($aComposants[$i]['geom'], true); + $aAttributes = $aComposants[$i]; + unset($aAttributes['geom']); + $aTmpFeature = array( + 'type' => 'Feature', + 'geometry' => $aGeom, + 'properties' => array( + 'style' => $this->getGeoJSONStyle($aAttributes), + 'attributes' => $aAttributes + ) + ); + array_push($aFeatures, $aTmpFeature); + } + } + if (!empty($aFeatures)) { + $this->aFields['composants'] = json_encode(array( + 'type' => 'FeatureCollection', + 'features' => $aFeatures + )); + } + } + + /** + * Récupère les informations à merger dans le custom_form + */ + function getCustomFormInfos() { + $aPath = array('anc', 'composanttypefeaturestyles'); + $aValues = $this->aValues; + unset($aValues['my_vitis_id']); + unset($aValues['filter']); + unset($aValues['attributs']); + $oComposantTypeFeatureStyles = new ComposantTypeFeatureStyles($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposantTypeFeatureStyles->GET(); + if (!empty($oComposantTypeFeatureStyles->aObjects)) { + $this->aFields['custom_form'] = array( + 'featureStructure' => array( + 'field' => $this->sTyleField, + 'types' => array() + ) + ); + for ($i = 0; $i < count($oComposantTypeFeatureStyles->aObjects); $i++) { + if (!empty($oComposantTypeFeatureStyles->aObjects[$i]->aFields)) { + $aStyle = $oComposantTypeFeatureStyles->aObjects[$i]->aFields; + if (!empty($aStyle[$this->sTyleField])) { + $this->aFields['custom_form']['featureStructure']['types'][$aStyle[$this->sTyleField]] = array( + 'style' => $this->getGeoJSONStyle($aStyle), + 'geometryType' => $aStyle['feature_type'] + ); + } + } + } + } + } + + /** + * Returns a GeoJSON format style from an array format style + * @param array $aStyle + * @return array + */ + function getGeoJSONStyle($aStyle) { + $aGeoJSONStyle = array( + 'draw' => array(), + 'text' => array() + ); + // Draw + if (!empty($aStyle['draw_color'])) { + $aGeoJSONStyle['draw']['color'] = $aStyle['draw_color']; + } + if (!empty($aStyle['draw_outline_color'])) { + $aGeoJSONStyle['draw']['outline_color'] = $aStyle['draw_outline_color']; + } + if (!empty($aStyle['draw_size'])) { + $aGeoJSONStyle['draw']['size'] = $aStyle['draw_size']; + } + if (!empty($aStyle['draw_dash'])) { + $aGeoJSONStyle['draw']['dash'] = $aStyle['draw_dash']; + } + if (!empty($aStyle['draw_symbol'])) { + $aGeoJSONStyle['draw']['symbol'] = $aStyle['draw_symbol']; + } + if (!empty($aStyle['draw_rotation'])) { + $aGeoJSONStyle['draw']['rotation'] = $aStyle['draw_rotation']; + } + if (!empty($aStyle['image'])) { + $aGeoJSONStyle['draw']['image'] = $aStyle['image']; + } + // Text + if (!empty($aStyle['text_font'])) { + $aGeoJSONStyle['text']['font'] = $aStyle['text_font']; + } + if (!empty($aStyle['text_color'])) { + $aGeoJSONStyle['text']['color'] = $aStyle['text_color']; + } + if (!empty($aStyle['text_outline_color'])) { + $aGeoJSONStyle['text']['outline_color'] = $aStyle['text_outline_color']; + } + if (!empty($aStyle['text_size'])) { + $aGeoJSONStyle['text']['size'] = $aStyle['text_size']; + } + if (!empty($aStyle['text_outline_size'])) { + $aGeoJSONStyle['text']['outline_size'] = $aStyle['text_outline_size']; + } + if (!empty($aStyle['text_offset_x'])) { + $aGeoJSONStyle['text']['offsetX'] = $aStyle['text_offset_x']; + } + if (!empty($aStyle['text_offset_y'])) { + $aGeoJSONStyle['text']['offsetY'] = $aStyle['text_offset_y']; + } + if (!empty($aStyle['text_rotation'])) { + $aGeoJSONStyle['text']['rotation'] = $aStyle['text_rotation']; + } + if (!empty($aStyle['text_text'])) { + $aGeoJSONStyle['text']['text'] = $aStyle['text_text']; + } + // Vide draw ou text si ils sont vides + if (empty($aGeoJSONStyle['draw'])) { + unset($aGeoJSONStyle['draw']); + } + if (empty($aGeoJSONStyle['text'])) { + unset($aGeoJSONStyle['text']); + } + return $aGeoJSONStyle; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_controle', 'id_controle', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_controle"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Controles.class.inc b/web_service/ws/Controles.class.inc new file mode 100755 index 00000000..51f0e88c --- /dev/null +++ b/web_service/ws/Controles.class.inc @@ -0,0 +1,719 @@ +<?php + +/** + * \file Controles.class.inc + * \class Controles + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Controles php class + * + * This class defines Rest Api to Vitis Controles + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Controle.class.inc'; +require_once 'Evacuation_eauxs.class.inc'; +require_once 'Filieres_agrees.class.inc'; +require_once 'Pretraitements.class.inc'; +require_once 'Traitements.class.inc'; +require_once 'Composants.class.inc'; + +class Controles extends Anc { + /** + * @SWG\Definition( + * definition="/controles", + * allOf={ + * @SWG\Schema(ref="#/definitions/controles") + * } + * ) + * * @SWG\Tag( + * name="Controles", + * description="Operations about Controles" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/controles", + * tags={"Controles"}, + * summary="Get Controles", + * description="Request to get Controles", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * get Controles + * @return Controles + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_controle", "id_controle"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/controles", + * tags={"Controles"}, + * summary="Add controle", + * description="Request to add Controles", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * insert controle + * @return id of the controle created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + //if (empty($this->aValues['des_date_control'])) + //$this->aValues['des_date_control'] = date('Y-m-d'); + if (empty($this->aValues['des_interval_control'])) + $this->aValues['des_interval_control'] = 0; + // Sauve le nom des fichiers. + if (!empty($_FILES['photos_f'])) + $this->aValues['photos_f'] = $_FILES['photos_f']["name"]; + if (!empty($_FILES['fiche_f'])) + $this->aValues['fiche_f'] = $_FILES['fiche_f']["name"]; + if (!empty($_FILES['rapport_f'])) + $this->aValues['rapport_f'] = $_FILES['rapport_f']["name"]; + if (!empty($_FILES['schema_f'])) + $this->aValues['schema_f'] = $_FILES['schema_f']["name"]; + if (!empty($_FILES['documents_f'])) + $this->aValues['documents_f'] = $_FILES['documents_f']["name"]; + if (!empty($_FILES['plan_f'])) + $this->aValues['plan_f'] = $_FILES['plan_f']["name"]; + // Conversion des dates + $aDates = array('cl_date_avis', 'cl_facture_le', 'des_date_installation', 'des_date_recommande', 'dep_date_depot', 'dep_date_envoi_incomplet', 'des_date_control'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + // + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_controle', $this->aProperties['schema_anc'] . '.controle_id_controle_seq', 'id_controle'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('rapport_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_controle'); + // + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/controles/{id_controle}", + * tags={"Controles"}, + * summary="update Controles", + * description="Request to update Controles", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Controle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_controle", + * in="path", + * description="id of the Controles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * update controles + * @return id of controles updated or error object if a controles is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('rapport_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_controle'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_controle'); + + // Si il y a des composants à ajouter/supprimer/mettre à jour + if (!empty($this->aValues['composants'])) { + + // Supprime les composants liés au controle + $this->deleteControleComposants($this->aPath[2]); + + // Récupère les composants au bon format + $aComposants = $this->getTableFormedComposants(json_decode($this->aValues['composants'], true)); + + // Inserre les composants + $this->createComposants($aComposants); + } + // Conversion des dates + $aDates = array('cl_date_avis', 'cl_facture_le', 'des_date_control', 'des_date_installation', 'des_date_recommande', 'dep_date_depot', 'dep_date_envoi_incomplet'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + // + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_controle', 'id_controle'); + return $aReturn['sMessage']; + } + + /** + * Get the composant on table format + * @param array $aGeoJSONComposants + * @return array + */ + function getTableFormedComposants($aGeoJSONComposants) { + $aComposants = array(); + + for ($i = 0; $i < count($aGeoJSONComposants['features']); $i++) { + + $aTmpComposant = array(); + + // Récupère la géométrie en EWKT + if (!empty($aGeoJSONComposants['features'][$i]['geometry'])) { + $sSql = 'SELECT ST_AsEWKT(ST_SetSRID(ST_GeomFromGeoJSON([geom]), 4326)) as ewktgeom'; + $aSQLParams = array('geom' => array('value' => json_encode($aGeoJSONComposants['features'][$i]['geometry']), 'type' => 'geometry')); + $oPDOresult = $this->oConnection->oBd->executeWithParams($sSql, $aSQLParams); + if (!$this->oConnection->oBd->enErreur()) { + while ($aLine = $this->oConnection->oBd->ligneSuivante($oPDOresult)) { + $aTmpComposant['geom'] = $aLine['ewktgeom']; + } + } + } + + if (!empty($aGeoJSONComposants['features'][$i]['properties'])) { + if (!empty($aGeoJSONComposants['features'][$i]['properties']['attributes'])) { + foreach ($aGeoJSONComposants['features'][$i]['properties']['attributes'] as $key => $value) { + $aTmpComposant[$key] = $value; + } + } + if (!empty($aGeoJSONComposants['features'][$i]['properties']['style'])) { + if (!empty($aGeoJSONComposants['features'][$i]['properties']['style']['draw'])) { + foreach ($aGeoJSONComposants['features'][$i]['properties']['style']['draw'] as $key => $value) { + $aTmpComposant['draw_' . $key] = $value; + } + } + if (!empty($aGeoJSONComposants['features'][$i]['properties']['style']['text'])) { + foreach ($aGeoJSONComposants['features'][$i]['properties']['style']['text'] as $key => $value) { + $aTmpComposant['text_' . $key] = $value; + } + } + } + } + array_push($aComposants, $aTmpComposant); + } + + + return $aComposants; + } + + /** + * Insert the composants defined in $aComposants + * @param array $aComposants + */ + function createComposants($aComposants) { + for ($i = 0; $i < count($aComposants); $i++) { + $aPath = array('anc', 'composants'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'id_controle' => $this->aPath[2] + ); + $aValues = array_merge($aValues, $aComposants[$i]); + $oComposants = new Composants($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->POST(); + } + } + + /** + * @SWG\Delete(path="/controles", + * tags={"Controles"}, + * summary="delete Controles", + * description="Request to delete Controles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the controle", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="controle Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + /** + * @SWG\Delete(path="/controles/{id_controle}", + * tags={"Controles"}, + * summary="delete Controles", + * description="Request to delete Controles", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Controle token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_controle", + * in="path", + * description="id of the Controles", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/controles") + * ) + * ) + */ + + /** + * delete controles + * @return id of controles deleted or error object if a controles is not deleted + */ + function DELETE() { + require $this->sRessourcesFile; + + // Supprime les objets dépendants + $this->deleteControleDependencies($this->aValues['idList']); + +// $aParams['idControle'] = array('value' => $this->aValues['id_controle'], 'type' => 'integer'); +// $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getInstallationControls'], $aParams); +// if ($this->oConnection->oBd->enErreur()) { +// $aReturn = array('status' => 0, 'message' => $this->oConnection->oBd->getBDMessage(), 'error_code' => 1); +// return json_encode($aReturn); +// } + + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_controle', 'id_controle'); + return $aReturn['sMessage']; + } + + /** + * Delete the controle dependencies + * @param string $sIdControles + */ + function deleteControleDependencies($sIdControles) { + + // Suppression dpépendance s_anc.evacuation_eaux + $this->deleteControleEvacuationEaux($sIdControles); + + // Suppression dpépendance s_anc.filieres_agrees + $this->deleteControleFilieresAgrees($sIdControles); + + // Suppression dpépendance s_anc.pretraitement + $this->deleteControlePretraitements($sIdControles); + + // Suppression dpépendance s_anc.traitement + $this->deleteControleTraitements($sIdControles); + + // Suppression dpépendance s_anc.composant + $this->deleteControleComposants($sIdControles); + } + + /** + * Get the composant's evacuationEaux + * @param string $sIdControles + * @return array|null + */ + function getControleEvacuationEaux($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleEvacuationEaux'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aEvacuationEaux = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aEvacuationEaux; + } + } + + /** + * Get the composant's FilieresAgrees + * @param string $sIdControles + * @return array|null + */ + function getControleFilieresAgrees($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleFilieresAgrees'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aFilieresAgrees = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aFilieresAgrees; + } + } + + /** + * Get the composant's Pretraitement + * @param string $sIdControles + * @return array|null + */ + function getControlePretraitements($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControlePretraitements'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aPretraitement = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aPretraitement; + } + } + + /** + * Get the composant's Traitement + * @param string $sIdControles + * @return array|null + */ + function getControleTraitements($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleTraitements'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aTraitement = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aTraitement; + } + } + + /** + * Get the composant's Composant + * @param string $sIdControles + * @return array|null + */ + function getControleComposants($sIdControles) { + require $this->sRessourcesFile; + + $aParams = array(); + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $sIdControles, 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getControleComposants'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + return null; + } else { + $aComposant = $this->oConnection->oBd->getResultTableAssoc($oPDOresult); + return $aComposant; + } + } + + /** + * Delete the composant's EvacuationEaux + * @param string $sIdControles + */ + function deleteControleEvacuationEaux($sIdControles) { + + $aEvacuationEaux = $this->getControleEvacuationEaux($sIdControles); + if (!empty($aEvacuationEaux)) { + if (count($aEvacuationEaux) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aEvacuationEaux); $i++) { + if (!empty($aEvacuationEaux[$i]['id_eva'])) { + array_push($aIdList, $aEvacuationEaux[$i]['id_eva']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Evacuation_eauxs($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's FilieresAgrees + * @param string $sIdControles + */ + function deleteControleFilieresAgrees($sIdControles) { + + $aFilieresAgrees = $this->getControleFilieresAgrees($sIdControles); + + if (!empty($aFilieresAgrees)) { + if (count($aFilieresAgrees) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aFilieresAgrees); $i++) { + if (!empty($aFilieresAgrees[$i]['id_fag'])) { + array_push($aIdList, $aFilieresAgrees[$i]['id_fag']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Filieres_agrees($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's Pretraitement + * @param string $sIdControles + */ + function deleteControlePretraitements($sIdControles) { + + $aPretraitement = $this->getControlePretraitements($sIdControles); + + if (!empty($aPretraitement)) { + if (count($aPretraitement) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aPretraitement); $i++) { + if (!empty($aPretraitement[$i]['id_pretraitement'])) { + array_push($aIdList, $aPretraitement[$i]['id_pretraitement']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Pretraitements($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's Traitement + * @param string $sIdControles + */ + function deleteControleTraitements($sIdControles) { + + $aTraitement = $this->getControleTraitements($sIdControles); + + if (!empty($aTraitement)) { + if (count($aTraitement) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aTraitement); $i++) { + if (!empty($aTraitement[$i]['id_traitement'])) { + array_push($aIdList, $aTraitement[$i]['id_traitement']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Traitements($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + + /** + * Delete the composant's Composant + * @param string $sIdControles + */ + function deleteControleComposants($sIdControles) { + + $aComposant = $this->getControleComposants($sIdControles); + + if (!empty($aComposant)) { + if (count($aComposant) > 0) { + $sIdList = ''; + $aIdList = array(); + for ($i = 0; $i < count($aComposant); $i++) { + if (!empty($aComposant[$i]['id_composant'])) { + array_push($aIdList, $aComposant[$i]['id_composant']); + } + } + $sIdList = join('|', $aIdList); + $aPath = array('anc', 'evacuation_eauxs'); + $aValues = array( + 'token' => $this->aValues['token'], + 'output' => $this->aValues['output'], + 'sEncoding' => $this->aValues['sEncoding'], + 'sSourceEncoding' => $this->aValues['sSourceEncoding'], + 'xslstylesheet' => $this->aValues['xslstylesheet'], + 'module' => $this->aValues['module'], + 'idList' => $sIdList, + ); + $oComposants = new Composants($aPath, $aValues, $this->aProperties, $this->oConnection); + $oComposants->DELETE(); + } + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/DescriptionParcelle.class.inc b/web_service/ws/DescriptionParcelle.class.inc deleted file mode 100755 index dcc9bd6a..00000000 --- a/web_service/ws/DescriptionParcelle.class.inc +++ /dev/null @@ -1,74 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file DescriptionParcelle.class.inc - * \class DescriptionParcelle - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the DescriptionParcelle php class - * - * This class defines operation for one DescriptionParcelle - * - */ -class DescriptionParcelle extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array(oid, 'ID_COM', 'IDU_', 'ID_PAR', 'CCODEP', 'CCODIR', 'CCOCOM', 'CCOPRE', 'CCOSEC', 'DNUPLA', 'CENR', 'DCNTPA', 'DSRPAR', 'DNUPRO', 'JDATAT', 'DREFLF', 'GPDL', 'CPRSECR', 'CCOSECR', 'DNUPLAR', 'DNUPDL', 'GURBPA', 'DPARPI', 'CCOARP', 'GPARNF', 'GPARBAT', 'CCOVOI', 'CCORIV', 'CCOCIF', 'CODE_INSEE', 'ID_RIVOLI', 'ID_DNUPRO', 'DNVOIRI', 'DINDIC', 'L_NATURE_VOIE', 'DVOILIB'); - } - - /** - * @SWG\Get(path="/descriptionparcelles/{ID_PAR}", - * tags={"Parcelle"}, - * summary="Get DescriptionParcelle", - * description="Request to get DescriptionParcelle by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_PAR", - * in="path", - * description="descriptionparcelle id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/descriptionparcelles") - * ) - * ) - */ - - /** - * get informations about DescriptionParcelle - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['description_parcelle'], 'ID_PAR'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/DescriptionParcelles.class.inc b/web_service/ws/DescriptionParcelles.class.inc deleted file mode 100755 index 11421877..00000000 --- a/web_service/ws/DescriptionParcelles.class.inc +++ /dev/null @@ -1,132 +0,0 @@ -<?php - -/** - * \file DescriptionParcelles.class.inc - * \class DescriptionParcelles - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the DescriptionParcelles php class - * - * This class defines Rest Api to Vmap DescriptionParcelles - * - */ -require_once 'Cadastre.class.inc'; -require_once 'DescriptionParcelle.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class DescriptionParcelles extends Cadastre { - /** - * @SWG\Definition( - * definition="/descriptionparcelles", - * allOf={ - * @SWG\Schema(ref="#/definitions/descriptionparcelles") - * } - * ) - * * @SWG\Tag( - * name="DescriptionParcelles", - * description="Operations about descriptionparcelles" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array(oid, 'ID_COM', 'IDU_', 'ID_PAR', 'CCODEP', 'CCODIR', 'CCOCOM', 'CCOPRE', 'CCOSEC', 'DNUPLA', 'CENR', 'DCNTPA', 'DSRPAR', 'DNUPRO', 'JDATAT', 'DREFLF', 'GPDL', 'CPRSECR', 'CCOSECR', 'DNUPLAR', 'DNUPDL', 'GURBPA', 'DPARPI', 'CCOARP', 'GPARNF', 'GPARBAT', 'CCOVOI', 'CCORIV', 'CCOCIF', 'CODE_INSEE', 'ID_RIVOLI', 'ID_DNUPRO', 'DNVOIRI', 'DINDIC', 'L_NATURE_VOIE', 'DVOILIB'); - } - - /** - * @SWG\Get(path="/descriptionparcelles", - * tags={"Parcelle"}, - * summary="Get DescriptionParcelles", - * description="Request to get DescriptionParcelles", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/descriptionparcelles") - * ) - * ) - */ - - /** - * get DescriptionParcelles - * @return DescriptionParcelles - */ - function GET() { - $this->aValues['filter'] = str_replace("id_par", "ID_PAR", $this->aValues['filter']); - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['description_parcelle'], 'ID_PAR'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/DownloadRapport.class.inc b/web_service/ws/DownloadRapport.class.inc deleted file mode 100755 index 1786b2c0..00000000 --- a/web_service/ws/DownloadRapport.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -/** - * \file downloadrapport.class.inc - * \class DownloadRapport - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the DownloadRapport php class - * - * This class defines the rest api for downloadrapport - * - */ -class DownloadRapport extends Cadastre { - /** - * @SWG\Definition( - * definition="/downloadrapport", - * allOf={ - * @SWG\Schema(ref="#/definitions/downloadrapport") - * } - * ) - * * @SWG\Tag( - * name="DownloadRapport", - * description="Operations about DownloadRapport" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * @SWG\Get(path="/downloadrapport", - * tags={"ReleveDePropriete"}, - * summary="Create the releve de propriete sheet", - * description="Request to get the element", - * operationId="GET", - * produces={"application/json"}, - * @SWG\Parameter( - * name="sYear", - * in="query", - * description="year folder name (ex: 2013)", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="sType", - * in="query", - * description="type folder name", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="sFileName", - * in="query", - * description="file name (includes the extension)", - * required=true, - * type="string" - * ), - * @SWG\Response( - * response=200, - * description="DownloadRapport Response", - * @SWG\Schema(ref="#/definitions/downloadrapport") - * ) - * ) - */ - function GET() { - - if (!in_array('vmap_cadastre_user', $this->oConnection->aPrivileges)) { - $oError = new VitisError(0, 'INSUFFICIENT_PRIVILEGES'); - $aXmlRacineAttribute['status'] = 0; - $sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - return $sMessage; - } - - if ($this->oConnection->oError == null) { - if (!empty($this->aValues['sFileName'])) { - $aRestriction = explode('|', $_SESSION['ses_restriction']); - if (strpos($this->aValues['sFileName'], "../") === false && ($_SESSION['ses_restriction'] == "%" || in_array(substr($this->aValues['sFileName'], 0, 5), $aRestriction))) { - $sFile = $this->aProperties["cadastre"]["rp"]["rp_dir"] . "/" . $this->aValues['sYear'] . '/' . $this->aValues['sType'] . '/' . $this->aValues['sFileName']; - if (is_file($sFile)) { - switch (pathinfo($sFile, PATHINFO_EXTENSION)) { - case 'pdf': - if (file_exists($sFile)) { - header('Content-Type: application/pdf'); - } - break; - case 'xls': - if (file_exists($sFile)) { - header('Content-Type: application/vnd.ms-excel'); - } - break; - default: - http_response_code(403); - //echo (json_encode(array("status" => "0", "sMessage" => "forbidden"))); - exit; - break; - } - header('Expires: 0'); - header('Cache-Control: must-revalidate'); - header('Pragma: public'); - header('Content-Length: ' . filesize($sFile)); - readfile($sFile); - } else { - return 'Une erreur est survenue lors de la g�n�ration du rapport'; - } - } else { - http_response_code(403); - } - } - } else { - http_response_code(403); - } - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Entreprise.class.inc b/web_service/ws/Entreprise.class.inc new file mode 100755 index 00000000..00bb4aec --- /dev/null +++ b/web_service/ws/Entreprise.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Entreprise.class.inc + * \class Entreprise + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Entreprise php class + * + * This class defines operation for one Entreprise + * + */ +class Entreprise extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_entreprises", "id_com", "siret", "raison_sociale", "nom_entreprise", "nom_contact", "telephone_fixe", "telephone_mobile", "web", "mail", "code_postal", "voie", "bureau_etude", "concepteur", "constructeur", "installateur", "vidangeur", "en_activite", "observations", "creat", "creat_date", "maj", "maj_date", "geom"); + } + + /** + * @SWG\Get(path="/entreprises/{id_entreprise}", + * tags={"Entreprises"}, + * summary="Get Entreprise", + * description="Request to get Entreprise by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_entreprise", + * in="path", + * description="id_entreprise", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "param_entreprise", "id_parametre_entreprises"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_entreprise', 'id_parametre_entreprises', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_entreprises"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Entreprises.class.inc b/web_service/ws/Entreprises.class.inc new file mode 100755 index 00000000..625e0089 --- /dev/null +++ b/web_service/ws/Entreprises.class.inc @@ -0,0 +1,272 @@ +<?php + +/** + * \file Entreprises.class.inc + * \class Entreprises + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Entreprises php class + * + * This class defines Rest Api to Vitis Entreprises + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Entreprise.class.inc'; + + +class Entreprises extends Anc { + /** + * @SWG\Definition( + * definition="/entreprises", + * allOf={ + * @SWG\Schema(ref="#/definitions/entreprises") + * } + * ) + * * @SWG\Tag( + * name="Entreprises", + * description="Operations about Entreprises" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_entreprises", "id_com", "siret", "raison_sociale", "nom_entreprise", "nom_contact", "telephone_fixe", "telephone_mobile", "web", "mail", "code_postal", "voie", "bureau_etude", "concepteur", "constructeur", "installateur", "vidangeur", "en_activite", "observations", "creat", "creat_date", "maj", "maj_date", "geom"); + } + + /** + * @SWG\Get(path="/entreprises", + * tags={"Entreprises"}, + * summary="Get Entreprises", + * description="Request to get Entreprises", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * get Entreprises + * @return Entreprises + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "param_entreprise", "id_parametre_entreprises"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/entreprises", + * tags={"Entreprises"}, + * summary="Add entreprise", + * description="Request to add Entreprises", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * insert entreprise + * @return id of the entreprise created + */ + function POST() { + $this->aValues['creat'] = $_SESSION["ses_Login"]; + $this->aValues['creat_date'] = date('Y-m-d'); + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_entreprise', $this->aProperties['schema_anc'].'.param_entreprise_id_parametre_entreprises_seq', 'id_parametre_entreprises'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/entreprises/{id_entreprise}", + * tags={"Entreprises"}, + * summary="update Entreprises", + * description="Request to update Entreprises", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Entreprise token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_entreprise", + * in="path", + * description="id of the Entreprises", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * update entreprises + * @return id of entreprises updated or error object if a entreprises is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_entreprise', 'id_parametre_entreprises'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/entreprises", + * tags={"Entreprises"}, + * summary="delete Entreprises", + * description="Request to delete Entreprises", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the entreprise", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="entreprise Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + /** + * @SWG\Delete(path="/entreprises/{id_entreprise}", + * tags={"Entreprises"}, + * summary="delete Entreprises", + * description="Request to delete Entreprises", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Entreprise token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_entreprise", + * in="path", + * description="id of the Entreprises", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/entreprises") + * ) + * ) + */ + + /** + * delete entreprises + * @return id of entreprises deleted or error object if a entreprises is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_entreprise', 'id_parametre_entreprises'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Evacuation_eaux.class.inc b/web_service/ws/Evacuation_eaux.class.inc new file mode 100755 index 00000000..6021f862 --- /dev/null +++ b/web_service/ws/Evacuation_eaux.class.inc @@ -0,0 +1,105 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Evacuation_eaux.class.inc + * \class Evacuation_eaux + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Evacuation_eaux php class + * + * This class defines operation for one Evacuation_eaux + * + */ +class Evacuation_eaux extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/evacuation_eauxs/{id_evacuation_eaux}", + * tags={"Evacuation_eauxs"}, + * summary="Get Evacuation_eaux", + * description="Request to get Evacuation_eaux by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_evacuation_eaux", + * in="path", + * description="id_evacuation_eaux", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_evacuation_eaux", "id_eva"); + // Url des fichiers. + $sWsDataUrl = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_evacuation_eaux/documents/' . $this->aValues["my_vitis_id"]; + if (!empty($this->aFields['photos_f'])) + $this->aFields['photos_f'] = $sWsDataUrl . '/photos_f/' . $this->aFields['photos_f']; + if (!empty($this->aFields['fiche_f'])) + $this->aFields['fiche_f'] = $sWsDataUrl . '/fiche_f/' . $this->aFields['fiche_f']; + if (!empty($this->aFields['schema_f'])) + $this->aFields['schema_f'] = $sWsDataUrl . '/schema_f/' . $this->aFields['schema_f']; + if (!empty($this->aFields['documents_f'])) + $this->aFields['documents_f'] = $sWsDataUrl . '/documents_f/' . $this->aFields['documents_f']; + if (!empty($this->aFields['plan_f'])) + $this->aFields['plan_f'] = $sWsDataUrl . '/plan_f/' . $this->aFields['plan_f']; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_eva"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Evacuation_eauxs.class.inc b/web_service/ws/Evacuation_eauxs.class.inc new file mode 100755 index 00000000..e7bafb94 --- /dev/null +++ b/web_service/ws/Evacuation_eauxs.class.inc @@ -0,0 +1,297 @@ +<?php + +/** + * \file Evacuation_eauxs.class.inc + * \class Evacuation_eauxs + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Evacuation_eauxs php class + * + * This class defines Rest Api to Vitis Evacuation_eauxs + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Evacuation_eaux.class.inc'; + + +class Evacuation_eauxs extends Anc { + /** + * @SWG\Definition( + * definition="/evacuation_eauxs", + * allOf={ + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * } + * ) + * * @SWG\Tag( + * name="Evacuation_eauxs", + * description="Operations about Evacuation_eauxs" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/evacuation_eauxs", + * tags={"Evacuation_eauxs"}, + * summary="Get Evacuation_eauxs", + * description="Request to get Evacuation_eauxs", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * get Evacuation_eauxs + * @return Evacuation_eauxs + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_evacuation_eaux", "id_eva"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/evacuation_eauxs", + * tags={"Evacuation_eauxs"}, + * summary="Add evacuation_eaux", + * description="Request to add Evacuation_eauxs", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * insert evacuation_eaux + * @return id of the evacuation_eaux created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + // Sauve le nom des fichiers. + if (!empty($_FILES['photos_f'])) + $this->aValues['photos_f'] = $_FILES['photos_f']["name"]; + if (!empty($_FILES['fiche_f'])) + $this->aValues['fiche_f'] = $_FILES['fiche_f']["name"]; + if (!empty($_FILES['schema_f'])) + $this->aValues['schema_f'] = $_FILES['schema_f']["name"]; + if (!empty($_FILES['documents_f'])) + $this->aValues['documents_f'] = $_FILES['documents_f']["name"]; + if (!empty($_FILES['plan_f'])) + $this->aValues['plan_f'] = $_FILES['plan_f']["name"]; + // + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_evacuation_eaux', $this->aProperties['schema_anc'].'.evacuation_eaux_id_eva_seq', 'id_eva'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_evacuation_eaux'); + // + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/evacuation_eauxs/{id_evacuation_eaux}", + * tags={"Evacuation_eauxs"}, + * summary="update Evacuation_eauxs", + * description="Request to update Evacuation_eauxs", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Evacuation_eaux token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_evacuation_eaux", + * in="path", + * description="id of the Evacuation_eauxs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * update evacuation_eauxs + * @return id of evacuation_eauxs updated or error object if a evacuation_eauxs is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_evacuation_eaux'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_evacuation_eaux'); + // + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/evacuation_eauxs", + * tags={"Evacuation_eauxs"}, + * summary="delete Evacuation_eauxs", + * description="Request to delete Evacuation_eauxs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the evacuation_eaux", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="evacuation_eaux Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + /** + * @SWG\Delete(path="/evacuation_eauxs/{id_evacuation_eaux}", + * tags={"Evacuation_eauxs"}, + * summary="delete Evacuation_eauxs", + * description="Request to delete Evacuation_eauxs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Evacuation_eaux token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_evacuation_eaux", + * in="path", + * description="id of the Evacuation_eauxs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/evacuation_eauxs") + * ) + * ) + */ + + /** + * delete evacuation_eauxs + * @return id of evacuation_eauxs deleted or error object if a evacuation_eauxs is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_evacuation_eaux', 'id_eva'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/web_service/ws/FicheDescriptiveInvariant.class.inc b/web_service/ws/FicheDescriptiveInvariant.class.inc deleted file mode 100755 index 1231717b..00000000 --- a/web_service/ws/FicheDescriptiveInvariant.class.inc +++ /dev/null @@ -1,142 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -/** - * \file fichedescriptiveinvariant.class.inc - * \class FicheDescriptiveInvariant - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the FicheDescriptiveInvariant php class - * - * This class defines the rest api for fichedescriptiveinvariant - * - */ -class FicheDescriptiveInvariant extends Cadastre { - /** - * @SWG\Definition( - * definition="/fichedescriptiveinvariant", - * allOf={ - * @SWG\Schema(ref="#/definitions/fichedescriptiveinvariant") - * } - * ) - * * @SWG\Tag( - * name="fichedescriptiveinvariant", - * description="Operations about fichedescriptiveinvariant" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * @SWG\Get(path="/fichedescriptiveinvariant/{ID_BAT}", - * tags={"Invariant"}, - * summary="Get the fichedescriptiveinvariant whith a table", - * description="Request to get a element intersected", - * operationId="GET", - * produces={"application/json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_BAT", - * in="path", - * description="ID_BAT", - * required=true, - * type="string" - * ), - * @SWG\Response( - * response=200, - * description="FicheDescriptiveInvariant Response", - * @SWG\Schema(ref="#/definitions/fichedescriptiveinvariant") - * ) - * ) - */ - - /** - * Get function to generate a token - * @return the token - */ - function GET() { - - if (!in_array('vmap_cadastre_user', $this->oConnection->aPrivileges)) { - $oError = new VitisError(0, 'INSUFFICIENT_PRIVILEGES'); - $aXmlRacineAttribute['status'] = 0; - $sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - return $sMessage; - } - - // Infos sur l'invariant - $ID_BAT = $this->aPath[2]; - $sSchema = 'public'; - $sTable = 'v_maj_fiche_inv_descr'; -// $sFilter = "\"ID_BAT\" = '" . $ID_BAT . "'"; - $aFilter = array( - 'column' => 'ID_BAT', - 'compare_operator' => '=', - 'value' => $ID_BAT - ); - $aAttributs = Array('ID_BAT', 'DVOILIB', 'LIBCOM', 'ID_COM', 'L_DTELOC', 'L_CCONLC', 'L_DNATLC', 'JDATAT', 'JANNAT', 'CCHPR', 'BIPEVLA1', 'DNBNIV', 'DNUBAT', 'DESC', 'DNIV', 'DVLTRT', 'INVAR'); - - $oInvariantInfos['data'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter)[0]; - - // Infos sur le P.E.V - $sTable = 'v_maj_fiche_inv_pev'; - $aAttributs = Array('ID_BAT', 'DNUPEV', 'L_CCOAFF', 'DCAPEC', 'CCOSTB', 'DNUREF', 'BIPEVLA1', 'VLBAIA1'); - - $oInvariantInfos['data']['PEV'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - // Infos sur les habitations - $sTable = 'v_maj_fiche_inv_hab'; - $aAttributs = Array('ID_BAT', 'DNUPEV', 'GEAULC', 'GELELC', 'GCHCLC', 'GTEGLC', 'DNBBAI', 'DNBDOU', 'DNBLAV', 'DNBWC', 'DEQDHA', 'DNBPPR', 'DNBPDC', 'DSUPDC', 'L_DMATGM', 'L_DMATTO', 'JANNAT', 'L_DETENT', 'DNBNIV', 'DNBSAM', 'DNBCHA', 'DNBCU8', 'DNBCU9', 'DNBSEA', 'DNBANN', 'CCONAD1', 'L_CCONAD1', 'DSUEIC1', 'CCONAD2', 'L_CCONAD2', 'DSUEIC2', 'CCONAD3', 'L_CCONAD3', 'DSUEIC3', 'CCONAD4', 'L_CCONAD4', 'DSUEIC4'); - - $oInvariantInfos['data']['habitations'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - // Infos sur les locaux pros - $sTable = 'v_maj_fiche_inv_local_pro'; - $aAttributs = Array('ID_BAT', 'DNUPEV', 'DNUDES', 'VSURZT'); - - $oInvariantInfos['data']['locauxPros'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - // Infos sur les dépendances - $sTable = 'v_maj_fiche_inv_dep'; - $aAttributs = Array('ID_BAT', 'DNUPEV', 'DSUDEP', 'GEAULC', 'GELELC', 'GCHCLC', 'DNBBAI', 'DNBDOU', 'DNBLAV', 'DNBWC', 'L_DMATGM', 'L_DMATTO', 'L_DETENT', 'L_CCONAD'); - - $oInvariantInfos['data']['dependances'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - // Infos sur les propriétaires - $sTable = 'v_maj_fiche_inv_prop'; - $aAttributs = Array('ID_BAT', 'DQUALP', 'DDENOM', 'JDATNSS', 'DLDNSS', 'DLIGN3', 'DLIGN4', 'DLIGN6', 'L_CCODEM', 'L_CCODRO'); - - $oInvariantInfos['data']['proprietaires'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - // Infos sur les lots - $sTable = 'v_maj_fiche_inv_lot'; - $aAttributs = Array('ID_BAT', 'KLOT', 'DNUMQL', 'DDENQL'); - - $oInvariantInfos['data']['lots'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - return json_encode($oInvariantInfos); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/FicheDescriptiveParcelle.class.inc b/web_service/ws/FicheDescriptiveParcelle.class.inc deleted file mode 100755 index d40e39b2..00000000 --- a/web_service/ws/FicheDescriptiveParcelle.class.inc +++ /dev/null @@ -1,214 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -/** - * \file fichedescriptiveparcelle.class.inc - * \class FicheDescriptiveParcelle - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the FicheDescriptiveParcelle php class - * - * This class defines the rest api for fichedescriptiveparcelle - * - */ -class FicheDescriptiveParcelle extends Cadastre { - /** - * @SWG\Definition( - * definition="/fichedescriptiveparcelle", - * allOf={ - * @SWG\Schema(ref="#/definitions/fichedescriptiveparcelle") - * } - * ) - * * @SWG\Tag( - * name="FicheDescriptiveParcelle", - * description="Operations about FicheDescriptiveParcelle" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * @SWG\Get(path="/fichedescriptiveparcelle/{ID_PAR}", - * tags={"Parcelle"}, - * summary="Get the fichedescriptiveparcelle whith a table", - * description="Request to get a element intersected", - * operationId="GET", - * produces={"application/json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_PAR", - * in="path", - * description="ID_PAR", - * required=true, - * type="string" - * ), - * @SWG\Response( - * response=200, - * description="FicheDescriptiveParcelle Response", - * @SWG\Schema(ref="#/definitions/fichedescriptiveparcelle") - * ) - * ) - */ - - /** - * Get function to generate a token - * @return the token - */ - function GET() { - - $ID_PAR = $this->aPath[2]; - - if (!in_array('vmap_cadastre_user', $this->oConnection->aPrivileges) && !in_array('vmap_cadastre_light_user', $this->oConnection->aPrivileges)) { - $oError = new VitisError(0, 'INSUFFICIENT_PRIVILEGES'); - $aXmlRacineAttribute['status'] = 0; - $sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - return $sMessage; - } - - // Vérifie les droits de d'utilisateur sur la commune - if ($this->haveCommuneRights(substr($ID_PAR, 0, 6)) == false) { - http_response_code(403); - $aReturn['error']['errorMessage'] .= "L'utilisateur n'a pas les droits sur la commune"; - return json_encode($aReturn); - } - - // Infos sur la parcelle - $sSchema = 'public'; - $sTable = 'v_maj_fiche_prc_descr'; -// $sFilter = "\"ID_PAR\" = '" . $ID_PAR . "'"; - $aFilter = array( - 'column' => 'ID_PAR', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - $aAttributs = Array('ID_PAR', 'ID_COM', 'parcelle', 'commune', 'sup_fiscale', 'DCNTPA', 'DNVOIRI', 'DINDIC', 'L_NATURE_VOIE', 'DVOILIB', 'CCORIV', 'GPARBAT', 'GURBPA'); - - $oParcelleInfos['data'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter)[0]; - - // Infos sur le proprietaire - $sSchemaProp = 'public'; - $sTableProp = 'v_maj_fiche_prc_prop'; -// $sFilterProp = "\"ID_PAR\" = '" . $ID_PAR . "'"; - $aFilterProp = array( - 'column' => 'ID_PAR', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - $aAttributsProp = Array('ID_PAR', 'DQUALP', 'DNUPRO', 'DDENOM', 'JDATNSS', 'DLDNSS', 'DLIGN3', 'DLIGN6', 'L_CCODEM', 'L_CCODRO', 'GDESIP', 'DLIGN4'); - - $oParcelleInfos['data']['aProprietaires'] = $this->vmapGet($sSchemaProp, $sTableProp, $aAttributsProp, $aFilterProp); - - // infos sur la subdivision fiscale - $sSchemaSub = 'public'; - $sTableSub = 'v_maj_fiche_prc_suf'; -// $sFilterSub = "\"ID_PAR\" = '" . $ID_PAR . "'"; - $aFilterSub = array( - 'column' => 'ID_PAR', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - $aAttributsSub = Array('ID_PAR', 'CCOSUB', 'DSGRPF', 'CNATSP', 'L_DSGRPF', 'DCLSSF', 'DCNTSF', 'DRCSUBA', 'DRCSUB'); - - $oParcelleInfos['data']['aSubdivisionFiscale'] = $this->vmapGet($sSchemaSub, $sTableSub, $aAttributsSub, $aFilterSub); - - // Infos sur le bâti - $sSchemaBatis = 'public'; - $sTableBatis = 'v_maj_fiche_prc_bat'; -// $sFilterBatis = "\"ID_PAR\" = '" . $ID_PAR . "'"; - $aFilterBatis = array( - 'column' => 'ID_PAR', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - $aAttributsBatis = Array('ID_BAT', 'ID_PAR', 'INVAR', 'ID_BAT', 'L_DTELOC', 'L_CCONLC', 'L_DNATLC', 'JDATAT', 'JANNAT', 'DDENOM'); - - $oParcelleInfos['data']['aBatis'] = $this->vmapGet($sSchemaBatis, $sTableBatis, $aAttributsBatis, $aFilterBatis); - - - // Infos complémentaires (paramétrées par l'administrateur) - $iTolerance = $this->aProperties["cadastre"]["descr_parcel"]["intersect"]["tolerance"]; - $aIntersectionViews = $this->aProperties['cadastre']['descr_parcel']['intersect']['views']; - - // Récupère la géométrie de la parcelle - $sSchema = 'public'; - $sTable = $this->aProperties['cadastre']['views']['parcelle']; - $aFilter = array( - 'column' => 'id_par', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - $aAttributs = Array('ST_AsEWKT(geom) as geom'); - $parcelleGeom = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter)[0]['geom']; - - // Récupère les intersections - $oParcelleInfos['data']['aIntersections'] = array(); - - foreach ($aIntersectionViews as $key => $value) { - - if (strpos($key, ".") === false) { - $sSchema = "public"; - $sTable = $key; - } else { - $aTmp = explode(".", $key); - $sSchema = $aTmp[0]; - $sTable = $aTmp[1]; - } - $aAttributs = Array(); - - foreach ($value as $key2 => $value2) { - if ($key2 != 'title' && $key2 != 'type' && $key2 != 'intersect' && $key2 != 'geom_column') { - array_push($aAttributs, $key2); - } - } - - if (!empty($value['geom_column'])) { - $sGeomColumn = $value['geom_column']; - } else { - $sGeomColumn = 'geom'; - } - - if (!empty($value['type'])) { - $sGeomType = $value['type']; - } else { - $sGeomType = 'POLYGON'; - } - - $aIntersect = $this->vmapIntersectGet($sSchema, $sTable, $parcelleGeom, $aAttributs, $iTolerance, $sGeomColumn, $sGeomType); - - $value['data'] = $aIntersect; - if (isset($value['data'][0]) && !empty($value['data'][0])) { - $value['aFields'] = array_keys($value['data'][0]); - } else { - $value['aFields'] = array(); - } - - array_push($oParcelleInfos['data']['aIntersections'], $value); - } - - return json_encode($oParcelleInfos); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/FicheUrbanisme.class.inc b/web_service/ws/FicheUrbanisme.class.inc deleted file mode 100755 index 10781b12..00000000 --- a/web_service/ws/FicheUrbanisme.class.inc +++ /dev/null @@ -1,187 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -/** - * \file ficheurbanisme.class.inc - * \class FicheUrbanisme - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the FicheUrbanisme php class - * - * This class defines the rest api for ficheurbanisme - * - */ -class FicheUrbanisme extends Cadastre { - /** - * @SWG\Definition( - * definition="/ficheurbanisme", - * allOf={ - * @SWG\Schema(ref="#/definitions/ficheurbanisme") - * } - * ) - * * @SWG\Tag( - * name="ficheurbanisme", - * description="Operations about ficheurbanisme" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * @SWG\Get(path="/ficheurbanisme/{ID_PAR}", - * tags={"Parcelle"}, - * summary="Get the ficheurbanisme whith a table", - * description="Request to get a element intersected", - * operationId="GET", - * produces={"application/json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_PAR", - * in="path", - * description="ID_PAR", - * required=true, - * type="string" - * ), - * @SWG\Response( - * response=200, - * description="FicheUrbanisme Response", - * @SWG\Schema(ref="#/definitions/ficheurbanisme") - * ) - * ) - */ - - /** - * Get function to generate a token - * @return the token - */ - function GET() { - - if (!in_array('vmap_cadastre_user', $this->oConnection->aPrivileges)) { - $oError = new VitisError(0, 'INSUFFICIENT_PRIVILEGES'); - $aXmlRacineAttribute['status'] = 0; - $sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - return $sMessage; - } - - $ID_PAR = $this->aPath[2]; - - // Vérifie les droits de d'utilisateur sur la commune - if ($this->haveCommuneRights(substr($ID_PAR, 0, 6)) == false) { - http_response_code(403); - $aReturn['error']['errorMessage'] .= "L'utilisateur n'a pas les droits sur la commune"; - return json_encode($aReturn); - } - - // Infos sur la parcelle - $sSchema = 'public'; - $sTable = 'v_maj_fiche_urb_vmap'; - // $sFilter = "\"ID_PAR\" = '" . $ID_PAR . "'"; - $aFilter = array( - 'column' => 'ID_PAR', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - $aAttributs = Array('ID_PAR', 'LIBDEP', 'LIBCOM', 'DNUPLA', 'CCOSEC', 'DCNTPA', 'DDENOM', 'DLIGN3', 'DLIGN4', 'DLIGN6', '"DNVOIRI" || "DINDIC" || \' \' || "CCONVO" || \' \' || "DVOILIB" as "ADRESSE"', 'l_dsgrpf as "DSGRPF"'); - - $oParcelleInfos['data'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter); - - // Géométrie - $sTable = $this->aProperties['cadastre']['views']['parcelle']; - // $sFilter = "id_par = '" . $ID_PAR . "'"; - $aFilter = array( - 'column' => 'id_par', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - if (!empty($this->aValues['result_srid'])) - $aAttributs = Array('ST_AsEWKT(ST_Transform(geom, ' . $this->aValues['result_srid'] . ')) as geom'); - else - $aAttributs = Array('ST_AsEWKT(geom) as geom'); - - $oParcelleInfos['data']['geometry'] = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter)[0]; - - // Récupère la géométrie de la parcelle - $sSchema = 'public'; - $sTable = $this->aProperties['cadastre']['views']['parcelle']; - // $sFilter = "\"id_par\" = '" . $ID_PAR . "'"; - $aFilter = array( - 'column' => 'id_par', - 'compare_operator' => '=', - 'value' => $ID_PAR - ); - if (!empty($this->aValues['result_srid'])) - $aAttributs = Array('ST_AsEWKT(ST_Transform(geom, ' . $this->aValues['result_srid'] . ')) as geom'); - else - $aAttributs = Array('ST_AsEWKT(geom) as geom'); - $parcelleGeom = $this->vmapGet($sSchema, $sTable, $aAttributs, $aFilter)[0]['geom']; - - // Récupère les intersections - $oParcelleInfos['data']['aIntersections'] = array(); - $oParcelleInfos['data']['aIntersectionsArray'] = array(); - - // Infos complémentaires (paramétrées par l'administrateur) - $aIntersectionViews = $this->aProperties['cadastre']['fiche_urb']['intersect']['views']; - $iTolerance = $this->aProperties["cadastre"]["fiche_urb"]["intersect"]["tolerance"]; - if (is_array($aIntersectionViews)) { - foreach ($aIntersectionViews as $key => $value) { - - $sTable = $key; - $aAttributs = Array(); - - foreach ($value as $key2 => $value2) { - if ($key2 != 'title' && $key2 != 'type' && $key2 != 'intersect') { - array_push($aAttributs, $key2); - } - } - - $oIntersect = $this->vmapIntersectGet($sSchema, $sTable, $parcelleGeom, $aAttributs, $iTolerance); - $value['data'] = $oIntersect; - - array_push($oParcelleInfos['data']['aIntersections'], $value); - } - } - $aIntersectionArrayViews = $this->aProperties['cadastre']['fiche_urb']['intersect']['array_views']; - if (is_array($aIntersectionArrayViews)) { - for ($i = 0; $i < count($aIntersectionArrayViews); $i++) { - foreach ($aIntersectionArrayViews[$i] as $key => $value) { - $sTable = $key; - $aAttributs = Array(); - foreach ($value as $key2 => $value2) { - if ($key2 != 'title' && $key2 != 'type' && $key2 != 'intersect') { - array_push($aAttributs, $key2); - } - } - $oIntersect = $this->vmapIntersectGet($sSchema, $sTable, $parcelleGeom, $aAttributs, $iTolerance); - $value['data'] = $oIntersect; - array_push($oParcelleInfos['data']['aIntersectionsArray'], $value); - } - } - } - - return json_encode($oParcelleInfos); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Filieres_agree.class.inc b/web_service/ws/Filieres_agree.class.inc new file mode 100755 index 00000000..4630c33c --- /dev/null +++ b/web_service/ws/Filieres_agree.class.inc @@ -0,0 +1,105 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Filieres_agree.class.inc + * \class Filieres_agree + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Filieres_agree php class + * + * This class defines operation for one Filieres_agree + * + */ +class Filieres_agree extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/filieres_agrees/{id_filieres_agree}", + * tags={"Filieres_agrees"}, + * summary="Get Filieres_agree", + * description="Request to get Filieres_agree by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_filieres_agree", + * in="path", + * description="id_filieres_agree", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_filieres_agrees", "id_fag"); + // Url des fichiers. + $sWsDataUrl = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_filieres_agree/documents/' . $this->aValues["my_vitis_id"]; + if (!empty($this->aFields['photos_f'])) + $this->aFields['photos_f'] = $sWsDataUrl . '/photos_f/' . $this->aFields['photos_f']; + if (!empty($this->aFields['fiche_f'])) + $this->aFields['fiche_f'] = $sWsDataUrl . '/fiche_f/' . $this->aFields['fiche_f']; + if (!empty($this->aFields['schema_f'])) + $this->aFields['schema_f'] = $sWsDataUrl . '/schema_f/' . $this->aFields['schema_f']; + if (!empty($this->aFields['documents_f'])) + $this->aFields['documents_f'] = $sWsDataUrl . '/documents_f/' . $this->aFields['documents_f']; + if (!empty($this->aFields['plan_f'])) + $this->aFields['plan_f'] = $sWsDataUrl . '/plan_f/' . $this->aFields['plan_f']; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_fag"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Filieres_agrees.class.inc b/web_service/ws/Filieres_agrees.class.inc new file mode 100755 index 00000000..f8480883 --- /dev/null +++ b/web_service/ws/Filieres_agrees.class.inc @@ -0,0 +1,311 @@ +<?php + +/** + * \file Filieres_agrees.class.inc + * \class Filieres_agrees + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Filieres_agrees php class + * + * This class defines Rest Api to Vitis Filieres_agrees + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Filieres_agree.class.inc'; + + +class Filieres_agrees extends Anc { + /** + * @SWG\Definition( + * definition="/filieres_agrees", + * allOf={ + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * } + * ) + * * @SWG\Tag( + * name="Filieres_agrees", + * description="Operations about Filieres_agrees" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/filieres_agrees", + * tags={"Filieres_agrees"}, + * summary="Get Filieres_agrees", + * description="Request to get Filieres_agrees", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * get Filieres_agrees + * @return Filieres_agrees + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_filieres_agrees", "id_fag"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/filieres_agrees", + * tags={"Filieres_agrees"}, + * summary="Add filieres_agree", + * description="Request to add Filieres_agrees", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * insert filieres_agree + * @return id of the filieres_agree created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + // Sauve le nom des fichiers. + if (!empty($_FILES['photos_f'])) + $this->aValues['photos_f'] = $_FILES['photos_f']["name"]; + if (!empty($_FILES['fiche_f'])) + $this->aValues['fiche_f'] = $_FILES['fiche_f']["name"]; + if (!empty($_FILES['schema_f'])) + $this->aValues['schema_f'] = $_FILES['schema_f']["name"]; + if (!empty($_FILES['documents_f'])) + $this->aValues['documents_f'] = $_FILES['documents_f']["name"]; + if (!empty($_FILES['plan_f'])) + $this->aValues['plan_f'] = $_FILES['plan_f']["name"]; + // Conversion des dates + if (isset($this->aValues['fag_en_date'])) { + if ($this->aValues['fag_en_date'] == '') + unset($this->aValues['fag_en_date']); + else + $this->aValues['fag_en_date'] = date_format(date_create_from_format('d/m/Y', $this->aValues['fag_en_date']), 'Y-m-d'); + } + // + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_filieres_agrees', $this->aProperties['schema_anc'].'.filieres_agrees_id_fag_seq', 'id_fag'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_filieres_agree'); + // + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/filieres_agrees/{id_filieres_agree}", + * tags={"Filieres_agrees"}, + * summary="update Filieres_agrees", + * description="Request to update Filieres_agrees", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Filieres_agree token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_filieres_agree", + * in="path", + * description="id of the Filieres_agrees", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * update filieres_agrees + * @return id of filieres_agrees updated or error object if a filieres_agrees is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_filieres_agree'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_filieres_agree'); + // Conversion des dates + if (isset($this->aValues['fag_en_date'])) { + if ($this->aValues['fag_en_date'] == '') + unset($this->aValues['fag_en_date']); + else + $this->aValues['fag_en_date'] = date_format(date_create_from_format('d/m/Y', $this->aValues['fag_en_date']), 'Y-m-d'); + } + // + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/filieres_agrees", + * tags={"Filieres_agrees"}, + * summary="delete Filieres_agrees", + * description="Request to delete Filieres_agrees", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the filieres_agree", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="filieres_agree Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + /** + * @SWG\Delete(path="/filieres_agrees/{id_filieres_agree}", + * tags={"Filieres_agrees"}, + * summary="delete Filieres_agrees", + * description="Request to delete Filieres_agrees", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Filieres_agree token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_filieres_agree", + * in="path", + * description="id of the Filieres_agrees", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/filieres_agrees") + * ) + * ) + */ + + /** + * delete filieres_agrees + * @return id of filieres_agrees deleted or error object if a filieres_agrees is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_filieres_agrees', 'id_fag'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Installation.class.inc b/web_service/ws/Installation.class.inc new file mode 100755 index 00000000..cf00fc2d --- /dev/null +++ b/web_service/ws/Installation.class.inc @@ -0,0 +1,99 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Installation.class.inc + * \class Installation + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Installation php class + * + * This class defines operation for one Installation + * + */ +class Installation extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_installation", "id_com", "id_parc", "parc_sup", "parc_parcelle_associees", "parc_adresse", "code_postal", "parc_commune", "prop_titre", "prop_nom_prenom", "prop_adresse", "prop_code_postal", "prop_commune", "prop_tel", "prop_mail", "bati_type", "bati_ca_nb_pp", "bati_ca_nb_eh", "bati_ca_nb_chambres", "bati_ca_nb_autres_pieces", "bati_ca_nb_occupant", "bati_nb_a_control", "bati_date_achat", "bati_date_mutation", "cont_zone_enjeu", "cont_zone_sage", "cont_zone_autre", "cont_zone_urba", "cont_zone_anc", "cont_alim_eau_potable", "cont_puits_usage", "cont_puits_declaration", "cont_puits_situation", "cont_puits_terrain_mitoyen", "observations", "maj", "maj_date", "create", "create_date", "archivage", "geom", "photo_f", "document_f", "num_dossier", "commune", "section", "parcelle", "nb_controle", "last_date_control", "cl_avis", "next_control", "classement_installation"); + } + + /** + * @SWG\Get(path="/installations/{id_installation}", + * tags={"Installations"}, + * summary="Get Installation", + * description="Request to get Installation by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_installation", + * in="path", + * description="id_installation", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_installation", "id_installation"); + // Url des fichiers. + if (!empty($this->aFields['photo_f'])) + $this->aFields['photo_f'] = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_installation/documents/' . $this->aValues["my_vitis_id"] . '/photo_f/' . $this->aFields['photo_f']; + if (!empty($this->aFields['document_f'])) + $this->aFields['document_f'] = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_installation/documents/' . $this->aValues["my_vitis_id"] . '/document_f/' . $this->aFields['document_f']; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_installation', 'id_installation', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_installation"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Installations.class.inc b/web_service/ws/Installations.class.inc new file mode 100755 index 00000000..2993a370 --- /dev/null +++ b/web_service/ws/Installations.class.inc @@ -0,0 +1,312 @@ +<?php + +/** + * \file Installations.class.inc + * \class Installations + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Installations php class + * + * This class defines Rest Api to Vitis Installations + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Installation.class.inc'; + + +class Installations extends Anc { + /** + * @SWG\Definition( + * definition="/installations", + * allOf={ + * @SWG\Schema(ref="#/definitions/installations") + * } + * ) + * * @SWG\Tag( + * name="Installations", + * description="Operations about Installations" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_installation", "id_com", "id_parc", "parc_sup", "parc_parcelle_associees", "parc_adresse", "code_postal", "parc_commune", "prop_titre", "prop_nom_prenom", "prop_adresse", "prop_code_postal", "prop_commune", "prop_tel", "prop_mail", "bati_type", "bati_ca_nb_pp", "bati_ca_nb_eh", "bati_ca_nb_chambres", "bati_ca_nb_autres_pieces", "bati_ca_nb_occupant", "bati_nb_a_control", "bati_date_achat", "bati_date_mutation", "cont_zone_enjeu", "cont_zone_sage", "cont_zone_autre", "cont_zone_urba", "cont_zone_anc", "cont_alim_eau_potable", "cont_puits_usage", "cont_puits_declaration", "cont_puits_situation", "cont_puits_terrain_mitoyen", "observations", "maj", "maj_date", "create", "create_date", "archivage", "geom", "photo_f", "document_f", "num_dossier", "commune", "section", "parcelle", "nb_controle", "last_date_control", "cl_avis", "next_control", "classement_installation"); + } + + /** + * @SWG\Get(path="/installations", + * tags={"Installations"}, + * summary="Get Installations", + * description="Request to get Installations", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * get Installations + * @return Installations + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_installation", "id_installation"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/installations", + * tags={"Installations"}, + * summary="Add installation", + * description="Request to add Installations", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * insert installation + * @return id of the installation created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_installation', $this->aProperties['schema_anc'].'.installation_id_installation_seq', 'id_installation'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/installations/{id_installation}", + * tags={"Installations"}, + * summary="update Installations", + * description="Request to update Installations", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Installation token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_installation", + * in="path", + * description="id of the Installations", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * update installations + * @return id of installations updated or error object if a installations is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + // Upload les fichiers. + $this->uploadDocument('photo_f', 'anc_saisie_anc_installation'); + $this->uploadDocument('document_f', 'anc_saisie_anc_installation'); + // Zone PLU. + if (!empty($this->aValues['geom'])) { + $sSchema = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["schema"]; + $sTable = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["table"]; + $sColumn = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["column"]; + $sColumnGeom = $this->aProperties["anc"]["cont_zone_urba"]["intersect"]["column_geom"]; + if (!empty($sSchema) && !empty($sTable) && !empty($sColumn) && !empty($sColumnGeom)) { + require $this->sRessourcesFile; + $aParams['sSchema'] = array('value' => $sSchema, 'type' => 'schema_name'); + $aParams['sTable'] = array('value' => $sTable, 'type' => 'table_name'); + $aParams['sColumn'] = array('value' => $sColumn, 'type' => 'column_name'); + $aParams['sColumnGeom'] = array('value' => $sColumnGeom, 'type' => 'column_name'); + $aParams['geom'] = array('value' => $this->aValues['geom'], 'type' => 'geometry'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getContZoneUrbaIntersect'], $aParams); + if ($this->oConnection->oBd->nombreLigne($oPDOresult) > 0) { + $aLigne = $this->oConnection->oBd->ligneSuivante ($oPDOresult); + $this->aValues['cont_zone_urba'] = $aLigne[$sColumn]; + } + } + } + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_installation', 'id_installation'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/installations", + * tags={"Installations"}, + * summary="delete Installations", + * description="Request to delete Installations", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the installation", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="installation Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + /** + * @SWG\Delete(path="/installations/{id_installation}", + * tags={"Installations"}, + * summary="delete Installations", + * description="Request to delete Installations", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Installation token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_installation", + * in="path", + * description="id of the Installations", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/installations") + * ) + * ) + */ + + /** + * delete installations + * @return id of installations deleted or error object if a installations is not deleted + */ + function DELETE() { + require $this->sRessourcesFile; + // Pas de Suppression si des contrôles sont associés. + $aParams['sSchemaAnc'] = array('value' => $this->aProperties['schema_anc'], 'type' => 'schema_name'); + $aParams['idList'] = array('value' => $this->aValues['idList'], 'type' => 'group'); + $oPDOresult = $this->oConnection->oBd->executeWithParams($aSql['getInstallationControls'], $aParams); + if ($this->oConnection->oBd->enErreur()) { + $aReturn = array('status' => 0, 'message' => $this->oConnection->oBd->getBDMessage(), 'error_code' => 1); + return json_encode($aReturn); + } + else { + if ($this->oConnection->oBd->nombreLigne($oPDOresult) > 0) { + $aReturn = array('status' => 0, 'errorMessage' => 'Des contrôles sont associés à / aux installation(s) à supprimer.', 'error_code' => 1); + return json_encode($aReturn); + } + else { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_installation', 'id_installation'); + return $aReturn['sMessage']; + } + } + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Invariant.class.inc b/web_service/ws/Invariant.class.inc deleted file mode 100755 index 7b5a54d8..00000000 --- a/web_service/ws/Invariant.class.inc +++ /dev/null @@ -1,74 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Invariant.class.inc - * \class Invariant - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Invariant php class - * - * This class defines operation for one Invariant - * - */ -class Invariant extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array('oid', 'ID_BAT', 'ID_COM', 'INVAR', 'DNUPRO', 'ID_PAR', 'CCOSEC', 'DNUPLA'); - } - - /** - * @SWG\Get(path="/invariants/{ID_BAT}", - * tags={"Invariant"}, - * summary="Get Invariant", - * description="Request to get Invariant by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_BAT", - * in="path", - * description="invariant id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/invariants") - * ) - * ) - */ - - /** - * get informations about Invariant - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['invariant'], 'ID_BAT'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Invariants.class.inc b/web_service/ws/Invariants.class.inc deleted file mode 100755 index e7503acb..00000000 --- a/web_service/ws/Invariants.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file Invariants.class.inc - * \class Invariants - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Invariants php class - * - * This class defines Rest Api to Vmap Invariants - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Invariant.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Invariants extends Vmap { - /** - * @SWG\Definition( - * definition="/invariants", - * allOf={ - * @SWG\Schema(ref="#/definitions/invariants") - * } - * ) - * * @SWG\Tag( - * name="invariants", - * description="Operations about invariants" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array('oid', 'ID_BAT', 'ID_COM', 'INVAR', 'DNUPRO', 'ID_PAR', 'CCOSEC', 'DNUPLA'); - } - - /** - * @SWG\Get(path="/invariants", - * tags={"Invariant"}, - * summary="Get Invariants", - * description="Request to get Invariants", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/invariants") - * ) - * ) - */ - - /** - * get Invariants - * @return Invariants - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['invariant'], 'ID_BAT'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/LieuDit.class.inc b/web_service/ws/LieuDit.class.inc deleted file mode 100755 index 1dcf2a5d..00000000 --- a/web_service/ws/LieuDit.class.inc +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file LieuDit.class.inc - * \class LieuDit - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the LieuDit php class - * - * This class defines operation for one LieuDit - * - */ -class LieuDit extends Cadastre { - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/LieuDits.class.inc b/web_service/ws/LieuDits.class.inc deleted file mode 100755 index 2a33874d..00000000 --- a/web_service/ws/LieuDits.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file LieuDits.class.inc - * \class LieuDits - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the LieuDits php class - * - * This class defines Rest Api to Vmap LieuDits - * - */ -require_once 'Cadastre.class.inc'; -require_once 'LieuDit.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class LieuDits extends Cadastre { - /** - * @SWG\Definition( - * definition="/lieudits", - * allOf={ - * @SWG\Schema(ref="#/definitions/lieudits") - * } - * ) - * * @SWG\Tag( - * name="lieudits", - * description="Operations about lieudits" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("oid", "id_com", "code_com", "section", "pre", "texte", "tex", "tex2", "tex3", "tex4", "tex5", "tex6", "tex7", "tex8", "tex9", "tex10", "geom"); - } - - /** - * @SWG\Get(path="/lieudits", - * tags={"LieuDit"}, - * summary="Get LieuDits", - * description="Request to get LieuDits", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/lieudits") - * ) - * ) - */ - - /** - * get LieuDits - * @return LieuDits - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['lieu_dit'], 'oid'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Param_admin.class.inc b/web_service/ws/Param_admin.class.inc new file mode 100755 index 00000000..bd1db2f1 --- /dev/null +++ b/web_service/ws/Param_admin.class.inc @@ -0,0 +1,91 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Param_admin.class.inc + * \class Param_admin + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_admin php class + * + * This class defines operation for one Param_admin + * + */ +class Param_admin extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_admins/{id_param_admin}", + * tags={"Param_admins"}, + * summary="Get Param_admin", + * description="Request to get Param_admin by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_param_admin", + * in="path", + * description="id_param_admin", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "param_admin", "id_parametre_admin"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_admin', 'id_parametre_admin', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_admin"] = $this->aValues["my_vitis_id"]; + } + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Param_admins.class.inc b/web_service/ws/Param_admins.class.inc new file mode 100755 index 00000000..eb9caa92 --- /dev/null +++ b/web_service/ws/Param_admins.class.inc @@ -0,0 +1,285 @@ +<?php + +/** + * \file Param_admins.class.inc + * \class Param_admins + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_admins php class + * + * This class defines Rest Api to Vitis Param_admins + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Param_admin.class.inc'; + + +class Param_admins extends Anc { + /** + * @SWG\Definition( + * definition="/param_admins", + * allOf={ + * @SWG\Schema(ref="#/definitions/param_admins") + * } + * ) + * * @SWG\Tag( + * name="Param_admins", + * description="Operations about Param_admins" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_admins", + * tags={"Param_admins"}, + * summary="Get Param_admins", + * description="Request to get Param_admins", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * get Param_admins + * @return Param_admins + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_param_admin", "id_parametre_admin"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/param_admins", + * tags={"Param_admins"}, + * summary="Add param_admin", + * description="Request to add Param_admins", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * insert param_admin + * @return id of the param_admin created + */ + function POST() { + // Conversion des dates + $aDates = array('date_fin_validite'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_admin', $this->aProperties['schema_anc'].'.param_admin_id_parametre_admin_seq', 'id_parametre_admin'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/param_admins/{id_param_admin}", + * tags={"Param_admins"}, + * summary="update Param_admins", + * description="Request to update Param_admins", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_admin token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_admin", + * in="path", + * description="id of the Param_admins", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * update param_admins + * @return id of param_admins updated or error object if a param_admins is not updated + */ + function PUT() { + // Conversion des dates + $aDates = array('date_fin_validite'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_admin', 'id_parametre_admin'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/param_admins", + * tags={"Param_admins"}, + * summary="delete Param_admins", + * description="Request to delete Param_admins", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the param_admin", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_admin Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + /** + * @SWG\Delete(path="/param_admins/{id_param_admin}", + * tags={"Param_admins"}, + * summary="delete Param_admins", + * description="Request to delete Param_admins", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_admin token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_admin", + * in="path", + * description="id of the Param_admins", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_admins") + * ) + * ) + */ + + /** + * delete param_admins + * @return id of param_admins deleted or error object if a param_admins is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_admin', 'id_parametre_admin'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Param_liste.class.inc b/web_service/ws/Param_liste.class.inc new file mode 100755 index 00000000..08c642c7 --- /dev/null +++ b/web_service/ws/Param_liste.class.inc @@ -0,0 +1,91 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Param_liste.class.inc + * \class Param_liste + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_liste php class + * + * This class defines operation for one Param_liste + * + */ +class Param_liste extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_listes/{id_param_liste}", + * tags={"Param_listes"}, + * summary="Get Param_liste", + * description="Request to get Param_liste by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_param_liste", + * in="path", + * description="id_param_liste", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "param_liste", "id_parametre_liste"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_liste', 'id_parametre_liste', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_liste"] = $this->aValues["my_vitis_id"]; + } + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Param_listes.class.inc b/web_service/ws/Param_listes.class.inc new file mode 100755 index 00000000..85b6ae2b --- /dev/null +++ b/web_service/ws/Param_listes.class.inc @@ -0,0 +1,265 @@ +<?php + +/** + * \file Param_listes.class.inc + * \class Param_listes + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_listes php class + * + * This class defines Rest Api to Vitis Param_listes + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Param_liste.class.inc'; + + +class Param_listes extends Anc { + /** + * @SWG\Definition( + * definition="/param_listes", + * allOf={ + * @SWG\Schema(ref="#/definitions/param_listes") + * } + * ) + * * @SWG\Tag( + * name="Param_listes", + * description="Operations about Param_listes" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/param_listes", + * tags={"Param_listes"}, + * summary="Get Param_listes", + * description="Request to get Param_listes", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * get Param_listes + * @return Param_listes + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "param_liste", "id_parametre_liste"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/param_listes", + * tags={"Param_listes"}, + * summary="Add param_liste", + * description="Request to add Param_listes", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * insert param_liste + * @return id of the param_liste created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_liste', $this->aProperties['schema_anc'].'.param_liste_id_parametre_liste_seq', 'id_parametre_liste'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/param_listes/{id_param_liste}", + * tags={"Param_listes"}, + * summary="update Param_listes", + * description="Request to update Param_listes", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_liste token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_liste", + * in="path", + * description="id of the Param_listes", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * update param_listes + * @return id of param_listes updated or error object if a param_listes is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_liste', 'id_parametre_liste'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/param_listes", + * tags={"Param_listes"}, + * summary="delete Param_listes", + * description="Request to delete Param_listes", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the param_liste", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_liste Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + /** + * @SWG\Delete(path="/param_listes/{id_param_liste}", + * tags={"Param_listes"}, + * summary="delete Param_listes", + * description="Request to delete Param_listes", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_liste token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_liste", + * in="path", + * description="id of the Param_listes", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_listes") + * ) + * ) + */ + + /** + * delete param_listes + * @return id of param_listes deleted or error object if a param_listes is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_liste', 'id_parametre_liste'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Param_tarif.class.inc b/web_service/ws/Param_tarif.class.inc new file mode 100755 index 00000000..2da7e153 --- /dev/null +++ b/web_service/ws/Param_tarif.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Param_tarif.class.inc + * \class Param_tarif + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_tarif php class + * + * This class defines operation for one Param_tarif + * + */ +class Param_tarif extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_tarif", "id_com", "controle_type", "montant", "annee_validite", "devise", "libelle_montant"); + } + + /** + * @SWG\Get(path="/param_tarifs/{id_param_tarif}", + * tags={"Param_tarifs"}, + * summary="Get Param_tarif", + * description="Request to get Param_tarif by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_param_tarif", + * in="path", + * description="id_param_tarif", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_param_tarif", "id_parametre_tarif"); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'param_tarif', 'id_parametre_tarif', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_parametre_tarif"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Param_tarifs.class.inc b/web_service/ws/Param_tarifs.class.inc new file mode 100755 index 00000000..7c6c2d45 --- /dev/null +++ b/web_service/ws/Param_tarifs.class.inc @@ -0,0 +1,266 @@ +<?php + +/** + * \file Param_tarifs.class.inc + * \class Param_tarifs + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Param_tarifs php class + * + * This class defines Rest Api to Vitis Param_tarifs + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Param_tarif.class.inc'; + + +class Param_tarifs extends Anc { + /** + * @SWG\Definition( + * definition="/param_tarifs", + * allOf={ + * @SWG\Schema(ref="#/definitions/param_tarifs") + * } + * ) + * * @SWG\Tag( + * name="Param_tarifs", + * description="Operations about Param_tarifs" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + $this->aSelectedFields = Array("id_parametre_tarif", "id_com", "controle_type", "montant", "annee_validite", "devise", "libelle_montant"); + } + + /** + * @SWG\Get(path="/param_tarifs", + * tags={"Param_tarifs"}, + * summary="Get Param_tarifs", + * description="Request to get Param_tarifs", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * get Param_tarifs + * @return Param_tarifs + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_param_tarif", "id_parametre_tarif"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/param_tarifs", + * tags={"Param_tarifs"}, + * summary="Add param_tarif", + * description="Request to add Param_tarifs", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * insert param_tarif + * @return id of the param_tarif created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'param_tarif', $this->aProperties['schema_anc'].'.param_tarif_id_parametre_tarif_seq', 'id_parametre_tarif'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/param_tarifs/{id_param_tarif}", + * tags={"Param_tarifs"}, + * summary="update Param_tarifs", + * description="Request to update Param_tarifs", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_tarif token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_tarif", + * in="path", + * description="id of the Param_tarifs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * update param_tarifs + * @return id of param_tarifs updated or error object if a param_tarifs is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'param_tarif', 'id_parametre_tarif'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/param_tarifs", + * tags={"Param_tarifs"}, + * summary="delete Param_tarifs", + * description="Request to delete Param_tarifs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the param_tarif", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="param_tarif Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + /** + * @SWG\Delete(path="/param_tarifs/{id_param_tarif}", + * tags={"Param_tarifs"}, + * summary="delete Param_tarifs", + * description="Request to delete Param_tarifs", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Param_tarif token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_param_tarif", + * in="path", + * description="id of the Param_tarifs", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/param_tarifs") + * ) + * ) + */ + + /** + * delete param_tarifs + * @return id of param_tarifs deleted or error object if a param_tarifs is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'param_tarif', 'id_parametre_tarif'); + return $aReturn['sMessage']; + } +} +?> \ No newline at end of file diff --git a/web_service/ws/Parcelle.class.inc b/web_service/ws/Parcelle.class.inc deleted file mode 100755 index 876bd73b..00000000 --- a/web_service/ws/Parcelle.class.inc +++ /dev/null @@ -1,74 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Parcelle.class.inc - * \class Parcelle - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Parcelle php class - * - * This class defines operation for one Parcelle - * - */ -class Parcelle extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("id_com", "id_sec", "code_com", "commune", "parcelle", "section", "pre", "coar", "codm", "indp", "idu", "id_par", "sup_fiscale", "numero", "feuille", "geom"); - } - - /** - * @SWG\Get(path="/parcelles/{id_par}", - * tags={"Parcelle"}, - * summary="Get Parcelle", - * description="Request to get Parcelle by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="id_par", - * in="path", - * description="parcelle id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/parcelles") - * ) - * ) - */ - - /** - * get informations about Parcelle - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['parcelle'], 'id_par'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Parcelles.class.inc b/web_service/ws/Parcelles.class.inc deleted file mode 100755 index 89d185d8..00000000 --- a/web_service/ws/Parcelles.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file Parcelles.class.inc - * \class Parcelles - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Parcelles php class - * - * This class defines Rest Api to Vmap Parcelles - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Parcelle.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Parcelles extends Cadastre { - /** - * @SWG\Definition( - * definition="/parcelles", - * allOf={ - * @SWG\Schema(ref="#/definitions/parcelles") - * } - * ) - * * @SWG\Tag( - * name="parcelles", - * description="Operations about parcelles" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("id_com", "id_sec", "code_com", "commune", "parcelle", "section", "pre", "coar", "codm", "indp", "idu", "id_par", "sup_fiscale", "numero", "feuille", "geom"); - } - - /** - * @SWG\Get(path="/parcelles", - * tags={"Parcelle"}, - * summary="Get Parcelles", - * description="Request to get Parcelles", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/parcelles") - * ) - * ) - */ - - /** - * get Parcelles - * @return Parcelles - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['parcelle'], 'id_par'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Pretraitement.class.inc b/web_service/ws/Pretraitement.class.inc new file mode 100755 index 00000000..372fc829 --- /dev/null +++ b/web_service/ws/Pretraitement.class.inc @@ -0,0 +1,105 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Pretraitement.class.inc + * \class Pretraitement + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Pretraitement php class + * + * This class defines operation for one Pretraitement + * + */ +class Pretraitement extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/pretraitements/{id_pretraitement}", + * tags={"Pretraitements"}, + * summary="Get Pretraitement", + * description="Request to get Pretraitement by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_pretraitement", + * in="path", + * description="id_pretraitement", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_pretraitement", "id_pretraitement"); + // Url des fichiers. + $sWsDataUrl = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_pretraitement/documents/' . $this->aValues["my_vitis_id"]; + if (!empty($this->aFields['photos_f'])) + $this->aFields['photos_f'] = $sWsDataUrl . '/photos_f/' . $this->aFields['photos_f']; + if (!empty($this->aFields['fiche_f'])) + $this->aFields['fiche_f'] = $sWsDataUrl . '/fiche_f/' . $this->aFields['fiche_f']; + if (!empty($this->aFields['schema_f'])) + $this->aFields['schema_f'] = $sWsDataUrl . '/schema_f/' . $this->aFields['schema_f']; + if (!empty($this->aFields['documents_f'])) + $this->aFields['documents_f'] = $sWsDataUrl . '/documents_f/' . $this->aFields['documents_f']; + if (!empty($this->aFields['plan_f'])) + $this->aFields['plan_f'] = $sWsDataUrl . '/plan_f/' . $this->aFields['plan_f']; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_pretraitement"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Pretraitements.class.inc b/web_service/ws/Pretraitements.class.inc new file mode 100755 index 00000000..49be91d5 --- /dev/null +++ b/web_service/ws/Pretraitements.class.inc @@ -0,0 +1,320 @@ +<?php + +/** + * \file Pretraitements.class.inc + * \class Pretraitements + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Pretraitements php class + * + * This class defines Rest Api to Vitis Pretraitements + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Pretraitement.class.inc'; + + +class Pretraitements extends Anc { + /** + * @SWG\Definition( + * definition="/pretraitements", + * allOf={ + * @SWG\Schema(ref="#/definitions/pretraitements") + * } + * ) + * * @SWG\Tag( + * name="Pretraitements", + * description="Operations about Pretraitements" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/pretraitements", + * tags={"Pretraitements"}, + * summary="Get Pretraitements", + * description="Request to get Pretraitements", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * get Pretraitements + * @return Pretraitements + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_pretraitement", "id_pretraitement"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/pretraitements", + * tags={"Pretraitements"}, + * summary="Add pretraitement", + * description="Request to add Pretraitements", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * insert pretraitement + * @return id of the pretraitement created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + // Sauve le nom des fichiers. + if (!empty($_FILES['photos_f'])) + $this->aValues['photos_f'] = $_FILES['photos_f']["name"]; + if (!empty($_FILES['fiche_f'])) + $this->aValues['fiche_f'] = $_FILES['fiche_f']["name"]; + if (!empty($_FILES['schema_f'])) + $this->aValues['schema_f'] = $_FILES['schema_f']["name"]; + if (!empty($_FILES['documents_f'])) + $this->aValues['documents_f'] = $_FILES['documents_f']["name"]; + if (!empty($_FILES['plan_f'])) + $this->aValues['plan_f'] = $_FILES['plan_f']["name"]; + // + $aDates = array('ptr_vi_date'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + // + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_pretraitement', $this->aProperties['schema_anc'].'.pretraitement_id_pretraitement_seq', 'id_pretraitement'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_pretraitement'); + // + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/pretraitements/{id_pretraitement}", + * tags={"Pretraitements"}, + * summary="update Pretraitements", + * description="Request to update Pretraitements", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Pretraitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_pretraitement", + * in="path", + * description="id of the Pretraitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * update pretraitements + * @return id of pretraitements updated or error object if a pretraitements is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_pretraitement'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_pretraitement'); + // + $aDates = array('ptr_vi_date'); + foreach ($aDates as $sDate) { + if (isset($this->aValues[$sDate])) { + if ($this->aValues[$sDate] == '') + unset($this->aValues[$sDate]); + else + $this->aValues[$sDate] = date_format(date_create_from_format('d/m/Y', $this->aValues[$sDate]), 'Y-m-d'); + } + } + // + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/pretraitements", + * tags={"Pretraitements"}, + * summary="delete Pretraitements", + * description="Request to delete Pretraitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the pretraitement", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="pretraitement Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + /** + * @SWG\Delete(path="/pretraitements/{id_pretraitement}", + * tags={"Pretraitements"}, + * summary="delete Pretraitements", + * description="Request to delete Pretraitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Pretraitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_pretraitement", + * in="path", + * description="id of the Pretraitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/pretraitements") + * ) + * ) + */ + + /** + * delete pretraitements + * @return id of pretraitements deleted or error object if a pretraitements is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_pretraitement', 'id_pretraitement'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Proprietaire.class.inc b/web_service/ws/Proprietaire.class.inc deleted file mode 100755 index 41b65cb2..00000000 --- a/web_service/ws/Proprietaire.class.inc +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Proprietaire.class.inc - * \class Proprietaire - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Proprietaire php class - * - * This class defines operation for one Proprietaire - * - */ -class Proprietaire extends Cadastre { - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Proprietaires.class.inc b/web_service/ws/Proprietaires.class.inc deleted file mode 100755 index 3fa0b7c9..00000000 --- a/web_service/ws/Proprietaires.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file Proprietaires.class.inc - * \class Proprietaires - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Proprietaires php class - * - * This class defines Rest Api to Vmap Proprietaires - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Proprietaire.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Proprietaires extends Cadastre { - /** - * @SWG\Definition( - * definition="/proprietaires", - * allOf={ - * @SWG\Schema(ref="#/definitions/proprietaires") - * } - * ) - * * @SWG\Tag( - * name="proprietaires", - * description="Operations about proprietaires" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array('oid', 'ID_COM', 'DDENOM', 'DNUPRO', 'COMMUNE'); - } - - /** - * @SWG\Get(path="/proprietaires", - * tags={"Proprietaire"}, - * summary="Get Proprietaires", - * description="Request to get Proprietaires", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/proprietaires") - * ) - * ) - */ - - /** - * get Proprietaires - * @return Proprietaires - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['proprietaire'], 'oid'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/RapportsCadastreParcelle.class.inc b/web_service/ws/RapportsCadastreParcelle.class.inc deleted file mode 100755 index 8736a468..00000000 --- a/web_service/ws/RapportsCadastreParcelle.class.inc +++ /dev/null @@ -1,283 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -/** - * \file rapportscadastreparcelle.class.inc - * \class RapportsCadastreParcelle - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the RapportsCadastreParcelle php class - * - * This class defines the rest api for rapportscadastreparcelle - * - */ -class RapportsCadastreParcelle extends Cadastre { - /** - * @SWG\Definition( - * definition="/rapportscadastreparcelle", - * allOf={ - * @SWG\Schema(ref="#/definitions/rapportscadastreparcelle") - * } - * ) - * * @SWG\Tag( - * name="rapportscadastreparcelle", - * description="Operations about rapportscadastreparcelle" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * @SWG\Get(path="/rapportscadastreparcelle", - * tags={"RapportsCadastreParcelle"}, - * summary="Create the releve de propriete sheet", - * description="Request to get the element", - * operationId="GET", - * produces={"application/json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="parcelles", - * in="query", - * description="id_par des parcelles (ex: 340039000AI0166|340332000AC0005)", - * required=true, - * default="", - * type="string" - * ), - * @SWG\Parameter( - * name="rapport_type", - * in="query", - * description="type de rapport: ToutesInfos, BatieNonBatie, Proprietaire, SubdivisionFiscale, EmprisePosPlu, Locaux, ProprietaireLocaux", - * required=true, - * default="", - * type="string" - * ), - * @SWG\Response( - * response=200, - * description="RapportsCadastreParcelle Response", - * @SWG\Schema(ref="#/definitions/rapportscadastreparcelle") - * ) - * ) - */ - function GET() { - - if (!in_array('vmap_cadastre_user', $this->oConnection->aPrivileges)) { - $oError = new VitisError(0, 'INSUFFICIENT_PRIVILEGES'); - $aXmlRacineAttribute['status'] = 0; - $sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - return $sMessage; - } - - /** - * Tableau contenant les id_par des parcelles à utiliser - * @type array - */ - $aParcelles = explode("|", $this->aValues["parcelles"]); - - /** - * Type de rapport - * @type string - */ - $rapportType = $this->aValues['rapport_type']; - - /** - * Objet BD - * @type object - */ - $oBD = new BD($this->aProperties["cadastre"]["rp"]["login"], $this->aProperties["cadastre"]["rp"]["pass"], $this->aProperties["database"], $this->aProperties["server"], $this->aProperties["port"], $this->aProperties["sgbd"], $this->aProperties["page_encoding"]); - $this->oConnection->oBd = $oBD; - /** - * Properties - * @type array - */ - $properties = $this->aProperties; - - /** - * Returned array - * @type array - */ - $aReturn = Array(); - - - // Mémorise la date de début - $iDebutPdf = (date("G") * 60) * 60 + (date("i") * 60) + date("s"); - $DebutPdf = date("G") . 'h ' . date("i") . 'min ' . date("s") . 's'; - - // Connexion avec uVitis pour récupérer les données majic - - $oBD = new BD($properties["cadastre"]["rp"]["login"], $properties["cadastre"]["rp"]["pass"], $properties["database"], $properties["server"], $properties["port"], $properties["sgbd"], $properties["page_encoding"]); - $this->oConnection->oBd = $oBD; - - // Récupère l'année - $sYear = $this->vmapGet('majic', '"ANNEE_REFERENCE"', array('ANNEE'), '', array('limit' => 1))[0]['ANNEE']; - - // Patch pour décoder les properties UTF-8 parce que les rapports sont générés en ISO - if (is_array($properties["cadastre"]["fiche_urb"]["intersect"]["views"])) { - $properties["cadastre"]["fiche_urb"]["intersect"]["views"] = $this->decodeUtf8Array($properties["cadastre"]["fiche_urb"]["intersect"]["views"]); - } - - // Charge les données - if ($rapportType != 'Locaux' && $rapportType != 'ProprietaireLocaux') { - require_once(dirname($_SERVER['SCRIPT_FILENAME']) . "/class/majic_libV2/Mj_Compte_Communal_Parcelles.class.inc"); - $oRapport = new Mj_Compte_Communal_Parcelles($aParcelles, $oBd, $properties, "polygon"); - } else { - require_once(dirname($_SERVER['SCRIPT_FILENAME']) . "/class/majic_libV2/Mj_Bati_Parcelles.class.inc"); - $oRapport = new Mj_Bati_Parcelles($aParcelles, $oBd, $properties); - } - - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"])) { - mkdir($properties["cadastre"]["rp"]["rp_dir"]); - } - // Crée les dossiers correspondants - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear)) - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear); - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType)) - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType); - - - // Crée les XML - if ($oRapport->isError()) { - http_response_code(500); - writeToErrorLog('Erreur lors de l\'extraction des données avec la librairie majic : ' . $oRapport->sMessage); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du rapport."; - return json_encode($aReturn); - } else { - // Création du fichier XML. - $sFile = ""; - foreach ($aParcelles as $parcelle) { - $sFile .= $parcelle; - } - if (count($aParcelles) > 2) { - $sFile = UniqFileName(); - } - - $sXmlFileName = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType . "/" . $sFile . ".xml"; - - if ($rapportType === 'ToutesInfos') - $sXslFileName = dirname($_SERVER['SCRIPT_FILENAME']) . "/class/majic_lib/xsl/Mj_Rapport.xsl"; - else - $sXslFileName = dirname($_SERVER['SCRIPT_FILENAME']) . "/class/majic_lib/xsl/Mj_Rapport_Parcelle_" . $rapportType . ".xsl"; - - if (!file_exists($sXmlFileName)) { - $oRapport->asXMLFile("", $sXmlFileName, "Rapport_Parcelle", "UTF-8", "ISO-8859-1"); - } - } - - - // Crée les PDF et XSL - if ($rapportType === 'ToutesInfos') { - - // Chemin vers le fichier - $filePath = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType . "/" . $sFile . ".pdf"; - - if (!file_exists($filePath)) { - - // Pour faire du pdf - $sPdfFileName = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType . "/" . $sFile . ".pdf"; - - // Création du fichier PDF. - $sCommandLine = $properties["fop_root_dir"] . "/fop -xsl " . $sXslFileName . " -xml " . $sXmlFileName . " -pdf " . $sPdfFileName; - - exec($sCommandLine, $aCommand, $iResult); - - if ($iResult) { - http_response_code(500); - $aReturn['error']['errorMessage'] .= "Erreur lors de la génération du rapport."; - writeToErrorLog("Erreur lors de la génération d'un rapport au format PDF."); - writeToErrorLog("Ligne de commande : " . $sCommandLine); - } - } - - $downloadFilePath = $properties['web_server_name'] . '/' . $properties['services_alias'] . '/cadastre/downloadrapport?sYear=' . $sYear . '&sType=Rapport_Parcelle_' . $rapportType . '&sFileName=' . urlencode($sFile) . '.pdf'; - } else { - - // Pour faire de l'excel - $sFileName = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType . "/transform.xml"; - - // Chemin vers le fichier - $filePath = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType . "/" . $sFile . ".xls"; - - if (!file_exists($filePath)) { - $doc = new DOMDocument(); - $xsl = new XSLTProcessor(); - if (file_exists($sXslFileName)) { - $doc->load($sXslFileName); - $xsl->importStyleSheet($doc); - $doc->load($sXmlFileName); - $oHandle = fopen($sFileName, 'w'); - if ($oHandle == false) { - http_response_code(500); - $aReturn['error']['errorMessage'] .= "Impossible de créer le fichier " . $sFileName . ". Impossible de générer le rapport."; - } else { - fwrite($oHandle, $xsl->transformToXML($doc)); - fclose($oHandle); - $sRapportCree = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/Rapport_Parcelle_" . $rapportType . "/" . $sFile . ".xls"; - // copie du fichier pour créer le fichier excel - if (!copy($sFileName, $sRapportCree)) { - http_response_code(500); - $aReturn['error']['errorMessage'] .= "La copie du fichier '" . $sFileName . "' vers '" . $sRapportCree . "' n'a pas réussi. Impossible de générer le rapport."; - } - } - } else { - writeToErrorLog("Le fichier " . $sXslFileName . " n'existe pas."); - } - } else { - $aReturn['data']['alreadyExists'] = true; - } - - $downloadFilePath = $properties['web_server_name'] . '/' . $properties['services_alias'] . '/cadastre/downloadrapport?sYear=' . $sYear . '&sType=Rapport_Parcelle_' . $rapportType . '&sFileName=' . urlencode($sFile) . '.xls'; - } - - $iFinPdf = (date("G") * 60) * 60 + (date("i") * 60) + date("s"); - $FinPdf = date("G") . 'h ' . date("i") . 'min ' . date("s") . 's'; - - $aReturn['data']['rapport'] = $downloadFilePath; - $aReturn['data']['format'] = pathinfo($filePath, PATHINFO_EXTENSION); - $aReturn['data']['debut'] = $DebutPdf; - $aReturn['data']['fin'] = $FinPdf; - $aReturn['data']['temps'] = $iFinPdf - $iDebutPdf . 's'; - - return json_encode($aReturn); - } - - /** - * Fonction permettant de décoder un tableau multidimensionnel UTF8 en ISO. - * /param $s Tableau à décoder. - */ - function decodeUtf8Array($s) { - if (is_array($s)) { - $result = array(); - foreach ($s as $id => $value) { - if (is_array($value)) - $result[$id] = $this->decodeUtf8Array($value); - else - $result[$id] = utf8_decode($value); - } - return $result; - } else - return $s; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/ReleveDePropriete.class.inc b/web_service/ws/ReleveDePropriete.class.inc deleted file mode 100755 index 0d445f67..00000000 --- a/web_service/ws/ReleveDePropriete.class.inc +++ /dev/null @@ -1,259 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -/** - * \file relevedepropriete.class.inc - * \class ReleveDePropriete - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the ReleveDePropriete php class - * - * This class defines the rest api for relevedepropriete - * - */ -class ReleveDePropriete extends Cadastre { - /** - * @SWG\Definition( - * definition="/relevedepropriete", - * allOf={ - * @SWG\Schema(ref="#/definitions/relevedepropriete") - * } - * ) - * * @SWG\Tag( - * name="relevedepropriete", - * description="Operations about relevedepropriete" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - } - - /** - * @SWG\Get(path="/relevedepropriete", - * tags={"ReleveDePropriete"}, - * summary="Create the releve de propriete sheet", - * description="Request to get the element", - * operationId="GET", - * produces={"application/json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="type", - * in="query", - * description="standard / tiers / parcelle", - * required=true, - * default="parcelle", - * type="string" - * ), - * @SWG\Parameter( - * name="IDDNUPRO", - * in="query", - * description="concaténation entre ID_COM et DNUPRO", - * required=false, - * default="L00048", - * type="string" - * ), - * @SWG\Parameter( - * name="ID_PAR", - * in="query", - * description="ID_PAR", - * required=false, - * default="340039000AI0166", - * type="string" - * ), - * @SWG\Response( - * response=200, - * description="ReleveDePropriete Response", - * @SWG\Schema(ref="#/definitions/relevedepropriete") - * ) - * ) - */ - function GET() { - - if (!in_array('vmap_cadastre_user', $this->oConnection->aPrivileges)) { - $oError = new VitisError(0, 'INSUFFICIENT_PRIVILEGES'); - $aXmlRacineAttribute['status'] = 0; - $sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']); - return $sMessage; - } - - $ID_PAR = $this->aValues['ID_PAR']; - $IDDNUPRO = $this->aValues['IDDNUPRO']; - $sType = $this->aValues['type']; - $properties = $this->aProperties; - $aReturn = Array(); - - // Vérifie que l'utilisateur a les droits sur la commune - $communeRights = false; - if ($ID_PAR != '') - $communeRights = $this->haveCommuneRights(substr($ID_PAR, 0, 6)); - if ($IDDNUPRO != '') - $communeRights = $this->haveCommuneRights(substr($IDDNUPRO, 0, 6)); - - // Vérifie les droits sur la commune - if ($communeRights == false) { - http_response_code(403); - writeToErrorLog("L'utilisateur n'a pas les droits sur la commune"); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } - - // Vérifie la validité des informations passées en properties - if (!is_dir($properties["fop_root_dir"])) { - http_response_code(500); - writeToErrorLog("Dossier fop introuvable: " . $properties["fop_root_dir"]); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } - if (!is_dir(dirname($_SERVER['SCRIPT_FILENAME']) . '/class/majic_lib')) { - http_response_code(500); - writeToErrorLog("Dossier majic_lib introuvable"); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } - - $oBD = new BD($properties["cadastre"]["rp"]["login"], $properties["cadastre"]["rp"]["pass"], $properties["database"], $properties["server"], $properties["port"], $properties["sgbd"], $properties["page_encoding"]); - $this->oConnection->oBd = $oBD; - - // Récupère l'année - $sYear = $this->vmapGet('majic', '"ANNEE_REFERENCE"', array('ANNEE'), '', array('limit' => 1))[0]['ANNEE']; - - if (strlen($sYear) < 1) { - http_response_code(500); - writeToErrorLog("Impossible de récupérer l'année de référence dans le schema Majic"); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } - - // Récupère le chemin du fichier - switch ($sType) { - case "tiers" : - case "standard" : - $fileName = $IDDNUPRO; - break; - - case "parcelle" : - $fileName = $ID_PAR; - break; - } - - $filePath = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . '/' . $sType . '/' . $fileName . ".pdf"; - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"])) - @mkdir($properties["cadastre"]["rp"]["rp_dir"]); - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear)) - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear); - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . '/' . $sType)) - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . '/' . $sType); - - - if (file_exists($filePath)) { - $aReturn['data']['releveDePropriete'] = $properties['web_server_name'] . '/' . $properties['services_alias'] . '/cadastre/downloadrapport?sYear=' . $sYear . '&sType=' . $sType . '&sFileName=' . urlencode($fileName) . '.pdf'; - $aReturn['data']['alreadyExists'] = true; - } else { - if (!file_exists($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear)) { - if (@mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear)) { - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/standard"); - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/tiers"); - @mkdir($properties["cadastre"]["rp"]["rp_dir"] . "/" . $sYear . "/parcelle"); - } else { - http_response_code(500); - writeToErrorLog("Erreur lors de la création des répertoires de l'année courante pour les relevés de propriété."); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } - } - - // Création d'un nouvel objet Relevé de Propriété - switch ($sType) { - case "tiers" : - case "standard" : - require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/majic_lib/Mj_Compte_Communal.class.inc'; - $oRP = new Mj_Compte_Communal($IDDNUPRO, $oBD); - if ($oRP->isError()) { - http_response_code(500); - writeToErrorLog("Erreur lors de l'extraction des données Majic."); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } else { - if ($sType === "tiers") { - $sDir = $sYear . "/tiers/"; - } else { - $sDir = $sYear . "/standard/"; - } - $sFile = str_replace("*", "~", $IDDNUPRO); - } - break; - - case "parcelle" : - require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/majic_lib/Mj_Compte_Communal_Parcelle.class.inc'; - $oRP = new Mj_Compte_Communal_Parcelle("", $ID_PAR, $oBD); - if ($oRP->isError()) { - http_response_code(500); - writeToErrorLog("Erreur lors de l'extraction des données Majic."); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } else { - $sDir = $sYear . "/parcelle/"; - $sFile = str_replace("*", "~", $ID_PAR); - } - break; - } - if (!$bError) { - $sXMLFile = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sDir . $sFile . ".xml"; - if ($sType === "tiers") { - $sXSLFile = dirname($_SERVER['SCRIPT_FILENAME']) . '/class/majic_lib/xsl/Mj_fo_tiers.xsl'; - } else { - $sXSLFile = dirname($_SERVER['SCRIPT_FILENAME']) . '/class/majic_lib/xsl/Mj_fo.xsl'; - } - $sPDFFile = $properties["cadastre"]["rp"]["rp_dir"] . "/" . $sDir . $sFile . ".pdf"; - - if (!file_exists($sPDFFile)) { - $oRP->asXMLFile("", $sXMLFile, "Mj"); - } - - $sCommand = $properties["fop_root_dir"] . "/fop -xml " . $sXMLFile . " -xsl " . $sXSLFile . " -pdf " . $sPDFFile; - - exec($sCommand, $aCommand, $iResult); - - if (!$iResult) { - $aReturn['data']['releveDePropriete'] = $properties['web_server_name'] . '/' . $properties['services_alias'] . '/cadastre/downloadrapport?sYear=' . $sYear . '&sType=' . $sType . '&sFileName=' . urlencode($sFile) . '.pdf'; - } else { - writeToErrorLog("Erreur lors de la génération du fichier PDF de relevé de propriété :"); - writeToErrorLog("Ligne de commande : " . $sCommand); - writeToErrorLog("Message d'erreur : "); - foreach ($aCommand as $sValeur) { - writeToErrorLog($sValeur); - } - http_response_code(500); - writeToErrorLog("Erreur lors de la génération du fichier PDF de relevé de propriété."); - $aReturn['error']['errorMessage'] = "Erreur lors de la génération du fichier PDF de relevé de propriété."; - return json_encode($aReturn); - } - } - } - - return json_encode($aReturn); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Section.class.inc b/web_service/ws/Section.class.inc deleted file mode 100755 index 83116512..00000000 --- a/web_service/ws/Section.class.inc +++ /dev/null @@ -1,75 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Section.class.inc - * \class Section - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Section php class - * - * This class defines operation for one Section - * - */ -class Section extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("id_com", "id_sec", "code_com", "commune", "section", "pre", "idu", "tex", "texte", "geom"); - } - - /** - * @SWG\Get(path="/sections/{id_sec}", - * tags={"Section"}, - * summary="Get Section", - * description="Request to get Section by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="id_sec", - * in="path", - * description="section id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/sections") - * ) - * ) - */ - - /** - * get informations about Section - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['section'], 'id_sec'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Sections.class.inc b/web_service/ws/Sections.class.inc deleted file mode 100755 index 9b94963a..00000000 --- a/web_service/ws/Sections.class.inc +++ /dev/null @@ -1,132 +0,0 @@ -<?php - -/** - * \file Sections.class.inc - * \class Sections - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Sections php class - * - * This class defines Rest Api to Vmap Sections - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Section.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Sections extends Cadastre { - /** - * @SWG\Definition( - * definition="/sections", - * allOf={ - * @SWG\Schema(ref="#/definitions/sections") - * } - * ) - * * @SWG\Tag( - * name="sections", - * description="Operations about sections" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array("id_com", "id_sec", "code_com", "commune", "replace(pre, '000', '')||replace(section, '0', '') as section", "pre", "idu", "tex", "texte", "geom"); - } - - //(pre, '000', '')||replace(section, '0', '') as section - /** - * @SWG\Get(path="/sections", - * tags={"Section"}, - * summary="Get Sections", - * description="Request to get Sections", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/sections") - * ) - * ) - */ - - /** - * get Sections - * @return Sections - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['section'], 'id_sec'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Traitement.class.inc b/web_service/ws/Traitement.class.inc new file mode 100755 index 00000000..b297bff3 --- /dev/null +++ b/web_service/ws/Traitement.class.inc @@ -0,0 +1,105 @@ +<?php + +require_once __DIR__ . '/Anc.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Traitement.class.inc + * \class Traitement + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Traitement php class + * + * This class defines operation for one Traitement + * + */ +class Traitement extends Anc { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/traitements/{id_traitement}", + * tags={"Traitements"}, + * summary="Get Traitement", + * description="Request to get Traitement by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_traitement", + * in="path", + * description="id_traitement", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_anc'], "v_traitement", "id_traitement"); + // Url des fichiers. + $sWsDataUrl = $this->aProperties['web_server_name'] . '/' . $this->aProperties['ws_data_alias'] . '/anc/anc_saisie_anc_traitement/documents/' . $this->aValues["my_vitis_id"]; + if (!empty($this->aFields['photos_f'])) + $this->aFields['photos_f'] = $sWsDataUrl . '/photos_f/' . $this->aFields['photos_f']; + if (!empty($this->aFields['fiche_f'])) + $this->aFields['fiche_f'] = $sWsDataUrl . '/fiche_f/' . $this->aFields['fiche_f']; + if (!empty($this->aFields['schema_f'])) + $this->aFields['schema_f'] = $sWsDataUrl . '/schema_f/' . $this->aFields['schema_f']; + if (!empty($this->aFields['documents_f'])) + $this->aFields['documents_f'] = $sWsDataUrl . '/documents_f/' . $this->aFields['documents_f']; + if (!empty($this->aFields['plan_f'])) + $this->aFields['plan_f'] = $sWsDataUrl . '/plan_f/' . $this->aFields['plan_f']; + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new VitisError(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["id_traitement"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Traitements.class.inc b/web_service/ws/Traitements.class.inc new file mode 100755 index 00000000..b4ce521c --- /dev/null +++ b/web_service/ws/Traitements.class.inc @@ -0,0 +1,300 @@ +<?php + +/** + * \file Traitements.class.inc + * \class Traitements + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Traitements php class + * + * This class defines Rest Api to Vitis Traitements + * + */ +require_once __DIR__ . '/Anc.class.inc'; +require_once 'Traitement.class.inc'; + + +class Traitements extends Anc { + /** + * @SWG\Definition( + * definition="/traitements", + * allOf={ + * @SWG\Schema(ref="#/definitions/traitements") + * } + * ) + * * @SWG\Tag( + * name="Traitements", + * description="Operations about Traitements" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + */ + function __construct($aPath, $aValues, $properties) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + $this->oConnection = new Connection($this->aValues, $this->aProperties); + } + + /** + * @SWG\Get(path="/traitements", + * tags={"Traitements"}, + * summary="Get Traitements", + * description="Request to get Traitements", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * get Traitements + * @return Traitements + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_anc'], "v_traitement", "id_traitement"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/traitements", + * tags={"Traitements"}, + * summary="Add traitement", + * description="Request to add Traitements", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * insert traitement + * @return id of the traitement created + */ + function POST() { + $this->aValues['create'] = $_SESSION["ses_Login"]; + $this->aValues['create_date'] = date('Y-m-d'); + // Sauve le nom des fichiers. + if (!empty($_FILES['photos_f'])) + $this->aValues['photos_f'] = $_FILES['photos_f']["name"]; + if (!empty($_FILES['fiche_f'])) + $this->aValues['fiche_f'] = $_FILES['fiche_f']["name"]; + if (!empty($_FILES['schema_f'])) + $this->aValues['schema_f'] = $_FILES['schema_f']["name"]; + if (!empty($_FILES['documents_f'])) + $this->aValues['documents_f'] = $_FILES['documents_f']["name"]; + if (!empty($_FILES['plan_f'])) + $this->aValues['plan_f'] = $_FILES['plan_f']["name"]; + // + $aReturn = $this->genericPost($this->aProperties['schema_anc'], 'v_traitement', $this->aProperties['schema_anc'].'.traitement_id_traitement_seq', 'id_traitement'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_traitement'); + // + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/traitements/{id_traitement}", + * tags={"Traitements"}, + * summary="update Traitements", + * description="Request to update Traitements", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Traitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_traitement", + * in="path", + * description="id of the Traitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * update traitements + * @return id of traitements updated or error object if a traitements is not updated + */ + function PUT() { + if (empty($this->aValues['maj'])) + $this->aValues['maj'] = $_SESSION["ses_Login"]; + if (empty($this->aValues['maj_date'])) + $this->aValues['maj_date'] = date('Y-m-d'); + // Upload les fichiers. + $this->uploadDocument('photos_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('fiche_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('schema_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('documents_f', 'anc_saisie_anc_traitement'); + $this->uploadDocument('plan_f', 'anc_saisie_anc_traitement'); + // + $aReturn = $this->genericPut($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement'); + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/traitements", + * tags={"Traitements"}, + * summary="delete Traitements", + * description="Request to delete Traitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the traitement", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="traitement Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + /** + * @SWG\Delete(path="/traitements/{id_traitement}", + * tags={"Traitements"}, + * summary="delete Traitements", + * description="Request to delete Traitements", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Traitement token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_traitement", + * in="path", + * description="id of the Traitements", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/traitements") + * ) + * ) + */ + + /** + * delete traitements + * @return id of traitements deleted or error object if a traitements is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_anc'], 'v_traitement', 'id_traitement'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/web_service/ws/Versions.class.inc b/web_service/ws/Versions.class.inc index 590e0062..55c1e16a 100755 --- a/web_service/ws/Versions.class.inc +++ b/web_service/ws/Versions.class.inc @@ -1,18 +1,18 @@ <?php -require_once 'Cadastre.class.inc'; +require_once 'Anc.class.inc'; /** -* \file Versions.class.inc +* \file versions.class.inc * \class Versions * -* \author Yoann Perollet <yoann.perollet@veremes.com>. +* \author Armand Bahi <armand.bahi@veremes.com>. * * \brief This file contains the Versions php class * * This class defines the rest api for versions * */ -class Versions extends Vmap{ +class Versions extends Anc{ /** * @SWG\Definition( @@ -64,7 +64,7 @@ class Versions extends Vmap{ * @return versions */ function GET(){ - $this->getVersion("cadastre"); + $this->getVersion("anc"); //$this->aFields = $this->aVersions; // diff --git a/web_service/ws/Voie.class.inc b/web_service/ws/Voie.class.inc deleted file mode 100755 index e9af9fbd..00000000 --- a/web_service/ws/Voie.class.inc +++ /dev/null @@ -1,74 +0,0 @@ -<?php - -require_once 'Cadastre.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; - -/** - * \file Voie.class.inc - * \class Voie - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Voie php class - * - * This class defines operation for one Voie - * - */ -class Voie extends Cadastre { - - public $oError; - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array('LIBCOM', 'ID_COM', 'ID_RIVOLI', 'CCODEP', 'CCODIR', 'CCOCOM', 'RIVOLI', 'CLERIVOLI', 'LIBVOIE', 'TYPCOM', 'RUR', 'CARVOIE', 'ANNULATION', 'DATEANNUL', 'DATECREA', 'MAJIC2', 'TYPEVOIE', 'INDIC', 'MOTCLASS', 'CODE_INSEE', 'NATURE', 'L_NATURE_VOIE'); - } - - /** - * @SWG\Get(path="/voies/{ID_RIVOLI}", - * tags={"Voie"}, - * summary="Get Voie", - * description="Request to get Voie by id", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="ID_RIVOLI", - * in="path", - * description="voie id", - * required=true, - * type="integer", - * format="int32" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/voies") - * ) - * ) - */ - - /** - * get informations about Voie - */ - function GET() { - require dirname($_SERVER['SCRIPT_FILENAME']) . "/ws/vitis/" . $this->sRessourcesFile; - $this->aFields = $this->getFields('public', $this->aProperties['cadastre']['views']['voie'], 'ID_RIVOLI'); - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/Voies.class.inc b/web_service/ws/Voies.class.inc deleted file mode 100755 index 9885c122..00000000 --- a/web_service/ws/Voies.class.inc +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -/** - * \file Voies.class.inc - * \class Voies - * - * \author Armand Bahi <armand.bahi@veremes.com>. - * - * \brief This file contains the Voies php class - * - * This class defines Rest Api to Vmap Voies - * - */ -require_once 'Cadastre.class.inc'; -require_once 'Voie.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; -require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; - -class Voies extends Cadastre { - /** - * @SWG\Definition( - * definition="/voies", - * allOf={ - * @SWG\Schema(ref="#/definitions/voies") - * } - * ) - * * @SWG\Tag( - * name="voies", - * description="Operations about voies" - * ) - */ - - /** - * construct - * @param type $aPath url of the request - * @param type $aValues parameters of the request - * @param type $properties properties - * @param type $bShortcut false to reinit variables - * @param type $oConnection connection object - */ - function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { - parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); - $this->aSelectedFields = Array('ID_RIVOLI', 'L_NATURE_VOIE', 'DVOILIB'); - } - - /** - * @SWG\Get(path="/voies", - * tags={"Voie"}, - * summary="Get Voies", - * description="Request to get Voies", - * operationId="GET", - * produces={"application/xml", "application/json", "application/x-vm-json"}, - * @SWG\Parameter( - * name="token", - * in="query", - * description="user token", - * required=true, - * type="string" - * ), - * @SWG\Parameter( - * name="order_by", - * in="query", - * description="list of ordering fields", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="sort_order", - * in="query", - * description="sort order", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="limit", - * in="query", - * description="number of element", - * required=false, - * type="integer", - * default="4", - * format="int32" - * ), - * @SWG\Parameter( - * name="offset", - * in="query", - * description="index of first element", - * required=false, - * type="string", - * format="int32" - * ), - * @SWG\Parameter( - * name="attributs", - * in="query", - * description="list of attributs", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="filter", - * in="query", - * description="filter results", - * required=false, - * type="string" - * ), - * @SWG\Parameter( - * name="distinct", - * in="query", - * description="delete duplicates", - * required=false, - * type="boolean" - * ), - * @SWG\Response( - * response=200, - * description="Poprerties Response", - * @SWG\Schema(ref="#/definitions/voies") - * ) - * ) - */ - - /** - * get Voies - * @return Voies - */ - function GET() { - $aReturn = $this->genericGet('public', $this->aProperties['cadastre']['views']['voie'], 'ID_RIVOLI'); - return $aReturn['sMessage']; - } - -} - -?> \ No newline at end of file diff --git a/web_service/ws/overview.phtml b/web_service/ws/overview.phtml index 6e2671fd..9697daef 100755 --- a/web_service/ws/overview.phtml +++ b/web_service/ws/overview.phtml @@ -1,7 +1,7 @@ <?php /** * @SWG\Swagger( - * basePath="/[service_alias]/cadastre", + * basePath="/[service_alias]/anc", * host="[server]", * schemes={"[protocol]"}, * produces={ @@ -11,14 +11,14 @@ * }, * @SWG\Info( * version="1.0.0", - * title="Cadastre Test Rest", - * description="All features to access server operation for cadastre", + * title="Anc Test Rest", + * description="All fetaures to access server operation for anc", * ) * ) */ ?> -<h1 class="titleOverview">Service Cadastre</h1> +<h1 class="titleOverview">Service Anc</h1> <p> - <a class="linkOverview" href="javascript:sService='cadastre';LoadApi()">Cadastre</a>: this is the most comprehensive service which should be used as a preference when developing applications communicating with Cadastre. Those services allow you to administrate Cadastre applications. + <a class="linkOverview" href="javascript:sService='anc';LoadApi()">Anc</a>: this is the most comprehensive service which should be used as a preference when developing applications communicating with Anc. Those services allow you to administrate Anc applications. </p> \ No newline at end of file -- GitLab