diff --git a/src/module_dtnet/README.md b/src/module_dtnet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..426b60703c40106163a35217b33edab2f12a1a42 --- /dev/null +++ b/src/module_dtnet/README.md @@ -0,0 +1,3 @@ +# module_dtnet + +Module dtnet for Vitis \ No newline at end of file diff --git a/src/module_dtnet/_install/dependency.xml b/src/module_dtnet/_install/dependency.xml new file mode 100755 index 0000000000000000000000000000000000000000..10ac3d1ce843b03fe9e2d0b6b46e21bfe065374a --- /dev/null +++ b/src/module_dtnet/_install/dependency.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<installer> + <schema> + <name>s_dtnet</name> + <dependenciesCollection> + <dependency> + <nature>schema</nature> + <name>s_vitis</name> + <object>vitis</object> + </dependency> + <dependency> + <name>postgis</name> + <version>2.0</version> + <nature>extern-pre</nature> + </dependency> + </dependenciesCollection> + </schema> + <dependenciesCollection> + <dependency> + <nature>framework</nature> + <name>vitis</name> + </dependency> + <dependency> + <nature>modules</nature> + <name>module_gtf</name> + </dependency> + </dependenciesCollection> +</installer> diff --git a/src/module_dtnet/_install/fileToDelete.txt b/src/module_dtnet/_install/fileToDelete.txt new file mode 100755 index 0000000000000000000000000000000000000000..692355f26e0f87e0eb8a9ae4628467ca0e684147 --- /dev/null +++ b/src/module_dtnet/_install/fileToDelete.txt @@ -0,0 +1,2 @@ +javascript/deps.js +javascript/script_module.js \ No newline at end of file diff --git a/src/module_dtnet/_install/folderToDelete.txt b/src/module_dtnet/_install/folderToDelete.txt new file mode 100755 index 0000000000000000000000000000000000000000..b92d8976db30897968846102e68520be453b8313 --- /dev/null +++ b/src/module_dtnet/_install/folderToDelete.txt @@ -0,0 +1,2 @@ +javascript/controllers +javascript/directives \ No newline at end of file diff --git a/src/module_dtnet/module/forms/configuration/configuration_vitis_configuration_dtnetConfig.json b/src/module_dtnet/module/forms/configuration/configuration_vitis_configuration_dtnetConfig.json new file mode 100755 index 0000000000000000000000000000000000000000..c687fad30502a974031fd7a22ea04c61dd3fba8f --- /dev/null +++ b/src/module_dtnet/module/forms/configuration/configuration_vitis_configuration_dtnetConfig.json @@ -0,0 +1,106 @@ +{ + "insert": { + "rows": [] + }, + "search": { + "rows": [] + }, + "display": { + "rows": [] + }, + "update": { + "name": "configuration_dtnet_module-form", + "title": "", + "input_size": "xxs", + "nb_cols": 7, + "javascript": false, + "rows": [{ + "fields": [{ + "name": "schema_dtnet", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_SCHEMA_DTNET", + "nb_cols": 12, + "id": "schema_dtnet" + }] + }, { + "fields": [{ + "name": "imap_auth", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_AUTH", + "nb_cols": 12, + "id": "imap_auth" + }] + }, { + "fields": [{ + "name": "imap_port", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_PORT", + "nb_cols": 12, + "id": "imap_port" + }] + }, { + "fields": [{ + "name": "imap_server", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_SERVER", + "nb_cols": 12, + "id": "imap_server" + }] + }, { + "fields": [{ + "name": "login_bot", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_LOGIN_BOT", + "nb_cols": 12, + "id": "login_bot" + }] + }, { + "fields": [{ + "name": "pass_bot", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_PASS_BOT", + "nb_cols": 12, + "id": "pass_bot" + }] + }, { + "fields": [{ + "name": "mailReader_ProjectKey", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_MAILREADER_PROJECTKEY", + "nb_cols": 12, + "id": "mailReader_ProjectKey" + }] + }, { + "fields": [{ + "name": "pdftk_command", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_PDFTK_COMMAND", + "nb_cols": 12, + "id": "pdftk_command" + }] + }, { + "fields": [{ + "name": "mailreader_log_file", + "type": "text", + "label": "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_MAILREADER_LOG_FILE", + "nb_cols": 12, + "id": "mailreader_log_file" + }] + }, { + "fields": [{ + "type": "button", + "name": "form_submit", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "buttons": [{ + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }] + }] + }], + "event": "updateProperties('dtnet')", + "afterEvent": "editSectionForm()" + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict.js b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict.js new file mode 100755 index 0000000000000000000000000000000000000000..9bf43b59c10430915c6dba07fd885e8e1b3e603b --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict.js @@ -0,0 +1,103 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; +// goog fonctionne en mode décompilé mais pas en mode compilé + +console.info("demande_dtnet_dtdict loaded --> your functions are ready"); +/*********************************************************************************** + demande_dtnet_dtdict Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + console.log(oFormRequired.scope_); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".dtdicttype", function (value) { + if (typeof(value) !== "undefined") { + angular.element("#siretdt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#contactnamedt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#faxdt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#maildt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#addressdt").scope().field["visible"] = (value === "DDC") ? true : false; + } + }) + ); + + var formaterString = "DD/MM/YYYY HH:mm"; + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".creationdate", function (value) { + if (typeof(value) !== "undefined") { + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["creationdate"] = moment(value).utcOffset(4,false).format(formaterString); + } + } + }) + ); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".dtdictdate", function (value) { + if (typeof(value) !== "undefined") { + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["dtdictdate"] = moment(value).utcOffset(4,false).format(formaterString); + } + } + }) + ); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".mailreceptiondate", function (value) { + if (typeof(value) !== "undefined") { + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["mailreceptiondate"] = moment(value).utcOffset(4,false).format(formaterString); + } + } + }) + ); +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict.json b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict.json new file mode 100755 index 0000000000000000000000000000000000000000..461f79b7285b63301bfba549d857d43a23c51a0c --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict.json @@ -0,0 +1,2342 @@ +{ + "display": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 11, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "dtdict_id", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID", + "nb_cols": 12, + "id": "dtdict_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "creationdate", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE", + "nb_cols": 6, + "id": "creationdate_13_1" + }, + { + "type": "label", + "name": "status_name", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME", + "nb_cols": 6, + "id": "status_name_14_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "dtdictdate", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE", + "nb_cols": 6, + "id": "dtdictdate_2_1" + }, + { + "type": "label", + "name": "responsedate", + "label": "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE", + "nb_cols": 6, + "id": "responsedate_7_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "dtdicttype", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE", + "nb_cols": 6, + "id": "dtdicttype_4_1" + }, + { + "type": "label", + "name": "serviceconsultationnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER", + "nb_cols": 6, + "id": "serviceconsultationnumber_3_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "caller", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLER", + "nb_cols": 6, + "id": "caller_5_1" + }, + { + "type": "label", + "name": "callersiretnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER", + "nb_cols": 6, + "id": "callersiretnumber_15_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "pdfrequestfile", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFREQUESTFILE", + "nb_cols": 6, + "id": "pdfrequestfile_9_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "xmlrequestfile", + "label": "DEMANDE_DTNET_DTDICT_FORM_XMLREQUESTFILE", + "nb_cols": 6, + "id": "xmlrequestfile_12_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "responsefile", + "label": "DEMANDE_DTNET_DTDICT_FORM_RESPONSEFILE", + "nb_cols": 12, + "id": "responsefile_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "workaddress", + "label": "DEMANDE_DTNET_DTDICT_FORM_WORKADRESS", + "nb_cols": 12, + "id": "workadress_6_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorname", + "label": "DEMANDE_DTNET_DTDICT_FORM_SIPERVISORNAME", + "nb_cols": 12, + "id": "Element_0_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorphone", + "label": "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORPHONE", + "nb_cols": 6, + "id": "Element_1_9_2" + }, + { + "type": "label", + "name": "supervisormail", + "label": "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORMAIL", + "nb_cols": 6, + "id": "Element_2_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "siretdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_SIRETDT", + "nb_cols": 6, + "id": "siretdt" + }, + { + "type": "label", + "name": "contactnamedt", + "label": "DEMANDE_DTNET_DTDICT_FORM_CONTACTNAMEDT", + "nb_cols": 6, + "id": "contactnamedt" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "faxdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_FAXDT", + "nb_cols": 6, + "id": "faxdt" + }, + { + "type": "label", + "name": "maildt", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAILDT", + "nb_cols": 6, + "id": "maildt" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "addressdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_ADRESSDT", + "nb_cols": 12, + "id": "addressdt" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "reminder", + "label": "DEMANDE_DTNET_DTDICT_FORM_REMINDER", + "nb_cols": 4, + "id": "Element_5_16_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + } + }, + { + "type": "label", + "name": "mailreceptiondate", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAILRECEPTIONDATE", + "nb_cols": 4, + "id": "Element_6_16_2" + }, + { + "type": "label", + "name": "receptiontype", + "label": "DEMANDE_DTNET_DTDICT_FORM_RECEPTIONTYPE", + "nb_cols": 4, + "id": "Element_4_16_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "destination", + "label": "DEMANDE_DTNET_DTDICT_FORM_DESTINATION", + "nb_cols": 12, + "id": "Element_0_15_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "dtdict_id", + "creationdate", + "status_name", + "dtdictdate", + "responsedate", + "dtdicttype", + "serviceconsultationnumber", + "caller", + "callersiretnumber", + "pdfrequestfile", + "xmlrequestfile", + "responsefile", + "workaddress", + "supervisorname", + "supervisorphone", + "supervisormail", + "siretdt", + "contactnamedt", + "faxdt", + "maildt", + "addressdt", + "reminder", + "mailreceptiondate", + "receptiontype", + "update_button", + "destination" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "dtdict_id": "", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "", + "dtdictdate": "", + "responsedate": "", + "destination": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "", + "dtdictdate": "", + "responsedate": "", + "destination": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "creationdate": "", + "status_name": "", + "dtdictdate": "", + "responsedate": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "update_button": "", + "destination": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "r", + "dtdictdate": "", + "responsedate": "", + "destination": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "r", + "dtdictdate": "", + "responsedate": "", + "destination": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "", + "dtdictdate": "", + "responsedate": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "update_button": "rw", + "destination": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "update_button": "rw", + "destination": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "responsefile": "r", + "workaddress": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "update_button": "rw", + "destination": "" + } + }, + "A signer": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "responsefile": "r", + "workaddress": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "update_button": "rw", + "destination": "" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "update_button": "rw", + "destination": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "r", + "destination": "r" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "r", + "destination": "r" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "responsefile": "r", + "workaddress": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "update_button": "rw", + "destination": "r" + } + } + } + }, + "search": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_SEARCH", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "serviceconsultationnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER", + "nb_cols": 4, + "id": "serviceconsultationnumber_3_1" + }, + { + "type": "text", + "name": "caller", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLER", + "nb_cols": 4, + "id": "caller_5_1" + }, + { + "type": "text", + "name": "callersiretnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER", + "nb_cols": 4, + "id": "callersiretnumber_15_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "dtdicttype", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE", + "nb_cols": 4, + "id": "dtdicttype_4_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true" + }, + "id_from": "dtdicttype_4_1_from" + }, + { + "type": "date", + "name": "creationdate_after", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE_AFTER", + "nb_cols": 4, + "id": "Element_0_2_3", + "comparator": { + "column": "creationdate", + "compare_operator": ">=" + } + }, + { + "type": "date", + "name": "creationdate_before", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE_BEFORE", + "nb_cols": 4, + "id": "creationdate_13_1", + "comparator": { + "column": "creationdate", + "compare_operator": "<=" + } + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "networkintersected", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NETWORKINTERSECTED", + "required": false, + "nb_cols": 3, + "id": "Element_0_3_1", + "comparator": { + "column": "networkintersected", + "compare_operator": "LIKE", + "formater": "%<VALUE_TO_REPLACE>%" + }, + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "id_key": "network_id", + "label_key": "caption", + "attributs": "network_id|caption", + "order_by": "caption" + }, + "id_from": "Element_0_3_1_from" + },{ + "type": "text", + "name": "maincity", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAINCITY", + "required": false, + "nb_cols": 3, + "id": "maincity", + "comparator": { + "column": "maincity", + "compare_operator": "LIKE", + "compare_operator_options":{ + "case_insensitive": true + }, + "formater": "%<VALUE_TO_REPLACE>%" + } + }, + { + "type": "text", + "name": "maincityzipcode", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAINCITYZIPCODE", + "required": false, + "nb_cols": 3, + "id": "maincityzipcode", + "comparator": { + "column": "maincityzipcode", + "compare_operator": "LIKE", + "formater": "%<VALUE_TO_REPLACE>%" + } + }, + { + "type": "select", + "name": "status_name", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME", + "required": false, + "nb_cols": 3, + "id": "Element_0_4_3", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "name", + "order_by": "name", + "id_key": "name", + "attributs": "name|name" + }, + "id_from": "Element_0_4_3_from" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ], + "id": "search_button_3_1" + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "serviceconsultationnumber", + "dtdicttype", + "caller", + "creationdate_before", + "callersiretnumber", + "search_button", + "creationdate_after", + "networkintersected", + "maincityzipcode", + "maincity", + "status_name" + ] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_INSERT", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + }, + "Nouveau": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + }, + "En cours de traitement": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + }, + "A valider": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + }, + "A signer": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + }, + "Non conforme": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + }, + "Réponse envoyée": { + "dtnet_instructeur": {}, + "dtnet_signataire": {}, + "dtnet_exploitant": {} + } + } + }, + "update": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "dtdict_id", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID", + "nb_cols": 12, + "id": "dtdict_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "creationdate", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE", + "nb_cols": 6, + "id": "creationdate_13_1" + }, + { + "type": "label", + "name": "status_name", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME", + "nb_cols": 6, + "id": "status_name_14_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "dtdictdate", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE", + "nb_cols": 6, + "id": "dtdictdate_2_1" + }, + { + "type": "label", + "name": "responsedate", + "label": "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE", + "nb_cols": 6, + "id": "responsedate_7_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "dtdicttype", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE", + "nb_cols": 6, + "id": "dtdicttype_4_1" + }, + { + "type": "label", + "name": "serviceconsultationnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER", + "nb_cols": 6, + "id": "serviceconsultationnumber_3_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "caller", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLER", + "nb_cols": 6, + "id": "caller_5_1" + }, + { + "type": "label", + "name": "callersiretnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER", + "nb_cols": 6, + "id": "callersiretnumber_15_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "pdfrequestfile", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFREQUESTFILE", + "nb_cols": 12, + "id": "pdfrequestfile_9_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "xmlrequestfile", + "label": "DEMANDE_DTNET_DTDICT_FORM_XMLREQUESTFILE", + "nb_cols": 12, + "id": "xmlrequestfile_12_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "responsefile", + "label": "DEMANDE_DTNET_DTDICT_FORM_RESPONSEFILE", + "nb_cols": 12, + "id": "responsefile_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "workaddress", + "label": "DEMANDE_DTNET_DTDICT_FORM_WORKADRESS", + "nb_cols": 12, + "id": "workadress_6_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorname", + "label": "DEMANDE_DTNET_DTDICT_FORM_SIPERVISORNAME", + "nb_cols": 12, + "id": "Element_0_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorphone", + "label": "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORPHONE", + "nb_cols": 6, + "id": "Element_1_9_2" + }, + { + "type": "label", + "name": "supervisormail", + "label": "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORMAIL", + "nb_cols": 6, + "id": "Element_2_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "siretdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_SIRETDT", + "nb_cols": 6, + "id": "siretdt" + }, + { + "type": "label", + "name": "contactnamedt", + "label": "DEMANDE_DTNET_DTDICT_FORM_CONTACTNAMEDT", + "nb_cols": 6, + "id": "contactnamedt" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "faxdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_FAXDT", + "nb_cols": 6, + "id": "faxdt" + }, + { + "type": "label", + "name": "maildt", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAILDT", + "nb_cols": 6, + "id": "maildt" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "addressdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_ADRESSDT", + "nb_cols": 12, + "id": "addressdt" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "reminder", + "label": "DEMANDE_DTNET_DTDICT_FORM_REMINDER", + "nb_cols": 4, + "id": "Element_5_16_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + } + }, + { + "type": "label", + "name": "mailreceptiondate", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAILRECEPTIONDATE", + "nb_cols": 4, + "id": "Element_6_16_2" + }, + { + "type": "label", + "name": "receptiontype", + "label": "DEMANDE_DTNET_DTDICT_FORM_RECEPTIONTYPE", + "nb_cols": 4, + "id": "Element_4_16_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "destination", + "label": "DEMANDE_DTNET_DTDICT_FORM_DESTINATION", + "nb_cols": 12, + "id": "Element_0_15_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "CERFA_Signature", + "nb_cols": 12, + "id": "Element_1_11_2", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + }, + { + "type": "button", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_CERFA_SIGN", + "class": "btn-primary", + "event": "callDtnetMethode('trEnvoyer')" + }, + { + "type": "button", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_CERFA_WRONG", + "class": "btn-primary", + "event": "callDtnetMethode('trReponseManuelle')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "CERFA_Update", + "nb_cols": 12, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + }, + { + "type": "button", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_CERFA_UPDATE", + "class": "btn-primary", + "event": "callDtnetMethode('trValidation')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "CERFA_Update_and_Sign", + "nb_cols": 12, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + }, + { + "type": "button", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_CERFA_UPDATE_AND_SIGN", + "class": "btn-primary", + "event": "callDtnetMethode('trEnvoyer')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "loadSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "dtdict_id", + "creationdate", + "status_name", + "dtdictdate", + "responsedate", + "dtdicttype", + "serviceconsultationnumber", + "caller", + "callersiretnumber", + "pdfrequestfile", + "xmlrequestfile", + "responsefile", + "workaddress", + "supervisorname", + "supervisorphone", + "supervisormail", + "siretdt", + "contactnamedt", + "faxdt", + "maildt", + "addressdt", + "reminder", + "mailreceptiondate", + "receptiontype", + "CERFA_Signature", + "CERFA_Update", + "update_button", + "destination" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "dtdict_id": "", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "", + "dtdictdate": "", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "", + "dtdictdate": "", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "creationdate": "", + "status_name": "", + "dtdictdate": "", + "responsedate": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "update_button": "", + "destination": "", + "CERFA_Update_and_Sign": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "", + "dtdictdate": "", + "responsedate": "", + "dtdicttype": "", + "serviceconsultationnumber": "", + "caller": "", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "update_button": "rw", + "destination": "", + "CERFA_Update_and_Sign": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "update_button": "rw", + "destination": "", + "CERFA_Update_and_Sign": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "rw", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "responsefile": "r", + "workaddress": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "", + "update_button": "", + "destination": "", + "CERFA_Update_and_Sign": "rw" + } + }, + "A signer": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "rw", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "responsefile": "r", + "workaddress": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "rw", + "CERFA_Update": "", + "update_button": "", + "destination": "", + "CERFA_Update_and_Sign": "" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "responsefile": "", + "update_button": "rw", + "workaddress": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "", + "destination": "", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "", + "dtdicttype": "r", + "serviceconsultationnumber": "", + "caller": "r", + "callersiretnumber": "", + "pdfrequestfile": "", + "xmlrequestfile": "", + "responsefile": "", + "workaddress": "", + "supervisorname": "", + "supervisorphone": "", + "supervisormail": "", + "siretdt": "", + "contactnamedt": "", + "faxdt": "", + "maildt": "", + "addressdt": "", + "reminder": "", + "mailreceptiondate": "", + "receptiontype": "", + "CERFA_Signature": "", + "CERFA_Update": "", + "update_button": "rw", + "destination": "", + "CERFA_Update_and_Sign": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "r", + "destination": "r", + "CERFA_Update_and_Sign": "" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "status_name": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "responsefile": "r", + "update_button": "rw", + "workaddress": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "", + "creationdate": "r", + "dtdictdate": "r", + "responsedate": "r", + "destination": "r", + "CERFA_Update_and_Sign": "" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "creationdate": "r", + "status_name": "r", + "dtdictdate": "r", + "responsedate": "r", + "dtdicttype": "r", + "serviceconsultationnumber": "r", + "caller": "r", + "callersiretnumber": "r", + "pdfrequestfile": "r", + "xmlrequestfile": "r", + "responsefile": "r", + "workaddress": "r", + "supervisorname": "r", + "supervisorphone": "r", + "supervisormail": "r", + "siretdt": "r", + "contactnamedt": "r", + "faxdt": "r", + "maildt": "r", + "addressdt": "r", + "reminder": "r", + "mailreceptiondate": "r", + "receptiontype": "r", + "CERFA_Signature": "", + "CERFA_Update": "", + "update_button": "rw", + "destination": "r", + "CERFA_Update_and_Sign": "" + } + } + } + }, + "datasources": { + "datasource_1": { + "type": "object", + "dataType": "text", + "name": "typeDemande", + "description": "", + "options": [ + "", + "DT", + "DICT", + "ATU", + "DDC" + ], + "id": "datasource_1" + }, + "datasource_2": { + "type": "web_service", + "dataType": "tableValue", + "name": "network", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "v_network" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_2" + }, + "datasource_4": { + "type": "web_service", + "dataType": "tableValue", + "name": "dtdict", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "v_dtdict" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_4" + }, + "datasource_3": { + "type": "web_service", + "dataType": "tableValue", + "name": "rt_dtdict_status", + "description": "", + "parameters": { + "filter": { + "relation": "OR", + "operators": [ + { + "column": "name", + "compare_operator": "=", + "value": "A signer" + },{ + "column": "name", + "compare_operator": "=", + "value": "A valider" + },{ + "column": "name", + "compare_operator": "=", + "value": "Réponse envoyée" + } + ] + }, + "schema": "s_dtnet", + "table": "rt_dtdict_status", + "database": "" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_3" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_cerfa.js b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_cerfa.js new file mode 100755 index 0000000000000000000000000000000000000000..b4b26b7fea884094a4ef34d60ddd8bd7a89fa197 --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_cerfa.js @@ -0,0 +1,352 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; + +console.info("Generateur_wab_generator_1 loaded --> your functions are ready"); +/*********************************************************************************** + Signaletique_Recap_0 Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + //var aStateOK = ["A valider", "A signer", "Réponse envoyée"] + //if (aStateOK.indexOf(oFormRequired.scope_["wabState"]) > -1){ + var Categorie1default = {}; + var Categorie2default = {}; + var Categorie3default = {}; + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + setTimeout(function(){ + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/dtnet/dtdicts/" + envSrvc["sId"] + "/cerfa", + "success": function (response) { + + if (oFormRequired.scope_.sFormDefinitionName.indexOf("update") > -1) { + + // Récupération des valeurs des listes des données + var sCategorie1Value = response["data"]["cerfas"][0]["CategorieReseau1"]; + var sCategorie2Value = response["data"]["cerfas"][0]["CategorieReseau2"]; + var sCategorie3Value = response["data"]["cerfas"][0]["CategorieReseau3"]; + var sDispositifsValue = response["data"]["cerfas"][0]["DispositifsSecurite"]; + var aPdfList = oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["pdfList"]; + var iNbPdfFile = aPdfList.length; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["NbPJ"] = iNbPdfFile; + + //Récupération de la date du jour formaté + var oToday = new Date(); + var dd = oToday.getDate(); + var mm = oToday.getMonth() + 1; + var yyyy = oToday.getFullYear(); + oToday = dd + '/' + mm + '/' + yyyy; + + delete response["data"]["cerfas"][0]["CategorieReseau1"]; + delete response["data"]["cerfas"][0]["CategorieReseau2"]; + delete response["data"]["cerfas"][0]["CategorieReseau3"]; + delete response["data"]["cerfas"][0]["DispositfsSecurite"]; + var sCategorieReseauOptions = angular.copy(oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau1"]["options"]); + var sDispositifsSecuriteOptions = angular.copy(oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DispositifsSecurite"]["options"]); + + + //Update des valeurs du formulaire avec les données reçu + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName] = response["data"]["cerfas"][0]; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["NbPJ"] = iNbPdfFile; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateRecepisse"] = oToday; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau1"] = {"options":sCategorieReseauOptions}; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau2"] = {"options":sCategorieReseauOptions}; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau3"] = {"options":sCategorieReseauOptions}; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DispositifsSecurite"] = {"options":sDispositifsSecuriteOptions}; + + // Sauvegarde des données options par defaut + Categorie1default = sCategorieReseauOptions[0]; + Categorie2default = sCategorieReseauOptions[0]; + Categorie3default = sCategorieReseauOptions[0]; + + for (i = 0; i < sCategorieReseauOptions.length; i++) { + if (sCategorieReseauOptions[i]["value"] == sCategorie1Value) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau1"]["selectedOption"] = sCategorieReseauOptions[i]; + } + if (sCategorieReseauOptions[i]["value"] == sCategorie2Value) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau2"]["selectedOption"] = sCategorieReseauOptions[i]; + } + if (sCategorieReseauOptions[i]["value"] == sCategorie3Value) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau3"]["selectedOption"] = sCategorieReseauOptions[i]; + } + } + for (i = 0; i < sDispositifsSecuriteOptions.length; i++) { + if (sDispositifsSecuriteOptions[i]["value"] == sDispositifsValue) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DispositifsSecurite"]["selectedOption"] = sDispositifsSecuriteOptions[i]; + + } + } + } else { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName] = response["data"]["cerfas"][0]; + } + + oFormRequired.scope_.$apply(); + } + }); + }, 1); + + // Si on est en mode update + if (oFormRequired.scope_.sFormDefinitionName.indexOf("update") > -1) { + + + //Watcher mis en place sur les cangements des valeurs du formulaire afin de gerer les autres champs + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".Recepisse_DICT", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Recepisse_DT_unique"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Recepisse_DC"] = false; + + } + if (value == false) { + angular.element("#Recepisse_DT_unique").scope().field["disabled"] = false; + angular.element("#Recepisse_DC").scope().field["disabled"] = false; + + } + } + })); + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".Recepisse_DT_unique", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Recepisse_DICT"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Recepisse_DC"] = false; + angular.element("#PasClasseACase").scope().field["disabled"] = false; + } + if (value == false) { + angular.element("#Recepisse_DICT").scope().field["disabled"] = false; + angular.element("#Recepisse_DC").scope().field["disabled"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["PasClasseACase"] = false; + angular.element("#PasClasseACase").scope().field["disabled"] = true; + } + } + })); + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".Recepisse_DC", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Recepisse_DICT"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Recepisse_DT_unique"] = false; + } + if (value == false) { + angular.element("#Recepisse_DT_unique").scope().field["disabled"] = false; + angular.element("#Recepisse_DICT").scope().field["disabled"] = false; + } + } + })); + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".RepImpossible", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + angular.element("#InfoPreciser").scope().field["disabled"] = false; + + } + if (value == false) { + angular.element("#InfoPreciser").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["InfoPreciser"] = ""; + } + } + })); + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".PasConcerne", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Concerne"] = false; + angular.element("#DistanceReseau").scope().field["disabled"] = false; + + } + if (value == false) { + angular.element("#Concerne").scope().field["disabled"] = false; + angular.element("#DistanceReseau").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DistanceReseau"] = ""; + } + } + })); + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".Concerne", function (value) { + + if (typeof (value) !== "undefined") { + if (value == true) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["PasConcerne"] = false; + angular.element("#CategorieReseau1").scope().field["disabled"] = false; + angular.element("#CategorieReseau2").scope().field["disabled"] = false; + angular.element("#CategorieReseau3").scope().field["disabled"] = false; + } + if (value == false) { + angular.element("#PasConcerne").scope().field.disabled = false; + angular.element("#CategorieReseau1").scope().field["disabled"] = true; + angular.element("#CategorieReseau2").scope().field["disabled"] = true; + angular.element("#CategorieReseau3").scope().field["disabled"] = true; + if (goog.isDefAndNotNull(oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau1"])) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau1"]["selectedOption"] = Categorie1default; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau2"]["selectedOption"] = Categorie2default; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["CategorieReseau3"]["selectedOption"] = Categorie3default; + } + } + } + })); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".ModifEnCours", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + angular.element("#RepresentantExploitant").scope().field["disabled"] = false; + angular.element("#TelModification").scope().field["disabled"] = false; + } + if (value == false) { + angular.element("#RepresentantExploitant").scope().field["disabled"] = true; + angular.element("#TelModification").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["RepresentantExploitant"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["TelModification"] = ""; + } + } + })); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".PlansJoints", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + angular.element("#Ref1").scope().field["disabled"] = false; + angular.element("#Echelle1").scope().field["disabled"] = false; + angular.element("#DateEditionPlan1").scope().field["disabled"] = false; + angular.element("#Sensible1").scope().field["disabled"] = false; + angular.element("#Profondeur1").scope().field["disabled"] = false; + angular.element("#Materiau1").scope().field["disabled"] = false; + angular.element("#Ref2").scope().field["disabled"] = false; + angular.element("#Echelle2").scope().field["disabled"] = false; + angular.element("#DateEditionPlan2").scope().field["disabled"] = false; + angular.element("#Sensible2").scope().field["disabled"] = false; + angular.element("#Profondeur2").scope().field["disabled"] = false; + angular.element("#Materiau2").scope().field["disabled"] = false; + } + if (value == false) { + angular.element("#Ref1").scope().field["disabled"] = true; + angular.element("#Echelle1").scope().field["disabled"] = true; + angular.element("#DateEditionPlan1").scope().field["disabled"] = true; + angular.element("#Sensible1").scope().field["disabled"] = true; + angular.element("#Profondeur1").scope().field["disabled"] = true; + angular.element("#Materiau1").scope().field["disabled"] = true; + angular.element("#Ref2").scope().field["disabled"] = true; + angular.element("#Echelle2").scope().field["disabled"] = true; + angular.element("#DateEditionPlan2").scope().field["disabled"] = true; + angular.element("#Sensible2").scope().field["disabled"] = true; + angular.element("#Profondeur2").scope().field["disabled"] = true; + angular.element("#Materiau2").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Ref1"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Echelle1"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateEditionPlan1"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Sensible1"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Profondeur1"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Materiau1"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Ref2"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Echelle2"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateEditionPlan2"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Sensible2"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Profondeur2"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["Materiau2"] = ""; + + + } + } + })); + + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".ReunionChantierCase", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + angular.element("#DateRDV").scope().field["disabled"] = false; + angular.element("#RDVparDeclarant").scope().field["disabled"] = false; + } + if (value == false) { + angular.element("#DateRDV").scope().field["disabled"] = true; + angular.element("#RDVparDeclarant").scope().field["disabled"] = true; + angular.element("#DateReunion").scope().field["disabled"] = true; + angular.element("#DateAppelNonConcl").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateAppelNonConcl"] = ""; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateRDV"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["RDVparDeclarant"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateReunion"] = ""; + } + } + })); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".RDVparDeclarant", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + angular.element("#DateAppelNonConcl").scope().field["disabled"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateRDV"] = false; + } + if (value == false) { + angular.element("#DateAppelNonConcl").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateAppelNonConcl"] = ""; + } + } + })); + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".DateRDV", function (value) { + + if (typeof(value) !== "undefined") { + if (value == true) { + angular.element("#DateReunion").scope().field["disabled"] = false; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["RDVparDeclarant"] = false; + } + if (value == false) { + angular.element("#DateReunion").scope().field["disabled"] = true; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["DateReunion"] = ""; + } + } + })); + } + //} +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_cerfa.json b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_cerfa.json new file mode 100755 index 0000000000000000000000000000000000000000..5472e4416e805d76852a30cb0b72393cce62b8cc --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_cerfa.json @@ -0,0 +1,6785 @@ +{ + "display": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_CERFA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "title", + "name": "FakeLabel1", + "label": "", + "nb_cols": 6, + "id": "FakeLabel1" + }, + { + "type": "title", + "name": "DestinataireSectionTitle", + "label": "Destinataire", + "nb_cols": 6, + "id": "DestinataireSectionTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Recepisse_DT_unique", + "label": "Récépissé de DT", + "nb_cols": 6, + "id": "Recepisse_DT_unique" + }, + { + "type": "text", + "name": "Denomination", + "label": "Dénomination :", + "nb_cols": 6, + "id": "Denomination" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Recepisse_DICT", + "label": "Récépissé de DICT", + "nb_cols": 6, + "id": "Recepisse_DICT" + }, + { + "type": "text", + "name": "ComplementAdresse", + "label": "Complément/Service :", + "nb_cols": 6, + "id": "ComplementAdresse" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Recepisse_DC", + "label": "Récépissé de DT/DICT", + "nb_cols": 6, + "id": "Recepisse_DC" + }, + { + "type": "text", + "name": "NoVoie", + "label": "Numéro / Voie :", + "nb_cols": 6, + "id": "NoVoie" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "FakeLabel2", + "label": "", + "nb_cols": 6, + "id": "FakeLabel2" + }, + { + "type": "text", + "name": "LieuditBP", + "label": "Lieu-dit / BP :", + "nb_cols": 6, + "id": "LieuditBP" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "FakeLabel3", + "nb_cols": 6, + "id": "FakeLabel3" + }, + { + "type": "text", + "name": "CodePostal", + "label": "Code Postal :", + "nb_cols": 3, + "id": "CodePostal" + }, + { + "type": "text", + "name": "Commune", + "label": "Commune :", + "nb_cols": 3, + "id": "Commune" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "FakeLabel4", + "label": "", + "nb_cols": 6, + "id": "FakeLabel4" + }, + { + "type": "text", + "name": "Pays", + "label": "Pays :", + "nb_cols": 6, + "id": "Pays" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "NoGU", + "label": "N° consultation du téléservice :", + "nb_cols": 6, + "id": "NoGU" + }, + { + "type": "title", + "name": "CoordonnéesExploiTitle", + "label": "Coordonnées de l'exploitant :", + "nb_cols": 6, + "id": "CoordonnéesExploiTitle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "ReferenceExploitant", + "label": "Référence de l'exploitant :", + "nb_cols": 6, + "id": "ReferenceExploitant" + }, + { + "type": "text", + "name": "RaisonSocialeExploitant", + "label": "Raison sociale :", + "nb_cols": 6, + "id": "RaisonSocialeExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "NoAffaireDeclarant", + "label": "N° d'affaire du déclarant :", + "nb_cols": 6, + "id": "NoAffaireDeclarant" + }, + { + "type": "text", + "name": "ContactExploitant", + "label": "Personne à contacter :", + "nb_cols": 6, + "id": "ContactExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Personne_Contacter", + "label": "Personne à contacter (déclarant) :", + "nb_cols": 6, + "id": "Personne_Contacter" + }, + { + "type": "text", + "name": "NoVoieExploitant", + "label": "Numéro / Voie :", + "nb_cols": 6, + "id": "NoVoieExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "DateReception", + "label": "Date de réception de la déclaration :", + "nb_cols": 6, + "id": "DateReception" + }, + { + "type": "text", + "name": "LieuditBPExploitant", + "label": "Lieu-dit / BP :", + "nb_cols": 6, + "id": "LieuditBPExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "CommuneTravaux", + "label": "Commune principale des travaux :", + "nb_cols": 6, + "id": "CommuneTravaux" + }, + { + "type": "text", + "name": "CodePostalExploitant", + "label": "Code Postal :", + "nb_cols": 3, + "id": "CodePostalExploitant" + }, + { + "type": "text", + "name": "CommuneExploitant", + "label": "Commune :", + "nb_cols": 3, + "id": "CommuneExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "AdresseTravaux", + "label": "Adresse des travaux prévus :", + "nb_cols": 6, + "id": "AdresseTravaux" + }, + { + "type": "text", + "name": "TelExploitant", + "label": "Tél :", + "nb_cols": 3, + "id": "TelExploitant" + }, + { + "type": "text", + "name": "FaxExploitant", + "label": "Fax :", + "nb_cols": 3, + "id": "FaxExploitant" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ElementDeReponseTitle", + "label": "Eléments généraux de réponse", + "nb_cols": 12, + "id": "ElementDeReponseTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "RepImpossible", + "label": "Les renseignements que vous avez fournis ne nous permettent pas de vous répondre. La déclaration est à renouveler.", + "nb_cols": 12, + "id": "RepImpossible" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "InfoPreciser", + "label": "Précisez notamment :", + "nb_cols": 12, + "id": "InfoPreciser" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "PasConcerne", + "label": "Les réseaux/ouvrages que nous exploitons ne sont pas concernés au regard des informations fournies.", + "nb_cols": 8, + "id": "PasConcerne" + }, + { + "type": "text", + "name": "DistanceReseau", + "label": "Distance > à (en m):", + "nb_cols": 4, + "id": "DistanceReseau" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Concerne", + "label": "Il y a au moins un réseau/ouvrage concerné (voir liste jointe) de catégorie :", + "nb_cols": 4, + "id": "Concerne" + }, + { + "type": "text", + "name": "CategorieReseau1", + "label": "", + "nb_cols": 2, + "id": "CategorieReseau1" + }, + { + "type": "text", + "name": "CategorieReseau2", + "label": "", + "nb_cols": 2, + "id": "CategorieReseau2" + }, + { + "type": "text", + "name": "CategorieReseau3", + "label": "", + "nb_cols": 2, + "id": "CategorieReseau3" + }, + { + "type": "text", + "name": "info_catégorie", + "nb_cols": 2, + "id": "info_catégorie" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ModifExtendRéseauxTiltle", + "label": "Modification ou extension de nos réseaux /ouvrages", + "nb_cols": 12, + "id": "ModifExtendRéseauxTiltle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "ModifPrevue", + "label": "Modification ou extension de réseau/ouvrage envisagée dans un délai inférieur à 3 mois :", + "nb_cols": 12, + "id": "ModifPrevue" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "ModifEnCours", + "label": "Réalisation de modifications en cours sur notre réseau/ouvrage.", + "nb_cols": 12, + "id": "ModifEnCours" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "RepresentantExploitant", + "label": "Veuillez contacter notre représentant :", + "nb_cols": 9, + "id": "RepresentantExploitant" + }, + { + "type": "text", + "name": "TelModification", + "label": "Tél :", + "nb_cols": 3, + "id": "TelModification" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "NB1", + "label": "NB : Si nous avons connaissance d’une modification du réseau/ouvrage dans le délai maximal de 3 mois à compter de la consultation du téléservice, nous vous en informerons.", + "nb_cols": 12, + "id": "NB1" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "EmplacementRéseauxTitle", + "label": "Emplacement de nos réseaux / ouvrages", + "nb_cols": 12, + "id": "EmplacementRéseauxTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "PlansJoints", + "id": "PlansJoints", + "nb_cols": 12, + "label": "Plans joints :" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "ReférenceLabel", + "label": "Références:", + "nb_cols": 2, + "id": "ReférenceLabel" + }, + { + "type": "label", + "name": "EchelleLabel", + "label": "Echelle:", + "nb_cols": 2, + "id": "EchelleLabel" + }, + { + "type": "label", + "name": "DateDeditionLabel", + "label": "Date d'édition:", + "nb_cols": 2, + "id": "DateDeditionLabel" + }, + { + "type": "label", + "name": "SensibleLabel", + "label": "Sensible:", + "nb_cols": 2, + "id": "SensibleLabel" + }, + { + "type": "label", + "name": "ProfLabel", + "label": "Prof. règl. mini:", + "nb_cols": 2, + "id": "ProfLabel" + }, + { + "type": "label", + "name": "MaterielLabel", + "label": "Matériau réseau :", + "nb_cols": 2, + "id": "MaterielLabel" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Ref1", + "nb_cols": 2, + "id": "Ref1" + }, + { + "type": "text", + "name": "Echelle1", + "nb_cols": 2, + "id": "Echelle1" + }, + { + "type": "text", + "name": "DateEditionPlan1", + "nb_cols": 2, + "id": "DateEditionPlan1" + }, + { + "type": "checkbox", + "name": "Sensible1", + "nb_cols": 2, + "id": "Sensible1" + }, + { + "type": "text", + "name": "Profondeur1", + "nb_cols": 2, + "id": "Profondeur1" + }, + { + "type": "text", + "name": "Materiau1", + "nb_cols": 2, + "id": "Materiau1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Ref2", + "label": "", + "nb_cols": 2, + "id": "Ref2" + }, + { + "type": "text", + "name": "Echelle2", + "label": "", + "nb_cols": 2, + "id": "Echelle2" + }, + { + "type": "text", + "name": "DateEditionPlan2", + "label": "", + "nb_cols": 2, + "id": "DateEditionPlan2" + }, + { + "type": "checkbox", + "name": "Sensible2", + "label": "", + "nb_cols": 2, + "id": "Sensible2" + }, + { + "type": "text", + "name": "Profondeur2", + "label": "", + "nb_cols": 2, + "id": "Profondeur2" + }, + { + "type": "text", + "name": "Materiau2", + "label": "", + "nb_cols": 2, + "id": "Materiau2" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "NbLabel", + "label": "NB : La classe de précision A, B ou C figure dans les plans.", + "nb_cols": 12, + "id": "NbLabel" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "ReunionChantierCase", + "label": "Réunion sur chantier pour localisation du réseau/ouvrage :", + "nb_cols": 5, + "id": "ReunionChantierCase" + }, + { + "type": "checkbox", + "name": "DateRDV", + "label": "Date retenue d’un commun accord :", + "nb_cols": 4, + "id": "DateRDV" + }, + { + "type": "text", + "name": "DateReunion", + "label": "", + "nb_cols": 3, + "id": "DateReunion" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "FakeLabel5", + "label": "", + "nb_cols": 4, + "id": "FakeLabel5" + }, + { + "type": "label", + "name": "ouLabel", + "label": "ou", + "nb_cols": 1, + "id": "ouLabel" + }, + { + "type": "checkbox", + "name": "RDVparDeclarant", + "label": "Prise de RDV à l’initiative du déclarant (date du dernier contact non conclusif :", + "nb_cols": 4, + "id": "RDVparDeclarant" + }, + { + "type": "text", + "name": "DateAppelNonConcl", + "nb_cols": 3, + "id": "DateAppelNonConcl" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "ServitudeCase", + "label": "Votre projet doit tenir compte de la servitude protégeant notre ouvrage", + "nb_cols": 12, + "id": "ServitudeCase" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "PasClasseACase", + "label": "(cas d’un récépissé de DT) Tous les tronçons dans l’emprise ne sont pas en totalité de classe A : investigations complémentaires ou clauses particulières au marche a prévoir.", + "nb_cols": 12, + "id": "PasClasseACase" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "BranchementsCase", + "label": "Les branchements situés dans l’emprise du projet et pourvus d’affleurant sont tous rattachés à un réseau principal souterrain identifié dans les plans joints.", + "nb_cols": 12, + "id": "BranchementsCase" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "RecommandationTitle", + "label": "Recommandations de sécurité", + "nb_cols": 12, + "id": "RecommandationTitle" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "label17", + "label": "Les recommandations techniques générales en fonction des réseaux et des techniques de travaux prévues sont consultables sur www.reseaux-et-canalisations.gouv.fr", + "nb_cols": 12, + "id": "label17" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Recommandations", + "label": "Les recommandations techniques spécifiques suivantes sont à appliquer, en fonction des risques liés à l’utilisation des techniques de travaux employées :", + "nb_cols": 12, + "id": "Recommandations" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "RubriquesGuide", + "label": "Rubriques du guide technique relatives à des ouvrages ou travaux spécifiques :", + "nb_cols": 12, + "id": "RubriquesGuide" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "MiseHorsTension", + "label": "Pour les exploitants de lignes électriques : si la distance d’approche a été précisée, la mise hors tension est :", + "nb_cols": 12, + "id": "MiseHorsTension", + "options": { + "choices": [ + { + "label": "Possible", + "value": true + }, + { + "label": "Impossible", + "value": false + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "MesuresSecurite", + "label": "Mesures de sécurité à mettre en œuvre :", + "nb_cols": 12, + "id": "MesuresSecurite" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "DispositifsSecurite", + "label": "Dispositifs importants pour la sécurité :", + "nb_cols": 12, + "id": "DispositifsSecurite" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "CasDegradationTitle", + "label": "Cas de dégradation d’un de nos ouvrages", + "nb_cols": 12, + "id": "CasDegradationTitle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "TelEndommagement", + "label": "En cas de dégradation d’un de nos ouvrages, contactez nos services au numéro de téléphone suivant :", + "nb_cols": 12, + "id": "TelEndommagement" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Endommagement", + "label": "Pour toute anomalie susceptible de mettre en cause la sécurité au cours du déroulement du chantier, prévenir le service départemental d’incendie et de secours (par défaut le 18 ou le 112) :", + "nb_cols": 12, + "id": "Endommagement" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ResponsableDossierTitle", + "label": "Responsable du dossier", + "nb_cols": 6, + "id": "ResponsableDossierTitle" + }, + { + "type": "title", + "name": "SignautureTitle", + "label": "Signature de l’exploitant ou de son représentant", + "nb_cols": 6, + "id": "SignautureTitle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "NomSignataire", + "label": "Nom :", + "nb_cols": 6, + "id": "NomSignataire" + }, + { + "type": "text", + "name": "NomResponsableDossier", + "label": "", + "nb_cols": 6, + "id": "NomResponsableDossier" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "DesignationService", + "label": "Désignation du service :", + "nb_cols": 6, + "id": "DesignationService" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "TelResponsableDossier", + "label": "Tél. :", + "nb_cols": 6, + "id": "TelResponsableDossier" + }, + { + "type": "text", + "name": "DateRecepisse", + "label": "Date :", + "nb_cols": 2, + "id": "DateRecepisse" + }, + { + "type": "text", + "name": "NbPJ", + "label": "Nombres de pièces jointes", + "nb_cols": 4, + "id": "NbPJ" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "Denomination", + "ComplementAdresse", + "NoVoie", + "LieuditBP", + "CodePostal", + "Commune", + "Pays", + "NoGU", + "ReferenceExploitant", + "NoAffaireDeclarant", + "Personne_Contacter", + "DateReception", + "AdresseTravaux", + "RaisonSocialeExploitant", + "ContactExploitant", + "NoVoieExploitant", + "LieuditBPExploitant", + "CodePostalExploitant", + "CommuneExploitant", + "TelExploitant", + "FaxExploitant", + "RepImpossible", + "InfoPreciser", + "PasConcerne", + "DistanceReseau", + "Concerne", + "CategorieReseau1", + "CategorieReseau2", + "CategorieReseau3", + "ModifPrevue", + "ModifEnCours", + "RepresentantExploitant", + "TelModification", + "NbLabel", + "Ref1", + "Echelle1", + "DateEditionPlan1", + "Sensible1", + "Profondeur1", + "Materiau1", + "Ref2", + "Echelle2", + "DateEditionPlan2", + "Sensible2", + "Profondeur2", + "Materiau2", + "ReunionChantierCase", + "DateRDV", + "Separator1", + "RDVparDeclarant", + "FakeLabel1", + "ServitudeCase", + "PasClasseACase", + "BranchementsCase", + "Recommandations", + "RubriquesGuide", + "MiseHorsTension", + "DispositifsSecurite", + "TelEndommagement", + "Endommagement", + "NomResponsableDossier", + "TelResponsableDossier", + "NomSignataire", + "DateRecepisse", + "NbPJ", + "Recepisse_DT_unique", + "Recepisse_DC", + "DesignationService", + "Recepisse_DICT", + "Separator2", + "Separator3", + "Separator4", + "NB1", + "SensibleLabel", + "DestinataireSectionTitle", + "CoordonnéesExploiTitle", + "ElementDeReponseTitle", + "ModifExtendRéseauxTiltle", + "PlansJoints", + "ReférenceLabel", + "EchelleLabel", + "DateDeditionLabel", + "Separator7", + "ProfLabel", + "MaterielLabel", + "ouLabel", + "FakeLabel5", + "EmplacementRéseauxTitle", + "separator5", + "RecommandationTitle", + "label17", + "separator6", + "CasDegradationTitle", + "SignautureTitle", + "ResponsableDossierTitle", + "FakeLabel2", + "FakeLabel3", + "FakeLabel4", + "MesuresSecurite", + "info_catégorie", + "update_button", + "CommuneTravaux", + "DateReunion", + "DateAppelNonConcl" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "FakeLabel1": "rw", + "DestinataireSectionTitle": "rw", + "Recepisse_DT_unique": "rw", + "Denomination": "rw", + "Recepisse_DICT": "rw", + "ComplementAdresse": "rw", + "Recepisse_DC": "rw", + "NoVoie": "rw", + "FakeLabel2": "rw", + "LieuditBP": "rw", + "FakeLabel3": "rw", + "CodePostal": "rw", + "Commune": "rw", + "FakeLabel4": "rw", + "Pays": "rw", + "Separator1": "rw", + "NoGU": "rw", + "CoordonnéesExploiTitle": "rw", + "ReferenceExploitant": "rw", + "RaisonSocialeExploitant": "rw", + "NoAffaireDeclarant": "rw", + "ContactExploitant": "rw", + "Personne_Contacter": "rw", + "NoVoieExploitant": "rw", + "DateReception": "rw", + "LieuditBPExploitant": "rw", + "CommuneTravaux": "rw", + "CodePostalExploitant": "rw", + "CommuneExploitant": "rw", + "AdresseTravaux": "rw", + "TelExploitant": "rw", + "FaxExploitant": "rw", + "Separator2": "rw", + "ElementDeReponseTitle": "rw", + "RepImpossible": "rw", + "InfoPreciser": "rw", + "PasConcerne": "rw", + "DistanceReseau": "rw", + "Concerne": "rw", + "CategorieReseau1": "rw", + "CategorieReseau2": "rw", + "CategorieReseau3": "rw", + "info_catégorie": "rw", + "Separator3": "rw", + "ModifExtendRéseauxTiltle": "rw", + "ModifPrevue": "rw", + "ModifEnCours": "rw", + "RepresentantExploitant": "rw", + "TelModification": "rw", + "NB1": "rw", + "Separator4": "rw", + "EmplacementRéseauxTitle": "rw", + "PlansJoints": "rw", + "ReférenceLabel": "rw", + "EchelleLabel": "rw", + "DateDeditionLabel": "rw", + "SensibleLabel": "rw", + "ProfLabel": "rw", + "MaterielLabel": "rw", + "Ref1": "rw", + "Echelle1": "rw", + "DateEditionPlan1": "rw", + "Sensible1": "rw", + "Profondeur1": "rw", + "Materiau1": "rw", + "Ref2": "rw", + "Echelle2": "rw", + "DateEditionPlan2": "rw", + "Sensible2": "rw", + "Profondeur2": "rw", + "Materiau2": "rw", + "NbLabel": "rw", + "ReunionChantierCase": "rw", + "DateRDV": "rw", + "DateReunion": "rw", + "FakeLabel5": "rw", + "ouLabel": "rw", + "RDVparDeclarant": "rw", + "DateAppelNonConcl": "rw", + "ServitudeCase": "rw", + "PasClasseACase": "rw", + "BranchementsCase": "rw", + "separator5": "rw", + "RecommandationTitle": "rw", + "label17": "rw", + "Recommandations": "rw", + "RubriquesGuide": "rw", + "MiseHorsTension": "rw", + "MesuresSecurite": "rw", + "DispositifsSecurite": "rw", + "separator6": "rw", + "CasDegradationTitle": "rw", + "TelEndommagement": "rw", + "Endommagement": "rw", + "Separator7": "rw", + "ResponsableDossierTitle": "rw", + "SignautureTitle": "rw", + "NomSignataire": "rw", + "NomResponsableDossier": "rw", + "DesignationService": "rw", + "TelResponsableDossier": "rw", + "DateRecepisse": "rw", + "NbPJ": "rw", + "update_button": "rw" + }, + "dtnet_signataire": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "rw" + }, + "dtnet_exploitant": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "rw" + } + }, + "A signer": { + "dtnet_instructeur": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "rw" + }, + "dtnet_signataire": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "rw" + }, + "dtnet_exploitant": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "rw" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "update_button": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "r" + }, + "dtnet_signataire": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "r" + }, + "dtnet_exploitant": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "r" + } + } + } + }, + "search": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "update_button" + ] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_CERFA_TITLE", + "input_size": "xxs", + "nb_cols": 8, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "FakeLabel1", + "label": "", + "nb_cols": 6, + "id": "FakeLabel1" + }, + { + "type": "title", + "name": "DestinataireSectionTitle", + "label": "Destinataire", + "nb_cols": 6, + "id": "DestinataireSectionTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Recepisse_DT_unique", + "label": "Récépissé de DT", + "nb_cols": 6, + "id": "Recepisse_DT_unique" + }, + { + "type": "text", + "name": "Denomination", + "label": "Dénomination :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "Denomination" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Recepisse_DICT", + "label": "Récépissé de DICT", + "nb_cols": 6, + "id": "Recepisse_DICT" + }, + { + "type": "text", + "name": "ComplementAdresse", + "label": "Complément/Service :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "ComplementAdresse" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Recepisse_DC", + "label": "Récépissé de DT/DICT", + "nb_cols": 6, + "id": "Recepisse_DC" + }, + { + "type": "text", + "name": "NoVoie", + "label": "Numéro / Voie :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "NoVoie" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "FakeLabel2", + "label": "", + "nb_cols": 6, + "id": "FakeLabel2" + }, + { + "type": "text", + "name": "LieuditBP", + "label": "Lieu-dit / BP :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "LieuditBP" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "FakeLabel3", + "nb_cols": 6, + "id": "FakeLabel3" + }, + { + "type": "text", + "name": "CodePostal", + "label": "Code Postal :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "CodePostal" + }, + { + "type": "text", + "name": "Commune", + "label": "Commune :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Commune" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "FakeLabel4", + "label": "", + "nb_cols": 6, + "id": "FakeLabel4" + }, + { + "type": "text", + "name": "Pays", + "label": "Pays :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "Pays" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "NoGU", + "label": "N° consultation du téléservice :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "NoGU" + }, + { + "type": "title", + "name": "CoordonnéesExploiTitle", + "label": "Coordonnées de l'exploitant :", + "nb_cols": 6, + "id": "CoordonnéesExploiTitle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "ReferenceExploitant", + "label": "Référence de l'exploitant :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "ReferenceExploitant" + }, + { + "type": "text", + "name": "RaisonSocialeExploitant", + "label": "Raison sociale :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "RaisonSocialeExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "NoAffaireDeclarant", + "label": "N° d'affaire du déclarant :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "NoAffaireDeclarant" + }, + { + "type": "text", + "name": "ContactExploitant", + "label": "Personne à contacter :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "ContactExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Personne_Contacter", + "label": "Personne à contacter (déclarant) :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "Personne_Contacter" + }, + { + "type": "text", + "name": "NoVoieExploitant", + "label": "Numéro / Voie :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "NoVoieExploitant" + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "DateReception", + "label": "Date de réception de la déclaration :", + "nb_cols": 6, + "id": "DateReception" + }, + { + "type": "text", + "name": "LieuditBPExploitant", + "label": "Lieu-dit / BP :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "LieuditBPExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "CommuneTravaux", + "label": "Commune principale des travaux :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "CommuneTravaux" + }, + { + "type": "text", + "name": "CodePostalExploitant", + "label": "Code Postal :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "CodePostalExploitant" + }, + { + "type": "text", + "name": "CommuneExploitant", + "label": "Commune :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "CommuneExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "AdresseTravaux", + "label": "Adresse des travaux prévus :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "AdresseTravaux" + }, + { + "type": "text", + "name": "TelExploitant", + "label": "Tél :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "TelExploitant" + }, + { + "type": "text", + "name": "FaxExploitant", + "label": "Fax :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "FaxExploitant" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ElementDeReponseTitle", + "label": "Eléments généraux de réponse", + "nb_cols": 12, + "id": "ElementDeReponseTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "RepImpossible", + "label": "Les renseignements que vous avez fournis ne nous permettent pas de vous répondre. La déclaration est à renouveler.", + "nb_cols": 12, + "id": "RepImpossible" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "InfoPreciser", + "label": "Précisez notamment :", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "InfoPreciser" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "PasConcerne", + "label": "Les réseaux/ouvrages que nous exploitons ne sont pas concernés au regard des informations fournies.", + "nb_cols": 8, + "id": "PasConcerne" + }, + { + "type": "text", + "name": "DistanceReseau", + "label": "Distance > à (en m):", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "DistanceReseau" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "Concerne", + "label": "Il y a au moins un réseau/ouvrage concerné (voir liste jointe) de catégorie :", + "nb_cols": 4, + "id": "Concerne" + }, + { + "type": "select", + "name": "CategorieReseau1", + "label": "", + "required": false, + "nb_cols": 2, + "id": "CategorieReseau1", + "id_from": "CategorieReseau1_from", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "code", + "order_by": "code", + "id_key": "code", + "attributs": "code|code" + } + }, + { + "type": "select", + "name": "CategorieReseau2", + "label": "", + "required": false, + "nb_cols": 2, + "id": "CategorieReseau2", + "id_from": "CategorieReseau2_from", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "code", + "order_by": "code", + "id_key": "code", + "attributs": "code|code" + } + }, + { + "type": "select", + "name": "CategorieReseau3", + "label": "", + "required": false, + "nb_cols": 2, + "id": "CategorieReseau3", + "id_from": "CategorieReseau3_from", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "id_key": "code", + "label_key": "code", + "attributs": "code|code", + "order_by": "code" + } + }, + { + "type": "url", + "name": "info_catégorie", + "nb_cols": 2, + "id": "info_catégorie", + "pattern": "^https?:\\/\\/.{1,}" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ModifExtendRéseauxTiltle", + "label": "Modification ou extension de nos réseaux /ouvrages", + "nb_cols": 12, + "id": "ModifExtendRéseauxTiltle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "ModifPrevue", + "label": "Modification ou extension de réseau/ouvrage envisagée dans un délai inférieur à 3 mois :", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "ModifPrevue" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "ModifEnCours", + "label": "Réalisation de modifications en cours sur notre réseau/ouvrage.", + "nb_cols": 12, + "id": "ModifEnCours" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "RepresentantExploitant", + "label": "Veuillez contacter notre représentant :", + "required": false, + "pattern": "", + "nb_cols": 9, + "id": "RepresentantExploitant" + }, + { + "type": "text", + "name": "TelModification", + "label": "Tél :", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "TelModification" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "NB1", + "label": "NB : Si nous avons connaissance d’une modification du réseau/ouvrage dans le délai maximal de 3 mois à compter de la consultation du téléservice, nous vous en informerons.", + "nb_cols": 12, + "id": "NB1" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "EmplacementRéseauxTitle", + "label": "Emplacement de nos réseaux / ouvrages", + "nb_cols": 12, + "id": "EmplacementRéseauxTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "PlansJoints", + "id": "PlansJoints", + "nb_cols": 12, + "label": "Plans joints :" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "ReférenceLabel", + "label": "Références:", + "nb_cols": 2, + "id": "ReférenceLabel" + }, + { + "type": "label", + "name": "EchelleLabel", + "label": "Echelle:", + "nb_cols": 2, + "id": "EchelleLabel" + }, + { + "type": "label", + "name": "DateDeditionLabel", + "label": "Date d'édition:", + "nb_cols": 2, + "id": "DateDeditionLabel" + }, + { + "type": "label", + "name": "SensibleLabel", + "label": "Sensible:", + "nb_cols": 2, + "id": "SensibleLabel" + }, + { + "type": "label", + "name": "ProfLabel", + "label": "Prof. règl. mini:", + "nb_cols": 2, + "id": "ProfLabel" + }, + { + "type": "label", + "name": "MaterielLabel", + "label": "Matériau réseau :", + "nb_cols": 2, + "id": "MaterielLabel" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Ref1", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Ref1" + }, + { + "type": "text", + "name": "Echelle1", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Echelle1" + }, + { + "type": "date", + "name": "DateEditionPlan1", + "nb_cols": 2, + "id": "DateEditionPlan1" + }, + { + "type": "checkbox", + "name": "Sensible1", + "nb_cols": 2, + "id": "Sensible1" + }, + { + "type": "text", + "name": "Profondeur1", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Profondeur1" + }, + { + "type": "text", + "name": "Materiau1", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Materiau1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Ref2", + "label": "", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Ref2" + }, + { + "type": "text", + "name": "Echelle2", + "label": "", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Echelle2" + }, + { + "type": "date", + "name": "DateEditionPlan2", + "label": "", + "nb_cols": 2, + "id": "DateEditionPlan2" + }, + { + "type": "checkbox", + "name": "Sensible2", + "label": "", + "nb_cols": 2, + "id": "Sensible2" + }, + { + "type": "text", + "name": "Profondeur2", + "label": "", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Profondeur2" + }, + { + "type": "text", + "name": "Materiau2", + "label": "", + "required": false, + "pattern": "", + "nb_cols": 2, + "id": "Materiau2" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "NbLabel", + "label": "NB : La classe de précision A, B ou C figure dans les plans.", + "nb_cols": 12, + "id": "NbLabel" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "ReunionChantierCase", + "label": "Réunion sur chantier pour localisation du réseau/ouvrage :", + "nb_cols": 5, + "id": "ReunionChantierCase" + }, + { + "type": "checkbox", + "name": "DateRDV", + "label": "Date retenue d’un commun accord :", + "nb_cols": 4, + "id": "DateRDV" + }, + { + "type": "datetime", + "name": "DateReunion", + "label": "", + "nb_cols": 3, + "id": "DateReunion" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "FakeLabel5", + "label": "", + "nb_cols": 4, + "id": "FakeLabel5" + }, + { + "type": "label", + "name": "ouLabel", + "label": "ou", + "nb_cols": 1, + "id": "ouLabel" + }, + { + "type": "checkbox", + "name": "RDVparDeclarant", + "label": "Prise de RDV à l’initiative du déclarant (date du dernier contact non conclusif :", + "nb_cols": 4, + "id": "RDVparDeclarant" + }, + { + "type": "date", + "name": "DateAppelNonConcl", + "nb_cols": 3, + "id": "DateAppelNonConcl" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "ServitudeCase", + "label": "Votre projet doit tenir compte de la servitude protégeant notre ouvrage", + "nb_cols": 12, + "id": "ServitudeCase" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "PasClasseACase", + "label": "(cas d’un récépissé de DT) Tous les tronçons dans l’emprise ne sont pas en totalité de classe A : investigations complémentaires ou clauses particulières au marche a prévoir.", + "nb_cols": 12, + "id": "PasClasseACase" + } + ] + }, + { + "fields": [ + { + "type": "checkbox", + "name": "BranchementsCase", + "label": "Les branchements situés dans l’emprise du projet et pourvus d’affleurant sont tous rattachés à un réseau principal souterrain identifié dans les plans joints.", + "nb_cols": 12, + "id": "BranchementsCase" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "RecommandationTitle", + "label": "Recommandations de sécurité", + "nb_cols": 12, + "id": "RecommandationTitle" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "label17", + "label": "Les recommandations techniques générales en fonction des réseaux et des techniques de travaux prévues sont consultables sur www.reseaux-et-canalisations.gouv.fr", + "nb_cols": 12, + "id": "label17" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Recommandations", + "label": "Les recommandations techniques spécifiques suivantes sont à appliquer, en fonction des risques liés à l’utilisation des techniques de travaux employées :", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "Recommandations" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "RubriquesGuide", + "label": "Rubriques du guide technique relatives à des ouvrages ou travaux spécifiques :", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "RubriquesGuide" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "MiseHorsTension", + "label": "Pour les exploitants de lignes électriques : si la distance d’approche a été précisée, la mise hors tension est :", + "nb_cols": 12, + "id": "MiseHorsTension", + "options": { + "choices": [ + { + "label": "Possible", + "value": true, + "$$hashKey": "object:2445" + }, + { + "label": "Impossible", + "value": false, + "$$hashKey": "object:2446" + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "MesuresSecurite", + "label": "Mesures de sécurité à mettre en œuvre :", + "required": false, + "nb_cols": 12, + "id": "MesuresSecurite" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "DispositifsSecurite", + "label": "Dispositifs importants pour la sécurité :", + "required": false, + "nb_cols": 12, + "id": "DispositifsSecurite", + "id_from": "DispositifsSecurite_from", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true" + } + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "CasDegradationTitle", + "label": "Cas de dégradation d’un de nos ouvrages", + "nb_cols": 12, + "id": "CasDegradationTitle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "TelEndommagement", + "label": "En cas de dégradation d’un de nos ouvrages, contactez nos services au numéro de téléphone suivant :", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "TelEndommagement" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "Endommagement", + "label": "Pour toute anomalie susceptible de mettre en cause la sécurité au cours du déroulement du chantier, prévenir le service départemental d’incendie et de secours (par défaut le 18 ou le 112) :", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "Endommagement" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ResponsableDossierTitle", + "label": "Responsable du dossier", + "nb_cols": 6, + "id": "ResponsableDossierTitle" + }, + { + "type": "title", + "name": "SignautureTitle", + "label": "Signature de l’exploitant ou de son représentant", + "nb_cols": 6, + "id": "SignautureTitle" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "NomSignataire", + "label": "Nom :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "NomSignataire" + }, + { + "type": "text", + "name": "NomResponsableDossier", + "label": "", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "NomResponsableDossier" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "DesignationService", + "label": "Désignation du service :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "DesignationService" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "TelResponsableDossier", + "label": "Tél. :", + "required": false, + "pattern": "", + "nb_cols": 6, + "id": "TelResponsableDossier" + }, + { + "type": "text", + "name": "DateRecepisse", + "label": "Date :", + "required": false, + "nb_cols": 2, + "id": "DateRecepisse" + }, + { + "type": "text", + "name": "NbPJ", + "label": "Nombres de pièces jointes", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "NbPJ" + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "Element_0", + "nb_cols": 4, + "id": "Element_0", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_CERFA_SAVE_CERFA", + "class": "btn-primary", + "event": "saveCerfaModif()" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + }, + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 4, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "Denomination", + "ComplementAdresse", + "NoVoie", + "LieuditBP", + "CodePostal", + "Commune", + "Pays", + "NoGU", + "ReferenceExploitant", + "NoAffaireDeclarant", + "Personne_Contacter", + "DateReception", + "AdresseTravaux", + "RaisonSocialeExploitant", + "ContactExploitant", + "NoVoieExploitant", + "LieuditBPExploitant", + "CodePostalExploitant", + "CommuneExploitant", + "TelExploitant", + "FaxExploitant", + "RepImpossible", + "InfoPreciser", + "PasConcerne", + "DistanceReseau", + "Concerne", + "CategorieReseau1", + "CategorieReseau2", + "CategorieReseau3", + "ModifPrevue", + "ModifEnCours", + "RepresentantExploitant", + "TelModification", + "NbLabel", + "Ref1", + "Echelle1", + "DateEditionPlan1", + "Sensible1", + "Profondeur1", + "Materiau1", + "Ref2", + "Echelle2", + "DateEditionPlan2", + "Sensible2", + "Profondeur2", + "Materiau2", + "ReunionChantierCase", + "DateRDV", + "Separator1", + "RDVparDeclarant", + "FakeLabel1", + "ServitudeCase", + "PasClasseACase", + "BranchementsCase", + "Recommandations", + "RubriquesGuide", + "MiseHorsTension", + "DispositifsSecurite", + "TelEndommagement", + "Endommagement", + "NomResponsableDossier", + "TelResponsableDossier", + "NomSignataire", + "DateRecepisse", + "NbPJ", + "Recepisse_DT_unique", + "Recepisse_DC", + "DesignationService", + "Recepisse_DICT", + "Separator2", + "Separator3", + "Separator4", + "NB1", + "SensibleLabel", + "DestinataireSectionTitle", + "CoordonnéesExploiTitle", + "ElementDeReponseTitle", + "ModifExtendRéseauxTiltle", + "PlansJoints", + "ReférenceLabel", + "EchelleLabel", + "DateDeditionLabel", + "Separator7", + "ProfLabel", + "MaterielLabel", + "ouLabel", + "FakeLabel5", + "EmplacementRéseauxTitle", + "separator5", + "RecommandationTitle", + "label17", + "separator6", + "CasDegradationTitle", + "SignautureTitle", + "ResponsableDossierTitle", + "Separator8", + "FakeLabel2", + "FakeLabel3", + "FakeLabel4", + "MesuresSecurite", + "Element_0", + "info_catégorie", + "update_button", + "DateReunion", + "DateAppelNonConcl", + "CommuneTravaux" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "FakeLabel1": "rw", + "DestinataireSectionTitle": "rw", + "Recepisse_DT_unique": "rw", + "Denomination": "rw", + "Recepisse_DICT": "rw", + "ComplementAdresse": "rw", + "Recepisse_DC": "rw", + "NoVoie": "rw", + "FakeLabel2": "rw", + "LieuditBP": "rw", + "FakeLabel3": "rw", + "CodePostal": "rw", + "Commune": "rw", + "FakeLabel4": "rw", + "Pays": "rw", + "Separator1": "rw", + "NoGU": "rw", + "CoordonnéesExploiTitle": "rw", + "ReferenceExploitant": "rw", + "RaisonSocialeExploitant": "rw", + "NoAffaireDeclarant": "rw", + "ContactExploitant": "rw", + "Personne_Contacter": "rw", + "NoVoieExploitant": "rw", + "DateReception": "rw", + "LieuditBPExploitant": "rw", + "CommuneTravaux": "rw", + "CodePostalExploitant": "rw", + "CommuneExploitant": "rw", + "AdresseTravaux": "rw", + "TelExploitant": "rw", + "FaxExploitant": "rw", + "Separator2": "rw", + "ElementDeReponseTitle": "rw", + "RepImpossible": "rw", + "InfoPreciser": "rw", + "PasConcerne": "rw", + "DistanceReseau": "rw", + "Concerne": "rw", + "CategorieReseau1": "rw", + "CategorieReseau2": "rw", + "CategorieReseau3": "rw", + "info_catégorie": "rw", + "Separator3": "rw", + "ModifExtendRéseauxTiltle": "rw", + "ModifPrevue": "rw", + "ModifEnCours": "rw", + "RepresentantExploitant": "rw", + "TelModification": "rw", + "NB1": "rw", + "Separator4": "rw", + "EmplacementRéseauxTitle": "rw", + "PlansJoints": "rw", + "ReférenceLabel": "rw", + "EchelleLabel": "rw", + "DateDeditionLabel": "rw", + "SensibleLabel": "rw", + "ProfLabel": "rw", + "MaterielLabel": "rw", + "Ref1": "rw", + "Echelle1": "rw", + "DateEditionPlan1": "rw", + "Sensible1": "rw", + "Profondeur1": "rw", + "Materiau1": "rw", + "Ref2": "rw", + "Echelle2": "rw", + "DateEditionPlan2": "rw", + "Sensible2": "rw", + "Profondeur2": "rw", + "Materiau2": "rw", + "NbLabel": "rw", + "ReunionChantierCase": "rw", + "DateRDV": "rw", + "DateReunion": "rw", + "FakeLabel5": "rw", + "ouLabel": "rw", + "RDVparDeclarant": "rw", + "DateAppelNonConcl": "rw", + "ServitudeCase": "rw", + "PasClasseACase": "rw", + "BranchementsCase": "rw", + "separator5": "rw", + "RecommandationTitle": "rw", + "label17": "rw", + "Recommandations": "rw", + "RubriquesGuide": "rw", + "MiseHorsTension": "rw", + "MesuresSecurite": "rw", + "DispositifsSecurite": "rw", + "separator6": "rw", + "CasDegradationTitle": "rw", + "TelEndommagement": "rw", + "Endommagement": "rw", + "Separator7": "rw", + "ResponsableDossierTitle": "rw", + "SignautureTitle": "rw", + "NomSignataire": "rw", + "NomResponsableDossier": "rw", + "DesignationService": "rw", + "TelResponsableDossier": "rw", + "DateRecepisse": "rw", + "NbPJ": "rw", + "Separator8": "rw", + "Element_0": "rw", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "Separator8": "r", + "Element_0": "", + "update_button": "rw" + }, + "dtnet_exploitant": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "rw", + "Recepisse_DT_unique": "rw", + "Denomination": "rw", + "Recepisse_DICT": "rw", + "ComplementAdresse": "rw", + "Recepisse_DC": "rw", + "NoVoie": "rw", + "FakeLabel2": "r", + "LieuditBP": "rw", + "FakeLabel3": "r", + "CodePostal": "rw", + "Commune": "rw", + "FakeLabel4": "r", + "Pays": "rw", + "Separator1": "r", + "NoGU": "rw", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "rw", + "RaisonSocialeExploitant": "rw", + "NoAffaireDeclarant": "rw", + "ContactExploitant": "rw", + "Personne_Contacter": "rw", + "NoVoieExploitant": "rw", + "DateReception": "rw", + "LieuditBPExploitant": "rw", + "CommuneTravaux": "rw", + "CodePostalExploitant": "rw", + "CommuneExploitant": "rw", + "AdresseTravaux": "rw", + "TelExploitant": "rw", + "FaxExploitant": "rw", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "rw", + "InfoPreciser": "rw", + "PasConcerne": "rw", + "DistanceReseau": "rw", + "Concerne": "rw", + "CategorieReseau1": "rw", + "CategorieReseau2": "rw", + "CategorieReseau3": "rw", + "info_catégorie": "rw", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "rw", + "ModifEnCours": "rw", + "RepresentantExploitant": "rw", + "TelModification": "rw", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "rw", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "rw", + "Echelle1": "rw", + "DateEditionPlan1": "rw", + "Sensible1": "rw", + "Profondeur1": "rw", + "Materiau1": "rw", + "Ref2": "rw", + "Echelle2": "rw", + "DateEditionPlan2": "rw", + "Sensible2": "rw", + "Profondeur2": "rw", + "Materiau2": "rw", + "NbLabel": "r", + "ReunionChantierCase": "rw", + "DateRDV": "rw", + "DateReunion": "rw", + "FakeLabel5": "rw", + "ouLabel": "r", + "RDVparDeclarant": "rw", + "DateAppelNonConcl": "rw", + "ServitudeCase": "rw", + "PasClasseACase": "rw", + "BranchementsCase": "rw", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "rw", + "RubriquesGuide": "rw", + "MiseHorsTension": "rw", + "MesuresSecurite": "rw", + "DispositifsSecurite": "rw", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "rw", + "Endommagement": "rw", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "rw", + "NomResponsableDossier": "rw", + "DesignationService": "rw", + "TelResponsableDossier": "rw", + "DateRecepisse": "rw", + "NbPJ": "rw", + "Separator8": "r", + "Element_0": "rw", + "update_button": "" + } + }, + "A signer": { + "dtnet_instructeur": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "Separator8": "r", + "Element_0": "", + "update_button": "rw" + }, + "dtnet_signataire": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "Separator8": "r", + "Element_0": "", + "update_button": "rw" + }, + "dtnet_exploitant": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "Separator8": "r", + "Element_0": "", + "update_button": "rw" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_signataire": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + }, + "dtnet_exploitant": { + "FakeLabel1": "", + "DestinataireSectionTitle": "", + "Recepisse_DT_unique": "", + "Denomination": "", + "Recepisse_DICT": "", + "ComplementAdresse": "", + "Recepisse_DC": "", + "NoVoie": "", + "FakeLabel2": "", + "LieuditBP": "", + "FakeLabel3": "", + "CodePostal": "", + "Commune": "", + "FakeLabel4": "", + "Pays": "", + "Separator1": "", + "NoGU": "", + "CoordonnéesExploiTitle": "", + "ReferenceExploitant": "", + "RaisonSocialeExploitant": "", + "NoAffaireDeclarant": "", + "ContactExploitant": "", + "Personne_Contacter": "", + "NoVoieExploitant": "", + "DateReception": "", + "LieuditBPExploitant": "", + "CommuneTravaux": "", + "CodePostalExploitant": "", + "CommuneExploitant": "", + "AdresseTravaux": "", + "TelExploitant": "", + "FaxExploitant": "", + "Separator2": "", + "ElementDeReponseTitle": "", + "RepImpossible": "", + "InfoPreciser": "", + "PasConcerne": "", + "DistanceReseau": "", + "Concerne": "", + "CategorieReseau1": "", + "CategorieReseau2": "", + "CategorieReseau3": "", + "info_catégorie": "", + "Separator3": "", + "ModifExtendRéseauxTiltle": "", + "ModifPrevue": "", + "ModifEnCours": "", + "RepresentantExploitant": "", + "TelModification": "", + "NB1": "", + "Separator4": "", + "EmplacementRéseauxTitle": "", + "PlansJoints": "", + "ReférenceLabel": "", + "EchelleLabel": "", + "DateDeditionLabel": "", + "SensibleLabel": "", + "ProfLabel": "", + "MaterielLabel": "", + "Ref1": "", + "Echelle1": "", + "DateEditionPlan1": "", + "Sensible1": "", + "Profondeur1": "", + "Materiau1": "", + "Ref2": "", + "Echelle2": "", + "DateEditionPlan2": "", + "Sensible2": "", + "Profondeur2": "", + "Materiau2": "", + "NbLabel": "", + "ReunionChantierCase": "", + "DateRDV": "", + "DateReunion": "", + "FakeLabel5": "", + "ouLabel": "", + "RDVparDeclarant": "", + "DateAppelNonConcl": "", + "ServitudeCase": "", + "PasClasseACase": "", + "BranchementsCase": "", + "separator5": "", + "RecommandationTitle": "", + "label17": "", + "Recommandations": "", + "RubriquesGuide": "", + "MiseHorsTension": "", + "MesuresSecurite": "", + "DispositifsSecurite": "", + "separator6": "", + "CasDegradationTitle": "", + "TelEndommagement": "", + "Endommagement": "", + "Separator7": "", + "ResponsableDossierTitle": "", + "SignautureTitle": "", + "NomSignataire": "", + "NomResponsableDossier": "", + "DesignationService": "", + "TelResponsableDossier": "", + "DateRecepisse": "", + "NbPJ": "", + "Separator8": "", + "Element_0": "", + "update_button": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "r" + }, + "dtnet_signataire": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "r" + }, + "dtnet_exploitant": { + "FakeLabel1": "r", + "DestinataireSectionTitle": "r", + "Recepisse_DT_unique": "r", + "Denomination": "r", + "Recepisse_DICT": "r", + "ComplementAdresse": "r", + "Recepisse_DC": "r", + "NoVoie": "r", + "FakeLabel2": "r", + "LieuditBP": "r", + "FakeLabel3": "r", + "CodePostal": "r", + "Commune": "r", + "FakeLabel4": "r", + "Pays": "r", + "Separator1": "r", + "NoGU": "r", + "CoordonnéesExploiTitle": "r", + "ReferenceExploitant": "r", + "RaisonSocialeExploitant": "r", + "NoAffaireDeclarant": "r", + "ContactExploitant": "r", + "Personne_Contacter": "r", + "NoVoieExploitant": "r", + "DateReception": "r", + "LieuditBPExploitant": "r", + "CommuneTravaux": "r", + "CodePostalExploitant": "r", + "CommuneExploitant": "r", + "AdresseTravaux": "r", + "TelExploitant": "r", + "FaxExploitant": "r", + "Separator2": "r", + "ElementDeReponseTitle": "r", + "RepImpossible": "r", + "InfoPreciser": "r", + "PasConcerne": "r", + "DistanceReseau": "r", + "Concerne": "r", + "CategorieReseau1": "r", + "CategorieReseau2": "r", + "CategorieReseau3": "r", + "info_catégorie": "r", + "Separator3": "r", + "ModifExtendRéseauxTiltle": "r", + "ModifPrevue": "r", + "ModifEnCours": "r", + "RepresentantExploitant": "r", + "TelModification": "r", + "NB1": "r", + "Separator4": "r", + "EmplacementRéseauxTitle": "r", + "PlansJoints": "r", + "ReférenceLabel": "r", + "EchelleLabel": "r", + "DateDeditionLabel": "r", + "SensibleLabel": "r", + "ProfLabel": "r", + "MaterielLabel": "r", + "Ref1": "r", + "Echelle1": "r", + "DateEditionPlan1": "r", + "Sensible1": "r", + "Profondeur1": "r", + "Materiau1": "r", + "Ref2": "r", + "Echelle2": "r", + "DateEditionPlan2": "r", + "Sensible2": "r", + "Profondeur2": "r", + "Materiau2": "r", + "NbLabel": "r", + "ReunionChantierCase": "r", + "DateRDV": "r", + "DateReunion": "r", + "FakeLabel5": "r", + "ouLabel": "r", + "RDVparDeclarant": "r", + "DateAppelNonConcl": "r", + "ServitudeCase": "r", + "PasClasseACase": "r", + "BranchementsCase": "r", + "separator5": "r", + "RecommandationTitle": "r", + "label17": "r", + "Recommandations": "r", + "RubriquesGuide": "r", + "MiseHorsTension": "r", + "MesuresSecurite": "r", + "DispositifsSecurite": "r", + "separator6": "r", + "CasDegradationTitle": "r", + "TelEndommagement": "r", + "Endommagement": "r", + "Separator7": "r", + "ResponsableDossierTitle": "r", + "SignautureTitle": "r", + "NomSignataire": "r", + "NomResponsableDossier": "r", + "DesignationService": "r", + "TelResponsableDossier": "r", + "DateRecepisse": "r", + "NbPJ": "r", + "update_button": "r" + } + } + } + }, + "datasources": { + "datasource_1": { + "type": "object", + "dataType": "text", + "name": "datasource_1", + "description": "", + "options": [ + "", + "Voir la liste des dispositifs en place dans le document joint", + "Voir la localisation sur le plan joint", + "Aucun dans l'emprise" + ], + "id": "datasource_1" + }, + "datasource_2": { + "type": "object", + "dataType": "text", + "name": "datasource_2", + "description": "", + "options": [ + "", + "HC", + "PC", + "GA", + "CU", + "EL", + "TR", + "DE", + "TL", + "EA", + "EU" + ], + "id": "datasource_2" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_file_manager.json b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_file_manager.json new file mode 100755 index 0000000000000000000000000000000000000000..367f636cf098dadddf5a49312801acf6395b91f0 --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_dtdict_file_manager.json @@ -0,0 +1,576 @@ +{ + "display": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "dtdict_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "dtdict_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "pdforder", + "update_button", + "dtdict_id" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + } + }, + "A signer": { + "dtnet_instructeur": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "update_button": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "pdforder": "r", + "update_button": "rw" + } + } + } + }, + "search": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [] + }, + "insert": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "dtdict_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + }, + { + "type": "hidden", + "name": "cmd", + "nb_cols": 12, + "id": "Element_0_12_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_CMD" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "dtdict_file", + "size": 20, + "loadDataFunction": "getDtNetTree()", + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": true, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": true, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "PDFRemover", + "nb_cols": 12, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDF_RM", + "class": "btn-primary", + "event": "dtdictPdfFile('rm')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "upload", + "name": "pdfadd", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFADD", + "nb_cols": 8, + "id": "Element_0_3_1" + }, + { + "type": "button", + "name": "PDFAdder", + "nb_cols": 4, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDF_ADD", + "class": "btn-primary button-padding", + "event": "dtdictPdfFile('add')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "reloadDtNetTree()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "dtdict_id", + "pdforder", + "pdfadd", + "PDFAdder", + "cmd", + "PDFRemover", + "update_button" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "rw", + "pdfadd": "rw", + "PDFAdder": "rw", + "update_button": "rw" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "pdforder": "rw", + "cmd": "", + "PDFRemover": "rw", + "pdfadd": "rw", + "PDFAdder": "rw", + "update_button": "rw" + } + }, + "A signer": { + "dtnet_instructeur": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_signataire": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + }, + "dtnet_exploitant": { + "dtdict_id": "", + "pdforder": "", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + }, + "dtnet_signataire": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + }, + "dtnet_exploitant": { + "dtdict_id": "r", + "pdforder": "r", + "cmd": "", + "PDFRemover": "", + "pdfadd": "", + "PDFAdder": "", + "update_button": "rw" + } + } + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_map.json b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_map.json new file mode 100755 index 0000000000000000000000000000000000000000..8c6555844c308c11b39638a17d5d033b27bbf258 --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_dtdict_map.json @@ -0,0 +1,1615 @@ +{ + "display": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_MAP_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "map_vmap", + "name": "geom2", + "label": "DEMANDE_DTNET_DTDICT_MAP_FORM_GEOM", + "nb_cols": 12, + "id": "geom_11_1", + "style": { + "height": "ratio" + }, + "map_options": { + "proj": "EPSG:3857", + "type": "vmap", + "center": { + "extent": [ + 680174.2836579625, + 5763876.747766554, + 681397.2761105252, + 5764712.777763423 + ], + "coord": [ + 680785.7798842438, + 5764294.7627649885 + ], + "scale": 785 + }, + "controls": { + "MP": true, + "ZO": true, + "SL": true, + "CP": true + }, + "layers": [], + "interactions": { + "multi_geometry": false, + "full_screen": true, + "RA": false, + "RO": false, + "ED": false, + "DP": false, + "DL": false, + "DPol": false, + "SE": true + }, + "draw_color": "rgba(54,184,255,0.6)", + "contour_color": "rgba(0,0,0,0.4)", + "contour_size": 2, + "circle_radius": 6, + "features": [], + "coord_accuracy": 8, + "tree": { + "name": "Tree", + "children": [ + { + "view": { + "extent": [ + 680301.4796503432, + 5764022.4558517225, + 681270.0801181445, + 5764567.069678254 + ], + "projection": "EPSG:3857" + } + }, + { + "name": "dtnet", + "children": [ + { + "name": "DTNET_reseau", + "layerType": "imagewms", + "url": "[localhost]/wms/private/[token]", + "index": 1, + "visible": true, + "opacity": 1, + "is_dynamic": false, + "is_filtered": false, + "version": "1.3.0", + "params": { + "LAYERS": "DTNET_Network", + "VERSION": "1.3.0", + "STYLES": "" + }, + "bo_queryable": true, + "business_objects": [ + { + "business_object_id": "DTNET_section", + "title": "Section", + "id_field": "section_id", + "database": "dtnet", + "schema": "s_dtnet", + "table": "v_section", + "sql_summary": "SELECT section_id AS \"Id\", network_id AS \"Réseau\", class_id AS \"Classe\", category_id AS \"Catégorie\", condition_id AS \"Etat\" FROM s_dtnet.v_section", + "sql_list": "SELECT section_id, network_id, class_id, category_id, condition_id FROM s_dtnet.v_section", + "sorted_by": "section_id", + "geom_column": "geom", + "search_field": "network_id", + "result_field": "section_id", + "search_use_strict": "false", + "event_id": "", + "index": 1, + "add_form_size": 1, + "edit_form_size": 1, + "display_form_size": 1, + "selection_buffer": "5", + "json_form": [], + "geom_type": "GEOMETRY", + "user_rights": [ + "SELECT" + ], + "list_fields": [ + "section_id", + "network_id", + "class_id", + "category_id", + "condition_id" + ] + } + ], + "layer_id": 26, + "select": true, + "displayedMenu": false + }, + { + "name": "DTNET_zone", + "layerType": "imagewms", + "url": "[localhost]/wms/private/[token]", + "index": 2, + "visible": false, + "opacity": 1, + "is_dynamic": false, + "is_filtered": false, + "version": "1.3.0", + "params": { + "LAYERS": "Dtnet_area", + "VERSION": "1.3.0", + "STYLES": "" + }, + "bo_queryable": true, + "business_objects": [ + { + "business_object_id": "DTNET_zone", + "title": "Zone", + "id_field": "area_id", + "database": "dtnet", + "schema": "s_dtnet", + "table": "v_area", + "sql_summary": "SELECT area_id AS \"ID\", name AS \"Nom\", comment AS \"Remarque\", type_id AS \"Type\", creationdate AS \"Date de création\" FROM s_dtnet.v_area", + "sql_list": "SELECT area_id, name, comment, type_id, creationdate FROM s_dtnet.v_area", + "sorted_by": "area_id", + "geom_column": "geom", + "search_field": "name", + "result_field": "comment", + "search_use_strict": "false", + "event_id": "", + "index": 1, + "add_form_size": 1, + "edit_form_size": 1, + "display_form_size": 1, + "selection_buffer": "5", + "json_form": [ + { + "display": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "area_id", + "label": "Id", + "nb_cols": 12, + "id": "area_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "name", + "label": "Nom", + "nb_cols": 6, + "id": "name_2_1" + }, + { + "type": "label", + "name": "creationdate", + "label": "Date de création", + "nb_cols": 6, + "id": "creationdate_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "validitybeginningdate", + "label": "Début de validité", + "nb_cols": 6, + "id": "validitybeginningdate_7_1" + }, + { + "type": "label", + "name": "validityendingdate", + "label": "Fin de validité", + "nb_cols": 6, + "id": "validityendingdate_8_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "comment", + "label": "Remarque", + "required": false, + "nb_cols": 12, + "id": "comment_3_1", + "size": 4, + "disabled": true + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "type_id", + "label": "Action associé", + "nb_cols": 12, + "id": "classmessage_6_1", + "default_value": "" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorname", + "label": "Nom du responsable", + "nb_cols": 12, + "id": "supervisorname_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisormail", + "label": "Mail du responsable", + "nb_cols": 6, + "id": "supervisormail_10_1" + }, + { + "type": "label", + "name": "supervisorphone", + "label": "Téléphone du responsable", + "nb_cols": 6, + "id": "supervisorphone_11_1" + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "area_id", + "name", + "comment", + "creationdate", + "type_id", + "validitybeginningdate", + "validityendingdate", + "supervisorname", + "supervisormail", + "supervisorphone" + ] + } + ] + } + }, + "search": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "name", + "label": "Nom", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "name_2_1" + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "validitybeginningdate", + "label": "Début de validité", + "nb_cols": 6, + "id": "validitybeginningdate_7_1" + }, + { + "type": "date", + "name": "validityendingdate", + "label": "Fin de validité", + "nb_cols": 6, + "id": "validityendingdate_8_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "comment", + "label": "Remarque", + "required": false, + "nb_cols": 12, + "id": "comment_3_1", + "size": 4 + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "type_id", + "label": "Action associé", + "required": false, + "nb_cols": 12, + "id": "classmessage_6_1", + "default_value": "", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "type_id", + "order_by": "type_id", + "id_key": "type_id", + "attributs": "type_id|type_id" + }, + "id_from": "classmessage_6_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisorname", + "label": "Nom du responsable", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "supervisorname_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisormail", + "label": "Mail du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisormail_10_1" + }, + { + "type": "text", + "name": "supervisorphone", + "label": "Téléphone du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisorphone_11_1" + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "name", + "comment", + "type_id", + "validitybeginningdate", + "validityendingdate", + "supervisorname", + "supervisormail", + "supervisorphone" + ] + } + ] + } + }, + "update": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "area_id", + "label": "Id", + "nb_cols": 12, + "id": "area_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "name", + "label": "Nom", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "name_2_1" + }, + { + "type": "label", + "name": "creationdate", + "label": "Date de création", + "nb_cols": 6, + "id": "creationdate_4_1" + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "validitybeginningdate", + "label": "Début de validité", + "nb_cols": 6, + "id": "validitybeginningdate_7_1" + }, + { + "type": "date", + "name": "validityendingdate", + "label": "Fin de validité", + "nb_cols": 6, + "id": "validityendingdate_8_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "comment", + "label": "Remarque", + "required": false, + "nb_cols": 12, + "id": "comment_3_1", + "size": 4 + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "type_id", + "label": "Action associé", + "required": false, + "nb_cols": 12, + "id": "classmessage_6_1", + "default_value": "A changer en select", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "type_id", + "order_by": "type_id", + "id_key": "type_id", + "attributs": "type_id|type_id" + }, + "id_from": "classmessage_6_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisorname", + "label": "Nom du responsable", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "supervisorname_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisormail", + "label": "Mail du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisormail_10_1" + }, + { + "type": "text", + "name": "supervisorphone", + "label": "Téléphone du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisorphone_11_1" + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "area_id", + "name", + "comment", + "creationdate", + "type_id", + "validitybeginningdate", + "validityendingdate", + "supervisorname", + "supervisormail", + "supervisorphone" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "Typearea", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "rt_typearea" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + } + } + } + ], + "geom_type": "POLYGON", + "user_rights": [ + "INSERT", + "SELECT", + "UPDATE", + "DELETE", + "TRUNCATE", + "REFERENCES", + "TRIGGER" + ], + "list_fields": [] + } + ], + "layer_id": 32, + "select": true, + "displayedMenu": false + } + ], + "visible": true + }, + { + "name": "Open Street Maps", + "children": [ + { + "name": "Open Street Maps", + "layerType": "osm", + "index": 0, + "visible": true, + "opacity": 1, + "is_dynamic": false, + "is_filtered": false, + "version": "1.3.0", + "bo_queryable": false, + "layer_id": 14, + "url": "https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png", + "select": true, + "displayedMenu": false + } + ], + "visible": true + } + ] + } + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initDtnetDtdictMapForm()", + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "geom2", + "update_button" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_signataire": { + "update_button": "rws", + "geom2": "r" + }, + "dtnet_exploitant": { + "geom2": "r", + "update_button": "rw" + } + }, + "A signer": { + "dtnet_instructeur": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_signataire": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_exploitant": { + "geom2": "r", + "update_button": "rw" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_signataire": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_exploitant": { + "geom2": "r", + "update_button": "rw" + } + } + } + }, + "search": {}, + "insert": {}, + "update": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_MAP_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "map_vmap", + "name": "geom2", + "label": "DEMANDE_DTNET_DTDICT_MAP_FORM_GEOM", + "nb_cols": 12, + "id": "geom_11_1", + "style": { + "height": "ratio" + }, + "map_options": { + "proj": "EPSG:3857", + "type": "vmap", + "center": { + "extent": [ + 680174.2836579625, + 5763876.747766554, + 681397.2761105252, + 5764712.777763423 + ], + "coord": [ + 680785.7798842438, + 5764294.7627649885 + ], + "scale": 785 + }, + "controls": { + "MP": true, + "ZO": true, + "SL": true, + "CP": true + }, + "layers": [], + "interactions": { + "multi_geometry": false, + "full_screen": true, + "RA": false, + "RO": false, + "ED": false, + "DP": false, + "DL": false, + "DPol": false, + "SE": true + }, + "draw_color": "rgba(54,184,255,0.6)", + "contour_color": "rgba(0,0,0,0.4)", + "contour_size": 2, + "circle_radius": 6, + "features": [], + "coord_accuracy": 8, + "tree": { + "name": "Tree", + "children": [ + { + "view": { + "extent": [ + 680301.4796503432, + 5764022.4558517225, + 681270.0801181445, + 5764567.069678254 + ], + "projection": "EPSG:3857" + } + }, + { + "name": "dtnet", + "children": [ + { + "name": "DTNET_reseau", + "layerType": "imagewms", + "url": "[localhost]/wms/private/[token]", + "index": 1, + "visible": true, + "opacity": 1, + "is_dynamic": false, + "is_filtered": false, + "version": "1.3.0", + "params": { + "LAYERS": "DTNET_Network", + "VERSION": "1.3.0", + "STYLES": "" + }, + "bo_queryable": true, + "business_objects": [ + { + "business_object_id": "DTNET_section", + "title": "Section", + "id_field": "section_id", + "database": "dtnet", + "schema": "s_dtnet", + "table": "v_section", + "sql_summary": "SELECT section_id AS \"Id\", network_id AS \"Réseau\", class_id AS \"Classe\", category_id AS \"Catégorie\", condition_id AS \"Etat\" FROM s_dtnet.v_section", + "sql_list": "SELECT section_id, network_id, class_id, category_id, condition_id FROM s_dtnet.v_section", + "sorted_by": "section_id", + "geom_column": "geom", + "search_field": "network_id", + "result_field": "section_id", + "search_use_strict": "false", + "event_id": "", + "index": 1, + "add_form_size": 1, + "edit_form_size": 1, + "display_form_size": 1, + "selection_buffer": "5", + "json_form": [], + "geom_type": "GEOMETRY", + "user_rights": [ + "SELECT" + ], + "list_fields": [ + "section_id", + "network_id", + "class_id", + "category_id", + "condition_id" + ] + } + ], + "layer_id": 26, + "select": true, + "displayedMenu": false + }, + { + "name": "DTNET_zone", + "layerType": "imagewms", + "url": "[localhost]/wms/private/[token]", + "index": 2, + "visible": false, + "opacity": 1, + "is_dynamic": false, + "is_filtered": false, + "version": "1.3.0", + "params": { + "LAYERS": "Dtnet_area", + "VERSION": "1.3.0", + "STYLES": "" + }, + "bo_queryable": true, + "business_objects": [ + { + "business_object_id": "DTNET_zone", + "title": "Zone", + "id_field": "area_id", + "database": "dtnet", + "schema": "s_dtnet", + "table": "v_area", + "sql_summary": "SELECT area_id AS \"ID\", name AS \"Nom\", comment AS \"Remarque\", type_id AS \"Type\", creationdate AS \"Date de création\" FROM s_dtnet.v_area", + "sql_list": "SELECT area_id, name, comment, type_id, creationdate FROM s_dtnet.v_area", + "sorted_by": "area_id", + "geom_column": "geom", + "search_field": "name", + "result_field": "comment", + "search_use_strict": "false", + "event_id": "", + "index": 1, + "add_form_size": 1, + "edit_form_size": 1, + "display_form_size": 1, + "selection_buffer": "5", + "json_form": [ + { + "display": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "area_id", + "label": "Id", + "nb_cols": 12, + "id": "area_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "name", + "label": "Nom", + "nb_cols": 6, + "id": "name_2_1" + }, + { + "type": "label", + "name": "creationdate", + "label": "Date de création", + "nb_cols": 6, + "id": "creationdate_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "validitybeginningdate", + "label": "Début de validité", + "nb_cols": 6, + "id": "validitybeginningdate_7_1" + }, + { + "type": "label", + "name": "validityendingdate", + "label": "Fin de validité", + "nb_cols": 6, + "id": "validityendingdate_8_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "comment", + "label": "Remarque", + "required": false, + "nb_cols": 12, + "id": "comment_3_1", + "size": 4, + "disabled": true + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "type_id", + "label": "Action associé", + "nb_cols": 12, + "id": "classmessage_6_1", + "default_value": "" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorname", + "label": "Nom du responsable", + "nb_cols": 12, + "id": "supervisorname_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisormail", + "label": "Mail du responsable", + "nb_cols": 6, + "id": "supervisormail_10_1" + }, + { + "type": "label", + "name": "supervisorphone", + "label": "Téléphone du responsable", + "nb_cols": 6, + "id": "supervisorphone_11_1" + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "area_id", + "name", + "comment", + "creationdate", + "type_id", + "validitybeginningdate", + "validityendingdate", + "supervisorname", + "supervisormail", + "supervisorphone" + ] + } + ] + } + }, + "search": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "name", + "label": "Nom", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "name_2_1" + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "validitybeginningdate", + "label": "Début de validité", + "nb_cols": 6, + "id": "validitybeginningdate_7_1" + }, + { + "type": "date", + "name": "validityendingdate", + "label": "Fin de validité", + "nb_cols": 6, + "id": "validityendingdate_8_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "comment", + "label": "Remarque", + "required": false, + "nb_cols": 12, + "id": "comment_3_1", + "size": 4 + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "type_id", + "label": "Action associé", + "required": false, + "nb_cols": 12, + "id": "classmessage_6_1", + "default_value": "", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "type_id", + "order_by": "type_id", + "id_key": "type_id", + "attributs": "type_id|type_id" + }, + "id_from": "classmessage_6_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisorname", + "label": "Nom du responsable", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "supervisorname_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisormail", + "label": "Mail du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisormail_10_1" + }, + { + "type": "text", + "name": "supervisorphone", + "label": "Téléphone du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisorphone_11_1" + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "name", + "comment", + "type_id", + "validitybeginningdate", + "validityendingdate", + "supervisorname", + "supervisormail", + "supervisorphone" + ] + } + ] + } + }, + "update": { + "name": "custom-form", + "title": "Zone", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "area_id", + "label": "Id", + "nb_cols": 12, + "id": "area_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "name", + "label": "Nom", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "name_2_1" + }, + { + "type": "label", + "name": "creationdate", + "label": "Date de création", + "nb_cols": 6, + "id": "creationdate_4_1" + } + ] + }, + { + "fields": [ + { + "type": "date", + "name": "validitybeginningdate", + "label": "Début de validité", + "nb_cols": 6, + "id": "validitybeginningdate_7_1" + }, + { + "type": "date", + "name": "validityendingdate", + "label": "Fin de validité", + "nb_cols": 6, + "id": "validityendingdate_8_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "comment", + "label": "Remarque", + "required": false, + "nb_cols": 12, + "id": "comment_3_1", + "size": 4 + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "type_id", + "label": "Action associé", + "required": false, + "nb_cols": 12, + "id": "classmessage_6_1", + "default_value": "A changer en select", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "type_id", + "order_by": "type_id", + "id_key": "type_id", + "attributs": "type_id|type_id" + }, + "id_from": "classmessage_6_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisorname", + "label": "Nom du responsable", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "supervisorname_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "supervisormail", + "label": "Mail du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisormail_10_1" + }, + { + "type": "text", + "name": "supervisorphone", + "label": "Téléphone du responsable", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "supervisorphone_11_1" + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "area_id", + "name", + "comment", + "creationdate", + "type_id", + "validitybeginningdate", + "validityendingdate", + "supervisorname", + "supervisormail", + "supervisorphone" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "Typearea", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "rt_typearea" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + } + } + } + ], + "geom_type": "POLYGON", + "user_rights": [ + "INSERT", + "SELECT", + "UPDATE", + "DELETE", + "TRUNCATE", + "REFERENCES", + "TRIGGER" + ], + "list_fields": [] + } + ], + "layer_id": 32, + "select": true, + "displayedMenu": false + } + ], + "visible": true + }, + { + "name": "Open Street Maps", + "children": [ + { + "name": "Open Street Maps", + "layerType": "osm", + "index": 0, + "visible": true, + "opacity": 1, + "is_dynamic": false, + "is_filtered": false, + "version": "1.3.0", + "bo_queryable": false, + "layer_id": 14, + "url": "https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png", + "select": true, + "displayedMenu": false + } + ], + "visible": true + } + ] + } + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "initEvent": "initDtnetDtdictMapForm()", + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "geom2", + "update_button" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "Nouveau": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "En cours de traitement": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "A valider": { + "dtnet_instructeur": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_signataire": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_exploitant": { + "geom2": "r", + "update_button": "rw" + } + }, + "A signer": { + "dtnet_instructeur": { + "update_button": "r", + "geom2": "rw" + }, + "dtnet_signataire": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_exploitant": { + "geom2": "r", + "update_button": "rw" + } + }, + "Non conforme": { + "dtnet_instructeur": { + "update_button": "", + "geom2": "" + }, + "dtnet_signataire": { + "update_button": "", + "geom2": "" + }, + "dtnet_exploitant": { + "geom2": "", + "update_button": "" + } + }, + "Réponse envoyée": { + "dtnet_instructeur": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_signataire": { + "update_button": "rw", + "geom2": "r" + }, + "dtnet_exploitant": { + "geom2": "r", + "update_button": "rw" + } + } + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_mail.js b/src/module_dtnet/module/forms/demande/demande_dtnet_mail.js new file mode 100755 index 0000000000000000000000000000000000000000..d188835e4cc144d047a12812b62ca20d61a6d4ea --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_mail.js @@ -0,0 +1,74 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; +// goog fonctionne en mode décompilé mais pas en mode compilé + +console.info("demande_dtnet_mail loaded --> your functions are ready"); +/*********************************************************************************** + demande_dtnet_dtdict Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + console.log(oFormRequired.scope_); + + var formaterString = "DD/MM/YYYY HH:mm"; + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".receptiondate", function (value) { + if (typeof(value) !== "undefined") { + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["receptiondate"] = moment(value).utcOffset(4,false).format(formaterString); + } + } + }) + ); +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_mail.json b/src/module_dtnet/module/forms/demande/demande_dtnet_mail.json new file mode 100755 index 0000000000000000000000000000000000000000..fe0f0f8fa72d64a1bb2018297912aae5b2067b31 --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_mail.json @@ -0,0 +1,385 @@ +{ + "display": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "mail_id", + "label": "DEMANDE_DTNET_MAIL_FORM_MAIL_ID", + "required": false, + "nb_cols": 6, + "id": "mail_id_1_1" + }, + { + "type": "label", + "name": "mail_uid", + "label": "DEMANDE_DTNET_MAIL_FORM_MAIL_UID", + "required": false, + "nb_cols": 6, + "id": "mail_uid_6_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "sender", + "label": "DEMANDE_DTNET_MAIL_FORM_SENDER", + "required": false, + "nb_cols": 6, + "id": "sender_4_1" + }, + { + "type": "label", + "name": "receiver", + "label": "DEMANDE_DTNET_MAIL_FORM_RECEIVER", + "required": false, + "nb_cols": 6, + "id": "receiver_5_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "networkmanagername", + "label": "DEMANDE_DTNET_MAIL_FORM_NETWORKMANAGERNAME", + "required": false, + "nb_cols": 6, + "id": "networkmanagername_7_1" + }, + { + "type": "label", + "name": "status_name", + "label": "DEMANDE_DTNET_MAIL_FORM_STATUS_NAME", + "required": false, + "nb_cols": 6, + "id": "status_name_8_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "receptiondate", + "label": "DEMANDE_DTNET_MAIL_FORM_RECEPTIONDATE", + "nb_cols": 12, + "id": "Element_0_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "subject", + "label": "DEMANDE_DTNET_MAIL_FORM_SUBJECT", + "required": false, + "nb_cols": 12, + "id": "subject_3_1" + } + ] + }, + { + "fields": [ + { + "type": "tinymce", + "name": "content", + "label": "DEMANDE_DTNET_MAIL_FORM_CONTENT", + "nb_cols": 12, + "id": "content_2_1", + "tinymceOptions": { + "language": "fr_FR" + }, + "nb_rows": 25 + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "mail_id", + "content", + "subject", + "sender", + "receiver", + "mail_uid", + "networkmanagername", + "status_name", + "display_button", + "receptiondate" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_instructeur": { + "mail_id": "", + "mail_uid": "", + "sender": "", + "receiver": "", + "networkmanagername": "", + "status_name": "", + "subject": "", + "content": "", + "display_button": "rw", + "receptiondate": "" + }, + "dtnet_signataire": { + "mail_id": "", + "mail_uid": "", + "sender": "", + "receiver": "", + "networkmanagername": "", + "status_name": "", + "subject": "", + "content": "", + "display_button": "rw", + "receptiondate": "" + }, + "dtnet_exploitant": { + "mail_id": "", + "mail_uid": "", + "sender": "", + "receiver": "", + "networkmanagername": "", + "status_name": "", + "receptiondate": "", + "subject": "", + "content": "", + "display_button": "rw" + } + }, + "Valide": { + "dtnet_instructeur": { + "mail_id": "r", + "mail_uid": "r", + "sender": "r", + "receiver": "r", + "networkmanagername": "r", + "status_name": "r", + "subject": "r", + "content": "r", + "display_button": "rw", + "receptiondate": "r" + }, + "dtnet_signataire": { + "mail_id": "r", + "mail_uid": "r", + "sender": "r", + "receiver": "r", + "networkmanagername": "r", + "status_name": "r", + "subject": "r", + "content": "r", + "display_button": "rw", + "receptiondate": "r" + }, + "dtnet_exploitant": { + "mail_id": "r", + "mail_uid": "r", + "sender": "r", + "receiver": "r", + "networkmanagername": "r", + "status_name": "r", + "receptiondate": "r", + "subject": "r", + "content": "r", + "display_button": "rw" + } + }, + "Non valide": { + "dtnet_instructeur": { + "mail_id": "r", + "mail_uid": "r", + "sender": "r", + "receiver": "r", + "networkmanagername": "r", + "status_name": "r", + "subject": "r", + "content": "r", + "display_button": "rw", + "receptiondate": "r" + }, + "dtnet_signataire": { + "mail_id": "r", + "mail_uid": "r", + "sender": "r", + "receiver": "r", + "networkmanagername": "r", + "status_name": "r", + "subject": "r", + "content": "r", + "display_button": "rw", + "receptiondate": "r" + }, + "dtnet_exploitant": { + "mail_id": "r", + "mail_uid": "r", + "sender": "r", + "receiver": "r", + "networkmanagername": "r", + "status_name": "r", + "receptiondate": "r", + "subject": "r", + "content": "r", + "display_button": "rw" + } + } + } + }, + "search": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "receiver", + "label": "DEMANDE_DTNET_MAIL_FORM_RECEIVER", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_0_1_1" + }, + { + "type": "text", + "name": "sender", + "label": "DEMANDE_DTNET_MAIL_FORM_SENDER", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_1_1_2" + }, + { + "type": "text", + "name": "subject", + "label": "DEMANDE_DTNET_MAIL_FORM_SUBJECT", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_2_1_3" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-xs", + "nb_cols": 12, + "name": "search_button", + "id": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "search_button", + "receiver", + "sender", + "subject" + ] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/demande/demande_dtnet_mail_mail_file_manager.json b/src/module_dtnet/module/forms/demande/demande_dtnet_mail_mail_file_manager.json new file mode 100755 index 0000000000000000000000000000000000000000..e64aa18fff5dad67461121dd3db13ff7fdd4679e --- /dev/null +++ b/src/module_dtnet/module/forms/demande/demande_dtnet_mail_mail_file_manager.json @@ -0,0 +1,220 @@ +{ + "display": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "mail_id", + "label": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_FORM_MAIL_ID", + "required": false, + "nb_cols": 12, + "id": "mail_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "foldermanager", + "name": "fileSelected", + "label": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_FORM_ATTACHEDFILESDIRECTORY", + "required": false, + "nb_cols": 12, + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + }, + "id": "fileSelected" + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "Element_0", + "nb_cols": 12, + "id": "Element_0_3_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "button", + "name": "form_submit", + "label": "DTNET_MAIL_FILE_MANAGER_SELECT", + "class": "btn-primary", + "event": "selectMailPdfFile()" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "mail_id", + "fileSelected", + "display_button", + "Element_0" + ] + } + ] + }, + "wab": { + "START": { + "dtnet_exploitant": { + "mail_id": "", + "fileSelected": "", + "Element_0": "", + "display_button": "" + }, + "dtnet_instructeur": { + "mail_id": "", + "fileSelected": "", + "Element_0": "", + "display_button": "" + }, + "dtnet_signataire": { + "mail_id": "", + "fileSelected": "", + "Element_0": "", + "display_button": "" + } + }, + "Valide": { + "dtnet_exploitant": { + "mail_id": "r", + "fileSelected": "rw", + "Element_0": "rw", + "display_button": "rw" + }, + "dtnet_instructeur": { + "mail_id": "r", + "fileSelected": "rw", + "Element_0": "rw", + "display_button": "rw" + }, + "dtnet_signataire": { + "mail_id": "r", + "fileSelected": "rw", + "Element_0": "rw", + "display_button": "rw" + } + }, + "Non valide": { + "dtnet_exploitant": { + "mail_id": "r", + "fileSelected": "r", + "Element_0": "", + "display_button": "rw" + }, + "dtnet_instructeur": { + "mail_id": "r", + "fileSelected": "r", + "Element_0": "", + "display_button": "rw" + }, + "dtnet_signataire": { + "mail_id": "r", + "fileSelected": "r", + "Element_0": "", + "display_button": "rw" + } + } + } + }, + "search": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_network.json b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_network.json new file mode 100755 index 0000000000000000000000000000000000000000..2153d1c04404ec55147b684586c0cb5845c38bd4 --- /dev/null +++ b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_network.json @@ -0,0 +1,1421 @@ +{ + "display": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "network_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID", + "nb_cols": 6, + "id": "network_id_1_1" + }, + { + "type": "label", + "name": "workcode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE", + "nb_cols": 6, + "id": "workcode_2_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "geodataversion", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_GEODATAVERSION", + "nb_cols": 6, + "id": "geodataversion_3_1" + }, + { + "type": "label", + "name": "loadingdate", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE", + "nb_cols": 6, + "id": "loadingdate_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "category_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID", + "nb_cols": 12, + "id": "category_id_19_1" + } + ] + },{ + "fields":[ + { + "type": "label", + "name": "sensitivity_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID", + "nb_cols": 4, + "id": "sensitivity_id_20_1" + }, + { + "type": "label", + "name": "condition_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID", + "nb_cols": 4, + "id": "condition_id_21_1" + }, + { + "type": "label", + "name": "positioning_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID", + "nb_cols": 4, + "id": "positioning_id_22_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGER_ID", + "nb_cols": 6, + "id": "networkmanager_id_23_1" + }, + { + "type": "label", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGERNAME", + "nb_cols": 6, + "id": "networkmanagername_32_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:6203" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:6204" + } + ] + }, + "name": "mainnetworkconnection", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_MAINNETWORKCONNECTION", + "required": false, + "nb_cols": 12, + "disabled" : true, + "id": "mainnetworkconnection_5_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "caption", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTION", + "nb_cols": 12, + "id": "caption_5_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "captionfile_link", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTIONFILE_LINK", + "nb_cols": 12, + "id": "Element_0_7_1", + "target": "_blank" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "detailedmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE", + "nb_cols": 6, + "id": "detailedmapoutputscale_7_1" + }, + { + "type": "label", + "name": "situationmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE", + "nb_cols": 6, + "id": "situationmapoutputscale_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "detailedmapwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL", + "nb_cols": 12, + "id": "detailedmapwmsurl_8_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "detailedmapbackgroundwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL_BACKGROUND", + "nb_cols": 12, + "id": "Element_0_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "situationmapwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL", + "nb_cols": 12, + "id": "situationmapwmsurl_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "situationmapbackgroundwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL_BACKGROUND", + "nb_cols": 12, + "id": "Element_1_12_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "securityrecommendation", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYRECOMMENDATION", + "required": false, + "nb_cols": 12, + "id": "securityrecommendation_13_1", + "size": 5 + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "rubriquesguide", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_RUBRIQUESGUIDE", + "nb_cols": 12, + "id": "rubriquesguide_26_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "securitymeasures", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYMEASURES", + "nb_cols": 12, + "id": "securitymeasures_28_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "securitysystem", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYSYSTEM", + "nb_cols": 12, + "id": "securitysystem_29_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:6211" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:6212" + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 12, + "id": "isautomode_31_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "ziobuffer", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ZIOBUFFER", + "nb_cols": 12, + "id": "ziobuffer_33_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "answerforunsensitiveatu", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ANSWERFORUNSENSITIVEATU", + "nb_cols": 12, + "id": "Element_0_26_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true, + "$$hashKey": "object:6219" + }, + { + "label": "Non", + "value": false, + "$$hashKey": "object:6220" + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "network_id", + "workcode", + "geodataversion", + "caption", + "mainnetworkconnection", + "detailedmapoutputscale", + "detailedmapwmsurl", + "situationmapoutputscale", + "situationmapwmsurl", + "securityrecommendation", + "category_id", + "sensitivity_id", + "condition_id", + "positioning_id", + "networkmanager_id", + "rubriquesguide", + "securitymeasures", + "securitysystem", + "isautomode", + "networkmanagername", + "ziobuffer", + "answerforunsensitiveatu", + "update_button", + "captionfile_link", + "loadingdate", + "detailedmapbackgroundwmsurl", + "situationmapbackgroundwmsurl" + ] + } + ] + } + }, + "search": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "network_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_2_1" + }, + { + "type": "text", + "name": "workcode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_1_2" + }, + { + "type": "date", + "name": "loadingdate_after", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE_AFTER", + "nb_cols": 3, + "id": "Element_1_1_3" + }, + { + "type": "date", + "name": "loadingdate_before", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE_BEFORE", + "nb_cols": 3, + "id": "Element_1_1_4" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "category_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID", + "required": false, + "nb_cols": 3, + "id": "Element_1_2_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "category_id", + "order_by": "category_id", + "id_key": "category_id", + "attributs": "category_id|category_id" + }, + "id_from": "Element_1_2_1_from" + }, + { + "type": "select", + "name": "sensitivity_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID", + "required": false, + "nb_cols": 3, + "id": "Element_2_2_2", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "sensitivity_id", + "order_by": "sensitivity_id", + "id_key": "sensitivity_id", + "attributs": "sensitivity_id|sensitivity_id" + }, + "id_from": "Element_2_2_2_from" + }, + { + "type": "select", + "name": "condition_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID", + "required": false, + "nb_cols": 3, + "id": "Element_3_2_3", + "datasource": { + "datasource_id": "datasource_4", + "sort_order": "ASC", + "distinct": "true", + "label_key": "condition_id", + "order_by": "condition_id", + "id_key": "condition_id", + "attributs": "condition_id|condition_id" + }, + "id_from": "Element_3_2_3_from" + }, + { + "type": "select", + "name": "positioning_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID", + "required": false, + "nb_cols": 3, + "id": "Element_4_2_4", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "positioning_id", + "order_by": "positioning_id", + "id_key": "positioning_id", + "attributs": "positioning_id|positioning_id" + }, + "id_from": "Element_4_2_4_from" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-xs", + "nb_cols": 12, + "name": "search_button", + "id": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "search_button", + "network_id", + "workcode", + "loadingdate_after", + "loadingdate_before", + "category_id", + "sensitivity_id", + "condition_id", + "positioning_id" + ] + } + ] + } + }, + "insert": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "network_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID", + "required": true, + "pattern": "^[a-zA-Z0-9_-]{1,10}$", + "nb_cols": 6, + "id": "Element_0_2_1" + }, + { + "type": "text", + "name": "workcode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE", + "nb_cols": 6, + "id": "workcode_2_1", + "required": true + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "category_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID", + "nb_cols": 3, + "id": "category_id_19_1", + "id_from": "category_id_19_1_from", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "category_id", + "order_by": "category_id", + "id_key": "code", + "attributs": "category_id|code" + }, + "required": true + }, + { + "type": "select", + "name": "sensitivity_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID", + "nb_cols": 3, + "id": "sensitivity_id_20_1", + "id_from": "sensitivity_id_20_1_from", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "sensitivity_id", + "order_by": "sensitivity_id", + "id_key": "sensitivity_id", + "attributs": "sensitivity_id|sensitivity_id" + }, + "required": true + }, + { + "type": "select", + "name": "condition_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID", + "nb_cols": 3, + "id": "condition_id_21_1", + "id_from": "condition_id_21_1_from", + "datasource": { + "datasource_id": "datasource_4", + "sort_order": "ASC", + "distinct": "true", + "label_key": "condition_id", + "order_by": "condition_id", + "id_key": "condition_id", + "attributs": "condition_id|condition_id" + }, + "required": true + }, + { + "type": "select", + "name": "positioning_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID", + "nb_cols": 3, + "id": "positioning_id_22_1", + "id_from": "positioning_id_22_1_from", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "positioning_id", + "order_by": "positioning_id", + "id_key": "positioning_id", + "attributs": "positioning_id|positioning_id" + }, + "required": true + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true + }, + { + "label": "non", + "value": false + } + ] + }, + "name": "mainnetworkconnection", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_MAINNETWORKCONNECTION", + "required": false, + "nb_cols": 12, + "id": "mainnetworkconnection_5_1", + "default_value": false + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "caption", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTION", + "required": true, + "nb_cols": 6, + "id": "caption_5_1" + }, + { + "type": "upload", + "name": "captionfile", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTIONFILE", + "required": false, + "nb_cols": 6, + "id": "captionfile_5_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "detailedmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE", + "required": false, + "nb_cols": 6, + "id": "detailedmapoutputscale_7_1", + "datasource": { + "datasource_id": "datasource_6", + "sort_order": "ASC", + "distinct": "true", + "label_key": "scale_id", + "order_by": "scale_id", + "id_key": "scale_id", + "attributs": "scale_id|scale_id" + }, + "id_from": "detailedmapoutputscale_7_1" + }, + { + "type": "integer", + "name": "situationmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE", + "required": false, + "nb_cols": 6, + "id": "situationmapoutputscale_9_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "securityrecommendation", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYRECOMMENDATION", + "required": false, + "nb_cols": 12, + "id": "securityrecommendation_13_1", + "size": 5 + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "rubriquesguide", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_RUBRIQUESGUIDE", + "required": false, + "nb_cols": 12, + "id": "rubriquesguide_26_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "securitymeasures", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYMEASURES", + "required": false, + "nb_cols": 12, + "id": "securitymeasures_28_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "securitysystem", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYSYSTEM", + "required": false, + "nb_cols": 12, + "id": "securitysystem_29_1", + "datasource": { + "datasource_id": "datasource_5", + "sort_order": "ASC", + "distinct": "true" + }, + "id_from": "securitysystem_29_1_from" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true + }, + { + "label": "non", + "value": false + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 12, + "id": "isautomode_31_1", + "default_value": true + } + ] + }, + { + "fields": [ + { + "type": "integer", + "name": "ziobuffer", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ZIOBUFFER", + "required": false, + "nb_cols": 12, + "id": "ziobuffer_33_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "answerforunsensitiveatu", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ANSWERFORUNSENSITIVEATU", + "nb_cols": 12, + "id": "Element_0_26_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + }, + "default_value": false + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_CREATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "workcode", + "mainnetworkconnection", + "detailedmapoutputscale", + "situationmapoutputscale", + "securityrecommendation", + "category_id", + "sensitivity_id", + "condition_id", + "positioning_id", + "rubriquesguide", + "securitymeasures", + "securitysystem", + "isautomode", + "ziobuffer", + "update_button", + "answerforunsensitiveatu", + "network_id", + "caption", + "captionfile" + ] + } + ] + } + }, + "update": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "network_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID", + "nb_cols": 6, + "id": "network_id_1_1" + }, + { + "type": "label", + "name": "workcode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE", + "nb_cols": 6, + "id": "workcode_2_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "geodataversion", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_GEODATAVERSION", + "nb_cols": 6, + "id": "geodataversion_3_1" + }, + { + "type": "label", + "name": "loadingdate", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE", + "nb_cols": 6, + "id": "loadingdate_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "category_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID", + "nb_cols": 12, + "id": "category_id_19_1" + } + ] + },{ + "fields":[ + { + "type": "label", + "name": "sensitivity_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID", + "nb_cols": 4, + "id": "sensitivity_id_20_1" + }, + { + "type": "label", + "name": "condition_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID", + "nb_cols": 4, + "id": "condition_id_21_1" + }, + { + "type": "label", + "name": "positioning_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID", + "nb_cols": 4, + "id": "positioning_id_22_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGER_ID", + "nb_cols": 6, + "id": "networkmanager_id_23_1" + }, + { + "type": "label", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGERNAME", + "nb_cols": 6, + "id": "networkmanagername_32_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true + }, + { + "label": "non", + "value": false + } + ] + }, + "name": "mainnetworkconnection", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_MAINNETWORKCONNECTION", + "required": false, + "nb_cols": 12, + "id": "mainnetworkconnection_5_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "caption", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTION", + "required": true, + "nb_cols": 12, + "id": "caption_5_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "captionfile_link", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTIONFILE_LINK", + "nb_cols": 6, + "id": "Element_0_7_1", + "target": "_blank" + }, + { + "type": "upload", + "name": "captionfile", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CAPTIONFILE", + "required": false, + "nb_cols": 6, + "id": "captionfile_5_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "detailedmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE", + "required": false, + "nb_cols": 6, + "id": "detailedmapoutputscale_7_1", + "datasource": { + "datasource_id": "datasource_6", + "sort_order": "ASC", + "distinct": "true", + "label_key": "scale_id", + "order_by": "scale_id", + "id_key": "scale_id", + "attributs": "scale_id|scale_id" + }, + "id_from": "detailedmapoutputscale_7_1" + }, + { + "type": "integer", + "name": "situationmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE", + "required": false, + "nb_cols": 6, + "id": "situationmapoutputscale_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "detailedmapwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL", + "required": false, + "nb_cols": 12, + "id": "detailedmapwmsurl_8_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "detailedmapbackgroundwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL_BACKGROUND", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "Element_0_10_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "situationmapwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL", + "required": false, + "nb_cols": 12, + "id": "situationmapwmsurl_10_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "situationmapbackgroundwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL_BACKGROUND", + "required": false, + "pattern": "", + "nb_cols": 12, + "id": "Element_1_12_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "securityrecommendation", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYRECOMMENDATION", + "required": false, + "nb_cols": 12, + "id": "securityrecommendation_13_1", + "size": 5 + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "rubriquesguide", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_RUBRIQUESGUIDE", + "required": false, + "nb_cols": 12, + "id": "rubriquesguide_26_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "securitymeasures", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYMEASURES", + "required": false, + "nb_cols": 12, + "id": "securitymeasures_28_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "securitysystem", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYSYSTEM", + "required": false, + "nb_cols": 12, + "id": "securitysystem_29_1", + "datasource": { + "datasource_id": "datasource_5", + "sort_order": "ASC", + "distinct": "true" + }, + "id_from": "securitysystem_29_1_from" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true + }, + { + "label": "non", + "value": false + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 12, + "id": "isautomode_31_1" + } + ] + }, + { + "fields": [ + { + "type": "integer", + "name": "ziobuffer", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ZIOBUFFER", + "required": false, + "nb_cols": 12, + "id": "ziobuffer_33_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "answerforunsensitiveatu", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ANSWERFORUNSENSITIVEATU", + "nb_cols": 12, + "id": "Element_0_26_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "network_id", + "workcode", + "geodataversion", + "caption", + "captionfile", + "mainnetworkconnection", + "detailedmapoutputscale", + "detailedmapwmsurl", + "situationmapoutputscale", + "situationmapwmsurl", + "securityrecommendation", + "category_id", + "sensitivity_id", + "condition_id", + "positioning_id", + "networkmanager_id", + "rubriquesguide", + "securitymeasures", + "securitysystem", + "isautomode", + "networkmanagername", + "ziobuffer", + "answerforunsensitiveatu", + "update_button", + "captionfile_link", + "loadingdate", + "detailedmapbackgroundwmsurl", + "situationmapbackgroundwmsurl" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "category", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "rt_category" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + }, + "datasource_2": { + "type": "web_service", + "dataType": "tableValue", + "name": "positionning", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_positioning" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_2" + }, + "datasource_3": { + "type": "web_service", + "dataType": "tableValue", + "name": "sensitivity", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_sensitivity" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_3" + }, + "datasource_4": { + "type": "web_service", + "dataType": "tableValue", + "name": "condition", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_condition" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_4" + }, + "datasource_5": { + "type": "object", + "dataType": "text", + "name": "dispositif", + "description": "", + "options": [ + "", + "Voir la liste des dispositifs en place dans le document joint", + "Voir la localisation sur le plan joint", + "Aucun dans l'emprise" + ], + "id": "datasource_5" + }, + "datasource_6": { + "type": "web_service", + "dataType": "tableValue", + "name": "scale", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_scale" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_6" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_network_network_filemanager.json b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_network_network_filemanager.json new file mode 100755 index 0000000000000000000000000000000000000000..9a8854896438bbc0b8d2e1f3342dbdcc6ce0f664 --- /dev/null +++ b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_network_network_filemanager.json @@ -0,0 +1,259 @@ +{ + "display": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "network_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "network_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "pdforder", + "update_button", + "network_id" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "network_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID" + }, + { + "type": "hidden", + "name": "cmd", + "nb_cols": 12, + "id": "Element_0_12_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_CMD" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "network_file", + "size": 20, + "loadDataFunction": "getDtNetTree()", + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": true, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": true, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "PDFRemover", + "nb_cols": 12, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDF_RM", + "class": "btn-primary", + "event": "dtdictPdfFile('rm')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "upload", + "name": "pdfadd", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFADD", + "nb_cols": 8, + "id": "Element_0_3_1" + }, + { + "type": "button", + "name": "PDFAdder", + "nb_cols": 4, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDF_ADD", + "class": "btn-primary button-padding", + "event": "dtdictPdfFile('add')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "reloadDtNetTree()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "pdforder", + "pdfadd", + "PDFAdder", + "cmd", + "PDFRemover", + "update_button", + "network_id" + ] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_networkmanager.json b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_networkmanager.json new file mode 100755 index 0000000000000000000000000000000000000000..c320357c16e258daf1955bae891f4aea1cd49fff --- /dev/null +++ b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_networkmanager.json @@ -0,0 +1,903 @@ +{ + "display": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID", + "nb_cols": 12, + "id": "networkmanager_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "siretnumber", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER", + "nb_cols": 12, + "id": "siretnumber_19_1" + }, + { + "type": "label", + "name": "fullname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME", + "nb_cols": 6, + "id": "fullname_15_1" + }, + { + "type": "label", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME", + "nb_cols": 6, + "id": "networkmanagername_2_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "zipcode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE", + "nb_cols": 4, + "id": "zipcode_11_1" + }, + { + "type": "label", + "name": "city", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY", + "nb_cols": 4, + "id": "city_12_1" + }, + { + "type": "label", + "name": "otherdetailsaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS", + "nb_cols": 4, + "id": "otherdetailsaddress_10_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "address", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS", + "required": false, + "nb_cols": 12, + "id": "address_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "phone", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE", + "nb_cols": 6, + "id": "phone_13_1" + }, + { + "type": "label", + "name": "fax", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX", + "nb_cols": 6, + "id": "fax_14_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "contactmail", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL", + "nb_cols": 6, + "id": "contactmail_6_1" + }, + { + "type": "label", + "name": "contactname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME", + "nb_cols": 6, + "id": "contactname_8_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "receiptaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS", + "nb_cols": 6, + "id": "receiptaddress_3_1" + }, + { + "type": "label", + "name": "password", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD", + "nb_cols": 6, + "id": "password_5_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE", + "value": true + }, + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE", + "value": false + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 12, + "id": "isautomode_7_1", + "disabled":true + } + ] + }, + { + "fields": [ + { + "type": "imageurl", + "name": "icon", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 225, + "height": 225, + "id": "icon_4_1" + }, + { + "type": "imageurl", + "name": "signaturefile", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 75, + "height": 15, + "id": "signaturefile_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "extent", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT", + "nb_cols": 12, + "id": "extent_17_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "outputcoordsys", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS", + "nb_cols": 12, + "id": "outputcoordsys_18_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "filesupervisor", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR", + "nb_cols": 4, + "id": "Element_0_12_1" + }, + { + "type": "label", + "name": "filesupervisorservice", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE", + "nb_cols": 4, + "id": "Element_1_12_2" + }, + { + "type": "label", + "name": "filesupervisorphone", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE", + "nb_cols": 4, + "id": "Element_2_12_3" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "signatoryname", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME", + "nb_cols": 4, + "id": "Element_3_13_1" + }, + { + "type": "label", + "name": "distancemax", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX", + "nb_cols": 4, + "id": "Element_4_13_2" + }, + { + "type": "label", + "name": "phoneifdamage", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE", + "nb_cols": 4, + "id": "Element_5_13_3" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "isshutdownpossible", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE", + "nb_cols": 6, + "id": "Element_6_14_1", + "options": { + "choices": [ + { + "label": "HT_POSSIBLE", + "value": true + }, + { + "label": "HT_IMPOSSIBLE", + "value": false + } + ] + }, + "default_value": false, + "disabled":true + }, + { + "type": "radio", + "name": "withoutnetworkdata", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WITHOUTNETWORKDATA", + "nb_cols": 6, + "id": "Element_0_14_1", + "disabled":true, + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "double_select", + "name": "manualkindofwork", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK", + "required": false, + "nb_cols": 12, + "id": "Element_0_15_1", + "name_to": "manualkindofwork", + "name_from": "manualkindofwork_from", + "size": 5, + "id_from": "Element_0_15_1_from", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true" + }, + "label_from": "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK_FROM", + "label_to": "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK_TO" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "networkmanagername", + "receiptaddress", + "icon", + "password", + "receiptaddress", + "isautomode", + "contactname", + "address", + "otherdetailsaddress", + "zipcode", + "city", + "phone", + "fax", + "fullname", + "signaturefile", + "extent", + "outputcoordsys", + "siretnumber", + "update_button", + "filesupervisor", + "filesupervisorservice", + "filesupervisorphone", + "signatoryname", + "distancemax", + "phoneifdamage", + "isshutdownpossible", + "withoutnetworkdata" + ] + } + ] + } + }, + "search": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "receiptaddress", + "update_button" + ] + } + ] + } + }, + "update": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID", + "nb_cols": 12, + "id": "networkmanager_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "siretnumber", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER", + "required": false, + "nb_cols": 12, + "id": "siretnumber_19_1" + }, + { + "type": "text", + "name": "fullname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME", + "required": false, + "nb_cols": 6, + "id": "fullname_15_1" + }, + { + "type": "text", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME", + "required": false, + "nb_cols": 6, + "id": "networkmanagername_2_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "zipcode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE", + "required": false, + "nb_cols": 4, + "id": "zipcode_11_1" + }, + { + "type": "text", + "name": "city", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY", + "required": false, + "nb_cols": 4, + "id": "city_12_1" + }, + { + "type": "text", + "name": "otherdetailsaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS", + "required": false, + "nb_cols": 4, + "id": "otherdetailsaddress_10_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "address", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS", + "required": false, + "nb_cols": 12, + "id": "address_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "phone", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE", + "required": false, + "nb_cols": 6, + "id": "phone_13_1" + }, + { + "type": "text", + "name": "fax", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX", + "required": false, + "nb_cols": 6, + "id": "fax_14_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "contactmail", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL", + "required": false, + "nb_cols": 6, + "id": "contactmail_6_1" + }, + { + "type": "text", + "name": "contactname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME", + "required": false, + "nb_cols": 6, + "id": "contactname_8_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "receiptaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS", + "required": false, + "nb_cols": 6, + "id": "receiptaddress_3_1" + }, + { + "type": "text", + "name": "password", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD", + "required": false, + "nb_cols": 6, + "id": "password_5_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE", + "value": true, + "$$hashKey": "object:2035" + }, + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE", + "value": false, + "$$hashKey": "object:2036" + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 12, + "id": "isautomode_7_1" + } + ] + }, + { + "fields": [ + { + "type": "image_wsdata", + "name": "icon", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 225, + "height": 225, + "id": "icon_4_1" + }, + { + "type": "image_wsdata", + "name": "signaturefile", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 150, + "height": 30, + "id": "signaturefile_4_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "extent", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT", + "required": false, + "nb_cols": 12, + "id": "extent_17_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "outputcoordsys", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS", + "required": false, + "nb_cols": 12, + "id": "outputcoordsys_18_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "epsg", + "order_by": "epsg", + "id_key": "coordsys_id", + "attributs": "coordsys_id|epsg" + }, + "id_from": "outputcoordsys_18_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "filesupervisor", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_0_12_1" + }, + { + "type": "text", + "name": "filesupervisorservice", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_1_12_2" + }, + { + "type": "text", + "name": "filesupervisorphone", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_2_12_3" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "signatoryname", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_3_13_1" + }, + { + "type": "text", + "name": "distancemax", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_4_13_2" + }, + { + "type": "text", + "name": "phoneifdamage", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_5_13_3" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "isshutdownpossible", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE", + "nb_cols": 6, + "id": "Element_6_14_1", + "options": { + "choices": [ + { + "label": "HT_POSSIBLE", + "value": true, + "$$hashKey": "object:2043" + }, + { + "label": "HT_IMPOSSIBLE", + "value": false, + "$$hashKey": "object:2044" + } + ] + }, + "default_value": false + }, + { + "type": "radio", + "name": "withoutnetworkdata", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WITHOUTNETWORKDATA", + "nb_cols": 6, + "id": "Element_0_14_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true, + "$$hashKey": "object:2051" + }, + { + "label": "Non", + "value": false, + "$$hashKey": "object:2052" + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "double_select", + "name": "manualkindofwork", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK", + "required": false, + "nb_cols": 12, + "id": "Element_0_15_1", + "name_to": "manualkindofwork", + "name_from": "manualkindofwork_from", + "size": 5, + "id_from": "Element_0_15_1_from", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true" + }, + "label_from": "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK_FROM", + "label_to": "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK_TO" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "networkmanagername", + "receiptaddress", + "icon", + "password", + "receiptaddress", + "isautomode", + "contactname", + "address", + "otherdetailsaddress", + "zipcode", + "city", + "phone", + "fax", + "fullname", + "signaturefile", + "extent", + "outputcoordsys", + "siretnumber", + "update_button", + "filesupervisor", + "filesupervisorservice", + "filesupervisorphone", + "signatoryname", + "distancemax", + "phoneifdamage", + "isshutdownpossible", + "manualkindofwork", + "contactmail", + "withoutnetworkdata" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "coordsys", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_coordsys" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + }, + "datasource_2": { + "type": "object", + "dataType": "text", + "name": "kindofwork", + "description": "", + "options": [ + "Construction|CNS", + "Construction spéciale (ERP, IGH, ICPE)|CSP", + "Curage de fossés/de berges|CUR", + "Décapage, profilage de chaussées|DEC", + "Démolition|DEM", + "Drainage, sous-solage|DRA", + "Emploi de source de chaleur|ESC", + "Forage horizontal ou oblique|FOH", + "Forage vertical / Carottage|FOV", + "Pose ou réparation de réseaux de chaleur|CHA", + "Pose ou réparation de réseaux souterrains (hors réseaux de chaleur)|SOU", + "Remblaiement|RBL", + "Terrassement, fouille, excavation|TER", + "Autres|OTR" + ], + "id": "datasource_2" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_networkmanager_nm_file_manager.json b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_networkmanager_nm_file_manager.json new file mode 100755 index 0000000000000000000000000000000000000000..333af05de7c9ee11127b4c9a9fe7fb6f0eaf7d9f --- /dev/null +++ b/src/module_dtnet/module/forms/exploitant/exploitant_dtnet_networkmanager_nm_file_manager.json @@ -0,0 +1,248 @@ +{ + "display": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "nm_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "pdforder", + "update_button" + ] + } + ] + } + }, + "search": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [] + }, + "insert": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + }, + { + "type": "hidden", + "name": "cmd", + "nb_cols": 12, + "id": "Element_0_12_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_CMD" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "nm_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": true, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": true, + "enableLinks": true, + "data": "getDtNetTree()" + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "name": "PDFRemover", + "nb_cols": 12, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDF_RM", + "class": "btn-primary", + "event": "dtdictPdfFile('rm')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "upload", + "name": "pdfadd", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFADD", + "nb_cols": 8, + "id": "Element_0_3_1" + }, + { + "type": "button", + "name": "PDFAdder", + "nb_cols": 4, + "id": "Element_0_11_1", + "class": "btn-ungroup btn-group-sm", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDF_ADD", + "class": "btn-primary button-padding", + "event": "dtdictPdfFile('add')" + } + ] + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "reloadDtNetTree()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "pdforder", + "PDFRemover", + "pdfadd", + "PDFAdder", + "update_button" + ] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict.js b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict.js new file mode 100755 index 0000000000000000000000000000000000000000..5ae7ee6bb8df69fb9929f515d5a63be2bc8886bf --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict.js @@ -0,0 +1,113 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; +// goog fonctionne en mode décompilé mais pas en mode compilé + +console.info("demande_dtnet_unr_dtdict loaded --> your functions are ready"); +/*********************************************************************************** + demande_dtnet_dtdict Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + console.log(oFormRequired.scope_); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".dtdicttype", function (value) { + if (typeof(value) !== "undefined") { + angular.element("#siretdt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#contactnamedt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#faxdt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#maildt").scope().field["visible"] = (value === "DDC") ? true : false; + angular.element("#addressdt").scope().field["visible"] = (value === "DDC") ? true : false; + } + }) + ); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".status_name", function (value) { + if (typeof(value) !== "undefined") { + angular.element("#destination").scope().field["visible"] = (value === "Réponse envoyée") ? true : false; + } + }) + ); + + var formaterString = "DD/MM/YYYY HH:mm"; + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".creationdate", function (value) { + if (typeof(value) !== "undefined") { + console.log(value); + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["creationdate"] = moment(value).format(formaterString); + } + } + }) + ); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".dtdictdate", function (value) { + if (typeof(value) !== "undefined") { + console.log(value); + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["dtdictdate"] = moment(value).format(formaterString); + } + } + }) + ); + + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".mailreceptiondate", function (value) { + if (typeof(value) !== "undefined") { + console.log(value); + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["mailreceptiondate"] = moment(value).format(formaterString); + } + } + }) + ); +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict.json new file mode 100755 index 0000000000000000000000000000000000000000..a8553b0e08f73d4826664f193df76581ebac59ec --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict.json @@ -0,0 +1,708 @@ +{ + "display": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "dtdict_id", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID", + "nb_cols": 12, + "id": "dtdict_id" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "creationdate", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE", + "nb_cols": 6, + "id": "creationdate" + }, + { + "type": "label", + "name": "status_name", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME", + "nb_cols": 6, + "id": "status_name", + "default_value": "Nouveau" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "dtdictdate", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE", + "nb_cols": 6, + "id": "dtdictdate" + }, + { + "type": "label", + "name": "responsedate", + "label": "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE", + "nb_cols": 6, + "id": "responsedate" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "dtdicttype", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE", + "nb_cols": 6, + "id": "dtdicttype" + }, + { + "type": "label", + "name": "serviceconsultationnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER", + "nb_cols": 6, + "id": "serviceconsultationnumber" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "caller", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLER", + "nb_cols": 6, + "id": "caller" + }, + { + "type": "label", + "name": "callersiretnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER", + "nb_cols": 6, + "id": "callersiretnumber" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "pdfrequestfile", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFREQUESTFILE", + "nb_cols": 6, + "id": "pdfrequestfile" + } + ] + },{ + "fields": [ + { + "type": "linkurl", + "name": "xmlrequestfile", + "label": "DEMANDE_DTNET_DTDICT_FORM_XMLREQUESTFILE", + "nb_cols": 6, + "id": "xmlrequestfile" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "responsefile", + "label": "DEMANDE_DTNET_DTDICT_FORM_RESPONSEFILE", + "nb_cols": 12, + "id": "responsefile" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "workaddress", + "label": "DEMANDE_DTNET_DTDICT_FORM_WORKADRESS", + "nb_cols": 12, + "id": "workaddress" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorname", + "label": "Responsable", + "nb_cols": 12, + "id": "supervisorname" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "supervisorphone", + "label": "Téléphone responsable", + "nb_cols": 6, + "id": "supervisorphone" + }, + { + "type": "label", + "name": "supervisormail", + "label": "Mail du responsable", + "nb_cols": 6, + "id": "supervisormail" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "siretdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_SIRETDT", + "nb_cols": 6, + "id": "siretdt" + }, + { + "type": "label", + "name": "contactnamedt", + "label": "DEMANDE_DTNET_DTDICT_FORM_CONTACTNAMEDT", + "nb_cols": 6, + "id": "contactnamedt" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "faxdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_FAXDT", + "nb_cols": 6, + "id": "faxdt" + }, + { + "type": "label", + "name": "maildt", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAILDT", + "nb_cols": 6, + "id": "maildt" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "addressdt", + "label": "DEMANDE_DTNET_DTDICT_FORM_ADRESSDT", + "nb_cols": 12, + "id": "addressdt" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "reminder", + "label": "DEMANDE_DTNET_DTDICT_FORM_REMINDER", + "nb_cols": 4, + "id": "reminder", + "disabled" : true, + "options": { + "choices": [ + { + "label": "Oui", + "value": true, + "$$hashKey": "object:1867" + }, + { + "label": "Non", + "value": false, + "$$hashKey": "object:1868" + } + ] + } + }, + { + "type": "label", + "name": "mailreceptiondate", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAILRECEPTIONDATE", + "nb_cols": 4, + "id": "mailreceptiondate" + }, + { + "type": "label", + "name": "receptiontype", + "label": "DEMANDE_DTNET_DTDICT_FORM_RECEPTIONTYPE", + "nb_cols": 4, + "id": "receptiontype" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "destination", + "label": "DEMANDE_DTNET_DTDICT_FORM_DESTINATION", + "nb_cols": 12, + "id": "destination" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "dtdict_id", + "dtdictdate", + "serviceconsultationnumber", + "dtdicttype", + "caller", + "workaddress", + "responsedate", + "pdfrequestfile", + "responsefile", + "xmlrequestfile", + "creationdate", + "status_name", + "callersiretnumber", + "update_button", + "supervisorname", + "supervisorphone", + "supervisormail", + "siretdt", + "contactnamedt", + "faxdt", + "maildt", + "addressdt", + "receptiontype", + "reminder", + "mailreceptiondate", + "destination" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_SEARCH", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "serviceconsultationnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER", + "nb_cols": 3, + "id": "serviceconsultationnumber" + }, + { + "type": "text", + "name": "caller", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLER", + "nb_cols": 3, + "id": "caller" + }, + { + "type": "text", + "name": "callersiretnumber", + "label": "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER", + "nb_cols": 3, + "id": "callersiretnumber" + }, + { + "type": "select", + "name": "networkmanagername", + "label": "SUPERVISION_DTNET_DTNET_UNR_DTDICT_FORM_NETWORKMANAGERNAME", + "required": false, + "nb_cols": 3, + "id": "networkmanagername", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "networkmanagername", + "order_by": "networkmanagername", + "id_key": "networkmanagername", + "attributs": "networkmanagername|networkmanagername" + } + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "dtdicttype", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE", + "nb_cols": 4, + "id": "dtdicttype", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true" + }, + "id_from": "dtdicttype_4_1_from" + }, + { + "type": "date", + "name": "creationdate_after", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE_AFTER", + "nb_cols": 4, + "id": "creationdate_after", + "comparator": { + "column": "creationdate", + "compare_operator": ">=" + } + }, + { + "type": "date", + "name": "creationdate_before", + "label": "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE_BEFORE", + "nb_cols": 4, + "id": "creationdate_before", + "comparator": { + "column": "creationdate", + "compare_operator": "<=" + } + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "networkintersected", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NETWORKINTERSECTED", + "required": false, + "nb_cols": 4, + "id": "networkintersected", + "comparator": { + "column": "networkintersected", + "compare_operator": "LIKE", + "formater": "%<VALUE_TO_REPLACE>%" + }, + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "id_key": "network_id", + "label_key": "caption", + "attributs": "network_id|caption", + "order_by": "caption" + }, + "id_from": "Element_0_3_1_from" + }, + { + "type": "date", + "name": "dtdictdate_after", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE_AFTER", + "nb_cols": 4, + "id": "dtdictdate_after", + "comparator": { + "column": "dtdictdate", + "compare_operator": ">=" + } + }, + { + "type": "date", + "name": "dtdictdate_before", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE_BEFORE", + "nb_cols": 4, + "id": "dtdictdate_before", + "comparator": { + "column": "dtdictdate", + "compare_operator": "<=" + } + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "maincity", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAINCITY", + "required": false, + "nb_cols": 4, + "id": "maincity", + "comparator": { + "column": "maincity", + "compare_operator": "LIKE", + "compare_operator_options":{ + "case_insensitive": true + }, + "formater": "%<VALUE_TO_REPLACE>%" + } + },{ + "type": "text", + "name": "maincityzipcode", + "label": "DEMANDE_DTNET_DTDICT_FORM_MAINCITYZIPCODE", + "required": false, + "nb_cols": 4, + "id": "maincityzipcode", + "comparator": { + "column": "maincityzipcode", + "compare_operator": "LIKE", + "formater": "%<VALUE_TO_REPLACE>%" + } + }, + { + "type": "select", + "name": "status_name", + "label": "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME", + "required": false, + "nb_cols": 4, + "id": "Element_0_4_3", + "datasource": { + "datasource_id": "datasource_5", + "sort_order": "ASC", + "distinct": "true", + "label_key": "name", + "order_by": "name", + "id_key": "name", + "attributs": "name|name" + }, + "id_from": "Element_0_4_3_from" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ], + "id": "search_button" + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "dtdictdate_before", + "serviceconsultationnumber", + "dtdicttype", + "caller", + "creationdate_before", + "callersiretnumber", + "search_button", + "creationdate_after", + "dtdictdate_after", + "networkintersected", + "networkmanagername", + "maincityzipcode", + "maincity", + "status_name" + ] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "object", + "dataType": "text", + "name": "typeDemande", + "description": "", + "options": [ + "", + "DT", + "DICT", + "ATU", + "DDC" + ], + "id": "datasource_1" + }, + "datasource_2": { + "type": "web_service", + "dataType": "tableValue", + "name": "network", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "v_network_unrestricted" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_2" + }, + "datasource_3": { + "type": "web_service", + "dataType": "tableValue", + "name": "networkmanager", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "v_networkmanager_unrestricted" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_3" + }, + "datasource_4": { + "type": "web_service", + "dataType": "tableValue", + "name": "dtdict", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "v_dtdict_unrestricted" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_4" + }, + "datasource_5": { + "type": "web_service", + "dataType": "tableValue", + "name": "rt_dtdict_status", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "rt_dtdict_status", + "database": "" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_5" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_cerfa.js b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_cerfa.js new file mode 100755 index 0000000000000000000000000000000000000000..7efd869f48f8b285c442d6351086d32db0cdb8e5 --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_cerfa.js @@ -0,0 +1,72 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; + +console.info("Generateur_wab_generator_1 loaded --> your functions are ready"); +/*********************************************************************************** + Signaletique_Recap_0 Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + setTimeout(function(){ + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/dtnet/dtdicts/" + envSrvc["sId"] + "/cerfa", + "success": function (response) { + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName] = response["data"]["cerfas"][0]; + oFormRequired.scope_.$apply(); + } + }); + }, 1); +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_cerfa.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_cerfa.json new file mode 100755 index 0000000000000000000000000000000000000000..0dbf62e7e81f56a9798bafba04dcfe27bb269328 --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_cerfa.json @@ -0,0 +1,1079 @@ +{ + "display": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_CERFA_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "title", + "name": "FakeLabel1", + "label": "", + "nb_cols": 6, + "id": "FakeLabel1" + }, + { + "type": "title", + "name": "DestinataireSectionTitle", + "label": "Destinataire", + "nb_cols": 6, + "id": "DestinataireSectionTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "Recepisse_DT_unique", + "label": "Récépissé de DT", + "nb_cols": 6, + "id": "Recepisse_DT_unique" + }, + { + "type": "text","disabled":true, + "name": "Denomination", + "label": "Dénomination :", + "nb_cols": 6, + "id": "Denomination" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "Recepisse_DICT", + "label": "Récépissé de DICT", + "nb_cols": 6, + "id": "Recepisse_DICT" + }, + { + "type": "text","disabled":true, + "name": "ComplementAdresse", + "label": "Complément/Service :", + "nb_cols": 6, + "id": "ComplementAdresse" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "Recepisse_DC", + "label": "Récépissé de DT/DICT", + "nb_cols": 6, + "id": "Recepisse_DC" + }, + { + "type": "text","disabled":true, + "name": "NoVoie", + "label": "Numéro / Voie :", + "nb_cols": 6, + "id": "NoVoie" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "FakeLabel2", + "label": "", + "nb_cols": 6, + "id": "FakeLabel2" + }, + { + "type": "text","disabled":true, + "name": "LieuditBP", + "label": "Lieu-dit / BP :", + "nb_cols": 6, + "id": "LieuditBP" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "FakeLabel3", + "nb_cols": 6, + "id": "FakeLabel3" + }, + { + "type": "text","disabled":true, + "name": "CodePostal", + "label": "Code Postal :", + "nb_cols": 3, + "id": "CodePostal" + }, + { + "type": "text","disabled":true, + "name": "Commune", + "label": "Commune :", + "nb_cols": 3, + "id": "Commune" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "FakeLabel4", + "label": "", + "nb_cols": 6, + "id": "FakeLabel4" + }, + { + "type": "text","disabled":true, + "name": "Pays", + "label": "Pays :", + "nb_cols": 6, + "id": "Pays" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "NoGU", + "label": "N° consultation du téléservice :", + "nb_cols": 6, + "id": "NoGU" + }, + { + "type": "title", + "name": "CoordonnéesExploiTitle", + "label": "Coordonnées de l'exploitant :", + "nb_cols": 6, + "id": "CoordonnéesExploiTitle" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "ReferenceExploitant", + "label": "Référence de l'exploitant :", + "nb_cols": 6, + "id": "ReferenceExploitant" + }, + { + "type": "text","disabled":true, + "name": "RaisonSocialeExploitant", + "label": "Raison sociale :", + "nb_cols": 6, + "id": "RaisonSocialeExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "NoAffaireDeclarant", + "label": "N° d'affaire du déclarant :", + "nb_cols": 6, + "id": "NoAffaireDeclarant" + }, + { + "type": "text","disabled":true, + "name": "ContactExploitant", + "label": "Personne à contacter :", + "nb_cols": 6, + "id": "ContactExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "Personne_Contacter", + "label": "Personne à contacter (déclarant) :", + "nb_cols": 6, + "id": "Personne_Contacter" + }, + { + "type": "text","disabled":true, + "name": "NoVoieExploitant", + "label": "Numéro / Voie :", + "nb_cols": 6, + "id": "NoVoieExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "DateReception", + "label": "Date de réception de la déclaration :", + "nb_cols": 6, + "id": "DateReception" + }, + { + "type": "text","disabled":true, + "name": "LieuditBPExploitant", + "label": "Lieu-dit / BP :", + "nb_cols": 6, + "id": "LieuditBPExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "CommuneTravaux", + "label": "Commune principale des travaux :", + "nb_cols": 6, + "id": "CommuneTravaux" + }, + { + "type": "text","disabled":true, + "name": "CodePostalExploitant", + "label": "Code Postal :", + "nb_cols": 3, + "id": "CodePostalExploitant" + }, + { + "type": "text","disabled":true, + "name": "CommuneExploitant", + "label": "Commune :", + "nb_cols": 3, + "id": "CommuneExploitant" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "AdresseTravaux", + "label": "Adresse des travaux prévus :", + "nb_cols": 6, + "id": "AdresseTravaux" + }, + { + "type": "text","disabled":true, + "name": "TelExploitant", + "label": "Tél :", + "nb_cols": 3, + "id": "TelExploitant" + }, + { + "type": "text","disabled":true, + "name": "FaxExploitant", + "label": "Fax :", + "nb_cols": 3, + "id": "FaxExploitant" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ElementDeReponseTitle", + "label": "Eléments généraux de réponse", + "nb_cols": 12, + "id": "ElementDeReponseTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "RepImpossible", + "label": "Les renseignements que vous avez fournis ne nous permettent pas de vous répondre. La déclaration est à renouveler.", + "nb_cols": 12, + "id": "RepImpossible" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "InfoPreciser", + "label": "Précisez notamment :", + "nb_cols": 12, + "id": "InfoPreciser" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "PasConcerne", + "label": "Les réseaux/ouvrages que nous exploitons ne sont pas concernés au regard des informations fournies.", + "nb_cols": 8, + "id": "PasConcerne" + }, + { + "type": "text","disabled":true, + "name": "DistanceReseau", + "label": "Distance > à (en m):", + "nb_cols": 4, + "id": "DistanceReseau" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "Concerne", + "label": "Il y a au moins un réseau/ouvrage concerné (voir liste jointe) de catégorie :", + "nb_cols": 4, + "id": "Concerne" + }, + { + "type": "text","disabled":true, + "name": "CategorieReseau1", + "label": "", + "nb_cols": 2, + "id": "CategorieReseau1" + }, + { + "type": "text","disabled":true, + "name": "CategorieReseau2", + "label": "", + "nb_cols": 2, + "id": "CategorieReseau2" + }, + { + "type": "text","disabled":true, + "name": "CategorieReseau3", + "label": "", + "nb_cols": 2, + "id": "CategorieReseau3" + }, + { + "type": "text","disabled":true, + "name": "info_catégorie", + "nb_cols": 2, + "id": "info_catégorie" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ModifExtendRéseauxTiltle", + "label": "Modification ou extension de nos réseaux /ouvrages", + "nb_cols": 12, + "id": "ModifExtendRéseauxTiltle" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "ModifPrevue", + "label": "Modification ou extension de réseau/ouvrage envisagée dans un délai inférieur à 3 mois :", + "nb_cols": 12, + "id": "ModifPrevue" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "ModifEnCours", + "label": "Réalisation de modifications en cours sur notre réseau/ouvrage.", + "nb_cols": 12, + "id": "ModifEnCours" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "RepresentantExploitant", + "label": "Veuillez contacter notre représentant :", + "nb_cols": 9, + "id": "RepresentantExploitant" + }, + { + "type": "text","disabled":true, + "name": "TelModification", + "label": "Tél :", + "nb_cols": 3, + "id": "TelModification" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "NB1", + "label": "NB : Si nous avons connaissance d’une modification du réseau/ouvrage dans le délai maximal de 3 mois à compter de la consultation du téléservice, nous vous en informerons.", + "nb_cols": 12, + "id": "NB1" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "EmplacementRéseauxTitle", + "label": "Emplacement de nos réseaux / ouvrages", + "nb_cols": 12, + "id": "EmplacementRéseauxTitle" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "PlansJoints", + "id": "PlansJoints", + "nb_cols": 12, + "label": "Plans joints :" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "ReférenceLabel", + "label": "Références:", + "nb_cols": 2, + "id": "ReférenceLabel" + }, + { + "type": "label", + "name": "EchelleLabel", + "label": "Echelle:", + "nb_cols": 2, + "id": "EchelleLabel" + }, + { + "type": "label", + "name": "DateDeditionLabel", + "label": "Date d'édition:", + "nb_cols": 2, + "id": "DateDeditionLabel" + }, + { + "type": "label", + "name": "SensibleLabel", + "label": "Sensible:", + "nb_cols": 2, + "id": "SensibleLabel" + }, + { + "type": "label", + "name": "ProfLabel", + "label": "Prof. règl. mini:", + "nb_cols": 2, + "id": "ProfLabel" + }, + { + "type": "label", + "name": "MaterielLabel", + "label": "Matériau réseau :", + "nb_cols": 2, + "id": "MaterielLabel" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "Ref1", + "nb_cols": 2, + "id": "Ref1" + }, + { + "type": "text","disabled":true, + "name": "Echelle1", + "nb_cols": 2, + "id": "Echelle1" + }, + { + "type": "text","disabled":true, + "name": "DateEditionPlan1", + "nb_cols": 2, + "id": "DateEditionPlan1" + }, + { + "type": "checkbox","disabled":true, + "name": "Sensible1", + "nb_cols": 2, + "id": "Sensible1" + }, + { + "type": "text","disabled":true, + "name": "Profondeur1", + "nb_cols": 2, + "id": "Profondeur1" + }, + { + "type": "text","disabled":true, + "name": "Materiau1", + "nb_cols": 2, + "id": "Materiau1" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "Ref2", + "label": "", + "nb_cols": 2, + "id": "Ref2" + }, + { + "type": "text","disabled":true, + "name": "Echelle2", + "label": "", + "nb_cols": 2, + "id": "Echelle2" + }, + { + "type": "text","disabled":true, + "name": "DateEditionPlan2", + "label": "", + "nb_cols": 2, + "id": "DateEditionPlan2" + }, + { + "type": "checkbox","disabled":true, + "name": "Sensible2", + "label": "", + "nb_cols": 2, + "id": "Sensible2" + }, + { + "type": "text","disabled":true, + "name": "Profondeur2", + "label": "", + "nb_cols": 2, + "id": "Profondeur2" + }, + { + "type": "text","disabled":true, + "name": "Materiau2", + "label": "", + "nb_cols": 2, + "id": "Materiau2" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "NbLabel", + "label": "NB : La classe de précision A, B ou C figure dans les plans.", + "nb_cols": 12, + "id": "NbLabel" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "ReunionChantierCase", + "label": "Réunion sur chantier pour localisation du réseau/ouvrage :", + "nb_cols": 5, + "id": "ReunionChantierCase" + }, + { + "type": "checkbox","disabled":true, + "name": "DateRDV", + "label": "Date retenue d’un commun accord :", + "nb_cols": 4, + "id": "DateRDV" + }, + { + "type": "text","disabled":true, + "name": "DateReunion", + "label": "", + "nb_cols": 3, + "id": "DateReunion" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "FakeLabel5", + "label": "", + "nb_cols": 4, + "id": "FakeLabel5" + }, + { + "type": "label", + "name": "ouLabel", + "label": "ou", + "nb_cols": 1, + "id": "ouLabel" + }, + { + "type": "checkbox","disabled":true, + "name": "RDVparDeclarant", + "label": "Prise de RDV à l’initiative du déclarant (date du dernier contact non conclusif :", + "nb_cols": 4, + "id": "RDVparDeclarant" + }, + { + "type": "text","disabled":true, + "name": "DateAppelNonConcl", + "nb_cols": 3, + "id": "DateAppelNonConcl" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "ServitudeCase", + "label": "Votre projet doit tenir compte de la servitude protégeant notre ouvrage", + "nb_cols": 12, + "id": "ServitudeCase" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "PasClasseACase", + "label": "(cas d’un récépissé de DT) Tous les tronçons dans l’emprise ne sont pas en totalité de classe A : investigations complémentaires ou clauses particulières au marche a prévoir.", + "nb_cols": 12, + "id": "PasClasseACase" + } + ] + }, + { + "fields": [ + { + "type": "checkbox","disabled":true, + "name": "BranchementsCase", + "label": "Les branchements situés dans l’emprise du projet et pourvus d’affleurant sont tous rattachés à un réseau principal souterrain identifié dans les plans joints.", + "nb_cols": 12, + "id": "BranchementsCase" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "RecommandationTitle", + "label": "Recommandations de sécurité", + "nb_cols": 12, + "id": "RecommandationTitle" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "label17", + "label": "Les recommandations techniques générales en fonction des réseaux et des techniques de travaux prévues sont consultables sur www.reseaux-et-canalisations.gouv.fr", + "nb_cols": 12, + "id": "label17" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "Recommandations", + "label": "Les recommandations techniques spécifiques suivantes sont à appliquer, en fonction des risques liés à l’utilisation des techniques de travaux employées :", + "nb_cols": 12, + "id": "Recommandations" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "RubriquesGuide", + "label": "Rubriques du guide technique relatives à des ouvrages ou travaux spécifiques :", + "nb_cols": 12, + "id": "RubriquesGuide" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "MiseHorsTension", + "label": "Pour les exploitants de lignes électriques : si la distance d’approche a été précisée, la mise hors tension est :", + "nb_cols": 12, + "id": "MiseHorsTension", + "disabled": true, + "options": { + "choices": [ + { + "label": "Possible", + "value": true + }, + { + "label": "Impossible", + "value": false + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "MesuresSecurite", + "label": "Mesures de sécurité à mettre en œuvre :", + "nb_cols": 12, + "id": "MesuresSecurite" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "DispositifsSecurite", + "label": "Dispositifs importants pour la sécurité :", + "nb_cols": 12, + "id": "DispositifsSecurite" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "CasDegradationTitle", + "label": "Cas de dégradation d’un de nos ouvrages", + "nb_cols": 12, + "id": "CasDegradationTitle" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "TelEndommagement", + "label": "En cas de dégradation d’un de nos ouvrages, contactez nos services au numéro de téléphone suivant :", + "nb_cols": 12, + "id": "TelEndommagement" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "Endommagement", + "label": "Pour toute anomalie susceptible de mettre en cause la sécurité au cours du déroulement du chantier, prévenir le service départemental d’incendie et de secours (par défaut le 18 ou le 112) :", + "nb_cols": 12, + "id": "Endommagement" + } + ] + }, + { + "fields": [ + { + "type": "title", + "name": "ResponsableDossierTitle", + "label": "Responsable du dossier", + "nb_cols": 6, + "id": "ResponsableDossierTitle" + }, + { + "type": "title", + "name": "SignautureTitle", + "label": "Signature de l’exploitant ou de son représentant", + "nb_cols": 6, + "id": "SignautureTitle" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "NomSignataire", + "label": "Nom :", + "nb_cols": 6, + "id": "NomSignataire" + }, + { + "type": "text","disabled":true, + "name": "NomResponsableDossier", + "label": "", + "nb_cols": 6, + "id": "NomResponsableDossier" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "DesignationService", + "label": "Désignation du service :", + "nb_cols": 6, + "id": "DesignationService" + } + ] + }, + { + "fields": [ + { + "type": "text","disabled":true, + "name": "TelResponsableDossier", + "label": "Tél. :", + "nb_cols": 6, + "id": "TelResponsableDossier" + }, + { + "type": "text","disabled":true, + "name": "DateRecepisse", + "label": "Date :", + "nb_cols": 2, + "id": "DateRecepisse" + }, + { + "type": "text","disabled":true, + "name": "NbPJ", + "label": "Nombres de pièces jointes", + "nb_cols": 4, + "id": "NbPJ" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "Denomination", + "ComplementAdresse", + "NoVoie", + "LieuditBP", + "CodePostal", + "Commune", + "Pays", + "NoGU", + "ReferenceExploitant", + "NoAffaireDeclarant", + "Personne_Contacter", + "DateReception", + "AdresseTravaux", + "RaisonSocialeExploitant", + "ContactExploitant", + "NoVoieExploitant", + "LieuditBPExploitant", + "CodePostalExploitant", + "CommuneExploitant", + "TelExploitant", + "FaxExploitant", + "RepImpossible", + "InfoPreciser", + "PasConcerne", + "DistanceReseau", + "Concerne", + "CategorieReseau1", + "CategorieReseau2", + "CategorieReseau3", + "ModifPrevue", + "ModifEnCours", + "RepresentantExploitant", + "TelModification", + "NbLabel", + "Ref1", + "Echelle1", + "DateEditionPlan1", + "Sensible1", + "Profondeur1", + "Materiau1", + "Ref2", + "Echelle2", + "DateEditionPlan2", + "Sensible2", + "Profondeur2", + "Materiau2", + "ReunionChantierCase", + "DateRDV", + "Separator1", + "RDVparDeclarant", + "FakeLabel1", + "ServitudeCase", + "PasClasseACase", + "BranchementsCase", + "Recommandations", + "RubriquesGuide", + "MiseHorsTension", + "DispositifsSecurite", + "TelEndommagement", + "Endommagement", + "NomResponsableDossier", + "TelResponsableDossier", + "NomSignataire", + "DateRecepisse", + "NbPJ", + "Recepisse_DT_unique", + "Recepisse_DC", + "DesignationService", + "Recepisse_DICT", + "Separator2", + "Separator3", + "Separator4", + "NB1", + "SensibleLabel", + "DestinataireSectionTitle", + "CoordonnéesExploiTitle", + "ElementDeReponseTitle", + "ModifExtendRéseauxTiltle", + "PlansJoints", + "ReférenceLabel", + "EchelleLabel", + "DateDeditionLabel", + "Separator7", + "ProfLabel", + "MaterielLabel", + "ouLabel", + "FakeLabel5", + "EmplacementRéseauxTitle", + "separator5", + "RecommandationTitle", + "label17", + "separator6", + "CasDegradationTitle", + "SignautureTitle", + "ResponsableDossierTitle", + "Separator8", + "FakeLabel2", + "FakeLabel3", + "FakeLabel4", + "MesuresSecurite", + "info_catégorie", + "CommuneTravaux", + "DateReunion", + "DateAppelNonConcl", + "update_button" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + ] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict-form", + "title": "DEMANDE_DTNET_DTDICT_TITLE", + "input_size": "xxs", + "nb_cols": 8, + "javascript": true, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_filemanager.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_filemanager.json new file mode 100755 index 0000000000000000000000000000000000000000..598a0a603c43f460d8d928bd4bef1e31618cb05b --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_dtdict_dtdict_filemanager.json @@ -0,0 +1,129 @@ +{ + "display": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "dtdict_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "DEMANDE_DTNET_DTDICT_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "dtdict_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "pdforder", + "update_button" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [] + }, + "insert": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "reloadDtNetTree()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail.js b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail.js new file mode 100755 index 0000000000000000000000000000000000000000..a619af5dac8c47c37f5216f66e016c353b34ab6b --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail.js @@ -0,0 +1,74 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; +// goog fonctionne en mode décompilé mais pas en mode compilé + +console.info("demande_dtnet_mail loaded --> your functions are ready"); +/*********************************************************************************** + demande_dtnet_dtdict Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + console.log(oFormRequired.scope_); + + var formaterString = "DD/MM/YYYY HH:mm"; + oFormRequired.toDestructor.push(oFormRequired.scope_.$watch("oFormValues." + oFormRequired.scope_.sFormDefinitionName + ".receptiondate", function (value) { + if (typeof(value) !== "undefined") { + if(moment(value, formaterString).format(formaterString) !== value){ + oFormRequired.scope_["oFormValues"][oFormRequired.scope_["sFormDefinitionName"]]["receptiondate"] = moment(value).format(formaterString); + } + } + }) + ); +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail.json new file mode 100755 index 0000000000000000000000000000000000000000..09ee666f262c0a945d21e50a6254b050655491c7 --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail.json @@ -0,0 +1,315 @@ +{ + "display": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "mail_id", + "label": "DEMANDE_DTNET_MAIL_FORM_MAIL_ID", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "mail_id_1_1" + }, + { + "type": "label", + "name": "mail_uid", + "label": "DEMANDE_DTNET_MAIL_FORM_MAIL_UID", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "mail_uid_6_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "sender", + "label": "DEMANDE_DTNET_MAIL_FORM_SENDER", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "sender_4_1" + }, + { + "type": "label", + "name": "receiver", + "label": "DEMANDE_DTNET_MAIL_FORM_RECEIVER", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "receiver_5_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "networkmanagername", + "label": "DEMANDE_DTNET_MAIL_FORM_NETWORKMANAGERNAME", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "networkmanagername_7_1" + }, + { + "type": "label", + "name": "status_name", + "label": "DEMANDE_DTNET_MAIL_FORM_STATUS_NAME", + "disabled": false, + "required": false, + "nb_cols": 6, + "id": "status_name_8_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "receptiondate", + "label": "DEMANDE_DTNET_MAIL_FORM_RECEPTIONDATE", + "nb_cols": 12, + "id": "Element_0_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "subject", + "label": "DEMANDE_DTNET_MAIL_FORM_SUBJECT", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "subject_3_1" + } + ] + }, + { + "fields": [ + { + "type": "tinymce", + "name": "content", + "label": "DEMANDE_DTNET_MAIL_FORM_CONTENT", + "nb_cols": 12, + "id": "content_2_1", + "tinymceOptions": { + "language": "fr_FR" + }, + "nb_rows": 25 + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "mail_id", + "content", + "subject", + "sender", + "receiver", + "mail_uid", + "networkmanagername", + "status_name", + "reception_date", + "display_button" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "receiver", + "label": "DEMANDE_DTNET_MAIL_FORM_RECEIVER", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_1_1" + }, + { + "type": "text", + "name": "sender", + "label": "DEMANDE_DTNET_MAIL_FORM_SENDER", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_1_1_2" + }, + { + "type": "text", + "name": "subject", + "label": "DEMANDE_DTNET_MAIL_FORM_SUBJECT", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_2_1_3" + }, + { + "type": "select", + "name": "networkmanagername", + "label": "SUPERVISION_DTNET_DTNET_UNR_DTDICT_FORM_NETWORKMANAGERNAME", + "required": false, + "nb_cols": 3, + "id": "Element_0_1_1", + "id_from": "Element_0_1_1_from", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "networkmanagername", + "order_by": "networkmanagername", + "id_key": "networkmanagername", + "attributs": "networkmanagername|networkmanagername" + } + } + ] + }, + { + "fields": [] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-xs", + "nb_cols": 12, + "name": "search_button", + "id": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "search_button", + "receiver", + "sender", + "subject", + "networkmanagername" + ] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_mail-form", + "title": "DEMANDE_DTNET_MAIL_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "networkmanagername", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "v_networkmanager_unrestricted" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail_mail_filemanager.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail_mail_filemanager.json new file mode 100755 index 0000000000000000000000000000000000000000..b03ca9125b0d4fd9fe3ce77d3336bcef2d77d510 --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_mail_mail_filemanager.json @@ -0,0 +1,139 @@ +{ + "display": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "mail_id", + "label": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_FORM_MAIL_ID", + "disabled": false, + "required": false, + "nb_cols": 12, + "id": "mail_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "foldermanager", + "name": "fileSelected", + "label": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_FORM_ATTACHEDFILESDIRECTORY", + "required": false, + "nb_cols": 12, + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + }, + "disabled": true, + "id": "fileSelected" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "mail_id", + "fileSelected", + "display_button" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_mail_mail_file_manager-form", + "title": "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_network.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_network.json new file mode 100755 index 0000000000000000000000000000000000000000..8c84aa3296695ccf88efae8982d5be303db5d303 --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_network.json @@ -0,0 +1,761 @@ +{ + "display": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "workcode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE", + "nb_cols": 6, + "id": "workcode_2_1" + }, + { + "type": "label", + "name": "geodataversion", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_GEODATAVERSION", + "nb_cols": 6, + "id": "geodataversion_3_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "category_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID", + "nb_cols": 12, + "id": "category_id_19_1" + } + ] + },{ + "fields":[ + { + "type": "label", + "name": "sensitivity_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID", + "nb_cols": 4, + "id": "sensitivity_id_20_1" + }, + { + "type": "label", + "name": "condition_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID", + "nb_cols": 4, + "id": "condition_id_21_1" + }, + { + "type": "label", + "name": "positioning_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID", + "nb_cols": 4, + "id": "positioning_id_22_1" + } + ] + }, + { + "fields": [ + { + "type": "hidden", + "name": "networkmanager_id", + "nb_cols": 12, + "id": "networkmanager_id_23_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:7436" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:7437" + } + ] + }, + "name": "mainnetworkconnection", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_MAINNETWORKCONNECTION", + "required": false, + "disabled" : true, + "nb_cols": 12, + "id": "mainnetworkconnection_5_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "distancemax", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX", + "nb_cols": 4, + "id": "distancemax_6_1" + }, + { + "type": "label", + "name": "detailedmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE", + "nb_cols": 4, + "id": "detailedmapoutputscale_7_1" + }, + { + "type": "label", + "name": "situationmapoutputscale", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE", + "nb_cols": 4, + "id": "situationmapoutputscale_9_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "detailedmapwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL", + "nb_cols": 12, + "id": "detailedmapwmsurl_8_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "detailedmapbackgroundwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL_BACKGROUND", + "nb_cols": 12, + "id": "Element_0_7_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "situationmapwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL", + "nb_cols": 12, + "id": "situationmapwmsurl_10_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "situationmapbackgroundwmsurl", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL_BACKGROUND", + "nb_cols": 12, + "id": "Element_0_9_1" + } + ] + }, + { + "fields": [ + { + "type": "linkurl", + "name": "mapsize", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_MAPSIZE", + "required": false, + "nb_cols": 12, + "id": "mapsize_11_1", + "style": { + "height": "350px" + }, + "map_options": { + "proj": "EPSG:3857", + "type": "OSM", + "center": { + "extent": [ + -724552.6622259596, + 5045742.168429744, + 1080584.1977567628, + 6757931.602017692 + ], + "coord": [ + 178015.76776540163, + 5901836.885223718 + ], + "scale": 12667656 + }, + "controls": { + "MP": true, + "ZO": true, + "SL": true, + "CP": true + }, + "layers": [], + "interactions": { + "multi_geometry": false, + "full_screen": true, + "RA": false, + "RO": false, + "ED": false, + "DP": false, + "DL": false, + "DPol": false, + "SE": true + }, + "draw_color": "rgba(54,184,255,0.6)", + "contour_color": "rgba(0,0,0,0.4)", + "contour_size": 2, + "circle_radius": 6, + "features": [], + "coord_accuracy": 8 + } + } + ] + }, + { + "fields": [ + { + "type": "link", + "name": "attachedfile", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ATTACHEDFILE", + "nb_cols": 12, + "id": "attachedfile_12_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "securityrecommendation", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYRECOMMENDATION", + "required": false, + "nb_cols": 12, + "id": "securityrecommendation_13_1", + "size": 5 + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "rubriquesguide", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_RUBRIQUESGUIDE", + "nb_cols": 12, + "id": "rubriquesguide_26_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:7444" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:7445" + } + ] + }, + "name": "isshutdownpossible", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE", + "required": false, + "disabled" : true, + "nb_cols": 12, + "id": "isshutdownpossible_27_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "securitymeasures", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYMEASURES", + "nb_cols": 12, + "id": "securitymeasures_28_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "securitysystem", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYSYSTEM", + "nb_cols": 12, + "id": "securitysystem_29_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "phoneifdamage", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE", + "nb_cols": 12, + "id": "phoneifdamage_30_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "oui", + "value": true, + "$$hashKey": "object:7452" + }, + { + "label": "non", + "value": false, + "$$hashKey": "object:7453" + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISAUTOMODE", + "required": false, + "disabled" : true, + "nb_cols": 12, + "id": "isautomode_31_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "ziobuffer", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ZIOBUFFER", + "nb_cols": 12, + "id": "ziobuffer_33_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "answerforunsensitiveatu", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ANSWERFORUNSENSITIVEATU", + "nb_cols": 12, + "id": "Element_0_26_1", + "disabled" : true, + "options": { + "choices": [ + { + "label": "Oui", + "value": true, + "$$hashKey": "object:7460" + }, + { + "label": "Non", + "value": false, + "$$hashKey": "object:7461" + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "workcode", + "geodataversion", + "mainnetworkconnection", + "distancemax", + "detailedmapoutputscale", + "detailedmapwmsurl", + "situationmapoutputscale", + "situationmapwmsurl", + "mapsize", + "attachedfile", + "securityrecommendation", + "category_id", + "sensitivity_id", + "condition_id", + "positioning_id", + "networkmanager_id", + "rubriquesguide", + "isshutdownpossible", + "securitymeasures", + "securitysystem", + "phoneifdamage", + "isautomode", + "ziobuffer", + "update_button", + "answerforunsensitiveatu", + "detailedmapbackgroundwmsurl", + "situationmapbackgroundwmsurl" + ] + } + ] + } + }, + "search": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "network_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_2_1" + }, + { + "type": "text", + "name": "workcode", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_1_2" + }, + { + "type": "date", + "name": "loadingdate_after", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE_AFTER", + "nb_cols": 3, + "id": "Element_1_1_3" + }, + { + "type": "date", + "name": "loadingdate_before", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE_BEFORE", + "nb_cols": 3, + "id": "Element_1_1_4" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "category_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID", + "required": false, + "nb_cols": 3, + "id": "Element_1_2_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "category_id", + "order_by": "category_id", + "id_key": "category_id", + "attributs": "category_id|category_id" + }, + "id_from": "Element_1_2_1_from" + }, + { + "type": "select", + "name": "sensitivity_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID", + "required": false, + "nb_cols": 3, + "id": "Element_2_2_2", + "datasource": { + "datasource_id": "datasource_3", + "sort_order": "ASC", + "distinct": "true", + "label_key": "sensitivity_id", + "order_by": "sensitivity_id", + "id_key": "sensitivity_id", + "attributs": "sensitivity_id|sensitivity_id" + }, + "id_from": "Element_2_2_2_from" + }, + { + "type": "select", + "name": "condition_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID", + "required": false, + "nb_cols": 3, + "id": "Element_3_2_3", + "datasource": { + "datasource_id": "datasource_4", + "sort_order": "ASC", + "distinct": "true", + "label_key": "condition_id", + "order_by": "condition_id", + "id_key": "condition_id", + "attributs": "condition_id|condition_id" + }, + "id_from": "Element_3_2_3_from" + }, + { + "type": "select", + "name": "positioning_id", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID", + "required": false, + "nb_cols": 3, + "id": "Element_4_2_4", + "datasource": { + "datasource_id": "datasource_2", + "sort_order": "ASC", + "distinct": "true", + "label_key": "positioning_id", + "order_by": "positioning_id", + "id_key": "positioning_id", + "attributs": "positioning_id|positioning_id" + }, + "id_from": "Element_4_2_4_from" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "networkmanagername", + "label": "SUPERVISION_DTNET_DTNET_UNR_DTDICT_FORM_NETWORKMANAGERNAME", + "required": false, + "nb_cols": 12, + "id": "Element_0_3_1", + "id_from": "Element_0_3_1_from", + "datasource": { + "datasource_id": "datasource_5", + "sort_order": "ASC", + "distinct": "true", + "label_key": "networkmanagername", + "order_by": "networkmanagername", + "id_key": "networkmanagername", + "attributs": "networkmanagername|networkmanagername" + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-xs", + "nb_cols": 12, + "name": "search_button", + "id": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "search_button", + "network_id", + "workcode", + "loadingdate_after", + "loadingdate_before", + "category_id", + "sensitivity_id", + "condition_id", + "positioning_id", + "networkmanagername" + ] + } + ] + } + }, + "insert": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "exploitant_dtnet_network-form", + "title": "EXPLOITANT_DTNET_NETWORK_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "category", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [ + { + "column": "", + "compare_operator": "=", + "value": "" + } + ] + }, + "schema": "s_dtnet", + "table": "rt_category" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + }, + "datasource_2": { + "type": "web_service", + "dataType": "tableValue", + "name": "positionning", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_positioning" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_2" + }, + "datasource_3": { + "type": "web_service", + "dataType": "tableValue", + "name": "sensitivity", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_sensitivity" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_3" + }, + "datasource_4": { + "type": "web_service", + "dataType": "tableValue", + "name": "condition", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_condition" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_4" + }, + "datasource_5": { + "type": "web_service", + "dataType": "tableValue", + "name": "networkmanager", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "v_networkmanager_unrestricted" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_5" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_network_network_filemanager.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_network_network_filemanager.json new file mode 100755 index 0000000000000000000000000000000000000000..ba32e396e30bff09b19e6888bfa6ffb311b6e3ee --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_network_network_filemanager.json @@ -0,0 +1,139 @@ +{ + "display": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "network_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "network_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "network_id", + "pdforder", + "update_button" + ] + } + ] + } + }, + "search": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "insert": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "demande_dtnet_dtdict_dtdict_file_manager-form", + "title": "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "reloadDtNetTree()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_networkmanager.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_networkmanager.json new file mode 100755 index 0000000000000000000000000000000000000000..47160fb1cb1a4ae34bdd443248106c5ec237c0ef --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_networkmanager.json @@ -0,0 +1,1378 @@ +{ + "display": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID", + "nb_cols": 12, + "id": "networkmanager_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "siretnumber", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER", + "nb_cols": 12, + "id": "siretnumber_19_1" + }, + { + "type": "label", + "name": "fullname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME", + "nb_cols": 6, + "id": "fullname_15_1" + }, + { + "type": "label", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME", + "nb_cols": 6, + "id": "networkmanagername_2_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "zipcode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE", + "nb_cols": 4, + "id": "zipcode_11_1" + }, + { + "type": "label", + "name": "city", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY", + "nb_cols": 4, + "id": "city_12_1" + }, + { + "type": "label", + "name": "otherdetailsaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS", + "nb_cols": 4, + "id": "otherdetailsaddress_10_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "address", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS", + "required": false, + "nb_cols": 12, + "id": "address_9_1", + "disabled":true + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "phone", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE", + "nb_cols": 6, + "id": "phone_13_1" + }, + { + "type": "label", + "name": "fax", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX", + "nb_cols": 6, + "id": "fax_14_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "contactmail", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL", + "nb_cols": 6, + "id": "contactmail_6_1" + }, + { + "type": "label", + "name": "contactname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME", + "nb_cols": 6, + "id": "contactname_8_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "receiptaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS", + "nb_cols": 6, + "id": "receiptaddress_3_1" + }, + { + "type": "label", + "name": "password", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD", + "nb_cols": 6, + "id": "password_5_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE", + "value": true, + "$$hashKey": "object:4597" + }, + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE", + "value": false, + "$$hashKey": "object:4598" + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 6, + "id": "isautomode_7_1", + "disabled":true + }, + { + "type": "radio", + "name": "usematdmat", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_MATDMAT", + "nb_cols": 6, + "id": "Element_0_8_2", + "disabled":true, + "options": { + "choices": [ + { + "label": "Oui", + "value": true, + "$$hashKey": "object:4605" + }, + { + "label": "Non", + "value": false, + "$$hashKey": "object:4606" + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "imageurl", + "name": "icon", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON", + "displayOnly": true, + "nb_cols": 6, + "display_width": "auto", + "width": 225, + "height": 225, + "id": "icon_4_1" + }, + { + "type": "imageurl", + "name": "signaturefile", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE", + "displayOnly": true, + "nb_cols": 6, + "display_width": "auto", + "width": 75, + "height": 15, + "id": "signaturefile_4_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "extent", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT", + "nb_cols": 12, + "id": "extent_17_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "outputcoordsys", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS", + "nb_cols": 12, + "id": "outputcoordsys_18_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "filesupervisor", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR", + "nb_cols": 4, + "id": "Element_0_12_1" + }, + { + "type": "label", + "name": "filesupervisorservice", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE", + "nb_cols": 4, + "id": "Element_1_12_2" + }, + { + "type": "label", + "name": "filesupervisorphone", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE", + "nb_cols": 4, + "id": "Element_2_12_3" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "signatoryname", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME", + "nb_cols": 4, + "id": "Element_3_13_1" + }, + { + "type": "label", + "name": "distancemax", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX", + "nb_cols": 4, + "id": "Element_4_13_2" + }, + { + "type": "label", + "name": "phoneifdamage", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE", + "nb_cols": 4, + "id": "Element_5_13_3" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "isshutdownpossible", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE", + "nb_cols": 6, + "id": "Element_6_14_1", + "options": { + "choices": [ + { + "label": "HT_POSSIBLE", + "value": true, + "$$hashKey": "object:4613" + }, + { + "label": "HT_IMPOSSIBLE", + "value": false, + "$$hashKey": "object:4614" + } + ] + }, + "default_value": false, + "disabled":true + }, + { + "type": "radio", + "name": "withoutnetworkdata", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WITHOUTNETWORKDATA", + "nb_cols": 6, + "id": "Element_0_14_2", + "disabled":true, + "options": { + "choices": [ + { + "label": "Oui", + "value": true, + "$$hashKey": "object:4621" + }, + { + "label": "Non", + "value": false, + "$$hashKey": "object:4622" + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "networkmanagername", + "receiptaddress", + "icon", + "password", + "receiptaddress", + "isautomode", + "contactname", + "address", + "otherdetailsaddress", + "zipcode", + "city", + "phone", + "fax", + "fullname", + "signaturefile", + "extent", + "outputcoordsys", + "siretnumber", + "update_button", + "filesupervisor", + "filesupervisorservice", + "filesupervisorphone", + "signatoryname", + "distancemax", + "phoneifdamage", + "isshutdownpossible", + "contactmail", + "usematdmat", + "withoutnetworkdata" + ] + } + ] + } + }, + "search": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "networkmanager_id", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_2_1", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID" + }, + { + "type": "text", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_1_1" + }, + { + "type": "text", + "name": "receiptaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_1_3" + }, + { + "type": "text", + "name": "siretnumber", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_1_4" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "zipcode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_1_2_1" + }, + { + "type": "text", + "name": "city", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY", + "required": false, + "pattern": "", + "nb_cols": 3, + "id": "Element_0_2_1" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-xs", + "nb_cols": 12, + "name": "search_button", + "id": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "search_button", + "networkmanager_id", + "networkmanagername", + "receiptaddress", + "siretnumber", + "city", + "zipcode" + ] + } + ] + } + }, + "insert": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "text", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID", + "nb_cols": 12, + "id": "networkmanager_id_1_1", + "required": true + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "siretnumber", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER", + "required": false, + "nb_cols": 12, + "id": "siretnumber_19_1" + }, + { + "type": "text", + "name": "fullname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME", + "required": false, + "nb_cols": 6, + "id": "fullname_15_1" + }, + { + "type": "text", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME", + "required": true, + "nb_cols": 6, + "id": "networkmanagername_2_1" + } + ] + }, + { + "fields": [ + { + "type": "integer", + "name": "zipcode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE", + "nb_cols": 4, + "id": "zipcode_11_1" + }, + { + "type": "text", + "name": "city", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY", + "required": false, + "nb_cols": 4, + "id": "city_12_1" + }, + { + "type": "text", + "name": "otherdetailsaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS", + "required": false, + "nb_cols": 4, + "id": "otherdetailsaddress_10_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "address", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS", + "required": false, + "nb_cols": 12, + "id": "address_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "phone", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE", + "required": false, + "nb_cols": 6, + "id": "phone_13_1" + }, + { + "type": "text", + "name": "fax", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX", + "required": false, + "nb_cols": 6, + "id": "fax_14_1" + } + ] + }, + { + "fields": [ + { + "type": "email", + "name": "contactmail", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL", + "required": false, + "nb_cols": 6, + "id": "contactmail_6_1", + "pattern": "^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z]|[0-9])|([-]|[_]|[.])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + }, + { + "type": "text", + "name": "contactname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME", + "required": false, + "nb_cols": 6, + "id": "contactname_8_1" + } + ] + }, + { + "fields": [ + { + "type": "email", + "name": "receiptaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS", + "required": true, + "nb_cols": 6, + "id": "receiptaddress_3_1", + "pattern": "^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z]|[0-9])|([-]|[_]|[.])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + }, + { + "type": "text", + "name": "password", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD", + "required": false, + "nb_cols": 6, + "id": "password_5_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE", + "value": true + }, + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE", + "value": false + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 6, + "id": "isautomode_7_1", + "default_value": true + }, + { + "type": "radio", + "name": "usematdmat", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_MATDMAT", + "nb_cols": 6, + "id": "Element_0_9_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + }, + "default_value": true + } + ] + }, + { + "fields": [ + { + "type": "image_wsdata", + "name": "icon", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 225, + "height": 225, + "id": "icon_4_1" + }, + { + "type": "image_wsdata", + "name": "signaturefile", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 150, + "height": 30, + "id": "signaturefile_4_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "extent", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT", + "required": false, + "nb_cols": 12, + "id": "extent_17_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "outputcoordsys", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS", + "required": true, + "nb_cols": 12, + "id": "outputcoordsys_18_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "epsg", + "order_by": "epsg", + "id_key": "coordsys_id", + "attributs": "coordsys_id|epsg" + }, + "id_from": "outputcoordsys_18_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "filesupervisor", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_0_12_1" + }, + { + "type": "text", + "name": "filesupervisorservice", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_1_12_2" + }, + { + "type": "text", + "name": "filesupervisorphone", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_2_12_3" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "signatoryname", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_3_13_1" + }, + { + "type": "integer", + "name": "distancemax", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX", + "nb_cols": 4, + "id": "Element_4_13_2" + }, + { + "type": "text", + "name": "phoneifdamage", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_5_13_3" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "isshutdownpossible", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE", + "nb_cols": 6, + "id": "Element_6_14_1", + "options": { + "choices": [ + { + "label": "HT_POSSIBLE", + "value": true + }, + { + "label": "HT_IMPOSSIBLE", + "value": false + } + ] + }, + "default_value": false + }, + { + "type": "radio", + "name": "withoutnetworkdata", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WITHOUTNETWORKDATA", + "nb_cols": 6, + "id": "Element_0_14_1", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + }, + "default_value": false + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_CREATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "networkmanagername", + "receiptaddress", + "icon", + "password", + "receiptaddress", + "isautomode", + "contactname", + "address", + "otherdetailsaddress", + "zipcode", + "city", + "phone", + "fax", + "fullname", + "signaturefile", + "outputcoordsys", + "siretnumber", + "update_button", + "filesupervisor", + "filesupervisorservice", + "filesupervisorphone", + "signatoryname", + "distancemax", + "phoneifdamage", + "isshutdownpossible", + "contactmail", + "usematdmat", + "withoutnetworkdata" + ] + } + ] + } + }, + "update": { + "name": "exploitant_dtnet_networkmanager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 9, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID", + "nb_cols": 12, + "id": "networkmanager_id_1_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "siretnumber", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER", + "required": false, + "nb_cols": 12, + "id": "siretnumber_19_1" + }, + { + "type": "text", + "name": "fullname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME", + "required": false, + "nb_cols": 6, + "id": "fullname_15_1" + }, + { + "type": "text", + "name": "networkmanagername", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME", + "required": false, + "nb_cols": 6, + "id": "networkmanagername_2_1" + } + ] + }, + { + "fields": [ + { + "type": "integer", + "name": "zipcode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE", + "nb_cols": 4, + "id": "zipcode_11_1" + }, + { + "type": "text", + "name": "city", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY", + "required": false, + "nb_cols": 4, + "id": "city_12_1" + }, + { + "type": "text", + "name": "otherdetailsaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS", + "required": false, + "nb_cols": 4, + "id": "otherdetailsaddress_10_1" + } + ] + }, + { + "fields": [ + { + "type": "textarea", + "name": "address", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS", + "required": false, + "nb_cols": 12, + "id": "address_9_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "phone", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE", + "required": false, + "nb_cols": 6, + "id": "phone_13_1" + }, + { + "type": "text", + "name": "fax", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX", + "required": false, + "nb_cols": 6, + "id": "fax_14_1" + } + ] + }, + { + "fields": [ + { + "type": "email", + "name": "contactmail", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL", + "required": false, + "nb_cols": 6, + "id": "contactmail_6_1", + "pattern": "^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z]|[0-9])|([-]|[_]|[.])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + }, + { + "type": "text", + "name": "contactname", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME", + "required": false, + "nb_cols": 6, + "id": "contactname_8_1" + } + ] + }, + { + "fields": [ + { + "type": "email", + "name": "receiptaddress", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS", + "required": false, + "nb_cols": 6, + "id": "receiptaddress_3_1", + "pattern": "^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z]|[0-9])|([-]|[_]|[.])){2,63}[.](([a-zA-Z0-9]){2,63})+$" + }, + { + "type": "text", + "name": "password", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD", + "required": false, + "nb_cols": 6, + "id": "password_5_1" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "options": { + "choices": [ + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE", + "value": true + }, + { + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE", + "value": false + } + ] + }, + "name": "isautomode", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE", + "required": false, + "nb_cols": 6, + "id": "isautomode_7_1" + }, + { + "type": "radio", + "name": "usematdmat", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_MATDMAT", + "nb_cols": 6, + "id": "Element_0_8_2", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "image_wsdata", + "name": "icon", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 225, + "height": 225, + "id": "icon_4_1" + }, + { + "type": "image_wsdata", + "name": "signaturefile", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE", + "displayOnly": false, + "nb_cols": 6, + "display_width": "auto", + "width": 150, + "height": 30, + "id": "signaturefile_4_1" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "extent", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT", + "required": false, + "nb_cols": 12, + "id": "extent_17_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "outputcoordsys", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS", + "required": false, + "nb_cols": 12, + "id": "outputcoordsys_18_1", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "epsg", + "order_by": "epsg", + "id_key": "coordsys_id", + "attributs": "coordsys_id|epsg" + }, + "id_from": "outputcoordsys_18_1_from" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "filesupervisor", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_0_12_1" + }, + { + "type": "text", + "name": "filesupervisorservice", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_1_12_2" + }, + { + "type": "text", + "name": "filesupervisorphone", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_2_12_3" + } + ] + }, + { + "fields": [ + { + "type": "text", + "name": "signatoryname", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_3_13_1" + }, + { + "type": "integer", + "name": "distancemax", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX", + "nb_cols": 4, + "id": "Element_4_13_2" + }, + { + "type": "text", + "name": "phoneifdamage", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE", + "required": false, + "pattern": "", + "nb_cols": 4, + "id": "Element_5_13_3" + } + ] + }, + { + "fields": [ + { + "type": "radio", + "name": "isshutdownpossible", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE", + "nb_cols": 6, + "id": "Element_6_14_1", + "options": { + "choices": [ + { + "label": "HT_POSSIBLE", + "value": true + }, + { + "label": "HT_IMPOSSIBLE", + "value": false + } + ] + }, + "default_value": false + }, + { + "type": "radio", + "name": "withoutnetworkdata", + "label": "EXPLOITANT_DTNET_NETWORK_FORM_WITHOUTNETWORKDATA", + "nb_cols": 6, + "id": "Element_0_14_2", + "options": { + "choices": [ + { + "label": "Oui", + "value": true + }, + { + "label": "Non", + "value": false + } + ] + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "networkmanagername", + "receiptaddress", + "icon", + "password", + "receiptaddress", + "isautomode", + "contactname", + "address", + "otherdetailsaddress", + "zipcode", + "city", + "phone", + "fax", + "fullname", + "signaturefile", + "outputcoordsys", + "siretnumber", + "update_button", + "filesupervisor", + "filesupervisorservice", + "filesupervisorphone", + "signatoryname", + "distancemax", + "phoneifdamage", + "isshutdownpossible", + "contactmail", + "usematdmat", + "withoutnetworkdata" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "coordsys", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "rt_coordsys" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_networkmanager_nm_filemanager.json b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_networkmanager_nm_filemanager.json new file mode 100755 index 0000000000000000000000000000000000000000..8847585f3c0ff9910b3b0ddc4f556fe4f15c8646 --- /dev/null +++ b/src/module_dtnet/module/forms/supervision_dtnet/supervision_dtnet_dtnet_unr_networkmanager_nm_filemanager.json @@ -0,0 +1,190 @@ +{ + "display": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "nm_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": false, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "pdforder", + "update_button" + ] + } + ] + } + }, + "search": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [] + }, + "insert": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [] + } + ] + } + }, + "update": { + "name": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "title": "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "nb_cols": 12, + "id": "Element_0_11_1", + "label": "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" + } + ] + }, + { + "class": "dtnet-treeview", + "fields": [ + { + "type": "foldermanager", + "name": "pdforder", + "label": "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PDFORDER", + "required": false, + "nb_cols": 12, + "id": "nm_file", + "loadDataFunction": "getDtNetTree()", + "size": 20, + "options": { + "showBorder": false, + "levels": 0, + "showCheckbox": false, + "showTags": true, + "expandIcon": "glyphicon glyphicon-folder-close", + "collapseIcon": "glyphicon glyphicon-folder-open", + "highlightSelected": false, + "multiSelect": true, + "enableLinks": true + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "reloadDtNetTree()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "networkmanager_id", + "pdforder", + "update_button" + ] + } + ] + } + }, + "datasources": {} +} \ No newline at end of file diff --git a/src/module_dtnet/module/forms/users/users_vitis_users_dtnet_user.js b/src/module_dtnet/module/forms/users/users_vitis_users_dtnet_user.js new file mode 100755 index 0000000000000000000000000000000000000000..8a59a95733b2235150026026fcc48e8f48c5659f --- /dev/null +++ b/src/module_dtnet/module/forms/users/users_vitis_users_dtnet_user.js @@ -0,0 +1,71 @@ +/* global angular, goog, vitisApp, bootbox */ + +//bloque les delete du destructeur à éviter +//'use strict'; + +console.info("Generateur_wab_generator_1 loaded --> your functions are ready"); +/*********************************************************************************** + Signaletique_Recap_0 Javascript + ***********************************************************************************/ + +var oFormRequired = { + "sUrl": "", + "scope_": {}, + "toDestructor": [] +}; +/** + * constructor_form + * Fonction appelé à l'initialisation du formulaire si dans la structure json javascript vaut "true" + * @param {type} scope + * @param {type} s_url + * @returns {undefined} + */ +var constructor_form = function (scope, s_url) { + ////////////////////////////////////////////////////////// + //Ne pas toucher + console.log("Constructor"); + + oFormRequired.sUrl = s_url; + oFormRequired.scope_ = scope; + ////////////////////////////////////////////////////////// + // Permet de recharge le javascript d'une section à une autre + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + //Comportements différents selon le mode (insert, update, search, display) (GTF : accés uniquement au mode insert) + if (oFormRequired.scope_.sFormDefinitionName.indexOf("update") > -1) { + if(typeof oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["user_id"] === "undefined"){ + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["user_id"] = envSrvc["sId"]; + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["newUser"] = true; + } + else{ + oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["newUser"] = false; + } + console.log(oFormRequired.scope_.oFormValues[oFormRequired.scope_.sFormDefinitionName]["newUser"]); + } + +}; +/** + * destructor_form + * Fonction appelé quand on quitte le formulaire nettoie toute les fonctions pour les rendres inutilisable en dehors du formulaire + * @returns {undefined} + */ +var destructor_form = function () { + console.log("Destructor"); + + for (var i = 0; i < oFormRequired.toDestructor.length; i++) { + oFormRequired.toDestructor[i] = undefined; + delete oFormRequired.toDestructor[i]; + } + + //supprimer la balise script du js pour pouvoir le recharger si on reviens sur le formulaire plus tard + angular.element('[src="' + oFormRequired.sUrl + '?version=' + oFormRequired.scope_["oProperties"]["build"] + '"]').remove(); + + oFormRequired = undefined; + delete oFormRequired; + + constructor_form = undefined; + delete constructor_form; + destructor_form = undefined; + delete destructor_form; +}; + +/**********************************************************************************/ \ No newline at end of file diff --git a/src/module_dtnet/module/forms/users/users_vitis_users_dtnet_user.json b/src/module_dtnet/module/forms/users/users_vitis_users_dtnet_user.json new file mode 100755 index 0000000000000000000000000000000000000000..daa87e99f478e6abd656e78a8c07b469c52c55f6 --- /dev/null +++ b/src/module_dtnet/module/forms/users/users_vitis_users_dtnet_user.json @@ -0,0 +1,252 @@ +{ + "display": { + "name": "users_vitis_users-form", + "title": "USERS_VITIS_USERS_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "user_id", + "label": "ID", + "nb_cols": 12, + "id": "Element_0_1_1" + } + ] + }, + { + "fields": [ + { + "type": "label", + "name": "networkmanager_id", + "label": "Exploitant", + "nb_cols": 12, + "id": "Element_1_2_1", + "default_value": "" + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "display_button", + "id": "display_button", + "buttons": [ + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "display_button", + "user_id", + "networkmanager_id" + ] + } + ] + } + }, + "search": { + "name": "users_vitis_users-form", + "title": "USERS_VITIS_USERS_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-xs", + "nb_cols": 12, + "name": "search_button", + "id": "search_button", + "buttons": [ + { + "type": "button", + "name": "search", + "label": "FORM_SEARCH_BUTTON", + "class": "btn-primary", + "event": "setGridFilter()" + }, + { + "type": "reset", + "name": "reset", + "label": "FORM_RESET_BUTTON", + "class": "btn-primary", + "event": "resetGridFilter()" + } + ] + } + ] + } + ] + }, + "insert": { + "name": "users_vitis_users-form", + "title": "USERS_VITIS_USERS_TITLE_INSERT", + "input_size": "xxs", + "nb_cols": 12, + "javascript": false, + "rows": [ + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "insert_button", + "id": "insert_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_CREATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "sendSimpleForm()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "insert_button" + ] + } + ] + } + }, + "update": { + "name": "users_vitis_users-form", + "title": "USERS_VITIS_USERS_TITLE", + "input_size": "xxs", + "nb_cols": 12, + "javascript": true, + "rows": [ + { + "fields": [ + { + "type": "label", + "name": "user_id", + "label": "ID", + "nb_cols": 12, + "id": "Element_1_1_1" + } + ] + }, + { + "fields": [ + { + "type": "select", + "name": "networkmanager_id", + "label": "Exploitants", + "required": false, + "nb_cols": 12, + "id": "Element_2_2_1", + "id_from": "Element_2_2_1_from", + "datasource": { + "datasource_id": "datasource_1", + "sort_order": "ASC", + "distinct": "true", + "label_key": "networkmanagername", + "order_by": "networkmanagername", + "id_key": "networkmanager_id", + "attributs": "networkmanager_id|networkmanagername" + } + } + ] + }, + { + "fields": [ + { + "type": "button", + "class": "btn-ungroup btn-group-sm", + "nb_cols": 12, + "name": "update_button", + "id": "update_button", + "buttons": [ + { + "type": "submit", + "name": "form_submit", + "label": "FORM_UPDATE", + "class": "btn-primary" + }, + { + "type": "button", + "name": "return_list", + "label": "FORM_RETURN_LIST", + "class": "btn-primary", + "event": "setMode(\"search\")" + } + ] + } + ] + } + ], + "event": "UpdateNetworkManager()", + "afterEvent": "editSectionForm()", + "tabs": { + "position": "top", + "list": [ + { + "label": "Tab 0", + "elements": [ + "update_button", + "user_id", + "networkmanager_id" + ] + } + ] + } + }, + "datasources": { + "datasource_1": { + "type": "web_service", + "dataType": "tableValue", + "name": "datasource_1", + "description": "", + "parameters": { + "filter": { + "relation": "AND", + "operators": [] + }, + "schema": "s_dtnet", + "table": "networkmanager" + }, + "ressource_id": "vitis/genericquerys", + "id": "datasource_1" + } + } +} \ No newline at end of file diff --git a/src/module_dtnet/module/javascript/script_module.js b/src/module_dtnet/module/javascript/script_module.js new file mode 100755 index 0000000000000000000000000000000000000000..7d72f3121c6fffb8c56f196fc4b5a01ede52fb75 --- /dev/null +++ b/src/module_dtnet/module/javascript/script_module.js @@ -0,0 +1,543 @@ +/* global vitisApp, goog, angular, bootbox, oVFB */ + +'use strict'; +goog.provide('dtnet.script_module'); +vitisApp.on('appMainDrtvLoaded', function () { + + /** + * loadDtnetConfig function. + * Chargement de la section "Configuration DTNET" dans l'onglet "Configuration". + * @expose + */ + angular.element(vitisApp.appMainDrtv).scope()["loadDtnetConfig"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + // + $log.info("loadDtnetConfig"); + // Paramètres des properties dans les valeurs du formulaire de config de Dtnet. + angular.element(vitisApp.appMainDrtv).scope()["setPropertiesFormValues"](); + // Surcharge l'url du formulaire des properties de Dtnet. + var scope = this; + var sTable = envSrvc["oSelectedObject"]["name"]; + scope["oFormRequestParams"] = { + "sUrl": "modules/dtnet/forms/" + envSrvc["oSelectedMode"]["mode_id"] + "/" + sTable + "_" + envSrvc["oSectionForm"][sTable]["sections"][envSrvc["oSectionForm"][sTable]["iSelectedSectionIndex"]]["name"] + ".json" + }; + }; + + /** + * loadDtnetUser function. + * Chargement de la section "Vmap" dans l'onglet "Utilisateurs" (mode "Utilisateurs"). + **/ + angular.element(vitisApp.appMainDrtv).scope()['loadDtnetUser'] = function () { + + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + + // Surcharge l'url du formulaire des utilisateurs de Vmap. + var scope = this; + var sTable = envSrvc["oSelectedObject"]["name"]; + scope["oFormRequestParams"] = { + "sUrl": "modules/dtnet/forms/" + envSrvc["oSelectedMode"]["mode_id"] + "/" + sTable + "_" + envSrvc["oSectionForm"][sTable]["sections"][envSrvc["oSectionForm"][sTable]["iSelectedSectionIndex"]]["name"] + ".json" + }; + }; + + angular.element(vitisApp.appMainDrtv).scope()["saveCerfaModif"] = function () { + + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + + var sRequestMethod = "PUT"; + var sRequestUrl = propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/dtnet/dtdicts/" + envSrvc["sId"] + "/cerfa"; + var oFormData = formSrvc["getFormData"](envSrvc["sFormDefinitionName"]); + ajaxRequest({ + "method": sRequestMethod, + "url": sRequestUrl, + "data": oFormData, + "success": function (response) {}, + }); + }; + + angular.element(vitisApp.appMainDrtv).scope()["UpdateNetworkManager"] = function () { + + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + var $formscope = angular.element("#users_vitis_users-form").scope(); + + if (!goog.isDefAndNotNull(oFormData)) { + oFormData = formSrvc["getFormData"](envSrvc["sFormDefinitionName"]); + } + + // Paramètres du service web. + var sResourceId = envSrvc["getSectionWebServiceResourceId"](); + var aResourceId = envSrvc["explodeWebServiceResourceId"](sResourceId); + + var sRequestMethod; + var sRequestUrl = propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/" + aResourceId[0] + "/" + aResourceId[1]; + var oFormData; + + if ($formscope["oFormValues"][$formscope["sFormDefinitionName"]]["newUser"] == false) { + + oFormData = formSrvc["getFormData"](envSrvc["sFormDefinitionName"]); + + sRequestMethod = "PUT"; + sRequestUrl += "/" + envSrvc["sId"]; + + } else { + + oFormData = { + 'user_id' : $formscope["oFormValues"][$formscope["sFormDefinitionName"]]['user_id'], + 'networkmanager_id' : $formscope["oFormValues"][$formscope["sFormDefinitionName"]]['networkmanager_id']['selectedOption']['value'] + }; + + sRequestMethod = "POST"; + } + ajaxRequest({ + "method": sRequestMethod, + "url": sRequestUrl, + "data": oFormData, + "success": function (response) {} + }); + }; + + /** + * getDtNetTree function. + * Chargement de l'arbre d'un objet de dtnet' + * @expose + */ + angular.element(vitisApp.appMainDrtv).scope()["getDtNetTree"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + + var aParams = { + "demande_dtnet_mail":{ + "formId": "demande_dtnet_mail_mail_file_manager-form", + "event": "update_data_treeview_fileSelected", + "objectFolder" : "mail", + "ws" : "mails", + "path" : "/.." + }, + "supervision_dtnet_dtnet_unr_mail":{ + "formId": "demande_dtnet_mail_mail_file_manager-form", + "event": "update_data_treeview_fileSelected", + "objectFolder" : "mail", + "ws" : "unr_mails", + "path" : "/.." + }, + "demande_dtnet_dtdict": { + "formId": "demande_dtnet_dtdict_dtdict_file_manager-form", + "event": "update_data_treeview_dtdict_file", + "objectFolder" : "dtdict", + "ws" : "dtdicts", + "path" : "" + }, + "supervision_dtnet_dtnet_unr_dtdict": { + "formId": "demande_dtnet_dtdict_dtdict_file_manager-form", + "event": "update_data_treeview_dtdict_file", + "objectFolder" : "dtdict", + "ws" : "unr_dtdicts", + "path" : "" + }, + "exploitant_dtnet_networkmanager":{ + "formId": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "event": "update_data_treeview_nm_file", + "objectFolder" : "networkmanager", + "ws" : "networkmanagers", + "path" : "" + }, + "exploitant_dtnet_network" : { + "formId": "demande_dtnet_dtdict_dtdict_file_manager-form", + "event": "update_data_treeview_network_file", + "objectFolder" : "network", + "ws" : "networks", + "path" : "" + }, + "supervision_dtnet_dtnet_unr_networkmanager":{ + "formId": "exploitant_dtnet_networkmanager_nm_file_manager-form", + "event": "update_data_treeview_nm_file", + "objectFolder" : "networkmanager", + "ws" : "unr_networkmanagers", + "path" : "" + }, + "supervision_dtnet_dtnet_unr_network" : { + "formId": "demande_dtnet_dtdict_dtdict_file_manager-form", + "event": "update_data_treeview_network_file", + "objectFolder" : "network", + "ws" : "unr_networks", + "path" : "" + } + } + var $formscope = angular.element("#" + aParams[envSrvc["oSelectedObject"]["name"]]["formId"]).scope(); + + $formscope.$root["aDtNetParams"] = aParams; + // + $log.info("getDtNetTree"); + + ajaxRequest({ + "method": "GET", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/" + envSrvc["getSectionWebServiceResourceId"]() + "/" + envSrvc["sId"], + "success": function (response) { + $formscope["oFormValues"][$formscope["sFormDefinitionName"]]["pdfList"] = response["data"][aParams[envSrvc["oSelectedObject"]["name"]]["ws"]][0]["pdfList"]; + + $formscope.$root.$broadcast(aParams[envSrvc["oSelectedObject"]["name"]]["event"], angular.element(vitisApp.appMainDrtv).scope()["aNodeConstructor"]($formscope["oFormValues"][$formscope["sFormDefinitionName"]]["pdfList"])); + } + }); + }; + + /** + * replaceDtdictPdfFile function. + * Chargement de l'arbre de l'objet dtdict. + */ + angular.element(vitisApp.appMainDrtv).scope()["aNodeConstructor"] = function (aList, sPath) { + if(!goog.isDefAndNotNull(sPath)){ + sPath = "/"; + } else { + sPath += "/" + } + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var aParams = angular.element(vitisApp.appMainDrtv).scope().$root["aDtNetParams"] + var aNodes = []; + for(var i = 0;i < aList.length; i++){ + var aNode = { + "value": sPath + aList[i]["filename"], + "tags": [aList[i]["lastModification"]] + } + if(goog.isDefAndNotNull(aList[i]["content"])){ + aNode["text"] = aList[i]["filename"]; + aNode["nodes"] = angular.element(vitisApp.appMainDrtv).scope()["aNodeConstructor"](aList[i]["content"], sPath + aList[i]["filename"]); + aNode["selectable"] = false; + } else { + aNode["text"] = aList[i]["filename"] + " (" + aList[i]["size"] + ")"; + aNode["href"] = propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["ws_data_alias"] + "/dtnet/" + aParams[envSrvc["oSelectedObject"]["name"]]["objectFolder"] + "/" + envSrvc["sId"] + aParams[envSrvc["oSelectedObject"]["name"]]["path"] + sPath + aList[i]["filename"] + "?d=" + new Date().getTime(); + aNode["target"] = "_blank"; + } + aNodes.push(aNode); + } + return aNodes; + }; + + /** + * replaceDtdictPdfFile function. + * Chargement de l'arbre de l'objet dtdict. + * @expose + */ + angular.element(vitisApp.appMainDrtv).scope()["dtdictPdfFile"] = function (sCmd) { + var $scope = angular.element(vitisApp.appMainDrtv).scope(); + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var $formscope = angular.element("#" + $scope.$root["aDtNetParams"][envSrvc["oSelectedObject"]["name"]]["formId"]).scope() + + $formscope["oFormValues"][$formscope["sFormDefinitionName"]]["cmd"] = sCmd; + //setTimeout(function(){angular.element(vitisApp.appMainDrtv).scope()["getDtNetTree"]();}, 1000); + }; + + /** + * replaceDtdictPdfFile function. + * Chargement de l'arbre de l'objet dtdict. + * @expose + */ + angular.element(vitisApp.appMainDrtv).scope()["reloadDtNetTree"] = function () { + + angular.element(vitisApp.appMainDrtv).scope()["getDtNetTree"](); + angular.element(vitisApp.appMainDrtv).scope()["editSectionForm"](); + }; + + /** + * callDtnetMethode function. + * Chargement de l'arbre de l'objet dtdict. + * @expose + */ + angular.element(vitisApp.appMainDrtv).scope()["callDtnetMethode"] = function (sMethod) { + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + ajaxRequest({ + "method": "PUT", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/" + envSrvc["getSectionWebServiceResourceId"]() + "/" + envSrvc["sId"], + "params": {"method" : sMethod}, + "success": function (response) { + angular.element(vitisApp.appMainDrtv).scope()["setMode"]('search'); + } + }); + }; + + /** + * selectMailPdfFile function. + * Chargement de l'arbre de l'objet dtdict. + * @expose + */ + angular.element(vitisApp.appMainDrtv).scope()["selectMailPdfFile"] = function () { + var envSrvc = angular.element(vitisApp.appWorkspaceListDrtv).injector().get(["envSrvc"]); + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + var $formscope = angular.element("#demande_dtnet_mail_mail_file_manager-form").scope() + var sSelectedFile = $formscope["oFormValues"][$formscope["sFormDefinitionName"]]["fileSelected"]; + if(sSelectedFile !== ""){ + if(sSelectedFile.indexOf("|") === -1){ + if(sSelectedFile.indexOf(".pdf") > -1){ + ajaxRequest({ + "method": "PUT", + "url": propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/dtnet/mails/" + envSrvc["sId"], + "data": { + "fileSelected" : sSelectedFile + }, + "success": function(response) { + }, + "error": function (response) { + console.error("response: ", response["status"]); + } + }); + }else{ + bootbox.alert('<h4>Veuillez sélectionner un unique fichier pdf</h4>'); + } + }else{ + bootbox.alert('<h4>Veuillez sélectionner un unique fichier pdf</h4>'); + } + }else { + bootbox.alert('<h4>Veuillez sélectionner un unique fichier pdf</h4>'); + } + }; + + /** + * appCitiesListDrtv directive. + * Mise en forme de la colonne "Communes" dans la liste de l'onglet "Declaration". + * @param {service} $translate Translate service. + * @ngInject + **/ + vitisApp.appCitiesListDrtv = function ($translate) { + return { + link: function (scope, element, attrs) { + // 1er affichage ou tri de la liste : maj de la mise en forme. + var clearObserver = attrs.$observe("appCitiesList", function (value) { + // Si le champ est vide : supprime l'icône. + if (scope["row"]["entity"][scope["col"]["field"]] == null || scope["row"]["entity"][scope["col"]["field"]] == "") + element[0].className = ""; + else { + // Classes css (ui-grid + spécifiques). + element[0].className = "ui-grid-cell-contents icon-office"; + // Traduction du titre et du contenu. + $translate(["OFFICE_TOOLTIP_TITLE_DTNET_DTDICT"]).then(function (translations) { + // Création du "tooltip". + $(element)["popover"]({ + "trigger": "hover", + "container": "body", + "title": function () { + return translations["OFFICE_TOOLTIP_TITLE_VMAP_MAP_SERVICE"]; + }, + "content": function () { + return scope["row"]["entity"][scope["col"]["field"]].replace(/\|/g, "<br>"); + }, + // Placement du tooltip à gauche ou à droite suivant la position horizontale de l'élément. + "placement": function (oPopoverNode, oElementNode) { + return scope.$root["workspaceTooltipPlacement"](oElementNode); + }, + "html": true + }); + }); + } + }); + // Attends la suppression du scope. + scope.$on("$destroy", function () { + // Supprime le tooltip. + $(element)["popover"]("destroy"); + // Supprime l'observateur. + clearObserver(); + }); + } + } + }; + vitisApp["compileProvider"].directive('appCitiesList', vitisApp.appCitiesListDrtv); + + + /** + * appCitiesListDrtv directive. + * Mise en forme de la colonne "Communes" dans la liste de l'onglet "Declaration". + * @param {service} $translate Translate service. + * @ngInject + **/ + vitisApp.appResponseTimeDrtv = function ($translate) { + return { + link: function (scope, element, attrs) { + + // 1er affichage ou tri de la liste : maj de la mise en forme. + //var clearObserver = + scope.$watch("row.entity.dtdict_id", function (value) { + + $(element)["popover"]("destroy"); + var sScopeType, sScopeEtat, sScopeTimeDemande, sScopeTimeTravaux, sScopeCanal, sScopeReminder; + // Sécurité sur les attributs Type de demande et Etat de la demande + if (goog.isDefAndNotNull(scope["row"]["entity"]["dtdicttype"]) || goog.isDefAndNotNull(scope["row"]["entity"]["status_name"])) { + // Récupération du type de demande + sScopeType = scope["row"]["entity"]["dtdicttype"]; + // Récupération du status de la demande + sScopeEtat = scope["row"]["entity"]["status_name"]; + // Récupération de la date de la demande + sScopeTimeDemande = scope["row"]["entity"]["creationdate"]; + // Récupération de la date des travaux + sScopeTimeTravaux = scope["row"]["entity"]["projectbeginningdate"]; + // Récupération du type canal de demande utilisé + sScopeCanal = (goog.isDefAndNotNull(scope["row"]["entity"]["receptiontype"]))?scope["row"]["entity"]["receptiontype"]:"MAIL"; + // Récupération relance de demande ou non + sScopeReminder = scope["row"]["entity"]["reminder"]; + }else{ + console.warn("parameter(s) missing : ", scope["row"]["entity"]); + element[0].className = ""; + return; + } + + if (sScopeEtat == "Non conforme" || sScopeEtat == "Réponse envoyée") { + // Classes css (ui-grid + spécifiques). + element[0].className = "ui-grid-cell-contents true-icon"; + }else { + // Initialisation des temps maximum de réponse + var matDmat = (sScopeCanal === "MAIL")?"demat":"mat"; + matDmat = (sScopeReminder === true)?"reminder":matDmat; + + var oLawRestriction = { + "DT":{ + "mat": 15, + "demat": 9, + "scale":[24,48] + }, + "DICT":{ + "mat": 9, + "demat": 7, + "scale":[24,48] + }, + "DDC":{ + "mat": 15, + "demat": 9, + "reminder": 2, + "scale":[24,48] + }, + "ATU":{ + "mat": -0.5, + "demat": -0.5, + "scale":[3,6] + } + }; + + var nDateLimit = oLawRestriction[sScopeType][matDmat] * 24; // remplace les anciennes variables + var aLimitScale = oLawRestriction[sScopeType]["scale"]; // remplace les anciennes variables + // Initialisation des dates au format + var oDateDemande = moment(sScopeTimeDemande, "YYYY-MM-DD HH:mm:ss"); + var oToday = moment(); + var oDateTravaux = moment(sScopeTimeTravaux, "YYYY-MM-DD HH:mm:ss"); + var iWNbJours, iSpentTime, iRemainTime; + // Variable pour temps restant ecoulé + var bRetard = false; + var sPopoverText = ""; + + if(nDateLimit > 0){ + //Calcul du nombres d'heure écoulé depuis la création de la demande + iWNbJours = oToday["diff"](oDateDemande); + // temps en heures + iSpentTime = Math.ceil(iWNbJours / (1000 * 60 * 60)); + iRemainTime = nDateLimit - iSpentTime; + sPopoverText = oToday["to"](oDateDemande["add"](nDateLimit, 'h'), true); + } else { + //cas de l'ATU + //calcul du nombre d'heure jusqu'au début des travaux + iWNbJours = oDateTravaux["diff"](oToday); + + iRemainTime = Math.ceil(iWNbJours / (1000 * 60 * 60)); + sPopoverText = oToday["to"](oDateTravaux, true); + } + + if (iRemainTime > aLimitScale[1]){ + element[0].className = "ui-grid-cell-contents icon-stopwatch"; + element[0].style.color = "#2EFF14"; + } else if(iRemainTime > aLimitScale[0] && iRemainTime <= aLimitScale[1]){ + element[0].className = "ui-grid-cell-contents icon-stopwatch"; + element[0].style.color = "#ffbf29"; + } else if(iRemainTime > 0 && iRemainTime <= aLimitScale[0]) { + element[0].className = "ui-grid-cell-contents icon-stopwatch"; + element[0].style.color = "#FF0A0A"; + }else{ + bRetard = true; + element[0].className = "ui-grid-cell-contents false-icon "; + } + + // Si il reste du temps pour répondre a la demande mise en place d'une popover contenant le temps restant + if (bRetard == false) { + $translate(["RESPONSETIME_TOOLTIP_TITLE_DTNET_DTDICT"]).then(function (translations) { + // Création du "tooltip". + $(element)["popover"]({ + "trigger": "hover", + "container": "body", + "title": translations["RESPONSETIME_TOOLTIP_TITLE_VMAP_MAP_SERVICE"], + "content": sPopoverText, + // Placement du tooltip à gauche ou à droite suivant la position horizontale de l'élément. + "placement": function (oPopoverNode, oElementNode) { + return scope.$root["workspaceTooltipPlacement"](oElementNode); + }, + "html": true + }); + }); + } + } + }); + // Attends la suppression du scope. + scope.$on("$destroy", function () { + // Supprime le tooltip. + $(element)["popover"]("destroy"); + // Supprime l'observateur. + //clearObserver(); + }); + } + } + }; + vitisApp["compileProvider"].directive('appResponseTime', vitisApp.appResponseTimeDrtv); + + /** + * initDtnetDtdictMapForm function. + * Traitements avant l'affichage du formulaire de la section "General" de l'onglet "Déclarations" (mode "Demandes"). + **/ + angular.element(vitisApp.appMainDrtv).scope()["initDtnetDtdictMapForm"] = function () { + // Injection des services. + var $log = angular.element(vitisApp.appMainDrtv).injector().get(["$log"]); + var $rootScope = angular.element(vitisApp.appMainDrtv).injector().get(["$rootScope"]); + var envSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["envSrvc"]); + var formSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["formSrvc"]); + // + $log.info("initDtnetDtdictMapForm"); + // + var clearListener = $rootScope.$on('formExtracted', function (event, sFormDefinitionName) { + // Supprime le "listener". + clearListener(); + if (envSrvc["sMode"] != "insert") { + // Change le zoom. + var oGeomDef = formSrvc["getFormElementDefinition"]("geom2", envSrvc["sFormDefinitionName"], envSrvc["oFormDefinition"]); + var oMap = angular.element("#" + oGeomDef["id"]).scope()["oMap"]; + oMap["setZoom"](17); + } + }); + }; + + /** + * getAreaDocument function. + * get url document zone de document pour le visualiser. + **/ + angular.element(vitisApp.appMainDrtv).scope().$root["getAreaDocument"] = function (sId) { + // Injection des services. + var propertiesSrvc = angular.element(vitisApp.appMainDrtv).injector().get(["propertiesSrvc"]); + //var oFormReaderScope = angular.element("#select_edit_form_reader").scope(); + var oFormReaderScope = angular.element($('#' + sId).children()).scope(); + + var sPath = oFormReaderScope["oFormValues"][oFormReaderScope["sFormDefinitionName"]]["document"]; + console.log(sPath); + console.log(oFormReaderScope); + var aPath = sPath.split("/"); + var sFileName = aPath[aPath.length - 1] + + if(sPath.indexOf('http') !== 0) { + var sWebServiceUrl = propertiesSrvc["web_server_name"] + "/" + propertiesSrvc["services_alias"] + "/dtnet/areas?filePath="+ sPath; + window.open(sWebServiceUrl, sFileName); + } else { + window.open(sPath, sFileName); + } + }; +}); \ No newline at end of file diff --git a/src/module_dtnet/module/lang/lang-en.json b/src/module_dtnet/module/lang/lang-en.json new file mode 100755 index 0000000000000000000000000000000000000000..e29ea907809c33e4aec5d9b67c16f217b7430ec0 --- /dev/null +++ b/src/module_dtnet/module/lang/lang-en.json @@ -0,0 +1,125 @@ +{ + "TEXT_MODE_DEMANDE" : "Gestion des demandes DT/DTICT", + "TITLE_MODE_DEMANDE" : "Demandes", + "TEXT_MODE_EXPLOITANT" : "Administration des gestionnaires de réseaux", + "TITLE_MODE_EXPLOITANT" : "Exploitant", + "TEXT_MODE_SUPERVISION_DTNET" : "Supervision du module DtNet", + "TITLE_MODE_SUPERVISION_DTNET" : "Supervision", + "DEMANDE_DTNET_DTDICT_TITLE" : "", + "DEMANDE_DTNET_DTDICT_TITLE_INSERT" : "", + "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" : "Id", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE" : "Date de la demande", + "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER" : "Numéro de consultation du téléservice", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE" : "Type de la demande", + "DEMANDE_DTNET_DTDICT_FORM_CALLER" : "Demandeur", + "DEMANDE_DTNET_DTDICT_FORM_WORKADRESS" : "Adresse des travaux", + "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE" : "Date de réponse", + "DEMANDE_DTNET_DTDICT_FORM_FEATURESDT" : "Caractéristiques de la DT", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTFILE" : "Fichier de demande (PDF)", + "DEMANDE_DTNET_DTDICT_FORM_RESPONSEFILE" : "Fichier de réponse", + "DEMANDE_DTNET_DTDICT_FORM_GEOM" : "Etendue", + "DEMANDE_DTNET_DTDICT_FORM_XMLFILE" : "Fichier de demande (XML)", + "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE" : "Date de création", + "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME" : "Etat", + "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER" : "SIRET du demandeur", + "DEMANDE_DTNET_DTDICT_FORM_CERFA_UPDATE" : "Mettre à jour la réponse", + "DEMANDE_DTNET_DTDICT_FORM_CERFA_SIGN" : "Signer la réponse", + "DEMANDE_DTNET_DTDICT_FORM_SIPERVISORNAME" : "Responsable", + "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORPHONE" : "Téléphone du responsable)", + "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORMAIL" : "Mail du responsable", + "DEMANDE_DTNET_DTDICT_FORM_SIRETDT" : "Siret demandeur", + "DEMANDE_DTNET_DTDICT_FORM_CONTACTNAMEDT" : "Responsable (DT)", + "DEMANDE_DTNET_DTDICT_FORM_FAXDT" : "Fax du responsable (DT)", + "DEMANDE_DTNET_DTDICT_FORM_MAILDT" : "Mail du resposable (DT)", + "DEMANDE_DTNET_DTDICT_FORM_ADRESSDT" : "adresse de la DT", + "DEMANDE_DTNET_DTDICT_FORM_REMINDER" : "Demande relance ?", + "DEMANDE_DTNET_DTDICT_FORM_MAILRECEPTIONDATE" : "Mail reçu le :", + "DEMANDE_DTNET_DTDICT_FORM_RECEPTIONTYPE" : "Demande reçu par :", + "DEMANDE_DTNET_MAIL_FORM_MAIL_ID" : "Id", + "DEMANDE_DTNET_MAIL_FORM_MAIL_UID" : "Uid", + "DEMANDE_DTNET_MAIL_FORM_REQUEST_ID" : "Demande associée", + "DEMANDE_DTNET_MAIL_FORM_SENDER" : "Expediteur", + "DEMANDE_DTNET_MAIL_FORM_RECEIVER" : "Destinataire", + "DEMANDE_DTNET_MAIL_FORM_SUBJECT" : "Objet", + "DEMANDE_DTNET_MAIL_FORM_CONTENT" : "Content", + "DEMANDE_DTNET_MAIL_FORM_STATUS" : "Etat", + "DEMANDE_DTNET_MAIL_FORM_VALIDITY" : "Le mail est valide ?", + "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE" : "", + "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE_INSERT" : "", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID" : "Id", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME" : "Nom de l'entreprise", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS" : "Email de réception", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON" : "Logo", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD" : "Mot de passe de la boîte mail", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL" : "Email de la personne à contacter", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE" : "Utiliser le mode automatique ?", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE" : "Oui", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE" : "Non", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME" : "Personne à contacter", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS" : "Adresse", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS" : "Lieu-dit/BP", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE" : "Code postal", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY" : "Commune", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE" : "Téléphone", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX" : "Fax", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME" : "Nom Complet", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE" : "Fichier de signature (png|jpeg|...)", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT" : "Etendue", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS" : "Système de coordonnée pour la génération des plans", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER" : "Numéro de SIRET", + "EXPLOITANT_DTNET_NETWORK_TITLE" : "", + "EXPLOITANT_DTNET_NETWORK_TITLE_INSERT" : "", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID" : "Id", + "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE" : "Code d'ouvrage", + "EXPLOITANT_DTNET_NETWORK_FORM_GEODATAVERSION" : "Version des données géographique", + "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE" : "Date de chargement", + "EXPLOITANT_DTNET_NETWORK_FORM_MAINNETWORKCONNECTION" : "Rattachement au réseau principal ?", + "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX" : "Distance maximum", + "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE" : "Echelle de sortie du plan détaillé", + "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL" : "Service WMS du plan détaillé", + "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE" : "Echelle de sortie du plan de situation", + "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL" : "Service WMS du plan de situation", + "EXPLOITANT_DTNET_NETWORK_FORM_MAPSIZE" : "Etendue", + "EXPLOITANT_DTNET_NETWORK_FORM_ATTACHEDFILE" : "Fichier Annexe", + "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYRECOMMENDATION" : "Recommandation de sécurtié", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGERMAILADDRESS" : "Mail pour contacter l'exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR" : "Responsable du dossier", + "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE" : "Service du responsable", + "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE" : "Téléphone du responsable", + "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME" : "Nom du signataire", + "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID" : "Catégorie", + "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID" : "Sensibilité", + "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID" : "Condition", + "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID" : "Positionnement", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGER_ID" : "Exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_BACKGROUNDMAPNAME" : "Nom de la couche fond de plan", + "EXPLOITANT_DTNET_NETWORK_FORM_CAPTION" : "Légende", + "EXPLOITANT_DTNET_NETWORK_FORM_RUBRIQUESGUIDE" : "Rubriques guide", + "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE" : "Peut être mis hors tension ?", + "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYMEASURES" : "Mesures de sécurité", + "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYSYSTEM" : "Dispositifs de sécurité", + "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE" : "Téléphone en cas d'endommagement", + "EXPLOITANT_DTNET_NETWORK_FORM_ISAUTOMODE" : "Utiliser le mode automatique pour ce réseau ?", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGERNAME" : "Nom de l'exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_ZIOBUFFER" : "Zone de définition de la ZIO", + "EXPLOITANT_DTNET_NETWORK_FORM_ANSWERFORUNSENSITIVEATU" : "Réponse automatique ATU non sensible ?", + "DEMANDE_DTNET_MAIL_TITLE" : "", + "DEMANDE_DTNET_MAIL_TITLE_INSERT" : "", + "DEMANDE_DTNET_MAIL_FORM_NETWORKMANAGERNAME" : "Exploitant", + "DEMANDE_DTNET_MAIL_FORM_STATUS_NAME" : "Etat", + "DEMANDE_DTNET_MAIL_FORM_RECEPTIONDATE" : "Date de réception", + "DEMANDE_DTNET_MAIL_FORM_ATTACHEDFILEDIRECTORY" : "Dossier contenant les pièces jointes", + "SUPERVISION_DTNET_UNR_MAIL_TITLE" : "", + "SUPERVISION_DTNET_UNR_MAIL_TITLE_INSERT" : "", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_SCHEMA_DTNET" : "Schéma de DtNet", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_AUTH" : "Protocole utilisé par le serveur Imap ('', 'ssl')", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_PORT" : "Port utilisé par le serveur Imap", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_SERVER" : "Adresse du serveur Imap", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_LOGIN_BOT" : "Login du robot DtNet", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_PASS_BOT" : "Mot de passe du robot", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_MAILREADER_PROJECTKEY" : "Clé du projet GTF générant les déclarations à partir des mails", + "OFFICE_TOOLTIP_TITLE_VMAP_MAP_SERVICE" : "Cities List", + "RESPONSETIME_TOOLTIP_TITLE_VMAP_MAP_SERVICE" : "Time Remaining", + "DEMANDE_DTNET_DTDICT_MAP_TITLE" : "", + "DEMANDE_DTNET_DTDICT_MAP_FORM_GEOM" : "Etendue" +} \ No newline at end of file diff --git a/src/module_dtnet/module/lang/lang-fr.json b/src/module_dtnet/module/lang/lang-fr.json new file mode 100755 index 0000000000000000000000000000000000000000..22606b61222ed4b0e7f41ea2ad6b18f4647b5abd --- /dev/null +++ b/src/module_dtnet/module/lang/lang-fr.json @@ -0,0 +1,206 @@ +{ + "TEXT_MODE_DEMANDE" : "Gestion des déclarations de DT/DTICT", + "TITLE_MODE_DEMANDE" : "Déclarations", + "TEXT_MODE_EXPLOITANT" : "Administration des gestionnaires de réseaux", + "TITLE_MODE_EXPLOITANT" : "Exploitant", + "TEXT_MODE_SUPERVISION_DTNET" : "Supervision du module DtNet", + "TITLE_MODE_SUPERVISION_DTNET" : "Supervision", + "DEMANDE_DTNET_DTDICT_TITLE" : "Informations sur la déclaration", + "DEMANDE_DTNET_DTDICT_FORM_DTDICT_ID" : "Id", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE" : "Date de la demande", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE_BEFORE" : "Demande faite avant le", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTDATE_AFTER" : "Demande faite après le", + "DEMANDE_DTNET_DTDICT_FORM_SERVICECONSULTATIONNUMBER" : "Numéro de consultation du téléservice", + "DEMANDE_DTNET_DTDICT_FORM_DTDICTTYPE" : "Type de la déclaration", + "DEMANDE_DTNET_DTDICT_FORM_CALLER" : "Demandeur", + "DEMANDE_DTNET_DTDICT_FORM_WORKADRESS" : "Adresse des travaux", + "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE" : "Date de réponse", + "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE_BEFORE" : "Réponse envoyé avant le", + "DEMANDE_DTNET_DTDICT_FORM_RESPONSEDATE_AFTER" : "Réponse envoyé après le", + "DEMANDE_DTNET_DTDICT_FORM_FEATURESDT" : "Caractéristiques de la DT", + "DEMANDE_DTNET_DTDICT_FORM_PDFREQUESTFILE" : "Fichier de déclaration (PDF)", + "DEMANDE_DTNET_DTDICT_FORM_RESPONSEFILE" : "Fichier de réponse", + "DEMANDE_DTNET_DTDICT_FORM_GEOM" : "Etendue", + "DEMANDE_DTNET_DTDICT_FORM_XMLREQUESTFILE" : "Fichier de déclaration (XML)", + "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE" : "Date de création", + "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE_BEFORE" : "Créé avant le", + "DEMANDE_DTNET_DTDICT_FORM_CREATIONDATE_AFTER" : "Créé après le", + "DEMANDE_DTNET_DTDICT_FORM_STATUS_NAME" : "Etat", + "DEMANDE_DTNET_DTDICT_FORM_STATUS_NETWORKINTERSECTED" : "Réseaux impactés", + "DEMANDE_DTNET_DTDICT_FORM_CALLERSIRETNUMBER" : "SIRET du demandeur", + "DEMANDE_DTNET_DTDICT_FORM_CERFA_UPDATE" : "Valider la réponse", + "DEMANDE_DTNET_DTDICT_FORM_CERFA_SIGN" : "Signer la réponse", + "DEMANDE_DTNET_DTDICT_FORM_SIPERVISORNAME" : "Responsable", + "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORPHONE" : "Téléphone du responsable)", + "DEMANDE_DTNET_DTDICT_FORM_SUPERVISORMAIL" : "Mail du responsable", + "DEMANDE_DTNET_DTDICT_FORM_SIRETDT" : "Siret demandeur", + "DEMANDE_DTNET_DTDICT_FORM_CONTACTNAMEDT" : "Responsable (DT)", + "DEMANDE_DTNET_DTDICT_FORM_FAXDT" : "Fax du responsable (DT)", + "DEMANDE_DTNET_DTDICT_FORM_MAILDT" : "Mail du resposable (DT)", + "DEMANDE_DTNET_DTDICT_FORM_ADRESSDT" : "adresse de la DT", + "DEMANDE_DTNET_DTDICT_FORM_REMINDER" : "Déclaration relance ?", + "DEMANDE_DTNET_DTDICT_FORM_MAILRECEPTIONDATE" : "Mail reçu le :", + "DEMANDE_DTNET_DTDICT_FORM_RECEPTIONTYPE" : "déclaration reçu par :", + "DEMANDE_DTNET_DTDICT_FORM_CERFA_WRONG" : "Refuser la réponse", + "DEMANDE_DTNET_MAIL_FORM_MAIL_ID" : "Id", + "DEMANDE_DTNET_MAIL_FORM_MAIL_UID" : "Uid", + "DEMANDE_DTNET_MAIL_FORM_REQUEST_ID" : "Déclaration associée", + "DEMANDE_DTNET_MAIL_FORM_SENDER" : "Expediteur", + "DEMANDE_DTNET_MAIL_FORM_RECEIVER" : "Destinataire", + "DEMANDE_DTNET_MAIL_FORM_SUBJECT" : "Objet", + "DEMANDE_DTNET_MAIL_FORM_CONTENT" : "Content", + "DEMANDE_DTNET_MAIL_FORM_STATUS" : "Etat", + "DEMANDE_DTNET_MAIL_FORM_VALIDITY" : "Le mail est valide ?", + "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE" : "Gestion des fichiers de réponses", + "DEMANDE_DTNET_DTDICT_FORM_PDFORDER" : "Contenu de la réponse", + "DEMANDE_DTNET_DTDICT_FORM_PDFADD" : "Fichier à ajouter", + "DEMANDE_DTNET_DTDICT_FORM_PDF_RM" : "Supprimer les fichiers séléctionnés", + "DEMANDE_DTNET_DTDICT_FORM_PDF_ADD" : "Ajouter le fichier", + "EXPLOITANT_DTNET_NETWORKMANAGER_TITLE" : "Paramètre de l'exploitant {{sId}}", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGER_ID" : "Id", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_NETWORKMANAGERNAME" : "Nom de l'entreprise", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_RECEIPTADDRESS" : "Email de réception", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ICON" : "Logo", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PASSWORD" : "Mot de passe de la boîte mail", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTMAIL" : "Email de la personne à contacter", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE" : "Utiliser le mode automatique ?", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_TRUE" : "Oui", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ISAUTOMODE_FALSE" : "Non", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CONTACTNAME" : "Personne à contacter", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ADDRESS" : "Adresse", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OTHERDETAILSADDRESS" : "Lieu-dit/BP", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_ZIPCODE" : "Code postal", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_CITY" : "Commune", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PHONE" : "Téléphone", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FAX" : "Fax", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_FULLNAME" : "Nom Complet", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIGNATUREFILE" : "Fichier de signature (png|jpeg|...)", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_EXTENT" : "Etendue", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_OUTPUTCOORDSYS" : "Système de coordonnée pour la génération des plans", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_SIRETNUMBER" : "Numéro de SIRET", + "EXPLOITANT_DTNET_NETWORK_TITLE" : "Caractéristiques du réseau {{sId}}", + "EXPLOITANT_DTNET_NETWORK_TITLE_INSERT" : "Définition d'un nouveau réseau", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_ID" : "Id", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORK_PDFORDER" : "Fichier(s) annexe(s) :", + "EXPLOITANT_DTNET_NETWORK_FORM_WORKCODE" : "Code d'ouvrage", + "EXPLOITANT_DTNET_NETWORK_FORM_GEODATAVERSION" : "Version des données géographique", + "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE" : "Date de chargement", + "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE_AFTER" : "Chargé après le", + "EXPLOITANT_DTNET_NETWORK_FORM_LOADINGDATE_BEFORE" : "Chargé avant le", + "EXPLOITANT_DTNET_NETWORK_FORM_MAINNETWORKCONNECTION" : "Rattachement au réseau principal ?", + "EXPLOITANT_DTNET_NETWORK_FORM_DISTANCEMAX" : "Distance maximum", + "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE" : "Echelle de sortie du plan détaillé", + "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL" : "Service WMS du plan détaillé", + "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE" : "Echelle de sortie du plan de situation", + "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL" : "Service WMS du plan de situation", + "EXPLOITANT_DTNET_NETWORK_FORM_MAPSIZE" : "Etendue", + "EXPLOITANT_DTNET_NETWORK_FORM_ATTACHEDFILE" : "Fichier Annexe", + "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYRECOMMENDATION" : "Recommandation de sécurtié", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGERMAILADDRESS" : "Mail pour contacter l'exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISOR" : "Responsable du dossier", + "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORSERVICE" : "Service du responsable", + "EXPLOITANT_DTNET_NETWORK_FORM_FILESUPERVISORPHONE" : "Téléphone du responsable", + "EXPLOITANT_DTNET_NETWORK_FORM_SIGNATORYNAME" : "Nom du signataire", + "EXPLOITANT_DTNET_NETWORK_FORM_CATEGORY_ID" : "Catégorie", + "EXPLOITANT_DTNET_NETWORK_FORM_SENSITIVITY_ID" : "Sensibilité", + "EXPLOITANT_DTNET_NETWORK_FORM_CONDITION_ID" : "Condition", + "EXPLOITANT_DTNET_NETWORK_FORM_POSITIONING_ID" : "Positionnement", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGER_ID" : "Exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_BACKGROUNDMAPNAME" : "Nom de la couche fond de plan", + "EXPLOITANT_DTNET_NETWORK_FORM_CAPTION" : "Légende", + "EXPLOITANT_DTNET_NETWORK_FORM_RUBRIQUESGUIDE" : "Rubriques guide", + "EXPLOITANT_DTNET_NETWORK_FORM_ISSHUTDOWNPOSSIBLE" : "Peut être mis hors tension ?", + "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYMEASURES" : "Mesures de sécurité", + "EXPLOITANT_DTNET_NETWORK_FORM_SECURITYSYSTEM" : "Dispositifs de sécurité", + "EXPLOITANT_DTNET_NETWORK_FORM_PHONEIFDAMAGE" : "Téléphone en cas d'endommagement", + "EXPLOITANT_DTNET_NETWORK_FORM_ISAUTOMODE" : "Utiliser le mode automatique pour ce réseau ?", + "EXPLOITANT_DTNET_NETWORK_FORM_NETWORKMANAGERNAME" : "Nom de l'exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_ZIOBUFFER" : "Zone de définition de la ZIO", + "EXPLOITANT_DTNET_NETWORK_FORM_ANSWERFORUNSENSITIVEATU" : "Réponse automatique ATU non sensible ?", + "DEMANDE_DTNET_MAIL_TITLE" : "Information du mail {{sId}}", + "DEMANDE_DTNET_MAIL_FORM_NETWORKMANAGERNAME" : "Exploitant", + "DEMANDE_DTNET_MAIL_FORM_STATUS_NAME" : "Etat", + "DEMANDE_DTNET_MAIL_FORM_RECEPTIONDATE" : "Date de réception", + "DEMANDE_DTNET_MAIL_FORM_ATTACHEDFILEDIRECTORY" : "Dossier contenant les pièces jointes", + "SUPERVISION_DTNET_UNR_MAIL_TITLE" : "Information du mail {{sId}}", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_SCHEMA_DTNET" : "Schéma de DtNet", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_AUTH" : "Protocole utilisé par le serveur Imap ('', 'ssl')", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_PORT" : "Port utilisé par le serveur Imap", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_IMAP_SERVER" : "Adresse du serveur Imap", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_LOGIN_BOT" : "Login du robot DtNet", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_PASS_BOT" : "Mot de passe du robot", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_MAILREADER_PROJECTKEY" : "Clé du projet GTF générant les déclarations à partir des mails", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_PDFTK_COMMAND" : "Commande pdftk (disparaitra à la prochaine version)", + "CONFIGURATION_VITIS_CONFIGURATION_DTNETCONFIG_FORM_MAILREADER_LOG_FILE" : "Fichier de log du mailReader", + "OFFICE_TOOLTIP_TITLE_DTNET_DTDICT" : "Liste des communes", + "RESPONSETIME_TOOLTIP_TITTLE_DTNET_DTDICT" : "Temps Restant : ", + "DEMANDE_DTNET_DTDICT_CERFA_TITLE" : "Récépissé", + "DEMANDE_DTNET_DTDICT_CERFA_SAVE_CERFA" : "Mettre à jour", + "USERS_VITIS_USERS_TITLE" : "Profil de l'utilisateur", + "DEMANDE_DTNET_DTDICT_DTDICT_FILE_MANAGER_TITLE" : "Gestion des fichiers de la réponse", + "SECTION_UPDATE_TITLE_DEMANDE_DTNET_DTDICT": "Dtdict n° {{sId}}", + "SECTION_DISPLAY_TITLE_DEMANDE_DTNET_DTDICT": "Dtdict n° {{sId}}", + "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_TITLE" : "Gestions des pièces jointes", + "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_FORM_MAIL_ID" : "Id", + "DEMANDE_DTNET_MAIL_MAIL_FILE_MANAGER_FORM_ATTACHEDFILESDIRECTORY" : "Piéces Jointes", + "DTNET_MAIL_FILE_MANAGER_SELECT" : "Sélectionner ce fichier comme le PDF de la demande associée", + "SECTION_DISPLAY_TITLE_DEMANDE_DTNET_MAIL" : "Mail n° {{sId}}", + "EXPLOITANT_DTNET_NETWORKMANAGER_NM_FILE_MANAGER_TITLE" : "Gestion des annexes", + "DEMANDE_DTNET_DTDICT_MAP_TITLE" : "Emprise de la demande", + "DEMANDE_DTNET_DTDICT_MAP_FORM_GEOM" : "Emprise", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_TITLE" : "Informations du réseau", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_NETWORK_ID" : "network_id", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_WORKCODE" : "workcode", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_GEODATAVERSION" : "geodataversion", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_LOADINGDATE" : "loadingdate", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_MAINNETWORKCONNECTION" : "mainnetworkconnection", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_DETAILEDMAPOUTPUTSCALE" : "detailedmapoutputscale", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_DETAILEDMAPWMSURL" : "detailedmapwmsurl", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_SITUATIONMAPOUTPUTSCALE" : "situationmapoutputscale", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_SITUATIONMAPWMSURL" : "situationmapwmsurl", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_MAPSIZE" : "mapsize", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_ATTACHEDFILE" : "attachedfile", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_SECURITYRECOMMENDATION" : "securityrecommendation", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_NETWORKMANAGERMAILADDRESS" : "networkmanagermailaddress", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_CATEGORY_ID" : "category_id", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_SENSITIVITY_ID" : "sensitivity_id", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_CONDITION_ID" : "condition_id", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_POSITIONING_ID" : "positioning_id", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_NETWORKMANAGER_ID" : "networkmanager_id", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_BACKGROUNDMAPNAME" : "backgroundmapname", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_CAPTION" : "caption", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_RUBRIQUESGUIDE" : "rubriquesguide", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_SECURITYMEASURES" : "securitymeasures", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_SECURITYSYSTEM" : "securitysystem", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_ISAUTOMODE" : "isautomode", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_NETWORKMANAGERNAME" : "networkmanagername", + "SUPERVISION_DTNET_DTNET_UNR_NETWORK_FORM_ZIOBUFFER" : "ziobuffer", + "EXPLOITANT_DTNET_NETWORK_FORM_CAPTION" : "Descriptif du réseau", + "EXPLOITANT_DTNET_NETWORK_FORM_CAPTIONFILE" : "Fichier de légende", + "SUPERVISION_DTNET_DTNET_UNR_DTDICT_FORM_NETWORKMANAGERNAME" : "Exploitant associée", + "DTDICT_BUTTON_SAVE_CERFA" : "Sauvegarder les modifications", + "SECTION_UPDATE_TITLE_EXPLOITANT_DTNET_NETWORKMANAGER" : "Exploitant {{sId}}", + "SECTION_DISPLAY_TITLE_EXPLOITANT_DTNET_NETWORKMANAGER" : "Exploitant {{sId}}", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_PDFORDER" : "Fichier(s) annexe(s) de l'exploitant", + "SECTION_DISPLAY_TITLE_SUPERVISION_DTNET_DTNET_UNR_DTDICT" : "Dtdict n° {{sId}}", + "SECTION_DISPLAY_TITLE_SUPERVISION_DTNET_DTNET_UNR_MAIL" : "Mail n° {{sId}}", + "SECTION_UPDATE_TITLE_EXPLOITANT_DTNET_NETWORK" : "Réseau {{sId}}", + "SECTION_DISPLAY_TITLE_EXPLOITANT_DTNET_NETWORK" : "Réseau {{sId}}", + "SECTION_UPDATE_TITLE_SUPERVISION_DTNET_DTNET_UNR_NETWORKMANAGER" : "Exploitant {{sId}}", + "SECTION_DISPLAY_TITLE_SUPERVISION_DTNET_DTNET_UNR_NETWORKMANAGER" : "Exploitant {{sId}}", + "SECTION_DISPLAY_TITLE_SUPERVISION_DTNET_DTNET_UNR_NETWORK" : "Réseau {{sId}}", + "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK" : "Nature de travaux coupant le mode automatique", + "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK_FROM" : "Nature(s) de travaux disponibles", + "EXPLOITANT_DTNET_NETWORK_FORM_KINDOFWORK_TO" : "Nature(s) de travaux sélectionnée(s)", + "SECTION_INSERT_TITLE_EXPLOITANT_DTNET_NETWORK":"Nouveau réseau", + "EXPLOITANT_DTNET_NETWORK_FORM_CAPTIONFILE_LINK":"Fichier de légende actuellement sur le serveur", + "SECTION_INSERT_TITLE_SUPERVISION_DTNET_DTNET_UNR_NETWORKMANAGER":"Nouvel exploitant", + "EXPLOITANT_DTNET_NETWORK_FORM_DETAILEDMAPWMSURL_BACKGROUND":"Service WMS du fond de plan pour le plan détaillé", + "EXPLOITANT_DTNET_NETWORK_FORM_SITUATIONMAPWMSURL_BACKGROUND":"Service WMS du fond de plan pour le plan de situation", + "EXPLOITANT_DTNET_NETWORKMANAGER_FORM_MATDMAT":"Utilisation de Mat-D-Mat ?", + "DEMANDE_DTNET_DTDICT_FORM_DESTINATION":"Réponse envoyée à l'adresse suivante", + "DEMANDE_DTNET_DTDICT_FORM_MAINCITY":"Commune principale", + "DEMANDE_DTNET_DTDICT_FORM_MAINCITYZIPCODE":"Code postal", + "DEMANDE_DTNET_DTDICT_FORM_CERFA_UPDATE_AND_SIGN":"Valider et signer la réponse", + "EXPLOITANT_DTNET_NETWORK_FORM_WITHOUTNETWORKDATA": "L'exploitant ne souhaite pas utiliser de données pour ses réseaux :" +} \ No newline at end of file diff --git a/src/module_dtnet/web_service/conf/properties.inc b/src/module_dtnet/web_service/conf/properties.inc new file mode 100755 index 0000000000000000000000000000000000000000..73a02a4c6717c5d1db4a8847c55f6d2a015573bb --- /dev/null +++ b/src/module_dtnet/web_service/conf/properties.inc @@ -0,0 +1,15 @@ +<?php + $properties["schema_dtnet"] = 's_dtnet'; + $properties["imap_auth"] = ''; // 'ssl' + $properties["imap_port"] = 143; + $properties["imap_server"] = 'imap.veremes.com'; + $properties["login_bot"] = 'dtnet_bot'; + $properties["pass_bot"] = 'azerty'; + $properties["mailReader_ProjectKey"] = '8SIJP9OG73KSW'; + $properties["mailreader_log_file"] = $properties['vas_home'] . '/log/mailreader/debug.log'; + $properties["mail_response_template_name"] = 'DtDict Réponse'; + $properties["pdftk_command"] = "C:\Program Files (x86)\PDFtk\bin\pdftk.exe"; //linux pdftk solo + $properties["use_mat-d-mat"] = false; + $properties["maxFileSizeSendByMail"] = 10; // size en Mo + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/conf/version.inc b/src/module_dtnet/web_service/conf/version.inc new file mode 100755 index 0000000000000000000000000000000000000000..fbdccf34c7510114103b1ecabc372bde886c4465 --- /dev/null +++ b/src/module_dtnet/web_service/conf/version.inc @@ -0,0 +1,7 @@ +<?php +// Numéro de la version de [Module_name] +define ("VM_VERSION", "[VERSION]"); +define ("VM_BUILD", "[BUILD]"); +define ("VM_MONTH_YEAR", "[MONTH_YEAR]"); +define ("VM_STATUS", "UNSTABLE"); +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/sql/sqlQueries.xml b/src/module_dtnet/web_service/sql/sqlQueries.xml new file mode 100755 index 0000000000000000000000000000000000000000..b1cf68f93b4eea53413bc46f975f56cf3cc45d38 --- /dev/null +++ b/src/module_dtnet/web_service/sql/sqlQueries.xml @@ -0,0 +1,1019 @@ +<?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[ + ALTER ROLE u_vitis CREATEROLE; + --Partie pour le module dtnet version 2017-06-01 généré par WAB le 02/11/2017 à 16:05:05 + select s_vitis.create_role_if_not_exists('dtnet_admin', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + select s_vitis.create_role_if_not_exists('dtnet_user', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + select s_vitis.create_role_if_not_exists('dtnet_manager', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + select s_vitis.create_role_if_not_exists('dtnet_networkmanager_data_reader', 'NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION'); + -- Anthony le 05/01/2017 à 08:50 + --Schema + CREATE SCHEMA s_dtnet AUTHORIZATION u_vitis; + --Sequence + CREATE SEQUENCE s_dtnet.seq_common START 50; + CREATE SEQUENCE s_dtnet.seq_dtdict START 50; + CREATE SEQUENCE s_dtnet.seq_mail START 50; + CREATE SEQUENCE s_dtnet.seq_section START 50; + CREATE SEQUENCE s_dtnet.area_area_id_seq START 50; + --Table + CREATE TABLE s_dtnet.dtdict (dtdict_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_dtdict'::regclass), dtdictdate timestamp with time zone, serviceconsultationnumber varchar(80), dtdicttype varchar(20) NOT NULL, caller varchar(100), workaddress text, responsedate timestamp with time zone, responsefile varchar(255), geom geometry(MultiPolygon, 4326), status_id int4 NOT NULL, networkmanager_id varchar(10) NOT NULL, mail_id int4 NOT NULL, xmlrequestfile varchar(255), pdfrequestfile varchar(255), cities text, supervisorname varchar(255), supervisoraddress varchar(255), supervisorcontact varchar(255), supervisorphone varchar(255), supervisorfax varchar(255), supervisormail varchar(255), projectdescription text, projectbeginningdate timestamp with time zone, projectduration double precision, receiptcopy bool, mailcopy text, creationdate timestamp with time zone NOT NULL, callersiretnumber varchar(14), fieldprofilemodification bool, icresults bool, wishanswertype varchar(50), wishmapsize varchar(2) DEFAULT 'A4', wishmapformat varchar(10), reminder bool, mailreceptiondate timestamp with time zone, receptiontype varchar(50), siretnumberdt varchar(14), addressdt varchar(255), faxdt varchar(20), maildt varchar(255), contactnamedt varchar(255), supervisoraddressdestination varchar(100), supervisorcountry varchar(100),supervisoraddressdetails varchar(255), supervisorcity varchar(100), supervisorzipcode varchar(5), supervisorservice varchar(100), maincity varchar(100), CONSTRAINT dtdict_pkey PRIMARY KEY (dtdict_id)); + CREATE TABLE s_dtnet.networkmanager (networkmanager_id varchar(10) NOT NULL, networkmanagername varchar(100) NOT NULL, receiptaddress varchar(255) NOT NULL, icon varchar(255), password varchar(100), contactmail varchar(255), isautomode bool, contactname varchar(100), address varchar(255), otherdetailsaddress varchar(50), zipcode varchar(5), city varchar(100), phone varchar(15), fax varchar(15), fullname varchar(100), signaturefile varchar(255), extent varchar(255), siretnumber varchar(14), outputcoordsys integer NOT NULL, vm4mslayerurl text, distancemax int4 DEFAULT 0, filesupervisor varchar(100), filesupervisorservice varchar(100), filesupervisorphone char(14), signatoryname varchar(100), phoneifdamage char(14), isshutdownpossible bool, userkey varchar(64), manualkindofwork character varying(255), usematdmat boolean DEFAULT 'true', CONSTRAINT networkmanager_pkey PRIMARY KEY (networkmanager_id)); + CREATE TABLE s_dtnet.network (network_id varchar(10) NOT NULL, workcode varchar(100) NOT NULL, geodataversion varchar(50), loadingdate timestamp with time zone, mainnetworkconnection bool NOT NULL, detailedmapoutputscale int4, detailedmapwmsurl text, situationmapoutputscale int4, situationmapwmsurl text, mapsize char(2), attachedfile varchar(255), securityrecommendation text, networkmanagermailaddress varchar(255), category_id varchar(2) NOT NULL, sensitivity_id varchar(4) NOT NULL, condition_id varchar(10) NOT NULL, geodatadate timestamp with time zone, positioning_id varchar(20) NOT NULL, networkmanager_id varchar(10) NOT NULL, backgroundmapname varchar(255), caption varchar(255), captionfile varchar(255), rubriquesguide varchar(255), securitymeasures varchar(255), securitysystem varchar(255), isautomode bool DEFAULT 'true', ziobuffer int4, answerforunsensitiveatu bool, detailedmapbackgroundwmsurl text, situationmapbackgroundwmsurl text, CONSTRAINT reseau_pkey PRIMARY KEY (network_id)); + CREATE TABLE s_dtnet.rt_category (category_id varchar(255) NOT NULL, code varchar(2), CONSTRAINT tr_category_pkey PRIMARY KEY (category_id)); + CREATE TABLE s_dtnet.rt_condition (condition_id varchar(10) NOT NULL, CONSTRAINT tr_etat_pkey PRIMARY KEY (condition_id)); + CREATE TABLE s_dtnet.rt_positioning (positioning_id varchar(20) NOT NULL, CONSTRAINT tr_positionnement_pkey PRIMARY KEY (positioning_id)); + CREATE TABLE s_dtnet.rt_sensitivity (sensitivity_id varchar(4) NOT NULL, CONSTRAINT tr_sensitivity_pkey PRIMARY KEY (sensitivity_id)); + CREATE TABLE s_dtnet."version" ("version" varchar(10) NOT NULL, "build" integer NOT NULL, "date" timestamp with time zone NOT NULL, "active" boolean NOT NULL, PRIMARY KEY ("version")); + CREATE TABLE s_dtnet.rt_scale(scale_id integer NOT NULL, CONSTRAINT rt_scale_pkey PRIMARY KEY (scale_id)); + CREATE TABLE s_dtnet.rt_dtdict_status (status_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_common'::regclass), name varchar(50) NOT NULL, progress int4 NOT NULL, PRIMARY KEY (status_id)); + CREATE TABLE s_dtnet.user_networkmanager (user_id int4 NOT NULL, networkmanager_id varchar(10) NOT NULL, PRIMARY KEY (user_id)); + CREATE TABLE s_dtnet.section (section_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_section'::regclass), network_id varchar(10) NOT NULL, geom geometry(Geometry, 4326) NOT NULL, class_id varchar(1) NOT NULL, PRIMARY KEY (section_id)); + CREATE TABLE s_dtnet.rt_class (class_id varchar(1) NOT NULL, PRIMARY KEY (class_id)); + CREATE TABLE s_dtnet.area (area_id int4 NOT NULL DEFAULT nextval('s_dtnet.area_area_id_seq'::regclass), geom geometry(MultiPolygon,4326) NOT NULL, name varchar(255) NOT NULL, comment varchar(255) NOT NULL, networkmanager_id varchar(10) NOT NULL, type_id varchar(50) NOT NULL, creationdate timestamp with time zone, validitybeginningdate timestamp with time zone, validityendingdate timestamp with time zone, supervisorname varchar(255), supervisormail varchar(255), supervisorphone varchar(255), document varchar(255), mapscale integer, PRIMARY KEY (area_id)); + CREATE TABLE s_dtnet.mail (mail_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_mail'::regclass), content text NOT NULL, subject varchar(255) NOT NULL, sender varchar(50) NOT NULL, status_id int4 NOT NULL, receiver varchar(10) NOT NULL, mail_uid int4 NOT NULL, attachedfilesdirectory varchar(255), receptiondate timestamp with time zone NOT NULL, PRIMARY KEY (mail_id)); + CREATE TABLE s_dtnet.rt_mail_status (status_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_common'::regclass), name varchar(50), progress int4, PRIMARY KEY (status_id)); + CREATE TABLE s_dtnet.dtdict_history (history_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_common'::regclass), "date" timestamp with time zone NOT NULL, login varchar(50) NOT NULL, comment text NOT NULL, bo_id int4 NOT NULL, PRIMARY KEY (history_id)); + CREATE TABLE s_dtnet.mail_history (history_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_common'::regclass), "date" timestamp with time zone NOT NULL, login varchar(50) NOT NULL, comment text NOT NULL, bo_id int4 NOT NULL, PRIMARY KEY (history_id)); + CREATE TABLE s_dtnet.dtdict_archive (dtdict_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_dtdict'::regclass), dtdictdate timestamp with time zone NOT NULL, serviceconsultationnumber varchar(80), dtdicttype varchar(20) NOT NULL, caller varchar(100) NOT NULL, workaddress text, responsedate timestamp with time zone, responsefile varchar(255), geom geometry(Geometry, 4326), status_id int4 NOT NULL, networkmanager_id varchar(10) NOT NULL, mail_id int4 NOT NULL, xmlrequestfile varchar(255), pdfrequestfile varchar(255), cities text, supervisorname varchar(255), supervisoraddress varchar(255), supervisorcontact varchar(255), supervisorphone varchar(255), supervisorfax varchar(255), supervisormail varchar(255), projectdescription text, projectbeginningdate timestamp with time zone, projectduration int4, receiptcopy bool, mailcopy text, creationdate timestamp with time zone NOT NULL, callersiretnumber varchar(14), fieldprofilemodification bool, icresults bool, wishanswertype varchar(50), wishmapsize varchar(2), wishmapformat varchar(10),kindsofwork varchar(255), usedtechniques varchar(255),history text, archivedate timestamp with time zone NOT NULL, reminder bool, mailreceptiondate timestamp with time zone, receptiontype varchar(50), siretnumberdt varchar(14), addressdt varchar(255), faxdt varchar(20), maildt varchar(255), contactnamedt varchar(255), CONSTRAINT dtdict_archive_pkey PRIMARY KEY (dtdict_id)); + CREATE TABLE s_dtnet.rt_typearea (type_id varchar(50) NOT NULL, classMessage varchar(100) NOT NULL, caption varchar(255), PRIMARY KEY (type_id)); + CREATE TABLE s_dtnet.dtdict_kindofwork (dtdict_id int4 NOT NULL, kind varchar(50) NOT NULL, frompart varchar(4) NOT NULL, PRIMARY KEY (dtdict_id, kind, frompart)); + CREATE TABLE s_dtnet.dtdict_usedtechniques (dtdict_id int4 NOT NULL, technique varchar(50) NOT NULL, PRIMARY KEY (dtdict_id, technique)); + CREATE TABLE s_dtnet.rt_dtdict_status_group (status_id int4 NOT NULL , group_id int4 NOT NULL, link_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_common'::regclass), PRIMARY KEY (link_id)); + CREATE TABLE s_dtnet.rt_mail_status_group (link_id int4 NOT NULL DEFAULT nextval('s_dtnet.seq_common'::regclass), status_id int4 NOT NULL, group_id int4 NOT NULL, PRIMARY KEY (link_id)); + CREATE TABLE s_dtnet.rt_coordsys (coordsys_id integer NOT NULL, definition text NOT NULL, label varchar(100) NOT NULL, epsg varchar(20) NOT NULL, PRIMARY KEY (coordsys_id)); + CREATE TABLE s_dtnet.dtdict_network (dtdict_id integer NOT NULL, network_id character varying(10) NOT NULL, CONSTRAINT dtdict_network_pkey PRIMARY KEY (dtdict_id, network_id), CONSTRAINT fk_dtdict_netowork_dtdict_id FOREIGN KEY (dtdict_id) REFERENCES s_dtnet.dtdict (dtdict_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT fk_dtdict_netowork_network_id FOREIGN KEY (network_id) REFERENCES s_dtnet.network (network_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE); + --Contraints + ALTER TABLE s_dtnet.rt_category ADD CONSTRAINT uc_code UNIQUE(code); + ALTER TABLE s_dtnet.network ADD CONSTRAINT fk_category_network FOREIGN KEY (category_id) REFERENCES s_dtnet.rt_category (code) ON UPDATE No action ON DELETE No action; + ALTER TABLE s_dtnet.network ADD CONSTRAINT fk_sensitivity_network FOREIGN KEY (sensitivity_id) REFERENCES s_dtnet.rt_sensitivity (sensitivity_id) ON UPDATE No action ON DELETE No action; + ALTER TABLE s_dtnet.network ADD CONSTRAINT fk_condition_network FOREIGN KEY (condition_id) REFERENCES s_dtnet.rt_condition (condition_id) ON UPDATE No action ON DELETE No action; + ALTER TABLE s_dtnet.network ADD CONSTRAINT fk_positioning_network FOREIGN KEY (positioning_id) REFERENCES s_dtnet.rt_positioning (positioning_id) ON UPDATE No action ON DELETE No action; + ALTER TABLE s_dtnet.network ADD CONSTRAINT fk_network_networkmanager FOREIGN KEY (networkmanager_id) REFERENCES s_dtnet.networkmanager (networkmanager_id) ON UPDATE No action ON DELETE CASCADE; + ALTER TABLE s_dtnet.section ADD CONSTRAINT fk_section_network FOREIGN KEY (network_id) REFERENCES s_dtnet.network (network_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.section ADD CONSTRAINT fk_section_class FOREIGN KEY (class_id) REFERENCES s_dtnet.rt_class (class_id); + ALTER TABLE s_dtnet.area ADD CONSTRAINT fk_area_owner FOREIGN KEY (networkmanager_id) REFERENCES s_dtnet.networkmanager (networkmanager_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.mail ADD CONSTRAINT fk_mail_status FOREIGN KEY (status_id) REFERENCES s_dtnet.rt_mail_status (status_id); + ALTER TABLE s_dtnet.mail_history ADD CONSTRAINT fk_mail_history FOREIGN KEY (bo_id) REFERENCES s_dtnet.mail (mail_id); + ALTER TABLE s_dtnet.area ADD CONSTRAINT fk_area_typearea FOREIGN KEY (type_id) REFERENCES s_dtnet.rt_typearea (type_id); + ALTER TABLE s_dtnet.mail ADD CONSTRAINT fk_mail_networkmanager FOREIGN KEY (receiver) REFERENCES s_dtnet.networkmanager (networkmanager_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.networkmanager ADD CONSTRAINT fk_output_coordsys FOREIGN KEY (outputcoordsys) REFERENCES s_dtnet.rt_coordsys (coordsys_id); + ALTER TABLE s_dtnet.dtdict_history ADD CONSTRAINT fk_dtdict_history FOREIGN KEY (bo_id) REFERENCES s_dtnet.dtdict (dtdict_id); + ALTER TABLE s_dtnet.dtdict ADD CONSTRAINT fk_dtdict_networkmanager FOREIGN KEY (networkmanager_id) REFERENCES s_dtnet.networkmanager (networkmanager_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.dtdict_kindofwork ADD CONSTRAINT fk_dtdict_kindofwork FOREIGN KEY (dtdict_id) REFERENCES s_dtnet.dtdict (dtdict_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.dtdict_usedtechniques ADD CONSTRAINT fk_dtdict_usedtechniques FOREIGN KEY (dtdict_id) REFERENCES s_dtnet.dtdict (dtdict_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.dtdict ADD CONSTRAINT fk_dtdict_status FOREIGN KEY (status_id) REFERENCES s_dtnet.rt_dtdict_status (status_id); + ALTER TABLE s_dtnet.dtdict ADD CONSTRAINT fk_dtdict_mail FOREIGN KEY (mail_id) REFERENCES s_dtnet.mail (mail_id) ON DELETE CASCADE; + ALTER TABLE s_dtnet.user_networkmanager ADD CONSTRAINT fk_user_user_networkmanager FOREIGN KEY (user_id) REFERENCES s_vitis."user" (user_id); + ALTER TABLE s_dtnet.rt_dtdict_status_group ADD CONSTRAINT fk_dtdict_status_group FOREIGN KEY (status_id) REFERENCES s_dtnet.rt_dtdict_status (status_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION; + ALTER TABLE s_dtnet.rt_mail_status_group ADD CONSTRAINT fk_mail_status_group FOREIGN KEY (status_id) REFERENCES s_dtnet.rt_mail_status (status_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION; + --Index + CREATE INDEX index_dtdict ON s_dtnet.dtdict (networkmanager_id, status_id); + CREATE INDEX index_networkmanager ON s_dtnet.networkmanager (networkmanager_id, networkmanagername); + CREATE INDEX index_rt_dtdict_status ON s_dtnet.rt_dtdict_status (status_id); + CREATE INDEX index_section ON s_dtnet.section (network_id); + CREATE INDEX index_network ON s_dtnet.network (network_id, networkmanager_id); + --Views + CREATE VIEW s_dtnet.v_network AS SELECT network.network_id, network.workcode, network.geodataversion, network.loadingdate, network.captionfile, network.mainnetworkconnection, network.detailedmapoutputscale, network.detailedmapwmsurl, network.situationmapoutputscale, network.situationmapwmsurl, network.mapsize, network.attachedfile, network.securityrecommendation, network.networkmanagermailaddress, network.category_id AS code, network.sensitivity_id, network.condition_id, network.positioning_id, network.networkmanager_id, network.backgroundmapname, network.caption, network.rubriquesguide, network.securitymeasures, network.securitysystem, network.isautomode, networkmanager.networkmanagername, network.ziobuffer, network.answerforunsensitiveatu, network.detailedmapbackgroundwmsurl, network.situationmapbackgroundwmsurl, rt_category.category_id FROM s_dtnet.network LEFT JOIN s_dtnet.networkmanager ON network.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_category ON network.category_id::text = rt_category.category_id::text WHERE network.networkmanager_id::text ~ similar_escape((SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()),NULL::text); + CREATE VIEW s_dtnet.v_mail AS SELECT mail.mail_id, mail.content, mail.subject, mail.sender, mail.status_id, mail.receiver, mail.mail_uid, networkmanager.networkmanagername, rt_mail_status.name AS status_name, mail.attachedfilesdirectory, mail.receptiondate FROM s_dtnet.mail LEFT JOIN s_dtnet.rt_mail_status ON mail.status_id = rt_mail_status.status_id LEFT JOIN s_dtnet.networkmanager ON mail.receiver::text = networkmanager.networkmanager_id::text WHERE mail.receiver::text ~ similar_escape((SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()),NULL::text); + CREATE VIEW s_dtnet.v_networkmanager AS SELECT networkmanager.networkmanager_id, networkmanager.networkmanagername, networkmanager.receiptaddress, networkmanager.icon, networkmanager.password, networkmanager.contactmail, networkmanager.isautomode, networkmanager.contactname, networkmanager.address, networkmanager.otherdetailsaddress, networkmanager.zipcode, networkmanager.city, networkmanager.phone, networkmanager.fax, networkmanager.fullname, networkmanager.signaturefile, networkmanager.extent, networkmanager.outputcoordsys, networkmanager.siretnumber, networkmanager.distancemax, networkmanager.filesupervisor, networkmanager.filesupervisorservice, networkmanager.filesupervisorphone, networkmanager.isshutdownpossible, networkmanager.phoneifdamage, networkmanager.signatoryname, networkmanager.manualkindofwork FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text ~ similar_escape((SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()),NULL::text); + CREATE VIEW s_dtnet.v_network_unrestricted AS SELECT network.network_id, network.workcode, network.geodataversion, network.loadingdate, network.mainnetworkconnection, network.detailedmapoutputscale, network.detailedmapwmsurl, network.situationmapoutputscale, network.situationmapwmsurl, network.mapsize, network.attachedfile, network.securityrecommendation, network.networkmanagermailaddress, network.category_id AS code, network.sensitivity_id, network.condition_id, network.positioning_id, network.networkmanager_id, network.backgroundmapname, network.caption, network.rubriquesguide, network.securitymeasures, network.securitysystem, network.isautomode, networkmanager.networkmanagername, network.ziobuffer,network.answerforunsensitiveatu, network.detailedmapbackgroundwmsurl, network.situationmapbackgroundwmsurl, rt_category.category_id FROM s_dtnet.network LEFT JOIN s_dtnet.networkmanager ON network.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_category ON network.category_id::text = rt_category.category_id::text; + CREATE VIEW s_dtnet.v_mail_unrestricted AS SELECT mail.mail_id, mail.content, mail.subject, mail.sender, mail.status_id, mail.receiver, mail.mail_uid, networkmanager.networkmanagername, rt_mail_status.name AS status_name, mail.attachedfilesdirectory, mail.receptiondate, networkmanager.networkmanager_id FROM s_dtnet.mail LEFT JOIN s_dtnet.rt_mail_status ON mail.status_id = rt_mail_status.status_id LEFT JOIN s_dtnet.networkmanager ON mail.receiver::text = networkmanager.networkmanager_id::text; + CREATE VIEW s_dtnet.v_networkmanager_unrestricted AS SELECT networkmanager.networkmanager_id, networkmanager.networkmanagername, networkmanager.receiptaddress, networkmanager.icon, networkmanager.password, networkmanager.contactmail, networkmanager.isautomode, networkmanager.contactname, networkmanager.address, networkmanager.otherdetailsaddress, networkmanager.zipcode, networkmanager.city, networkmanager.phone, networkmanager.fax, networkmanager.fullname, networkmanager.signaturefile, networkmanager.extent, networkmanager.outputcoordsys, networkmanager.siretnumber, networkmanager.distancemax, networkmanager.filesupervisor, networkmanager.filesupervisorservice, networkmanager.filesupervisorphone, networkmanager.isshutdownpossible, networkmanager.phoneifdamage, networkmanager.signatoryname, networkmanager.manualkindofwork, networkmanager.usematdmat FROM s_dtnet.networkmanager; + CREATE VIEW s_dtnet.v_section AS SELECT section.section_id, section.network_id, section.geom, section.class_id, rt_category.category_id, rt_category.code, network.condition_id, networkmanager.distancemax FROM s_dtnet.section LEFT JOIN s_dtnet.network ON section.network_id::text = network.network_id::text LEFT JOIN s_dtnet.rt_category ON network.category_id::text = rt_category.code::text LEFT JOIN s_dtnet.networkmanager ON network.networkmanager_id::text = networkmanager.networkmanager_id::text WHERE network.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + --CREATE VIEW s_dtnet.v_section_fme AS SELECT section.section_id, section.network_id, section.geom, section.class_id, rt_category.category_id, rt_category.code, network.condition_id FROM s_dtnet.section LEFT JOIN s_dtnet.network ON section.network_id::text = network.network_id::text LEFT JOIN s_dtnet.rt_category ON network.category_id::text = rt_category.code::text LEFT JOIN s_dtnet.networkmanager ON network.networkmanager_id::text = networkmanager.networkmanager_id::text WHERE network.networkmanager_id::text ~ similar_escape(( SELECT upper("substring"("current_user"()::text, 'u_dtnet_#"[0-9a-zA-Z]+#"_%'::text, '#'::text)) AS upper), NULL::text); + CREATE VIEW s_dtnet.v_area AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, to_char(area.validitybeginningdate, 'DD/MM/YYYY'::text) AS validitybeginningdate, to_char(area.validityendingdate, 'DD/MM/YYYY'::text) AS validityendingdate, area.supervisorname, area.supervisormail, area.supervisorphone, area.document, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + CREATE VIEW s_dtnet.v_network_fme AS SELECT network.network_id, network.workcode, network.geodataversion, network.loadingdate, network.mainnetworkconnection, network.detailedmapoutputscale, network.detailedmapwmsurl, network.situationmapoutputscale, network.situationmapwmsurl, network.mapsize, network.attachedfile, network.securityrecommendation, network.networkmanagermailaddress, network.category_id AS code, network.sensitivity_id, network.condition_id, network.positioning_id, network.networkmanager_id, network.backgroundmapname, network.caption, network.rubriquesguide, network.securitymeasures, network.securitysystem, network.isautomode, network.ziobuffer, network.answerforunsensitiveatu, network.geodatadate, network.captionfile, rt_category.category_id, network.detailedmapbackgroundwmsurl, network.situationmapbackgroundwmsurl FROM s_dtnet.network LEFT JOIN s_dtnet.networkmanager ON network.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_category ON network.category_id::text = rt_category.code::text; + CREATE VIEW s_dtnet.v_section_unrestricted AS SELECT section.section_id, section.network_id, section.geom, section.class_id, rt_category.category_id, rt_category.code, network.condition_id, networkmanager.distancemax FROM s_dtnet.section LEFT JOIN s_dtnet.network ON section.network_id::text = network.network_id::text LEFT JOIN s_dtnet.rt_category ON network.category_id::text = rt_category.code::text LEFT JOIN s_dtnet.networkmanager ON network.networkmanager_id::text = networkmanager.networkmanager_id::text; + CREATE VIEW s_dtnet.v_dtdict AS SELECT dtdict.dtdict_id, dtdict.dtdictdate, dtdict.serviceconsultationnumber, dtdict.dtdicttype, dtdict.caller, dtdict.workaddress, dtdict.responsedate, dtdict.pdfrequestfile, dtdict.responsefile, public.st_astext(st_transform(dtdict.geom, 3857)) AS geom2, dtdict.geom, dtdict.status_id, dtdict.networkmanager_id, dtdict.mail_id, dtdict.xmlrequestfile, networkmanager.networkmanagername, dtdict.cities, dtdict.projectbeginningdate, dtdict.creationdate, rt_dtdict_status.name as status_name, dtdict.callersiretnumber, dtdict.reminder, dtdict.mailreceptiondate, dtdict.receptiontype, dtdict.siretnumberdt, dtdict.addressdt, dtdict.faxdt, dtdict.maildt, dtdict.contactnamedt, string_agg(dtdict_network.network_id::text, '|'::text) AS networkintersected, networkmanager.usematdmat, mail.sender FROM s_dtnet.dtdict LEFT JOIN s_dtnet.networkmanager ON dtdict.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_dtdict_status ON rt_dtdict_status.status_id = dtdict.status_id JOIN s_dtnet.rt_dtdict_status_group ON rt_dtdict_status.status_id = rt_dtdict_status_group.status_id LEFT JOIN s_dtnet.dtdict_network ON dtdict_network.dtdict_id = dtdict.dtdict_id LEFT JOIN s_dtnet.mail ON dtdict.mail_id = mail.mail_id WHERE dtdict.networkmanager_id::text ~ similar_escape((SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()),NULL::text) AND (rt_dtdict_status_group.group_id IN ( SELECT user_group.group_id FROM s_vitis.user_group LEFT JOIN s_vitis."user" ON user_group.user_id = "user".user_id WHERE "user".login::name = "current_user"())) GROUP BY dtdict.dtdict_id, networkmanager.networkmanagername, rt_dtdict_status.name, networkmanager.usematdmat, mail.sender; + CREATE VIEW s_dtnet.v_dtdict_unrestricted AS SELECT dtdict.dtdict_id, dtdict.dtdictdate, dtdict.serviceconsultationnumber, dtdict.dtdicttype, dtdict.caller, dtdict.workaddress, dtdict.responsedate, dtdict.pdfrequestfile, dtdict.responsefile, dtdict.geom, dtdict.status_id, dtdict.networkmanager_id, dtdict.mail_id, dtdict.xmlrequestfile, networkmanager.networkmanagername, dtdict.cities, dtdict.projectbeginningdate, dtdict.creationdate, rt_dtdict_status.name as status_name, dtdict.callersiretnumber, dtdict.reminder, dtdict.mailreceptiondate, dtdict.receptiontype, dtdict.siretnumberdt, dtdict.addressdt, dtdict.faxdt, dtdict.maildt, dtdict.contactnamedt, string_agg(dtdict_network.network_id::text, '|'::text) AS networkintersected, networkmanager.usematdmat, mail.sender FROM s_dtnet.dtdict LEFT JOIN s_dtnet.networkmanager ON dtdict.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_dtdict_status ON rt_dtdict_status.status_id = dtdict.status_id LEFT JOIN s_dtnet.dtdict_network ON dtdict_network.dtdict_id = dtdict.dtdict_id LEFT JOIN s_dtnet.mail ON dtdict.mail_id = mail.mail_id GROUP BY dtdict.dtdict_id, networkmanager.networkmanagername, rt_dtdict_status.name, networkmanager.usematdmat, mail.sender; + CREATE VIEW s_dtnet.v_area_notification AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, to_char(area.validitybeginningdate, 'DD/MM/YYYY'::text) AS validitybeginningdate, to_char(area.validityendingdate, 'DD/MM/YYYY'::text) AS validityendingdate, area.supervisorname, area.supervisormail, area.supervisorphone, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Notification'::text AND area.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + CREATE VIEW s_dtnet.v_area_dense AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, networkmanager.networkmanagername, rt_typearea.classmessage, area.mapscale FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Dense'::text AND area.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + CREATE VIEW s_dtnet.v_area_document AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, area.document, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Document'::text AND area.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + CREATE VIEW s_dtnet.v_area_surveillance AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Surveillance'::text AND area.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + CREATE VIEW s_dtnet.v_area_unrestricted AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, to_char(area.validitybeginningdate, 'DD/MM/YYYY'::text) AS validitybeginningdate, to_char(area.validityendingdate, 'DD/MM/YYYY'::text) AS validityendingdate, area.supervisorname, area.supervisormail, area.supervisorphone, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text; + CREATE VIEW s_dtnet.v_area_dense_unrestricted AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, networkmanager.networkmanagername, rt_typearea.classmessage, area.mapscale FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Dense'::text; + CREATE VIEW s_dtnet.v_area_notification_unrestricted AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, to_char(area.validitybeginningdate, 'DD/MM/YYYY'::text) AS validitybeginningdate, to_char(area.validityendingdate, 'DD/MM/YYYY'::text) AS validityendingdate, area.supervisorname, area.supervisormail, area.supervisorphone, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Notification'::text ; + CREATE VIEW s_dtnet.v_area_surveillance_unrestricted AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Surveillance'::text; + CREATE VIEW s_dtnet.v_area_document_unrestricted AS SELECT area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, area.document, networkmanager.networkmanagername, rt_typearea.classmessage FROM s_dtnet.area LEFT JOIN s_dtnet.rt_typearea ON area.type_id::text = rt_typearea.type_id::text LEFT JOIN s_dtnet.networkmanager ON networkmanager.networkmanager_id::text = area.networkmanager_id::text WHERE area.type_id::text = 'Document'::text; + --Rules + CREATE RULE v_network_insert AS ON INSERT TO s_dtnet.v_network DO INSTEAD INSERT INTO s_dtnet.network (network_id, workcode, geodataversion, loadingdate, mainnetworkconnection, detailedmapoutputscale, detailedmapwmsurl, situationmapoutputscale, situationmapwmsurl, mapsize, attachedfile, securityrecommendation, networkmanagermailaddress, category_id, sensitivity_id, condition_id, positioning_id, networkmanager_id, backgroundmapname, caption, rubriquesguide, securitymeasures, securitysystem, isautomode, ziobuffer, detailedmapbackgroundwmsurl, situationmapbackgroundwmsurl) VALUES (new.network_id, new.workcode, new.geodataversion, new.loadingdate, new.mainnetworkconnection, new.detailedmapoutputscale, ( SELECT (networkmanager.vm4mslayerurl || '&network_id='::text) || new.network_id::text FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = ((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON "user".user_id = user_networkmanager.user_id WHERE "user".login::name = "current_user"()))::text)), new.situationmapoutputscale, ( SELECT (networkmanager.vm4mslayerurl || '&network_id='::text) || new.network_id::text FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = ((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON "user".user_id = user_networkmanager.user_id WHERE "user".login::name = "current_user"()))::text)), new.mapsize, new.attachedfile, new.securityrecommendation, new.networkmanagermailaddress, new.category_id, new.sensitivity_id, new.condition_id, new.positioning_id, ( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON "user".user_id = user_networkmanager.user_id WHERE "user".login::name = "current_user"()), new.backgroundmapname, new.caption, new.rubriquesguide, new.securitymeasures, new.securitysystem, new.isautomode, new.ziobuffer, new.detailedmapbackgroundwmsurl, new.situationmapbackgroundwmsurl); + --CREATE RULE delete_v_area AS ON DELETE TO s_dtnet.v_area DO INSTEAD DELETE FROM s_dtnet.area WHERE area.area_id = old.area_id; + --CREATE RULE update_v_area AS ON UPDATE TO s_dtnet.v_area DO INSTEAD UPDATE s_dtnet.area SET geom = new.geom, name = new.name, document= new.document, comment = new.comment, networkmanager_id = old.networkmanager_id, type_id = new.type_id, creationdate = old.creationdate::date, validitybeginningdate = new.validitybeginningdate::date, validityendingdate = new.validityendingdate::date, supervisorname = new.supervisorname, supervisormail = new.supervisormail, supervisorphone = new.supervisorphone WHERE area.area_id = new.area_id; + --CREATE RULE insert_v_area AS ON INSERT TO s_dtnet.v_area DO INSTEAD INSERT INTO s_dtnet.area (area_id, geom, name, comment, creationdate, validitybeginningdate, validityendingdate, supervisorname, supervisormail, supervisorphone, networkmanager_id, type_id, document) VALUES ((( SELECT nextval('s_dtnet.area_area_id_seq'::regclass) AS nextval)), new.geom, new.name, new.comment, now(), new.validitybeginningdate::date, new.validityendingdate::date, new.supervisorname, new.supervisormail, new.supervisorphone, ( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()), new.type_id, new.document) RETURNING area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, to_char(area.validitybeginningdate, 'DD/MM/YYYY'::text) AS validitybeginningdate, to_char(area.validityendingdate, 'DD/MM/YYYY'::text) AS validityendingdate, area.supervisorname, area.supervisormail, area.supervisorphone,area.document, (SELECT networkmanager.networkmanagername FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = area.networkmanager_id::text) AS networkmanagername, (SELECT rt_typearea.classmessage FROM s_dtnet.rt_typearea WHERE rt_typearea.type_id::text = area.type_id::text) AS classmessage; + CREATE OR REPLACE RULE update_v_network AS ON UPDATE TO s_dtnet.v_network DO INSTEAD UPDATE s_dtnet.network SET captionfile = new.captionfile, mainnetworkconnection = new.mainnetworkconnection, detailedmapoutputscale = new.detailedmapoutputscale, detailedmapwmsurl = new.detailedmapwmsurl, situationmapoutputscale = new.situationmapoutputscale, situationmapwmsurl = new.situationmapwmsurl, mapsize = new.mapsize, attachedfile = new.attachedfile, securityrecommendation = new.securityrecommendation, networkmanagermailaddress = new.networkmanagermailaddress, backgroundmapname = new.backgroundmapname, caption = new.caption, rubriquesguide = new.rubriquesguide, securitymeasures = new.securitymeasures, securitysystem = new.securitysystem, isautomode = new.isautomode, ziobuffer = new.ziobuffer, answerforunsensitiveatu = new.answerforunsensitiveatu, detailedmapbackgroundwmsurl = new.detailedmapbackgroundwmsurl, situationmapbackgroundwmsurl = new.situationmapbackgroundwmsurl WHERE network.network_id::text = new.network_id::text; + CREATE RULE delete_v_network AS ON DELETE TO s_dtnet.v_network DO INSTEAD DELETE FROM s_dtnet.network WHERE network.network_id::text = old.network_id::text; + CREATE RULE delete_v_area_dense AS ON DELETE TO s_dtnet.v_area_dense DO INSTEAD DELETE FROM s_dtnet.area WHERE area.area_id = old.area_id; + CREATE RULE update_v_area_dense AS ON UPDATE TO s_dtnet.v_area_dense DO INSTEAD UPDATE s_dtnet.area SET geom = new.geom, name = new.name, comment = new.comment, networkmanager_id = old.networkmanager_id, type_id = 'Dense', creationdate = old.creationdate::date, mapscale = new.mapscale WHERE area.area_id = new.area_id; + CREATE RULE insert_v_area_dense AS ON INSERT TO s_dtnet.v_area_dense DO INSTEAD INSERT INTO s_dtnet.area (area_id, geom, name, comment, creationdate, supervisorname, supervisormail, supervisorphone, networkmanager_id, type_id, mapscale) VALUES ((( SELECT nextval('s_dtnet.area_area_id_seq'::regclass) AS nextval)), new.geom, new.name, new.comment, now(), '', '', '', ( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()), 'Dense', new.mapscale) RETURNING area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, ( SELECT networkmanager.networkmanagername FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = area.networkmanager_id::text) AS networkmanagername, ( SELECT rt_typearea.classmessage FROM s_dtnet.rt_typearea WHERE rt_typearea.type_id::text = area.type_id::text) AS classmessage, area.mapscale; + CREATE RULE delete_v_area_document AS ON DELETE TO s_dtnet.v_area_document DO INSTEAD DELETE FROM s_dtnet.area WHERE area.area_id = old.area_id; + CREATE RULE update_v_area_document AS ON UPDATE TO s_dtnet.v_area_document DO INSTEAD UPDATE s_dtnet.area SET geom = new.geom, name = new.name, comment = new.comment, networkmanager_id = old.networkmanager_id, type_id = 'Document', document=new.document, creationdate = old.creationdate::date WHERE area.area_id = new.area_id; + CREATE RULE insert_v_area_document AS ON INSERT TO s_dtnet.v_area_document DO INSTEAD INSERT INTO s_dtnet.area (area_id, geom, name, comment, creationdate, supervisorname, supervisormail, supervisorphone, networkmanager_id, type_id, document) VALUES ((( SELECT nextval('s_dtnet.area_area_id_seq'::regclass) AS nextval)), new.geom, new.name, new.comment, now(), '', '', '', ( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()), 'Document', new.document) RETURNING area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, area.document, ( SELECT networkmanager.networkmanagername FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = area.networkmanager_id::text) AS networkmanagername, ( SELECT rt_typearea.classmessage FROM s_dtnet.rt_typearea WHERE rt_typearea.type_id::text = area.type_id::text) AS classmessage; + CREATE RULE delete_v_dtdict AS ON DELETE TO s_dtnet.v_dtdict DO INSTEAD (DELETE FROM s_dtnet.dtdict_kindofwork WHERE dtdict_kindofwork.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict_usedtechniques WHERE dtdict_usedtechniques.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict WHERE dtdict.dtdict_id = old.dtdict_id;); + CREATE RULE delete_v_dtdict_unr AS ON DELETE TO s_dtnet.v_dtdict_unrestricted DO INSTEAD (DELETE FROM s_dtnet.dtdict_kindofwork WHERE dtdict_kindofwork.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict_usedtechniques WHERE dtdict_usedtechniques.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict WHERE dtdict.dtdict_id = old.dtdict_id;); + CREATE RULE delete_v_mail AS ON DELETE TO s_dtnet.v_mail DO INSTEAD (DELETE FROM s_dtnet.dtdict WHERE dtdict.mail_id = old.mail_id; DELETE FROM s_dtnet.mail WHERE mail.mail_id = old.mail_id); + CREATE RULE delete_v_mail_unr AS ON DELETE TO s_dtnet.v_mail_unrestricted DO INSTEAD (DELETE FROM s_dtnet.dtdict WHERE dtdict.mail_id = old.mail_id; DELETE FROM s_dtnet.mail WHERE mail.mail_id = old.mail_id); + CREATE RULE delete_v_area_notification AS ON DELETE TO s_dtnet.v_area_notification DO INSTEAD DELETE FROM s_dtnet.area WHERE area.area_id = old.area_id; + CREATE RULE update_v_area_notification AS ON UPDATE TO s_dtnet.v_area_notification DO INSTEAD UPDATE s_dtnet.area SET geom = new.geom, name = new.name, comment = new.comment, networkmanager_id = old.networkmanager_id, type_id = 'Notification', creationdate = old.creationdate::date, validitybeginningdate = new.validitybeginningdate::date, validityendingdate = new.validityendingdate::date, supervisorname = new.supervisorname, supervisormail = new.supervisormail, supervisorphone = new.supervisorphone WHERE area.area_id = new.area_id; + CREATE RULE insert_v_area_notification AS ON INSERT TO s_dtnet.v_area_notification DO INSTEAD INSERT INTO s_dtnet.area (area_id, geom, name, comment, creationdate, validitybeginningdate, validityendingdate, supervisorname, supervisormail, supervisorphone, networkmanager_id, type_id) VALUES ((( SELECT nextval('s_dtnet.area_area_id_seq'::regclass) AS nextval)), new.geom, new.name, new.comment, now(), new.validitybeginningdate::date, new.validityendingdate::date, new.supervisorname, new.supervisormail, new.supervisorphone, ( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()), 'Notification') RETURNING area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, to_char(area.validitybeginningdate, 'DD/MM/YYYY'::text) AS validitybeginningdate, to_char(area.validityendingdate, 'DD/MM/YYYY'::text) AS validityendingdate, area.supervisorname, area.supervisormail, area.supervisorphone, (SELECT networkmanager.networkmanagername FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = area.networkmanager_id::text) AS networkmanagername, (SELECT rt_typearea.classmessage FROM s_dtnet.rt_typearea WHERE rt_typearea.type_id::text = area.type_id::text) AS classmessage; + CREATE RULE delete_v_area_surveillance AS ON DELETE TO s_dtnet.v_area_surveillance DO INSTEAD DELETE FROM s_dtnet.area WHERE area.area_id = old.area_id; + CREATE RULE insert_v_area_surveillance AS ON INSERT TO s_dtnet.v_area_surveillance DO INSTEAD INSERT INTO s_dtnet.area (area_id, geom, name, comment, creationdate, supervisorname, supervisormail, supervisorphone, networkmanager_id, type_id) VALUES ((( SELECT nextval('s_dtnet.area_area_id_seq'::regclass) AS nextval)), new.geom, new.name, new.comment, now(), ''::character varying, ''::character varying, ''::character varying, ( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()), 'Surveillance'::character varying) RETURNING area.area_id, area.geom, area.name, area.comment, area.networkmanager_id, area.type_id, to_char(area.creationdate, 'DD/MM/YYYY'::text) AS creationdate, (SELECT networkmanager.networkmanagername FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text = area.networkmanager_id::text) AS networkmanagername, (SELECT rt_typearea.classmessage FROM s_dtnet.rt_typearea WHERE rt_typearea.type_id::text = area.type_id::text) AS classmessage; + CREATE RULE update_v_area_surveillance AS ON UPDATE TO s_dtnet.v_area_surveillance DO INSTEAD UPDATE s_dtnet.area SET geom = new.geom, name = new.name, comment = new.comment, networkmanager_id = old.networkmanager_id, type_id = 'Surveillance'::character varying, creationdate = old.creationdate::date WHERE area.area_id = new.area_id; + --Grant + GRANT gtf_user TO dtnet_user; + GRANT ALL ON SCHEMA s_dtnet TO u_vitis; + GRANT USAGE ON SCHEMA s_dtnet TO dtnet_admin; + GRANT USAGE ON SCHEMA s_dtnet TO dtnet_manager; + GRANT USAGE ON SCHEMA s_dtnet TO dtnet_user; + GRANT USAGE ON SCHEMA s_dtnet TO dtnet_networkmanager_data_reader; + ALTER TABLE s_dtnet.seq_common OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_common TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_common TO dtnet_admin; + GRANT SELECT ON SEQUENCE s_dtnet.seq_common TO dtnet_manager; + GRANT SELECT ON SEQUENCE s_dtnet.seq_common TO dtnet_user; + ALTER TABLE s_dtnet.seq_dtdict OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_dtdict TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_dtdict TO dtnet_admin; + GRANT SELECT ON SEQUENCE s_dtnet.seq_dtdict TO dtnet_manager; + GRANT SELECT ON SEQUENCE s_dtnet.seq_dtdict TO dtnet_user; + ALTER TABLE s_dtnet.seq_mail OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_mail TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_mail TO dtnet_admin; + GRANT SELECT ON SEQUENCE s_dtnet.seq_mail TO dtnet_manager; + GRANT SELECT ON SEQUENCE s_dtnet.seq_mail TO dtnet_user; + ALTER TABLE s_dtnet.seq_section OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_section TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.seq_section TO dtnet_admin; + GRANT SELECT ON SEQUENCE s_dtnet.seq_section TO dtnet_manager; + GRANT SELECT ON SEQUENCE s_dtnet.seq_section TO dtnet_user; + ALTER TABLE s_dtnet.area_area_id_seq OWNER TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.area_area_id_seq TO u_vitis; + GRANT ALL ON SEQUENCE s_dtnet.area_area_id_seq TO dtnet_admin; + GRANT ALL ON SEQUENCE s_dtnet.area_area_id_seq TO dtnet_manager; + GRANT SELECT ON SEQUENCE s_dtnet.area_area_id_seq TO dtnet_user; + ALTER TABLE s_dtnet."version" OWNER TO u_vitis; + ALTER TABLE s_dtnet.networkmanager OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.networkmanager TO u_vitis; + GRANT ALL ON TABLE s_dtnet.networkmanager TO dtnet_admin; + GRANT SELECT,UPDATE ON TABLE s_dtnet.networkmanager TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.networkmanager TO dtnet_user; + ALTER TABLE s_dtnet.dtdict OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.dtdict TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.dtdict TO dtnet_user; + ALTER TABLE s_dtnet.network OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.network TO u_vitis; + GRANT ALL ON TABLE s_dtnet.network TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.network TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.network TO dtnet_user; + ALTER TABLE s_dtnet.rt_dtdict_status OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_dtdict_status TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_dtdict_status TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_dtdict_status TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_dtdict_status TO dtnet_user; + ALTER TABLE s_dtnet.rt_category OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_category TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_category TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_category TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_category TO dtnet_user; + ALTER TABLE s_dtnet.rt_condition OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_condition TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_condition TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_condition TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_condition TO dtnet_user; + ALTER TABLE s_dtnet.rt_positioning OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_positioning TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_positioning TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_positioning TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_positioning TO dtnet_user; + ALTER TABLE s_dtnet.rt_sensitivity OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_sensitivity TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_sensitivity TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_sensitivity TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_sensitivity TO dtnet_user; + ALTER TABLE s_dtnet.area OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.area TO u_vitis; + GRANT ALL ON TABLE s_dtnet.area TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.area TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.area TO dtnet_user; + ALTER TABLE s_dtnet.mail OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.mail TO u_vitis; + GRANT ALL ON TABLE s_dtnet.mail TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.mail TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.mail TO dtnet_user; + ALTER TABLE s_dtnet.mail_history OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.mail_history TO u_vitis; + GRANT ALL ON TABLE s_dtnet.mail_history TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.mail_history TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.mail_history TO dtnet_user; + ALTER TABLE s_dtnet.rt_scale OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_scale TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_scale TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_scale TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_scale TO dtnet_user; + ALTER TABLE s_dtnet.dtdict_archive OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_archive TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_archive TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.dtdict_archive TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.dtdict_archive TO dtnet_user; + ALTER TABLE s_dtnet.dtdict_history OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_history TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_history TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.dtdict_history TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.dtdict_history TO dtnet_user; + ALTER TABLE s_dtnet.rt_class OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_class TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_class TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_class TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_class TO dtnet_user; + ALTER TABLE s_dtnet.rt_mail_status OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_mail_status TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_mail_status TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_mail_status TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_mail_status TO dtnet_user; + ALTER TABLE s_dtnet.rt_typearea OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_typearea TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.rt_typearea TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.rt_typearea TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.rt_typearea TO dtnet_user; + ALTER TABLE s_dtnet.section OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.section TO u_vitis; + GRANT ALL ON TABLE s_dtnet.section TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.section TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.section TO dtnet_user; + ALTER TABLE s_dtnet.user_networkmanager OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.user_networkmanager TO u_vitis; + GRANT ALL ON TABLE s_dtnet.user_networkmanager TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.user_networkmanager TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.user_networkmanager TO dtnet_user; + ALTER TABLE s_dtnet.rt_coordsys OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_coordsys TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_coordsys TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.rt_coordsys TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.rt_coordsys TO dtnet_user; + ALTER TABLE s_dtnet.dtdict_kindofwork OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_kindofwork TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_kindofwork TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.dtdict_kindofwork TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.dtdict_kindofwork TO dtnet_user; + ALTER TABLE s_dtnet.dtdict_usedtechniques OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_usedtechniques TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_usedtechniques TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.dtdict_usedtechniques TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.dtdict_usedtechniques TO dtnet_user; + ALTER TABLE s_dtnet.rt_dtdict_status_group OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_dtdict_status_group TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_dtdict_status_group TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.rt_dtdict_status_group TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.rt_dtdict_status_group TO dtnet_user; + ALTER TABLE s_dtnet.rt_mail_status_group OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_mail_status_group TO u_vitis; + GRANT ALL ON TABLE s_dtnet.rt_mail_status_group TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.rt_mail_status_group TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.rt_mail_status_group TO dtnet_user; + ALTER TABLE s_dtnet.v_network OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_network TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_network TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.v_network TO dtnet_user; + ALTER TABLE s_dtnet.v_dtdict OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO dtnet_user; + ALTER TABLE s_dtnet.v_mail OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_mail TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_mail TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.v_mail TO dtnet_user; + ALTER TABLE s_dtnet.v_networkmanager OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_networkmanager TO u_vitis; + GRANT SELECT, UPDATE ON TABLE s_dtnet.v_networkmanager TO dtnet_manager; + ALTER TABLE s_dtnet.v_dtdict_unrestricted OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_dtdict_unrestricted TO u_vitis; + GRANT SELECT, UPDATE ON TABLE s_dtnet.v_dtdict_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_network_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_network_unrestricted TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_network_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_section_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_section_unrestricted TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_section_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_mail_unrestricted OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_mail_unrestricted TO u_vitis; + GRANT SELECT, UPDATE ON TABLE s_dtnet.v_mail_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_networkmanager_unrestricted OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_networkmanager_unrestricted TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_networkmanager_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_section OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_section TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_section TO dtnet_manager; + GRANT SELECT ON TABLE s_dtnet.v_section TO dtnet_networkmanager_data_reader; + --ALTER TABLE s_dtnet.v_section_fme OWNER TO u_vitis; + --GRANT ALL ON TABLE s_dtnet.v_section_fme TO u_vitis; + --GRANT SELECT ON TABLE s_dtnet.v_section_fme TO dtnet_networkmanager_data_reader; + ALTER TABLE s_dtnet.v_network_fme OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_network_fme TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_network_fme TO u_scheduler; + ALTER TABLE s_dtnet.v_area OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area TO dtnet_manager; + ALTER TABLE s_dtnet.v_area_notification OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_notification TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_notification TO dtnet_manager; + ALTER TABLE s_dtnet.v_area_dense OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_dense TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_dense TO dtnet_manager; + ALTER TABLE s_dtnet.v_area_document OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_document TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_document TO dtnet_manager; + ALTER TABLE s_dtnet.v_area_surveillance OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_surveillance TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_surveillance TO dtnet_manager; + ALTER TABLE s_dtnet.dtdict_network OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_network TO u_vitis; + GRANT ALL ON TABLE s_dtnet.dtdict_network TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.dtdict_network TO dtnet_manager; + GRANT ALL ON TABLE s_dtnet.dtdict_network TO dtnet_user; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_dtdict TO dtnet_user; + GRANT SELECT, DELETE ON TABLE s_dtnet.v_dtdict_unrestricted TO dtnet_admin; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_mail_unrestricted TO dtnet_admin; + GRANT SELECT, DELETE ON TABLE s_dtnet.v_mail TO dtnet_user; + ALTER TABLE s_dtnet.v_area_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_unrestricted TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_area_unrestricted TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.v_area_unrestricted TO u_scheduler; + ALTER TABLE s_dtnet.v_area_dense_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_dense_unrestricted TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_area_dense_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_area_notification_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_notification_unrestricted TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_area_notification_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_area_surveillance_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_surveillance_unrestricted TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_area_surveillance_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_area_document_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_area_document_unrestricted TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_area_document_unrestricted TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO vmap_user; + GRANT SELECT ON TABLE s_dtnet.v_section TO vmap_user; + GRANT SELECT ON TABLE s_dtnet.v_area TO vmap_user; + GRANT USAGE ON SCHEMA s_dtnet TO vmap_user; + --Fill RT + --ALTER TABLE s_dtnet.dtdict RENAME COLUMN supervisornumber TO supervisoraddressdestination; + --ALTER TABLE s_dtnet.dtdict ADD COLUMN supervisornumber character varying (100); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('CANALISATIONS_EAU_POTABLE', 'EA'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('CANALISATIONS_EAUX_USEES_OU_ASSAINISSMENT', 'EU'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('LIGNES_ELECTRIQUES_ET_ECLAIRAGE_PUBLIC_HORS_TBT', 'EL'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('CANALISATIONS_GAZ_COMBUSTIBLES', 'GA'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('CANALISATIONS_HYDROCARBURES_LIQUIDES', 'HC'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('CANALISATIONS_PRODUITS_CHIMIQUES_LIQUIDES_OU_GAZEUX', 'PC'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('RESEAUX_DE_CHALEUR_OU_DE_FROID', 'CU'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('INSTALLATIONS_DE_TRANSPORT_GUIDE', 'TR'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('CANALISATIONS_DE_TRANSPORT_DE_DECHETS', 'DE'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('DIGUES_PREVENTION_INONDATIONS_SUBMERSIONS', 'DI'); + INSERT INTO s_dtnet.rt_category (category_id, code) VALUES ('COMMUNICATIONS_ELECTRONIQUES_ET_LIGNES_ELECTRIQUES_ECLAIRAGE_TBT', 'TL'); + INSERT INTO s_dtnet.rt_condition (condition_id) VALUES ('abandonné'); + INSERT INTO s_dtnet.rt_condition (condition_id) VALUES ('actif'); + INSERT INTO s_dtnet.rt_condition (condition_id) VALUES ('inactif'); + INSERT INTO s_dtnet.rt_condition (condition_id) VALUES ('supprimé'); + INSERT INTO s_dtnet.rt_positioning (positioning_id) VALUES ('aérien'); + INSERT INTO s_dtnet.rt_positioning (positioning_id) VALUES ('souterrain'); + INSERT INTO s_dtnet.rt_positioning (positioning_id) VALUES ('souterrain et aérien'); + INSERT INTO s_dtnet.rt_sensitivity (sensitivity_id) VALUES ('S'); + INSERT INTO s_dtnet.rt_sensitivity (sensitivity_id) VALUES ('N'); + INSERT INTO s_dtnet.rt_sensitivity (sensitivity_id) VALUES ('NSFS'); + INSERT INTO s_dtnet.rt_class (class_id) VALUES ('A'); + INSERT INTO s_dtnet.rt_class (class_id) VALUES ('B'); + INSERT INTO s_dtnet.rt_class (class_id) VALUES ('C'); + INSERT INTO s_dtnet.rt_typearea (type_id, classmessage, caption) VALUES ('Dense', '""', 'Zone dense'); + INSERT INTO s_dtnet.rt_typearea (type_id, classmessage, caption) VALUES ('Document', '""', 'Zone de document annexe'); + INSERT INTO s_dtnet.rt_typearea (type_id, classmessage, caption) VALUES ('Notification', 'Dtdict Notification', 'Zone de notification'); + INSERT INTO s_dtnet.rt_typearea (type_id, classmessage, caption) VALUES ('Surveillance', 'Dtdict Validation', 'Zone de surveillance'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (2154, '', '[EPSG:2154]-RGF93/Lambert-93', 'EPSG:2154'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3857, '', '[EPSG:3857]-WGS84/Spherical Mercator', 'EPSG:3857'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3942, '', '[EPSG:3942]-RGF93/CC42 (Lambert zone 1)', 'EPSG:3942'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3943, '', '[EPSG:3943]-RGF93/CC43 (Lambert zone 2)', 'EPSG:3943'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3944, '', '[EPSG:3944]-RGF93/CC44 (Lambert zone 3)', 'EPSG:3944'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3945, '', '[EPSG:3945]-RGF93/CC45 (Lambert zone 4)', 'EPSG:3945'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3946, '', '[EPSG:3946]-RGF93/CC46 (Lambert zone 5)', 'EPSG:3946'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3947, '', '[EPSG:3947]-RGF93/CC47 (Lambert zone 6)', 'EPSG:3947'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3948, '', '[EPSG:3948]-RGF93/CC48 (Lambert zone 7)', 'EPSG:3948'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3949, '', '[EPSG:3949]-RGF93/CC49 (Lambert zone 8)', 'EPSG:3949'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (3950, '', '[EPSG:3950]-RGF93/CC50 (Lambert zone 9)', 'EPSG:3950'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (4326, '', '[EPSG:4326]-WGS84/Long-Lat', 'EPSG:4326'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27561, '', '[EPSG:27561]-NTF(Paris)/Lambert Nord France', 'EPSG:27561'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27562, '', '[EPSG:27562]-NTF(Paris)/Lambert Centre France', 'EPSG:27562'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27563, '', '[EPSG:27563]-NTF(Paris)/Lambert Sud France', 'EPSG:27563'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27564, '', '[EPSG:27564]-NTF(Paris)/Lambert Corse', 'EPSG:27564'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27571, '', '[EPSG:27571]-NTF(Paris)/Lambert zone I', 'EPSG:27571'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27572, '', '[EPSG:27572]-NTF(Paris)/Lambert zone II', 'EPSG:27572'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27573, '', '[EPSG:27573]-NTF(Paris)/Lambert zone III', 'EPSG:27573'); + INSERT INTO s_dtnet.rt_coordsys (coordsys_id, definition, label, epsg) VALUES (27574, '', '[EPSG:27574]-NTF(Paris)/Lambert zone IV', 'EPSG:27574'); + INSERT INTO s_dtnet.rt_scale (scale_id) VALUES (200); + INSERT INTO s_dtnet.rt_scale (scale_id) VALUES (500); + INSERT INTO s_dtnet.rt_scale (scale_id) VALUES (1000); + INSERT INTO s_dtnet.rt_scale (scale_id) VALUES (1200); + INSERT INTO s_dtnet.rt_scale (scale_id) VALUES (2000); + + --Partie s_vitis généré par WAB le 02/11/2017 à 16:05:04 + DELETE FROM s_vitis.vm_section WHERE label_id ~ '^dtnet_([0-9]+)$'; + DELETE FROM s_vitis.vm_table_field WHERE label_id ~ '^dtnet_([0-9]+)$'; + DELETE FROM s_vitis.vm_table_button WHERE label_id ~ '^dtnet_([0-9]+)$'; + DELETE FROM s_vitis.vm_module WHERE module_id='dtnet'; + DELETE FROM s_vitis.vm_string WHERE string_id ~ '^dtnet_([0-9]+)$'; + INSERT INTO s_vitis.vm_module (module_id, description, version, label) VALUES ('dtnet','Module dt/dict v2',0.1,'Module dt/dict v2'); + INSERT INTO s_vitis.group (group_id, name) SELECT (SELECT nextval('s_vitis.seq_common'::regclass)), 'dtnet_signataire' WHERE NOT EXISTS (SELECT group_id FROM s_vitis.group WHERE name='dtnet_signataire'); + INSERT INTO s_vitis.group (group_id, name) SELECT (SELECT nextval('s_vitis.seq_common'::regclass)), 'dtnet_instructeur' WHERE NOT EXISTS (SELECT group_id FROM s_vitis.group WHERE name='dtnet_instructeur'); + INSERT INTO s_vitis.group (group_id, name) SELECT (SELECT nextval('s_vitis.seq_common'::regclass)), 'dtnet_exploitant' WHERE NOT EXISTS (SELECT group_id FROM s_vitis.group WHERE name='dtnet_exploitant'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'dtnet_admin', 'Superviseur DtNet' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='dtnet_admin'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'dtnet_manager', 'Gestionnaire de réseaux DtNet' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='dtnet_manager'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'dtnet_user', 'Instructeur DtNet' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='dtnet_user'); + INSERT INTO s_vitis.privileges (rolname, description) SELECT 'dtnet_networkmanager_data_reader', 'lecteur de flux wms pour FME' WHERE NOT EXISTS (SELECT rolname FROM s_vitis.privileges WHERE rolname='dtnet_networkmanager_data_reader'); + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='dtnet_admin') THEN CREATE ROLE dtnet_admin NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='dtnet_manager') THEN CREATE ROLE dtnet_manager NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='dtnet_user') THEN CREATE ROLE dtnet_user NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname='dtnet_networkmanager_data_reader') THEN CREATE ROLE dtnet_networkmanager_data_reader NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; END IF; END $$; + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_2'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_13'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_14'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_sup_request', 'dtnet_20'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_15'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_27'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_21'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail_id', 'dtnet_54'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_22'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_sup_network', 'dtnet_28'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_23'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_sup_mail', 'dtnet_16'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_6'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_17'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_29'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_sup_owner', 'dtnet_24'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field status', 'dtnet_39'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_25'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_18'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_1'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_3'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field serviceconsultationnumber', 'dtnet_34'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_10'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field requesttype', 'dtnet_35'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_19'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_26'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_11'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_30'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_network', 'dtnet_12'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workadress', 'dtnet_37'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field caller', 'dtnet_36'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field requestdate', 'dtnet_33'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field request_id', 'dtnet_32'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_31'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field cities', 'dtnet_40'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_owner', 'dtnet_8'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field answerfile', 'dtnet_38'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_mail', 'dtnet_4'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field projectbeginningdate', 'dtnet_41'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_5'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workcode', 'dtnet_43'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field network_id', 'dtnet_42'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field geodataversion', 'dtnet_44'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_category', 'dtnet_47'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ownername', 'dtnet_48'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field loadingdate', 'dtnet_45'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field folderresponsable', 'dtnet_46'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field owner_id', 'dtnet_49'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ownername', 'dtnet_50'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field icon', 'dtnet_51'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field contactmail', 'dtnet_52'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field automaticmode', 'dtnet_53'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_7'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field receiver', 'dtnet_56'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field sender', 'dtnet_55'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_request', 'dtnet_0'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ownername', 'dtnet_57'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail_id', 'dtnet_58'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field receiver', 'dtnet_60'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ownername', 'dtnet_61'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field sender', 'dtnet_59'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field network_id', 'dtnet_62'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field geodataversion', 'dtnet_64'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field folderresponsable', 'dtnet_66'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field id_category', 'dtnet_67'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workcode', 'dtnet_63'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field loadingdate', 'dtnet_65'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ownername', 'dtnet_68'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field owner_id', 'dtnet_69'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field contactmail', 'dtnet_72'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field ownername', 'dtnet_70'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field icon', 'dtnet_71'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field automaticmode', 'dtnet_73'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field request_id', 'dtnet_74'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field requesttype', 'dtnet_77'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field status', 'dtnet_81'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field cities', 'dtnet_82'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field projectbeginningdate', 'dtnet_83'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field serviceconsultationnumber', 'dtnet_76'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field caller', 'dtnet_78'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workadress', 'dtnet_79'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field answerfile', 'dtnet_80'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field requestdate', 'dtnet_75'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field responsefile', 'dtnet_105'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_84'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_89'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field dtdictdate', 'dtnet_100'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field serviceconsultationnumber', 'dtnet_101'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field dtdicttype', 'dtnet_102'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field caller', 'dtnet_103'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workadress', 'dtnet_104'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field cities', 'dtnet_106'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field projectbeginningdate', 'dtnet_107'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field status_name', 'dtnet_108'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field callersiretnumber', 'dtnet_109'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field sender', 'dtnet_111'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanager_id', 'dtnet_114'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanagername', 'dtnet_115'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field receiptaddress', 'dtnet_116'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field icon', 'dtnet_117'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field isautomode', 'dtnet_118'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_88'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_97'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_152'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_network', 'dtnet_95'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_92'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_unr_mail', 'dtnet_141'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_96'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_143'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field receiver', 'dtnet_112'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field dtdict_id', 'dtnet_99'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section config', 'dtnet_9'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section user', 'dtnet_161'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field outputcoordsys', 'dtnet_159'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field siretnumber', 'dtnet_160'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workcode', 'dtnet_120'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanagername', 'dtnet_125'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field filesupervisor', 'dtnet_123'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field category_id', 'dtnet_124'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field geodataversion', 'dtnet_121'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field loadingdate', 'dtnet_122'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field network_id', 'dtnet_119'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_98'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_127'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail_id', 'dtnet_110'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('unr_dtdict.responsetime', 'dtnet_86'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field dtdict_id', 'dtnet_130'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field serviceconsultationnumber', 'dtnet_132'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field dtdicttype', 'dtnet_133'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field caller', 'dtnet_134'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field workaddress', 'dtnet_135'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field responsefile', 'dtnet_136'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanagername', 'dtnet_137'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field cities', 'dtnet_138'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field projectbeginningdate', 'dtnet_139'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_85'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Ajout', 'dtnet_153'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail_id', 'dtnet_145'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanagername', 'dtnet_113'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_142'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field sender', 'dtnet_146'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field status_name', 'dtnet_140'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field receiver', 'dtnet_147'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanagername', 'dtnet_148'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field status_name', 'dtnet_149'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('unr_dtdict.mail_id', 'dtnet_144'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section General', 'dtnet_151'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('dtdict.mail_id', 'dtnet_129'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanager_id', 'dtnet_154'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field networkmanagername', 'dtnet_155'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field receiptaddress', 'dtnet_156'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field icon', 'dtnet_157'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field isautomode', 'dtnet_158'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_mail', 'dtnet_87'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_unr_networkmanager', 'dtnet_150'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_networkmanager', 'dtnet_91'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet dtnet_unr_demande', 'dtnet_126'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('unr_nm.receiptadress', 'dtnet_90'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field dtdictdate', 'dtnet_131'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section file manager', 'dtnet_162'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section mail_file_manager', 'dtnet_163'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section cerfa', 'dtnet_164'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section nm_file_manager', 'dtnet_165'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('section map de dtdict', 'dtnet_166'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('objet rsx', 'dtnet_167'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Section network_filemanager', 'dtnet_168'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('Boutton Supprimer', 'dtnet_128'); + INSERT INTO s_vitis.vm_string (string, string_id) VALUES ('field mail.receptiondate', 'dtnet_169'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_152','en','Remove Managers'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_152','fr','Supprimer les exploitants séléctionnés'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_153','en','add a manager'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_153','fr','Ajout d''un exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_169','en','Reception date'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_89','fr','Supprimer les mails séléctionnés'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_110','en','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_110','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_129','en','Mail linked'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_0','en','Requests'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_88','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_96','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_111','en','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_111','fr','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_119','en','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_120','en','Ouvrage'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_121','en','Version des données'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_122','en','Date de chargement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_123','en','Responsable'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_124','en','Catégorie'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_125','en','Exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_88','fr','General'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_129','fr','Mail associé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_112','en','Exploitant associé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_112','fr','Exploitant associé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_144','en','Mail linked'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_144','fr','Mail associé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_96','fr','General'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_90','en','receipt address'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_90','fr','Adresse de réception'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_127','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_142','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_151','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_120','fr','Ouvrage'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_125','fr','Exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_123','fr','Responsable'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_124','fr','Catégorie'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_121','fr','Version des données'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_122','fr','Date de chargement'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_119','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_113','fr','Reçu le'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_127','fr','Général'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_113','en','Reçu le'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_142','fr','Général'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_161','fr','dtNet'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_151','fr','General'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_0','fr','Déclarations'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_87','fr','Mails'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_87','en','Mails'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_95','en','Networks'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_95','fr','Réseaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_126','fr','Déclarations'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_126','en','Requests'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_141','fr','Mails'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_141','en','Mails'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_150','fr','Exploitants'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_150','en','Managers'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_89','en','Remove mails'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_97','fr','Supprimer les réseaux séléctionnés'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_97','en','Remove networks'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_98','fr','Ajouter un réseau'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_98','en','Add a network'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_128','en','Remove Requests'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_143','fr','Supprimer les mails séléctionnés'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_143','en','Remove mails'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_161','en','dtNet'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_164','fr','Récépissé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_164','en','Response'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_165','fr','Fichiers'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_165','en','Files'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_166','fr','Carte'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_166','en','Map'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_128','fr','Supprimer les dtdict séléctionnées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_169','fr','Date de réception'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_147','fr','Exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_148','fr','Nom de l''exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_149','fr','Status'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_154','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_155','fr','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_156','fr','Mail'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_157','fr','Logo'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_158','fr','Mode automatique'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_91','fr','Exploitants'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_91','en','Managers'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_85','fr','Supprimer les dtdict séléctionnées'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_85','en','Remove requests'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_167','fr','Réseaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_167','en','Networks'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_84','en','General'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_84','fr','General'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_92','en',NULL); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_99','en','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_100','en','Date de la demande'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_100','fr','Date de la demande'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_101','en','Numéro'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_101','fr','Numéro'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_102','en','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_102','fr','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_103','en','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_103','fr','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_104','en','Adresse des travaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_104','fr','Adresse des travaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_105','en','récépissé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_106','en','Commune(s)'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_106','fr','Commune(s)'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_107','en','Date de début du chantier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_107','fr','Date de début du chantier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_108','en','Etat'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_108','fr','Etat'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_109','en','SIRET demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_109','fr','SIRET demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_114','en','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_114','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_115','en','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_115','fr','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_116','en','Email'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_116','fr','Email'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_117','en','Logo'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_117','fr','Logo'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_118','en','Mode automatique'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_118','fr','Mode automatique'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_168','fr','Annexe'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_92','fr','General'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_99','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_168','en','files'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_130','en','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_131','en','date de la demande'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_132','en','Numéro'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_133','en','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_134','en','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_135','en','Adresse des travaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_136','en','Récépissé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_137','en','Exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_138','en','Commune(s)'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_139','en','Date de début du chantier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_140','en','Etat'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_145','en','mail_id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_146','en','sender'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_147','en','receiver'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_148','en','networkmanagername'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_149','en','status_name'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_154','en','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_155','en','Nom'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_156','en','Mail'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_157','en','Logo'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_158','en','Mode automatique'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_159','en','EPSG'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_159','fr','EPSG'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_160','en','SIRET'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_160','fr','SIRET'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_130','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_132','fr','Numéro'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_133','fr','Type'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_134','fr','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_135','fr','Adresse des travaux'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_136','fr','Récépissé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_137','fr','Exploitant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_138','fr','Commune(s)'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_139','fr','Date de début du chantier'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_145','fr','Id'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_146','fr','Demandeur'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_140','fr','Etat'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_86','en','Deadline'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_86','fr','Jour restant'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_131','fr','Date de la demande'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_105','fr','Récépissé'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_9','fr','DtNet'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_9','en','DtNet'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_162','fr','Fichiers'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_162','en','Files'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_163','fr','Fichiers'); + INSERT INTO s_vitis.vm_translation (translation_id, lang, translation) VALUES ('dtnet_163','en','Files'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('demande','dtnet'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('exploitant','dtnet'); + INSERT INTO s_vitis.vm_mode (mode_id, module_id) VALUES ('supervision_dtnet','dtnet'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (0,'demande','dtnet_user'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (1,'exploitant','dtnet_manager'); + INSERT INTO s_vitis.vm_mode_rolname (index,mode_id, rolname) VALUES (2,'supervision_dtnet','dtnet_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()', 1, 'demande', 'dtnet_87', 'dtnet/mails', NULL, 'showSectionForm', 'mail_id', 'DESC', 'dtnet_mail'); + 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, 'demande', 'dtnet_0', 'dtnet/dtdicts', 'editSectionForm', 'showSectionForm', 'dtdict_id', 'DESC', 'dtnet_dtdict'); + 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, 'exploitant', 'dtnet_95', 'dtnet/networks', 'editSectionForm', 'showSectionForm', 'network_id', 'DESC', 'dtnet_network'); + 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, 'exploitant', 'dtnet_91', 'dtnet/networkmanagers', 'editSectionForm', 'showSectionForm', 'networkmanager_id', 'DESC', 'dtnet_networkmanager'); + 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, 'supervision_dtnet', 'dtnet_150', 'dtnet/unr_networkmanagers', 'editSectionForm', 'showSectionForm', 'networkmanager_id', 'DESC', 'dtnet_unr_networkmanager'); + 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, 'supervision_dtnet', 'dtnet_126', 'dtnet/unr_dtdicts', NULL, 'showSectionForm', 'dtdict_id', 'DESC', 'dtnet_unr_dtdict'); + 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, 'supervision_dtnet', 'dtnet_141', 'dtnet/unr_mails', NULL, 'showSectionForm', 'mail_id', 'DESC', 'dtnet_unr_mail'); + 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, 'supervision_dtnet', 'dtnet_167', 'dtnet/unr_networks', NULL, 'showSectionForm', 'network_id', 'DESC', 'dtnet_unr_network'); + 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', 'dtnet_89', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail')); + 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', 'dtnet_85', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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', 'dtnet_97', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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', 'dtnet_98', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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', 'dtnet_152', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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', 'dtnet_153', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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', 'dtnet_128', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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', 'dtnet_143', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_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_id', '1', '1', 11, 50, 'center', 'dtnet_129', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), '<div data-app-linker data-item-data="{{row.entity[col.field]}}" data-object="demande_dtnet_mail" data-mode="display" data-field-to-select="{{row.entity.mail_id}}" class="ui-grid-cell-contents"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'responsefile', '1', '1', 6, 75, 'left', 'dtnet_136', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-document-viewer data-path="dtnet" data-file="{{row.entity[col.field]}}" data-alias="ws_data_alias" data-max-popover="200" data-img-class data-popover-class></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'projectbeginningdate', '1', '1', 8, 75, 'left', 'dtnet_107', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'network_id', '1', '1', 0, 75, 'left', 'dtnet_119', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'geodataversion', '1', '1', 2, 100, 'left', 'dtnet_121', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'filesupervisor', '1', '1', 4, 100, 'left', 'dtnet_123', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'responsetime', false, '1', 12, 75, 'center', 'dtnet_86', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-response-time="{{row.entity[col.field]}}"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'networkmanager_id', '1', '1', 0, 100, 'left', 'dtnet_114', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager')); + 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)), 'receiptaddress', '1', '1', 2, 100, 'left', 'dtnet_116', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager')); + 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)), 'networkmanagername', '1', '1', 1, 100, 'left', 'dtnet_115', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager')); + 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)), 'responsefile', '1', '1', 6, 75, 'left', 'dtnet_105', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), '<div data-app-document-viewer data-path="dtnet" data-file="{{row.entity[col.field]}}" data-alias="ws_data_alias" data-max-popover="200" data-img-class data-popover-class></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'isautomode', '1', '1', 4, 50, 'left', 'dtnet_158', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), '<div ng-if="row.entity[col.field]" class="true-icon ui-grid-cell-contents"></div><div ng-if="!row.entity[col.field]" class="false-icon ui-grid-cell-contents"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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_id', '1', '1', 11, 50, 'center', 'dtnet_144', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-linker data-item-data="{{row.entity[col.field]}}" data-object="supervision_dtnet_dtnet_unr_mail" data-mode="display" data-field-to-select="{{row.entity.mail_id}}" class="ui-grid-cell-contents"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'dtdictdate', '1', '1', 1, 75, 'left', 'dtnet_100', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'receptiondate', '1', '1', 3, 150, 'left', 'dtnet_113', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_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)), 'icon', '1', '1', 3, 50, 'left', 'dtnet_117', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), '<div data-app-document-viewer data-path="dtnet" data-file="{{row.entity[col.field]}}" data-alias="ws_data_alias" data-max-popover="200" data-img-class data-popover-class></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager')); + 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)), 'workaddress', '1', '1', 5, 150, 'left', 'dtnet_135', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'status_name', '1', '1', 9, 100, 'left', 'dtnet_108', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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_id', '1', '1', 0, 50, 'left', 'dtnet_145', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_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)), 'networkmanagername', '1', '1', 7, 100, 'left', 'dtnet_137', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-linker data-item-data="{{row.entity[col.field]}}" data-object="supervision_dtnet_dtnet_unr_networkmanager" data-mode="update" data-field-to-select="{{row.entity.networkmanager_id}}" class="ui-grid-cell-contents"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'status_name', '1', '1', 4, 75, 'left', 'dtnet_149', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_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)), 'receiver', '1', '1', 2, 150, 'left', 'dtnet_147', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_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)), 'networkmanagername', '1', '1', 3, 100, 'left', 'dtnet_148', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), '<div data-app-linker data-item-data="{{row.entity[col.field]}}" data-object="supervision_dtnet_dtnet_unr_networkmanager" data-mode="update" data-field-to-select="{{row.entity.networkmanager_id}}" class="ui-grid-cell-contents"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_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)), 'dtdict_id', '1', '1', 0, 50, 'left', 'dtnet_130', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'projectbeginningdate', '1', '1', 9, 75, 'left', 'dtnet_139', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'icon', '1', '1', 2, 50, 'center', 'dtnet_157', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), '<div data-app-document-viewer data-path="dtnet" data-file="{{row.entity[col.field]}}" data-alias="ws_data_alias" data-max-popover="200" data-img-class data-popover-class></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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)), 'status_name', '1', '1', 10, 100, 'left', 'dtnet_140', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'loadingdate', '1', '1', 3, 100, 'left', 'dtnet_122', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'receiptaddress', '1', '1', 3, 100, 'left', 'dtnet_90', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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)), 'outputcoordsys', '1', '1', 5, 50, 'center', 'dtnet_159', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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)), 'siretnumber', '1', '1', 6, 100, 'left', 'dtnet_160', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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)), 'workaddress', '1', '1', 5, 150, 'left', 'dtnet_104', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'cities', '1', '1', 7, 85, 'center', 'dtnet_106', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), '<div data-app-cities-list="{{row.entity[col.field]}}"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'cities', '1', '1', 8, 85, 'center', 'dtnet_138', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-cities-list="{{row.entity[col.field]}}"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'serviceconsultationnumber', '1', '1', 2, 150, 'left', 'dtnet_132', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'networkmanager_id', '1', '1', 0, 75, 'left', 'dtnet_154', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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)), 'networkmanagername', '1', '1', 1, 100, 'left', 'dtnet_155', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager')); + 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)), 'dtdict_id', '1', '1', 0, 50, 'left', 'dtnet_99', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'caller', '1', '1', 4, 75, 'left', 'dtnet_103', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'serviceconsultationnumber', '1', '1', 2, 150, 'left', 'dtnet_101', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'dtdicttype', '1', '1', 3, 75, 'left', 'dtnet_102', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'callersiretnumber', '1', '1', 10, 100, 'left', 'dtnet_109', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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_id', '1', '1', 0, 50, 'left', 'dtnet_110', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_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)), 'sender', '1', '1', 1, 150, 'left', 'dtnet_111', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_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)), 'receiver', '1', '1', 2, 150, 'left', 'dtnet_112', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_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)), 'networkmanagername', '1', '1', 6, 100, 'left', 'dtnet_125', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'workcode', '1', '1', 1, 75, 'left', 'dtnet_120', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'category_id', '1', '1', 5, 200, 'left', 'dtnet_124', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network')); + 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)), 'dtdicttype', '1', '1', 3, 75, 'left', 'dtnet_133', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'caller', '1', '1', 4, 150, 'left', 'dtnet_134', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'sender', '1', '1', 1, 150, 'left', 'dtnet_146', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_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)), 'dtdictdate', '1', '1', 1, 75, 'left', 'dtnet_131', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict')); + 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)), 'responsetime', false, true, 12, 75, 'center', 'dtnet_86', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), '<div data-app-response-time="{{row.entity[col.field]}}"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict')); + 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)), 'networkmanagername', '1', '1', 6, 100, 'left', 'dtnet_125', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network')); + 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)), 'workcode', '1', '1', 2, 100, 'left', 'dtnet_120', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network')); + 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)), 'category_id', '1', '1', 5, 200, 'left', 'dtnet_124', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network')); + 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)), 'loadingdate', '1', '1', 4, 100, 'left', 'dtnet_122', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network')); + 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)), 'geodataversion', '1', '1', 3, 100, 'left', 'dtnet_121', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network')); + 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)), 'network_id', '1', '1', 1, 75, 'left', 'dtnet_119', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), NULL,(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network')); + 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)), 'isautomode', '1', '1', 4, 75, 'left', 'dtnet_118', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), '<div ng-if="row.entity[col.field]" class="true-icon ui-grid-cell-contents"></div><div ng-if="!row.entity[col.field]" class="false-icon ui-grid-cell-contents"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager')); + 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)), 'receptiondate', '1', '1', 4, 100, 'left', 'dtnet_169', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_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)), 'receptiondate', '1', '1', 5, 100, 'left', 'dtnet_169', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), '<div data-app-format-date-column="{{row.entity[col.field]}}" data-format="DD/MM/YYYY"></div>',(SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail')); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_166', 'map', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_84', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_88', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_92', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_96', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_127', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_142', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_151', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_165', 'general', 1, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), 'workspaceListTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_9', 'dtnetConfig', 12, 'loadDtnetConfig()', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'vitis_configuration'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'vitis_configuration'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_164', 'dtdict_cerfa', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_162', 'dtdict_filemanager', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'dtnet'); + --INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_166', 'map', 4, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_161', 'dtnet_user', 12, 'loadDtnetUser()', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'vitis_users'), 'simpleFormTpl.html', 'dtnet/dtnetusers', 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_165', 'mail_filemanager', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_mail'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_162', 'dtdict_file_manager', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_168', 'network_filemanager', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_network'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_165', 'nm_filemanager', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_networkmanager'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_168', 'network_filemanager', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_unr_network'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_164', 'dtdict_cerfa', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_dtdict'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_163', 'mail_file_manager', 3, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_mail'), 'dtnet'); + INSERT INTO s_vitis.vm_section (label_id, name, index, event, tab_id, template, ressource_id, module) VALUES ('dtnet_165', 'nm_file_manager', 2, 'Javascript:loadSectionForm', (SELECT tab_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), 'simpleFormTpl.html', (SELECT ressource_id FROM s_vitis.vm_tab WHERE vm_tab.name = 'dtnet_networkmanager'), 'dtnet'); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','START', 0); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','Nouveau', 5); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','A signer', 95); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','Non conforme', 100); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','A valider', 75); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','Réponse envoyée', 100); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_dtdict_status','En cours de traitement', 50); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_mail_status','START', 0); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_mail_status','Valide', 100); + SELECT s_vitis.wabInsertState('s_dtnet', 'rt_mail_status','Non valide', 100); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Dtdict Non conforme','action'); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Mail Non Conforme','action'); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Dtdict A Envoyer','action'); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Dtdict Validation','action'); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Dtdict Conforme','action'); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Dtdict Notification','action'); + INSERT INTO s_gtf.messageclass (messageclass, messageclass_type) VALUES ('Dtdict Reception ATU','action'); + INSERT INTO s_gtf.email_template (name, subject, body, "to", cc, cci, code, use_advanced, rt_emailcontext_id, attachment) VALUES ('Mail_Non_Conforme', NULL, NULL, NULL, NULL, NULL, '$iMailId = $this->aObjects["oMessage"]->getBody(''mail_id'');' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "BOID"=>array("value"=> $iMailId, "type"=>''number'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].mail WHERE mail_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oMail = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "NMID"=>array("value"=> $oMail[''receiver''], "type"=>''string'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$date = new DateTime(/*$oMail[receptiondate]*/);' || chr(13) || '' || chr(13) || '$this->to = $oMail[''sender'']; //champ à ajouter avec le canal' || chr(13) || '' || chr(13) || 'if($oNM["usematdmat"] === true){' || chr(13) || ' $this->to = "traitement.anomalie@myrecepisse.fr ";' || chr(13) || '}' || chr(13) || '' || chr(13) || '$this->cc = '''';' || chr(13) || '$this->cci = '''';' || chr(13) || '$this->subject = $oNM["networkmanagername"]. '' - DT/DICT - Mail non conforme'';' || chr(13) || '$this->body = ''<p>[Attention : Ce message est généré automatiquement – Il n’est pas possible d’y répondre] </p>' || chr(13) || ' <p>Vous avez tenté, le ''.$date->format(''d/m/Y'').'' d\''adresser une déclaration sous forme dématérialisée, en utilisant l\''adresse courriel référencée sur le Guichet Unique.</p>' || chr(13) || ' <p>Conformément à l\''arrêté du 19 juin 2014 définissant les formats de fichiers numériques, vous êtes tenu de transmettre votre déclaration sous format XML et PDF comme mentionné sur le Guichet Unique.</p>' || chr(13) || ' <p>Or votre mail ne contenait pas ces derniers.</p>' || chr(13) || ' <p>Votre mail doit contenir une seule déclaration au format XML, et au minimum cette même déclaration au format PDF (fichiers PDF annexes acceptés).</p>' || chr(13) || ' <p>Par conséquent votre déclaration n\''est pas conforme et n\''a pas été portée à la connaissance de l\''exploitant.</p>' || chr(13) || ' <p>Il est donc indispensable que vous fassiez parvenir à nouveau cette déclaration à l’adresse ''.$oNM["receiptaddress"].'' en ayant pris soin de revoir les fichiers que vous êtes tenu de transmettre.</p>' || chr(13) || ' <p></p>' || chr(13) || ' <p>''.$oNM["networkmanagername"].''</p>'';', '1', 'gtf', NULL); + INSERT INTO s_gtf.email_template (name, subject, body, "to", cc, cci, code, use_advanced, rt_emailcontext_id, attachment) VALUES ('DtDict Zone de projet', NULL, NULL, NULL, NULL, NULL, '$iBoId = $this->aObjects["oMessage"]->getBody(''dtdict_id'');' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "BOID"=>array("value"=> $iBoId, "type"=>''number'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].dtdict WHERE dtdict_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oDtdict = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "NMID"=>array("value"=> $oDtdict[''networkmanager_id''], "type"=>''string'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$date = new DateTime($oDtdict["creationdate"]);' || chr(13) || '' || chr(13) || '$this->to = $oNM[''contactmail''];' || chr(13) || '$this->cc = ''''; // $oDtdict[''mailcopy'']' || chr(13) || '$this->cci = '''';' || chr(13) || '$this->subject = $oNM["networkmanagername"]. '' - '' . $oDtdict["dtdicttype"] . '' - Demande ''.$oDtdict["serviceconsultationnumber"].'' dans une zone de projet'';' || chr(13) || '$this->body = ''<p>[Attention : Ce message est généré automatiquement – Il n’est pas possible d’y répondre] </p>' || chr(13) || ' <p>Le ''.$date->format(''d/m/Y'').'' une déclaration de '' . $oDtdict["dtdicttype"] . '' (n°''. $oDtdict["serviceconsultationnumber"] .'') a été faite dans une de vos zones de notification.</p>'';', '1', 'gtf', NULL); + INSERT INTO s_gtf.email_template (name, subject, body, "to", cc, cci, code, use_advanced, rt_emailcontext_id, attachment) VALUES ('Dtdict Réponse', NULL, NULL, NULL, NULL, NULL, '$iBoId = $this->aObjects[''oBusinessObject'']->aValues["dtdict_id"];' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "BOID"=>array("value"=> $iBoId, "type"=>''number'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].dtdict WHERE dtdict_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oDtdict = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "NMID"=>array("value"=> $oDtdict[''networkmanager_id''], "type"=>''string'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "MAILID"=>array("value"=> $oDtdict[''mail_id''], "type"=>''integer'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].mail WHERE mail_id=[MAILID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oMail = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$date = new DateTime($oDtdict["creationdate"]);' || chr(13) || '' || chr(13) || '$this->to = $oMail[''sender''];// champ à ajouter avec le canal' || chr(13) || '' || chr(13) || 'if($oNM["usematdmat"] === true){' || chr(13) || ' if($oDtdict["receptiontype"] !== "MAIL"){' || chr(13) || ' $this->to = "traitement-" . strtolower($oDtdict["receptiontype"]) . "@myrecepisse.fr";' || chr(13) || ' }' || chr(13) || '}' || chr(13) || '$this->cc = $oDtdict[''mailcopy''];' || chr(13) || '$this->cci = '''';' || chr(13) || '$this->aAttachments = array($this->aProperties["ws_data_dir"] . ''/dtnet/dtdict/'' . $iBoId . ''/'' . $oDtdict["serviceconsultationnumber"] . ''.zip'');' || chr(13) || '$this->subject = $oNM["networkmanagername"]. '' - '' . $oDtdict["dtdicttype"] . '' - Demande ''.$oDtdict["serviceconsultationnumber"].'' récépissé'';' || chr(13) || '$this->body = ''<p>[Attention : Ce message est généré automatiquement – Il n’est pas possible d’y répondre] </p>' || chr(13) || ' <p>Vous avez adressé, le ''.$date->format(''d/m/Y'').''une déclaration de '' . $oDtdict["dtdicttype"] . '' (n°''. $oDtdict["serviceconsultationnumber"] .'') sous forme dématérialisée, en utilisant l\''adresse courriel référencée sur le Guichet Unique.</p>' || chr(13) || ' <p>Vous trouverez ci-joint à ce mail le récépissé au format PDF.</p>' || chr(13) || ' <p></p>' || chr(13) || ' <p>Cordialement</p>' || chr(13) || ' <p></p>' || chr(13) || ' <p>''.$oNM["networkmanagername"].''</p>'';', '1', 'gtf', NULL); + INSERT INTO s_gtf.email_template (name, subject, body, "to", cc, cci, code, use_advanced, rt_emailcontext_id, attachment) VALUES ('Dtdict_Non_Conforme', NULL, NULL, NULL, NULL, NULL, '$iBoId = $this->aObjects["oMessage"]->getBody(''dtdict_id'');' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "BOID"=>array("value"=> $iBoId, "type"=>''number'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].dtdict WHERE dtdict_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oDtdict = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "NMID"=>array("value"=> $oDtdict[''networkmanager_id''], "type"=>''string'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "MAILID"=>array("value"=> $oDtdict[''mail_id''], "type"=>''integer'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].mail WHERE mail_id=[MAILID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oMail = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$date = new DateTime($oDtdict["creationdate"]);' || chr(13) || '' || chr(13) || '$this->to = $oMail[''sender''];// champ à ajouter avec le canal' || chr(13) || '' || chr(13) || 'if($oNM["usematdmat"] === true){' || chr(13) || ' $this->to = "traitement.anomalie@myrecepisse.fr ";' || chr(13) || '}' || chr(13) || '' || chr(13) || '$sPath = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $iBoId . "/rapport_erreurs.html";' || chr(13) || 'if(file_exists($sPath)){' || chr(13) || ' $this->aAttachments = array($sPath);' || chr(13) || '}' || chr(13) || '' || chr(13) || '$this->cc = '''';' || chr(13) || '$this->cci = '''';' || chr(13) || '$this->subject = $oNM["networkmanagername"]. '' - Demande non conforme'';' || chr(13) || '$this->body = ''<p>[Attention : Ce message est généré automatiquement – Il n’est pas possible d’y répondre] </p>' || chr(13) || ' <p>Vous avez tenté, le ''.$date->format(''d/m/Y'').'' d\''adresser une déclaration sous forme dématérialisée, en utilisant l\''adresse courriel référencée sur le Guichet Unique.</p>' || chr(13) || ' <p>Conformément à l\''arrêté du 19 juin 2014 définissant les formats de fichiers numériques, vous êtes tenu de transmettre votre déclaration sous format XML et PDF comme mentionné sur le Guichet Unique.</p>' || chr(13) || ' <p>Or la structure du fichier XML n\''était pas conforme à la réglementation en vigueur.</p>' || chr(13) || ' <p>Par conséquent votre déclaration n\''est pas conforme et n\''a pas été portée à la connaissance de l\''exploitant.</p>' || chr(13) || ' <p>Il est donc indispensable que vous fassiez parvenir à nouveau cette déclaration à l’adresse ''.$oNM["receiptaddress"].'' en ayant pris soin de revoir les fichiers que vous êtes tenu de transmettre.</p>' || chr(13) || ' <p></p>' || chr(13) || ' <p>''.$oNM["networkmanagername"].''</p>'';', '1', 'gtf', NULL); + INSERT INTO s_gtf.email_template (name, subject, body, "to", cc, cci, code, use_advanced, rt_emailcontext_id, attachment) VALUES ('Notification ATU pour l''exploitant', NULL, NULL, NULL, NULL, NULL, '$iBoId = $this->aObjects[''oMessage'']->getBody(''dtdict_id'');' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "BOID"=>array("value"=> $iBoId, "type"=>''number'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].dtdict WHERE dtdict_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oDtdict = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "NMID"=>array("value"=> $oDtdict[''networkmanager_id''], "type"=>''string'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$this->to = $oNM[''contactmail''];// champ à ajouter avec le canal' || chr(13) || '$this->cc = '''';' || chr(13) || '$this->cci = '''';' || chr(13) || '$this->subject = ''ATU - Notification d\''Avis de Travaux Urgents n°''.$oDtdict["serviceconsultationnumber"].'' par ''.$oDtdict["caller"];' || chr(13) || '$this->body = ''<p>[Attention : Ce message est généré automatiquement – Il n\''est pas possible d’y répondre] </p>' || chr(13) || ' <p>Un Avis de Travaux Urgents (ATU) n°''.$oDtdict["serviceconsultationnumber"].'' vient d\''être envoyé par ''.$oDtdict["caller"].''.</p>' || chr(13) || ' <p>Cliquez sur le lien ci-dessous pour accéder au contenu de cet avis.</p>' || chr(13) || ' <p></p>'';', '1', 'gtf', NULL); + INSERT INTO s_gtf.email_template (name, subject, body, "to", cc, cci, code, use_advanced, rt_emailcontext_id, attachment) VALUES ('DtDict Mode Manuel', NULL, NULL, NULL, NULL, NULL, '$iBoId = $this->aObjects["oMessage"]->getBody(''dtdict_id'');' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "BOID"=>array("value"=> $iBoId, "type"=>''number'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].dtdict WHERE dtdict_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oDtdict = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>''column_name''),' || chr(13) || ' "NMID"=>array("value"=> $oDtdict[''networkmanager_id''], "type"=>''string'')' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$sUrl = $this->aProperties["web_server_name"] . "/dtnet";' || chr(13) || '' || chr(13) || '$this->to = $oNM["contactmail"];' || chr(13) || '$this->cc = '''';' || chr(13) || '$this->cci = '''';' || chr(13) || '$this->subject = ''DtNet - Demande ''.$oDtdict[''noconsultationduteleservice''].'' nécessite une intervention de votre part'';' || chr(13) || '$this->body = ''<p>[Attention : Ce message est généré automatiquement – Il n’est pas possible d’y répondre] </p>' || chr(13) || ' <p>La demande n°''.$oDtdict[''noconsultationduteleservice''].'' reçue ce jour sur la plateforme de traitement automatisé des DT-DICT nécessite une intervention de votre part.</p>' || chr(13) || ' <p>2 raisons possibles :</p>' || chr(13) || ' <p> - Vous avez paramétré le service pour que l\''ensemble des réponses nécessitent une validation avant envoi. </p>' || chr(13) || ' <p> - Cette demande se situe à proximité d\''un périmètre pour lequel vous souhaitez valider la réponse générée automatiquement ou produire manuellement la réponse sans passer par le service de réponse automatisé.</p>' || chr(13) || ' <p>Cliquez sur le lien ci-dessous pour accéder au contenu de cette demande.</p>' || chr(13) || ' <p><a href="''.$sUrl.''">''.$sUrl.''</a></p>'';', '1', 'gtf', NULL); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Conforme','BoAction',0,'bo_id_attribute=''dtdict_id''|method=''trConforme''|class=''Dtdicts''|module=''dtnet'''); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Non conforme','BoAction',0,'bo_id_attribute=''dtdict_id''|method=''trNonConforme''|class=''Dtdicts''|module=''dtnet'''); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Non conforme','EmailAction',1,'template_id=' || (SELECT email_template_id FROM s_gtf.email_template WHERE name = 'Dtdict_Non_Conforme')); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Mail Non Conforme','EmailAction',0,'template_id=' || (SELECT email_template_id FROM s_gtf.email_template WHERE name = 'Mail_Non_Conforme')); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Notification','EmailAction',0,'template_id = ' || (SELECT email_template_id FROM s_gtf.email_template WHERE name = 'DtDict Zone de projet')); + --INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),NULL,'BoAction',0,'bo_id_attribute=''dtdict_id''|method=''trSignature''|class=''Dtdicts''|module=''dtnet'''); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict A Envoyer','BoAction',0,'bo_id_attribute=''dtdict_id''|method=''trEnvoyer''|class=''Dtdicts''|module=''dtnet'''); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Reception ATU','EmailAction',0,'template_id=' || (SELECT email_template_id FROM s_gtf.email_template WHERE name = 'Notification ATU pour l''exploitant')); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Validation','BoAction',0,'bo_id_attribute=''dtdict_id''|method=''trReponseManuelle''|class=''Dtdicts''|module=''dtnet'''); + INSERT INTO s_gtf.messageclass_action (messageclass_action_id, messageclass, actionclass, index, parameters) VALUES ((SELECT nextval('s_gtf.seq_common'::regclass)),'Dtdict Validation','EmailAction',1,'template_id = ' || (SELECT email_template_id FROM s_gtf.email_template WHERE name = 'DtDict Mode Manuel')); + ]]> + </code> + </query> + <query> + <type>update</type> + <version>2017.01.01</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>update</type> + <version>2017.01.02</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>update</type> + <version>2017.02.00</version> + <code> + <![CDATA[ + ]]> + </code> + </query> + <query> + <type>update</type> + <version>2018.01.00</version> + <code> + <![CDATA[ + --Partie pour le module dtnet version 2018-01-01 généré par WAB le 07/12/2017 à 09:17:38 + --Anthony le 07/12/2017 à 09h00 + ALTER TABLE s_dtnet.networkmanager ADD COLUMN withoutnetworkdata bool DEFAULT FALSE; + DROP VIEW s_dtnet.v_networkmanager; + CREATE OR REPLACE VIEW s_dtnet.v_networkmanager AS SELECT networkmanager.networkmanager_id, networkmanager.networkmanagername, networkmanager.receiptaddress, networkmanager.icon, networkmanager.password, networkmanager.contactmail, networkmanager.isautomode, networkmanager.contactname, networkmanager.address, networkmanager.otherdetailsaddress, networkmanager.zipcode, networkmanager.city, networkmanager.phone, networkmanager.fax, networkmanager.fullname, networkmanager.signaturefile, networkmanager.extent, networkmanager.outputcoordsys, networkmanager.siretnumber, networkmanager.distancemax, networkmanager.filesupervisor, networkmanager.filesupervisorservice, networkmanager.filesupervisorphone, networkmanager.isshutdownpossible, networkmanager.phoneifdamage, networkmanager.signatoryname, networkmanager.manualkindofwork, networkmanager.withoutnetworkdata FROM s_dtnet.networkmanager WHERE networkmanager.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + ALTER TABLE s_dtnet.v_networkmanager OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_networkmanager TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_networkmanager TO dtnet_manager; + DROP VIEW s_dtnet.v_networkmanager_unrestricted; + CREATE OR REPLACE VIEW s_dtnet.v_networkmanager_unrestricted AS SELECT networkmanager.networkmanager_id, networkmanager.networkmanagername, networkmanager.receiptaddress, networkmanager.icon, networkmanager.password, networkmanager.contactmail, networkmanager.isautomode, networkmanager.contactname, networkmanager.address, networkmanager.otherdetailsaddress, networkmanager.zipcode, networkmanager.city, networkmanager.phone, networkmanager.fax, networkmanager.fullname, networkmanager.signaturefile, networkmanager.extent, networkmanager.outputcoordsys, networkmanager.siretnumber, networkmanager.distancemax, networkmanager.filesupervisor, networkmanager.filesupervisorservice, networkmanager.filesupervisorphone, networkmanager.isshutdownpossible, networkmanager.phoneifdamage, networkmanager.signatoryname, networkmanager.manualkindofwork, networkmanager.usematdmat, networkmanager.withoutnetworkdata FROM s_dtnet.networkmanager; + ALTER TABLE s_dtnet.v_networkmanager_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_networkmanager_unrestricted TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.v_networkmanager_unrestricted TO u_vitis; + --Anthony le 08/12/2017 à 12H00 + ALTER TABLE s_dtnet.dtdict ADD COLUMN destination varchar(255); + UPDATE s_dtnet.dtdict SET destination = (SELECT sender FROM s_dtnet.mail WHERE mail.mail_id = dtdict.mail_id); + DROP VIEW s_dtnet.v_dtdict; + CREATE OR REPLACE VIEW s_dtnet.v_dtdict AS SELECT dtdict.dtdict_id, dtdict.dtdictdate, dtdict.serviceconsultationnumber, dtdict.dtdicttype, dtdict.caller, dtdict.workaddress, dtdict.responsedate, dtdict.pdfrequestfile, dtdict.responsefile, dtdict.geom, st_astext(st_transform(dtdict.geom, 3857)) AS geom2, dtdict.status_id, dtdict.networkmanager_id, dtdict.mail_id, dtdict.xmlrequestfile, networkmanager.networkmanagername, dtdict.cities, dtdict.projectbeginningdate, dtdict.creationdate, rt_dtdict_status.name AS status_name, dtdict.callersiretnumber, dtdict.reminder, dtdict.mailreceptiondate, dtdict.receptiontype, dtdict.siretnumberdt, dtdict.addressdt, dtdict.faxdt, dtdict.maildt, dtdict.contactnamedt, string_agg(dtdict_network.network_id::text, '|'::text) AS networkintersected, networkmanager.usematdmat, mail.sender, dtdict.maincity, dtdict.maincityzipcode, dtdict.destination FROM s_dtnet.dtdict LEFT JOIN s_dtnet.networkmanager ON dtdict.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_dtdict_status ON rt_dtdict_status.status_id = dtdict.status_id JOIN s_dtnet.rt_dtdict_status_group ON rt_dtdict_status.status_id = rt_dtdict_status_group.status_id LEFT JOIN s_dtnet.dtdict_network ON dtdict_network.dtdict_id = dtdict.dtdict_id LEFT JOIN s_dtnet.mail ON dtdict.mail_id = mail.mail_id WHERE dtdict.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text) AND (rt_dtdict_status_group.group_id IN ( SELECT user_group.group_id FROM s_vitis.user_group LEFT JOIN s_vitis."user" ON user_group.user_id = "user".user_id WHERE "user".login::name = "current_user"())) GROUP BY dtdict.dtdict_id, networkmanager.networkmanagername, rt_dtdict_status.name, networkmanager.usematdmat, mail.sender; + ALTER TABLE s_dtnet.v_dtdict OWNER TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO vmap_user; + GRANT ALL ON TABLE s_dtnet.v_dtdict TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO dtnet_manager; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_dtdict TO dtnet_user; + CREATE OR REPLACE RULE delete_v_dtdict AS ON DELETE TO s_dtnet.v_dtdict DO INSTEAD ( DELETE FROM s_dtnet.dtdict_kindofwork WHERE dtdict_kindofwork.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict_usedtechniques WHERE dtdict_usedtechniques.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict WHERE dtdict.dtdict_id = old.dtdict_id;); + DROP VIEW s_dtnet.v_dtdict_unrestricted; + CREATE OR REPLACE VIEW s_dtnet.v_dtdict_unrestricted AS SELECT dtdict.dtdict_id, dtdict.dtdictdate, dtdict.serviceconsultationnumber, dtdict.dtdicttype, dtdict.caller, dtdict.workaddress, dtdict.responsedate, dtdict.pdfrequestfile, dtdict.responsefile, dtdict.geom, dtdict.status_id, dtdict.networkmanager_id, dtdict.mail_id, dtdict.xmlrequestfile, networkmanager.networkmanagername, dtdict.cities, dtdict.projectbeginningdate, dtdict.creationdate, rt_dtdict_status.name AS status_name, dtdict.callersiretnumber, dtdict.reminder, dtdict.mailreceptiondate, dtdict.receptiontype, dtdict.siretnumberdt, dtdict.addressdt, dtdict.faxdt, dtdict.maildt, dtdict.contactnamedt, string_agg(dtdict_network.network_id::text, '|'::text) AS networkintersected, networkmanager.usematdmat, mail.sender, dtdict.maincity, dtdict.maincityzipcode, dtdict.destination FROM s_dtnet.dtdict LEFT JOIN s_dtnet.networkmanager ON dtdict.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_dtdict_status ON rt_dtdict_status.status_id = dtdict.status_id LEFT JOIN s_dtnet.dtdict_network ON dtdict_network.dtdict_id = dtdict.dtdict_id LEFT JOIN s_dtnet.mail ON dtdict.mail_id = mail.mail_id GROUP BY dtdict.dtdict_id, networkmanager.networkmanagername, rt_dtdict_status.name, networkmanager.usematdmat, mail.sender; + ALTER TABLE s_dtnet.v_dtdict_unrestricted OWNER TO u_vitis; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_dtdict_unrestricted TO dtnet_admin; + GRANT ALL ON TABLE s_dtnet.v_dtdict_unrestricted TO u_vitis; + CREATE OR REPLACE RULE delete_v_dtdict_unr AS ON DELETE TO s_dtnet.v_dtdict_unrestricted DO INSTEAD ( DELETE FROM s_dtnet.dtdict_kindofwork WHERE dtdict_kindofwork.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict_usedtechniques WHERE dtdict_usedtechniques.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict WHERE dtdict.dtdict_id = old.dtdict_id;); + UPDATE s_gtf.email_template SET code= '$iBoId = $this->aObjects["oBusinessObject"]->aValues["dtdict_id"];' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>"column_name"),' || chr(13) || ' "BOID"=>array("value"=> $iBoId, "type"=>"number")' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].dtdict WHERE dtdict_id=[BOID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oDtdict = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$aParams = array(' || chr(13) || ' "SCHEMADTNET" => array("value"=> "s_dtnet", "type"=>"column_name"),' || chr(13) || ' "NMID"=>array("value"=> $oDtdict["networkmanager_id"], "type"=>"string")' || chr(13) || ');' || chr(13) || '' || chr(13) || '$sSql = "SELECT * FROM [SCHEMADTNET].networkmanager WHERE networkmanager_id=[NMID];";' || chr(13) || '$oResultat = $this->oBd->executeWithParams($sSql, $aParams);' || chr(13) || '$oNM = $this->oBd->ligneSuivante ($oResultat);' || chr(13) || '' || chr(13) || '$date = new DateTime($oDtdict["creationdate"]);' || chr(13) || '' || chr(13) || '$this->to = $oMail["sender"];// champ à ajouter avec le canal' || chr(13) || '' || chr(13) || 'if($oNM["usematdmat"] === true){' || chr(13) || ' if($oDtdict["receptiontype"] !== "MAIL"){' || chr(13) || ' $this->to = "traitement-" . strtolower($oDtdict["receptiontype"]) . "@myrecepisse.fr";' || chr(13) || ' }' || chr(13) || '}' || chr(13) || '$this->cc = $oDtdict["mailcopy"];' || chr(13) || '$this->cci = '';' || chr(13) || '$this->aAttachments = array($this->aProperties["ws_data_dir"] . "/dtnet/dtdict/"" . $iBoId . "/".$oDtdict["serviceconsultationnumber"].".zip");' || chr(13) || '$this->subject = $oNM["networkmanagername"]. " - " . $oDtdict["dtdicttype"] . " - Demande ".$oDtdict["serviceconsultationnumber"]." récépissé";' || chr(13) || '$this->body = "<p>[Attention : Ce message est généré automatiquement – Il n’est pas possible d’y répondre] </p>' || chr(13) || ' <p>Vous avez adressé, le ".$date->format("d/m/Y")."une déclaration de " . $oDtdict["dtdicttype"] . " (n°". $oDtdict["serviceconsultationnumber"] .") sous forme dématérialisée, en utilisant l''adresse courriel référencée sur le Guichet Unique.</p>' || chr(13) || ' <p>Vous trouverez ci-joint à ce mail le récépissé au format PDF.</p>' || chr(13) || ' <p></p>' || chr(13) || ' <p>Cordialement</p>' || chr(13) || ' <p></p>' || chr(13) || ' <p>".$oNM["networkmanagername"]."</p>";' WHERE email_template.name = 'Dtdict Réponse'; + --anthony le 10/01/2018 à 11:10 + DROP VIEW s_dtnet.v_dtdict_unrestricted; + DROP VIEW s_dtnet.v_dtdict; + DROP VIEW s_dtnet.v_mail_unrestricted; + DROP VIEW s_dtnet.v_mail; + ALTER TABLE s_dtnet.dtdict ALTER COLUMN caller TYPE character varying (255); + ALTER TABLE s_dtnet.mail ALTER COLUMN sender TYPE character varying (255); + CREATE OR REPLACE VIEW s_dtnet.v_mail AS SELECT mail.mail_id, mail.content, mail.subject, mail.sender, mail.status_id, mail.receiver, mail.mail_uid, networkmanager.networkmanagername, rt_mail_status.name AS status_name, mail.attachedfilesdirectory, mail.receptiondate FROM s_dtnet.mail LEFT JOIN s_dtnet.rt_mail_status ON mail.status_id = rt_mail_status.status_id LEFT JOIN s_dtnet.networkmanager ON mail.receiver::text = networkmanager.networkmanager_id::text WHERE mail.receiver::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text); + CREATE OR REPLACE VIEW s_dtnet.v_mail_unrestricted AS SELECT mail.mail_id, mail.content, mail.subject, mail.sender, mail.status_id, mail.receiver, mail.mail_uid, networkmanager.networkmanagername, rt_mail_status.name AS status_name, mail.attachedfilesdirectory, mail.receptiondate, networkmanager.networkmanager_id FROM s_dtnet.mail LEFT JOIN s_dtnet.rt_mail_status ON mail.status_id = rt_mail_status.status_id LEFT JOIN s_dtnet.networkmanager ON mail.receiver::text = networkmanager.networkmanager_id::text; + CREATE OR REPLACE VIEW s_dtnet.v_dtdict AS SELECT dtdict.dtdict_id, dtdict.dtdictdate, dtdict.serviceconsultationnumber, dtdict.dtdicttype, dtdict.caller, dtdict.workaddress, dtdict.responsedate, dtdict.pdfrequestfile, dtdict.responsefile, dtdict.geom, st_astext(st_transform(dtdict.geom, 3857)) AS geom2, dtdict.status_id, dtdict.networkmanager_id, dtdict.mail_id, dtdict.xmlrequestfile, networkmanager.networkmanagername, dtdict.cities, dtdict.projectbeginningdate, dtdict.creationdate, rt_dtdict_status.name AS status_name, dtdict.callersiretnumber, dtdict.reminder, dtdict.mailreceptiondate, dtdict.receptiontype, dtdict.siretnumberdt, dtdict.addressdt, dtdict.faxdt, dtdict.maildt, dtdict.contactnamedt, string_agg(dtdict_network.network_id::text, '|'::text) AS networkintersected, networkmanager.usematdmat, mail.sender, dtdict.maincity, dtdict.maincityzipcode, dtdict.destination FROM s_dtnet.dtdict LEFT JOIN s_dtnet.networkmanager ON dtdict.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_dtdict_status ON rt_dtdict_status.status_id = dtdict.status_id JOIN s_dtnet.rt_dtdict_status_group ON rt_dtdict_status.status_id = rt_dtdict_status_group.status_id LEFT JOIN s_dtnet.dtdict_network ON dtdict_network.dtdict_id = dtdict.dtdict_id LEFT JOIN s_dtnet.mail ON dtdict.mail_id = mail.mail_id WHERE dtdict.networkmanager_id::text ~ similar_escape((( SELECT user_networkmanager.networkmanager_id FROM s_dtnet.user_networkmanager LEFT JOIN s_vitis."user" ON user_networkmanager.user_id = "user".user_id WHERE "user".login::name = "current_user"()))::text, NULL::text) AND (rt_dtdict_status_group.group_id IN ( SELECT user_group.group_id FROM s_vitis.user_group LEFT JOIN s_vitis."user" ON user_group.user_id = "user".user_id WHERE "user".login::name = "current_user"())) GROUP BY dtdict.dtdict_id, networkmanager.networkmanagername, rt_dtdict_status.name, networkmanager.usematdmat, mail.sender; + CREATE OR REPLACE VIEW s_dtnet.v_dtdict_unrestricted AS SELECT dtdict.dtdict_id, dtdict.dtdictdate, dtdict.serviceconsultationnumber, dtdict.dtdicttype, dtdict.caller, dtdict.workaddress, dtdict.responsedate, dtdict.pdfrequestfile, dtdict.responsefile, dtdict.geom, dtdict.status_id, dtdict.networkmanager_id, dtdict.mail_id, dtdict.xmlrequestfile, networkmanager.networkmanagername, dtdict.cities, dtdict.projectbeginningdate, dtdict.creationdate, rt_dtdict_status.name AS status_name, dtdict.callersiretnumber, dtdict.reminder, dtdict.mailreceptiondate, dtdict.receptiontype, dtdict.siretnumberdt, dtdict.addressdt, dtdict.faxdt, dtdict.maildt, dtdict.contactnamedt, string_agg(dtdict_network.network_id::text, '|'::text) AS networkintersected, networkmanager.usematdmat, mail.sender, dtdict.maincity, dtdict.maincityzipcode, dtdict.destination FROM s_dtnet.dtdict LEFT JOIN s_dtnet.networkmanager ON dtdict.networkmanager_id::text = networkmanager.networkmanager_id::text LEFT JOIN s_dtnet.rt_dtdict_status ON rt_dtdict_status.status_id = dtdict.status_id LEFT JOIN s_dtnet.dtdict_network ON dtdict_network.dtdict_id = dtdict.dtdict_id LEFT JOIN s_dtnet.mail ON dtdict.mail_id = mail.mail_id GROUP BY dtdict.dtdict_id, networkmanager.networkmanagername, rt_dtdict_status.name, networkmanager.usematdmat, mail.sender; + CREATE OR REPLACE RULE delete_v_mail AS ON DELETE TO s_dtnet.v_mail DO INSTEAD (DELETE FROM s_dtnet.dtdict WHERE dtdict.mail_id = old.mail_id; DELETE FROM s_dtnet.mail WHERE mail.mail_id = old.mail_id;); + CREATE OR REPLACE RULE delete_v_mail_unr AS ON DELETE TO s_dtnet.v_mail_unrestricted DO INSTEAD (DELETE FROM s_dtnet.dtdict WHERE dtdict.mail_id = old.mail_id; DELETE FROM s_dtnet.mail WHERE mail.mail_id = old.mail_id;); + CREATE OR REPLACE RULE delete_v_dtdict AS ON DELETE TO s_dtnet.v_dtdict DO INSTEAD ( DELETE FROM s_dtnet.dtdict_kindofwork WHERE dtdict_kindofwork.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict_usedtechniques WHERE dtdict_usedtechniques.dtdict_id = old.dtdict_id; DELETE FROM s_dtnet.dtdict WHERE dtdict.dtdict_id = old.dtdict_id;); + ALTER TABLE s_dtnet.v_mail OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_mail TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_mail TO dtnet_manager; + GRANT SELECT, DELETE ON TABLE s_dtnet.v_mail TO dtnet_user; + ALTER TABLE s_dtnet.v_mail_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_mail_unrestricted TO u_vitis; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_mail_unrestricted TO dtnet_admin; + ALTER TABLE s_dtnet.v_dtdict OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_dtdict TO u_vitis; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO vmap_user; + GRANT SELECT ON TABLE s_dtnet.v_dtdict TO dtnet_manager; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_dtdict TO dtnet_user; + ALTER TABLE s_dtnet.v_dtdict_unrestricted OWNER TO u_vitis; + GRANT ALL ON TABLE s_dtnet.v_dtdict_unrestricted TO u_vitis; + GRANT SELECT, UPDATE, DELETE ON TABLE s_dtnet.v_dtdict_unrestricted TO dtnet_admin; + GRANT SELECT ON TABLE s_dtnet.v_area_document TO dtnet_user; + GRANT SELECT ON TABLE s_dtnet.v_area_dense TO dtnet_user; + GRANT SELECT ON TABLE s_dtnet.v_area_notification TO dtnet_user; + GRANT SELECT ON TABLE s_dtnet.v_area_surveillance TO dtnet_user; + ]]> + </code> + </query> + </queriesCollection> +</sqlQueries> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Areas.class.inc b/src/module_dtnet/web_service/ws/Areas.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..f3d7abd09a742e2f30947e819347be19b4bff708 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Areas.class.inc @@ -0,0 +1,118 @@ +<?php + +/** + * \file Areas.class.inc + * \class Areas + * + * \author Anthony Borghi <anthony.borghi@veremes.com>. + * + * \brief This file contains the Areas php class + * + * This class defines Rest Api to Vitis Unr_mails + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +//require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; +//require_once 'Unr_mail.class.inc'; + + +class Areas extends Dtnet { + /** + * @SWG\Definition( + * definition="/areas", + * allOf={ + * @SWG\Schema(ref="#/definitions/areas") + * } + * ) + * * @SWG\Tag( + * name="Areas", + * description="Operations about Areas" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut courjute la création de connexion + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + $this->aValues = $aValues; + $this->aPath = $aPath; + $this->aProperties = $properties; + } + + /** + * @SWG\Get(path="/areas", + * tags={"Areas"}, + * summary="Move document from shared to Public directory", + * description="Move document from shared to Public directory", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="filePath", + * in="query", + * description="DataBase file path on server", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="area Response", + * @SWG\Schema(ref="#/definitions/areas") + * ) + * ) + */ + + /** + * move file + * @return url to access file + */ + function GET() { + error_log($this->aValues["filePath"]); + $sUrl = ""; + $iStatus = 1; + if(!empty($this->aValues["filePath"])){ + $this->getFile(); + } else { + $iStatus = 0; + } + $sMessage = json_encode(array("status"=>$iStatus, "url"=>$sUrl)); + return $sMessage; + } + + function getFile() { + $sFilePath = $this->aValues["filePath"]; + $sFileName = end(explode("/", $this->aValues["filePath"])); + // Le fichier existe ? + if (file_exists($sFilePath)) { + $sExt = end(explode(".", $sFileName)); + switch ($sExt){ + case "zip": + header("Content-Type: application/zip"); + break; + case "pdf": + header('Content-Type: application/pdf'); + break; + default : + header("Content-Type: application/octet-stream"); + header("Content-Transfer-Encoding: Binary"); + break; + } + + header("Content-disposition: attachment; filename=\"" . $sFileName . "\""); + header('Content-Length: ' . filesize($sFilePath)); + readfile($sFilePath); + } + } +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Dtdict.class.inc b/src/module_dtnet/web_service/ws/Dtdict.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..4d6b726fe95c071d19ea1067541fec36b0dcbca4 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Dtdict.class.inc @@ -0,0 +1,98 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Dtdict.class.inc + * \class Dtdict + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Dtdict php class + * + * This class defines operation for one Dtdict + * + */ +class Dtdict extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/dtdicts/{id_dtdict}", + * tags={"Dtdicts"}, + * summary="Get Dtdict", + * description="Request to get Dtdict by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_dtdict", + * in="path", + * description="id_dtdict", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Dtdict Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_dtdict", "dtdict_id"); + $this->aFields["xmlrequestfile"] = $this->getWSDataDtnetUrl($this->aFields["xmlrequestfile"]); + $this->aFields["pdfrequestfile"] = $this->getWSDataDtnetUrl($this->aFields["pdfrequestfile"]); + $this->aFields["responsefile"] = $this->getWSDataDtnetUrl($this->aFields["responsefile"]); + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $this->aValues["my_vitis_id"] . "/reponse"; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + + $this->aFields["destination"] = $this->getDestination($this->aFields); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_dtdict', 'dtdict_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["dtdict_id"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Dtdicts.class.inc b/src/module_dtnet/web_service/ws/Dtdicts.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..48376a1eda10ad29a5e080e6fbd9144ccab94f5d --- /dev/null +++ b/src/module_dtnet/web_service/ws/Dtdicts.class.inc @@ -0,0 +1,693 @@ +<?php + +/** + * \file Dtdicts.class.inc + * \class Dtdicts + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Dtdicts php class + * + * This class defines Rest Api to Vitis Dtdicts + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Dtdict.class.inc'; +require_once(dirname($_SERVER['SCRIPT_FILENAME']) . '/class/wab_lib/BusinessObject.class.inc'); +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Form.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vmlib/BdDataAccess.inc'; +require_once 'vmlib/logUtil.inc'; + +class Dtdicts extends Dtnet { + /** + * @SWG\Definition( + * definition="/dtdicts", + * allOf={ + * @SWG\Schema(ref="#/definitions/dtdicts") + * } + * ) + * * @SWG\Tag( + * name="Dtdicts", + * description="Operations about Dtdicts" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + $this->createDirs(); + } + + /** + * @SWG\Get(path="/dtdicts", + * tags={"Dtdicts"}, + * summary="Get Dtdicts", + * description="Request to get Dtdicts", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="dtdict Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ +/** + * @SWG\Get(path="/dtdicts/{dtdict_id}/cerfa", + * tags={"Dtdicts"}, + * summary="Get Dtdicts", + * description="Request to get Dtdicts", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="dtdict Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + /** + * get Dtdicts + * @return Dtdicts + */ + function GET() { + if (isset($this->aPath[3])) { + if ($this->aPath[3] == "cerfa") { + $status = 1; + $aBolleanParams = ["ModifEnCours", "Sensible2", "RepImpossible", "PasConcerne", "Concerne", "PlansJoints", "Sensible1", "ReunionChantierCase", "RDVparDeclarant", "ServitudeCase", "PasClasseACase", "BranchementsCase", "Recepisse_DICT", "Recepisse_DT_unique", "Recepisse_DC", "DateRDV" , "MiseHorsTension"]; + $sDirname = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $this->aValues["my_vitis_id"]; + //$json = []; + $fp = fopen($sDirname . "/cerfa.json", "r"); + if ($fp == false) { + $status = 0; + } + + $contenu_du_fichier = fread($fp, filesize($sDirname . '/cerfa.json')); + + if ($contenu_du_fichier == false) { + $status = 0; + } + fclose($fp); + + + $json = json_decode($contenu_du_fichier, true); + if(gettype($json[0]) == "array"){ + $json = $json[0]; + } + for ($i = 0; $i <= count($aBolleanParams); $i++) { + $sBolleanValue = $json[$aBolleanParams[$i]]; + if ($sBolleanValue == "true") { + $json[$aBolleanParams[$i]] = true; + } else if ($sBolleanValue == "false") { + $json[$aBolleanParams[$i]] = false; + } + } + + $sMessage = array('status' => $status, "cerfas" => array($json)); + $sMessage = json_encode($sMessage); + } + } else { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_dtdict", "dtdict_id"); + $sMessage = $aReturn['sMessage']; + } + return $sMessage; + } + + /** + * @SWG\Put(path="/dtdicts/{id_dtdict}", + * tags={"Dtdicts"}, + * summary="update Dtdicts", + * description="Request to update Dtdicts", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Dtdict token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_dtdict", + * in="path", + * description="id of the Dtdicts", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + /** + * @SWG\Put(path="/dtdicts/{id_dtdict}/cerfas", + * tags={"Dtdicts"}, + * summary="update Dtdicts", + * description="Request to update Dtdicts", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Dtdict token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_dtdict", + * in="path", + * description="id of the Dtdicts", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + + /** + * update dtdicts + * @return id of dtdicts updated or error object if a dtdicts is not updated + */ + function PUT() { + if (isset($this->aPath[3])) { + if ($this->aPath[3] == "cerfa") { + $status = 1; + + $sDirname = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $this->aValues["my_vitis_id"]; + + $fp = fopen($sDirname . "/cerfa.json", "r+"); + if ($fp == false) { + $status = 0; + } + + $contenu_du_fichier = fread($fp, filesize($sDirname . '/cerfa.json')); + + if ($contenu_du_fichier == false) { + $status = 0; + } + + fclose($fp); + + $json = json_decode($contenu_du_fichier, true); + if(gettype($json[0]) == "array"){ + $json = $json[0]; + } + $jsonValue = array(); + + foreach ($json as $key => $v) { + if (isset($this->aValues[$key])) { + $jsonValue[$key] = $this->aValues[$key]; + error_log(print_r(mb_detect_encoding($this->aValues[$key]), true)); + } + } + + $fp = fopen($sDirname . "/cerfa.json", "w+"); + + if ($fp == false) { + $status = 0; + } + error_log(print_r(mb_detect_encoding(), true)); + $jsonValue = json_encode($jsonValue, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); + if(gettype($jsonValue[0]) == "array"){ + $jsonValue = $jsonValue[0]; + } + //$jsonValue = utf8_decode($jsonValue); + file_put_contents($sDirname . "/cerfa.json", $jsonValue); + fclose($fp); + $aReturn = array('status' => $status, "cerfas" => $jsonValue); + $aReturn = json_encode($aReturn); + return $aReturn; + } + } else { + $sStatus = 1; + $sDirectoryPath = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $this->aValues['my_vitis_id']; + switch ($this->aValues["cmd"]) { + case "add": + //error_log(print_r($this->aValues, true)); + $fp = fopen($sDirectoryPath . "/reponse/" . $this->aValues['pdfadd_name'], 'w+'); + fwrite($fp, $this->aValues['pdfadd_file']); + fclose($fp); + break; + case "rm": + $aFiles = explode("|", $this->aValues["pdforder"]); + for ($i = 0; $i < count($aFiles); $i++) { + @unlink($sDirectoryPath . $aFiles[$i]); + } + break; + default: + error_log("bad command"); + break; + } + + + if(isset($this->aValues["method"])){ + $this->aValues["dtdict_id"] = $this->aValues["my_vitis_id"]; + eval('$this->' . $this->aValues['method'] . '();'); + } + + return json_encode(array("status" => $sStatus, "my_vitis_id" => $this->aValues['my_vitis_id'])); + } + } + + /** + * @SWG\Delete(path="/dtdicts", + * tags={"Dtdicts"}, + * summary="delete Dtdicts", + * description="Request to delete Dtdicts", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the dtdict", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="dtdict Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + /** + * @SWG\Delete(path="/dtdicts/{id_dtdict}", + * tags={"Dtdicts"}, + * summary="delete Dtdicts", + * description="Request to delete Dtdicts", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Dtdict token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_dtdict", + * in="path", + * description="id of the Dtdicts", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + + /** + * delete dtdicts + * @return id of dtdicts deleted or error object if a dtdicts is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_dtdict', 'dtdict_id'); + return $aReturn['sMessage']; + } + + + /** + * Transition Method trConforme + */ + function trConforme() { + $this->oBO = new WabBusinessObject($this->oConnection->oBd, array(), $this->aValues, $this->aProperties, 'dtdict', $this->aValues['dtdict_id']); + $this->createDirs(); + $this->oBO->insertOrder('4C8XYQE5MIWWW', "dtdict_id=".$this->aValues["dtdict_id"]."|ws_data_dir=" . $this->aProperties["ws_data_dir"]); + // création des dossiers plan et reponse + //$sMainPath = $this->aProperties["ws_data_dir"]; + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"], "En cours de traitement"); + + } + + /** + * Transition Method trNonConforme + */ + function trNonConforme() { + $this->oBO = new WabBusinessObject($this->oConnection->oBd, array(), $this->aValues, $this->aProperties, 'dtdict', $this->aValues['dtdict_id']); + // création des dossiers plan et reponse + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"], "Non conforme"); + + } + + /** + * Transition Method trEnvoyer + */ + function trEnvoyer() { + $this->oBO = new WabBusinessObject($this->oConnection->oBd, array(), $this->aValues, $this->aProperties, 'dtdict', $this->aValues['dtdict_id']); + $sStatus = $this->oBO->wabGetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"]); + /* if($sStatus === "En cours de traitement"){ + //Génération des plans fini on aggragte les pdf + $this->aggregateMapAndMoveThem($this->aValues); + //On génére le premier récépissé + $this->generateCerfaFile($this->aValues); + } else if ($sStatus === "A valider") { + //si pas de signature requise apres instruction + //On génére le premier récépissé + $this->generateCerfaFile($this->aValues); + }*/ + $this->aggregateMapAndMoveThem($this->aValues); + $this->generateCerfaFile($this->aValues); + //On signe + $this->signCerfaFile($this->aValues); + // On zip + $aParams = array( + "SCHEMA_DTNET"=> array("value"=> $this->aProperties["schema_dtnet"], "type"=>'column_name'), + "ID"=> array("value"=> $this->aValues["dtdict_id"], "type"=>'number') + ); + $sSQL = "SELECT serviceconsultationnumber FROM [SCHEMA_DTNET].dtdict WHERE dtdict_id=[ID]"; + $oResultat = $this->oConnection->oBd->executeWithParams($sSQL, $aParams); + $oDtdict = $this->oConnection->oBd->objetSuivant($oResultat); + + $sPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $this->aValues["dtdict_id"] . '/reponse'; + createZip($sPath, $sPath . "/../".$oDtdict->serviceconsultationnumber.".zip"); + + $sSql = "UPDATE [SCHEMA].dtdict SET responsefile = [SPATH] WHERE dtdict_id = [DTDICTID]"; + $aParams = array( + "SCHEMA" => array("value"=>$this->aProperties["schema_dtnet"], "type"=>'column_name'), + "SPATH" => array("value"=>$this->sPathAddon . "dtdict/".$this->aValues["dtdict_id"]."/".$oDtdict->serviceconsultationnumber.".zip", "type"=>'string'), + "DTDICTID" => array("value"=>$this->aValues["dtdict_id"], "type"=>'number') + ); + + $oResult = $this->oConnection->oBd->executeWithParams($sSql, $aParams); + + $sSql = "SELECT email_template_id FROM [SCHEMA_GTF].email_template WHERE name = [TEMPLATE_NAME]"; + $aParams = array( + "SCHEMA_GTF" => array("value"=>$this->aProperties["schema_gtf"], "type"=>'column_name'), + "TEMPLATE_NAME" => array("value"=>$this->aProperties["mail_response_template_name"], "type"=>'string') + ); + + $oResultat = $this->oConnection->oBd->executeWithParams($sSql, $aParams); + $oTemplate = $this->oConnection->oBd->objetSuivant($oResultat); + + $this->oBO->sendMail($oTemplate->email_template_id); + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"], "Réponse envoyée"); + } + + /** + * Transition Method trValidation + */ + function trValidation() { + $this->oBO = new WabBusinessObject($this->oConnection->oBd, array(), $this->aValues, $this->aProperties, 'dtdict', $this->aValues['dtdict_id']); + // génération du récépissé pdf modifié + + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"], "A signer"); + } + + /** + * Transition Method trReponseManuelle + */ + function trReponseManuelle() { + $this->oBO = new WabBusinessObject($this->oConnection->oBd, array(), $this->aValues, $this->aProperties, 'dtdict', $this->aValues['dtdict_id']); + $sStatus = $this->oBO->wabGetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"]); + error_log(print_r($sStatus, true)); + /*if($sStatus === "En cours de traitement"){ + + } else if ($sStatus === "A signer") { + // nothing / Mail + }*/ + //Génération des plans fini on aggragte les pdf + $this->aggregateMapAndMoveThem($this->aValues); + //On génére le premier récépissé + $this->generateCerfaFile($this->aValues); + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "dtdict", "dtdict_id", $this->aValues["dtdict_id"], "A valider"); + } + + function aggregateMapAndMoveThem($aValues){ + // get Id aValues + $iId = $aValues["dtdict_id"]; + // create path until plan + $sMapPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId . '/plan'; + $sOutputRootPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId . '/reponse/'; + $sPyScriptPath = $this->aProperties["vas_home"] . "/util/dtnet.pdfgenerator/python_agg_cerfa.py"; + $aFolders = array_values(array_diff(scandir($sMapPath), array('..', '.'))); + for($i = 0; $i < count($aFolders); $i++){ + // check empty files + $sMapfolder = $sMapPath . "/" . $aFolders[$i]; + $aFiles = array_values(array_diff(scandir($sMapfolder), array('..', '.'))); + for($j = 0; $j < count($aFiles); $j++){ + $sFilePath = $sMapfolder . "/" . $aFiles[$j]; + if(filesize($sFilePath) === 0) { + writeToErrorLog("Nous avons supprimer le fichier : " . $sFilePath . " car il était vide"); + @unlink($sFilePath); + } + } + // path output + $sOutputPath = $sOutputRootPath . $aFolders[$i] . ".pdf"; + // create cmd + $sCmd = "python " . $sPyScriptPath . " " . $sMapfolder . " ". $aFolders[$i]. " 2>1"; + error_log(print_r($sCmd, true)); + // exec python + $output = shell_exec($sCmd); + error_log(print_r($output, true)); + } + $this->moveNmFiles($aValues, $sOutputRootPath . "annexe/"); + } + + function moveNmFiles($aValues, $sAnxDir){ + // get nmid + $sSQL = "SELECT networkmanager_id AS sId FROM [SCHEMA_DTNET].dtdict WHERE dtdict_id=[ID]"; + $aParams = array( + "SCHEMA_DTNET"=> array("value"=> $this->aProperties["schema_dtnet"], "type"=>'column_name'), + "ID"=> array("value"=> $aValues["dtdict_id"], "type"=>'number') + ); + $oResultat = $this->oConnection->oBd->executeWithParams($sSQL, $aParams); + // Copy files + $oNm = $this->oConnection->oBd->objetSuivant($oResultat); + $sNmName = $oNm->sid; + $sNmAnnexePath = $this->aProperties["ws_data_dir"] . '/dtnet/networkmanager/' . $sNmName . '/annexe/'; + error_log($sNmAnnexePath ); + if(is_dir($sNmAnnexePath)){ + $aFolders = array_values(array_diff(scandir($sNmAnnexePath), array('..', '.'))); + for($i = 0; $i < count($aFolders); $i++){ + if(!is_dir($sNmAnnexePath . $aFolders[$i])){ + if(!copy($sNmAnnexePath . $aFolders[$i], $sAnxDir . $aFolders[$i])){ + //error_log("pb Copy"); + } else { + //error_log("copy ok"); + } + } else { + // copy dir + } + + } + } + } + + function generateCerfaFile($aValues){ + $sGenPath = $this->aProperties["vas_home"] . "/util/dtnet.pdfgenerator"; + $sPyScriptPath = $sGenPath . "/python_gen_cerfa.py"; + //get Json file + $iId = $aValues["dtdict_id"]; + $sJsonPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId; + //Output path + $sCmd = "python " . $sPyScriptPath . " " . $sGenPath . " ". $this->aProperties["pdftk_command"] ." " . $sJsonPath . " 2>1"; + error_log(print_r($sCmd, true)); + // exec python + $output = shell_exec($sCmd); + error_log(print_r($output, true)); + } + + function signCerfaFile($aValues){ + $sGenPath = $this->aProperties["vas_home"] . "/util/dtnet.pdfgenerator"; + $sPyScriptPath = $sGenPath . "/python_sign_cerfa.py"; + $iId = $aValues["dtdict_id"]; + // get nmid + $sSQL = "SELECT networkmanager_id FROM [SCHEMA_DTNET].dtdict WHERE dtdict_id=[ID]"; + $aParams = array( + "SCHEMA_DTNET"=> array("value"=> $this->aProperties["schema_dtnet"], "type"=>'column_name'), + "ID"=> array("value"=> $iId, "type"=>'number') + ); + $oResultat = $this->oConnection->oBd->executeWithParams($sSQL, $aParams); + // Signature file + $oDtdict = $this->oConnection->oBd->objetSuivant($oResultat); + // get signature file + $sSQL = "SELECT signaturefile FROM [SCHEMA_DTNET].networkmanager WHERE networkmanager_id=[ID]"; + $aParams = array( + "SCHEMA_DTNET"=> array("value"=> $this->aProperties["schema_dtnet"], "type"=>'column_name'), + "ID"=> array("value"=> $oDtdict->networkmanager_id, "type"=>'string') + ); + $oResultat2 = $this->oConnection->oBd->executeWithParams($sSQL, $aParams); + // Signature file + $oNm = $this->oConnection->oBd->objetSuivant($oResultat2); + $sPathSign = $this->aProperties["ws_data_dir"] . "/dtnet/" . $oNm->signaturefile; + //get CERFA file + $sPdfPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId . "/reponse"; + //Output path + $sCmd = "python " . $sPyScriptPath . " " . $sPathSign . " " . $sPdfPath . " 2>1"; + // exec python + error_log(print_r($sCmd, true)); + $output = shell_exec($sCmd); + error_log(print_r($output, true)); + } + + function createDirs(){ + $iId = $this->aValues["dtdict_id"]; + // create path until plan + $sMapPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId . '/plan'; + $sOutputRootPath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId . '/reponse'; + $sAnnexePath = $this->aProperties["ws_data_dir"] . '/dtnet/dtdict/' . $iId . '/reponse/annexe'; + // plan + if(!is_dir($sMapPath)){ + mkdir($sMapPath, 0777, true); + } + // reponse + if(!is_dir($sOutputRootPath)){ + mkdir($sOutputRootPath, 0777, true); + } + // annexe + if(!is_dir($sAnnexePath)){ + mkdir($sAnnexePath, 0777, true); + } + } + +} + +?> diff --git a/src/module_dtnet/web_service/ws/Dtnet.class.inc b/src/module_dtnet/web_service/ws/Dtnet.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..2ae479f24e8813576ceaefb1b835e0b03c59c83b --- /dev/null +++ b/src/module_dtnet/web_service/ws/Dtnet.class.inc @@ -0,0 +1,141 @@ +<?php + +require_once dirname($_SERVER['SCRIPT_FILENAME']) . "/class/vitis_lib/DbClass.class.inc"; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/ws/vitis/Vitis.class.inc'; +require_once 'vmlib/logUtil.inc'; + +class Dtnet extends Vitis { + + //Chemin du fichier de ressources contenant les requêtes SQL + //var $sRessourcesFile = 'Dtnet.class.sql.inc'; + + protected $sPathAddon = ""; + protected $sUrlAddon = "dtnet/"; + + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false) { + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + function saveNetworkManagerFile ($aValues) { + $sDirName = $this->aProperties["ws_data_dir"] . "/dtnet/networkmanager/" . $aValues['my_vitis_id']; + + if(isset($aValues["icon_name"])){ + $sFileNameIcon = $sDirName . "/" . $aValues["icon_name"]; + + if(!is_dir($sDirName)){ + mkdir($sDirName, 0777, true); + } + + $oFile = fopen($sFileNameIcon, 'w+'); + fwrite($oFile, $aValues["icon_file"]); + fclose($oFile); + + $sPath = $this->pictureResampler($sFileNameIcon, $aValues["icon_width"], $aValues["icon_height"]); + $aPathIcon = explode("/", $sPath); + $sPathIcon = $this->sPathAddon . "networkmanager/" . $aValues['my_vitis_id'] . "/" . $aPathIcon[count($aPathIcon) - 1]; + } else { + $sPathIcon = ""; + } + + if(isset($aValues["signaturefile_name"])){ + $sFileNameSignature = $sDirName . "/" . $aValues["signaturefile_name"]; + + $oFile = fopen($sFileNameSignature, 'w+'); + fwrite($oFile, $aValues["signaturefile_file"]); + fclose($oFile); + + $sPath = $this->pictureResampler($sFileNameSignature, $aValues["signaturefile_width"], $aValues["signaturefile_height"]); + $aPathSignature = explode("/", $sPath); + $sPathSignature = $this->sPathAddon . "networkmanager/" . $aValues['my_vitis_id'] . "/" . $aPathSignature[count($aPathSignature) - 1]; + } else { + $sPathSignature = ""; + } + + return array($sPathIcon, $sPathSignature); + } + + function updateNetworkFiles ($aValues) { + $sDirName = $this->aProperties["ws_data_dir"] . "/dtnet/network/" . $aValues['my_vitis_id']; + + if(isset($aValues["captionfile_name"])){ + $sFileNameCaption = $sDirName . "/" . $aValues["captionfile_name"]; + + if(!is_dir($sDirName)){ + mkdir($sDirName, 0777, true); + } + + $oFile = fopen($sFileNameCaption, 'w+'); + fwrite($oFile, $aValues["captionfile_file"]); + fclose($oFile); + + $sPathCaption = $this->sPathAddon . "network/" . $aValues['my_vitis_id'] . "/" . $aValues["captionfile_name"]; + } else { + $sPathCaption = ""; + } + + return array($sPathCaption); + } + + function getWSDataDtnetUrl ($sPath) { + if(empty($sPath)){ + return ""; + } else { + $date = new DateTime(); + return $this->aProperties["web_server_name"] . "/". $this->aProperties["ws_data_alias"] . "/" . $this->sUrlAddon . $sPath . "?d=" . $date->getTimestamp(); + } + } + + function getFileInfos ($sFilePath){ + $iFileSize = filesize($sFilePath); + + $sFileSize = $iFileSize . "octets"; + if($iFileSize > 1024){ + if($iFileSize > 1024*1024){ + if($iFileSize > 1024*1024*1024){ + $sFileSize = "-"; + } else { + $sFileSize = (ceil($iFileSize/(1024*1024))) . "Mo"; + } + }else{ + $sFileSize = (ceil($iFileSize/1024)) . "Ko"; + } + } + + $aFileName = explode(DIRECTORY_SEPARATOR, $sFilePath); + + return array("filename"=>$aFileName[count($aFileName) - 1], "size"=>$sFileSize, "lastModification"=> date ("d/m/Y H:i:s", filemtime($sFilePath))); + } + + function getFolderInfos ($sDirectoryPath){ + + if(is_dir($sDirectoryPath)){ + $aContentDir = scandir($sDirectoryPath); + $aTree = $this->getFileInfos($sDirectoryPath); + $aDir = array(); + for ($i =0 ; $i < count($aContentDir); $i++){ + if($aContentDir[$i] !== "." && $aContentDir[$i] !== ".."){ + array_push($aDir, $this->getFolderInfos($sDirectoryPath . "/" . $aContentDir[$i])); + } + } + + $aTree["content"] = $aDir; + return $aTree; + } else { + return $this->getFileInfos($sDirectoryPath); + } + } + + function getDestination ($aFields){ + $sDestination = $aFields['destination'];// champ à ajouter avec le canal + + if($aFields["usematdmat"] === true){ + if($aFields["receptiontype"] !== "MAIL"){ + $sDestination = "traitement-" . strtolower($aFields["receptiontype"]) . "@myrecepisse.fr"; + } + } + + return $sDestination; + } +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/DtnetUser.class.inc b/src/module_dtnet/web_service/ws/DtnetUser.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..c1a568b9823120d19f9af3b6c813b68ad38933e2 --- /dev/null +++ b/src/module_dtnet/web_service/ws/DtnetUser.class.inc @@ -0,0 +1,90 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file DtnetUser.class.inc + * \class DtnetUser + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the DtnetUser php class + * + * This class defines operation for one DtnetUser + * + */ +class DtnetUser extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/dtnetusers/{user_id}", + * tags={"DtnetUsers"}, + * summary="Get DtnetUser", + * description="Request to get DtnetUser by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="user_id", + * in="path", + * description="id_dtdict", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Dtdict Response", + * @SWG\Schema(ref="#/definitions/dtdicts") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "user_networkmanager", "user_id"); + } + + /** + * delete a Point_situation + */ + /* function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_dtdict', 'dtdict_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["dtdict_id"] = $this->aValues["my_vitis_id"]; + } + } */ +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/DtnetUsers.class.inc b/src/module_dtnet/web_service/ws/DtnetUsers.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..87867f3284e6059f678d6c260692e7cbaec153b3 --- /dev/null +++ b/src/module_dtnet/web_service/ws/DtnetUsers.class.inc @@ -0,0 +1,205 @@ +<?php + +/** + * \file DtnetUsers.class.inc + * \class DtnetUsers + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the DtnetUsers php class + * + * This class defines Rest Api to Vitis DtnetUsers + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'DtnetUser.class.inc'; +class DtnetUsers extends Dtnet { + /** + * @SWG\Definition( + * definition="/dtnetusers", + * allOf={ + * @SWG\Schema(ref="#/definitions/dtnetusers") + * } + * ) + * * @SWG\Tag( + * name="DtnetUsers", + * description="Operations about dtnetusers" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/dtnetusers", + * tags={"DtnetUsers"}, + * summary="Get DtnetUsers", + * description="Request to get DtnetUsers", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="unr_mail Response", + * @SWG\Schema(ref="#/definitions/dtnetusers") + * ) + * ) + */ + + /** + * get DtnetUsers + * @return DtnetUsers + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "user_networkmanager", "user_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + + } + + /** + * @SWG\Put(path="/dtnetusers", + * tags={"DtnetUsers"}, + * summary="Put DtnetUsers", + * description="Request to update DtnetUsers", + * operationId="PUT", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/dtnetusers") + * ) + * ) + */ + + /** + * put DtnetUsers + * @return DtnetUsers + */ + function PUT() { + + $aReturn = $this->genericPut($this->aProperties['schema_dtnet'], "user_networkmanager", "user_id"); + //$this->aValues["user_id"] = $this->aValues['my_vitis_id']; + return $aReturn['sMessage']; + + } + + + /** + * @SWG\Post(path="/dtnetusers", + * tags={"DtnetUsers"}, + * summary="Post dtnetusers", + * description="Request to update DtnetUsers", + * operationId="POST", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="user_id", + * in="path", + * description="id of the Dtdicts", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/dtnetusers") + * ) + * ) + */ + + /** + * Post DtnetUsers + * @return DtnetUsers + */ + function POST() { + + $aReturn = $this->genericPost($this->aProperties['schema_dtnet'], "user_networkmanager", "" , "user_id"); + //$this->aValues["user_id"] = $this->aValues['my_vitis_id']; + return $aReturn['sMessage']; + + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Mail.class.inc b/src/module_dtnet/web_service/ws/Mail.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..b4eb1ab876c0db59fb302d85e286ccd5b7314b74 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Mail.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Mail.class.inc + * \class Mail + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Mail php class + * + * This class defines operation for one Mail + * + */ +class Mail extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/mails/{id_mail}", + * tags={"Mails"}, + * summary="Get Mail", + * description="Request to get Mail by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_mail", + * in="path", + * description="id_mail", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Mail Response", + * @SWG\Schema(ref="#/definitions/mails") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_mail", "mail_id"); + + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/mail/" . $this->aValues["my_vitis_id"]; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_mail', 'mail_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["mail_id"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Mails.class.inc b/src/module_dtnet/web_service/ws/Mails.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..3094fbb89da2cb2b7049f449860e3eeafaece82f --- /dev/null +++ b/src/module_dtnet/web_service/ws/Mails.class.inc @@ -0,0 +1,291 @@ +<?php + +/** + * \file Mails.class.inc + * \class Mails + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Mails php class + * + * This class defines Rest Api to Vitis Mails + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Mail.class.inc'; +require_once(dirname($_SERVER['SCRIPT_FILENAME']) . '/class/wab_lib/BusinessObject.class.inc'); + +class Mails extends Dtnet { + /** + * @SWG\Definition( + * definition="/mails", + * allOf={ + * @SWG\Schema(ref="#/definitions/mails") + * } + * ) + * * @SWG\Tag( + * name="Mails", + * description="Operations about Mails" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/mails", + * tags={"Mails"}, + * summary="Get Mails", + * description="Request to get Mails", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="mail Response", + * @SWG\Schema(ref="#/definitions/mails") + * ) + * ) + */ + + /** + * get Mails + * @return Mails + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_mail", "mail_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Put(path="/mails/{id_mails}", + * tags={"Mails"}, + * summary="update Mails", + * description="Request to update Mails", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Mail token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_mail", + * in="path", + * description="id of the Mails", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/mails") + * ) + * ) + */ + + /** + * update Mails + * @return Mails + */ + function PUT() { + $sStatus = 1; + + $sRequest = "SELECT dtdict_id, pdfrequestfile FROM [SCHEMA_DTNET].dtdict WHERE mail_id=[ID]"; + $aParams = array( + "SCHEMA_DTNET" => array("value"=>$this->aProperties['schema_dtnet'], "type"=>'column_name'), + "ID" => array("value"=>$this->aValues['my_vitis_id'], "type"=>'integer') + ); + + $oResult = $this->oConnection->oBd->executeWithParams($sRequest, $aParams); + if ($this->oConnection->oBd->nombreLigne($oResult) > 0) { + $aResult = $this->oConnection->oBd->ligneSuivante($oResult); + $iId = $aResult["dtdict_id"]; + $sOldFile = $aResult["pdfrequestfile"]; + } + + $sToPath = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $iId . "/"; + $sFromPath = $this->aProperties["ws_data_dir"] . "/dtnet/mail/" . $this->aValues['my_vitis_id'] . "/"; + + @unlink($this->aProperties["ws_data_dir"] . "/". $sOldFile); + if(!copy($sFromPath . $this->aValues["fileSelected"], $sToPath . $this->aValues["fileSelected"])){ + $sStatus = 0; + writeToErrorLog("Can't copy the file :" . $sFromPath . $this->aValues["fileSelected"]); + }else{ + $sRequest = "UPDATE [SCHEMA_DTNET].dtdict SET pdfrequestfile=[PATH_PDF] WHERE dtdict_id=[ID]"; + // sPathAddon coir class dtnet + $aParams = array( + "SCHEMA_DTNET" => array("value"=>$this->aProperties['schema_dtnet'], "type"=>'column_name'), + "PATH_PDF" => array("value"=> $this->sPathAddon . "dtdict/".$iId."/". $this->aValues["fileSelected"], "type"=>'string'), + "ID" => array("value"=>$iId, "type"=>'integer') + ); + + $oResult = $this->oConnection->oBd->executeWithParams($sRequest, $aParams); + } + + return json_encode(array("status"=>$sStatus , "my_vitis_id"=>$this->aValues['my_vitis_id'])); + } + + /** + * @SWG\Delete(path="/mails", + * tags={"Mails"}, + * summary="delete Mails", + * description="Request to delete Mails", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the mail", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="mail Response", + * @SWG\Schema(ref="#/definitions/mails") + * ) + * ) + */ + /** + * @SWG\Delete(path="/mails/{id_mail}", + * tags={"Mails"}, + * summary="delete Mails", + * description="Request to delete Mails", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Mail token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_mail", + * in="path", + * description="id of the Mails", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/mails") + * ) + * ) + */ + + /** + * delete mails + * @return id of mails deleted or error object if a mails is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_mail', 'mail_id'); + return $aReturn['sMessage']; + } + + + /** + * Transition Method trConforme + */ + function trConforme() { + $this->oBO = new WabBusinessObject($this->oBd, array(), $this->aValues, $this->aProperties, 'mail', $this->aValues['mail_id']); + + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "mail", "mail_id", $this->aValues["mail_id"], "Valide"); + + } + + /** + * Transition Method trNonConforme + */ + function trNonConforme() { + $this->oBO = new WabBusinessObject($this->oBd, array(), $this->aValues, $this->aProperties, 'mail', $this->aValues['mail_id']); + + // Check si la table existe si oui change l'état + $this->oBO->wabSetStatus($this->aProperties["schema_dtnet"], "mail", "mail_id", $this->aValues["mail_id"], "Non valide"); + + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Network.class.inc b/src/module_dtnet/web_service/ws/Network.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..670b23ab0f9a5394326a46ee257b967d0cec8f34 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Network.class.inc @@ -0,0 +1,95 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Network.class.inc + * \class Network + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Network php class + * + * This class defines operation for one Network + * + */ +class Network extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/networks/{id_network}", + * tags={"Networks"}, + * summary="Get Network", + * description="Request to get Network by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_network", + * in="path", + * description="id_network", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Network Response", + * @SWG\Schema(ref="#/definitions/networks") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_network", "network_id"); + $this->aFields["captionfile"] = $this->getWSDataDtnetUrl($this->aFields["captionfile"]); + $this->aFields["captionfile_link"] = $this->aFields["captionfile"]; + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/network/" . $this->aValues["my_vitis_id"] . "/annexe"; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_network', 'network_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["network_id"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Networkmanager.class.inc b/src/module_dtnet/web_service/ws/Networkmanager.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..c3c98733d7f484fed5afdc2b562d945f3a2276fe --- /dev/null +++ b/src/module_dtnet/web_service/ws/Networkmanager.class.inc @@ -0,0 +1,84 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Networkmanager.class.inc + * \class Networkmanager + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Networkmanager php class + * + * This class defines operation for one Networkmanager + * + */ +class Networkmanager extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + + /** + * @SWG\Get(path="/networkmanagers/{id_networkmanager}", + * tags={"Networkmanagers"}, + * summary="Get Networkmanager", + * description="Request to get Networkmanager by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_networkmanager", + * in="path", + * description="id_networkmanager", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Networkmanager Response", + * @SWG\Schema(ref="#/definitions/networkmanagers") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_networkmanager", "networkmanager_id"); + $this->aFields["icon"] = $this->getWSDataDtnetUrl($this->aFields["icon"]); + $this->aFields["signaturefile"] = $this->getWSDataDtnetUrl($this->aFields["signaturefile"]); + + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/networkmanager/" . $this->aValues["my_vitis_id"] . "/annexe"; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + } +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Networkmanagers.class.inc b/src/module_dtnet/web_service/ws/Networkmanagers.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..71b4331e453c90535efef7f2cb638a25dc447e66 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Networkmanagers.class.inc @@ -0,0 +1,201 @@ +<?php + +/** + * \file Networkmanagers.class.inc + * \class Networkmanagers + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Networkmanagers php class + * + * This class defines Rest Api to Vitis Networkmanagers + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Networkmanager.class.inc'; + + +class Networkmanagers extends Dtnet { + /** + * @SWG\Definition( + * definition="/networkmanagers", + * allOf={ + * @SWG\Schema(ref="#/definitions/networkmanagers") + * } + * ) + * * @SWG\Tag( + * name="Networkmanagers", + * description="Operations about Networkmanagers" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + + /** + * @SWG\Get(path="/networkmanagers", + * tags={"Networkmanagers"}, + * summary="Get Networkmanagers", + * description="Request to get Networkmanagers", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="networkmanager Response", + * @SWG\Schema(ref="#/definitions/networkmanagers") + * ) + * ) + */ + + /** + * get Networkmanagers + * @return Networkmanagers + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_networkmanager", "networkmanager_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Put(path="/networkmanagers/{id_networkmanager}", + * tags={"Networkmanagers"}, + * summary="update Networkmanagers", + * description="Request to update Networkmanagers", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Networkmanager token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="netorkmanager_id", + * in="path", + * description="id of the Networkmanagers", + * required=true, + * type="string", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/networkmanagers") + * ) + * ) + */ + + /** + * update networkmanagers + * @return id of networkmanagers updated or error object if a networkmanagers is not updated + */ + function PUT() { + $aPath = $this->saveNetworkManagerFile($this->aValues); + + if($aPath[0] !== ""){ + $this->aValues["icon"] = $aPath[0]; + } + + if($aPath[1] !== ""){ + $this->aValues["signaturefile"] = $aPath[1]; + } + + $aReturn = $this->genericPut($this->aProperties['schema_dtnet'], 'v_networkmanager', 'networkmanager_id'); + + $sDirectoryPath = $this->aProperties["ws_data_dir"] . "/dtnet/networkmanager/" . $this->aValues['my_vitis_id']; + + mkdir($sDirectoryPath, 0777, true); + switch($this->aValues["cmd"]){ + case "add": + if(!is_dir($sDirectoryPath . "/annexe")){ + mkdir($sDirectoryPath . "/annexe", 0777, true); + } + $fp = fopen($sDirectoryPath . "/annexe/" . $this->aValues['pdfadd_name'], 'w+'); + fwrite($fp, $this->aValues['pdfadd_file']); + fclose($fp); + break; + case "rm": + $aFiles = explode("|",$this->aValues["pdforder"]); + for($i = 0; $i < count($aFiles); $i++){ + @unlink($sDirectoryPath . $aFiles[$i]); + } + break; + default: + error_log("bad command"); + break; + } + return $aReturn['sMessage']; + } +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Networks.class.inc b/src/module_dtnet/web_service/ws/Networks.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..97261cacd0cdc895f93700867e2dbe1120a0fce8 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Networks.class.inc @@ -0,0 +1,323 @@ +<?php + +/** + * \file Networks.class.inc + * \class Networks + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Networks php class + * + * This class defines Rest Api to Vitis Networks + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Network.class.inc'; + + +class Networks extends Dtnet { + /** + * @SWG\Definition( + * definition="/networks", + * allOf={ + * @SWG\Schema(ref="#/definitions/networks") + * } + * ) + * * @SWG\Tag( + * name="Networks", + * description="Operations about Networks" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/networks", + * tags={"Networks"}, + * summary="Get Networks", + * description="Request to get Networks", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="network Response", + * @SWG\Schema(ref="#/definitions/networks") + * ) + * ) + */ + + /** + * get Networks + * @return Networks + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_network", "network_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/networks", + * tags={"Networks"}, + * summary="Add network", + * description="Request to add Networks", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="network Response", + * @SWG\Schema(ref="#/definitions/networks") + * ) + * ) + */ + + /** + * insert network + * @return id of the network created + */ + function POST() { + + $aReturn = $this->genericPost($this->aProperties['schema_dtnet'], 'v_network', '', 'network_id'); + if (!empty($_FILES['captionfile'])) { + $sDirectoryPath = $this->sPathAddon . "network/" . $this->aValues["my_vitis_id"]; + $this->aValues["captionfile"] = $sDirectoryPath . "/" . $_FILES['captionfile']["name"]; + $sPath = $this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon . $this->aValues["captionfile"]; + + if (!is_dir($this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon. $sDirectoryPath)) { + mkdir($this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon. $sDirectoryPath, 0777, true); + mkdir($this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon. $sDirectoryPath . "/annexe", 0777, true); + } + + $sErrorMessage = uploadFile("captionfile", "", $sPath, $_FILES['captionfile']['size'] + 1); + if ($sErrorMessage != "") { + $aReturn = array("sStatus" => 0, "sMessage" => $sErrorMessage); + writeToErrorLog($sErrorMessage); + } + + // update database + $sSQL = "UPDATE [SCHEMA].network SET captionfile=[PATHCAPTIONFILE] WHERE network_id=[NETWORK_ID]"; + $aParams = array( + "SCHEMA" => array("value"=> $this->aProperties["schema_dtnet"], "type"=>"column_name"), + "PATHCAPTIONFILE" => array("value"=> $sDirectoryPath, "type"=>"string"), + "NETWORK_ID" => array("value"=> $this->aValues["my_vitis_id"], "type"=>"column_name") + ); + $this->Connection->oBd->executeWithParams($sSQL, $aParams); + } + + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/networks/{id_network}", + * tags={"Networks"}, + * summary="update Networks", + * description="Request to update Networks", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Network token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_network", + * in="path", + * description="id of the Networks", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/networks") + * ) + * ) + */ + + /** + * update networks + * @return id of networks updated or error object if a networks is not updated + */ + function PUT() { + $aPath = $this->updateNetworkFiles($this->aValues); + + if($aPath[0] !== ""){ + $this->aValues["captionfile"] = $aPath[0]; + } + + $aReturn = $this->genericPut($this->aProperties['schema_dtnet'], 'v_network', 'network_id'); + + $sDirectoryPath = $this->aProperties["ws_data_dir"] . "/dtnet/network/" . $this->aValues['my_vitis_id']; + + switch ($this->aValues["cmd"]) { + case "add": + if(!is_dir($sDirectoryPath . "/annexe")){ + mkdir($sDirectoryPath . "/annexe", 0777, true); + } + $fp = fopen($sDirectoryPath . "/annexe/" . $this->aValues['pdfadd_name'], 'w+'); + fwrite($fp, $this->aValues['pdfadd_file']); + fclose($fp); + break; + case "rm": + $aFiles = explode("|", $this->aValues["pdforder"]); + for ($i = 0; $i < count($aFiles); $i++) { + @unlink($sDirectoryPath . $aFiles[$i]); + } + break; + default: + error_log("bad command"); + break; + } + + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/networks", + * tags={"Networks"}, + * summary="delete Networks", + * description="Request to delete Networks", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the network", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="network Response", + * @SWG\Schema(ref="#/definitions/networks") + * ) + * ) + */ + /** + * @SWG\Delete(path="/networks/{id_network}", + * tags={"Networks"}, + * summary="delete Networks", + * description="Request to delete Networks", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Network token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_network", + * in="path", + * description="id of the Networks", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/networks") + * ) + * ) + */ + + /** + * delete networks + * @return id of networks deleted or error object if a networks is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_network', 'network_id'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_dtdict.class.inc b/src/module_dtnet/web_service/ws/Unr_dtdict.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..15a1a7ffe3bd0d6c2f1527d04033bda3e4d00bf2 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_dtdict.class.inc @@ -0,0 +1,99 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Unr_dtdict.class.inc + * \class Unr_dtdict + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_dtdict php class + * + * This class defines operation for one Unr_dtdict + * + */ +class Unr_dtdict extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_dtdicts/{id_unr_dtdict}", + * tags={"Unr_dtdicts"}, + * summary="Get Unr_dtdict", + * description="Request to get Unr_dtdict by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_unr_dtdict", + * in="path", + * description="id_unr_dtdict", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Unr_dtdict Response", + * @SWG\Schema(ref="#/definitions/unr_dtdicts") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_dtdict_unrestricted", "dtdict_id"); + $this->aFields["xmlrequestfile"] = $this->getWSDataDtnetUrl($this->aFields["xmlrequestfile"]); + $this->aFields["pdfrequestfile"] = $this->getWSDataDtnetUrl($this->aFields["pdfrequestfile"]); + $this->aFields["responsefile"] = $this->getWSDataDtnetUrl($this->aFields["responsefile"]); + + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/dtdict/" . $this->aValues["my_vitis_id"] . "/reponse"; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + + $this->aFields["destination"] = $this->getDestination($this->aFields); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_dtdict_unrestricted', 'dtdict_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["dtdict_id"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_dtdicts.class.inc b/src/module_dtnet/web_service/ws/Unr_dtdicts.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..81781fb099299599014e41b57d4afcc051a1486e --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_dtdicts.class.inc @@ -0,0 +1,197 @@ +<?php + +/** + * \file Unr_dtdicts.class.inc + * \class Unr_dtdicts + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_dtdicts php class + * + * This class defines Rest Api to Vitis Unr_dtdicts + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Unr_dtdict.class.inc'; + + +class Unr_dtdicts extends Dtnet { + /** + * @SWG\Definition( + * definition="/unr_dtdicts", + * allOf={ + * @SWG\Schema(ref="#/definitions/unr_dtdicts") + * } + * ) + * * @SWG\Tag( + * name="Unr_dtdicts", + * description="Operations about Unr_dtdicts" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_dtdicts", + * tags={"Unr_dtdicts"}, + * summary="Get Unr_dtdicts", + * description="Request to get Unr_dtdicts", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="unr_dtdict Response", + * @SWG\Schema(ref="#/definitions/unr_dtdicts") + * ) + * ) + */ + + /** + * get Unr_dtdicts + * @return Unr_dtdicts + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_dtdict_unrestricted", "dtdict_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Delete(path="/unr_dtdicts", + * tags={"Unr_dtdicts"}, + * summary="delete Unr_dtdicts", + * description="Request to delete Unr_dtdicts", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the unr_dtdict", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="unr_dtdict Response", + * @SWG\Schema(ref="#/definitions/unr_dtdicts") + * ) + * ) + */ + /** + * @SWG\Delete(path="/unr_dtdicts/{id_unr_dtdict}", + * tags={"Unr_dtdicts"}, + * summary="delete Unr_dtdicts", + * description="Request to delete Unr_dtdicts", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Unr_dtdict token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_unr_dtdict", + * in="path", + * description="id of the Unr_dtdicts", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/unr_dtdicts") + * ) + * ) + */ + + /** + * delete unr_dtdicts + * @return id of unr_dtdicts deleted or error object if a unr_dtdicts is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_dtdict_unrestricted', 'dtdict_id'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_mail.class.inc b/src/module_dtnet/web_service/ws/Unr_mail.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..5757f177fd527779dbc1034291a6817d44f7a877 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_mail.class.inc @@ -0,0 +1,94 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Unr_mail.class.inc + * \class Unr_mail + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_mail php class + * + * This class defines operation for one Unr_mail + * + */ +class Unr_mail extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_mails/{id_unr_mail}", + * tags={"Unr_mails"}, + * summary="Get Unr_mail", + * description="Request to get Unr_mail by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_unr_mail", + * in="path", + * description="id_unr_mail", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Unr_mail Response", + * @SWG\Schema(ref="#/definitions/unr_mails") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_mail_unrestricted", "mail_id"); + + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/mail/" . $this->aValues["my_vitis_id"]; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_mail_unrestricted', 'mail_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["mail_id"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_mails.class.inc b/src/module_dtnet/web_service/ws/Unr_mails.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..b38debef2e3ddc0943680c9dc7ce77c1a014806d --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_mails.class.inc @@ -0,0 +1,197 @@ +<?php + +/** + * \file Unr_mails.class.inc + * \class Unr_mails + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_mails php class + * + * This class defines Rest Api to Vitis Unr_mails + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Unr_mail.class.inc'; + + +class Unr_mails extends Dtnet { + /** + * @SWG\Definition( + * definition="/unr_mails", + * allOf={ + * @SWG\Schema(ref="#/definitions/unr_mails") + * } + * ) + * * @SWG\Tag( + * name="Unr_mails", + * description="Operations about Unr_mails" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_mails", + * tags={"Unr_mails"}, + * summary="Get Unr_mails", + * description="Request to get Unr_mails", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="unr_mail Response", + * @SWG\Schema(ref="#/definitions/unr_mails") + * ) + * ) + */ + + /** + * get Unr_mails + * @return Unr_mails + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_mail_unrestricted", "mail_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Delete(path="/unr_mails", + * tags={"Unr_mails"}, + * summary="delete Unr_mails", + * description="Request to delete Unr_mails", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the unr_mail", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="unr_mail Response", + * @SWG\Schema(ref="#/definitions/unr_mails") + * ) + * ) + */ + /** + * @SWG\Delete(path="/unr_mails/{id_unr_mail}", + * tags={"Unr_mails"}, + * summary="delete Unr_mails", + * description="Request to delete Unr_mails", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Unr_mail token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_unr_mail", + * in="path", + * description="id of the Unr_mails", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/unr_mails") + * ) + * ) + */ + + /** + * delete unr_mails + * @return id of unr_mails deleted or error object if a unr_mails is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_mail_unrestricted', 'mail_id'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_network.class.inc b/src/module_dtnet/web_service/ws/Unr_network.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..66fad9a839a0d674be6620c7159462eb048eabde --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_network.class.inc @@ -0,0 +1,95 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Unr_network.class.inc + * \class Unr_network + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_network php class + * + * This class defines operation for one Unr_network + * + */ +class Unr_network extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_networks/{id_unr_network}", + * tags={"Unr_networks"}, + * summary="Get Unr_network", + * description="Request to get Unr_network by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_unr_network", + * in="path", + * description="id_unr_network", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Unr_network Response", + * @SWG\Schema(ref="#/definitions/unr_networks") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_network_unrestricted", "network_id"); + $this->aFields["captionfile"] = $this->getWSDataDtnetUrl($this->aFields["captionfile"]); + + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/network/" . $this->aValues["my_vitis_id"] . "/annexe"; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_network_unrestricted', 'network_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields[""] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_networkmanager.class.inc b/src/module_dtnet/web_service/ws/Unr_networkmanager.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..37ee9b77c9c379f9d4cea5dab2a52acfba48bedf --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_networkmanager.class.inc @@ -0,0 +1,96 @@ +<?php + +require_once __DIR__ . '/Dtnet.class.inc'; +require_once dirname($_SERVER['SCRIPT_FILENAME']) . '/class/vitis_lib/Connection.class.inc'; + +/** + * \file Unr_networkmanager.class.inc + * \class Unr_networkmanager + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_networkmanager php class + * + * This class defines operation for one Unr_networkmanager + * + */ +class Unr_networkmanager extends Dtnet { + + public $oError; + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_networkmanagers/{id_unr_networkmanager}", + * tags={"Unr_networkmanagers"}, + * summary="Get Unr_networkmanager", + * description="Request to get Unr_networkmanager by id", + * operationId="GET", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="id_unr_networkmanager", + * in="path", + * description="id_unr_networkmanager", + * required=true, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="Unr_networkmanager Response", + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * ) + * ) + */ + + /** + * get informations about mode + */ + function GET() { + $this->aFields = $this->getFields($this->aProperties['schema_dtnet'], "v_networkmanager_unrestricted", "networkmanager_id"); + $this->aFields["icon"] = $this->getWSDataDtnetUrl($this->aFields["icon"]); + $this->aFields["signaturefile"] = $this->getWSDataDtnetUrl($this->aFields["signaturefile"]); + + $sDocumentDirectory = $this->aProperties["ws_data_dir"] . "/dtnet/networkmanager/" . $this->aValues["my_vitis_id"] . "/annexe"; + $this->aFields["pdfList"] = array($this->getFolderInfos($sDocumentDirectory)); + } + + /** + * delete a Point_situation + */ + function DELETE() { + $this->oConnection->oBd->delete($this->aProperties['schema_dtnet'], 'v_networkmanager_unrestricted', 'networkmanager_id', $this->aValues["my_vitis_id"], 'integer'); + if ($this->oConnection->oBd->enErreur()) { + $this->oError = new Error(1, $this->oConnection->oBd->getBDMessage()); + } else { + $this->aFields["networkmanager_id"] = $this->aValues["my_vitis_id"]; + } + } + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_networkmanagers.class.inc b/src/module_dtnet/web_service/ws/Unr_networkmanagers.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..d3b3c1055ffcf9dbefcb57f4195cc706e0e8d083 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_networkmanagers.class.inc @@ -0,0 +1,434 @@ +<?php + +/** + * \file Unr_networkmanagers.class.inc + * \class Unr_networkmanagers + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_networkmanagers php class + * + * This class defines Rest Api to Vitis Unr_networkmanagers + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Unr_networkmanager.class.inc'; + + +class Unr_networkmanagers extends Dtnet { + /** + * @SWG\Definition( + * definition="/unr_networkmanagers", + * allOf={ + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * } + * ) + * * @SWG\Tag( + * name="Unr_networkmanagers", + * description="Operations about Unr_networkmanagers" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_networkmanagers", + * tags={"Unr_networkmanagers"}, + * summary="Get Unr_networkmanagers", + * description="Request to get Unr_networkmanagers", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="unr_networkmanager Response", + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * ) + * ) + */ + + /** + * get Unr_networkmanagers + * @return Unr_networkmanagers + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_networkmanager_unrestricted", "networkmanager_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/unr_networkmanagers", + * tags={"Unr_networkmanagers"}, + * summary="Add unr_networkmanager", + * description="Request to add Unr_networkmanagers", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="unr_networkmanager Response", + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * ) + * ) + */ + + /** + * insert unr_networkmanager + * @return id of the unr_networkmanager created + */ + function POST() { + require_once 'Unr_networkmanagers.sql.inc'; + + $sDirectoryPath = $this->sPathAddon . "networkmanager/" . $this->aValues["networkmanager_id"]; + $sPgRoleName = strtolower("u_dtnet_" . $this->aValues["networkmanager_id"] . "_" . $this->aValues["networkmanagername"]); + + if (!is_dir($this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon. $sDirectoryPath)) { + mkdir($this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon. $sDirectoryPath, 0777, true); + mkdir($this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon. $sDirectoryPath . "/annexe", 0777, true); + } + + if (!empty($_FILES['signaturefile'])) { + $this->aValues["signaturefile"] = $sDirectoryPath . "/" . $_FILES['signaturefile']["name"]; + + $sPath = $this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon . $this->aValues["signaturefile"]; + + $sErrorMessage = uploadFile("signaturefile", "", $sPath, $_FILES['signaturefile']['size'] + 1); + if ($sErrorMessage != "") { + $aReturn = array("sStatus" => 0, "sMessage" => $sErrorMessage); + writeToErrorLog($sErrorMessage); + } + + $sPath = $this->pictureResampler($sPath, $this->aValues["signaturefile_width"], $this->aValues["signaturefile_height"]); + $aPath = explode("/", $sPath); + $this->aValues["signaturefile"] = $sDirectoryPath . "/" . $aPath[count($aPath) - 1]; + } + + if (!empty($_FILES['icon'])) { + $this->aValues["icon"] = $sDirectoryPath . "/" . $_FILES['icon']["name"]; + + $sPath = $this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon . $this->aValues["icon"]; + + $sErrorMessage = uploadFile("icon", "", $sPath, $_FILES['icon']['size'] + 1); + if ($sErrorMessage != "") { + $aReturn = array("sStatus" => 0, "sMessage" => $sErrorMessage); + writeToErrorLog($sErrorMessage); + } + + $sPath = $this->pictureResampler($sPath, $this->aValues["icon_width"], $this->aValues["icon_height"]); + $aPath = explode("/", $sPath); + $this->aValues["icon"] = $sDirectoryPath . "/" . $aPath[count($aPath) - 1]; + } + + // création du NM + $aReturn = $this->genericPost($this->aProperties['schema_dtnet'], 'v_networkmanager_unrestricted', '', 'networkmanager_id'); + if($aReturn['sStatus'] == 1){ + $oBd = new BD($this->aProperties["db_superuser_login"], $this->aProperties["db_superuser_pass"], $this->aProperties["database"], $this->aProperties["server"], $this->aProperties["port"], $this->aProperties["sgbd"]); + + // Creer le compte bot de l'exploitant u_dtnet_||IDEXPLOITANT||_NOMEXPLOITANT + $sPgRole = substr(hash("sha256", $sPgRoleName), 0, 50); + $aParams = array( + "LOGIN" => array("value" => $sPgRole, "type"=> 'double_quote'), + "PASSWORD" => array("value" => $sPgRole, "type"=> 'quoted_string') + ); + $oBd->executeWithParams($aSql["insert_networkmanager_bot"], $aParams); + // Assigner les privilèges + $aRole = array("dtnet_networkmanager_data_reader", "vitis_user", "vmap_user"); + for($i = 0;$i < count($aRole); $i++){ + $aParams = array( + "ROLE" => array("value" => $aRole[$i], "type"=> 'column_name'), + "LOGIN" => array("value" => $sPgRole, "type"=> 'double_quote') + ); + $oBd->executeWithParams($aSql["grant_role_bot"], $aParams); + } + /* + $aParams = array( + "LOGIN" => array("value" => $sPgRole, "type"=> 'column_name_protected') + ); + $oBd->executeWithParams($aSql["grant_networkmanager_bot"], $aParams); + $oBd->executeWithParams($aSql["grant_vitis_user_bot"], $aParams); + $oBd->executeWithParams($aSql["grant_vmap_user_bot"], $aParams); + */ + // Insert de l'utilisateur' + $aParams = array( + "SCHEMA_VITIS" => array("value" => $this->aProperties["schema_framework"], "type"=> 'column_name'), + "NAME" => array("value" => $sPgRoleName, "type"=> 'string'), + "LOGIN" => array("value" => $sPgRole, "type"=> 'string'), + "IP_CONSTRAINT" => array("value" => "127.0.0.1", "type"=> 'string'), + "COMPANY" => array("value" => $this->aValues["networkmanagername"], "type"=> 'string') + ); + $oResult = $oBd->executeWithParams($aSql["insert_bot_user"], $aParams); + $iuser = $oBd->objetSuivant($oResult)->user_id; + $sWmsUrl = $this->aProperties["web_server_name"] ."/". $this->aProperties["mapserver_alias"] . "/private/[sha256Token]?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=DTNET_Network&STYLES=default"; + // Insert de la carte + $aParams = array( + "SCHEMA_VMAP" => array("value" => $this->aProperties["schema_vmap"], "type"=> 'column_name'), + "NAME" => array("value" => "DTNET_" . $this->aValues["networkmanager_id"] . "_MAP", "type"=> 'string'), + "DESCRIPTION" => array("value" => "Carte de l'exploitant " . $this->aValues["networkmanager_id"], "type"=> 'quoted_string') + ); + $oResult = $oBd->executeWithParams($aSql["insert_networkmanager_map"], $aParams); + $iMap = $oBd->objetSuivant($oResult)->map_id; + // Link carte calque + $aLayerName = array("Open Street Maps", "Reseau", "Zone", "Declaration"); + + for($i = 0;$i < count($aLayerName);$i++){ + $aParams = array( + "SCHEMA_VMAP" => array("value" => $this->aProperties["schema_vmap"], "type"=> 'column_name'), + "MAP" => array("value" => $iMap, "type"=> 'integer'), + "LAYER_NAME" => array("value" => $aLayerName[$i], "type"=> 'string'), + "LAYER_INDEX" => array("value" => $i, "type"=> 'integer') + ); + $oResult = $oBd->executeWithParams($aSql["link_networkmanager_map_layer_name"], $aParams); + + error_log($aLayerName[$i]); + } + + // update avec le nom du fichier + $aParams = array( + "SCHEMA_DTNET" => array("value" => $this->aProperties["schema_dtnet"], "type"=> 'column_name'), + "VM4MSURL" => array("value" => $sWmsUrl, "type"=> 'string'), + "USER_KEY" => array("value" => $sPgRole, "type"=> 'string'), + "ID" => array("value" => $this->aValues["networkmanager_id"], "type"=> 'string') + ); + $oResult = $oBd->executeWithParams($aSql["update_networkmanager"], $aParams); + // création d'un groupe + $aParams = array( + "SCHEMA_VITIS" => array("value" => $this->aProperties["schema_framework"], "type"=> 'column_name'), + "NAME" => array("value" => "group_" . $this->aValues["networkmanager_id"], "type"=> 'string') + ); + $oResult = $oBd->executeWithParams($aSql["insert_group_manager"], $aParams); + $iGroup = $oBd->objetSuivant($oResult)->group_id; + //Attribution de la carte au groupe + $aParams = array( + "SCHEMA_VMAP" => array("value" => $this->aProperties["schema_vmap"], "type"=> 'column_name'), + "MAP" => array("value" => $iMap, "type"=> 'integer'), + "GROUP" => array("value" => $iGroup, "type"=> 'integer') + ); + $oResult = $oBd->executeWithParams($aSql["link_map_group"], $aParams); + //Attribution de l'exploitant à l'utilisateur + $aParams = array( + "SCHEMA_DTNET" => array("value" => $this->aProperties["schema_dtnet"], "type"=> 'column_name'), + "USER_ID" => array("value" => $iuser, "type"=> 'integer'), + "ID" => array("value" => $this->aValues["networkmanager_id"], "type"=> 'string') + ); + $oResult = $oBd->executeWithParams($aSql["link_bot_user_networkmanager"], $aParams); +/* + if (!empty($_FILES['icon'])) { + $sPath = $this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon . $this->aValues["icon"]; + + $sErrorMessage = uploadFile("icon", "", $sPath, $_FILES['icon']['size'] + 1); + if ($sErrorMessage != "") { + $aReturn = array("sStatus" => 0, "sMessage" => $sErrorMessage); + writeToErrorLog($sErrorMessage); + } + } + + if (!empty($_FILES['signaturefile'])) { + $sPath = $this->aProperties["ws_data_dir"] ."/" . $this->sUrlAddon . $this->aValues["signaturefile"]; + + $sErrorMessage = uploadFile("signaturefile", "", $sPath, $_FILES['signaturefile']['size'] + 1); + if ($sErrorMessage != "") { + $aReturn = array("sStatus" => 0, "sMessage" => $sErrorMessage); + writeToErrorLog($sErrorMessage); + } + }*/ + } + + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/unr_networkmanagers/{id_unr_networkmanager}", + * tags={"Unr_networkmanagers"}, + * summary="update Unr_networkmanagers", + * description="Request to update Unr_networkmanagers", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Unr_networkmanager token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_unr_networkmanager", + * in="path", + * description="id of the Unr_networkmanagers", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * ) + * ) + */ + + /** + * update unr_networkmanagers + * @return id of unr_networkmanagers updated or error object if a unr_networkmanagers is not updated + */ + function PUT() { + $aPath = $this->saveNetworkManagerFile($this->aValues); + + if($aPath[0] !== ""){ + $this->aValues["icon"] = $aPath[0]; + } + + if($aPath[1] !== ""){ + $this->aValues["signaturefile"] = $aPath[1]; + } + + + $aReturn = $this->genericPut($this->aProperties['schema_dtnet'], 'v_networkmanager_unrestricted', 'networkmanager_id'); + + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/unr_networkmanagers", + * tags={"Unr_networkmanagers"}, + * summary="delete Unr_networkmanagers", + * description="Request to delete Unr_networkmanagers", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the unr_networkmanager", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="unr_networkmanager Response", + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * ) + * ) + */ + /** + * @SWG\Delete(path="/unr_networkmanagers/{id_unr_networkmanager}", + * tags={"Unr_networkmanagers"}, + * summary="delete Unr_networkmanagers", + * description="Request to delete Unr_networkmanagers", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Unr_networkmanager token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_unr_networkmanager", + * in="path", + * description="id of the Unr_networkmanagers", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/unr_networkmanagers") + * ) + * ) + */ + + /** + * delete unr_networkmanagers + * @return id of unr_networkmanagers deleted or error object if a unr_networkmanagers is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_networkmanager_unrestricted', 'networkmanager_id'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_networkmanagers.sql.inc b/src/module_dtnet/web_service/ws/Unr_networkmanagers.sql.inc new file mode 100755 index 0000000000000000000000000000000000000000..e295d98edcdea07564d967fdcceafaf694bd6e39 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_networkmanagers.sql.inc @@ -0,0 +1,15 @@ +<?php + +$aSql["insert_networkmanager_bot"]="CREATE ROLE [LOGIN] LOGIN PASSWORD [PASSWORD] NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION"; +$aSql["grant_role_bot"] = "GRANT [ROLE] TO [LOGIN]"; +//$aSql["grant_networkmanager_bot"] = "GRANT dtnet_networkmanager_data_reader TO [LOGIN]"; +//$aSql["grant_vitis_user_bot"] = "GRANT vitis_user TO [LOGIN]"; +//$aSql["grant_vmap_user_bot"] = "GRANT vmap_user TO [LOGIN]"; +$aSql["insert_bot_user"] = "INSERT INTO [SCHEMA_VITIS].\"user\" (name, login, ip_constraint, company) VALUES ([NAME], [LOGIN], [IP_CONSTRAINT],[COMPANY]) RETURNING user_id"; +$aSql["insert_group_manager"] = "INSERT INTO [SCHEMA_VITIS].\"group\" (\"name\") VALUES ([NAME]) RETURNING group_id"; +$aSql["insert_networkmanager_map"] = "INSERT INTO [SCHEMA_VMAP].map(crs_id, name, description, extent, catalog_index) VALUES ('EPSG:3857', [NAME], [DESCRIPTION], '-2082586|4786415|2496297|7105208', 0) RETURNING map_id"; +$aSql["link_networkmanager_map_layer_name"] = "INSERT INTO [SCHEMA_VMAP].map_layer(map_id, layer_id, layer_index, layer_visible, layer_opacity) VALUES ([MAP], (SELECT layer_id FROM [SCHEMA_VMAP].layer WHERE name = [LAYER_NAME]), [LAYER_INDEX], 'TRUE', 100)"; +$aSql["link_map_group"] = "INSERT INTO [SCHEMA_VMAP].map_group(map_id, group_id) VALUES ([MAP], [GROUP])"; +$aSql["link_bot_user_networkmanager"] = "INSERT INTO [SCHEMA_DTNET].user_networkmanager(user_id, networkmanager_id) VALUES ([USER_ID], [ID])"; +$aSql["update_networkmanager"]="UPDATE [SCHEMA_DTNET].networkmanager SET vm4mslayerurl=[VM4MSURL], userkey=[USER_KEY] WHERE networkmanager_id = [ID]"; +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/Unr_networks.class.inc b/src/module_dtnet/web_service/ws/Unr_networks.class.inc new file mode 100755 index 0000000000000000000000000000000000000000..3567d69ad89c7c2b1abcd641462b39d304984be7 --- /dev/null +++ b/src/module_dtnet/web_service/ws/Unr_networks.class.inc @@ -0,0 +1,269 @@ +<?php + +/** + * \file Unr_networks.class.inc + * \class Unr_networks + * + * \author WAB <support.wab@veremes.com>. + * + * \brief This file contains the Unr_networks php class + * + * This class defines Rest Api to Vitis Unr_networks + * + */ +require_once __DIR__ . '/Dtnet.class.inc'; +require_once 'Unr_network.class.inc'; + + +class Unr_networks extends Dtnet { + /** + * @SWG\Definition( + * definition="/unr_networks", + * allOf={ + * @SWG\Schema(ref="#/definitions/unr_networks") + * } + * ) + * * @SWG\Tag( + * name="Unr_networks", + * description="Operations about Unr_networks" + * ) + */ + + /** + * construct + * @param type $aPath url of the request + * @param type $aValues parameters of the request + * @param type $properties properties + * @param type $bShortcut false to reinit variables + * @param type $oConnection connection object + */ + function __construct($aPath, $aValues, $properties, $bShortcut = false, $oConnection = false){ + parent::__construct($aPath, $aValues, $properties, $bShortcut, $oConnection); + } + + /** + * @SWG\Get(path="/unr_networks", + * tags={"Unr_networks"}, + * summary="Get Unr_networks", + * description="Request to get Unr_networks", + * operationId="GET", + * produces={"application/xml", "application/json", "application/x-vm-json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Parameter( + * name="order_by", + * in="query", + * description="list of ordering fields", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="sort_order", + * in="query", + * description="sort_order", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="limit", + * in="query", + * description="number of element", + * required=false, + * type="integer", + * format="int32" + * ), + * @SWG\Parameter( + * name="offset", + * in="query", + * description="index of first element", + * required=false, + * type="string", + * format="int32" + * ), + * @SWG\Parameter( + * name="attributs", + * in="query", + * description="list of attributs", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="filter", + * in="query", + * description="filter results", + * required=false, + * type="string" + * ), + * @SWG\Parameter( + * name="distinct", + * in="query", + * description="delete duplicates", + * required=false, + * type="boolean" + * ), + * @SWG\Response( + * response=200, + * description="unr_network Response", + * @SWG\Schema(ref="#/definitions/unr_networks") + * ) + * ) + */ + + /** + * get Unr_networks + * @return Unr_networks + */ + function GET() { + $aReturn = $this->genericGet($this->aProperties['schema_dtnet'], "v_network_unrestricted", "network_id"); + $sMessage = $aReturn['sMessage']; + return $sMessage; + } + + /** + * @SWG\Post(path="/unr_networks", + * tags={"Unr_networks"}, + * summary="Add unr_network", + * description="Request to add Unr_networks", + * operationId="POST", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="user token", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="unr_network Response", + * @SWG\Schema(ref="#/definitions/unr_networks") + * ) + * ) + */ + + /** + * insert unr_network + * @return id of the unr_network created + */ + function POST() { + $aReturn = $this->genericPost($this->aProperties['schema_dtnet'], 'v_network_unrestricted', '', 'network_id'); + + return $aReturn['sMessage']; + } + + /** + * @SWG\Put(path="/unr_networks/{id_unr_network}", + * tags={"Unr_networks"}, + * summary="update Unr_networks", + * description="Request to update Unr_networks", + * operationId="PUT", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Unr_network token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_unr_network", + * in="path", + * description="id of the Unr_networks", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/unr_networks") + * ) + * ) + */ + + /** + * update unr_networks + * @return id of unr_networks updated or error object if a unr_networks is not updated + */ + function PUT() { + $aReturn = $this->genericPut($this->aProperties['schema_dtnet'], 'v_network_unrestricted', 'network_id'); + + return $aReturn['sMessage']; + } + + /** + * @SWG\Delete(path="/unr_networks", + * tags={"Unr_networks"}, + * summary="delete Unr_networks", + * description="Request to delete Unr_networks", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="idList", + * in="query", + * description="id of the unr_network", + * required=true, + * type="string" + * ), + * @SWG\Response( + * response=200, + * description="unr_network Response", + * @SWG\Schema(ref="#/definitions/unr_networks") + * ) + * ) + */ + /** + * @SWG\Delete(path="/unr_networks/{id_unr_network}", + * tags={"Unr_networks"}, + * summary="delete Unr_networks", + * description="Request to delete Unr_networks", + * operationId="DELETE", + * produces={"application/xml", "application/json"}, + * @SWG\Parameter( + * name="token", + * in="query", + * description="Unr_network token", + * required=true, + * type="string" + * ), + * * @SWG\Parameter( + * name="id_unr_network", + * in="path", + * description="id of the Unr_networks", + * required=true, + * type="integer", + * format = "int32" + * ), + * @SWG\Response( + * response=200, + * description="Poprerties Response", + * @SWG\Schema(ref="#/definitions/unr_networks") + * ) + * ) + */ + + /** + * delete unr_networks + * @return id of unr_networks deleted or error object if a unr_networks is not deleted + */ + function DELETE() { + $aReturn = $this->genericDelete($this->aProperties['schema_dtnet'], 'v_network_unrestricted', 'network_id'); + return $aReturn['sMessage']; + } + + +} + +?> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws/overview.phtml b/src/module_dtnet/web_service/ws/overview.phtml new file mode 100755 index 0000000000000000000000000000000000000000..63c02f8615a5fb6481c89eba0276084e3cfe9f72 --- /dev/null +++ b/src/module_dtnet/web_service/ws/overview.phtml @@ -0,0 +1,24 @@ +<?php +/** + * @SWG\Swagger( + * basePath="/[service_alias]/dtnet", + * host="[server]", + * schemes={"[protocol]"}, + * produces={ + * "application/json", + "application/xml", + "text/html" + * }, + * @SWG\Info( + * version="1.0.0", + * title="Dtnet Test Rest", + * description="All fetaures to access server operation for dtnet", + * ) + * ) + */ +?> + +<h1 class="titleOverview">Service Dtnet</h1> +<p> + <a class="linkOverview" href="javascript:sService='dtnet';LoadApi()">Dtnet</a>: this is the most comprehensive service which should be used as a preference when developing applications communicating with Dtnet. Those services allow you to administrate Dtnet applications. +</p> \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws_data/mapfileSection.txt b/src/module_dtnet/web_service/ws_data/mapfileSection.txt new file mode 100755 index 0000000000000000000000000000000000000000..2c9707c47927eaf54144320cfd0a43edbeb717f9 --- /dev/null +++ b/src/module_dtnet/web_service/ws_data/mapfileSection.txt @@ -0,0 +1,784 @@ +SYMBOL + NAME "A" + TYPE truetype + FONT "arial" + CHARACTER "A" +END # SYMBOL +SYMBOL + NAME "B" + TYPE truetype + FONT "arial" + CHARACTER "B" +END # SYMBOL +SYMBOL + NAME "C" + TYPE truetype + FONT "arial" + CHARACTER "C" +END # SYMBOL + +LAYER + NAME "{LAYER_NAME}" + TYPE {LAYER_TYPE} + STATUS ON + {CONNECTION} + DATA "geom from {TABLE_SCHEMA}.{TABLE_NAME} USING SRID={SRID} USING UNIQUE {TABLE_ID}" + OPACITY {LAYER_OPACITY} + + FILTER (([network_id] = '%network_id%') or ('%network_id%' = 'ALL')) + + VALIDATION + 'network_id' '^[a-zA-Z0-9_|]*$' + 'default_network_id' 'ALL' + END + + {COORDSYS} + + METADATA + "wms_title" "{LAYER_NAME}" + "wms_srs" "EPSG:2154 EPSG:3857" + "wms_name" "{LAYER_NAME}" + "wms_server_version" "1.3.0" + "wms_format" "image/png" + END + CLASS + NAME "Transport de déchets actif" + EXPRESSION ("[code]" = 'DE' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#00ff04" + COLOR "#00ff04" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff04" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Transport de déchets inactif" + EXPRESSION ("[code]" = 'DE' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#00ff04" + COLOR "#00ff04" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff04" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Transport de déchets abandonné" + EXPRESSION ("[code]" = 'DE' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#00ff04" + COLOR "#00ff04" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff04" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Transport de déchets supprimé" + EXPRESSION ("[code]" = 'DE' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#00ff04" + COLOR "#00ff04" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff04" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#00ff04" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Eau potable actif" + EXPRESSION ("[code]" = 'EA' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#00edff" + COLOR "#00edff" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00edff" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Eau potable inactif" + EXPRESSION ("[code]" = 'EA' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#00edff" + COLOR "#00edff" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00edff" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Eau potable abandonné" + EXPRESSION ("[code]" = 'EA' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#00edff" + COLOR "#00edff" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00edff" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Eau potable supprimé" + EXPRESSION ("[code]" = 'EA' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#00edff" + COLOR "#00edff" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00edff" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#00edff" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Eau usée ou assainissement actif" + EXPRESSION ("[code]" = 'EU' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#704242" + COLOR "#704242" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#704242" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Eau usée ou assainissement inactif" + EXPRESSION ("[code]" = 'EU' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#704242" + COLOR "#704242" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#704242" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Eau usée ou assainissement abandonné" + EXPRESSION ("[code]" = 'EU' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#704242" + COLOR "#704242" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#704242" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Eau usée ou assainissement supprimé" + EXPRESSION ("[code]" = 'EU' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#704242" + COLOR "#704242" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#704242" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#704242" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Gaz actif" + EXPRESSION ("[code]" = 'GA' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#eccdf4" + COLOR "#eccdf4" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#eccdf4" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Gaz inactif" + EXPRESSION ("[code]" = 'GA' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#eccdf4" + COLOR "#eccdf4" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#eccdf4" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Gaz abandonné" + EXPRESSION ("[code]" = 'GA' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#eccdf4" + COLOR "#eccdf4" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#eccdf4" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Gaz supprimé" + EXPRESSION ("[code]" = 'GA' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#eccdf4" + COLOR "#eccdf4" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#eccdf4" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#eccdf4" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Hydrocarbure liquide actif" + EXPRESSION ("[code]" = 'HC' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#ff0000" + COLOR "#ff0000" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff0000" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Hydrocarbure liquide inactif" + EXPRESSION ("[code]" = 'HC' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#ff0000" + COLOR "#ff0000" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff0000" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Hydrocarbure liquide abandonné" + EXPRESSION ("[code]" = 'HC' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#ff0000" + COLOR "#ff0000" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff0000" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Hydrocarbure liquide supprimé" + EXPRESSION ("[code]" = 'HC' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#ff0000" + COLOR "#ff0000" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff0000" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#ff0000" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Produits chimiques actif" + EXPRESSION ("[code]" = 'PC' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#0015ff" + COLOR "#0015ff" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#0015ff" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Produits chimiques inactif" + EXPRESSION ("[code]" = 'PC' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#0015ff" + COLOR "#0015ff" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#0015ff" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Produits chimiques abandonné" + EXPRESSION ("[code]" = 'PC' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#0015ff" + COLOR "#0015ff" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#0015ff" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Produits chimiques supprimé" + EXPRESSION ("[code]" = 'PC' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#0015ff" + COLOR "#0015ff" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#0015ff" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#0015ff" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Digues actif" + EXPRESSION ("[code]" = 'DI' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#ff5400" + COLOR "#ff5400" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff5400" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Digues inactif" + EXPRESSION ("[code]" = 'DI' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#ff5400" + COLOR "#ff5400" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff5400" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Digues abandonné" + EXPRESSION ("[code]" = 'DI' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#ff5400" + COLOR "#ff5400" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff5400" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Digues supprimé" + EXPRESSION ("[code]" = 'DI' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#ff5400" + COLOR "#ff5400" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#ff5400" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#ff5400" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Guide de transport actif" + EXPRESSION ("[code]" = 'TR' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#00ff8c" + COLOR "#00ff8c" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff8c" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Guide de transport inactif" + EXPRESSION ("[code]" = 'TR' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#00ff8c" + COLOR "#00ff8c" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff8c" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Guide de transport abandonné" + EXPRESSION ("[code]" = 'TR' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#00ff8c" + COLOR "#00ff8c" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff8c" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Guide de transport supprimé" + EXPRESSION ("[code]" = 'TR' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#00ff8c" + COLOR "#00ff8c" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#00ff8c" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#00ff8c" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Electricité et éclairage actif" + EXPRESSION ("[code]" = 'EL' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#f2ff00" + COLOR "#f2ff00" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#f2ff00" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Electricité et éclairage inactif" + EXPRESSION ("[code]" = 'EL' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#f2ff00" + COLOR "#f2ff00" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#f2ff00" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Electricité et éclairage abandonné" + EXPRESSION ("[code]" = 'EL' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#f2ff00" + COLOR "#f2ff00" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#f2ff00" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Electricité et éclairage supprimé" + EXPRESSION ("[code]" = 'EL' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#f2ff00" + COLOR "#f2ff00" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#f2ff00" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#f2ff00" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END + CLASS + NAME "Réseaux chaleur ou froid actif" + EXPRESSION ("[code]" = 'CU' AND "[condition_id]" = 'actif') + STYLE + OUTLINECOLOR "#000000" + COLOR "#000000" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#000000" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Réseaux chaleur ou froid inactif" + EXPRESSION ("[code]" = 'CU' AND "[condition_id]" = 'inactif') + STYLE + OUTLINECOLOR "#000000" + COLOR "#000000" + WIDTH 2.0 + PATTERN 10 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#000000" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Réseaux chaleur ou froid abandonné" + EXPRESSION ("[code]" = 'CU' AND "[condition_id]" = 'abandonné') + STYLE + OUTLINECOLOR "#000000" + COLOR "#000000" + WIDTH 3.0 + PATTERN 1 10 END + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#000000" + SIZE 20 + GAP 200 + END + END + CLASS + NAME "Réseaux chaleur ou froid supprimé" + EXPRESSION ("[code]" = 'CU' AND "[condition_id]" = 'supprimé') + STYLE + OUTLINECOLOR "#000000" + COLOR "#000000" + WIDTH 2.0 + END + STYLE + SYMBOL [class_id] + MAXSCALEDENOM 1000 + COLOR "#000000" + SIZE 20 + GAP 200 + END + STYLE + SYMBOL "cross" + COLOR "#000000" + SIZE 20 + WIDTH 2.0 + GAP 200 + INITIALGAP 50 + END + END +END \ No newline at end of file diff --git a/src/module_dtnet/web_service/ws_data/mapfileZone.txt b/src/module_dtnet/web_service/ws_data/mapfileZone.txt new file mode 100755 index 0000000000000000000000000000000000000000..7139422dc65ce74413a5de9d514573c7ad96dc3c --- /dev/null +++ b/src/module_dtnet/web_service/ws_data/mapfileZone.txt @@ -0,0 +1,31 @@ +LAYER + NAME "{LAYER_NAME}" + TYPE {LAYER_TYPE} + STATUS ON + {CONNECTION} + DATA "geom from {TABLE_SCHEMA}.{TABLE_NAME} USING SRID={SRID} USING UNIQUE {TABLE_ID}" + DEBUG 0 + + {COORDSYS} + + METADATA + "wms_title" "{LAYER_NAME}" + "wms_srs" "EPSG:2154 EPSG:3857" + "wms_name" "{LAYER_NAME}" + "wms_server_version" "1.3.0" + "wms_format" "image/png" + END + + CLASS + NAME "Zone de notification à l'exploitant" + EXPRESSION ("[type_id]" = 'Notification') + STYLE + OUTLINECOLOR "#ff000f" + WIDTH 2 + END + STYLE + OPACITY 20 + COLOR "#ff000f" + END + END +END \ No newline at end of file