From a01b30f62cd9169435dd3c427c362170c2c1af86 Mon Sep 17 00:00:00 2001 From: ArmandBahi <armand.bahi@veremes.com> Date: Tue, 25 Sep 2018 10:35:26 +0200 Subject: [PATCH] Add 'vmap/vas/sql/anc/' from commit '627a911579c951b47e95d6cd77fa81513b25517b' git-subtree-dir: vmap/vas/sql/anc git-subtree-mainline: a04bf01d2f82a040fbbf5f480ec175b4fd87fbdf git-subtree-split: 627a911579c951b47e95d6cd77fa81513b25517b --- vas/sql/anc/sqlQueries.xml | 3102 ++++++++++++++++++++++++++++++++++++ 1 file changed, 3102 insertions(+) create mode 100755 vas/sql/anc/sqlQueries.xml diff --git a/vas/sql/anc/sqlQueries.xml b/vas/sql/anc/sqlQueries.xml new file mode 100755 index 00000000..47fc554c --- /dev/null +++ b/vas/sql/anc/sqlQueries.xml @@ -0,0 +1,3102 @@ +<?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,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'); + 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,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'); + 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,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'); + 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,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'); + 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,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'); + 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,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'); + 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,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'); + 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,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'); + 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,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'); + 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> + </queriesCollection> +</sqlQueries> -- GitLab